yavsc/Yavsc/wwwroot/js/quill.min.js

1 line
115 KiB
JavaScript

!function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).Quill=t()}}(function(){return function o(s,l,u){function a(n,t){if(!l[n]){if(!s[n]){var e="function"==typeof require&&require;if(!t&&e)return e(n,!0);if(c)return c(n,!0);var r=new Error("Cannot find module '"+n+"'");throw r.code="MODULE_NOT_FOUND",r}var i=l[n]={exports:{}};s[n][0].call(i.exports,function(t){var e=s[n][1][t];return a(e||t)},i,i.exports,o,s,l,u)}return l[n].exports}for(var c="function"==typeof require&&require,t=0;t<u.length;t++)a(u[t]);return a}({1:[function(t,Rn,Un){(function(Mn){(function(){var w,C=1,k=2,I=4,O=8,t=16,D=32,M=64,R=128,m=256,b="Expected a function",_="__lodash_placeholder__",E="[object Arguments]",T="[object Array]",A="[object Boolean]",x="[object Date]",L="[object Error]",f="[object Function]",e="[object Map]",N="[object Number]",q="[object Object]",S="[object RegExp]",n="[object Set]",U="[object String]",r="[object WeakMap]",p="[object ArrayBuffer]",d="[object Float32Array]",g="[object Float64Array]",v="[object Int8Array]",y="[object Int16Array]",j="[object Int32Array]",B="[object Uint8Array]",F="[object Uint8ClampedArray]",H="[object Uint16Array]",K="[object Uint32Array]",i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\n\\]|\\.)*?\1)\]/,o=/^\w*$/,s=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\n\\]|\\.)*?)\2)\]/g,l=/[.*+?^${}()|[\]\/\\]/g,u=RegExp(l.source),a=/\\(\\)?/g,G=/\w*$/,c=/^\[object .+?Constructor\]$/,h=/^\d+$/,P={};P[d]=P[g]=P[v]=P[y]=P[j]=P[B]=P[F]=P[H]=P[K]=!0,P[E]=P[T]=P[p]=P[A]=P[x]=P[L]=P[f]=P[e]=P[N]=P[q]=P[S]=P[n]=P[U]=P[r]=!1;var z={};z[E]=z[T]=z[p]=z[A]=z[x]=z[d]=z[g]=z[v]=z[y]=z[j]=z[N]=z[q]=z[S]=z[U]=z[B]=z[F]=z[H]=z[K]=!0,z[L]=z[f]=z[e]=z[n]=z[r]=!1;var V={function:!0,object:!0},Y=V[typeof Un]&&Un&&!Un.nodeType&&Un,W=V[typeof Rn]&&Rn&&!Rn.nodeType&&Rn,X=Y&&W&&"object"==typeof Mn&&Mn&&Mn.Object&&Mn,$=V[typeof self]&&self&&self.Object&&self,Z=V[typeof window]&&window&&window.Object&&window,Q=W&&W.exports===Y&&Y,J=X||Z!==(this&&this.window)&&Z||$||this;function tt(t,e,n){if(e!=e)return function(t,e,n){var r=t.length,i=e+(n?0:-1);for(;n?i--:++i<r;){var o=t[i];if(o!=o)return i}return-1}(t,n);for(var r=n-1,i=t.length;++r<i;)if(t[r]===e)return r;return-1}function et(t){return"function"==typeof t||!1}function nt(t){return"string"==typeof t?t:null==t?"":t+""}function rt(t){return!!t&&"object"==typeof t}function it(t,e){for(var n=-1,r=t.length,i=-1,o=[];++n<r;)t[n]===e&&(t[n]=_,o[++i]=n);return o}var ot=Object.prototype,st=(st=J.window)?st.document:null,lt=Function.prototype.toString,ut=ot.hasOwnProperty,at=0,ct=ot.toString,ht=RegExp("^"+Sn(lt.call(ut)).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ft=Le(J,"ArrayBuffer"),pt=Le(ft&&new ft(0),"slice"),dt=Math.floor,gt=Le(Object,"getPrototypeOf"),vt=Le(J,"Set"),yt=Le(J,"Uint8Array"),mt=Le(J,"WeakMap"),bt=function(){try{var t=Le(J,"Float64Array"),e=new t(new ft(10),0,1)&&t}catch(t){}return e||null}(),_t=Le(Object,"create"),Et=Le(Array,"isArray"),Tt=Le(Object,"keys"),At=Math.max,xt=Math.min,Lt=Le(Date,"now"),Nt=Number.POSITIVE_INFINITY,qt=4294967295,St=qt-1,wt=qt>>>1,Ct=bt?bt.BYTES_PER_ELEMENT:0,kt=9007199254740991,It=mt&&new mt,Ot={};function Dt(){}var Mt=Dt.support={};function Rt(t){this.__wrapped__=t,this.__actions__=null,this.__dir__=1,this.__dropCount__=0,this.__filtered__=!1,this.__iteratees__=null,this.__takeCount__=Nt,this.__views__=null}function Ut(t){var e=t?t.length:0;for(this.data={hash:_t(null),set:new vt};e--;)this.push(t[e])}function jt(t,e){var n=t.data;return("string"==typeof e||yn(e)?n.set.has(e):n.hash[e])?0:-1}function Bt(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e}function Ft(t,e){for(var n=-1,r=t.length;++n<r&&!1!==e(t[n],n,t););return t}function Ht(t,e){for(var n=-1,r=t.length;++n<r;)if(!e(t[n],n,t))return!1;return!0}function Kt(t,e){for(var n=-1,r=t.length,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i}function Gt(t,e){for(var n=-1,r=t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}function Pt(t,e){return t===w?e:t}function zt(t,e){return null==e?t:function(t,e,n){n||(n={});var r=-1,i=e.length;for(;++r<i;){var o=e[r];n[o]=t[o]}return n}(e,xn(e),t)}function Vt(t,e,n){var r,i,o,s,l,u=typeof t;return"function"==u?e===w?t:pe(t,e,n):null==t?kn:"object"==u?ue(t):e===w?Dn(t):(i=e,o=pn(r=t),s=we(r)&&ke(i),l=r+"",r=je(r),function(t){if(null==t)return!1;var e=l;if(t=Ue(t),(o||!s)&&!(e in t)){if(null==(t=1==r.length?t:oe(t,he(r,0,-1))))return!1;e=Ke(r),t=Ue(t)}return t[e]===i?i!==w||e in t:se(i,t[e],w,!0)})}function Yt(n,r,i,t,e,o,s){var l;if(i&&(l=e?i(n,t,e):i(n)),l!==w)return l;if(!yn(n))return n;var u=pn(n);if(u){if(l=function(t){var e=t.length,n=new t.constructor(e);e&&"string"==typeof t[0]&&ut.call(t,"index")&&(n.index=t.index,n.input=t.input);return n}(n),!r)return Bt(n,l)}else{var a=ct.call(n),c=a==f;if(a!=q&&a!=E&&(!c||e))return z[a]?function(t,e,n){var r=t.constructor;switch(e){case p:return de(t);case A:case x:return new r(+t);case d:case g:case v:case y:case j:case B:case F:case H:case K:var i=t.buffer;return new r(n?de(i):i,t.byteOffset,t.length);case N:case U:return new r(t);case S:var o=new r(t.source,G.exec(t));o.lastIndex=t.lastIndex}return o}(n,a,r):e?n:{};if(l=function(t){var e=t.constructor;"function"==typeof e&&e instanceof e||(e=Object);return new e}(c?{}:n),!r)return zt(l,n)}o||(o=[]),s||(s=[]);for(var h=o.length;h--;)if(o[h]==n)return s[h];return o.push(n),s.push(l),(u?Ft:ie)(n,function(t,e){l[e]=Yt(t,r,i,e,n,o,s)}),l}!function(t){var e=function(){this.x=1},n=[];for(var r in e.prototype={valueOf:1,y:1},new e)n.push(r);try{Mt.dom=11===st.createDocumentFragment().nodeType}catch(t){Mt.dom=!1}}();var Wt=function(){function n(){}return function(t){if(yn(t)){n.prototype=t;var e=new n;n.prototype=null}return e||{}}}();function Xt(t,e){var n=t?t.length:0,r=[];if(!n)return r;var i=-1,o=Ae(),s=o==tt,l=s&&200<=e.length?ye(e):null,u=e.length;l&&(o=jt,s=!1,e=l);t:for(;++i<n;){var a=t[i];if(s&&a==a){for(var c=u;c--;)if(e[c]===a)continue t;r.push(a)}else o(e,a,0)<0&&r.push(a)}return r}var $t,Zt,Qt=($t=ie,function(t,e){var n=t?xe(t):0;if(!Ce(n))return $t(t,e);for(var r=Zt?n:-1,i=Ue(t);(Zt?r--:++r<n)&&!1!==e(i[r],r,i););return t});function Jt(t,r){var i=!0;return Qt(t,function(t,e,n){return i=!!r(t,e,n)}),i}function te(t,e,n){for(var r=-1,i=t.length,o=-1,s=[];++r<i;){var l=t[r];if(rt(l)&&Ne(l)&&(n||pn(l)||fn(l))){e&&(l=te(l,e,n));for(var u=-1,a=l.length;++u<a;)s[++o]=l[u]}else n||(s[++o]=l)}return s}var ee,ne=function(t,e,n){for(var r=Ue(t),i=n(t),o=i.length,s=ee?o:-1;ee?s--:++s<o;){var l=i[s];if(!1===e(r[l],l,r))break}return t};function re(t,e){return ne(t,e,Ln)}function ie(t,e){return ne(t,e,xn)}function oe(t,e,n){if(null!=t){n!==w&&n in Ue(t)&&(e=[n]);for(var r=0,i=e.length;null!=t&&r<i;)t=t[e[r++]];return r&&r==i?t:w}}function se(t,e,n,r,i,o){return t===e||(null==t||null==e||!yn(t)&&!rt(e)?t!=t&&e!=e:function(t,e,n,r,i,o,s){var l=pn(t),u=pn(e),a=T,c=T;l||((a=ct.call(t))==E?a=q:a!=q&&(l=_n(t)));u||((c=ct.call(e))==E?c=q:c!=q&&(u=_n(e)));var h=a==q,f=c==q,p=a==c;if(p&&!l&&!h)return function(t,e,n){switch(n){case A:case x:return+t==+e;case L:return t.name==e.name&&t.message==e.message;case N:return t!=+t?e!=+e:t==+e;case S:case U:return t==e+""}return!1}(t,e,a);if(!i){var d=h&&ut.call(t,"__wrapped__"),g=f&&ut.call(e,"__wrapped__");if(d||g)return n(d?t.value():t,g?e.value():e,r,i,o,s)}if(!p)return!1;o||(o=[]),s||(s=[]);var v=o.length;for(;v--;)if(o[v]==t)return s[v]==e;o.push(t),s.push(e);var y=(l?function(t,e,n,r,i,o,s){var l=-1,u=t.length,a=e.length;if(u!=a&&!(i&&u<a))return!1;for(;++l<u;){var c=t[l],h=e[l],f=r?r(i?h:c,i?c:h,l):w;if(f!==w){if(f)continue;return!1}if(i){if(!Gt(e,function(t){return c===t||n(c,t,r,i,o,s)}))return!1}else if(c!==h&&!n(c,h,r,i,o,s))return!1}return!0}:function(t,e,n,r,i,o,s){var l=xn(t),u=l.length,a=xn(e).length;if(u!=a&&!i)return!1;var c=u;for(;c--;){var h=l[c];if(!(i?h in e:ut.call(e,h)))return!1}var f=i;for(;++c<u;){h=l[c];var p=t[h],d=e[h],g=r?r(i?d:p,i?p:d,h):w;if(!(g===w?n(p,d,r,i,o,s):g))return!1;f||(f="constructor"==h)}if(!f){var v=t.constructor,y=e.constructor;if(v!=y&&"constructor"in t&&"constructor"in e&&!("function"==typeof v&&v instanceof v&&"function"==typeof y&&y instanceof y))return!1}return!0})(t,e,n,r,i,o,s);return o.pop(),s.pop(),y}(t,e,se,n,r,i,o))}function le(t,r){var i=-1,o=Ne(t)?Array(t.length):[];return Qt(t,function(t,e,n){o[++i]=r(t,e,n)}),o}function ue(t){var e=function(t){var e=qn(t),n=e.length;for(;n--;)e[n][2]=ke(e[n][1]);return e}(t);if(1==e.length&&e[0][2]){var n=e[0][0],r=e[0][1];return function(t){return null!=t&&(t[n]===r&&(r!==w||n in Ue(t)))}}return function(t){return function(t,e,n){var r=e.length,i=r,o=!n;if(null==t)return!i;for(t=Ue(t);r--;){var s=e[r];if(o&&s[2]?s[1]!==t[s[0]]:!(s[0]in t))return!1}for(;++r<i;){var l=(s=e[r])[0],u=t[l],a=s[1];if(o&&s[2]){if(u===w&&!(l in t))return!1}else{var c=n?n(u,a,l):w;if(!(c===w?se(a,u,n,!0):c))return!1}}return!0}(t,e)}}function ae(e){return function(t){return null==t?w:t[e]}}var ce=It?function(t,e){return It.set(t,e),t}:kn;function he(t,e,n){var r=-1,i=t.length;(e=null==e?0:+e||0)<0&&(e=i<-e?0:i+e),(n=n===w||i<n?i:+n||0)<0&&(n+=i),i=n<e?0:n-e>>>0,e>>>=0;for(var o=Array(i);++r<i;)o[r]=t[r+e];return o}function fe(t,e,n){var r=0,i=t?t.length:r;if("number"==typeof e&&e==e&&i<=wt){for(;r<i;){var o=r+i>>>1,s=t[o];(n?s<=e:s<e)&&null!==s?r=o+1:i=o}return i}return function(t,e,n,r){e=n(e);var i=0,o=t?t.length:0,s=e!=e,l=null===e,u=e===w;for(;i<o;){var a=dt((i+o)/2),c=n(t[a]),h=c!==w,f=c==c;if(s)var p=f||r;else p=l?f&&h&&(r||null!=c):u?f&&(r||h):null!=c&&(r?c<=e:c<e);p?i=a+1:o=a}return xt(o,St)}(t,e,kn,n)}function pe(o,s,t){if("function"!=typeof o)return kn;if(s===w)return o;switch(t){case 1:return function(t){return o.call(s,t)};case 3:return function(t,e,n){return o.call(s,t,e,n)};case 4:return function(t,e,n,r){return o.call(s,t,e,n,r)};case 5:return function(t,e,n,r,i){return o.call(s,t,e,n,r,i)}}return function(){return o.apply(s,arguments)}}function de(t){return pt.call(t,0)}function ge(t,e,n){for(var r=n.length,i=-1,o=At(t.length-r,0),s=-1,l=e.length,u=Array(o+l);++s<l;)u[s]=e[s];for(;++i<r;)u[n[i]]=t[i];for(;o--;)u[s++]=t[i++];return u}function ve(t,e,n){for(var r=-1,i=n.length,o=-1,s=At(t.length-i,0),l=-1,u=e.length,a=Array(s+u);++o<s;)a[o]=t[o];for(var c=o;++l<u;)a[c+l]=e[l];for(;++r<i;)a[c+n[r]]=t[o++];return a}pt||(de=ft&&yt?function(t){var e=t.byteLength,n=bt?dt(e/Ct):0,r=n*Ct,i=new ft(e);if(n){var o=new bt(i,0,n);o.set(new bt(t,0,n))}return e!=r&&(o=new yt(i,r)).set(new yt(t,r)),i}:Cn(null));var ye=_t&&vt?function(t){return new Ut(t)}:Cn(null);function me(r){return function(){var t=arguments;switch(t.length){case 0:return new r;case 1:return new r(t[0]);case 2:return new r(t[0],t[1]);case 3:return new r(t[0],t[1],t[2]);case 4:return new r(t[0],t[1],t[2],t[3]);case 5:return new r(t[0],t[1],t[2],t[3],t[4])}var e=Wt(r.prototype),n=r.apply(e,t);return yn(n)?n:e}}function be(f,p,d,g,v,y,m,b,_,E){var T=p&R,A=p&C,x=p&k,L=p&O,N=p&I,q=p&t,S=x?null:me(f);return function t(){for(var e=arguments.length,n=e,r=Array(e);n--;)r[n]=arguments[n];if(g&&(r=ge(r,g,v)),y&&(r=ve(r,y,m)),L||q){var i=t.placeholder,o=it(r,i);if((e-=o.length)<E){var s=b?Bt(b):null,l=At(E-e,0);p|=L?D:M,p&=~(L?M:D),N||(p&=~(C|k));var u=[f,p,d,L?r:null,L?o:null,L?null:r,L?null:o,s,_,l],a=be.apply(w,u);return function(t){var e=function(t){for(var e=t.name,n=Ot[e],r=n?n.length:0;r--;){var i=n[r],o=i.func;if(null==o||o==t)return i.name}return e}(t);if(!(e in Rt.prototype))return!1;var n=Dt[e];if(t===n)return!0;var r=Te(n);return!!r&&t===r[0]}(f)&&De(a,u),a.placeholder=i,a}}var c=A?d:this,h=x?c[f]:f;return b&&(r=function(t,e){for(var n=t.length,r=xt(e.length,n),i=Bt(t);r--;){var o=e[r];t[r]=qe(o,n)?i[o]:w}return t}(r,b)),T&&_<r.length&&(r.length=_),this&&this!==J&&this instanceof t&&(h=S||me(f)),h.apply(c,r)}}function _e(t,e,n,r,i,o,s,l){var u=e&k;if(!u&&"function"!=typeof t)throw new TypeError(b);var a=r?r.length:0;if(a||(e&=~(D|M),r=i=null),a-=i?i.length:0,e&M){var c=r,h=i;r=i=null}var f,p,d,g=u?null:Te(t),v=[t,e,n,r,i,c,h,o,s,l];if(g&&(!function(t,e){var n=t[1],r=e[1],i=n|r,o=i<R,s=r==R&&n==O||r==R&&n==m&&t[7].length<=e[8]||r==(R|m)&&n==O;if(!o&&!s)return;r&C&&(t[2]=e[2],i|=n&C?0:I);var l=e[3];if(l){var u=t[3];t[3]=u?ge(u,l,e[4]):Bt(l),t[4]=u?it(t[3],_):Bt(e[4])}(l=e[5])&&(u=t[5],t[5]=u?ve(u,l,e[6]):Bt(l),t[6]=u?it(t[5],_):Bt(e[6]));(l=e[7])&&(t[7]=Bt(l));r&R&&(t[8]=null==t[8]?e[8]:xt(t[8],e[8]));null==t[9]&&(t[9]=e[9]);t[0]=e[0],t[1]=i}(v,g),e=v[1],l=v[9]),v[9]=null==l?u?0:t.length:At(l-a,0)||0,e==C)var y=(f=v[0],p=v[2],d=me(f),function t(){return(this&&this!==J&&this instanceof t?d:f).apply(p,arguments)});else y=e!=D&&e!=(C|D)||v[4].length?be.apply(w,v):function(s,t,l,u){var a=t&C,c=me(s);return function t(){for(var e=-1,n=arguments.length,r=-1,i=u.length,o=Array(n+i);++r<i;)o[r]=u[r];for(;n--;)o[r++]=arguments[++e];return(this&&this!==J&&this instanceof t?c:s).apply(a?l:this,o)}}.apply(w,v);return(g?ce:De)(y,v)}function Ee(t,e,n){var r=Dt.callback||wn;return r=r===wn?Vt:r,n?r(t,e,n):r}var Te=It?function(t){return It.get(t)}:On;function Ae(t,e,n){var r=Dt.indexOf||Fe;return r=r===Fe?tt:r,t?r(t,e,n):r}var xe=ae("length");function Le(t,e){var n=null==t?w:t[e];return mn(n)?n:w}function Ne(t){return null!=t&&Ce(xe(t))}function qe(t,e){return t="number"==typeof t||h.test(t)?+t:-1,e=null==e?kt:e,-1<t&&t%1==0&&t<e}function Se(t,e,n){if(!yn(n))return!1;var r=typeof e;if("number"==r?Ne(n)&&qe(e,n.length):"string"==r&&e in n){var i=n[e];return t==t?t===i:i!=i}return!1}function we(t,e){var n=typeof t;return!!("string"==n&&o.test(t)||"number"==n)||!pn(t)&&(!i.test(t)||null!=e&&t in Ue(e))}function Ce(t){return"number"==typeof t&&-1<t&&t%1==0&&t<=kt}function ke(t){return t==t&&!yn(t)}var Ie,Oe,De=(Oe=Ie=0,function(t,e){var n=ln(),r=16-(n-Oe);if(Oe=n,0<r){if(150<=++Ie)return t}else Ie=0;return ce(t,e)});function Me(t){var e,n;return!(!rt(t)||ct.call(t)!=q||!(ut.call(t,"constructor")||"function"!=typeof(e=t.constructor)||e instanceof e))&&(re(t,function(t,e){n=e}),n===w||ut.call(t,n))}function Re(t){for(var e=Ln(t),n=e.length,r=n&&t.length,i=!!r&&Ce(r)&&(pn(t)||fn(t)),o=-1,s=[];++o<n;){var l=e[o];(i&&qe(l,r)||ut.call(t,l))&&s.push(l)}return s}function Ue(t){return yn(t)?t:Object(t)}function je(t){if(pn(t))return t;var i=[];return nt(t).replace(s,function(t,e,n,r){i.push(n?r.replace(a,"$1"):e||t)}),i}var Be=hn(function(t,e){return Ne(t)?Xt(t,te(e,!1,!0)):[]});function Fe(t,e,n){var r=t?t.length:0;if(!r)return-1;if("number"==typeof n)n=n<0?At(r+n,0):n;else if(n){var i=fe(t,e),o=t[i];return(e==e?e===o:o!=o)?i:-1}return tt(t,e,n||0)}var He=hn(function(t){for(var e=t.length,n=e,r=Array(c),i=Ae(),o=i==tt,s=[];n--;){var l=t[n]=Ne(l=t[n])?l:[];r[n]=o&&120<=l.length?ye(n&&l):null}var u=t[0],a=-1,c=u?u.length:0,h=r[0];t:for(;++a<c;)if(l=u[a],(h?jt(h,l):i(s,l,0))<0){for(n=e;--n;){var f=r[n];if((f?jt(f,l):i(t[n],l,0))<0)continue t}h&&h.push(l),s.push(l)}return s});function Ke(t){var e=t?t.length:0;return e?t[e-1]:w}function Ge(t,e,n){var r=pn(t)?Ht:Jt;return n&&Se(t,e,n)&&(e=null),"function"==typeof e&&n===w||(e=Ee(e,n,3)),r(t,e)}var Pe,ze,Ve,Ye,We=(Pe=Qt,function(t,e,n){if(e=Ee(e,n,3),pn(t)){var r=function(t,e,n){for(var r=t.length,i=n?r:-1;n?i--:++i<r;)if(e(t[i],i,t))return i;return-1}(t,e,ze);return-1<r?t[r]:w}return i=e,Pe(t,function(t,e,n){if(i(t,e,n))return s=o?e:t,!1}),s;var i,o,s}),Xe=(Ve=Ft,Ye=Qt,function(t,e,n){return"function"==typeof e&&n===w&&pn(t)?Ve(t,e):Ye(t,pe(e,n,3))}),$e=hn(function(t,n,r){var i=-1,o="function"==typeof n,s=we(n),l=Ne(t)?Array(t.length):[];return Qt(t,function(t){var e=o?n:s&&null!=t?t[n]:null;l[++i]=e?e.apply(t,r):function(t,e,n){null==t||we(e,t)||(t=1==(e=je(e)).length?t:oe(t,he(e,0,-1)),e=Ke(e));var r=null==t?t:t[e];return null==r?w:r.apply(t,n)}(t,n,r)}),l});function Ze(t,e,n){return(pn(t)?Kt:le)(t,e=Ee(e,n,3))}var Qe,Je,tn,en,nn,rn,on=(Qe=function(t,e,n){t[n?0:1].push(e)},Je=function(){return[[],[]]},function(t,r,e){var i=Je?Je():{};if(r=Ee(r,e,3),pn(t))for(var n=-1,o=t.length;++n<o;){var s=t[n];Qe(i,s,r(s,n,t),t)}else Qt(t,function(t,e,n){Qe(i,t,r(t,e,n),n)});return i}),sn=(tn=function(t,e,n,r){var i=-1,o=t.length;for(r&&o&&(n=t[++i]);++i<o;)n=e(n,t[i],i,t);return n},en=Qt,function(t,e,n,r){var i,o,s,l,u=arguments.length<3;return"function"==typeof e&&r===w&&pn(t)?tn(t,e,n,u):(i=t,o=Ee(e,r,4),s=n,l=u,en(i,function(t,e,n){s=l?(l=!1,t):o(s,t,e,n)}),s)}),ln=Lt||function(){return(new Date).getTime()},un=hn(function(t,e,n){var r=C;if(n.length){var i=it(n,un.placeholder);r|=D}return _e(t,r,e,n,i)}),an=hn(function(t,e){return function(t,e,n){if("function"!=typeof t)throw new TypeError(b);return setTimeout(function(){t.apply(w,n)},e)}(t,1,e)}),cn=(nn=D,rn=hn(function(t,e){var n=it(e,rn.placeholder);return _e(t,nn,null,e,n)}));function hn(o,s){if("function"!=typeof o)throw new TypeError(b);return s=At(s===w?o.length-1:+s||0,0),function(){for(var t=arguments,e=-1,n=At(t.length-s,0),r=Array(n);++e<n;)r[e]=t[s+e];switch(s){case 0:return o.call(this,r);case 1:return o.call(this,t[0],r);case 2:return o.call(this,t[0],t[1],r)}var i=Array(s+1);for(e=-1;++e<s;)i[e]=t[e];return i[s]=r,o.apply(this,i)}}function fn(t){return rt(t)&&Ne(t)&&ct.call(t)==E}var pn=Et||function(t){return rt(t)&&Ce(t.length)&&ct.call(t)==T};function dn(t){return!!t&&1===t.nodeType&&rt(t)&&-1<ct.call(t).indexOf("Element")}function gn(t,e,n,r){var i=(n="function"==typeof n?pe(n,r,3):w)?n(t,e):w;return i===w?se(t,e,n):!!i}Mt.dom||(dn=function(t){return!!t&&1===t.nodeType&&rt(t)&&!bn(t)});var vn=et(/x/)||yt&&!et(yt)?function(t){return ct.call(t)==f}:et;function yn(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function mn(t){return null!=t&&(ct.call(t)==f?ht.test(lt.call(t)):rt(t)&&c.test(t))}var bn=gt?function(t){if(!t||ct.call(t)!=q)return!1;var e=Le(t,"valueOf"),n=e&&(n=gt(e))&&gt(n);return n?t==n||gt(t)==n:Me(t)}:Me;function _n(t){return rt(t)&&Ce(t.length)&&!!P[ct.call(t)]}var En,Tn=(En=function(t,e,n){return n?function(t,e,n){for(var r=-1,i=xn(e),o=i.length;++r<o;){var s=i[r],l=t[s],u=n(l,e[s],s,t,e);(u==u?u===l:l!=l)&&(l!==w||s in t)||(t[s]=u)}return t}(t,e,n):zt(t,e)},hn(function(t,e){var n=-1,r=null==t?0:e.length,i=2<r?e[r-2]:w,o=2<r?e[2]:w,s=1<r?e[r-1]:w;for("function"==typeof i?(i=pe(i,s,5),r-=2):r-=(i="function"==typeof s?s:w)?1:0,o&&Se(e[0],e[1],o)&&(i=r<3?w:i,r=1);++n<r;){var l=e[n];l&&En(t,l,i)}return t})),An=hn(function(t){var e=t[0];return null==e?e:(t.push(Pt),Tn.apply(w,t))}),xn=Tt?function(t){var e=null==t?null:t.constructor;return"function"==typeof e&&e.prototype===t||"function"!=typeof t&&Ne(t)?Re(t):yn(t)?Tt(t):[]}:Re;function Ln(t){if(null==t)return[];yn(t)||(t=Object(t));var e=t.length;e=e&&Ce(e)&&(pn(t)||fn(t))&&e||0;for(var n=t.constructor,r=-1,i="function"==typeof n&&n.prototype===t,o=Array(e),s=0<e;++r<e;)o[r]=r+"";for(var l in t)s&&qe(l,e)||"constructor"==l&&(i||!ut.call(t,l))||o.push(l);return o}var Nn=hn(function(t,e){if(null==t)return{};if("function"!=typeof e[0]){e=Kt(te(e),String);return function(t,e){t=Ue(t);for(var n=-1,r=e.length,i={};++n<r;){var o=e[n];o in t&&(i[o]=t[o])}return i}(t,Xt(Ln(t),e))}var r,i,o=pe(e[0],e[1],3);return r=function(t,e,n){return!o(t,e,n)},i={},re(t,function(t,e,n){r(t,e,n)&&(i[e]=t)}),i});function qn(t){t=Ue(t);for(var e=-1,n=xn(t),r=n.length,i=Array(r);++e<r;){var o=n[e];i[e]=[o,t[o]]}return i}function Sn(t){return(t=nt(t))&&u.test(t)?t.replace(l,"\\$&"):t}function wn(t,e,n){return n&&Se(t,e,n)&&(e=null),rt(t)?In(t):Vt(t,e)}function Cn(t){return function(){return t}}function kn(t){return t}function In(t){return ue(Yt(t,!0))}function On(){}function Dn(t){return we(t)?ae(t):(n=(e=t)+"",e=je(e),function(t){return oe(t,e,n)});var e,n}(Rt.prototype=Wt(function(){}.prototype)).constructor=Rt,Ut.prototype.push=function(t){var e=this.data;"string"==typeof t||yn(t)?e.set.add(t):e.hash[t]=!0},Dt.assign=Tn,Dt.bind=un,Dt.callback=wn,Dt.constant=Cn,Dt.defaults=An,Dt.defer=an,Dt.difference=Be,Dt.forEach=Xe,Dt.intersection=He,Dt.invoke=$e,Dt.keys=xn,Dt.keysIn=Ln,Dt.map=Ze,Dt.matches=In,Dt.omit=Nn,Dt.pairs=qn,Dt.partial=cn,Dt.partition=on,Dt.property=Dn,Dt.restParam=hn,Dt.values=function(t){return function(t,e){for(var n=-1,r=e.length,i=Array(r);++n<r;)i[n]=t[e[n]];return i}(t,xn(t))},Dt.collect=Ze,Dt.each=Xe,Dt.extend=Tn,Dt.iteratee=wn,Dt.clone=function(t,e,n,r){return e&&"boolean"!=typeof e&&Se(t,e,n)?e=!1:"function"==typeof e&&(r=n,n=e,e=!1),"function"==typeof n?Yt(t,e,pe(n,r,1)):Yt(t,e)},Dt.escapeRegExp=Sn,Dt.every=Ge,Dt.find=We,Dt.identity=kn,Dt.indexOf=Fe,Dt.isArguments=fn,Dt.isArray=pn,Dt.isElement=dn,Dt.isEqual=gn,Dt.isFunction=vn,Dt.isNative=mn,Dt.isNumber=function(t){return"number"==typeof t||rt(t)&&ct.call(t)==N},Dt.isObject=yn,Dt.isPlainObject=bn,Dt.isString=function(t){return"string"==typeof t||rt(t)&&ct.call(t)==U},Dt.isTypedArray=_n,Dt.last=Ke,Dt.noop=On,Dt.now=ln,Dt.reduce=sn,Dt.uniqueId=function(t){var e=++at;return nt(t)+e},Dt.all=Ge,Dt.eq=gn,Dt.detect=We,Dt.foldl=sn,Dt.inject=sn,Dt.VERSION="3.9.3",Ft(["bind","partial"],function(t){Dt[t].placeholder=Dt}),Y&&W?Q?(W.exports=Dt)._=Dt:Y._=Dt:J._=Dt}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],2:[function(t,e,r){!function(t){var c=Array.isArray?Array.isArray:function(t){return"[object Array]"===Object.prototype.toString.call(t)},l=10;function u(){this._events={},this._conf&&e.call(this,this._conf)}function e(t){t&&((this._conf=t).delimiter&&(this.delimiter=t.delimiter),t.maxListeners&&(this._events.maxListeners=t.maxListeners),t.wildcard&&(this.wildcard=t.wildcard),t.newListener&&(this.newListener=t.newListener),this.wildcard&&(this.listenerTree={}))}function n(t){this._events={},this.newListener=!1,e.call(this,t)}function g(t,e,n,r){if(!n)return[];var i,o,s,l,u,a,c,h=[],f=e.length,p=e[r],d=e[r+1];if(r===f&&n._listeners){if("function"==typeof n._listeners)return t&&t.push(n._listeners),[n];for(i=0,o=n._listeners.length;i<o;i++)t&&t.push(n._listeners[i]);return[n]}if("*"===p||"**"===p||n[p]){if("*"===p){for(s in n)"_listeners"!==s&&n.hasOwnProperty(s)&&(h=h.concat(g(t,e,n[s],r+1)));return h}if("**"===p){for(s in(c=r+1===f||r+2===f&&"*"===d)&&n._listeners&&(h=h.concat(g(t,e,n,f))),n)"_listeners"!==s&&n.hasOwnProperty(s)&&("*"===s||"**"===s?(n[s]._listeners&&!c&&(h=h.concat(g(t,e,n[s],f))),h=h.concat(g(t,e,n[s],r))):h=s===d?h.concat(g(t,e,n[s],r+2)):h.concat(g(t,e,n[s],r)));return h}h=h.concat(g(t,e,n[p],r+1))}if((l=n["*"])&&g(t,e,l,r+1),u=n["**"])if(r<f)for(s in u._listeners&&g(t,e,u,f),u)"_listeners"!==s&&u.hasOwnProperty(s)&&(s===d?g(t,e,u[s],r+2):s===p?g(t,e,u[s],r+1):((a={})[s]=u[s],g(t,e,{"**":a},r+1)));else u._listeners?g(t,e,u,f):u["*"]&&u["*"]._listeners&&g(t,e,u["*"],f);return h}n.prototype.delimiter=".",n.prototype.setMaxListeners=function(t){this._events||u.call(this),this._events.maxListeners=t,this._conf||(this._conf={}),this._conf.maxListeners=t},n.prototype.event="",n.prototype.once=function(t,e){return this.many(t,1,e),this},n.prototype.many=function(t,e,n){var r=this;if("function"!=typeof n)throw new Error("many only accepts instances of Function");function i(){0==--e&&r.off(t,i),n.apply(this,arguments)}return i._origin=n,this.on(t,i),r},n.prototype.emit=function(){this._events||u.call(this);var t,e=arguments[0];if("newListener"===e&&!this.newListener&&!this._events.newListener)return!1;if(this._all){for(var n=arguments.length,r=new Array(n-1),i=1;i<n;i++)r[i-1]=arguments[i];for(i=0,n=this._all.length;i<n;i++)this.event=e,this._all[i].apply(this,r)}if("error"===e&&!(this._all||this._events.error||this.wildcard&&this.listenerTree.error))throw arguments[1]instanceof Error?arguments[1]:new Error("Uncaught, unspecified 'error' event.");if(this.wildcard){t=[];var o="string"==typeof e?e.split(this.delimiter):e.slice();g.call(this,t,o,this.listenerTree,0)}else t=this._events[e];if("function"==typeof t){if(this.event=e,1===arguments.length)t.call(this);else if(1<arguments.length)switch(arguments.length){case 2:t.call(this,arguments[1]);break;case 3:t.call(this,arguments[1],arguments[2]);break;default:for(n=arguments.length,r=new Array(n-1),i=1;i<n;i++)r[i-1]=arguments[i];t.apply(this,r)}return!0}if(t){for(n=arguments.length,r=new Array(n-1),i=1;i<n;i++)r[i-1]=arguments[i];var s=t.slice();for(i=0,n=s.length;i<n;i++)this.event=e,s[i].apply(this,r);return 0<s.length||!!this._all}return!!this._all},n.prototype.on=function(t,e){if("function"==typeof t)return this.onAny(t),this;if("function"!=typeof e)throw new Error("on only accepts instances of Function");if(this._events||u.call(this),this.emit("newListener",t,e),this.wildcard)return function(t,e){for(var n=0,r=(t="string"==typeof t?t.split(this.delimiter):t.slice()).length;n+1<r;n++)if("**"===t[n]&&"**"===t[n+1])return;for(var i=this.listenerTree,o=t.shift();o;){if(i[o]||(i[o]={}),i=i[o],0===t.length){if(i._listeners){if("function"==typeof i._listeners)i._listeners=[i._listeners,e];else if(c(i._listeners)&&(i._listeners.push(e),!i._listeners.warned)){var s=l;void 0!==this._events.maxListeners&&(s=this._events.maxListeners),0<s&&i._listeners.length>s&&(i._listeners.warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",i._listeners.length),console.trace())}}else i._listeners=e;return!0}o=t.shift()}return!0}.call(this,t,e),this;if(this._events[t]){if("function"==typeof this._events[t])this._events[t]=[this._events[t],e];else if(c(this._events[t])&&(this._events[t].push(e),!this._events[t].warned)){var n=l;void 0!==this._events.maxListeners&&(n=this._events.maxListeners),0<n&&this._events[t].length>n&&(this._events[t].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[t].length),console.trace())}}else this._events[t]=e;return this},n.prototype.onAny=function(t){if("function"!=typeof t)throw new Error("onAny only accepts instances of Function");return this._all||(this._all=[]),this._all.push(t),this},n.prototype.addListener=n.prototype.on,n.prototype.off=function(t,e){if("function"!=typeof e)throw new Error("removeListener only takes instances of Function");var n,r=[];if(this.wildcard){var i="string"==typeof t?t.split(this.delimiter):t.slice();r=g.call(this,null,i,this.listenerTree,0)}else{if(!this._events[t])return this;n=this._events[t],r.push({_listeners:n})}for(var o=0;o<r.length;o++){var s=r[o];if(n=s._listeners,c(n)){for(var l=-1,u=0,a=n.length;u<a;u++)if(n[u]===e||n[u].listener&&n[u].listener===e||n[u]._origin&&n[u]._origin===e){l=u;break}if(l<0)continue;return this.wildcard?s._listeners.splice(l,1):this._events[t].splice(l,1),0===n.length&&(this.wildcard?delete s._listeners:delete this._events[t]),this}(n===e||n.listener&&n.listener===e||n._origin&&n._origin===e)&&(this.wildcard?delete s._listeners:delete this._events[t])}return this},n.prototype.offAny=function(t){var e,n=0,r=0;if(t&&this._all&&0<this._all.length){for(n=0,r=(e=this._all).length;n<r;n++)if(t===e[n])return e.splice(n,1),this}else this._all=[];return this},n.prototype.removeListener=n.prototype.off,n.prototype.removeAllListeners=function(t){if(0===arguments.length)return!this._events||u.call(this),this;if(this.wildcard)for(var e="string"==typeof t?t.split(this.delimiter):t.slice(),n=g.call(this,null,e,this.listenerTree,0),r=0;r<n.length;r++){n[r]._listeners=null}else{if(!this._events[t])return this;this._events[t]=null}return this},n.prototype.listeners=function(t){if(this.wildcard){var e=[],n="string"==typeof t?t.split(this.delimiter):t.slice();return g.call(this,e,n,this.listenerTree,0),e}return this._events||u.call(this),this._events[t]||(this._events[t]=[]),c(this._events[t])||(this._events[t]=[this._events[t]]),this._events[t]},n.prototype.listenersAny=function(){return this._all?this._all:[]},"object"==typeof r?r.EventEmitter2=n:window.EventEmitter2=n}()},{}],3:[function(t,e,n){var u=t("fast-diff"),a=t("./is"),c=t("./op"),i=String.fromCharCode(0),h=function(t){a.array(t)?this.ops=t:a.object(t)&&a.array(t.ops)?this.ops=t.ops:this.ops=[]};h.prototype.insert=function(t,e){var n={};return 0===t.length?this:(n.insert=t,a.object(e)&&0<Object.keys(e).length&&(n.attributes=e),this.push(n))},h.prototype.delete=function(t){return t<=0?this:this.push({delete:t})},h.prototype.retain=function(t,e){if(t<=0)return this;var n={retain:t};return a.object(e)&&0<Object.keys(e).length&&(n.attributes=e),this.push(n)},h.prototype.push=function(t){var e=this.ops.length,n=this.ops[e-1];if(t=c.clone(t),a.object(n)){if(a.number(t.delete)&&a.number(n.delete))return this.ops[e-1]={delete:n.delete+t.delete},this;if(a.number(n.delete)&&null!=t.insert&&(e-=1,n=this.ops[e-1],!a.object(n)))return this.ops.unshift(t),this;if(a.equal(t.attributes,n.attributes)){if(a.string(t.insert)&&a.string(n.insert))return this.ops[e-1]={insert:n.insert+t.insert},a.object(t.attributes)&&(this.ops[e-1].attributes=t.attributes),this;if(a.number(t.retain)&&a.number(n.retain))return this.ops[e-1]={retain:n.retain+t.retain},a.object(t.attributes)&&(this.ops[e-1].attributes=t.attributes),this}}return e===this.ops.length?this.ops.push(t):this.ops.splice(e,0,t),this},h.prototype.chop=function(){var t=this.ops[this.ops.length-1];return t&&t.retain&&!t.attributes&&this.ops.pop(),this},h.prototype.length=function(){return this.ops.reduce(function(t,e){return t+c.length(e)},0)},h.prototype.slice=function(t,e){t=t||0,a.number(e)||(e=1/0);for(var n=new h,r=c.iterator(this.ops),i=0;i<e&&r.hasNext();){var o;i<t?o=r.next(t-i):(o=r.next(e-i),n.push(o)),i+=c.length(o)}return n},h.prototype.compose=function(t){for(var e=c.iterator(this.ops),n=c.iterator(t.ops),r=new h;e.hasNext()||n.hasNext();)if("insert"===n.peekType())r.push(n.next());else if("delete"===e.peekType())r.push(e.next());else{var i=Math.min(e.peekLength(),n.peekLength()),o=e.next(i),s=n.next(i);if(a.number(s.retain)){var l={};a.number(o.retain)?l.retain=i:l.insert=o.insert;var u=c.attributes.compose(o.attributes,s.attributes,a.number(o.retain));u&&(l.attributes=u),r.push(l)}else a.number(s.delete)&&a.number(o.retain)&&r.push(s)}return r.chop()},h.prototype.concat=function(t){var e=this.slice();return 0<t.ops.length&&(e.push(t.ops[0]),e.ops=e.ops.concat(t.ops.slice(1))),e},h.prototype.diff=function(r){var o=new h;if(this.ops===r.ops)return o;var t=[this.ops,r.ops].map(function(n){return n.map(function(t){if(null!=t.insert)return a.string(t.insert)?t.insert:i;var e=n===r.ops?"on":"with";throw new Error("diff() called "+e+" non-document")}).join("")}),e=u(t[0],t[1]),s=c.iterator(this.ops),l=c.iterator(r.ops);return e.forEach(function(t){for(var e=t[1].length;0<e;){var n=0;switch(t[0]){case u.INSERT:n=Math.min(l.peekLength(),e),o.push(l.next(n));break;case u.DELETE:n=Math.min(e,s.peekLength()),s.next(n),o.delete(n);break;case u.EQUAL:n=Math.min(s.peekLength(),l.peekLength(),e);var r=s.next(n),i=l.next(n);a.equal(r.insert,i.insert)?o.retain(n,c.attributes.diff(r.attributes,i.attributes)):o.push(i).delete(n)}e-=n}}),o.chop()},h.prototype.transform=function(t,e){if(e=!!e,a.number(t))return this.transformPosition(t,e);for(var n=c.iterator(this.ops),r=c.iterator(t.ops),i=new h;n.hasNext()||r.hasNext();)if("insert"!==n.peekType()||!e&&"insert"===r.peekType())if("insert"===r.peekType())i.push(r.next());else{var o=Math.min(n.peekLength(),r.peekLength()),s=n.next(o),l=r.next(o);if(s.delete)continue;l.delete?i.push(l):i.retain(o,c.attributes.transform(s.attributes,l.attributes,e))}else i.retain(c.length(n.next()));return i.chop()},h.prototype.transformPosition=function(t,e){e=!!e;for(var n=c.iterator(this.ops),r=0;n.hasNext()&&r<=t;){var i=n.peekLength(),o=n.peekType();n.next(),"delete"!==o?("insert"===o&&(r<t||!e)&&(t+=i),r+=i):t-=Math.min(i,t-r)}return t},e.exports=h},{"./is":4,"./op":5,"fast-diff":6}],4:[function(t,e,n){e.exports={equal:function(t,e){if(t===e)return!0;if(null==t&&null==e)return!0;if(null==t||null==e)return!1;if(!this.object(t)||!this.object(e))return!1;if(Object.keys(t).length!=Object.keys(e).length)return!1;for(var n in t)if(t[n]!==e[n])return!1;return!0},array:function(t){return Array.isArray(t)},number:function(t){return"number"==typeof t||"object"==typeof t&&"[object Number]"===Object.prototype.toString.call(t)},object:function(t){return!!t&&("function"==typeof t||"object"==typeof t)},string:function(t){return"string"==typeof t||"object"==typeof t&&"[object String]"===Object.prototype.toString.call(t)}}},{}],5:[function(t,e,n){var o=t("./is"),s={attributes:{clone:function(n,r){return o.object(n)?Object.keys(n).reduce(function(t,e){return void 0===n[e]||null===n[e]&&!r||(t[e]=n[e]),t},{}):{}},compose:function(t,e,n){o.object(t)||(t={}),o.object(e)||(e={});var r=this.clone(e,n);for(var i in t)void 0!==t[i]&&void 0===e[i]&&(r[i]=t[i]);return 0<Object.keys(r).length?r:void 0},diff:function(n,r){o.object(n)||(n={}),o.object(r)||(r={});var t=Object.keys(n).concat(Object.keys(r)).reduce(function(t,e){return n[e]!==r[e]&&(t[e]=void 0===r[e]?null:r[e]),t},{});return 0<Object.keys(t).length?t:void 0},transform:function(n,r,t){if(!o.object(n))return r;if(o.object(r)){if(!t)return r;var e=Object.keys(r).reduce(function(t,e){return void 0===n[e]&&(t[e]=r[e]),t},{});return 0<Object.keys(e).length?e:void 0}}},clone:function(t){var e=this.attributes.clone(t);return o.object(e.attributes)&&(e.attributes=this.attributes.clone(e.attributes,!0)),e},iterator:function(t){return new r(t)},length:function(t){return o.number(t.delete)?t.delete:o.number(t.retain)?t.retain:o.string(t.insert)?t.insert.length:1}};function r(t){this.ops=t,this.index=0,this.offset=0}r.prototype.hasNext=function(){return this.peekLength()<1/0},r.prototype.next=function(t){t||(t=1/0);var e=this.ops[this.index];if(e){var n=this.offset,r=s.length(e);if(r-n<=t?(t=r-n,this.index+=1,this.offset=0):this.offset+=t,o.number(e.delete))return{delete:t};var i={};return e.attributes&&(i.attributes=e.attributes),o.number(e.retain)?i.retain=t:o.string(e.insert)?i.insert=e.insert.substr(n,t):i.insert=e.insert,i}return{retain:1/0}},r.prototype.peekLength=function(){return this.ops[this.index]?s.length(this.ops[this.index])-this.offset:1/0},r.prototype.peekType=function(){return this.ops[this.index]?o.number(this.ops[this.index].delete)?"delete":o.number(this.ops[this.index].retain)?"retain":"insert":"retain"},e.exports=s},{"./is":4}],6:[function(t,e,n){var L=-1,N=1,d=0;function g(t,e){if(t==e)return t?[[d,t]]:[];var n=v(t,e),r=t.substring(0,n);n=y(t=t.substring(n),e=e.substring(n));var i=t.substring(t.length-n),o=function(t,e){var n;if(!t)return[[N,e]];if(!e)return[[L,t]];var r=t.length>e.length?t:e,i=t.length>e.length?e:t,o=r.indexOf(i);if(-1!=o)return n=[[N,r.substring(0,o)],[d,i],[N,r.substring(o+i.length)]],t.length>e.length&&(n[0][0]=n[2][0]=L),n;if(1==i.length)return[[L,t],[N,e]];var s=function(t,e){var n=t.length>e.length?t:e,r=t.length>e.length?e:t;if(n.length<4||2*r.length<n.length)return null;function i(t,e,n){for(var r,i,o,s,l=t.substring(n,n+Math.floor(t.length/4)),u=-1,a="";-1!=(u=e.indexOf(l,u+1));){var c=v(t.substring(n),e.substring(u)),h=y(t.substring(0,n),e.substring(0,u));a.length<h+c&&(a=e.substring(u-h,u)+e.substring(u,u+c),r=t.substring(0,n-h),i=t.substring(n+c),o=e.substring(0,u-h),s=e.substring(u+c))}return 2*a.length>=t.length?[r,i,o,s,a]:null}var o,s,l,u,a,c=i(n,r,Math.ceil(n.length/4)),h=i(n,r,Math.ceil(n.length/2));{if(!c&&!h)return null;o=h?c&&c[4].length>h[4].length?c:h:c}t.length>e.length?(s=o[0],l=o[1],u=o[2],a=o[3]):(u=o[0],a=o[1],s=o[2],l=o[3]);var f=o[4];return[s,l,u,a,f]}(t,e);if(s){var l=s[0],u=s[1],a=s[2],c=s[3],h=s[4],f=g(l,a),p=g(u,c);return f.concat([[d,h]],p)}return function(t,e){for(var n=t.length,r=e.length,i=Math.ceil((n+r)/2),o=i,s=2*i,l=new Array(s),u=new Array(s),a=0;a<s;a++)l[a]=-1,u[a]=-1;l[o+1]=0,u[o+1]=0;for(var c=n-r,h=c%2!=0,f=0,p=0,d=0,g=0,v=0;v<i;v++){for(var y=-v+f;y<=v-p;y+=2){for(var m=o+y,b=(x=y==-v||y!=v&&l[m-1]<l[m+1]?l[m+1]:l[m-1]+1)-y;x<n&&b<r&&t.charAt(x)==e.charAt(b);)x++,b++;if(l[m]=x,n<x)p+=2;else if(r<b)f+=2;else if(h){var _=o+c-y;if(0<=_&&_<s&&-1!=u[_]){var E=n-u[_];if(E<=x)return q(t,e,x,b)}}}for(var T=-v+d;T<=v-g;T+=2){for(var _=o+T,A=(E=T==-v||T!=v&&u[_-1]<u[_+1]?u[_+1]:u[_-1]+1)-T;E<n&&A<r&&t.charAt(n-E-1)==e.charAt(r-A-1);)E++,A++;if(u[_]=E,n<E)g+=2;else if(r<A)d+=2;else if(!h){var m=o+c-T;if(0<=m&&m<s&&-1!=l[m]){var x=l[m],b=o+x-m;if((E=n-E)<=x)return q(t,e,x,b)}}}}return[[L,t],[N,e]]}(t,e)}(t=t.substring(0,t.length-n),e=e.substring(0,e.length-n));return r&&o.unshift([d,r]),i&&o.push([d,i]),function t(e){e.push([d,""]);var n=0;var r=0;var i=0;var o="";var s="";var l;for(;n<e.length;)switch(e[n][0]){case N:i++,s+=e[n][1],n++;break;case L:r++,o+=e[n][1],n++;break;case d:1<r+i?(0!==r&&0!==i&&(0!==(l=v(s,o))&&(0<n-r-i&&e[n-r-i-1][0]==d?e[n-r-i-1][1]+=s.substring(0,l):(e.splice(0,0,[d,s.substring(0,l)]),n++),s=s.substring(l),o=o.substring(l)),0!==(l=y(s,o))&&(e[n][1]=s.substring(s.length-l)+e[n][1],s=s.substring(0,s.length-l),o=o.substring(0,o.length-l))),0===r?e.splice(n-i,r+i,[N,s]):0===i?e.splice(n-r,r+i,[L,o]):e.splice(n-r-i,r+i,[L,o],[N,s]),n=n-r-i+(r?1:0)+(i?1:0)+1):0!==n&&e[n-1][0]==d?(e[n-1][1]+=e[n][1],e.splice(n,1)):n++,r=i=0,s=o=""}""===e[e.length-1][1]&&e.pop();var u=!1;n=1;for(;n<e.length-1;)e[n-1][0]==d&&e[n+1][0]==d&&(e[n][1].substring(e[n][1].length-e[n-1][1].length)==e[n-1][1]?(e[n][1]=e[n-1][1]+e[n][1].substring(0,e[n][1].length-e[n-1][1].length),e[n+1][1]=e[n-1][1]+e[n+1][1],e.splice(n-1,1),u=!0):e[n][1].substring(0,e[n+1][1].length)==e[n+1][1]&&(e[n-1][1]+=e[n+1][1],e[n][1]=e[n][1].substring(e[n+1][1].length)+e[n+1][1],e.splice(n+1,1),u=!0)),n++;u&&t(e)}(o),o}function q(t,e,n,r){var i=t.substring(0,n),o=e.substring(0,r),s=t.substring(n),l=e.substring(r),u=g(i,o),a=g(s,l);return u.concat(a)}function v(t,e){if(!t||!e||t.charAt(0)!=e.charAt(0))return 0;for(var n=0,r=Math.min(t.length,e.length),i=r,o=0;n<i;)t.substring(o,i)==e.substring(o,i)?o=n=i:r=i,i=Math.floor((r-n)/2+n);return i}function y(t,e){if(!t||!e||t.charAt(t.length-1)!=e.charAt(e.length-1))return 0;for(var n=0,r=Math.min(t.length,e.length),i=r,o=0;n<i;)t.substring(t.length-i,t.length-o)==e.substring(e.length-i,e.length-o)?o=n=i:r=i,i=Math.floor((r-n)/2+n);return i}var r=g;r.INSERT=N,r.DELETE=L,r.EQUAL=d,e.exports=r},{}],7:[function(t,e,n){e.exports={version:"0.20.1"}},{}],8:[function(t,e,n){var r,i,o,s,l,u,a,c;a=t("lodash"),r=t("rich-text/lib/delta"),c=t("../lib/dom"),o=t("./format"),s=t("./line"),l=t("../lib/linked-list"),u=t("./normalizer"),i=function(){function t(t,e){this.root=t,null==e&&(e={}),this.normalizer=new u,this.formats={},a.each(e.formats,a.bind(this.addFormat,this)),this.setHTML(this.root.innerHTML)}return t.prototype.addFormat=function(t,e){return a.isObject(e)||(e=o.FORMATS[t]),null!=this.formats[t]&&console.warn("Overwriting format",t,this.formats[t]),this.formats[t]=new o(e),this.normalizer.addFormat(e)},t.prototype.appendLine=function(t){return this.insertLineBefore(t,null)},t.prototype.findLeafAt=function(t,e){var n,r,i;return n=(i=this.findLineAt(t))[0],r=i[1],null!=n?n.findLeafAt(r,e):[void 0,r]},t.prototype.findLine=function(t){for(var e;null!=t&&null==c.BLOCK_TAGS[t.tagName];)t=t.parentNode;return(null!=(e=null!=t?c(t).data(s.DATA_KEY):void 0)?e.node:void 0)===t?e:void 0},t.prototype.findLineAt=function(t){var e,n;if(!(0<this.lines.length))return[void 0,t];if(t===(n=this.toDelta().length()))return[this.lines.last,this.lines.last.length];if(n<t)return[void 0,t-n];for(e=this.lines.first;null!=e;){if(t<e.length)return[e,t];t-=e.length,e=e.next}return[void 0,t]},t.prototype.getHTML=function(){return this.root.innerHTML.replace(/\>\s+\</g,">&nbsp;<")},t.prototype.insertLineBefore=function(t,e){var n;return n=new s(this,t),null!=e?(c(t.parentNode).isElement()||this.root.insertBefore(t,e.node),this.lines.insertAfter(e.prev,n)):(c(t.parentNode).isElement()||this.root.appendChild(t),this.lines.append(n)),n},t.prototype.mergeLines=function(e,t){return 1<t.length&&(1===e.length&&c(e.leaves.last.node).remove(),a.each(c(t.node).childNodes(),function(t){if(t.tagName!==c.DEFAULT_BREAK_TAG)return e.node.appendChild(t)})),this.removeLine(t),e.rebuild()},t.prototype.optimizeLines=function(){return a.each(this.lines.toArray(),function(t,e){return t.optimize(),!0})},t.prototype.rebuild=function(){var r,t,e,i;for(t=this.lines.toArray(),null!=(r=this.root.firstChild)&&null!=c.LIST_TAGS[r.tagName]&&(r=r.firstChild),a.each(t,(i=this,function(t,e){for(var n;t.node!==r;){if(t.node.parentNode!==i.root&&(null!=(n=t.node.parentNode)?n.parentNode:void 0)!==i.root)return i.removeLine(t);r=i.normalizer.normalizeLine(r),i.insertLineBefore(r,t),r=c(r).nextLineNode(i.root)}return t.outerHTML!==r.outerHTML&&(t.node=i.normalizer.normalizeLine(t.node),t.rebuild()),r=c(r).nextLineNode(i.root)})),e=[];null!=r;)r=this.normalizer.normalizeLine(r),this.appendLine(r),e.push(r=c(r).nextLineNode(this.root));return e},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=u.stripComments(t),t=u.stripWhitespace(t),this.root.innerHTML=t,this.lines=new l,this.rebuild()},t.prototype.splitLine=function(t,e){var n,r,i,o;return e=Math.min(e,t.length-1),n=(o=c(t.node).split(e,!0))[0],r=o[1],t.node=n,t.rebuild(),(i=this.insertLineBefore(r,t.next)).formats=a.clone(t.formats),i.resetContent(),i},t.prototype.toDelta=function(){var e,t;return t=this.lines.toArray(),e=new r,a.each(t,function(t){return a.each(t.delta.ops,function(t){return e.push(t)})}),e},t}(),e.exports=i},{"../lib/dom":17,"../lib/linked-list":18,"./format":10,"./line":12,"./normalizer":13,lodash:1,"rich-text/lib/delta":3}],9:[function(t,e,n){var i,r,o,c,u;c=t("lodash"),t("rich-text/lib/delta"),u=t("../lib/dom"),i=t("./document"),t("./line"),o=t("./selection"),r=function(){function r(t,e,n){var r;this.root=t,this.quill=e,this.options=null!=n?n:{},this.root.setAttribute("id",this.options.id),this.doc=new i(this.root,this.options),this.delta=this.doc.toDelta(),this.length=this.delta.length(),this.selection=new o(this.doc,this.quill),this.timer=setInterval(c.bind(this.checkUpdate,this),this.options.pollInterval),this.savedRange=null,this.quill.on("selection-change",(r=this,function(t){return r.savedRange=t})),this.options.readOnly||this.enable()}return r.sources={API:"api",SILENT:"silent",USER:"user"},r.prototype.destroy=function(){return clearInterval(this.timer)},r.prototype.disable=function(){return this.enable(!1)},r.prototype.enable=function(t){return null==t&&(t=!0),this.root.setAttribute("contenteditable",t)},r.prototype.applyDelta=function(t,e){var n,i;if((n=this._update())&&(n=(t=n.transform(t,!0)).transform(n,!1)),0<t.ops.length&&(t=this._trackDelta((i=this,function(){var r;return r=0,c.each(t.ops,function(n){return c.isString(n.insert)?(i._insertAt(r,n.insert,n.attributes),r+=n.insert.length):c.isNumber(n.insert)?(i._insertEmbed(r,n.attributes),r+=1):c.isNumber(n.delete)?i._deleteAt(r,n.delete):c.isNumber(n.retain)?(c.each(n.attributes,function(t,e){return i._formatAt(r,n.retain,e,t)}),r+=n.retain):void 0}),i.selection.shiftAfter(0,0,c.bind(i.doc.optimizeLines,i.doc))})),this.delta=this.doc.toDelta(),this.length=this.delta.length(),this.innerHTML=this.root.innerHTML,t&&e!==r.sources.SILENT&&this.quill.emit(this.quill.constructor.events.TEXT_CHANGE,t,e)),n&&0<n.ops.length&&e!==r.sources.SILENT)return this.quill.emit(this.quill.constructor.events.TEXT_CHANGE,n,r.sources.USER)},r.prototype.checkUpdate=function(t){var e;return null==t&&(t="user"),null==this.root.parentNode?clearInterval(this.timer):((e=this._update())&&(this.delta=this.delta.compose(e),this.length=this.delta.length(),this.quill.emit(this.quill.constructor.events.TEXT_CHANGE,e,t)),e&&(t=r.sources.SILENT),this.selection.update(t))},r.prototype.focus=function(){return null!=this.selection.range?this.selection.setRange(this.selection.range):this.root.focus()},r.prototype.getBounds=function(t){var e,n,r,i,o,s,l;return this.checkUpdate(),r=(s=this.doc.findLeafAt(t,!0))[0],i=s[1],null==r?null:(n=this.root.parentNode.getBoundingClientRect(),l="left",0===r.length?e=r.node.parentNode.getBoundingClientRect():u.VOID_TAGS[r.node.tagName]?(e=r.node.getBoundingClientRect(),1===i&&(l="right")):(o=document.createRange(),i<r.length?(o.setStart(r.node,i),o.setEnd(r.node,i+1)):(o.setStart(r.node,i-1),o.setEnd(r.node,i),l="right"),e=o.getBoundingClientRect()),{height:e.height,left:e[l]-n.left,top:e.top-n.top})},r.prototype._deleteAt=function(l,u){var a;if(!(u<=0))return this.selection.shiftAfter(l,-1*u,(a=this,function(){var t,e,n,r,i,o,s;for(n=(s=a.doc.findLineAt(l))[0],o=s[1],r=(t=n).length-o<=u&&0<o;null!=t&&0<u;)i=t.next,e=Math.min(t.length-o,u),0===o&&u>=t.length?a.doc.removeLine(t):t.deleteText(o,e),u-=e,t=i,o=0;if(r&&n.next)return a.doc.mergeLines(n,n.next)}))},r.prototype._formatAt=function(o,s,l,u){return this.selection.shiftAfter(o,0,(a=this,function(){var t,e,n,r,i;for(e=(r=a.doc.findLineAt(o))[0],n=r[1],i=[];null!=e&&0<s;)t=Math.min(s,e.length-n-1),e.formatText(n,t,l,u),0<(s-=t)&&e.format(l,u),s-=1,n=0,i.push(e=e.next);return i}));var a},r.prototype._insertEmbed=function(r,i){return this.selection.shiftAfter(r,1,(o=this,function(){var t,e,n;return t=(n=o.doc.findLineAt(r))[0],e=n[1],t.insertEmbed(e,i)}));var o},r.prototype._insertAt=function(e,n,s){return null==s&&(s={}),this.selection.shiftAfter(e,n.length,(l=this,function(){var r,i,o,t;return n=n.replace(/\r\n?/g,"\n"),i=n.split("\n"),t=l.doc.findLineAt(e),r=t[0],o=t[1],c.each(i,function(t,e){var n;return null==r||r.length<=o?(e<i.length-1||0<t.length)&&(r=l.doc.appendLine(document.createElement(u.DEFAULT_BLOCK_TAG)),o=0,r.insertText(o,t,s),r.format(s),n=null):(r.insertText(o,t,s),e<i.length-1&&(n=l.doc.splitLine(r,o+t.length),c.each(c.defaults({},s,r.formats),function(t,e){return r.format(e,s[e])}),o=0)),r=n})}));var l},r.prototype._trackDelta=function(t){var e,n,r,i,o,s,l,u,a;o=null!=(u=this.savedRange)?u.start:void 0,t(),e=this.doc.toDelta(),this.savedRange=this.selection.getRange(),n=null!=(a=this.savedRange)?a.start:void 0;try{if(null!=o&&null!=n&&o<=this.delta.length()&&n<=e.length()&&(l=this.delta.slice(o),i=e.slice(n),c.isEqual(l.ops,i.ops)))return s=this.delta.slice(0,o),r=e.slice(0,n),s.diff(r)}catch(t){t}return this.delta.diff(e)},r.prototype._update=function(){var t,e;return this.innerHTML!==this.root.innerHTML&&(t=this._trackDelta((e=this,function(){return e.selection.preserve(c.bind(e.doc.rebuild,e.doc)),e.selection.shiftAfter(0,0,c.bind(e.doc.optimizeLines,e.doc))})),this.innerHTML=this.root.innerHTML,0<t.ops.length&&t)},r}(),e.exports=r},{"../lib/dom":17,"./document":8,"./line":12,"./selection":14,lodash:1,"rich-text/lib/delta":3}],10:[function(t,e,n){var r,u,a;u=t("lodash"),a=t("../lib/dom"),r=function(){function l(t){this.config=t}return l.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,a.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:(l.types={LINE:"line",EMBED:"embed"}).EMBED,tag:"IMG",attribute:"src"},align:{type:l.types.LINE,style:"textAlign",default:"left"},bullet:{type:l.types.LINE,exclude:"list",parentTag:"UL",tag:"LI"},list:{type:l.types.LINE,exclude:"bullet",parentTag:"OL",tag:"LI"}},l.prototype.add=function(t,e){var n,r,i,o,s;return e?(this.value(t)===e||(u.isString(this.config.parentTag)&&((i=t.parentNode).tagName!==this.config.parentTag&&(i=document.createElement(this.config.parentTag),a(t).wrap(i)),t.parentNode.tagName===(null!=(o=t.parentNode.previousSibling)?o.tagName:void 0)&&a(t.parentNode.previousSibling).merge(t.parentNode),t.parentNode.tagName===(null!=(s=t.parentNode.nextSibling)?s.tagName:void 0)&&a(t.parentNode).merge(t.parentNode.nextSibling)),u.isString(this.config.tag)&&t.tagName!==this.config.tag&&(n=document.createElement(this.config.tag),null!=a.VOID_TAGS[n.tagName]?(null!=t.parentNode&&a(t).replace(n),t=n):this.isType(l.types.LINE)?t=a(t).switchTag(this.config.tag).get():(a(t).wrap(n),t=n)),(u.isString(this.config.style)||u.isString(this.config.attribute)||u.isString(this.config.class))&&(u.isString(this.config.class)&&(t=this.remove(t)),a(t).isTextNode()&&(r=document.createElement(a.DEFAULT_INLINE_TAG),a(t).wrap(r),t=r),u.isString(this.config.style)&&e!==this.config.default&&(t.style[this.config.style]=e),u.isString(this.config.attribute)&&t.setAttribute(this.config.attribute,e),u.isString(this.config.class)&&a(t).addClass(this.config.class+e)),u.isFunction(this.config.add)&&(t=this.config.add(t,e))),t):this.remove(t)},l.prototype.isType=function(t){return t===this.config.type},l.prototype.match=function(t){var e,n,r,i;if(!a(t).isElement())return!1;if(u.isString(this.config.parentTag)&&(null!=(r=t.parentNode)?r.tagName:void 0)!==this.config.parentTag)return!1;if(u.isString(this.config.tag)&&t.tagName!==this.config.tag)return!1;if(u.isString(this.config.style)&&(!t.style[this.config.style]||t.style[this.config.style]===this.config.default))return!1;if(u.isString(this.config.attribute)&&!t.hasAttribute(this.config.attribute))return!1;if(u.isString(this.config.class)){for(e=0,n=(i=a(t).classes()).length;e<n;e++)if(0===i[e].indexOf(this.config.class))return!0;return!1}return!0},l.prototype.prepare=function(t){return u.isString(this.config.prepare)?document.execCommand(this.config.prepare,!1,t):u.isFunction(this.config.prepare)?this.config.prepare(t):void 0},l.prototype.remove=function(t){var e,n,r,i;if(!this.match(t))return t;if(u.isString(this.config.style)&&(t.style[this.config.style]="",t.getAttribute("style")||t.removeAttribute("style")),u.isString(this.config.attribute)&&t.removeAttribute(this.config.attribute),u.isString(this.config.class))for(n=0,r=(i=a(t).classes()).length;n<r;n++)0===(e=i[n]).indexOf(this.config.class)&&a(t).removeClass(e);if(u.isString(this.config.tag))if(this.isType(l.types.LINE))u.isString(this.config.parentTag)&&(null!=t.previousSibling&&a(t).splitBefore(t.parentNode.parentNode),null!=t.nextSibling&&a(t.nextSibling).splitBefore(t.parentNode.parentNode)),t=a(t).switchTag(a.DEFAULT_BLOCK_TAG).get();else{if(this.isType(l.types.EMBED))return void a(t).remove();t=a(t).switchTag(a.DEFAULT_INLINE_TAG).get()}return u.isString(this.config.parentTag)&&a(t.parentNode).unwrap(),u.isFunction(this.config.remove)&&(t=this.config.remove(t)),t.tagName!==a.DEFAULT_INLINE_TAG||t.hasAttributes()||(t=a(t).unwrap()),t},l.prototype.value=function(t){var e,n,r,i;if(this.match(t)){if(this.config.value)return this.config.value(t);if(u.isString(this.config.attribute))return t.getAttribute(this.config.attribute)||void 0;if(u.isString(this.config.style))return t.style[this.config.style]||void 0;if(u.isString(this.config.class)){for(n=0,r=(i=a(t).classes()).length;n<r;n++)if(0===(e=i[n]).indexOf(this.config.class))return e.slice(this.config.class.length)}else if(u.isString(this.config.tag))return!0}},l}(),e.exports=r},{"../lib/dom":17,lodash:1}],11:[function(t,e,n){var r,i,o,s,l={}.hasOwnProperty;o=t("lodash"),s=t("../lib/dom"),t("./format"),i=t("../lib/linked-list"),r=function(t){function r(t,e){this.node=t,this.formats=o.clone(e),this.text=s(this.node).text(),this.length=this.text.length,s(this.node).data(r.DATA_KEY,this)}return function(t,e){for(var n in e)l.call(e,n)&&(t[n]=e[n]);function r(){this.constructor=t}r.prototype=e.prototype,t.prototype=new r,t.__super__=e.prototype}(r,i.Node),r.DATA_KEY="leaf",r.isLeafNode=function(t){return s(t).isTextNode()||null==t.firstChild},r.prototype.deleteText=function(t,e){var n;if(0<e)return this.text=this.text.slice(0,t)+this.text.slice(t+e),this.length=this.text.length,null!=s.EMBED_TAGS[this.node.tagName]?(n=document.createTextNode(this.text),s(n).data(r.DATA_KEY,this),this.node=s(this.node).replace(n).get()):s(this.node).text(this.text)},r.prototype.insertText=function(t,e){var n;return this.text=this.text.slice(0,t)+e+this.text.slice(t),s(this.node).isTextNode()?s(this.node).text(this.text):(n=document.createTextNode(e),s(n).data(r.DATA_KEY,this),this.node.tagName===s.DEFAULT_BREAK_TAG?this.node=s(this.node).replace(n).get():(this.node.appendChild(n),this.node=n)),this.length=this.text.length},r}(),e.exports=r},{"../lib/dom":17,"../lib/linked-list":18,"./format":10,lodash:1}],12:[function(t,e,n){var r,f,o,i,s,l,a,p,u={}.hasOwnProperty;a=t("lodash"),r=t("rich-text/lib/delta"),p=t("../lib/dom"),f=t("./format"),o=t("./leaf"),t("./line"),s=t("../lib/linked-list"),l=t("./normalizer"),i=function(t){function n(t,e){this.doc=t,this.node=e,this.formats={},this.rebuild(),n.__super__.constructor.call(this,this.node)}return function(t,e){for(var n in e)u.call(e,n)&&(t[n]=e[n]);function r(){this.constructor=t}r.prototype=e.prototype,t.prototype=new r,t.__super__=e.prototype}(n,s.Node),n.DATA_KEY="line",n.prototype.buildLeaves=function(t,e){return a.each(p(t).childNodes(),(i=this,function(n){var r;return n=i.doc.normalizer.normalizeNode(n),r=a.clone(e),a.each(i.doc.formats,function(t,e){if(!t.isType(f.types.LINE)&&t.match(n))return r[e]=t.value(n)}),o.isLeafNode(n)?i.leaves.append(new o(n,r)):i.buildLeaves(n,r)}));var i},n.prototype.deleteText=function(t,e){var n,r,i;if(0<e){for(r=(i=this.findLeafAt(t))[0],t=i[1];null!=r&&0<e;)n=Math.min(e,r.length-t),r.deleteText(t,n),e-=n,r=r.next,t=0;return this.rebuild()}},n.prototype.findLeaf=function(t){return null!=t?p(t).data(o.DATA_KEY):void 0},n.prototype.findLeafAt=function(t,e){var n;if(null==e&&(e=!1),t>=this.length-1)return[this.leaves.last,this.leaves.last.length];for(n=this.leaves.first;null!=n;){if(t<n.length||t===n.length&&e)return[n,t];t-=n.length,n=n.next}return[this.leaves.last,t-this.leaves.last.length]},n.prototype.format=function(t,e){var n,i;return a.isObject(t)?n=t:(n={})[t]=e,a.each(n,(i=this,function(t,e){var n,r;if(null!=(r=i.doc.formats[e]))return r.isType(f.types.LINE)&&(r.config.exclude&&i.formats[r.config.exclude]&&null!=(n=i.doc.formats[r.config.exclude])&&(i.node=n.remove(i.node),delete i.formats[r.config.exclude]),i.node=r.add(i.node,t)),t?i.formats[e]=t:delete i.formats[e]})),this.resetContent()},n.prototype.formatText=function(t,e,n,r){var i,o,s,l,u,a,c,h;if(o=(u=this.findLeafAt(t))[0],s=u[1],null!=(i=this.doc.formats[n])&&i.config.type!==f.types.LINE){for(;null!=o&&0<e;){if(l=o.next,r&&o.formats[n]!==r||!r&&null!=o.formats[n]){if(h=o.node,null!=o.formats[n]){for(p(h).splitBefore(this.node);!i.match(h);)h=h.parentNode;p(h).split(o.length)}0<s&&((a=p(h).split(s))[0],h=a[1]),o.length>s+e&&(h=(c=p(h).split(e))[0],c[1]),i.add(h,r)}e-=o.length-s,s=0,o=l}return this.rebuild()}},n.prototype._insert=function(t,e,n){var r,i,o,s,l,u;return r=(s=this.findLeafAt(t))[0],i=s[1],e=a.reduce(n,(u=this,function(t,e,n){var r;return null==(r=u.doc.formats[n])||r.isType(f.types.LINE)||(t=r.add(t,e)),t}),e),(l=p(r.node).split(i))[0],(o=l[1])&&(o=p(o).splitBefore(this.node).get()),this.node.insertBefore(e,o),this.rebuild()},n.prototype.insertEmbed=function(t,e){var n,r,i,o,s,l,u;return r=(s=this.findLeafAt(t))[0],i=s[1],(l=p(r.node).split(i))[0],l[1],n=a.find(Object.keys(e),(u=this,function(t){return u.doc.formats[t].isType(f.types.EMBED)})),o=this.doc.formats[n].add({},e[n]),delete(e=a.clone(e))[n],this._insert(t,o,e)},n.prototype.insertText=function(t,e,n){var r,i,o;if(null==n&&(n={}),0<e.length)return r=(o=this.findLeafAt(t))[0],i=o[1],a.isEqual(r.formats,n)?(r.insertText(i,e),this.resetContent()):this._insert(t,document.createTextNode(e),n)},n.prototype.optimize=function(){return l.optimizeLine(this.node),this.rebuild()},n.prototype.rebuild=function(t){return null==t&&(t=!1),!(!t&&null!=this.outerHTML&&this.outerHTML===this.node.outerHTML&&a.all(this.leaves.toArray(),(e=this,function(t){return p(t.node).isAncestor(e.node)})))&&(this.node=this.doc.normalizer.normalizeNode(this.node),0!==p(this.node).length()||this.node.querySelector(p.DEFAULT_BREAK_TAG)||this.node.appendChild(document.createElement(p.DEFAULT_BREAK_TAG)),this.leaves=new s,this.formats=a.reduce(this.doc.formats,(r=this,function(t,e,n){return e.isType(f.types.LINE)&&(e.match(r.node)?t[n]=e.value(r.node):delete t[n]),t}),this.formats),this.buildLeaves(this.node,{}),this.resetContent(),!0);var e,r},n.prototype.resetContent=function(){var e;return p(this.node).data(n.DATA_KEY,this),this.outerHTML=this.node.outerHTML,this.length=1,this.delta=new r,a.each(this.leaves.toArray(),(e=this,function(t){return e.length+=t.length,null!=p.EMBED_TAGS[t.node.tagName]?e.delta.insert(1,t.formats):e.delta.insert(t.text,t.formats)})),this.delta.insert("\n",this.formats)},n}(),e.exports=i},{"../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,n){var r,o,i,s;o=t("lodash"),s=t("../lib/dom"),i=function(t){return(t=t.replace(/(?:^|[-_])(\w)/g,function(t,e){return e?e.toUpperCase():""})).charAt(0).toLowerCase()+t.slice(1)},r=function(){function n(){this.whitelist={styles:{},tags:{}},this.whitelist.tags[s.DEFAULT_BREAK_TAG]=!0,this.whitelist.tags[s.DEFAULT_BLOCK_TAG]=!0,this.whitelist.tags[s.DEFAULT_INLINE_TAG]=!0}return n.ALIASES={STRONG:"B",EM:"I",DEL:"S",STRIKE:"S"},n.ATTRIBUTES={color:"color",face:"fontFamily",size:"fontSize"},n.prototype.addFormat=function(t){if(null!=t.tag&&(this.whitelist.tags[t.tag]=!0),null!=t.parentTag&&(this.whitelist.tags[t.parentTag]=!0),null!=t.style)return this.whitelist.styles[t.style]=!0},n.prototype.normalizeLine=function(t){return t=n.wrapInline(t),"LI"===(t=n.handleBreaks(t)).tagName&&n.flattenList(t),t=n.pullBlocks(t),t=this.normalizeNode(t),n.unwrapText(t),null!=t&&null!=s.LIST_TAGS[t.tagName]&&(t=t.firstChild),t},n.prototype.normalizeNode=function(r){return s(r).isTextNode()?r:(o.each(n.ATTRIBUTES,function(t,e){var n;if(r.hasAttribute(e))return n=r.getAttribute(e),"size"===e&&(n=s.convertFontSize(n)),r.style[t]=n,r.removeAttribute(e)}),("bold"===r.style.fontWeight||500<r.style.fontWeight)&&(r.style.fontWeight="",s(r).wrap(document.createElement("b")),r=r.parentNode),this.whitelistStyles(r),this.whitelistTags(r))},n.prototype.whitelistStyles=function(t){var e,n,r;if(e=s(t).styles(),n=o.omit(e,(r=this,function(t,e){return null==r.whitelist.styles[i(e)]})),Object.keys(n).length<Object.keys(e).length)return 0<Object.keys(n).length?s(t).styles(n,!0):t.removeAttribute("style")},n.prototype.whitelistTags=function(t){return s(t).isElement()&&(null!=n.ALIASES[t.tagName]?t=s(t).switchTag(n.ALIASES[t.tagName]).get():null==this.whitelist.tags[t.tagName]&&(t=null!=s.BLOCK_TAGS[t.tagName]?s(t).switchTag(s.DEFAULT_BLOCK_TAG).get():t.hasAttributes()||null==t.firstChild?s(t).switchTag(s.DEFAULT_INLINE_TAG).get():s(t).unwrap())),t},n.flattenList=function(e){var n;return n=e.nextSibling,o.map(e.querySelectorAll("li")).forEach(function(t){return e.parentNode.insertBefore(t,n),n=t.nextSibling}),o.map(e.querySelectorAll(Object.keys(s.LIST_TAGS).join(","))).forEach(function(t){return s(t).remove()})},n.handleBreaks=function(e){var t;return t=o.map(e.querySelectorAll(s.DEFAULT_BREAK_TAG)),o.each(t,function(t){if(null!=t.nextSibling&&(!s.isIE(10)||null!=t.previousSibling))return s(t.nextSibling).splitBefore(e.parentNode)}),e},n.optimizeLine=function(t){var e,n,r,i;for(t.normalize(),e=s(t).length(),r=s(t).descendants(),i=[];0<r.length;)null!=(null!=(n=r.pop())?n.parentNode:void 0)&&null==s.EMBED_TAGS[n.tagName]&&(n.tagName===s.DEFAULT_BREAK_TAG?0!==e?i.push(s(n).remove()):i.push(void 0):0===s(n).length()?(r.push(n.nextSibling),i.push(s(n).unwrap())):null!=n.previousSibling&&n.tagName===n.previousSibling.tagName&&o.isEqual(s(n).attributes(),s(n.previousSibling).attributes())?(r.push(n.firstChild),i.push(s(n.previousSibling).merge(n))):i.push(void 0));return i},n.pullBlocks=function(t){var e;for(e=t.firstChild;null!=e;){if(null!=s.BLOCK_TAGS[e.tagName]&&"LI"!==e.tagName){s(e).isolate(t.parentNode),null!=s.LIST_TAGS[e.tagName]&&e.firstChild?(s(e.parentNode).unwrap(),null==t.parentNode&&(t=e)):(s(e).unwrap(),n.pullBlocks(t));break}e=e.nextSibling}return t},n.stripComments=function(t){return t.replace(/<!--[\s\S]*?-->/g,"")},n.stripWhitespace=function(t){return t=(t=(t=t.trim()).replace(/(\r?\n|\r)+/g," ")).replace(/\>\s+\</g,"><")},n.wrapInline=function(t){var e,n;if(null!=s.BLOCK_TAGS[t.tagName])return t;for(e=document.createElement(s.DEFAULT_BLOCK_TAG),t.parentNode.insertBefore(e,t);null!=t&&null==s.BLOCK_TAGS[t.tagName];)n=t.nextSibling,e.appendChild(t),t=n;return e},n.unwrapText=function(t){var e;return e=o.map(t.querySelectorAll(s.DEFAULT_INLINE_TAG)),o.each(e,function(t){if(!t.hasAttributes())return s(t).unwrap()})},n}(),e.exports=r},{"../lib/dom":17,lodash:1}],14:[function(t,e,n){var o,r,u;t("lodash"),u=t("../lib/dom"),t("./leaf"),t("./normalizer"),o=t("../lib/range"),r=function(){function t(t,e){this.doc=t,this.emitter=e,this.focus=!1,this.range=new o(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,n,r;return null==t&&(t=!1),this.checkFocus()?null==(n=this._getNativeRange())?null:(r=this._positionToIndex(n.startContainer,n.startOffset),e=n.startContainer===n.endContainer&&n.startOffset===n.endOffset?r:this._positionToIndex(n.endContainer,n.endOffset),new o(Math.min(r,e),Math.max(r,e))):t?this.range:null},t.prototype.preserve=function(t){var e,n,r,i,o,s,l,u,a;return null!=(r=this._getNativeRange())&&this.checkFocus()?(u=(i=this._encodePosition(r.startContainer,r.startOffset))[0],a=i[1],e=(o=this._encodePosition(r.endContainer,r.endOffset))[0],n=o[1],t(),u=(s=this._decodePosition(u,a))[0],a=s[1],e=(l=this._decodePosition(e,n))[0],n=l[1],this._setNativeRange(u,a,e,n)):t()},t.prototype.scrollIntoView=function(){var t,e,n,r,i,o,s;if(this.range)return s=(e=this.emitter.editor).getBounds(this.range.start),n=this.range.isCollapsed()?s:e.getBounds(this.range.end),(t=e.root.parentNode.getBoundingClientRect()).bottom-t.top<n.top+n.height?(r=(i=e.doc.findLineAt(this.range.end))[0],i[1],r.node.scrollIntoView(!1)):s.top<0?(r=(o=e.doc.findLineAt(this.range.start))[0],o[1],r.node.scrollIntoView()):void 0},t.prototype.setRange=function(t,e){var n,r,i,o,s,l,u;return null!=t?(l=(i=this._indexToPosition(t.start))[0],u=i[1],t.isCollapsed()?(n=(o=[l,u])[0],r=o[1]):(n=(s=this._indexToPosition(t.end))[0],r=s[1]),this._setNativeRange(l,u,n,r)):this._setNativeRange(null),this.update(e)},t.prototype.shiftAfter=function(t,e,n){var r;if(r=this.getRange(),n(),null!=r)return r.shift(t,e),this.setRange(r,"silent")},t.prototype.update=function(t){var e,n,r,i;return n=this.checkFocus(),r=this.getRange(!0),e="silent"!==t&&(!o.compare(r,this.range)||n!==this.focus),null!==(i=n?r:null)||"user"!==t||this.nullDelay?(this.nullDelay=!1,this.range=r,this.focus=n,e?this.emitter.emit(this.emitter.constructor.events.SELECTION_CHANGE,i,t):void 0):this.nullDelay=!0},t.prototype._decodePosition=function(t,e){return u(t).isElement()&&(e+=u(t.parentNode).childNodes().indexOf(t),t=t.parentNode),[t,e]},t.prototype._encodePosition=function(t,e){for(var n;;){if(u(t).isTextNode()||t.tagName===u.DEFAULT_BREAK_TAG||null!=u.EMBED_TAGS[t.tagName])return[t,e];if(e<t.childNodes.length)t=t.childNodes[e],e=0;else{if(0===t.childNodes.length)return null==this.doc.normalizer.whitelist.tags[t.tagName]&&(n=document.createTextNode(""),t.appendChild(n),t=n),[t,0];if(t=t.lastChild,!u(t).isElement())return[t,u(t).length()];if(t.tagName===u.DEFAULT_BREAK_TAG||null!=u.EMBED_TAGS[t.tagName])return[t,1];e=t.childNodes.length}}},t.prototype._getNativeRange=function(){var t,e;return 0<(null!=(e=document.getSelection())?e.rangeCount:void 0)&&(t=e.getRangeAt(0),u(t.startContainer).isAncestor(this.doc.root,!0)&&(t.startContainer===t.endContainer||u(t.endContainer).isAncestor(this.doc.root,!0)))?t:null},t.prototype._indexToPosition=function(t){var e,n,r;return 0===this.doc.lines.length?[this.doc.root,0]:(e=(r=this.doc.findLeafAt(t,!0))[0],n=r[1],this._decodePosition(e.node,n))},t.prototype._positionToIndex=function(t,e){var n,r,i,o,s,l;if(u.isIE(10)&&"BR"===t.tagName&&1===e&&(e=0),r=(l=this._encodePosition(t,e))[0],e=l[1],null==(o=this.doc.findLine(r)))return 0;for(n=o.findLeaf(r),s=0;null!=o.prev;)s+=(o=o.prev).length;if(null==n)return s;for(i=0;null!=n.prev;)i+=(n=n.prev).length;return s+i+e},t.prototype._setNativeRange=function(t,e,n,r){var i,o;if(o=document.getSelection())if(null!=t){if(this.checkFocus()||this.doc.root.focus(),null==(i=this._getNativeRange())||t!==i.startContainer||e!==i.startOffset||n!==i.endContainer||r!==i.endOffset)return o.removeAllRanges(),(i=document.createRange()).setStart(t,e),i.setEnd(n,r),o.addRange(i)}else if(o.removeAllRanges(),this.doc.root.blur(),u.isIE(11)&&!u.isIE(9))return document.body.focus()},t}(),e.exports=r},{"../lib/dom":17,"../lib/range":20,"./leaf":11,"./normalizer":13,lodash:1}],15:[function(t,e,n){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,n){var r,o,s,l={}.hasOwnProperty;s=t("./dom"),o=t("./picker"),r=function(t){function i(){i.__super__.constructor.apply(this,arguments),s(this.container).addClass("ql-color-picker")}return function(t,e){for(var n in e)l.call(e,n)&&(t[n]=e[n]);function r(){this.constructor=t}r.prototype=e.prototype,t.prototype=new r,t.__super__=e.prototype}(i,o),i.prototype.buildItem=function(t,e,n){var r;return(r=i.__super__.buildItem.call(this,t,e,n)).style.backgroundColor=e.value,r},i}(),e.exports=r},{"./dom":17,"./picker":19}],17:[function(t,e,n){var r,i,l,h,s,o=function(t,e){return function(){return t.apply(e,arguments)}},u={}.hasOwnProperty;l=t("lodash"),s=null,i=function(){function t(t){this.node=t,this.trigger=o(this.trigger,this)}return t.prototype.addClass=function(t){if(!this.hasClass(t))return 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,n,r,i,o,s;if(t)return l.each(t,(s=this,function(t,e){return s.node.setAttribute(e,t)})),this;if(null==this.node.attributes)return{};for(t={},n=r=0,i=(o=this.node.attributes).length;r<i;n=++r)o[n],t[(e=this.node.attributes[n]).name]=e.value;return t},t.prototype.child=function(t){var e,n;for(e=this.node.firstChild,n=h(e).length();null!=e&&!(t<n);)t-=n,e=e.nextSibling,n=h(e).length();return null==e&&(e=this.node.lastChild,t=h(e).length()),[e,t]},t.prototype.childNodes=function(){return l.map(this.node.childNodes)},t.prototype.classes=function(){return this.node.className.split(/\s+/)},t.prototype.data=function(t,e){var n;return null!=e?(null==this.node["ql-data"]&&(this.node["ql-data"]={}),this.node["ql-data"][t]=e,this):null!=(n=this.node["ql-data"])?n[t]:void 0},t.prototype.descendants=function(){return l.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&&-1<this.classes().indexOf(t)},t.prototype.isAncestor=function(t,e){var n;if(null==e&&(e=!1),t===this.node)return e;for(n=this.node;n;){if(n===t)return!0;n=n.parentNode}return!1},t.prototype.isElement=function(){var t;return(null!=(t=this.node)?t.nodeType:void 0)===h.ELEMENT_NODE},t.prototype.isTextNode=function(){var t;return(null!=(t=this.node)?t.nodeType:void 0)===h.TEXT_NODE},t.prototype.isolate=function(t){return null!=this.node.nextSibling&&h(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(h.EMBED_TAGS).join(",")).length),t)},t.prototype.merge=function(t){var e;return e=h(t),this.isElement()?(e.moveChildren(this.node),this.normalize()):this.text(this.text()+e.text()),e.remove(),this},t.prototype.moveChildren=function(e){return l.each(this.childNodes(),function(t){return e.appendChild(t)}),this},t.prototype.nextLineNode=function(t){var e;return null==(e=this.node.nextSibling)&&this.node.parentNode!==t&&(e=this.node.parentNode.nextSibling),null!=e&&null!=h.LIST_TAGS[e.tagName]&&(e=e.firstChild),e},t.prototype.normalize=function(){var t,e,n,r;for(e=this.node.firstChild;null!=e;)r=e.nextSibling,t=h(e),null!=r&&h(r).isTextNode()&&(0===t.text().length?t.remove():t.isTextNode()&&(n=r.nextSibling,t.merge(r),r=n)),e=r;return this},t.prototype.on=function(r,i){var o;return this.node.addEventListener(r,(o=this,function(t){var e,n;return e=!s||"keydown"!==r&&"keyup"!==r?t:s,(n=i.call(o.node,e))||(t.preventDefault(),t.stopPropagation()),n})),this},t.prototype.remove=function(){var t;return null!=(t=this.node.parentNode)&&t.removeChild(this.node),this.node=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()).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 n,r,i,o;if(null==e&&(e=!1),this.node===t||this.node.parentNode===t)return this;if(null!=this.node.previousSibling||e){for(r=(i=this.node.parentNode).cloneNode(!1),i.parentNode.insertBefore(r,i.nextSibling),o=this.node;null!=o;)n=o.nextSibling,r.appendChild(o),o=n;return h(r).splitBefore(t)}return h(this.node.parentNode).splitBefore(t)},t.prototype.split=function(t,e){var n,r,i,o,s,l,u,a,c;if(null==e&&(e=!1),l=this.length(),t=Math.max(0,t),t=Math.min(t,l),!e&&0===t)return[this.node.previousSibling,this.node,!1];if(!e&&t===l)return[this.node,this.node.nextSibling,!1];if(this.node.nodeType===h.TEXT_NODE)return n=this.node.splitText(t),[this.node,n,!0];for(o=this.node,c=this.node.cloneNode(!1),this.node.parentNode.insertBefore(c,o.nextSibling),r=(u=this.child(t))[0],t=u[1],(a=h(r).split(t))[0],i=a[1];null!==i;)s=i.nextSibling,c.appendChild(i),i=s;return[o,c,!0]},t.prototype.styles=function(t,e){var n;return null==e&&(e=!1),t?(e||(t=l.defaults(t,this.styles())),n=l.map(t,function(t,e){return e+": "+t}).join("; ")+";",this.node.setAttribute("style",n),this):(n=this.node.getAttribute("style")||"",l.reduce(n.split(";"),function(t,e){var n,r,i;return n=(r=e.split(":"))[0],i=r[1],n&&i&&(n=n.trim(),i=i.trim(),t[n.toLowerCase()]=i),t},{}))},t.prototype.switchTag=function(t){var e,n;return t=t.toUpperCase(),this.node.tagName===t?this:(n=document.createElement(t),e=this.attributes(),null==h.VOID_TAGS[t]&&this.moveChildren(n),this.replace(n),this.node=n,this.attributes(e))},t.prototype.text=function(t){if(null!=t){switch(this.node.nodeType){case h.ELEMENT_NODE:this.node.textContent=t;break;case h.TEXT_NODE:this.node.data=t}return this}switch(this.node.nodeType){case h.ELEMENT_NODE:return this.node.tagName===h.DEFAULT_BREAK_TAG?"":null!=h.EMBED_TAGS[this.node.tagName]?h.EMBED_TEXT:null!=this.node.textContent?this.node.textContent:"";case h.TEXT_NODE:return this.node.data||"";default:return""}},t.prototype.textNodes=function(){var t,e,n;for(n=document.createTreeWalker(this.node,NodeFilter.SHOW_TEXT,null,!1),e=[];t=n.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 n,r;return null==e&&(e={}),["keypress","keydown","keyup"].indexOf(t)<0?(n=document.createEvent("Event")).initEvent(t,e.bubbles,e.cancelable):(n=document.createEvent("KeyboardEvent"),s=l.clone(e),l.isNumber(e.key)?s.which=e.key:l.isString(e.key)?s.which=e.key.toUpperCase().charCodeAt(0):s.which=0,h.isIE(10)?(r=[],e.altKey&&r.push("Alt"),e.ctrlKey&&r.push("Control"),e.metaKey&&r.push("Meta"),e.shiftKey&&r.push("Shift"),n.initKeyboardEvent(t,e.bubbles,e.cancelable,window,0,0,r.join(" "),null,null)):n[l.isFunction(n.initKeyboardEvent)?"initKeyboardEvent":"initKeyEvent"](t,e.bubbles,e.cancelable,window,e.ctrlKey,e.altKey,e.shiftKey,e.metaKey,0,0)),this.node.dispatchEvent(n),s=null,this},t.prototype.unwrap=function(){var e,t,n;return t=this.node.firstChild,e=this.node.nextSibling,l.each(this.childNodes(),(n=this,function(t){return n.node.parentNode.insertBefore(t,e)})),this.remove(),t},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}(),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return function(t,e){for(var n in e)u.call(e,n)&&(t[n]=e[n]);function r(){this.constructor=t}r.prototype=e.prototype,t.prototype=new r,t.__super__=e.prototype}(e,i),e.prototype.default=function(){return this.node.querySelector("option[selected]")},e.prototype.option=function(t,e){var n,r,i,o,s;if(null==e&&(e=!0),s=l.isElement(t)?t.value:t){for(s=s.replace(/[^\w]+/g,""),n=r=0,i=(o=this.node.children).length;r<i;n=++r)if(o[n].value.replace(/[^\w]+/g,"")===s){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),null!=(e=this.default())?e.selected=!0:this.node.selectedIndex=0,t&&this.trigger("change"),this},e.prototype.value=function(){return-1<this.node.selectedIndex?this.node.options[this.node.selectedIndex].value:""},e}(),h=function(t){return"SELECT"===(null!=t?t.tagName:void 0)?new r(t):new i(t)},h=l.extend(h,{ELEMENT_NODE:1,NOBREAK_SPACE:"&nbsp;",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,n,r,i;for(e in l.isString(t)&&-1<t.indexOf("px")?(r=Object.keys(h.FONT_SIZES),i=l.values(h.FONT_SIZES)):(i=Object.keys(h.FONT_SIZES),r=l.values(h.FONT_SIZES)),r)if(n=r[e],parseInt(t)<=parseInt(n))return i[e];return l.last(i)},isIE:function(t){var e;return(e=document.documentMode)&&e<=t},isIOS:function(){return/iPhone|iPad/i.test(navigator.userAgent)},isMac:function(){return/Mac/i.test(navigator.platform)}}),e.exports=h},{lodash:1}],18:[function(t,e,n){var r,i;i=function(t){this.data=t,this.prev=this.next=null},r=function(){function t(){this.length=0,this.first=this.last=null}return t.Node=i,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 null!=(e.prev=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 1<this.length?(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=r},{}],19:[function(t,e,n){var r,o,s;o=t("lodash"),s=t("./dom"),r=function(){function t(t){var e,n,r;this.select=t,this.container=document.createElement("span"),this.buildPicker(),s(this.container).addClass("ql-picker"),this.select.style.display="none",this.select.parentNode.insertBefore(this.container,this.select),s(document).on("click",(e=this,function(){return e.close(),!0})),s(this.label).on("click",(n=this,function(){return o.defer(function(){return s(n.container).toggleClass("ql-expanded")}),!1})),s(this.select).on("change",(r=this,function(){var t,e;return-1<r.select.selectedIndex&&(t=r.container.querySelectorAll(".ql-picker-item")[r.select.selectedIndex],e=r.select.options[r.select.selectedIndex]),r.selectItem(t,!1),s(r.label).toggleClass("ql-active",e!==s(r.select).default())}))}return t.TEMPLATE='<span class="ql-picker-label"></span><span class="ql-picker-options"></span>',t.prototype.buildItem=function(t,e,n){var r,i;return(r=document.createElement("span")).setAttribute("data-value",e.getAttribute("value")),s(r).addClass("ql-picker-item").text(s(e).text()).on("click",(i=this,function(){return i.selectItem(r,!0),i.close()})),this.select.selectedIndex===n&&this.selectItem(r,!1),r},t.prototype.buildPicker=function(){var r,n,i;return o.each(s(this.select).attributes(),(n=this,function(t,e){return n.container.setAttribute(e,t)})),this.container.innerHTML=t.TEMPLATE,this.label=this.container.querySelector(".ql-picker-label"),r=this.container.querySelector(".ql-picker-options"),o.each(this.select.options,(i=this,function(t,e){var n;return n=i.buildItem(r,t,e),r.appendChild(n)}))},t.prototype.close=function(){return s(this.container).removeClass("ql-expanded")},t.prototype.selectItem=function(t,e){var n,r;return null!=(n=this.container.querySelector(".ql-selected"))&&s(n).removeClass("ql-selected"),null!=t?(r=t.getAttribute("data-value"),s(t).addClass("ql-selected"),s(this.label).text(s(t).text()),s(this.select).option(r,e),this.label.setAttribute("data-value",r)):(this.label.innerHTML="&nbsp;",this.label.removeAttribute("data-value"))},t}(),e.exports=r},{"./dom":17,lodash:1}],20:[function(t,e,n){var r,i;i=t("lodash"),r=function(){function t(t,e){this.start=t,this.end=e}return t.compare=function(t,e){return t===e||null!=t&&null!=e&&t.equals(e)},t.prototype.equals=function(t){return null!=t&&(this.start===t.start&&this.end===t.end)},t.prototype.shift=function(e,n){var t;return t=i.map([this.start,this.end],function(t){return t<e?t:0<=n?t+n:Math.max(e,t+n)}),this.start=t[0],this.end=t[1],t},t.prototype.isCollapsed=function(){return this.start===this.end},t}(),e.exports=r},{lodash:1}],21:[function(t,e,n){var r,s,l,u,i;l=t("../quill"),u=l.require("lodash"),i=l.require("dom"),s=l.require("delta"),r=function(){function t(t,e){var o;(this.quill=t,this.options=e,null!=this.options.button&&this.attachButton(this.options.button),this.options.enabled&&this.enable(),this.quill.addFormat("author",{class:"author-"}),null!=this.options.authorId)&&(this.quill.on(this.quill.constructor.events.PRE_EVENT,(o=this,function(t,e,n){var r,i;if(t===o.quill.constructor.events.TEXT_CHANGE&&"user"===n)return r=new s,i={author:o.options.authorId},u.each(e.ops,function(t){if(null==t.delete)return null!=t.insert||null!=t.retain&&null!=t.attributes?(t.attributes||(t.attributes={}),t.attributes.author=o.options.authorId,r.retain(t.retain||t.insert.length||1,i)):r.retain(t.retain)}),o.quill.updateContents(r,l.sources.SILENT)})),this.addAuthor(this.options.authorId,this.options.color))}return t.DEFAULTS={authorId:null,color:"transparent",enabled:!1},t.prototype.addAuthor=function(t,e){var n;return(n={})[".authorship .author-"+t]={"background-color":""+e},this.quill.theme.addStyles(n)},t.prototype.attachButton=function(t){var e,n;return(e=i(t)).on("click",(n=this,function(){return e.toggleClass("ql-on"),n.enable($dom.hasClass("ql-on"))}))},t.prototype.enable=function(t){return null==t&&(t=!0),i(this.quill.root).toggleClass("authorship",t)},t.prototype.disable=function(){return this.enable(!1)},t}(),l.registerModule("authorship",r),e.exports=r},{"../quill":30}],22:[function(t,e,n){var r,i,o,s,l,u,a={}.hasOwnProperty;i=t("../quill"),s=t("./tooltip"),l=i.require("lodash"),u=i.require("dom"),i.require("delta"),o=i.require("range"),r=function(t){function n(t,e){this.quill=t,this.options=e,this.options=l.defaults(this.options,s.DEFAULTS),n.__super__.constructor.call(this,this.quill,this.options),this.preview=this.container.querySelector(".preview"),this.textbox=this.container.querySelector(".input"),u(this.container).addClass("ql-image-tooltip"),this.initListeners()}return function(t,e){for(var n in e)a.call(e,n)&&(t[n]=e[n]);function r(){this.constructor=t}r.prototype=e.prototype,t.prototype=new r,t.__super__=e.prototype}(n,s),n.DEFAULTS={template:'<input class="input" type="textbox"> <div class="preview"> <span>Preview</span> </div> <a href="javascript:;" class="cancel">Cancel</a> <a href="javascript:;" class="insert">Insert</a>'},n.prototype.initListeners=function(){return u(this.quill.root).on("focus",l.bind(this.hide,this)),u(this.container.querySelector(".insert")).on("click",l.bind(this.insertImage,this)),u(this.container.querySelector(".cancel")).on("click",l.bind(this.hide,this)),u(this.textbox).on("input",l.bind(this._preview,this)),this.initTextbox(this.textbox,this.insertImage,this.hide),this.quill.onModuleLoad("toolbar",(e=this,function(t){return(e.toolbar=t).initFormat("image",l.bind(e._onToolbar,e))}));var e},n.prototype.insertImage=function(){var t,e;return e=this._normalizeURL(this.textbox.value),null==this.range&&(this.range=new o(0,0)),this.range&&(this.preview.innerHTML="<span>Preview</span>",this.textbox.value="",t=this.range.end,this.quill.insertEmbed(t,"image",e,"user"),this.quill.setSelection(t+1,t+1)),this.hide()},n.prototype._onToolbar=function(t,e){return e?(this.textbox.value||(this.textbox.value="http://"),this.show(),this.textbox.focus(),l.defer((n=this,function(){return n.textbox.setSelectionRange(n.textbox.value.length,n.textbox.value.length)}))):(this.quill.deleteText(t,"user"),this.toolbar.setActive("image",!1));var n},n.prototype._preview=function(){var t;if(this._matchImageURL(this.textbox.value))return"IMG"===this.preview.firstChild.tagName?this.preview.firstChild.setAttribute("src",this.textbox.value):((t=document.createElement("img")).setAttribute("src",this.textbox.value),this.preview.replaceChild(t,this.preview.firstChild))},n.prototype._matchImageURL=function(t){return/^https?:\/\/.+\.(jpe?g|gif|png)$/.test(t)},n.prototype._normalizeURL=function(t){return/^https?:\/\//.test(t)||(t="http://"+t),t},n}(),i.registerModule("image-tooltip",r),e.exports=r},{"../quill":30,"./tooltip":28}],23:[function(t,e,n){var a,r,c,h,s;c=t("../quill"),h=c.require("lodash"),s=c.require("dom"),a=c.require("delta"),r=function(){function l(t,e){var n;this.quill=t,this.hotkeys={},this._initListeners(),this._initHotkeys(),this.quill.onModuleLoad("toolbar",(n=this,function(t){return n.toolbar=t}))}return l.hotkeys={BOLD:{key:"B",metaKey:!0},INDENT:{key:s.KEYS.TAB},ITALIC:{key:"I",metaKey:!0},OUTDENT:{key:s.KEYS.TAB,shiftKey:!0},UNDERLINE:{key:"U",metaKey:!0}},l.prototype.addHotkey=function(t,r){return Array.isArray(t)||(t=[t]),h.each(t,(i=this,function(t){var e,n;return(t=h.isObject(t)?h.clone(t):{key:t}).callback=r,n=h.isNumber(t.key)?t.key:t.key.toUpperCase().charCodeAt(0),null==(e=i.hotkeys)[n]&&(e[n]=[]),i.hotkeys[n].push(t)}));var i},l.prototype.removeHotkeys=function(e,n){var t,r,i,o,s;return e=h.isString(e)?e.toUpperCase():e,e=l.hotkeys[e]?l.hotkeys[e]:e,e=h.isObject(e)?e:{key:e},s=h.isNumber(e.key)?e.key:e.key.charCodeAt(0),null==(t=this.hotkeys)[s]&&(t[s]=[]),o=(i=h.partition(this.hotkeys[s],function(t){return h.isEqual(e,h.omit(t,"callback"))&&(!n||n===t.callback)}))[0],r=i[1],this.hotkeys[s]=r,h.map(o,"callback")},l.prototype.toggleFormat=function(t,n){var e,r;if(r=0===(e=t.isCollapsed()?this.quill.getContents(Math.max(0,t.start-1),t.end):this.quill.getContents(t)).ops.length||!h.all(e.ops,function(t){var e;return null!=(e=t.attributes)?e[n]:void 0}),t.isCollapsed()?this.quill.prepareFormat(n,r,c.sources.USER):this.quill.formatText(t,n,r,c.sources.USER),null!=this.toolbar)return this.toolbar.setActive(n,r)},l.prototype._initEnter=function(){var t,u;return t=[{key:s.KEYS.ENTER},{key:s.KEYS.ENTER,shiftKey:!0}],this.addHotkey(t,(u=this,function(t,e){var n,r,i,o,s,l;return null==t||(i=(s=u.quill.editor.doc.findLineAt(t.start))[0],o=s[1],r=(l=i.findLeafAt(o))[0],o=l[1],n=(new a).retain(t.start).insert("\n",i.formats).delete(t.end-t.start),u.quill.updateContents(n,c.sources.USER),h.each(r.formats,function(t,e){u.quill.prepareFormat(e,t),null!=u.toolbar&&u.toolbar.setActive(e,t)}),u.quill.editor.selection.scrollIntoView(),!1)}))},l.prototype._initDeletes=function(){return this.addHotkey([s.KEYS.DELETE,s.KEYS.BACKSPACE],(o=this,function(t,e){var n,r,i;return null!=t&&0<o.quill.getLength()&&(t.start!==t.end?o.quill.deleteText(t.start,t.end,c.sources.USER):e.key===s.KEYS.BACKSPACE?(r=(i=o.quill.editor.doc.findLineAt(t.start))[0],0===i[1]&&(r.formats.bullet||r.formats.list)?(n=r.formats.bullet?"bullet":"list",o.quill.formatLine(t.start,t.start,n,!1,c.sources.USER)):0<t.start&&o.quill.deleteText(t.start-1,t.start,c.sources.USER)):t.start<o.quill.getLength()-1&&o.quill.deleteText(t.start,t.start+1,c.sources.USER)),o.quill.editor.selection.scrollIntoView(),!1}));var o},l.prototype._initHotkeys=function(){var e,n;return this.addHotkey(l.hotkeys.INDENT,(e=this,function(t){return e._onTab(t,!1),!1})),this.addHotkey(l.hotkeys.OUTDENT,function(t){return!1}),h.each(["bold","italic","underline"],(n=this,function(e){return n.addHotkey(l.hotkeys[e.toUpperCase()],function(t){return n.quill.editor.doc.formats[e]&&n.toggleFormat(t,e),!1})})),this._initDeletes(),this._initEnter()},l.prototype._initListeners=function(){return s(this.quill.root).on("keydown",(i=this,function(n){var r;return r=!1,h.each(i.hotkeys[n.which],function(t){var e;if(e=s.isMac()?n.metaKey:n.metaKey||n.ctrlKey,!!t.metaKey==!!e&&!!t.shiftKey==!!n.shiftKey&&!!t.altKey==!!n.altKey)return r=!1===t.callback(i.quill.getSelection(),t,n)||r,!0}),!r}));var i},l.prototype._onTab=function(t,e){var n;return null==e&&(e=!1),n=(new a).retain(t.start).insert("\t").delete(t.end-t.start).retain(this.quill.getLength()-t.end),this.quill.updateContents(n,c.sources.USER),this.quill.setSelection(t.start+1,t.start+1)},l}(),c.registerModule("keyboard",r),e.exports=r},{"../quill":30}],24:[function(t,e,n){var r,i,s,l,u,a={}.hasOwnProperty;i=t("../quill"),s=t("./tooltip"),l=i.require("lodash"),u=i.require("dom"),r=function(t){function o(t,e){this.quill=t,this.options=e,this.options=l.defaults(this.options,s.DEFAULTS),o.__super__.constructor.call(this,this.quill,this.options),u(this.container).addClass("ql-link-tooltip"),this.textbox=this.container.querySelector(".input"),this.link=this.container.querySelector(".url"),this.initListeners()}return function(t,e){for(var n in e)a.call(e,n)&&(t[n]=e[n]);function r(){this.constructor=t}r.prototype=e.prototype,t.prototype=new r,t.__super__=e.prototype}(o,s),o.DEFAULTS={maxLength:50,template:'<span class="title">Visit URL:&nbsp;</span> <a href="#" class="url" target="_blank" href="about:blank"></a> <input class="input" type="text"> <span>&nbsp;&#45;&nbsp;</span> <a href="javascript:;" class="change">Change</a> <a href="javascript:;" class="remove">Remove</a> <a href="javascript:;" class="done">Done</a>'},o.hotkeys={LINK:{key:"K",metaKey:!0}},o.prototype.initListeners=function(){var n,t,e,r,i;return this.quill.on(this.quill.constructor.events.SELECTION_CHANGE,(n=this,function(t){var e;if(null!=t&&t.isCollapsed())return(e=n._findAnchor(t))?(n.setMode(e.href,!1),n.show(e)):n.container.style.left!==s.HIDE_MARGIN?(n.range=null,n.hide()):void 0})),u(this.container.querySelector(".done")).on("click",l.bind(this.saveLink,this)),u(this.container.querySelector(".remove")).on("click",(t=this,function(){return t.removeLink(t.range)})),u(this.container.querySelector(".change")).on("click",(e=this,function(){return e.setMode(e.link.href,!0)})),this.initTextbox(this.textbox,this.saveLink,this.hide),this.quill.onModuleLoad("toolbar",(r=this,function(t){return(r.toolbar=t).initFormat("link",l.bind(r._onToolbar,r))})),this.quill.onModuleLoad("keyboard",(i=this,function(t){return t.addHotkey(o.hotkeys.LINK,l.bind(i._onKeyboard,i))}))},o.prototype.saveLink=function(){var t,e,n;return n=this._normalizeURL(this.textbox.value),null!=this.range&&(e=this.range.end,this.range.isCollapsed()?null!=(t=this._findAnchor(this.range))&&(t.href=n):this.quill.formatText(this.range,"link",n,"user"),this.quill.setSelection(e,e)),this.setMode(n,!1)},o.prototype.removeLink=function(t){if(t.isCollapsed()&&(t=this._expandRange(t)),this.hide(),this.quill.formatText(t,"link",!1,"user"),null!=this.toolbar)return this.toolbar.setActive("link",!1)},o.prototype.setMode=function(t,e){var n,r;return null==e&&(e=!1),e?(this.textbox.value=t,l.defer((r=this,function(){return r.textbox.focus(),r.textbox.setSelectionRange(0,t.length)}))):(this.link.href=t,n=(t=this.link.href).length>this.options.maxLength?t.slice(0,this.options.maxLength)+"...":t,u(this.link).text(n)),u(this.container).toggleClass("editing",e)},o.prototype._findAnchor=function(t){var e,n,r;for(e=(r=this.quill.editor.doc.findLeafAt(t.start,!0))[0],r[1],null!=e&&(n=e.node);null!=n&&n!==this.quill.root;){if("A"===n.tagName)return n;n=n.parentNode}return null},o.prototype._expandRange=function(t){var e,n,r,i;return e=(r=this.quill.editor.doc.findLeafAt(t.start,!0))[0],n=r[1],{start:i=t.start-n,end:i+e.length}},o.prototype._onToolbar=function(t,e){return this._toggle(t,e)},o.prototype._onKeyboard=function(){var t;return t=this.quill.getSelection(),this._toggle(t,!this._findAnchor(t))},o.prototype._toggle=function(t,e){var n;if(t)return e?t.isCollapsed()?void 0:(this.setMode(this._suggestURL(t),!0),n=this.quill.editor.selection._getNativeRange(),this.show(n)):this.removeLink(t)},o.prototype._normalizeURL=function(t){return/^(https?:\/\/|mailto:)/.test(t)||(t="http://"+t),t},o.prototype._suggestURL=function(t){var e;return e=this.quill.getText(t),this._normalizeURL(e)},o}(),i.registerModule("link-tooltip",r),e.exports=r},{"../quill":30,"./tooltip":28}],25:[function(t,e,n){var r,i,o,l,u,a={}.hasOwnProperty;o=t("../quill"),r=t("eventemitter2").EventEmitter2,l=o.require("lodash"),u=o.require("dom"),i=function(t){function s(t,e){this.quill=t,this.options=e,this.cursors={},this.container=this.quill.addContainer("ql-multi-cursor",!0),this.quill.on(this.quill.constructor.events.TEXT_CHANGE,l.bind(this._applyDelta,this))}return function(t,e){for(var n in e)a.call(e,n)&&(t[n]=e[n]);function r(){this.constructor=t}r.prototype=e.prototype,t.prototype=new r,t.__super__=e.prototype}(s,r),s.DEFAULTS={template:'<span class="cursor-flag"> <span class="cursor-name"></span> </span> <span class="cursor-caret"></span>',timeout:2500},s.events={CURSOR_ADDED:"cursor-addded",CURSOR_MOVED:"cursor-moved",CURSOR_REMOVED:"cursor-removed"},s.prototype.clearCursors=function(){return l.each(Object.keys(this.cursors),l.bind(this.removeCursor,this)),this.cursors={}},s.prototype.moveCursor=function(t,e){var n;if(null!=(n=this.cursors[t]))return n.index=e,u(n.elem).removeClass("hidden"),clearTimeout(n.timer),n.timer=setTimeout(function(){return u(n.elem).addClass("hidden"),n.timer=null},this.options.timeout),this._updateCursor(n),n},s.prototype.removeCursor=function(t){var e;return e=this.cursors[t],this.emit(s.events.CURSOR_REMOVED,e),null!=e&&e.elem.parentNode.removeChild(e.elem),delete this.cursors[t]},s.prototype.setCursor=function(t,e,n,r){var i,o;return null==this.cursors[t]&&(this.cursors[t]=i={userId:t,index:e,color:r,elem:this._buildCursor(n,r)},this.emit(s.events.CURSOR_ADDED,i)),l.defer((o=this,function(){return o.moveCursor(t,e)})),this.cursors[t]},s.prototype.shiftCursors=function(r,i,o){return null==o&&(o=null),l.each(this.cursors,(s=this,function(t,e){var n;if(t)return n=Math.max(i,r-t.index),t.userId===o?s.moveCursor(o,t.index+n):t.index>r?t.index+=n:void 0}));var s},s.prototype.update=function(){return l.each(this.cursors,(n=this,function(t,e){if(null!=t)return n._updateCursor(t),!0}));var n},s.prototype._applyDelta=function(t){var r,i;return r=0,l.each(t.ops,(i=this,function(t){var e,n;return e=0,null!=t.insert?(e=t.insert.length||1,i.shiftCursors(r,e,null!=(n=t.attributes)?n.author:void 0)):null!=t.delete?i.shiftCursors(r,-1*t.delete,null):null!=t.retain&&(i.shiftCursors(r,0,null),e=t.retain),r+=e})),this.update()},s.prototype._buildCursor=function(t,e){var n,r;return n=document.createElement("span"),u(n).addClass("cursor"),n.innerHTML=this.options.template,n.querySelector(".cursor-flag"),r=n.querySelector(".cursor-name"),u(r).text(t),n.querySelector(".cursor-caret").style.backgroundColor=r.style.backgroundColor=e,this.container.appendChild(n),n},s.prototype._updateCursor=function(t){var e,n;return null==(e=this.quill.getBounds(t.index))?this.removeCursor(t.userId):(t.elem.style.top=e.top+this.quill.container.scrollTop+"px",t.elem.style.left=e.left+"px",t.elem.style.height=e.height+"px",n=t.elem.querySelector(".cursor-flag"),u(t.elem).toggleClass("top",parseInt(t.elem.style.top)<=n.offsetHeight).toggleClass("left",parseInt(t.elem.style.left)<=n.offsetWidth).toggleClass("right",this.quill.root.offsetWidth-parseInt(t.elem.style.left)<=n.offsetWidth),this.emit(s.events.CURSOR_MOVED,t))},s}(),o.registerModule("multi-cursor",i),e.exports=i},{"../quill":30,eventemitter2:2}],26:[function(t,e,n){var i,o,r,s,l,u,a=function(t,e){return function(){return t.apply(e,arguments)}};s=t("../quill"),o=t("../core/document"),l=s.require("lodash"),u=s.require("dom"),i=s.require("delta"),r=function(){function r(t,e){var n;this.quill=t,this._onConvert=a(this._onConvert,this),this.container=this.quill.addContainer("ql-paste-manager"),this.container.setAttribute("contenteditable",!0),this.container.setAttribute("tabindex","-1"),u(this.quill.root).on("paste",l.bind(this._paste,this)),this.options=l.defaults(e,r.DEFAULTS),null==(n=this.options).onConvert&&(n.onConvert=this._onConvert)}return r.DEFAULTS={onConvert:null},r.prototype._onConvert=function(t){var e,n;return 0===(n=(e=new o(t,this.quill.options).toDelta()).length())?e:e.compose((new i).retain(n-1).delete(1))},r.prototype._paste=function(){var n,r;if(this.quill.getLength(),null!=(n=this.quill.getSelection()))return this.container.focus(),l.defer((r=this,function(){var t,e;return 0<(e=(t=r.options.onConvert(r.container)).length())&&(0<n.start&&t.ops.unshift({retain:n.start}),t.delete(n.end-n.start),r.quill.updateContents(t,"user")),r.quill.setSelection(n.start+e,n.start+e),r.quill.editor.selection.scrollIntoView(),r.container.innerHTML=""}))},r}(),s.registerModule("paste-manager",r),e.exports=r},{"../core/document":8,"../quill":30}],27:[function(t,e,n){var u,r,a,c;u=t("../quill"),a=u.require("lodash"),c=u.require("dom"),r=function(){function l(t,e){if(this.quill=t,this.options=e,(a.isString(this.options)||a.isElement(this.options))&&(this.options={container:this.options}),null==this.options.container)throw new Error("container required for toolbar",this.options);var n,r,i,o,s;this.container=a.isString(this.options.container)?document.querySelector(this.options.container):this.options.container,this.inputs={},this.preventUpdate=!1,this.triggering=!1,a.each(this.quill.options.formats,(n=this,function(t){if(null==l.formats.TOOLTIP[t])return n.initFormat(t,a.bind(n._applyFormat,n,t))})),this.quill.on(u.events.FORMAT_INIT,(r=this,function(t){if(null==l.formats.TOOLTIP[t])return r.initFormat(t,a.bind(r._applyFormat,r,t))})),this.quill.on(u.events.SELECTION_CHANGE,(i=this,function(t){if(null!=t)return i.updateActive(t)})),this.quill.on(u.events.TEXT_CHANGE,(o=this,function(){return o.updateActive()})),this.quill.onModuleLoad("keyboard",(s=this,function(t){return t.addHotkey([c.KEYS.BACKSPACE,c.KEYS.DELETE],function(){return a.defer(a.bind(s.updateActive,s))})})),c(this.container).addClass("ql-toolbar"),c.isIOS()&&c(this.container).addClass("ios")}return l.DEFAULTS={container:null},l.formats={LINE:{align:"align",bullet:"bullet",list:"list"},SELECT:{align:"align",background:"background",color:"color",font:"font",size:"size"},TOGGLE:{bold:"bold",bullet:"bullet",image:"image",italic:"italic",link:"link",list:"list",strike:"strike",underline:"underline"},TOOLTIP:{image:"image",link:"link"}},l.prototype.initFormat=function(t,n){var r,i,e,o;if(e=".ql-"+t,null!=l.formats.SELECT[t]?(e="select"+e,r="change"):r="click",null!=(i=this.container.querySelector(e)))return this.inputs[t]=i,c(i).on(r,(o=this,function(){var t,e;return e="change"===r?c(i).value():!c(i).hasClass("ql-active"),o.preventUpdate=!0,o.quill.focus(),null!=(t=o.quill.getSelection())&&n(t,e),c.isIE(11)&&o.quill.editor.selection.scrollIntoView(),o.preventUpdate=!1}))},l.prototype.setActive=function(t,e){var n,r,i,o;if("image"===t&&(e=!1),null!=(r=this.inputs[t]))return n=c(r),"SELECT"===r.tagName?(this.triggering=!0,o=n.value(r),null==e&&(e=null!=(i=n.default())?i.value:void 0),Array.isArray(e)&&(e=""),e!==o&&(null!=e?n.option(e):n.reset()),this.triggering=!1):n.toggleClass("ql-active",e||!1)},l.prototype.updateActive=function(t,n){var r,i;if(null==n&&(n=null),t||(t=this.quill.getSelection()),null!=t&&!this.preventUpdate)return r=this._getActive(t),a.each(this.inputs,(i=this,function(t,e){return(!Array.isArray(n)||-1<n.indexOf(e))&&i.setActive(e,r[e]),!0}))},l.prototype._applyFormat=function(t,e,n){var r;if(!this.triggering)return e.isCollapsed()?this.quill.prepareFormat(t,n,"user"):null!=l.formats.LINE[t]?this.quill.formatLine(e,t,n,"user"):this.quill.formatText(e,t,n,"user"),a.defer((r=this,function(){return r.updateActive(e,["bullet","list"]),r.setActive(t,n)}))},l.prototype._getActive=function(t){var e,n;return e=this._getLeafActive(t),n=this._getLineActive(t),a.defaults({},e,n)},l.prototype._getLeafActive=function(t){var e,n,r;return t.isCollapsed()?((r=this.quill.editor.doc.findLineAt(t.start))[0],e=0===r[1]?this.quill.getContents(t.start,t.end+1):this.quill.getContents(t.start-1,t.end)):e=this.quill.getContents(t),n=a.map(e.ops,"attributes"),this._intersectFormats(n)},l.prototype._getLineActive=function(t){var e,n,r,i,o;for(n=[],e=(i=this.quill.editor.doc.findLineAt(t.start))[0],i[1],r=(o=this.quill.editor.doc.findLineAt(t.end))[0],o[1],null!=r&&r===e&&(r=r.next);null!=e&&e!==r;)n.push(a.clone(e.formats)),e=e.next;return this._intersectFormats(n)},l.prototype._intersectFormats=function(t){return a.reduce(t.slice(1),function(e,n){var t,r,i,o,s;return null==n&&(n={}),t=Object.keys(e),i=null!=n?Object.keys(n):{},o=a.intersection(t,i),s=a.difference(t,i),r=a.difference(i,t),a.each(o,function(t){if(null!=l.formats.SELECT[t])if(Array.isArray(e[t])){if(e[t].indexOf(n[t])<0)return e[t].push(n[t])}else if(e[t]!==n[t])return e[t]=[e[t],n[t]]}),a.each(s,function(t){return null!=l.formats.TOGGLE[t]?delete e[t]:null==l.formats.SELECT[t]||Array.isArray(e[t])?void 0:e[t]=[e[t]]}),a.each(r,function(t){if(null!=l.formats.SELECT[t])return e[t]=[n[t]]}),e},t[0]||{})},l}(),u.registerModule("toolbar",r),e.exports=r},{"../quill":30}],28:[function(t,e,n){var r,i,o;(r=t("../quill")).require("lodash"),o=r.require("dom"),i=function(){function r(t,e){var n;this.quill=t,this.options=e,this.container=this.quill.addContainer("ql-tooltip"),this.container.innerHTML=this.options.template,this.hide(),this.quill.on(this.quill.constructor.events.TEXT_CHANGE,(n=this,function(t,e){if(n.container.style.left!==r.HIDE_MARGIN)return n.range=null,n.hide()}))}return r.DEFAULTS={offset:10,template:""},r.HIDE_MARGIN="-10000px",r.prototype.initTextbox=function(t,e,n){return o(t).on("keydown",(r=this,function(t){switch(t.which){case o.KEYS.ENTER:return t.preventDefault(),e.call(r);case o.KEYS.ESCAPE:return t.preventDefault(),n.call(r);default:return!0}}));var r},r.prototype.hide=function(){return this.container.style.left=r.HIDE_MARGIN,this.range&&this.quill.setSelection(this.range),this.range=null},r.prototype.position=function(t){var e,n,r,i,o,s;return null!=t?(o=t.getBoundingClientRect(),i=this.quill.container.getBoundingClientRect(),n=o.left-i.left,r=o.top-i.top,o.bottom-i.bottom,e=n+o.width/2-this.container.offsetWidth/2,(s=r+o.height+this.options.offset)+this.container.offsetHeight>this.quill.container.offsetHeight&&(s=r-this.container.offsetHeight-this.options.offset),e=Math.max(0,Math.min(e,this.quill.container.offsetWidth-this.container.offsetWidth)),s=Math.max(0,Math.min(s,this.quill.container.offsetHeight-this.container.offsetHeight))):(e=this.quill.container.offsetWidth/2-this.container.offsetWidth/2,s=this.quill.container.offsetHeight/2-this.container.offsetHeight/2),[e,s+=this.quill.container.scrollTop]},r.prototype.show=function(t){var e,n,r;return this.range=this.quill.getSelection(),e=(n=this.position(t))[0],r=n[1],this.container.style.left=e+"px",this.container.style.top=r+"px",this.container.focus()},r}(),r.registerModule("tooltip",i),e.exports=i},{"../quill":30}],29:[function(t,e,n){var o,r,s;o=t("../quill"),s=o.require("lodash"),o.require("delta"),r=function(){function i(t,e){this.quill=t,this.options=null!=e?e:{},this.lastRecorded=0,this.ignoreChange=!1,this.clear(),this.initListeners()}return i.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1},i.hotkeys={UNDO:{key:"Z",metaKey:!0},REDO:{key:"Z",metaKey:!0,shiftKey:!0}},i.prototype.initListeners=function(){var n,r;return this.quill.onModuleLoad("keyboard",(n=this,function(t){var e;return t.addHotkey(i.hotkeys.UNDO,function(){return n.quill.editor.checkUpdate(),n.undo(),!1}),e=[i.hotkeys.REDO],-1<navigator.platform.indexOf("Win")&&e.push({key:"Y",metaKey:!0}),t.addHotkey(e,function(){return n.quill.editor.checkUpdate(),n.redo(),!1})})),this.quill.on(this.quill.constructor.events.TEXT_CHANGE,(r=this,function(t,e){if(!r.ignoreChange)return r.options.userOnly&&e!==o.sources.USER?r._transform(t):r.record(t,r.oldDelta),r.oldDelta=r.quill.getContents()}))},i.prototype.clear=function(){return this.stack={undo:[],redo:[]},this.oldDelta=this.quill.getContents()},i.prototype.record=function(t,e){var n,r,i;if(0<t.ops.length){this.stack.redo=[];try{if(i=this.quill.getContents().diff(this.oldDelta),r=(new Date).getTime(),this.lastRecorded+this.options.delay>r&&0<this.stack.undo.length?(n=this.stack.undo.pop(),i=i.compose(n.undo),t=n.redo.compose(t)):this.lastRecorded=r,this.stack.undo.push({redo:t,undo:i}),this.stack.undo.length>this.options.maxStack)return this.stack.undo.unshift()}catch(t){return t,console.warn("Could not record change... clearing undo stack."),this.clear()}}},i.prototype.redo=function(){return this._change("redo","undo")},i.prototype.undo=function(){return this._change("undo","redo")},i.prototype._getLastChangeIndex=function(t){var e,n;return e=n=0,s.each(t.ops,function(t){return null!=t.insert?n=Math.max(e+(t.insert.length||1),n):null!=t.delete?n=Math.max(e,n):null!=t.retain?(null!=t.attributes&&(n=Math.max(e+t.retain,n)),e+=t.retain):void 0}),n},i.prototype._change=function(t,e){var n,r;if(0<this.stack[t].length)return n=this.stack[t].pop(),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(n[t],o.sources.USER),this.ignoreChange=!1,r=this._getLastChangeIndex(n[t]),this.quill.setSelection(r,r),this.oldDelta=this.quill.getContents(),this.stack[e].push(n)},i.prototype._transform=function(t){var e,n,r,i,o,s,l,u;for(this.oldDelta=t.transform(this.oldDelta,!0),n=0,i=(s=this.stack.undo).length;n<i;n++)(e=s[n]).undo=t.transform(e.undo,!0),e.redo=t.transform(e.redo,!0);for(u=[],r=0,o=(l=this.stack.redo).length;r<o;r++)(e=l[r]).undo=t.transform(e.undo,!0),u.push(e.redo=t.transform(e.redo,!0));return u},i}(),o.registerModule("undo-manager",r),e.exports=r},{"../quill":30}],30:[function(t,e,n){var a,r,l,i,o,u,s,c,h,f,p,d={}.hasOwnProperty,g=[].slice;h=t("lodash"),p=t("../package.json"),a=t("rich-text/lib/delta"),i=t("eventemitter2").EventEmitter2,f=t("./lib/dom"),r=t("./core/document"),l=t("./core/editor"),o=t("./core/format"),u=t("./core/normalizer"),c=t("./lib/range"),(s=function(t){function s(t,e){var n,r,i,o;if(this.container=t,null==e&&(e={}),h.isString(this.container)&&(this.container=document.querySelector(this.container)),null==this.container)throw new Error("Invalid Quill container");if(r=h.defaults(e.modules||{},s.DEFAULTS.modules),n=this.container.innerHTML,this.container.innerHTML="",this.options=h.defaults(e,s.DEFAULTS),this.options.modules=r,this.options.id=this.id="ql-editor-"+(s.editors.length+1),this.modules={},this.root=this.addContainer("ql-editor"),this.editor=new l(this.root,this,this.options),s.editors.push(this),this.setHTML(n,s.sources.SILENT),null==(i=s.themes[this.options.theme]))throw new Error("Cannot load "+this.options.theme+" theme. Are you sure you registered it?");this.theme=new i(this,this.options),h.each(this.options.modules,(o=this,function(t,e){return o.addModule(e,t)}))}return function(t,e){for(var n in e)d.call(e,n)&&(t[n]=e[n]);function r(){this.constructor=t}r.prototype=e.prototype,t.prototype=new r,t.__super__=e.prototype}(s,i),s.version=p.version,s.editors=[],s.modules=[],s.themes=[],s.DEFAULTS={formats:["align","bold","italic","strike","underline","color","background","font","size","link","image","bullet","list"],modules:{keyboard:!0,"paste-manager":!0,"undo-manager":!0},pollInterval:100,readOnly:!1,styles:{},theme:"base"},s.events={FORMAT_INIT:"format-init",MODULE_INIT:"module-init",POST_EVENT:"post-event",PRE_EVENT:"pre-event",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change"},s.sources=l.sources,s.registerModule=function(t,e){return null!=s.modules[t]&&console.warn("Overwriting "+t+" module"),s.modules[t]=e},s.registerTheme=function(t,e){return null!=s.themes[t]&&console.warn("Overwriting "+t+" theme"),s.themes[t]=e},s.require=function(t){switch(t){case"lodash":return h;case"delta":return a;case"format":return o;case"normalizer":return u;case"dom":return f;case"document":return r;case"range":return c;default:return null}},s.prototype.destroy=function(){var t;return t=this.getHTML(),h.each(this.modules,function(t,e){if(h.isFunction(t.destroy))return t.destroy()}),this.editor.destroy(),this.removeAllListeners(),s.editors.splice(h.indexOf(s.editors,this),1),this.container.innerHTML=t},s.prototype.addContainer=function(t,e){var n,r;return null==e&&(e=!1),r=e?this.root:null,n=document.createElement("div"),f(n).addClass(t),this.container.insertBefore(n,r),n},s.prototype.addFormat=function(t,e){return this.editor.doc.addFormat(t,e),this.emit(s.events.FORMAT_INIT,t)},s.prototype.addModule=function(t,e){var n;if(null==(n=s.modules[t]))throw new Error("Cannot load "+t+" module. Are you sure you registered it?");return!0===e&&(e={}),e=h.defaults(e,this.theme.constructor.OPTIONS[t]||{},n.DEFAULTS||{}),this.modules[t]=new n(this,e),this.emit(s.events.MODULE_INIT,t,this.modules[t]),this.modules[t]},s.prototype.deleteText=function(t,e,n){var r,i;if(null==n&&(n=s.sources.API),t=(i=this._buildParams(t,e,{},n))[0],e=i[1],i[2],n=i[3],t<e)return r=(new a).retain(t).delete(e-t),this.editor.applyDelta(r,n)},s.prototype.emit=function(){var t,e;return e=arguments[0],t=2<=arguments.length?g.call(arguments,1):[],s.__super__.emit.apply(this,[s.events.PRE_EVENT,e].concat(g.call(t))),s.__super__.emit.apply(this,[e].concat(g.call(t))),s.__super__.emit.apply(this,[s.events.POST_EVENT,e].concat(g.call(t)))},s.prototype.focus=function(){return this.editor.focus()},s.prototype.formatLine=function(t,e,n,r,i){var o,s,l,u,a;return t=(u=this._buildParams(t,e,n,r,i))[0],e=u[1],o=u[2],i=u[3],s=(a=this.editor.doc.findLineAt(e))[0],l=a[1],null!=s&&(e+=s.length-l),this.formatText(t,e,o,i)},s.prototype.formatText=function(t,e,n,r,i){var o,s,l,u;return t=(l=this._buildParams(t,e,n,r,i))[0],e=l[1],s=l[2],i=l[3],s=h.reduce(s,(u=this,function(t,e,n){var r;return r=u.editor.doc.formats[n],e&&e!==r.config.default||(t[n]=null),t}),s),o=(new a).retain(t).retain(e-t,s),this.editor.applyDelta(o,i)},s.prototype.getBounds=function(t){return this.editor.getBounds(t)},s.prototype.getContents=function(t,e){return null==t&&(t=0),null==e&&(e=null),h.isObject(t)&&(e=t.end,t=t.start),this.editor.delta.slice(t,e)},s.prototype.getHTML=function(){return this.editor.doc.getHTML()},s.prototype.getLength=function(){return this.editor.length},s.prototype.getModule=function(t){return this.modules[t]},s.prototype.getSelection=function(){return this.editor.checkUpdate(),this.editor.selection.getRange()},s.prototype.getText=function(t,e){return null==t&&(t=0),null==e&&(e=null),h.map(this.getContents(t,e).ops,function(t){return h.isString(t.insert)?t.insert:""}).join("")},s.prototype.insertEmbed=function(t,e,n,r){var i,o,s;return t=(s=this._buildParams(t,0,e,n,r))[0],s[1],o=s[2],r=s[3],i=(new a).retain(t).insert(1,o),this.editor.applyDelta(i,r)},s.prototype.insertText=function(t,e,n,r,i){var o,s,l;if(t=(l=this._buildParams(t,0,n,r,i))[0],l[1],s=l[2],i=l[3],0<e.length)return o=(new a).retain(t).insert(e,s),this.editor.applyDelta(o,i)},s.prototype.onModuleLoad=function(n,r){return this.modules[n]?r(this.modules[n]):this.on(s.events.MODULE_INIT,function(t,e){if(t===n)return r(e)})},s.prototype.prepareFormat=function(t,e,n){var r,i;if(null==n&&(n=s.sources.API),null!=(r=this.editor.doc.formats[t])&&(null!=(i=this.getSelection())?i.isCollapsed():void 0))return r.isType(o.types.LINE)?this.formatLine(i,t,e,n):r.prepare(e)},s.prototype.setContents=function(t,e){var n;return null==e&&(e=s.sources.API),t=Array.isArray(t)?new a(t.slice()):new a(t.ops.slice()),n=h.last(t.slice(t.length()-1).ops),t.delete(this.getLength()-1),null!=n&&h.isString(n.insert)&&"\n"===h.last(n.insert)&&t.delete(1),this.updateContents(t,e)},s.prototype.setHTML=function(t,e){return null==e&&(e=s.sources.API),t.trim()||(t="<"+f.DEFAULT_BLOCK_TAG+"><"+f.DEFAULT_BREAK_TAG+"></"+f.DEFAULT_BLOCK_TAG+">"),this.editor.doc.setHTML(t),this.editor.checkUpdate(e)},s.prototype.setSelection=function(t,e,n){var r;return null==n&&(n=s.sources.API),h.isNumber(t)&&h.isNumber(e)?r=new c(t,e):(r=t,n=e||n),this.editor.selection.setRange(r,n)},s.prototype.setText=function(t,e){var n;return null==e&&(e=s.sources.API),n=(new a).insert(t),this.setContents(n,e)},s.prototype.updateContents=function(t,e){return null==e&&(e=s.sources.API),Array.isArray(t)&&(t={ops:t}),this.editor.applyDelta(t,e)},s.prototype._buildParams=function(){var t,e;return e=1<=arguments.length?g.call(arguments,0):[],h.isObject(e[0])&&e.splice(0,1,e[0].start,e[0].end),h.isString(e[2])&&((t={})[e[2]]=e[3],e.splice(2,2,t)),null==e[3]&&(e[3]=s.sources.API),e},s}()).registerTheme("base",t("./themes/base")),s.registerTheme("snow",t("./themes/snow")),e.exports=s},{"../package.json":7,"./core/document":8,"./core/editor":9,"./core/format":10,"./core/normalizer":13,"./lib/dom":17,"./lib/range":20,"./themes/base":32,"./themes/snow":33,eventemitter2:2,lodash:1,"rich-text/lib/delta":3}],31:[function(t,e,n){e.exports='.ql-image-tooltip{padding:10px;width:300px}.ql-image-tooltip:after{clear:both;content:"";display:table}.ql-image-tooltip a{border:1px solid #000;box-sizing:border-box;display:inline-block;float:left;padding:5px;text-align:center;width:50%}.ql-image-tooltip img{bottom:0;left:0;margin:auto;max-height:100%;max-width:100%;position:absolute;right:0;top:0}.ql-image-tooltip .input{box-sizing:border-box;width:100%}.ql-image-tooltip .preview{margin:10px 0;position:relative;border:1px dashed #000;height:200px}.ql-image-tooltip .preview span{display:inline-block;position:absolute;text-align:center;top:40%;width:100%}.ql-link-tooltip{padding:5px 10px}.ql-link-tooltip input.input{width:170px}.ql-link-tooltip a.done,.ql-link-tooltip input.input{display:none}.ql-link-tooltip a.change{margin-right:4px}.ql-link-tooltip.editing a.done,.ql-link-tooltip.editing input.input{display:inline-block}.ql-link-tooltip.editing a.change,.ql-link-tooltip.editing a.remove,.ql-link-tooltip.editing a.url{display:none}.ql-multi-cursor{position:absolute;left:0;top:0;z-index:1000}.ql-multi-cursor .cursor{margin-left:-1px;position:absolute}.ql-multi-cursor .cursor-flag{bottom:100%;position:absolute;white-space:nowrap}.ql-multi-cursor .cursor-name{display:inline-block;color:#fff;padding:2px 8px}.ql-multi-cursor .cursor-caret{height:100%;position:absolute;width:2px}.ql-multi-cursor .cursor.hidden .cursor-flag{display:none}.ql-multi-cursor .cursor.top .cursor-flag{bottom:auto;top:100%}.ql-multi-cursor .cursor.right .cursor-flag{right:-2px}.ql-paste-manager{left:-100000px;position:absolute;top:50%}.ql-toolbar{box-sizing:border-box}.ql-tooltip{background-color:#fff;border:1px solid #000;box-sizing:border-box;position:absolute;top:0;white-space:nowrap;z-index:2000}.ql-tooltip a{cursor:pointer;text-decoration:none}.ql-container{box-sizing:border-box;cursor:text;font-family:Helvetica,Arial,sans-serif;height:100%;line-height:1.42;margin:0;overflow-x:hidden;overflow-y:auto;padding:12px 15px;position:relative}.ql-editor{box-sizing:border-box;min-height:100%;outline:0;tab-size:4;white-space:pre-wrap}.ql-editor div{margin:0;padding:0}.ql-editor a{text-decoration:underline}.ql-editor b{font-weight:700;font-style:bold}.ql-editor i{font-style:italic}.ql-editor s{text-decoration:line-through}.ql-editor u{text-decoration:underline}.ql-editor a,.ql-editor b,.ql-editor i,.ql-editor s,.ql-editor span,.ql-editor u{background-color:inherit}.ql-editor img{max-width:100%}.ql-editor blockquote,.ql-editor ol,.ql-editor ul{margin:0 0 0 2em;padding:0}.ql-editor ol{list-style-type:decimal}.ql-editor ul{list-style-type:disc}.ql-editor.ql-ie-10 br,.ql-editor.ql-ie-9 br{display:none}'},{}],32:[function(t,e,n){var r,i,o,s;i=t("lodash"),s=t("../../lib/dom"),o=t("./base.styl"),r=function(){function r(t,e){var n;this.quill=t,this.options=e,s(this.quill.container).addClass("ql-container"),this.options.styles&&this.addStyles(o+r.objToCss(this.options.styles)),s.isIE(10)&&(n=s.isIE(9)?"9":"10",s(this.quill.root).addClass("ql-ie-"+n))}return r.OPTIONS={},r.objToCss=function(t){return i.map(t,function(t,e){return e+" { "+i.map(t,function(t,e){return e+": "+t+";"}).join(" ")+" }"}).join("\n")},r.prototype.addStyles=function(t){var e;return i.isObject(t)&&(t=r.objToCss(t)),(e=document.createElement("style")).type="text/css",e.appendChild(document.createTextNode(t)),document.head.appendChild(e)},r}(),e.exports=r},{"../../lib/dom":17,"./base.styl":31,lodash:1}],33:[function(t,e,n){var i,o,s,r,l,u,a={}.hasOwnProperty;l=t("lodash"),o=t("../../lib/color-picker"),i=t("../base"),u=t("../../lib/dom"),s=t("../../lib/picker"),r=function(t){function r(t,e){var n;this.quill=t,this.options=e,r.__super__.constructor.apply(this,arguments),u(this.quill.container).addClass("ql-snow"),this.pickers=[],this.quill.on(this.quill.constructor.events.SELECTION_CHANGE,(n=this,function(t){if(null!=t)return l.invoke(n.pickers,"close")})),this.quill.onModuleLoad("multi-cursor",l.bind(this.extendMultiCursor,this)),this.quill.onModuleLoad("toolbar",l.bind(this.extendToolbar,this))}return function(t,e){for(var n in e)a.call(e,n)&&(t[n]=e[n]);function r(){this.constructor=t}r.prototype=e.prototype,t.prototype=new r,t.__super__=e.prototype}(r,i),r.COLORS=["#000000","#e60000","#ff9900","#ffff00","#008A00","#0066cc","#9933ff","#ffffff","#facccc","#ffebcc","#ffffcc","#cce8cc","#cce0f5","#ebd6ff","#bbbbbb","#f06666","#ffc266","#ffff66","#66b966","#66a3e0","#c285ff","#888888","#a10000","#b26b00","#b2b200","#006100","#0047b2","#6b24b2","#444444","#5c0000","#663d00","#666600","#003700","#002966","#3d1466"],r.OPTIONS={"multi-cursor":{template:'<span class="cursor-flag"> <span class="cursor-triangle top"></span> <span class="cursor-name"></span> <span class="cursor-triangle bottom"></span> </span> <span class="cursor-caret"></span>'}},r.prototype.extendMultiCursor=function(t){return t.on(t.constructor.events.CURSOR_ADDED,function(t){var e,n;return e=t.elem.querySelector(".cursor-triangle.bottom"),n=t.elem.querySelector(".cursor-triangle.top"),e.style.borderTopColor=n.style.borderBottomColor=t.color})},r.prototype.extendToolbar=function(r){var i;return u(r.container).addClass("ql-snow"),l.each(["color","background","font","size","align"],(i=this,function(t){var e,n;if(null!=(n=r.container.querySelector(".ql-"+t))){switch(t){case"font":case"size":case"align":e=new s(n);break;case"color":case"background":e=new o(n),l.each(e.container.querySelectorAll(".ql-picker-item"),function(t,e){if(e<7)return u(t).addClass("ql-primary-color")})}return null!=e?i.pickers.push(e):void 0}})),l.each(u(r.container).textNodes(),function(t){if(0===u(t).text().trim().length)return u(t).remove()})},r}(),e.exports=r},{"../../lib/color-picker":16,"../../lib/dom":17,"../../lib/picker":19,"../base":32,lodash:1}]},{},[15])(15)});