w&&n>C&&t.charAt(w)==e.charAt(C);)w++,C++;if(l[x]=w,w>i)m+=2;else if(C>n)g+=2;else if(f){var k=r+p-_;if(k>=0&&a>k&&-1!=u[k]){var T=i-u[k];if(w>=T)return o(t,e,w,C)}}}for(var E=-y+v;y-b>=E;E+=2){var T,k=r+E;T=E==-y||E!=y&&u[k-1]T&&n>S&&t.charAt(i-T-1)==e.charAt(n-S-1);)T++,S++;if(u[k]=T,T>i)b+=2;else if(S>n)v+=2;else if(!f){var x=r+p-E;if(x>=0&&a>x&&-1!=l[x]){var w=l[x],C=r+w-x;if(T=i-T,w>=T)return o(t,e,w,C)}}}}return[[h,t],[d,e]]}function o(t,e,i,s){var r=t.substring(0,i),o=e.substring(0,s),a=t.substring(i),l=e.substring(s),u=n(r,o),c=n(a,l);return u.concat(c)}function a(t,e){if(!t||!e||t.charAt(0)!=e.charAt(0))return 0;for(var i=0,n=Math.min(t.length,e.length),s=n,r=0;s>i;)t.substring(r,s)==e.substring(r,s)?(i=s,r=i):n=s,s=Math.floor((n-i)/2+i);return s}function l(t,e){if(!t||!e||t.charAt(t.length-1)!=e.charAt(e.length-1))return 0;for(var i=0,n=Math.min(t.length,e.length),s=n,r=0;s>i;)t.substring(t.length-s,t.length-r)==e.substring(e.length-s,e.length-r)?(i=s,r=i):n=s,s=Math.floor((n-i)/2+i);return s}function u(t,e){function i(t,e,i){for(var n,s,r,o,u=t.substring(i,i+Math.floor(t.length/4)),c=-1,h="";-1!=(c=e.indexOf(u,c+1));){var d=a(t.substring(i),e.substring(c)),p=l(t.substring(0,i),e.substring(0,c));h.length=t.length?[n,s,r,o,h]:null}var n=t.length>e.length?t:e,s=t.length>e.length?e:t;if(n.length<4||2*s.lengthu[4].length?o:u:o;var c,h,d,p;t.length>e.length?(c=r[0],h=r[1],d=r[2],p=r[3]):(d=r[0],p=r[1],c=r[2],h=r[3]);var f=r[4];return[c,h,d,p,f]}function c(t){t.push([p,""]);for(var e,i=0,n=0,s=0,r="",o="";i1?(0!==n&&0!==s&&(e=a(o,r),0!==e&&(i-n-s>0&&t[i-n-s-1][0]==p?t[i-n-s-1][1]+=o.substring(0,e):(t.splice(0,0,[p,o.substring(0,e)]),i++),o=o.substring(e),r=r.substring(e)),e=l(o,r),0!==e&&(t[i][1]=o.substring(o.length-e)+t[i][1],o=o.substring(0,o.length-e),r=r.substring(0,r.length-e))),0===n?t.splice(i-s,n+s,[d,o]):0===s?t.splice(i-n,n+s,[h,r]):t.splice(i-n-s,n+s,[h,r],[d,o]),i=i-n-s+(n?1:0)+(s?1:0)+1):0!==i&&t[i-1][0]==p?(t[i-1][1]+=t[i][1],t.splice(i,1)):i++,s=0,n=0,r="",o=""}""===t[t.length-1][1]&&t.pop();var u=!1;for(i=1;i0))return[void 0,t];if(i=this.toDelta().length(),t===i)return[this.lines.last,this.lines.last.length];if(t>i)return[void 0,t-i];for(e=this.lines.first;null!=e;){if(t\s+\ <")},t.prototype.insertLineBefore=function(t,e){var i;return i=new o(this,t),null!=e?(c(t.parentNode).isElement()||this.root.insertBefore(t,e.node),this.lines.insertAfter(e.prev,i)):(c(t.parentNode).isElement()||this.root.appendChild(t),this.lines.append(i)),i},t.prototype.mergeLines=function(t,e){return e.length>1&&(1===t.length&&c(t.leaves.last.node).remove(),u.each(c(e.node).childNodes(),function(e){return e.tagName!==c.DEFAULT_BREAK_TAG?t.node.appendChild(e):void 0})),this.removeLine(e),t.rebuild()},t.prototype.optimizeLines=function(){return u.each(this.lines.toArray(),function(t,e){return t.optimize(),!0})},t.prototype.rebuild=function(){var t,e,i;for(e=this.lines.toArray(),t=this.root.firstChild,null!=t&&null!=c.LIST_TAGS[t.tagName]&&(t=t.firstChild),u.each(e,function(e){return function(i,n){for(var s,r;i.node!==t;){if(i.node.parentNode!==e.root&&(null!=(r=i.node.parentNode)?r.parentNode:void 0)!==e.root)return e.removeLine(i);t=e.normalizer.normalizeLine(t),s=e.insertLineBefore(t,i),t=c(t).nextLineNode(e.root)}return i.outerHTML!==t.outerHTML&&(i.node=e.normalizer.normalizeLine(i.node),i.rebuild()),t=c(t).nextLineNode(e.root)}}(this)),i=[];null!=t;)t=this.normalizer.normalizeLine(t),this.appendLine(t),i.push(t=c(t).nextLineNode(this.root));return i},t.prototype.removeLine=function(t){return null!=t.node.parentNode&&(c.LIST_TAGS[t.node.parentNode.tagName]&&1===t.node.parentNode.childNodes.length?c(t.node.parentNode).remove():c(t.node).remove()),this.lines.remove(t)},t.prototype.setHTML=function(t){return t=l.stripComments(t),t=l.stripWhitespace(t),this.root.innerHTML=t,this.lines=new a,this.rebuild()},t.prototype.splitLine=function(t,e){var i,n,s,r;return e=Math.min(e,t.length-1),r=c(t.node).split(e,!0),i=r[0],n=r[1],t.node=i,t.rebuild(),s=this.insertLineBefore(n,t.next),s.formats=u.clone(t.formats),s.resetContent(),s},t.prototype.toDelta=function(){var t,e;return e=this.lines.toArray(),t=new n,u.each(e,function(e){return u.each(e.delta.ops,function(e){return t.push(e)})}),t},t}(),e.exports=s},{"../lib/dom":17,"../lib/linked-list":18,"./format":10,"./line":12,"./normalizer":13,lodash:1,"rich-text/lib/delta":3}],9:[function(t,e,i){var n,s,r,o,a,l,u;l=t("lodash"),n=t("rich-text/lib/delta"),u=t("../lib/dom"),s=t("./document"),o=t("./line"),a=t("./selection"),r=function(){function t(t,e,i){this.root=t,this.quill=e,this.options=null!=i?i:{},this.root.setAttribute("id",this.options.id),this.doc=new s(this.root,this.options),this.delta=this.doc.toDelta(),this.length=this.delta.length(),this.selection=new a(this.doc,this.quill),this.timer=setInterval(l.bind(this.checkUpdate,this),this.options.pollInterval),this.savedRange=null,this.quill.on("selection-change",function(t){return function(e){return t.savedRange=e}}(this)),this.options.readOnly||this.enable()}return t.sources={API:"api",SILENT:"silent",USER:"user"},t.prototype.destroy=function(){return clearInterval(this.timer)},t.prototype.disable=function(){return this.enable(!1)},t.prototype.enable=function(t){return null==t&&(t=!0),this.root.setAttribute("contenteditable",t)},t.prototype.applyDelta=function(e,i){var n;return n=this._update(),n&&(e=n.transform(e,!0),n=e.transform(n,!1)),e.ops.length>0&&(e=this._trackDelta(function(t){return function(){var i;return i=0,l.each(e.ops,function(e){return l.isString(e.insert)?(t._insertAt(i,e.insert,e.attributes),i+=e.insert.length):l.isNumber(e.insert)?(t._insertEmbed(i,e.attributes),i+=1):l.isNumber(e["delete"])?t._deleteAt(i,e["delete"]):l.isNumber(e.retain)?(l.each(e.attributes,function(n,s){return t._formatAt(i,e.retain,s,n)}),i+=e.retain):void 0}),t.selection.shiftAfter(0,0,l.bind(t.doc.optimizeLines,t.doc))}}(this)),this.delta=this.doc.toDelta(),this.length=this.delta.length(),this.innerHTML=this.root.innerHTML,e&&i!==t.sources.SILENT&&this.quill.emit(this.quill.constructor.events.TEXT_CHANGE,e,i)),n&&n.ops.length>0&&i!==t.sources.SILENT?this.quill.emit(this.quill.constructor.events.TEXT_CHANGE,n,t.sources.USER):void 0},t.prototype.checkUpdate=function(e){var i;return null==e&&(e="user"),null==this.root.parentNode?clearInterval(this.timer):(i=this._update(),i&&(this.delta=this.delta.compose(i),this.length=this.delta.length(),this.quill.emit(this.quill.constructor.events.TEXT_CHANGE,i,e)),i&&(e=t.sources.SILENT),this.selection.update(e))},t.prototype.focus=function(){return null!=this.selection.range?this.selection.setRange(this.selection.range):this.root.focus()},t.prototype.getBounds=function(t){var e,i,n,s,r,o,a;return this.checkUpdate(),o=this.doc.findLeafAt(t,!0),n=o[0],s=o[1],null==n?null:(i=this.root.parentNode.getBoundingClientRect(),a="left",0===n.length?e=n.node.parentNode.getBoundingClientRect():u.VOID_TAGS[n.node.tagName]?(e=n.node.getBoundingClientRect(),1===s&&(a="right")):(r=document.createRange(),s=e?void 0:this.selection.shiftAfter(t,-1*e,function(i){return function(){var n,s,r,o,a,l,u;for(u=i.doc.findLineAt(t),r=u[0],l=u[1],n=r,o=r.length-l<=e&&l>0;null!=n&&e>0;)a=n.next,s=Math.min(n.length-l,e),0===l&&e>=n.length?i.doc.removeLine(n):n.deleteText(l,s),e-=s,n=a,l=0;return o&&r.next?i.doc.mergeLines(r,r.next):void 0}}(this))},t.prototype._formatAt=function(t,e,i,n){return this.selection.shiftAfter(t,0,function(s){return function(){var r,o,a,l,u;for(l=s.doc.findLineAt(t),o=l[0],a=l[1],u=[];null!=o&&e>0;)r=Math.min(e,o.length-a-1),o.formatText(a,r,i,n),e-=r,e>0&&o.format(i,n),e-=1,a=0,u.push(o=o.next);return u}}(this))},t.prototype._insertEmbed=function(t,e){return this.selection.shiftAfter(t,1,function(i){return function(){var n,s,r;return r=i.doc.findLineAt(t),n=r[0],s=r[1],n.insertEmbed(s,e)}}(this))},t.prototype._insertAt=function(t,e,i){return null==i&&(i={}),this.selection.shiftAfter(t,e.length,function(n){return function(){var s,r,o,a;return e=e.replace(/\r\n?/g,"\n"),r=e.split("\n"),a=n.doc.findLineAt(t),s=a[0],o=a[1],l.each(r,function(t,e){var a;return null==s||s.length<=o?(e0)&&(s=n.doc.appendLine(document.createElement(u.DEFAULT_BLOCK_TAG)),o=0,s.insertText(o,t,i),s.format(i),a=null):(s.insertText(o,t,i),e0?t:!1)},t}(),e.exports=r},{"../lib/dom":17,"./document":8,"./line":12,"./selection":14,lodash:1,"rich-text/lib/delta":3}],10:[function(t,e,i){var n,s,r;s=t("lodash"),r=t("../lib/dom"),n=function(){function t(t){this.config=t}return t.types={LINE:"line",EMBED:"embed"},t.FORMATS={bold:{tag:"B",prepare:"bold"},italic:{tag:"I",prepare:"italic"},underline:{tag:"U",prepare:"underline"},strike:{tag:"S",prepare:"strikeThrough"},color:{style:"color","default":"rgb(0, 0, 0)",prepare:"foreColor"},background:{style:"backgroundColor","default":"rgb(255, 255, 255)",prepare:"backColor"},font:{style:"fontFamily","default":"'Helvetica', 'Arial', sans-serif",prepare:"fontName"},size:{style:"fontSize","default":"13px",prepare:function(t){return document.execCommand("fontSize",!1,r.convertFontSize(t))}},link:{tag:"A",add:function(t,e){return t.setAttribute("href",e),t},remove:function(t){return t.removeAttribute("href"),t},value:function(t){return t.getAttribute("href")}},image:{type:t.types.EMBED,tag:"IMG",attribute:"src"},align:{type:t.types.LINE,style:"textAlign","default":"left"},bullet:{type:t.types.LINE,exclude:"list",parentTag:"UL",tag:"LI"},list:{type:t.types.LINE,exclude:"bullet",parentTag:"OL",tag:"LI"}},t.prototype.add=function(e,i){var n,o,a,l,u;return i?this.value(e)===i?e:(s.isString(this.config.parentTag)&&(a=e.parentNode,
a.tagName!==this.config.parentTag&&(a=document.createElement(this.config.parentTag),r(e).wrap(a)),e.parentNode.tagName===(null!=(l=e.parentNode.previousSibling)?l.tagName:void 0)&&r(e.parentNode.previousSibling).merge(e.parentNode),e.parentNode.tagName===(null!=(u=e.parentNode.nextSibling)?u.tagName:void 0)&&r(e.parentNode).merge(e.parentNode.nextSibling)),s.isString(this.config.tag)&&e.tagName!==this.config.tag&&(n=document.createElement(this.config.tag),null!=r.VOID_TAGS[n.tagName]?(null!=e.parentNode&&r(e).replace(n),e=n):this.isType(t.types.LINE)?e=r(e).switchTag(this.config.tag).get():(r(e).wrap(n),e=n)),(s.isString(this.config.style)||s.isString(this.config.attribute)||s.isString(this.config["class"]))&&(s.isString(this.config["class"])&&(e=this.remove(e)),r(e).isTextNode()&&(o=document.createElement(r.DEFAULT_INLINE_TAG),r(e).wrap(o),e=o),s.isString(this.config.style)&&i!==this.config["default"]&&(e.style[this.config.style]=i),s.isString(this.config.attribute)&&e.setAttribute(this.config.attribute,i),s.isString(this.config["class"])&&r(e).addClass(this.config["class"]+i)),s.isFunction(this.config.add)&&(e=this.config.add(e,i)),e):this.remove(e)},t.prototype.isType=function(t){return t===this.config.type},t.prototype.match=function(t){var e,i,n,o,a;if(!r(t).isElement())return!1;if(s.isString(this.config.parentTag)&&(null!=(o=t.parentNode)?o.tagName:void 0)!==this.config.parentTag)return!1;if(s.isString(this.config.tag)&&t.tagName!==this.config.tag)return!1;if(s.isString(this.config.style)&&(!t.style[this.config.style]||t.style[this.config.style]===this.config["default"]))return!1;if(s.isString(this.config.attribute)&&!t.hasAttribute(this.config.attribute))return!1;if(s.isString(this.config["class"])){for(a=r(t).classes(),i=0,n=a.length;n>i;i++)if(e=a[i],0===e.indexOf(this.config["class"]))return!0;return!1}return!0},t.prototype.prepare=function(t){return s.isString(this.config.prepare)?document.execCommand(this.config.prepare,!1,t):s.isFunction(this.config.prepare)?this.config.prepare(t):void 0},t.prototype.remove=function(e){var i,n,o,a;if(!this.match(e))return e;if(s.isString(this.config.style)&&(e.style[this.config.style]="",e.getAttribute("style")||e.removeAttribute("style")),s.isString(this.config.attribute)&&e.removeAttribute(this.config.attribute),s.isString(this.config["class"]))for(a=r(e).classes(),n=0,o=a.length;o>n;n++)i=a[n],0===i.indexOf(this.config["class"])&&r(e).removeClass(i);if(s.isString(this.config.tag))if(this.isType(t.types.LINE))s.isString(this.config.parentTag)&&(null!=e.previousSibling&&r(e).splitBefore(e.parentNode.parentNode),null!=e.nextSibling&&r(e.nextSibling).splitBefore(e.parentNode.parentNode)),e=r(e).switchTag(r.DEFAULT_BLOCK_TAG).get();else{if(this.isType(t.types.EMBED))return void r(e).remove();e=r(e).switchTag(r.DEFAULT_INLINE_TAG).get()}return s.isString(this.config.parentTag)&&r(e.parentNode).unwrap(),s.isFunction(this.config.remove)&&(e=this.config.remove(e)),e.tagName!==r.DEFAULT_INLINE_TAG||e.hasAttributes()||(e=r(e).unwrap()),e},t.prototype.value=function(t){var e,i,n,o;if(!this.match(t))return void 0;if(this.config.value)return this.config.value(t);if(s.isString(this.config.attribute))return t.getAttribute(this.config.attribute)||void 0;if(s.isString(this.config.style))return t.style[this.config.style]||void 0;if(s.isString(this.config["class"])){for(o=r(t).classes(),i=0,n=o.length;n>i;i++)if(e=o[i],0===e.indexOf(this.config["class"]))return e.slice(this.config["class"].length)}else if(s.isString(this.config.tag))return!0;return void 0},t}(),e.exports=n},{"../lib/dom":17,lodash:1}],11:[function(t,e,i){var n,s,r,o,a,l=function(t,e){function i(){this.constructor=t}for(var n in e)u.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},u={}.hasOwnProperty;o=t("lodash"),a=t("../lib/dom"),n=t("./format"),r=t("../lib/linked-list"),s=function(t){function e(t,i){this.node=t,this.formats=o.clone(i),this.text=a(this.node).text(),this.length=this.text.length,a(this.node).data(e.DATA_KEY,this)}return l(e,t),e.DATA_KEY="leaf",e.isLeafNode=function(t){return a(t).isTextNode()||null==t.firstChild},e.prototype.deleteText=function(t,i){var n;if(i>0)return this.text=this.text.slice(0,t)+this.text.slice(t+i),this.length=this.text.length,null!=a.EMBED_TAGS[this.node.tagName]?(n=document.createTextNode(this.text),a(n).data(e.DATA_KEY,this),this.node=a(this.node).replace(n).get()):a(this.node).text(this.text)},e.prototype.insertText=function(t,i){var n;return this.text=this.text.slice(0,t)+i+this.text.slice(t),a(this.node).isTextNode()?a(this.node).text(this.text):(n=document.createTextNode(i),a(n).data(e.DATA_KEY,this),this.node.tagName===a.DEFAULT_BREAK_TAG?this.node=a(this.node).replace(n).get():(this.node.appendChild(n),this.node=n)),this.length=this.text.length},e}(r.Node),e.exports=s},{"../lib/dom":17,"../lib/linked-list":18,"./format":10,lodash:1}],12:[function(t,e,i){var n,s,r,o,a,l,u,c,h=function(t,e){function i(){this.constructor=t}for(var n in e)d.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},d={}.hasOwnProperty;u=t("lodash"),n=t("rich-text/lib/delta"),c=t("../lib/dom"),s=t("./format"),r=t("./leaf"),o=t("./line"),a=t("../lib/linked-list"),l=t("./normalizer"),o=function(t){function e(t,i){this.doc=t,this.node=i,this.formats={},this.rebuild(),e.__super__.constructor.call(this,this.node)}return h(e,t),e.DATA_KEY="line",e.prototype.buildLeaves=function(t,e){return u.each(c(t).childNodes(),function(t){return function(i){var n;return i=t.doc.normalizer.normalizeNode(i),n=u.clone(e),u.each(t.doc.formats,function(t,e){return!t.isType(s.types.LINE)&&t.match(i)?n[e]=t.value(i):void 0}),r.isLeafNode(i)?t.leaves.append(new r(i,n)):t.buildLeaves(i,n)}}(this))},e.prototype.deleteText=function(t,e){var i,n,s;if(e>0){for(s=this.findLeafAt(t),n=s[0],t=s[1];null!=n&&e>0;)i=Math.min(e,n.length-t),n.deleteText(t,i),e-=i,n=n.next,t=0;return this.rebuild()}},e.prototype.findLeaf=function(t){return null!=t?c(t).data(r.DATA_KEY):void 0},e.prototype.findLeafAt=function(t,e){var i;if(null==e&&(e=!1),t>=this.length-1)return[this.leaves.last,this.leaves.last.length];for(i=this.leaves.first;null!=i;){if(t0;){if(u=o.next,n&&o.formats[i]!==n||!n&&null!=o.formats[i]){if(g=o.node,null!=o.formats[i]){for(c(g).splitBefore(this.node);!r.match(g);)g=g.parentNode;c(g).split(o.length)}a>0&&(d=c(g).split(a),l=d[0],g=d[1]),o.length>a+e&&(p=c(g).split(e),g=p[0],f=p[1]),r.add(g,n)}e-=o.length-a,a=0,o=u}return this.rebuild()}},e.prototype._insert=function(t,e,i){var n,r,o,a,l,h;return l=this.findLeafAt(t),n=l[0],r=l[1],e=u.reduce(i,function(t){return function(e,i,n){var r;return r=t.doc.formats[n],null==r||r.isType(s.types.LINE)||(e=r.add(e,i)),e}}(this),e),h=c(n.node).split(r),a=h[0],o=h[1],o&&(o=c(o).splitBefore(this.node).get()),this.node.insertBefore(e,o),this.rebuild()},e.prototype.insertEmbed=function(t,e){var i,n,r,o,a,l,h,d;return h=this.findLeafAt(t),n=h[0],r=h[1],d=c(n.node).split(r),l=d[0],o=d[1],i=u.find(Object.keys(e),function(t){return function(e){return t.doc.formats[e].isType(s.types.EMBED)}}(this)),a=this.doc.formats[i].add({},e[i]),e=u.clone(e),delete e[i],this._insert(t,a,e)},e.prototype.insertText=function(t,e,i){var n,s,r;return null==i&&(i={}),e.length>0?(r=this.findLeafAt(t),n=r[0],s=r[1],u.isEqual(n.formats,i)?(n.insertText(s,e),this.resetContent()):this._insert(t,document.createTextNode(e),i)):void 0},e.prototype.optimize=function(){return l.optimizeLine(this.node),this.rebuild()},e.prototype.rebuild=function(t){return null==t&&(t=!1),!t&&null!=this.outerHTML&&this.outerHTML===this.node.outerHTML&&u.all(this.leaves.toArray(),function(t){return function(e){return c(e.node).isAncestor(t.node)}}(this))?!1:(this.node=this.doc.normalizer.normalizeNode(this.node),0!==c(this.node).length()||this.node.querySelector(c.DEFAULT_BREAK_TAG)||this.node.appendChild(document.createElement(c.DEFAULT_BREAK_TAG)),this.leaves=new a,this.formats=u.reduce(this.doc.formats,function(t){return function(e,i,n){return i.isType(s.types.LINE)&&(i.match(t.node)?e[n]=i.value(t.node):delete e[n]),e}}(this),this.formats),this.buildLeaves(this.node,{}),this.resetContent(),!0)},e.prototype.resetContent=function(){return c(this.node).data(e.DATA_KEY,this),this.outerHTML=this.node.outerHTML,this.length=1,this.delta=new n,u.each(this.leaves.toArray(),function(t){return function(e){return t.length+=e.length,null!=c.EMBED_TAGS[e.node.tagName]?t.delta.insert(1,e.formats):t.delta.insert(e.text,e.formats)}}(this)),this.delta.insert("\n",this.formats)},e}(a.Node),e.exports=o},{"../lib/dom":17,"../lib/linked-list":18,"./format":10,"./leaf":11,"./line":12,"./normalizer":13,lodash:1,"rich-text/lib/delta":3}],13:[function(t,e,i){var n,s,r,o;s=t("lodash"),o=t("../lib/dom"),r=function(t){return t=t.replace(/(?:^|[-_])(\w)/g,function(t,e){return e?e.toUpperCase():""}),t.charAt(0).toLowerCase()+t.slice(1)},n=function(){function t(){this.whitelist={styles:{},tags:{}},this.whitelist.tags[o.DEFAULT_BREAK_TAG]=!0,this.whitelist.tags[o.DEFAULT_BLOCK_TAG]=!0,this.whitelist.tags[o.DEFAULT_INLINE_TAG]=!0}return t.ALIASES={STRONG:"B",EM:"I",DEL:"S",STRIKE:"S"},t.ATTRIBUTES={color:"color",face:"fontFamily",size:"fontSize"},t.prototype.addFormat=function(t){return null!=t.tag&&(this.whitelist.tags[t.tag]=!0),null!=t.parentTag&&(this.whitelist.tags[t.parentTag]=!0),null!=t.style?this.whitelist.styles[t.style]=!0:void 0},t.prototype.normalizeLine=function(e){return e=t.wrapInline(e),e=t.handleBreaks(e),"LI"===e.tagName&&t.flattenList(e),e=t.pullBlocks(e),e=this.normalizeNode(e),t.unwrapText(e),null!=e&&null!=o.LIST_TAGS[e.tagName]&&(e=e.firstChild),e},t.prototype.normalizeNode=function(e){return o(e).isTextNode()?e:(s.each(t.ATTRIBUTES,function(t,i){var n;return e.hasAttribute(i)?(n=e.getAttribute(i),"size"===i&&(n=o.convertFontSize(n)),e.style[t]=n,e.removeAttribute(i)):void 0}),("bold"===e.style.fontWeight||e.style.fontWeight>500)&&(e.style.fontWeight="",o(e).wrap(document.createElement("b")),e=e.parentNode),this.whitelistStyles(e),this.whitelistTags(e))},t.prototype.whitelistStyles=function(t){var e,i;return e=o(t).styles(),i=s.omit(e,function(t){return function(e,i){return null==t.whitelist.styles[r(i)]}}(this)),Object.keys(i).length0?o(t).styles(i,!0):t.removeAttribute("style"):void 0},t.prototype.whitelistTags=function(e){return o(e).isElement()?(null!=t.ALIASES[e.tagName]?e=o(e).switchTag(t.ALIASES[e.tagName]).get():null==this.whitelist.tags[e.tagName]&&(e=null!=o.BLOCK_TAGS[e.tagName]?o(e).switchTag(o.DEFAULT_BLOCK_TAG).get():e.hasAttributes()||null==e.firstChild?o(e).switchTag(o.DEFAULT_INLINE_TAG).get():o(e).unwrap()),e):e},t.flattenList=function(t){var e,i,n;return n=t.nextSibling,e=s.map(t.querySelectorAll("li")),e.forEach(function(e){return t.parentNode.insertBefore(e,n),n=e.nextSibling}),i=s.map(t.querySelectorAll(Object.keys(o.LIST_TAGS).join(","))),i.forEach(function(t){return o(t).remove()})},t.handleBreaks=function(t){var e;return e=s.map(t.querySelectorAll(o.DEFAULT_BREAK_TAG)),s.each(e,function(e){return function(e){return null==e.nextSibling||o.isIE(10)&&null==e.previousSibling?void 0:o(e.nextSibling).splitBefore(t.parentNode)}}(this)),t},t.optimizeLine=function(t){var e,i,n,r;for(t.normalize(),e=o(t).length(),n=o(t).descendants(),r=[];n.length>0;)i=n.pop(),null!=(null!=i?i.parentNode:void 0)&&null==o.EMBED_TAGS[i.tagName]&&(i.tagName===o.DEFAULT_BREAK_TAG?r.push(0!==e?o(i).remove():void 0):0===o(i).length()?(n.push(i.nextSibling),r.push(o(i).unwrap())):null!=i.previousSibling&&i.tagName===i.previousSibling.tagName&&s.isEqual(o(i).attributes(),o(i.previousSibling).attributes())?(n.push(i.firstChild),r.push(o(i.previousSibling).merge(i))):r.push(void 0));return r},t.pullBlocks=function(e){var i;for(i=e.firstChild;null!=i;){if(null!=o.BLOCK_TAGS[i.tagName]&&"LI"!==i.tagName){o(i).isolate(e.parentNode),null!=o.LIST_TAGS[i.tagName]&&i.firstChild?(o(i.parentNode).unwrap(),null==e.parentNode&&(e=i)):(o(i).unwrap(),t.pullBlocks(e));break}i=i.nextSibling}return e},t.stripComments=function(t){return t.replace(//g,"")},t.stripWhitespace=function(t){return t=t.trim(),t=t.replace(/(\r?\n|\r)+/g," "),t=t.replace(/\>\s+\<")},t.wrapInline=function(t){var e,i;if(null!=o.BLOCK_TAGS[t.tagName])return t;for(e=document.createElement(o.DEFAULT_BLOCK_TAG),t.parentNode.insertBefore(e,t);null!=t&&null==o.BLOCK_TAGS[t.tagName];)i=t.nextSibling,e.appendChild(t),t=i;return e},t.unwrapText=function(t){var e;return e=s.map(t.querySelectorAll(o.DEFAULT_INLINE_TAG)),s.each(e,function(t){return t.hasAttributes()?void 0:o(t).unwrap()})},t}(),e.exports=n},{"../lib/dom":17,lodash:1}],14:[function(t,e,i){var n,s,r,o,a,l;a=t("lodash"),l=t("../lib/dom"),n=t("./leaf"),s=t("./normalizer"),r=t("../lib/range"),o=function(){function t(t,e){this.doc=t,this.emitter=e,this.focus=!1,this.range=new r(0,0),this.nullDelay=!1,this.update("silent")}return t.prototype.checkFocus=function(){return document.activeElement===this.doc.root},t.prototype.getRange=function(t){var e,i,n;return null==t&&(t=!1),this.checkFocus()?(i=this._getNativeRange(),null==i?null:(n=this._positionToIndex(i.startContainer,i.startOffset),e=i.startContainer===i.endContainer&&i.startOffset===i.endOffset?n:this._positionToIndex(i.endContainer,i.endOffset),new r(Math.min(n,e),Math.max(n,e)))):t?this.range:null},t.prototype.preserve=function(t){var e,i,n,s,r,o,a,l,u;return n=this._getNativeRange(),null!=n&&this.checkFocus()?(s=this._encodePosition(n.startContainer,n.startOffset),l=s[0],u=s[1],r=this._encodePosition(n.endContainer,n.endOffset),e=r[0],i=r[1],t(),o=this._decodePosition(l,u),l=o[0],u=o[1],a=this._decodePosition(e,i),e=a[0],i=a[1],this._setNativeRange(l,u,e,i)):t()},t.prototype.scrollIntoView=function(){var t,e,i,n,s,r,o,a,l;if(this.range)return i=this.emitter.editor,l=i.getBounds(this.range.start),n=this.range.isCollapsed()?l:i.getBounds(this.range.end),t=i.root.parentNode.getBoundingClientRect(),e=t.bottom-t.top,e0&&(t=e.getRangeAt(0),l(t.startContainer).isAncestor(this.doc.root,!0)&&(t.startContainer===t.endContainer||l(t.endContainer).isAncestor(this.doc.root,!0)))?t:null},t.prototype._indexToPosition=function(t){var e,i,n;return 0===this.doc.lines.length?[this.doc.root,0]:(n=this.doc.findLeafAt(t,!0),e=n[0],i=n[1],this._decodePosition(e.node,i))},t.prototype._positionToIndex=function(t,e){var i,n,s,r,o,a;if(l.isIE(10)&&"BR"===t.tagName&&1===e&&(e=0),a=this._encodePosition(t,e),n=a[0],e=a[1],r=this.doc.findLine(n),null==r)return 0;for(i=r.findLeaf(n),o=0;null!=r.prev;)r=r.prev,o+=r.length;if(null==i)return o;for(s=0;null!=i.prev;)i=i.prev,s+=i.length;return o+s+e},t.prototype._setNativeRange=function(t,e,i,n){var s,r;if(r=document.getSelection())if(null!=t){if(this.checkFocus()||this.doc.root.focus(),s=this._getNativeRange(),null==s||t!==s.startContainer||e!==s.startOffset||i!==s.endContainer||n!==s.endOffset)return r.removeAllRanges(),s=document.createRange(),s.setStart(t,e),s.setEnd(i,n),r.addRange(s)}else if(r.removeAllRanges(),this.doc.root.blur(),l.isIE(11)&&!l.isIE(9))return document.body.focus()},t}(),e.exports=o},{"../lib/dom":17,"../lib/range":20,"./leaf":11,"./normalizer":13,lodash:1}],15:[function(t,e,i){t("./modules/authorship"),t("./modules/image-tooltip"),t("./modules/keyboard"),t("./modules/link-tooltip"),t("./modules/multi-cursor"),t("./modules/paste-manager"),t("./modules/toolbar"),t("./modules/tooltip"),t("./modules/undo-manager"),e.exports=t("./quill")},{"./modules/authorship":21,"./modules/image-tooltip":22,"./modules/keyboard":23,"./modules/link-tooltip":24,"./modules/multi-cursor":25,"./modules/paste-manager":26,"./modules/toolbar":27,"./modules/tooltip":28,"./modules/undo-manager":29,"./quill":30}],16:[function(t,e,i){var n,s,r,o=function(t,e){function i(){this.constructor=t}for(var n in e)a.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},a={}.hasOwnProperty;r=t("./dom"),s=t("./picker"),n=function(t){function e(){e.__super__.constructor.apply(this,arguments),r(this.container).addClass("ql-color-picker")}return o(e,t),e.prototype.buildItem=function(t,i,n){var s;return s=e.__super__.buildItem.call(this,t,i,n),s.style.backgroundColor=i.value,s},e}(s),e.exports=n},{"./dom":17,"./picker":19}],17:[function(t,e,i){var n,s,r,o,a,l=function(t,e){return function(){return t.apply(e,arguments)}},u=function(t,e){function i(){this.constructor=t}for(var n in e)c.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},c={}.hasOwnProperty;r=t("lodash"),a=null,s=function(){function t(t){this.node=t,this.trigger=l(this.trigger,this)}return t.prototype.addClass=function(t){return this.hasClass(t)?void 0:(null!=this.node.classList?this.node.classList.add(t):null!=this.node.className&&(this.node.className=(this.node.className+" "+t).trim()),this)},t.prototype.attributes=function(t){var e,i,n,s,o,a;if(t)return r.each(t,function(t){return function(e,i){return t.node.setAttribute(i,e)}}(this)),this;if(null==this.node.attributes)return{};for(t={},o=this.node.attributes,i=n=0,s=o.length;s>n;i=++n)a=o[i],e=this.node.attributes[i],t[e.name]=e.value;return t},t.prototype.child=function(t){var e,i;for(e=this.node.firstChild,i=o(e).length();null!=e&&!(i>t);)t-=i,e=e.nextSibling,i=o(e).length();return null==e&&(e=this.node.lastChild,t=o(e).length()),[e,t]},t.prototype.childNodes=function(){return r.map(this.node.childNodes)},t.prototype.classes=function(){return this.node.className.split(/\s+/)},t.prototype.data=function(t,e){var i;return null!=e?(null==this.node["ql-data"]&&(this.node["ql-data"]={}),this.node["ql-data"][t]=e,this):null!=(i=this.node["ql-data"])?i[t]:void 0},t.prototype.descendants=function(){return r.map(this.node.getElementsByTagName("*"))},t.prototype.get=function(){return this.node},t.prototype.hasClass=function(t){return null!=this.node.classList?this.node.classList.contains(t):null!=this.node.className?this.classes().indexOf(t)>-1:!1},t.prototype.isAncestor=function(t,e){var i;if(null==e&&(e=!1),t===this.node)return e;for(i=this.node;i;){if(i===t)return!0;i=i.parentNode}return!1},t.prototype.isElement=function(){var t;return(null!=(t=this.node)?t.nodeType:void 0)===o.ELEMENT_NODE},t.prototype.isTextNode=function(){var t;return(null!=(t=this.node)?t.nodeType:void 0)===o.TEXT_NODE},t.prototype.isolate=function(t){return null!=this.node.nextSibling&&o(this.node.nextSibling).splitBefore(t),this.splitBefore(t),this},t.prototype.length=function(){var t;return null==this.node?0:(t=this.text().length,this.isElement()&&(t+=this.node.querySelectorAll(Object.keys(o.EMBED_TAGS).join(",")).length),t)},t.prototype.merge=function(t){var e;return e=o(t),this.isElement()?(e.moveChildren(this.node),this.normalize()):this.text(this.text()+e.text()),e.remove(),this},t.prototype.moveChildren=function(t){return r.each(this.childNodes(),function(e){return t.appendChild(e)}),this},t.prototype.nextLineNode=function(t){var e;return e=this.node.nextSibling,null==e&&this.node.parentNode!==t&&(e=this.node.parentNode.nextSibling),null!=e&&null!=o.LIST_TAGS[e.tagName]&&(e=e.firstChild),e},t.prototype.normalize=function(){var t,e,i,n;for(e=this.node.firstChild;null!=e;)n=e.nextSibling,t=o(e),null!=n&&o(n).isTextNode()&&(0===t.text().length?t.remove():t.isTextNode()&&(i=n.nextSibling,t.merge(n),n=i)),e=n;return this},t.prototype.on=function(t,e){return this.node.addEventListener(t,function(i){return function(n){var s,r;return s=!a||"keydown"!==t&&"keyup"!==t?n:a,r=e.call(i.node,s),r||(n.preventDefault(),n.stopPropagation()),r}}(this)),this},t.prototype.remove=function(){var t;return null!=(t=this.node.parentNode)&&t.removeChild(this.node),this.node=null,null},t.prototype.removeClass=function(t){var e;if(this.hasClass(t))return null!=this.node.classList?this.node.classList.remove(t):null!=this.node.className&&(e=this.classes(),e.splice(e.indexOf(t),1),this.node.className=e.join(" ")),this.node.getAttribute("class")||this.node.removeAttribute("class"),this},t.prototype.replace=function(t){return this.node.parentNode.replaceChild(t,this.node),this.node=t,this},t.prototype.splitBefore=function(t,e){var i,n,s,r;if(null==e&&(e=!1),this.node===t||this.node.parentNode===t)return this;if(null!=this.node.previousSibling||e){for(s=this.node.parentNode,n=s.cloneNode(!1),s.parentNode.insertBefore(n,s.nextSibling),r=this.node;null!=r;)i=r.nextSibling,n.appendChild(r),r=i;return o(n).splitBefore(t)}return o(this.node.parentNode).splitBefore(t)},t.prototype.split=function(t,e){var i,n,s,r,a,l,u,c,h,d;if(null==e&&(e=!1),u=this.length(),t=Math.max(0,t),t=Math.min(t,u),!e&&0===t)return[this.node.previousSibling,this.node,!1];if(!e&&t===u)return[this.node,this.node.nextSibling,!1];if(this.node.nodeType===o.TEXT_NODE)return i=this.node.splitText(t),[this.node,i,!0];for(a=this.node,d=this.node.cloneNode(!1),this.node.parentNode.insertBefore(d,a.nextSibling),c=this.child(t),n=c[0],t=c[1],h=o(n).split(t),s=h[0],r=h[1];null!==r;)l=r.nextSibling,d.appendChild(r),r=l;return[a,d,!0]},t.prototype.styles=function(t,e){var i,n;return null==e&&(e=!1),t?(e||(t=r.defaults(t,this.styles())),n=r.map(t,function(t,e){return e+": "+t}).join("; ")+";",this.node.setAttribute("style",n),this):(n=this.node.getAttribute("style")||"",i=r.reduce(n.split(";"),function(t,e){var i,n,s;return n=e.split(":"),i=n[0],s=n[1],i&&s&&(i=i.trim(),s=s.trim(),t[i.toLowerCase()]=s),t},{}))},t.prototype.switchTag=function(t){var e,i;return t=t.toUpperCase(),this.node.tagName===t?this:(i=document.createElement(t),e=this.attributes(),null==o.VOID_TAGS[t]&&this.moveChildren(i),this.replace(i),this.node=i,this.attributes(e))},t.prototype.text=function(t){if(null!=t){switch(this.node.nodeType){case o.ELEMENT_NODE:this.node.textContent=t;break;case o.TEXT_NODE:this.node.data=t}return this}switch(this.node.nodeType){case o.ELEMENT_NODE:return this.node.tagName===o.DEFAULT_BREAK_TAG?"":null!=o.EMBED_TAGS[this.node.tagName]?o.EMBED_TEXT:null!=this.node.textContent?this.node.textContent:"";case o.TEXT_NODE:return this.node.data||"";default:return""}},t.prototype.textNodes=function(){var t,e,i;for(i=document.createTreeWalker(this.node,NodeFilter.SHOW_TEXT,null,!1),e=[];t=i.nextNode();)e.push(t);return e},t.prototype.toggleClass=function(t,e){return null==e&&(e=!this.hasClass(t)),e?this.addClass(t):this.removeClass(t),this},t.prototype.trigger=function(t,e){var i,n,s;return null==e&&(e={}),["keypress","keydown","keyup"].indexOf(t)<0?(i=document.createEvent("Event"),i.initEvent(t,e.bubbles,e.cancelable)):(i=document.createEvent("KeyboardEvent"),a=r.clone(e),a.which=r.isNumber(e.key)?e.key:r.isString(e.key)?e.key.toUpperCase().charCodeAt(0):0,o.isIE(10)?(s=[],e.altKey&&s.push("Alt"),e.ctrlKey&&s.push("Control"),e.metaKey&&s.push("Meta"),e.shiftKey&&s.push("Shift"),i.initKeyboardEvent(t,e.bubbles,e.cancelable,window,0,0,s.join(" "),null,null)):(n=r.isFunction(i.initKeyboardEvent)?"initKeyboardEvent":"initKeyEvent",i[n](t,e.bubbles,e.cancelable,window,e.ctrlKey,e.altKey,e.shiftKey,e.metaKey,0,0))),this.node.dispatchEvent(i),a=null,this},t.prototype.unwrap=function(){var t,e;return e=this.node.firstChild,t=this.node.nextSibling,r.each(this.childNodes(),function(e){return function(i){return e.node.parentNode.insertBefore(i,t)}}(this)),this.remove(),e},t.prototype.wrap=function(t){var e;for(null!=this.node.parentNode&&this.node.parentNode.insertBefore(t,this.node),e=t;null!=e.firstChild;)e=t.firstChild;return e.appendChild(this.node),this},t}(),n=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return u(e,t),e.prototype["default"]=function(){return this.node.querySelector("option[selected]")},e.prototype.option=function(t,e){var i,n,s,o,a,l;if(null==e&&(e=!0),l=r.isElement(t)?t.value:t){for(l=l.replace(/[^\w]+/g,""),a=this.node.children,n=s=0,o=a.length;o>s;n=++s)if(i=a[n],i.value.replace(/[^\w]+/g,"")===l){this.node.selectedIndex=n;break}}else this.node.selectedIndex=-1;return e&&this.trigger("change"),this},e.prototype.reset=function(t){var e;return null==t&&(t=!0),e=this["default"](),null!=e?e.selected=!0:this.node.selectedIndex=0,t&&this.trigger("change"),this},e.prototype.value=function(){return this.node.selectedIndex>-1?this.node.options[this.node.selectedIndex].value:""},e}(s),o=function(t){return"SELECT"===(null!=t?t.tagName:void 0)?new n(t):new s(t)},o=r.extend(o,{ELEMENT_NODE:1,NOBREAK_SPACE:" ",TEXT_NODE:3,ZERO_WIDTH_NOBREAK_SPACE:"\ufeff",DEFAULT_BLOCK_TAG:"DIV",DEFAULT_BREAK_TAG:"BR",DEFAULT_INLINE_TAG:"SPAN",EMBED_TEXT:"!",FONT_SIZES:{"10px":1,"13px":2,"16px":3,"18px":4,"24px":5,"32px":6,"48px":7},KEYS:{BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},BLOCK_TAGS:{ADDRESS:"ADDRESS",ARTICLE:"ARTICLE",ASIDE:"ASIDE",AUDIO:"AUDIO",BLOCKQUOTE:"BLOCKQUOTE",CANVAS:"CANVAS",DD:"DD",DIV:"DIV",DL:"DL",FIGCAPTION:"FIGCAPTION",FIGURE:"FIGURE",FOOTER:"FOOTER",FORM:"FORM",H1:"H1",H2:"H2",H3:"H3",H4:"H4",H5:"H5",H6:"H6",HEADER:"HEADER",HGROUP:"HGROUP",LI:"LI",OL:"OL",OUTPUT:"OUTPUT",P:"P",PRE:"PRE",SECTION:"SECTION",TABLE:"TABLE",TBODY:"TBODY",TD:"TD",TFOOT:"TFOOT",TH:"TH",THEAD:"THEAD",TR:"TR",UL:"UL",VIDEO:"VIDEO"},EMBED_TAGS:{IMG:"IMG"},LINE_TAGS:{DIV:"DIV",LI:"LI"},LIST_TAGS:{OL:"OL",UL:"UL"},VOID_TAGS:{AREA:"AREA",BASE:"BASE",BR:"BR",COL:"COL",COMMAND:"COMMAND",EMBED:"EMBED",HR:"HR",IMG:"IMG",INPUT:"INPUT",KEYGEN:"KEYGEN",LINK:"LINK",META:"META",PARAM:"PARAM",SOURCE:"SOURCE",TRACK:"TRACK",WBR:"WBR"},convertFontSize:function(t){var e,i,n,s;r.isString(t)&&t.indexOf("px")>-1?(n=Object.keys(o.FONT_SIZES),s=r.values(o.FONT_SIZES)):(s=Object.keys(o.FONT_SIZES),n=r.values(o.FONT_SIZES));for(e in n)if(i=n[e],parseInt(t)<=parseInt(i))return s[e];return r.last(s)},isIE:function(t){var e;return e=document.documentMode,e&&t>=e},isIOS:function(){return/iPhone|iPad/i.test(navigator.userAgent)},isMac:function(){return/Mac/i.test(navigator.platform)}}),e.exports=o},{lodash:1}],18:[function(t,e,i){var n,s;s=function(){function t(t){this.data=t,this.prev=this.next=null}return t}(),n=function(){function t(){this.length=0,this.first=this.last=null}return t.Node=s,t.prototype.append=function(t){return null!=this.first?(t.next=null,this.last.next=t):this.first=t,t.prev=this.last,this.last=t,this.length+=1},t.prototype.insertAfter=function(t,e){return e.prev=t,null!=t?(e.next=t.next,null!=t.next&&(t.next.prev=e),t.next=e,t===this.last&&(this.last=e)):(e.next=this.first,this.first.prev=e,this.first=e),this.length+=1},t.prototype.remove=function(t){return this.length>1?(null!=t.prev&&(t.prev.next=t.next),null!=t.next&&(t.next.prev=t.prev),t===this.first&&(this.first=t.next),t===this.last&&(this.last=t.prev)):this.first=this.last=null,t.prev=t.next=null,this.length-=1},t.prototype.toArray=function(){var t,e;for(t=[],e=this.first;null!=e;)t.push(e),e=e.next;return t},t}(),e.exports=n},{}],19:[function(t,e,i){var n,s,r;s=t("lodash"),r=t("./dom"),n=function(){function t(t){this.select=t,this.container=document.createElement("span"),this.buildPicker(),r(this.container).addClass("ql-picker"),this.select.style.display="none",this.select.parentNode.insertBefore(this.container,this.select),r(document).on("click",function(t){return function(){return t.close(),!0}}(this)),r(this.label).on("click",function(t){return function(){return s.defer(function(){return r(t.container).toggleClass("ql-expanded")}),!1}}(this)),r(this.select).on("change",function(t){return function(){var e,i;return t.select.selectedIndex>-1&&(e=t.container.querySelectorAll(".ql-picker-item")[t.select.selectedIndex],i=t.select.options[t.select.selectedIndex]),t.selectItem(e,!1),r(t.label).toggleClass("ql-active",i!==r(t.select)["default"]())}}(this))}return t.TEMPLATE='',t.prototype.buildItem=function(t,e,i){var n;return n=document.createElement("span"),n.setAttribute("data-value",e.getAttribute("value")),r(n).addClass("ql-picker-item").text(r(e).text()).on("click",function(t){return function(){return t.selectItem(n,!0),t.close()}}(this)),this.select.selectedIndex===i&&this.selectItem(n,!1),n},t.prototype.buildPicker=function(){var e;return s.each(r(this.select).attributes(),function(t){return function(e,i){return t.container.setAttribute(i,e)}}(this)),this.container.innerHTML=t.TEMPLATE,this.label=this.container.querySelector(".ql-picker-label"),e=this.container.querySelector(".ql-picker-options"),s.each(this.select.options,function(t){return function(i,n){var s;return s=t.buildItem(e,i,n),e.appendChild(s)}}(this))},t.prototype.close=function(){return r(this.container).removeClass("ql-expanded")},t.prototype.selectItem=function(t,e){var i,n;return i=this.container.querySelector(".ql-selected"),null!=i&&r(i).removeClass("ql-selected"),null!=t?(n=t.getAttribute("data-value"),r(t).addClass("ql-selected"),r(this.label).text(r(t).text()),r(this.select).option(n,e),this.label.setAttribute("data-value",n)):(this.label.innerHTML=" ",this.label.removeAttribute("data-value"))},t}(),e.exports=n},{"./dom":17,lodash:1}],20:[function(t,e,i){var n,s;s=t("lodash"),n=function(){function t(t,e){this.start=t,this.end=e}return t.compare=function(t,e){return t===e?!0:null==t||null==e?!1:t.equals(e)},t.prototype.equals=function(t){return null==t?!1:this.start===t.start&&this.end===t.end},t.prototype.shift=function(t,e){var i;return i=s.map([this.start,this.end],function(i){return t>i?i:e>=0?i+e:Math.max(t,i+e)}),this.start=i[0],this.end=i[1],i},t.prototype.isCollapsed=function(){