PageSourceSearch

https://creatics.org/105.11af3136a7bde477.js

js creatics.org collected 2026-09-25 21:14:27 UTC 200,770 bytes, 1 lines download raw bytes

vendor: 7,800 bytes, line 1
1(self.webpackChunkcreatics_ui=self.webpackChunkcreatics_ui||[]).push([[105],{88655(wt){function xt(f,T,g,C,N){if(f===T)return f?[[0,f]]:[];if(null!=g){var E=function Vt(f,T,g){var C="number"==typeof g?{index:g,length:0}:g.oldRange,N="number"==typeof g?null:g.newRange,E=f.length,x=T.length;if(0===C.length&&(null===N||0===N.length)){var R=C.index,j=f.slice(0,R),q=f.slice(R),nt=N?N.index:null,V=R+x-E;if(!(null!==nt&&nt!==V||V<0||V>x)){var ot=T.slice(0,V);if((it=T.slice(V))===q){var $=Math.min(R,V);if((_t=j.slice(0,$))===(At=ot.slice(0,$)))return Ot(_t,j.slice($),ot.slice($),q)}}if(null===nt||nt===R){var ft=R,it=(ot=T.slice(0,ft),T.slice(ft));if(ot===j){var ct=Math.min(E-ft,x-ft);if((mt=q.slice(q.length-ct))===(yt=it.slice(it.length-ct)))return Ot(j,q.slice(0,q.length-ct),it.slice(0,it.length-ct),mt)}}}if(C.length>0&&N&&0===N.length){var _t=f.slice(0,C.index),mt=f.slice(C.index+C.length);if(!(x<($=_t.length)+(ct=mt.length))){var At=T.slice(0,$),yt=T.slice(x-ct);if(_t===At&&mt===yt)return Ot(_t,f.slice($,E-ct),T.slice($,x-ct),mt)}}return null}(f,T,g);if(E)return E}var x=P(f,T),R=f.substring(0,x);x=H(f=f.substring(x),T=T.substring(x));var j=f.substring(f.length-x),q=function dt(f,T){var g;if(!f)return[[1,T]];if(!T)return[[-1,f]];var C=f.length>T.length?f:T,N=f.length>T.length?T:f,E=C.indexOf(N);if(-1!==E)return g=[[1,C.substring(0,E)],[0,N],[1,C.substring(E+N.length)]],f.length>T.length&&(g[0][0]=g[2][0]=-1),g;if(1===N.length)return[[-1,f],[1,T]];var x=function w(f,T){var g=f.length>T.length?f:T,C=f.length>T.length?T:f;if(g.length<4||2*C.length<g.length)return null;function N(it,$,_t){for(var ft,ct,mt,yt,At=it.substring(_t,_t+Math.floor(it.length/4)),rt=-1,gt="";-1!==(rt=$.indexOf(At,rt+1));){var Ct=P(it.substring(_t),$.substring(rt)),Bt=H(it.substring(0,_t),$.substring(0,rt));gt.length<Bt+Ct&&(gt=$.substring(rt-Bt,rt)+$.substring(rt,rt+Ct),ft=it.substring(0,_t-Bt),ct=it.substring(_t+Ct),mt=$.substring(0,rt-Bt),yt=$.substring(rt+Ct))}return 2*gt.length>=it.length?[ft,ct,mt,yt,gt]:null}var R,j,q,nt,V,E=N(g,C,Math.ceil(g.length/4)),x=N(g,C,Math.ceil(g.length/2));return E||x?(R=x?E&&E[4].length>x[4].length?E:x:E,f.length>T.length?(j=R[0],q=R[1],nt=R[2],V=R[3]):(nt=R[0],V=R[1],j=R[2],q=R[3]),[j,q,nt,V,R[4]]):null}(f,T);if(x){var j=x[1],nt=x[3],V=x[4],ot=xt(x[0],x[2]),it=xt(j,nt);return ot.concat([[0,V]],it)}return function X(f,T){for(var g=f.length,C=T.length,N=Math.ceil((g+C)/2),E=N,x=2*N,R=new Array(x),j=new Array(x),q=0;q<x;q++)R[q]=-1,j[q]=-1;R[E+1]=0,j[E+1]=0;for(var nt=g-C,V=nt%2!=0,ot=0,it=0,$=0,_t=0,At=0;At<N;At++){for(var rt=-At+ot;rt<=At-it;rt+=2){for(var gt=E+rt,ct=(ft=rt===-At||rt!==At&&R[gt-1]<R[gt+1]?R[gt+1]:R[gt-1]+1)-rt;ft<g&&ct<C&&f.charAt(ft)===T.charAt(ct);)ft++,ct++;if(R[gt]=ft,ft>g)it+=2;else if(ct>C)ot+=2;else if(V&&(mt=E+nt-rt)>=0&&mt<x&&-1!==j[mt]&&ft>=(yt=g-j[mt]))return U(f,T,ft,ct)}for(var Ct=-At+$;Ct<=At-_t;Ct+=2){for(var yt,mt=E+Ct,Bt=(yt=Ct===-At||Ct!==At&&j[mt-1]<j[mt+1]?j[mt+1]:j[mt-1]+1)-Ct;yt<g&&Bt<C&&f.charAt(g-yt-1)===T.charAt(C-Bt-1);)yt++,Bt++;if(j[mt]=yt,yt>g)_t+=2;else if(Bt>C)$+=2;else if(!V){var ft;if((gt=E+nt-Ct)>=0&&gt<x&&-1!==R[gt])if(ct=E+(ft=R[gt])-gt,ft>=(yt=g-yt))return U(f,T,ft,ct)}}}return[[-1,f],[1,T]]}(f,T)}(f=f.substring(0,f.length-x),T=T.substring(0,T.length-x));return R&&q.unshift([0,R]),j&&q.push([0,j]),k(q,N),C&&function z(f){for(var T=!1,g=[],C=0,N=null,E=0,x=0,R=0,j=0,q=0;E<f.length;)0==f[E][0]?(g[C++]=E,x=j,R=q,j=0,q=0,N=f[E][1]):(1==f[E][0]?j+=f[E][1].length:q+=f[E][1].length,N&&N.length<=Math.max(x,R)&&N.length<=Math.max(j,q)&&(f.splice(g[C-1],0,[-1,N]),f[g[C-1]+1][0]=1,C--,E=--C>0?g[C-1]:-1,x=0,R=0,j=0,q=0,N=null,T=!0)),E++;for(T&&k(f),function G(f){function T(it,$){if(!it||!$)return 6;var _t=it.charAt(it.length-1),At=$.charAt(0),rt=_t.match(p),gt=At.match(p),ft=rt&&_t.match(m),ct=gt&&At.match(m),mt=ft&&_t.match(_),yt=ct&&At.match(_),Ct=mt&&it.match(A),Bt=yt&&$.match(K);return Ct||Bt?5:mt||yt?4:rt&&!ft&&ct?3:ft||ct?2:rt||gt?1:0}for(var g=1;g<f.length-1;){if(0==f[g-1][0]&&0==f[g+1][0]){var C=f[g-1][1],N=f[g][1],E=f[g+1][1],x=H(C,N);if(x){var R=N.substring(N.length-x);C=C.substring(0,C.length-x),N=R+N.substring(0,N.length-x),E=R+E}for(var j=C,q=N,nt=E,V=T(C,N)+T(N,E);N.charAt(0)===E.charAt(0);){C+=N.charAt(0),N=N.substring(1)+E.charAt(0),E=E.substring(1);var ot=T(C,N)+T(N,E);ot>=V&&(V=ot,j=C,q=N,nt=E)}f[g-1][1]!=j&&(j?f[g-1][1]=j:(f.splice(g-1,1),g--),f[g][1]=q,nt?f[g+1][1]=nt:(f.splice(g+1,1),g--))}g++}}(f),E=1;E<f.length;){if(-1==f[E-1][0]&&1==f[E][0]){var nt=f[E-1][1],V=f[E][1],ot=F(nt,V),it=F(V,nt);ot>=it?(ot>=nt.length/2||ot>=V.length/2)&&(f.splice(E,0,[0,V.substring(0,ot)]),f[E-1][1]=nt.substring(0,nt.length-ot),f[E+1][1]=V.substring(ot),E++):(it>=nt.length/2||it>=V.length/2)&&(f.splice(E,0,[0,nt.substring(0,it)]),f[E-1][0]=1,f[E-1][1]=V.substring(0,V.length-it),f[E+1][0]=-1,f[E+1][1]=nt.substring(it),E++),E++}E++}}(q),q}function U(f,T,g,C){var N=f.substring(0,g),E=T.substring(0,C),x=f.substring(g),R=T.substring(C),j=xt(N,E),q=xt(x,R);return j.concat(q)}function P(f,T){if(!f||!T||f.charAt(0)!==T.charAt(0))return 0;for(var g=0,C=Math.min(f.length,T.length),N=C,E=0;g<N;)f.substring(E,N)==T.substring(E,N)?E=g=N:C=N,N=Math.floor((C-g)/2+g);return tt(f.charCodeAt(N-1))&&N--,N}function F(f,T){var g=f.length,C=T.length;if(0==g||0==C)return 0;g>C?f=f.substring(g-C):g<C&&(T=T.substring(0,g));var N=Math.min(g,C);if(f==T)return N;for(var E=0,x=1;;){var R=f.substring(N-x),j=T.indexOf(R);if(-1==j)return E;x+=j,(0==j||f.substring(N-x)==T.substring(0,x))&&(E=x,x++)}}function H(f,T){if(!f||!T||f.slice(-1)!==T.slice(-1))return 0;for(var g=0,C=Math.min(f.length,T.length),N=C,E=0;g<N;)f.substring(f.length-N,f.length-E)==T.substring(T.length-N,T.length-E)?E=g=N:C=N,N=Math.floor((C-g)/2+g);return et(f.charCodeAt(f.length-N))&&N--,N}var p=/[^a-zA-Z0-9]/,m=/\s/,_=/[\r\n]/,A=/\n\r?\n$/,K=/^\r?\n\r?\n/;function k(f,T){f.push([0,""]);for(var R,g=0,C=0,N=0,E="",x="";g<f.length;)if(g<f.length-1&&!f[g][1])f.splice(g,1);else switch(f[g][0]){case 1:N++,x+=f[g][1],g++;break;case-1:C++,E+=f[g][1],g++;break;case 0:var j=g-N-C-1;if(T){if(j>=0&&vt(f[j][1])){var q=f[j][1].slice(-1);if(f[j][1]=f[j][1].slice(0,-1),E=q+E,x=q+x,!f[j][1]){f.splice(j,1),g--;var nt=j-1;f[nt]&&1===f[nt][0]&&(N++,x=f[nt][1]+x,nt--),f[nt]&&-1===f[nt][0]&&(C++,E=f[nt][1]+E,nt--),j=nt}}lt(f[g][1])&&(q=f[g][1].charAt(0),f[g][1]=f[g][1].slice(1),E+=q,x+=q)}if(g<f.length-1&&!f[g][1]){f.splice(g,1);break}if(E.length>0||x.length>0){E.length>0&&x.length>0&&(0!==(R=P(x,E))&&(j>=0?f[j][1]+=x.substring(0,R):(f.splice(0,0,[0,x.substring(0,R)]),g++),x=x.substring(R),E=E.substring(R)),0!==(R=H(x,E))&&(f[g][1]=x.substring(x.length-R)+f[g][1],x=x.substring(0,x.length-R),E=E.substring(0,E.length-R)));var V=N+C;0===E.length&&0===x.length?(f.splice(g-V,V),g-=V):0===E.length?(f.splice(g-V,V,[1,x]),g=g-V+1):0===x.length?(f.splice(g-V,V,[-1,E]),g=g-V+1):(f.splice(g-V,V,[-1,E],[1,x]),g=g-V+2)}0!==g&&0===f[g-1][0]?(f[g-1][1]+=f[g][1],f.splice(g,1)):g++,N=0,C=0,E="",x=""}""===f[f.length-1][1]&&f.pop();var ot=!1;for(g=1;g<f.length-1;)0===f[g-1][0]&&0===f[g+1][0]&&(f[g][1].substring(f[g][1].length-f[g-1][1].length)===f[g-1][1]?(f[g][1]=f[g-1][1]+f[g][1].substring(0,f[g][1].length-f[g-1][1].length),f[g+1][1]=f[g-1][1]+f[g+1][1],f.splice(g-1,1),ot=!0):f[g][1].substring(0,f[g+1][1].length)==f[g+1][1]&&(f[g-1][1]+=f[g+1][1],f[g][1]=f[g][1].substring(f[g+1][1].length)+f[g+1][1],f.splice(g+1,1),ot=!0)),g++;ot&&k(f,T)}function tt(f){return f>=55296&&f<=56319}function et(f){return f>=56320&&f<=57343}function lt(f){return et(f.charCodeAt(0))}function vt(f){return tt(f.charCodeAt(f.length-1))}function Ot(f,T,g,C){return vt(f)||lt(C)?null:function Lt(f){for(var T=[],g=0;g<f.length;g++)f[g][1].length>0&&T.push(f[g]);return T}([[0,f],[-1,T],[1,g],[0,C]])}function $t(f,T,g,C){return xt(f,T,g,C,!0)}
1$t.INSERT=1,$t.DELETE=-1,$t.EQUAL=0,wt.exports=$t},58328(wt,st,I){wt=I.nmd(wt);var xt="__lodash_hash_undefined__",dt=9007199254740991,X="[object Arguments]",P="[object Boolean]",F="[object Date]",w="[object Function]",z="[object GeneratorFunction]",p="[object Map]",m="[object Number]",_="[object Object]",A="[object Promise]",K="[object RegExp]",G="[object Set]",k="[object String]",tt="[object Symbol]",et="[object WeakMap]",lt="[object ArrayBuffer]",vt="[object DataView]",Lt="[object Float32Array]",Ot="[object Float64Array]",Vt="[object Int8Array]",$t="[object Int16Array]",f="[object Int32Array]",T="[object Uint8Array]",g="[object Uint8ClampedArray]",C="[object Uint16Array]",N="[object Uint32Array]",x=/\w*$/,R=/^\[object .+?Constructor\]$/,j=/^(?:0|[1-9]\d*)$/,q={};q[X]=q["[object Array]"]=q[lt]=q[vt]=q[P]=q[F]=q[Lt]=q[Ot]=q[Vt]=q[$t]=q[f]=q[p]=q[m]=q[_]=q[K]=q[G]=q[k]=q[tt]=q[T]=q[g]=q[C]=q[N]=!0,q["[object Error]"]=q[w]=q[et]=!1;var nt="object"==typeof global&&global&&global.Object===Object&&global,V="object"==typeof self&&self&&self.Object===Object&&self,ot=nt||V||Function("return this")(),it=st&&!st.nodeType&&st,$=it&&wt&&!wt.nodeType&&wt,_t=$&&$.exports===it;function At(l,c){return l.set(c[0],c[1]),l}function rt(l,c){return l.add(c),l}function ct(l,c,h,b){var Q=-1,M=l?l.length:0;for(b&&M&&(h=l[++Q]);++Q<M;)h=c(h,l[Q],Q,l);return h}function Ct(l){var c=!1;if(null!=l&&"function"!=typeof l.toString)try{c=!!(l+"")}catch{}return c}function Bt(l){var c=-1,h=Array(l.size);return l.forEach(function(b,Q){h[++c]=[Q,b]}),h}function nn(l,c){return function(h){return l(c(h))}}function Ln(l){var c=-1,h=Array(l.size);return l.forEach(function(b){h[++c]=b}),h}var l,ss=Array.prototype,rs=Function.prototype,Be=Object.prototype,sn=ot["__core-js_shared__"],Cn=(l=/[^.]+$/.exec(sn&&sn.keys&&sn.keys.IE_PROTO||""))?"Symbol(src)_1."+l:"",Sn=rs.toString,Mt=Be.hasOwnProperty,Me=Be.toString,Te=RegExp("^"+Sn.call(Mt).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ne=_t?ot.Buffer:void 0,te=ot.Symbol,rn=ot.Uint8Array,Kt=nn(Object.getPrototypeOf,Object),qn=Object.create,On=Be.propertyIsEnumerable,is=ss.splice,ln=Object.getOwnPropertySymbols,De=Ne?Ne.isBuffer:void 0,In=nn(Object.keys,Object),Pe=Gt(ot,"DataView"),we=Gt(ot,"Map"),Wt=Gt(ot,"Promise"),je=Gt(ot,"Set"),on=Gt(ot,"WeakMap"),xe=Gt(Object,"create"),an=jt(Pe),Le=jt(we),ee=jt(Wt),Ue=jt(je),cn=jt(on),me=te?te.prototype:void 0,kn=me?me.valueOf:void 0;function ce(l){var c=-1,h=l?l.length:0;for(this.clear();++c<h;){var b=l[c];this.set(b[0],b[1])}}function It(l){var c=-1,h=l?l.length:0;for(this.clear();++c<h;){var b=l[c];this.set(b[0],b[1])}}function kt(l){var c=-1,h=l?l.length:0;for(this.clear();++c<h;){var b=l[c];this.set(b[0],b[1])}}function Ut(l){this.__data__=new It(l)}function bs(l,c,h){var b=l[c];(!Mt.call(l,c)||!mn(b,h)||void 0===h&&!(c in l))&&(l[c]=h)}function ze(l,c){for(var h=l.length;h--;)if(mn(l[h][0],c))return h;return-1}function Ke(l,c,h,b,Q,M,ut){var ht;if(b&&(ht=M?b(l,Q,M,ut):b(l)),void 0!==ht)return ht;if(!Yt(l))return l;var Et=bn(l);if(Et){if(ht=function Ns(l){var c=l.length,h=l.constructor(c);return c&&"string"==typeof l[0]&&Mt.call(l,"index")&&(h.index=l.index,h.input=l.input),h}(l),!c)return function Un(l,c){var h=-1,b=l.length;for(c||(c=Array(b));++h<b;)c[h]=l[h];return c}(l,ht)}else{var pt=Zt(l),Dt=pt==w||pt==z;if(ie(l))return function Se(l,c){if(c)return l.slice();var h=new l.constructor(l.length);return l.copy(h),h}(l,c);if(pt==_||pt==X||Dt&&!M){if(Ct(l))return M?l:{};if(ht=function re(l){return"function"!=typeof l.constructor||Hn(l)?{}:function Bn(l){return Yt(l)?qn(l):{}}(Kt(l))}(Dt?{}:l),!c)return function Es(l,c){return Ve(l,ue(l),c)}(l,function ne(l,c){return l&&Ve(c,ve(c),l)}(ht,l))}else{if(!q[pt])return M?l:{};ht=function gn(l,c,h,b){var Q=l.constructor;switch(c){case lt:return dn(l);case P:case F:return new Q(+l);case vt:return function se(l,c){var h=c?dn(l.buffer):l.buffer;return new l.constructor(h,l.byteOffset,l.byteLength)}(l,b);case Lt:case Ot:case Vt:case $t:case f:case T:case g:case C:case N:return function As(l,c){var h=c?dn(l.buffer):l.buffer;return new l.constructor(h,l.byteOffset,l.length)}(l,b);case p:return function Pn(l,c,h){return ct(c?h(Bt(l),!0):Bt(l),At,new l.constructor)}(l,b,h);case m:case k:return new Q(l);case K:return function Ge(l){var c=new l.constructor(l.source,x.exec(l));return c.lastIndex=l.lastIndex,c}(l);case G:return function _s(l,c,h){return ct(c?h(Ln(l),!0):Ln(l),rt,new l.constructor)}(l,b,h);case tt:return function jn(l){return kn?Object(kn.call(l)):{}}(l)}}(l,pt,Ke,c)}}
1ut||(ut=new Ut);var Ft=ut.get(l);if(Ft)return Ft;if(ut.set(l,ht),!Et)var St=h?function Ts(l){return function ys(l,c,h){var b=c(l);return bn(l)?b:function ft(l,c){for(var h=-1,b=c.length,Q=l.length;++h<b;)l[Q+h]=c[h];return l}(b,h(l))}(l,ve,ue)}(l):ve(l);return function gt(l,c){for(var h=-1,b=l?l.length:0;++h<b&&!1!==c(l[h],h,l););}(St||l,function(Pt,Rt){St&&(Pt=l[Rt=Pt]),bs(ht,Rt,Ke(Pt,c,h,b,Rt,l,ut))}),ht}function dn(l){var c=new l.constructor(l.byteLength);return new rn(c).set(new rn(l)),c}function Ve(l,c,h,b){h||(h={});for(var Q=-1,M=c.length;++Q<M;){var ut=c[Q],ht=b?b(h[ut],l[ut],ut,h,l):void 0;bs(h,ut,void 0===ht?l[ut]:ht)}return h}function qe(l,c){var h=l.__data__;return function Fn(l){var c=typeof l;return"string"==c||"number"==c||"symbol"==c||"boolean"==c?"__proto__"!==l:null===l}(c)?h["string"==typeof c?"string":"hash"]:h.map}function Gt(l,c){var h=function yt(l,c){return l?.[c]}(l,c);return function Dn(l){return!(!Yt(l)||function Xt(l){return!!Cn&&Cn in l}(l))&&(vn(l)||Ct(l)?Te:R).test(jt(l))}(h)?h:void 0}ce.prototype.clear=function ls(){this.__data__=xe?xe(null):{}},ce.prototype.delete=function Fe(l){return this.has(l)&&delete this.__data__[l]},ce.prototype.get=function os(l){var c=this.__data__;if(xe){var h=c[l];return h===xt?void 0:h}return Mt.call(c,l)?c[l]:void 0},ce.prototype.has=function Rn(l){var c=this.__data__;return xe?void 0!==c[l]:Mt.call(c,l)},ce.prototype.set=function un(l,c){return this.__data__[l]=xe&&void 0===c?xt:c,this},It.prototype.clear=function as(){this.__data__=[]},It.prototype.delete=function cs(l){var c=this.__data__,h=ze(c,l);return!(h<0||(h==c.length-1?c.pop():is.call(c,h,1),0))},It.prototype.get=function us(l){var c=this.__data__,h=ze(c,l);return h<0?void 0:c[h][1]},It.prototype.has=function hs(l){return ze(this.__data__,l)>-1},It.prototype.set=function be(l,c){var h=this.__data__,b=ze(h,l);return b<0?h.push([l,c]):h[b][1]=c,this},kt.prototype.clear=function fs(){this.__data__={hash:new ce,map:new(we||It),string:new ce}},kt.prototype.delete=function ds(l){return qe(this,l).delete(l)},kt.prototype.get=function gs(l){return qe(this,l).get(l)},kt.prototype.has=function ye(l){return qe(this,l).has(l)},kt.prototype.set=function Ce(l,c){return qe(this,l).set(l,c),this},Ut.prototype.clear=function He(){this.__data__=new It},Ut.prototype.delete=function ps(l){return this.__data__.delete(l)},Ut.prototype.get=function hn(l){return this.__data__.get(l)},Ut.prototype.has=function ms(l){return this.__data__.has(l)},Ut.prototype.set=function fn(l,c){var h=this.__data__;if(h instanceof It){var b=h.__data__;if(!we||b.length<199)return b.push([l,c]),this;h=this.__data__=new kt(b)}return h.set(l,c),this};var ue=ln?nn(ln,Object):function xs(){return[]},Zt=function Mn(l){return Me.call(l)};function ws(l,c){return!!(c=c??dt)&&("number"==typeof l||j.test(l))&&l>-1&&l%1==0&&l<c}function Hn(l){var c=l&&l.constructor;return l===("function"==typeof c&&c.prototype||Be)}function jt(l){if(null!=l){try{return Sn.call(l)}catch{}try{return l+""}catch{}}return""}function mn(l,c){return l===c||l!=l&&c!=c}(Pe&&Zt(new Pe(new ArrayBuffer(1)))!=vt||we&&Zt(new we)!=p||Wt&&Zt(Wt.resolve())!=A||je&&Zt(new je)!=G||on&&Zt(new on)!=et)&&(Zt=function(l){var c=Me.call(l),h=c==_?l.constructor:void 0,b=h?jt(h):void 0;if(b)switch(b){case an:return vt;case Le:return p;case ee:return A;case Ue:return G;case cn:return et}return c});var bn=Array.isArray;function Ze(l){return null!=l&&function $n(l){return"number"==typeof l&&l>-1&&l%1==0&&l<=dt}(l.length)&&!vn(l)}var ie=De||function Ls(){return!1};function vn(l){var c=Yt(l)?Me.call(l):"";return c==w||c==z}function Yt(l){var c=typeof l;return!!l&&("object"==c||"function"==c)}function ve(l){return Ze(l)?function $e(l,c){var h=bn(l)||function We(l){return function yn(l){return function zn(l){return!!l&&"object"==typeof l}(l)&&Ze(l)}(l)&&Mt.call(l,"callee")&&(!On.call(l,"callee")||Me.call(l)==X)}(l)?function mt(l,c){for(var h=-1,b=Array(l);++h<l;)b[h]=c(h);return b}(l.length,String):[],b=h.length,Q=!!b;for(var M in l)(c||Mt.call(l,M))&&(!Q||"length"!=M&&!ws(M,b))&&h.push(M);return h}(l):function vs(l){if(!Hn(l))return In(l);var c=[];for(var h in Object(l))Mt.call(l,h)&&"constructor"!=h&&c.push(h);return c}(l)}wt.exports=function pn(l){return Ke(l,!0,!0)}},35667(wt,st,I){wt=I.nmd(wt);var xt="__lodash_hash_undefined__",U=9007199254740991,P="[object Arguments]",F="[object Array]",w="[object Boolean]",z="[object Date]",p="[object Error]",m="[object Function]",A="[object Map]",K="[object Number]",k="[object Object]",tt="[object Promise]",lt="[object RegExp]",vt="[object Set]",Lt="[object String]",$t="[object WeakMap]",f="[object ArrayBuffer]",T="[object DataView]",ot=/^\[object .+?Constructor\]$/,it=/^(?:0|[1-9]\d*)$/,$={};
1$["[object Float32Array]"]=$["[object Float64Array]"]=$["[object Int8Array]"]=$["[object Int16Array]"]=$["[object Int32Array]"]=$["[object Uint8Array]"]=$["[object Uint8ClampedArray]"]=$["[object Uint16Array]"]=$["[object Uint32Array]"]=!0,$[P]=$[F]=$[f]=$[w]=$[T]=$[z]=$[p]=$[m]=$[A]=$[K]=$[k]=$[lt]=$[vt]=$[Lt]=$[$t]=!1;var _t="object"==typeof global&&global&&global.Object===Object&&global,At="object"==typeof self&&self&&self.Object===Object&&self,rt=_t||At||Function("return this")(),gt=st&&!st.nodeType&&st,ft=gt&&wt&&!wt.nodeType&&wt,ct=ft&&ft.exports===gt,mt=ct&&_t.process,yt=function(){try{return mt&&mt.binding&&mt.binding("util")}catch{}}(),Ct=yt&&yt.isTypedArray;function Ln(l,c){for(var h=-1,b=null==l?0:l.length;++h<b;)if(c(l[h],h,l))return!0;return!1}function Be(l,c){return l.has(c)}function Cn(l){var c=-1,h=Array(l.size);return l.forEach(function(b,Q){h[++c]=[Q,b]}),h}function Mt(l){var c=-1,h=Array(l.size);return l.forEach(function(b){h[++c]=b}),h}var l,Me=Array.prototype,Ne=Object.prototype,te=rt["__core-js_shared__"],rn=Function.prototype.toString,Kt=Ne.hasOwnProperty,qn=(l=/[^.]+$/.exec(te&&te.keys&&te.keys.IE_PROTO||""))?"Symbol(src)_1."+l:"",On=Ne.toString,is=RegExp("^"+rn.call(Kt).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ln=ct?rt.Buffer:void 0,De=rt.Symbol,In=rt.Uint8Array,Pe=Ne.propertyIsEnumerable,we=Me.splice,Wt=De?De.toStringTag:void 0,je=Object.getOwnPropertySymbols,on=ln?ln.isBuffer:void 0,xe=function Sn(l,c){return function(h){return l(c(h))}}(Object.keys,Object),an=ue(rt,"DataView"),Le=ue(rt,"Map"),ee=ue(rt,"Promise"),Ue=ue(rt,"Set"),cn=ue(rt,"WeakMap"),me=ue(Object,"create"),kn=jt(an),ce=jt(Le),ls=jt(ee),Fe=jt(Ue),os=jt(cn),Rn=De?De.prototype:void 0,un=Rn?Rn.valueOf:void 0;function It(l){var c=-1,h=null==l?0:l.length;for(this.clear();++c<h;){var b=l[c];this.set(b[0],b[1])}}function kt(l){var c=-1,h=null==l?0:l.length;for(this.clear();++c<h;){var b=l[c];this.set(b[0],b[1])}}function Ut(l){var c=-1,h=null==l?0:l.length;for(this.clear();++c<h;){var b=l[c];this.set(b[0],b[1])}}function $e(l){var c=-1,h=null==l?0:l.length;for(this.__data__=new Ut;++c<h;)this.add(l[c])}function ne(l){var c=this.__data__=new kt(l);this.size=c.size}function Se(l,c){for(var h=l.length;h--;)if(pn(l[h][0],c))return h;return-1}function se(l){return null==l?void 0===l?"[object Undefined]":"[object Null]":Wt&&Wt in Object(l)?function Zt(l){var c=Kt.call(l,Wt),h=l[Wt];try{l[Wt]=void 0;var b=!0}catch{}var Q=On.call(l);return b&&(c?l[Wt]=h:delete l[Wt]),Q}(l):function Hn(l){return On.call(l)}(l)}function Pn(l){return Yt(l)&&se(l)==P}function Ge(l,c,h,b,Q){return l===c||(null==l||null==c||!Yt(l)&&!Yt(c)?l!=l&&c!=c:function _s(l,c,h,b,Q,M){var ut=We(l),ht=We(c),Et=ut?F:re(l),pt=ht?F:re(c),Dt=(Et=Et==P?k:Et)==k,Ft=(pt=pt==P?k:pt)==k,St=Et==pt;if(St&&Ze(l)){if(!Ze(c))return!1;ut=!0,Dt=!1}if(St&&!Dt)return M||(M=new ne),ut||zn(l)?Ve(l,c,h,b,Q,M):function Es(l,c,h,b,Q,M,ut){switch(h){case T:if(l.byteLength!=c.byteLength||l.byteOffset!=c.byteOffset)return!1;l=l.buffer,c=c.buffer;case f:return!(l.byteLength!=c.byteLength||!M(new In(l),new In(c)));case w:case z:case K:return pn(+l,+c);case p:return l.name==c.name&&l.message==c.message;case lt:case Lt:return l==c+"";case A:var ht=Cn;case vt:if(ht||(ht=Mt),l.size!=c.size&&!(1&b))return!1;var pt=ut.get(l);if(pt)return pt==c;b|=2,ut.set(l,c);var Dt=Ve(ht(l),ht(c),b,Q,M,ut);return ut.delete(l),Dt;case"[object Symbol]":if(un)return un.call(l)==un.call(c)}return!1}(l,c,Et,h,b,Q,M);if(!(1&h)){var Pt=Dt&&Kt.call(l,"__wrapped__"),Rt=Ft&&Kt.call(c,"__wrapped__");
1if(Pt||Rt){var _e=Pt?l.value():l,he=Rt?c.value():c;return M||(M=new ne),Q(_e,he,h,b,M)}}return!!St&&(M||(M=new ne),function Ts(l,c,h,b,Q,M){var ut=1&h,ht=qe(l),Et=ht.length;if(Et!=qe(c).length&&!ut)return!1;for(var Ft=Et;Ft--;){var St=ht[Ft];if(!(ut?St in c:Kt.call(c,St)))return!1}var Pt=M.get(l);if(Pt&&M.get(c))return Pt==c;var Rt=!0;M.set(l,c),M.set(c,l);for(var _e=ut;++Ft<Et;){var he=l[St=ht[Ft]],Oe=c[St];if(b)var Us=ut?b(Oe,he,St,c,l,M):b(he,Oe,St,l,c,M);if(!(void 0===Us?he===Oe||Q(he,Oe,h,b,M):Us)){Rt=!1;break}_e||(_e="constructor"==St)}if(Rt&&!_e){var Kn=l.constructor,Gn=c.constructor;Kn!=Gn&&"constructor"in l&&"constructor"in c&&!("function"==typeof Kn&&Kn instanceof Kn&&"function"==typeof Gn&&Gn instanceof Gn)&&(Rt=!1)}return M.delete(l),M.delete(c),Rt}(l,c,h,b,Q,M))}(l,c,h,b,Ge,Q))}function Ve(l,c,h,b,Q,M){var ut=1&h,ht=l.length,Et=c.length;if(ht!=Et&&!(ut&&Et>ht))return!1;var pt=M.get(l);if(pt&&M.get(c))return pt==c;var Dt=-1,Ft=!0,St=2&h?new $e:void 0;for(M.set(l,c),M.set(c,l);++Dt<ht;){var Pt=l[Dt],Rt=c[Dt];if(b)var _e=ut?b(Rt,Pt,Dt,c,l,M):b(Pt,Rt,Dt,l,c,M);if(void 0!==_e){if(_e)continue;Ft=!1;break}if(St){if(!Ln(c,function(he,Oe){if(!Be(St,Oe)&&(Pt===he||Q(Pt,he,h,b,M)))return St.push(Oe)})){Ft=!1;break}}else if(Pt!==Rt&&!Q(Pt,Rt,h,b,M)){Ft=!1;break}}return M.delete(l),M.delete(c),Ft}function qe(l){return function dn(l,c,h){var b=c(l);return We(l)?b:function nn(l,c){for(var h=-1,b=c.length,Q=l.length;++h<b;)l[Q+h]=c[h];return l}(b,h(l))}(l,ve,Ns)}function Gt(l,c){var h=l.__data__;return function ws(l){var c=typeof l;return"string"==c||"number"==c||"symbol"==c||"boolean"==c?"__proto__"!==l:null===l}(c)?h["string"==typeof c?"string":"hash"]:h.map}function ue(l,c){var h=function sn(l,c){return l?.[c]}(l,c);return function jn(l){return!(!$n(l)||function Fn(l){return!!qn&&qn in l}(l))&&(ie(l)?is:ot).test(jt(l))}(h)?h:void 0}It.prototype.clear=function as(){this.__data__=me?me(null):{},this.size=0},It.prototype.delete=function cs(l){var c=this.has(l)&&delete this.__data__[l];return this.size-=c?1:0,c},It.prototype.get=function us(l){var c=this.__data__;if(me){var h=c[l];return h===xt?void 0:h}return Kt.call(c,l)?c[l]:void 0},It.prototype.has=function hs(l){var c=this.__data__;return me?void 0!==c[l]:Kt.call(c,l)},It.prototype.set=function be(l,c){var h=this.__data__;return this.size+=this.has(l)?0:1,h[l]=me&&void 0===c?xt:c,this},kt.prototype.clear=function fs(){this.__data__=[],this.size=0},kt.prototype.delete=function ds(l){var c=this.__data__,h=Se(c,l);return!(h<0||(h==c.length-1?c.pop():we.call(c,h,1),--this.size,0))},kt.prototype.get=function gs(l){var c=this.__data__,h=Se(c,l);return h<0?void 0:c[h][1]},kt.prototype.has=function ye(l){return Se(this.__data__,l)>-1},kt.prototype.set=function Ce(l,c){var h=this.__data__,b=Se(h,l);return b<0?(++this.size,h.push([l,c])):h[b][1]=c,this},Ut.prototype.clear=function He(){this.size=0,this.__data__={hash:new It,map:new(Le||kt),string:new It}},Ut.prototype.delete=function ps(l){var c=Gt(this,l).delete(l);return this.size-=c?1:0,c},Ut.prototype.get=function hn(l){return Gt(this,l).get(l)},Ut.prototype.has=function ms(l){return Gt(this,l).has(l)},Ut.prototype.set=function fn(l,c){var h=Gt(this,l),b=h.size;return h.set(l,c),this.size+=h.size==b?0:1,this},$e.prototype.add=$e.prototype.push=function bs(l){return this.__data__.set(l,xt),this},$e.prototype.has=function ze(l){return this.__data__.has(l)},ne.prototype.clear=function Ke(){this.__data__=new kt,this.size=0},ne.prototype.delete=function Bn(l){var c=this.__data__,h=c.delete(l);return this.size=c.size,h},ne.prototype.get=function ys(l){return this.__data__.get(l)},ne.prototype.has=function Mn(l){return this.__data__.has(l)},ne.prototype.set=function Dn(l,c){var h=this.__data__;if(h instanceof kt){var b=h.__data__;if(!Le||b.length<199)return b.push([l,c]),this.size=++h.size,this;h=this.__data__=new Ut(b)}return h.set(l,c),this.size=h.size,this};var Ns=je?function(l){return null==l?[]:(l=Object(l),function Bt(l,c){for(var h=-1,b=null==l?0:l.length,Q=0,M=[];++h<b;){var ut=l[h];c(ut,h,l)&&(M[Q++]=ut)}return M}(je(l),function(c){return Pe.call(l,c)}))}:function xs(){return[]},re=se;function gn(l,c){return!!(c=c??U)&&("number"==typeof l||it.test(l))&&l>-1&&l%1==0&&l<c}function jt(l){if(null!=l){try{return rn.call(l)}catch{}try{return l+""}catch{}}return""}function pn(l,c){return l===c||l!=l&&c!=c}(an&&re(new an(new ArrayBuffer(1)))!=T||Le&&re(new Le)!=A||ee&&re
1(ee.resolve())!=tt||Ue&&re(new Ue)!=vt||cn&&re(new cn)!=$t)&&(re=function(l){var c=se(l),h=c==k?l.constructor:void 0,b=h?jt(h):"";if(b)switch(b){case kn:return T;case ce:return A;case ls:return tt;case Fe:return vt;case os:return $t}return c});var mn=Pn(function(){return arguments}())?Pn:function(l){return Yt(l)&&Kt.call(l,"callee")&&!Pe.call(l,"callee")},We=Array.isArray,Ze=on||function Ls(){return!1};function ie(l){if(!$n(l))return!1;var c=se(l);return c==m||"[object GeneratorFunction]"==c||"[object AsyncFunction]"==c||"[object Proxy]"==c}function vn(l){return"number"==typeof l&&l>-1&&l%1==0&&l<=U}function $n(l){var c=typeof l;return null!=l&&("object"==c||"function"==c)}function Yt(l){return null!=l&&"object"==typeof l}var zn=Ct?function rs(l){return function(c){return l(c)}}(Ct):function As(l){return Yt(l)&&vn(l.length)&&!!$[se(l)]};function ve(l){return function bn(l){return null!=l&&vn(l.length)&&!ie(l)}(l)?function vs(l,c){var h=We(l),b=!h&&mn(l),Q=!h&&!b&&Ze(l),M=!h&&!b&&!Q&&zn(l),ut=h||b||Q||M,ht=ut?function ss(l,c){for(var h=-1,b=Array(l);++h<l;)b[h]=c(h);return b}(l.length,String):[],Et=ht.length;for(var pt in l)(c||Kt.call(l,pt))&&(!ut||!("length"==pt||Q&&("offset"==pt||"parent"==pt)||M&&("buffer"==pt||"byteLength"==pt||"byteOffset"==pt)||gn(pt,Et)))&&ht.push(pt);return ht}(l):function Un(l){if(!function Xt(l){var c=l&&l.constructor;return l===("function"==typeof c&&c.prototype||Ne)}(l))return xe(l);var c=[];for(var h in Object(l))Kt.call(l,h)&&"constructor"!=h&&c.push(h);return c}(l)}wt.exports=function yn(l,c){return Ge(l,c)}},51561(wt,st,I){"use strict";Object.defineProperty(st,"__esModule",{value:!0});const J=I(58328),xt=I(35667);var dt,X;(X=dt||(dt={})).compose=function U(w={},z={},p=!1){"object"!=typeof w&&(w={}),"object"!=typeof z&&(z={});let m=J(z);p||(m=Object.keys(m).reduce((_,A)=>(null!=m[A]&&(_[A]=m[A]),_),{}));for(const _ in w)void 0!==w[_]&&void 0===z[_]&&(m[_]=w[_]);return Object.keys(m).length>0?m:void 0},X.diff=function P(w={},z={}){"object"!=typeof w&&(w={}),"object"!=typeof z&&(z={});const p=Object.keys(w).concat(Object.keys(z)).reduce((m,_)=>(xt(w[_],z[_])||(m[_]=void 0===z[_]?null:z[_]),m),{});return Object.keys(p).length>0?p:void 0},X.invert=function F(w={},z={}){w=w||{};const p=Object.keys(z).reduce((m,_)=>(z[_]!==w[_]&&void 0!==w[_]&&(m[_]=z[_]),m),{});return Object.keys(w).reduce((m,_)=>(w[_]!==z[_]&&void 0===z[_]&&(m[_]=null),m),p)},X.transform=function H(w,z,p=!1){if("object"!=typeof w)return z;if("object"!=typeof z)return;if(!p)return z;const m=Object.keys(z).reduce((_,A)=>(void 0===w[A]&&(_[A]=z[A]),_),{});return Object.keys(m).length>0?m:void 0},st.default=dt},42577(wt,st,I){"use strict";Object.defineProperty(st,"__esModule",{value:!0}),st.AttributeMap=st.OpIterator=st.Op=void 0;const J=I(88655),xt=I(58328),dt=I(35667),X=I(51561);st.AttributeMap=X.default;const U=I(28964);st.Op=U.default;const P=I(6366);st.OpIterator=P.default;const H=(z,p)=>{if("object"!=typeof z||null===z)throw new Error("cannot retain a "+typeof z);if("object"!=typeof p||null===p)throw new Error("cannot retain a "+typeof p);const m=Object.keys(z)[0];if(!m||m!==Object.keys(p)[0])throw new Error(`embed types not matched: ${m} != ${Object.keys(p)[0]}`);return[m,z[m],p[m]]};class w{constructor(p){this.ops=Array.isArray(p)?p:null!=p&&Array.isArray(p.ops)?p.ops:[]}static registerEmbed(p,m){this.handlers[p]=m}static unregisterEmbed(p){delete this.handlers[p]}static getHandler(p){const m=this.handlers[p];if(!m)throw new Error(`no handlers for embed type "${p}"`);return m}insert(p,m){const _={};return"string"==typeof p&&0===p.length?this:(_.insert=p,null!=m&&"object"==typeof m&&Object.keys(m).length>0&&(_.attributes=m),this.push(_))}delete(p){return p<=0?this:this.push({delete:p})}retain(p,m){if("number"==typeof p&&p<=0)return this;const _={retain:p};return null!=m&&"object"==typeof m&&Object.keys(m).length>0&&(_.attributes=m),this.push(_)}push(p){let m=this.ops.length,_=this.ops[m-1];if(p=xt(p),"object"==typeof _){if("number"==typeof p.delete&&"number"==typeof _.delete)return this.ops[m-1]={delete:_.delete+p.delete},this;if("number"==typeof _.delete&&null!=p.insert&&(m-=1,_=this.ops[m-1],"object"!=typeof _))return this.ops.unshift(p),this;if(dt(p.attributes,_.attributes)){if("string"==typeof p.insert&&"string"==typeof _.insert)return this.ops[m-1]={insert:_.insert+p.insert},"object"==typeof p.attributes&&(this.ops[m-1].attributes=p.attributes),this;if("number"==typeof p.retain&&"number"==typeof _.retain)return this.ops[m-1]={retain:_.retain+p.retain},"object"==typeof p.attributes&&(this.ops[m-1].attributes=p.attributes),this}}return m===this.ops.length?this.ops.push(p):this.ops.splice(m,0,p),this}chop(){const p=this.ops[this.ops.length-1];return p&&"number"==typeof p.retain&&!p.attributes&&this.ops.pop(),this}filter(p){return this.ops.filter(p)}forEach(p){this.ops.forEach(p)}map(p){return this.ops.map(p)}partition(p){const m=[],_=[];return this.forEach(A=>{(p(A)?m:_).push(A)}),[m,_]}reduce(p,m){return this.ops.reduce(p,m)}changeLength(){return this.reduce((p,m)=>
vendor: 3,665 bytes, line 1
1m.insert?p+U.default.length(m):m.delete?p-m.delete:p,0)}length(){return this.reduce((p,m)=>p+U.default.length(m),0)}slice(p=0,m=1/0){const _=[],A=new P.default(this.ops);let K=0;for(;K<m&&A.hasNext();){let G;K<p?G=A.next(p-K):(G=A.next(m-K),_.push(G)),K+=U.default.length(G)}return new w(_)}compose(p){const m=new P.default(this.ops),_=new P.default(p.ops),A=[],K=_.peek();if(null!=K&&"number"==typeof K.retain&&null==K.attributes){let k=K.retain;for(;"insert"===m.peekType()&&m.peekLength()<=k;)k-=m.peekLength(),A.push(m.next());K.retain-k>0&&_.next(K.retain-k)}const G=new w(A);for(;m.hasNext()||_.hasNext();)if("insert"===_.peekType())G.push(_.next());else if("delete"===m.peekType())G.push(m.next());else{const k=Math.min(m.peekLength(),_.peekLength()),tt=m.next(k),et=_.next(k);if(et.retain){const lt={};if("number"==typeof tt.retain)lt.retain="number"==typeof et.retain?k:et.retain;else if("number"==typeof et.retain)null==tt.retain?lt.insert=tt.insert:lt.retain=tt.retain;else{const Lt=null==tt.retain?"insert":"retain",[Ot,Vt,$t]=H(tt[Lt],et.retain),f=w.getHandler(Ot);lt[Lt]={[Ot]:f.compose(Vt,$t,"retain"===Lt)}}const vt=X.default.compose(tt.attributes,et.attributes,"number"==typeof tt.retain);if(vt&&(lt.attributes=vt),G.push(lt),!_.hasNext()&&dt(G.ops[G.ops.length-1],lt)){const Lt=new w(m.rest());return G.concat(Lt).chop()}}else"number"==typeof et.delete&&("number"==typeof tt.retain||"object"==typeof tt.retain&&null!==tt.retain)&&G.push(et)}return G.chop()}concat(p){const m=new w(this.ops.slice());return p.ops.length>0&&(m.push(p.ops[0]),m.ops=m.ops.concat(p.ops.slice(1))),m}diff(p,m){if(this.ops===p.ops)return new w;const _=[this,p].map(tt=>tt.map(et=>{if(null!=et.insert)return"string"==typeof et.insert?et.insert:"\0";throw new Error("diff() called "+(tt===p?"on":"with")+" non-document")}).join("")),A=new w,K=J(_[0],_[1],m,!0),G=new P.default(this.ops),k=new P.default(p.ops);return K.forEach(tt=>{let et=tt[1].length;for(;et>0;){let lt=0;switch(tt[0]){case J.INSERT:lt=Math.min(k.peekLength(),et),A.push(k.next(lt));break;case J.DELETE:lt=Math.min(et,G.peekLength()),G.next(lt),A.delete(lt);break;case J.EQUAL:lt=Math.min(G.peekLength(),k.peekLength(),et);const vt=G.next(lt),Lt=k.next(lt);dt(vt.insert,Lt.insert)?A.retain(lt,X.default.diff(vt.attributes,Lt.attributes)):A.push(Lt).delete(lt)}et-=lt}}),A.chop()}eachLine(p,m="\n"){const _=new P.default(this.ops);let A=new w,K=0;for(;_.hasNext();){if("insert"!==_.peekType())return;const G=_.peek(),k=U.default.length(G)-_.peekLength(),tt="string"==typeof G.insert?G.insert.indexOf(m,k)-k:-1;if(tt<0)A.push(_.next());else if(tt>0)A.push(_.next(tt));else{if(!1===p(A,_.next(1).attributes||{},K))return;K+=1,A=new w}}A.length()>0&&p(A,{},K)}invert(p){const m=new w;return this.reduce((_,A)=>{if(A.insert)m.delete(U.default.length(A));else{if("number"==typeof A.retain&&null==A.attributes)return m.retain(A.retain),_+A.retain;if(A.delete||"number"==typeof A.retain){const K=A.delete||A.retain;return p.slice(_,_+K).forEach(k=>{A.delete?m.push(k):A.retain&&A.attributes&&m.retain(U.default.length(k),X.default.invert(A.attributes,k.attributes))}),_+K}if("object"==typeof A.retain&&null!==A.retain){const K=p.slice(_,_+1),G=new P.default(K.ops).next(),[k,tt,et]=H(A.retain,G.insert),lt=w.getHandler(k);return m.retain({[k]:lt.invert(tt,et)},X.default.invert(A.attributes,G.attributes)),_+1}}return _},0),m.chop()}transform(p,m=!1){if(m=!!m,"number"==typeof p)return this.transformPosition(p,m);const _=p,A=new P.default(this.ops),K=new P.default(_.ops),G=new w;for(;A.hasNext()||K.hasNext();)if("insert"!==A.peekType()||!m&&"insert"===K.peekType())if("insert"===K.peekType())G.push(K.next());
vendor: 5,716 bytes, line 1
1else{const k=Math.min(A.peekLength(),K.peekLength()),tt=A.next(k),et=K.next(k);if(tt.delete)continue;if(et.delete)G.push(et);else{const lt=tt.retain,vt=et.retain;let Lt="object"==typeof vt&&null!==vt?vt:k;if("object"==typeof lt&&null!==lt&&"object"==typeof vt&&null!==vt){const Ot=Object.keys(lt)[0];if(Ot===Object.keys(vt)[0]){const Vt=w.getHandler(Ot);Vt&&(Lt={[Ot]:Vt.transform(lt[Ot],vt[Ot],m)})}}G.retain(Lt,X.default.transform(tt.attributes,et.attributes,m))}}else G.retain(U.default.length(A.next()));return G.chop()}transformPosition(p,m=!1){m=!!m;const _=new P.default(this.ops);let A=0;for(;_.hasNext()&&A<=p;){const K=_.peekLength(),G=_.peekType();_.next(),"delete"!==G?("insert"===G&&(A<p||!m)&&(p+=K),A+=K):p-=Math.min(K,p-A)}return p}}w.Op=U.default,w.OpIterator=P.default,w.AttributeMap=X.default,w.handlers={},st.default=w,wt.exports=w,wt.exports.default=w},28964(wt,st){"use strict";var I;Object.defineProperty(st,"__esModule",{value:!0}),(I||(I={})).length=function xt(dt){return"number"==typeof dt.delete?dt.delete:"number"==typeof dt.retain?dt.retain:"object"==typeof dt.retain&&null!==dt.retain?1:"string"==typeof dt.insert?dt.insert.length:1},st.default=I},6366(wt,st,I){"use strict";Object.defineProperty(st,"__esModule",{value:!0});const J=I(28964);st.default=class xt{constructor(X){this.ops=X,this.index=0,this.offset=0}hasNext(){return this.peekLength()<1/0}next(X){X||(X=1/0);const U=this.ops[this.index];if(U){const P=this.offset,F=J.default.length(U);if(X>=F-P?(X=F-P,this.index+=1,this.offset=0):this.offset+=X,"number"==typeof U.delete)return{delete:X};{const H={};return U.attributes&&(H.attributes=U.attributes),"number"==typeof U.retain?H.retain=X:"object"==typeof U.retain&&null!==U.retain?H.retain=U.retain:H.insert="string"==typeof U.insert?U.insert.substr(P,X):U.insert,H}}return{retain:1/0}}peek(){return this.ops[this.index]}peekLength(){return this.ops[this.index]?J.default.length(this.ops[this.index])-this.offset:1/0}peekType(){const X=this.ops[this.index];return X?"number"==typeof X.delete?"delete":"number"==typeof X.retain||"object"==typeof X.retain&&null!==X.retain?"retain":"insert":"retain"}rest(){if(this.hasNext()){if(0===this.offset)return this.ops.slice(this.index);{const X=this.offset,U=this.index,P=this.next(),F=this.ops.slice(this.index);return this.offset=X,this.index=U,[P].concat(F)}}return[]}}},49280(wt){"use strict";var st=Object.prototype.hasOwnProperty,I="~";function J(){}function xt(P,F,H){this.fn=P,this.context=F,this.once=H||!1}function dt(P,F,H,w,z){if("function"!=typeof H)throw new TypeError("The listener must be a function");var p=new xt(H,w||P,z),m=I?I+F:F;return P._events[m]?P._events[m].fn?P._events[m]=[P._events[m],p]:P._events[m].push(p):(P._events[m]=p,P._eventsCount++),P}function X(P,F){0===--P._eventsCount?P._events=new J:delete P._events[F]}function U(){this._events=new J,this._eventsCount=0}Object.create&&(J.prototype=Object.create(null),(new J).__proto__||(I=!1)),U.prototype.eventNames=function(){var H,w,F=[];if(0===this._eventsCount)return F;for(w in H=this._events)st.call(H,w)&&F.push(I?w.slice(1):w);return Object.getOwnPropertySymbols?F.concat(Object.getOwnPropertySymbols(H)):F},U.prototype.listeners=function(F){var w=this._events[I?I+F:F];if(!w)return[];if(w.fn)return[w.fn];for(var z=0,p=w.length,m=new Array(p);z<p;z++)m[z]=w[z].fn;return m},U.prototype.listenerCount=function(F){var w=this._events[I?I+F:F];return w?w.fn?1:w.length:0},U.prototype.emit=function(F,H,w,z,p,m){var _=I?I+F:F;if(!this._events[_])return!1;var G,k,A=this._events[_],K=arguments.length;if(A.fn){switch(A.once&&this.removeListener(F,A.fn,void 0,!0),K){case 1:return A.fn.call(A.context),!0;case 2:return A.fn.call(A.context,H),!0;case 3:return A.fn.call(A.context,H,w),!0;case 4:return A.fn.call(A.context,H,w,z),!0;case 5:return A.fn.call(A.context,H,w,z,p),!0;case 6:return A.fn.call(A.context,H,w,z,p,m),!0}for(k=1,G=new Array(K-1);k<K;k++)G[k-1]=arguments[k];A.fn.apply(A.context,G)}else{var et,tt=A.length;for(k=0;k<tt;k++)switch(A[k].once&&this.removeListener(F,A[k].fn,void 0,!0),K){case 1:A[k].fn.call(A[k].context);break;case 2:A[k].fn.call(A[k].context,H);break;case 3:A[k].fn.call(A[k].context,H,w);break;case 4:A[k].fn.call(A[k].context,H,w,z);break;default:if(!G)for(et=1,G=new Array(K-1);et<K;et++)G[et-1]=arguments[et];A[k].fn.apply(A[k].context,G)}}return!0},U.prototype.on=function(F,H,w){return dt(this,F,H,w,!1)},U.prototype.once=function(F,H,w){return dt(this,F,H,w,!0)},U.prototype.removeListener=function(F,H,w,z){var p=I?I+F:F;if(!this._events[p])return this;if(!H)return X(this,p),this;var m=this._events[p];if(m.fn)m.fn===H&&(!z||m.once)&&(!w||m.context===w)&&X(this,p);else{for(var _=0,A=[],K=m.length;_<K;_++)(m[_].fn!==H||z&&!m[_].once||w&&m[_].context!==w)&&A.push(m[_]);A.length?this._events[p]=1===A.length?A[0]:A:X(this,p)}return this},U.prototype.removeAllListeners=function(F){var H;return F?this._events[H=I?I+F:F]&&X(this,H):(this._events=new J,this._eventsCount=0),this},U.prototype.off=U.prototype.removeListener,U.prototype.addListener=U.prototype.on,U.prefixed=I,U.EventEmitter=U,wt.exports=U},18105(wt,st,I){"use strict";I.r(st),I.d(st,{Quill:()=>sd});var J={};I.r(J),I.d(J,{Attributor:()=>Ae,AttributorStore:()=>Fs,BlockBlot:()=>Os,ClassAttributor:()=>fe,ContainerBlot:()=>Hs,EmbedBlot:()=>Qt,InlineBlot:()=>dr,LeafBlot:()=>Ht,ParentBlot:()=>de,Registry:()=>Zn,Scope:()=>D,ScrollBlot:()=>pr,StyleAttributor:()=>Ye,TextBlot:()=>$s});const U=function X(s,e){return s===e||s!=s&&e!=e},F=function P(s,e){for(var t=s.length;t--;)if(U(s[t][0],e))return t;return-1};var w=Array.prototype.splice;function tt(s){var e=-1,t=null==s?0:s.length;for(this.clear();++e<t;){var n=s[e];this.set(n[0],n[1])}}
1tt.prototype.clear=function xt(){this.__data__=[],this.size=0},tt.prototype.delete=function z(s){var e=this.__data__,t=F(e,s);return!(t<0||(t==e.length-1?e.pop():w.call(e,t,1),--this.size,0))},tt.prototype.get=function m(s){var e=this.__data__,t=F(e,s);return t<0?void 0:e[t][1]},tt.prototype.has=function A(s){return F(this.__data__,s)>-1},tt.prototype.set=function G(s,e){var t=this.__data__,n=F(t,s);return n<0?(++this.size,t.push([s,e])):t[n][1]=e,this};const et=tt;var g=I(45281);const N=function C(s){var e=typeof s;return null!=s&&("object"==e||"function"==e)},nt=function q(s){if(!N(s))return!1;var e=(0,g.A)(s);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e};var s,V=I(1860),ot=V.A["__core-js_shared__"],$=(s=/[^.]+$/.exec(ot&&ot.keys&&ot.keys.IE_PROTO||""))?"Symbol(src)_1."+s:"";var gt=Function.prototype.toString;const ct=function ft(s){if(null!=s){try{return gt.call(s)}catch{}try{return s+""}catch{}}return""};var yt=/^\[object .+?Constructor\]$/,ss=RegExp("^"+Function.prototype.toString.call(Object.prototype.hasOwnProperty).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const Be=function rs(s){return!(!N(s)||function _t(s){return!!$&&$ in s}(s))&&(nt(s)?ss:yt).test(ct(s))},Mt=function Sn(s,e){var t=function sn(s,e){return s?.[e]}(s,e);return Be(t)?t:void 0},Te=Mt(V.A,"Map"),te=Mt(Object,"create");var De=Object.prototype.hasOwnProperty;var Wt=Object.prototype.hasOwnProperty;function ee(s){var e=-1,t=null==s?0:s.length;for(this.clear();++e<t;){var n=s[e];this.set(n[0],n[1])}}ee.prototype.clear=function rn(){this.__data__=te?te(null):{},this.size=0},ee.prototype.delete=function qn(s){var e=this.has(s)&&delete this.__data__[s];return this.size-=e?1:0,e},ee.prototype.get=function In(s){var e=this.__data__;if(te){var t=e[s];return"__lodash_hash_undefined__"===t?void 0:t}return De.call(e,s)?e[s]:void 0},ee.prototype.has=function je(s){var e=this.__data__;return te?void 0!==e[s]:Wt.call(e,s)},ee.prototype.set=function an(s,e){var t=this.__data__;return this.size+=this.has(s)?0:1,t[s]=te&&void 0===e?"__lodash_hash_undefined__":e,this};const Ue=ee,Fe=function ls(s,e){var t=s.__data__;return function kn(s){var e=typeof s;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==s:null===s}(e)?t["string"==typeof e?"string":"hash"]:t.map};function be(s){var e=-1,t=null==s?0:s.length;for(this.clear();++e<t;){var n=s[e];this.set(n[0],n[1])}}be.prototype.clear=function cn(){this.size=0,this.__data__={hash:new Ue,map:new(Te||et),string:new Ue}},be.prototype.delete=function os(s){var e=Fe(this,s).delete(s);return this.size-=e?1:0,e},be.prototype.get=function un(s){return Fe(this,s).get(s)},be.prototype.has=function as(s){return Fe(this,s).has(s)},be.prototype.set=function us(s,e){var t=Fe(this,s),n=t.size;return t.set(s,e),this.size+=t.size==n?0:1,this};const kt=be;function ye(s){var e=this.__data__=new et(s);this.size=e.size}ye.prototype.clear=function lt(){this.__data__=new et,this.size=0},ye.prototype.delete=function Lt(s){var e=this.__data__,t=e.delete(s);return this.size=e.size,t},ye.prototype.get=function Vt(s){return this.__data__.get(s)},ye.prototype.has=function f(s){return this.__data__.has(s)},ye.prototype.set=function ds(s,e){var t=this.__data__;if(t instanceof et){var n=t.__data__;if(!Te||n.length<199)return n.push([s,e]),this.size=++t.size,this;t=this.__data__=new kt(n)}return t.set(s,e),this.size=t.size,this};const Ce=ye;var Ut=function(){try{var s=Mt(Object,"defineProperty");return s({},"",{}),s}catch{}}();const He=Ut,hn=function ps(s,e,t){"__proto__"==e&&He?He(s,e,{configurable:!0,enumerable:!0,value:t,writable:!0}):s[e]=t},fn=function ms(s,e,t){(void 0!==t&&!U(s[e],t)||void 0===t&&!(e in s))&&hn(s,e,t)};var ze=function $e(s){return function(e,t,n){for(var r=-1,i=Object(e),o=n(e),a=o.length;a--;){var u=o[s?a:++r];if(!1===t(i[u],u,i))break}return e}}();const ne=ze;var Ke="object"==typeof exports&&exports&&!exports.nodeType&&exports,Bn=Ke&&"object"==typeof module&&module&&!module.nodeType&&module,Mn=Bn&&Bn.exports===Ke?V.A.Buffer:void 0,Dn=Mn?Mn.allocUnsafe:void 0;const Se=function vs(s,e){if(e)return s.slice();var t=s.length,n=Dn?Dn(t):new s.constructor(t);return s.copy(n),n},se=V.A.Uint8Array,Ge=function Pn(s){var e=new s.constructor(s.byteLength);return new se(e).set(new se(s)),e},jn=function _s(s,e){var t=e?Ge(s.buffer):s.buffer;return new s.constructor(t,s.byteOffset,s.length)},Un=function As(s,e){var t=-1,n=s.length;for(e||(e=Array(n));++t<n;)e[t]=s[t];return e};var Ve=Object.create,Es=function(){function s(){}return function(e){if(!N(e))return{};if(Ve)return Ve(e);s.prototype=e;var t=new s;return s.prototype=void 0,t}}();const Ts=Es,Gt=function qe(s,e){return function(t){return s(e(t))}},Zt=Gt(Object.getPrototypeOf,Object);var Ns=Object.prototype;
1const gn=function re(s){var e=s&&s.constructor;return s===("function"==typeof e&&e.prototype||Ns)},Fn=function ws(s){return"function"!=typeof s.constructor||gn(s)?{}:Ts(Zt(s))};var Xt=I(42661);const pn=function jt(s){return(0,Xt.A)(s)&&"[object Arguments]"==(0,g.A)(s)};var mn=Object.prototype,We=mn.hasOwnProperty,bn=mn.propertyIsEnumerable,Ze=pn(function(){return arguments}())?pn:function(s){return(0,Xt.A)(s)&&We.call(s,"callee")&&!bn.call(s,"callee")};const yn=Ze;var ie=I(43744);const Yt=function $n(s){return"number"==typeof s&&s>-1&&s%1==0&&s<=9007199254740991},ve=function zn(s){return null!=s&&Yt(s.length)&&!nt(s)};var h="object"==typeof exports&&exports&&!exports.nodeType&&exports,b=h&&"object"==typeof module&&module&&!module.nodeType&&module,M=b&&b.exports===h?V.A.Buffer:void 0;const Et=(M?M.isBuffer:void 0)||function l(){return!1};var St=Function.prototype.toString,Pt=Object.prototype.hasOwnProperty,Rt=St.call(Object);var Nt={};Nt["[object Float32Array]"]=Nt["[object Float64Array]"]=Nt["[object Int8Array]"]=Nt["[object Int16Array]"]=Nt["[object Int32Array]"]=Nt["[object Uint8Array]"]=Nt["[object Uint8ClampedArray]"]=Nt["[object Uint16Array]"]=Nt["[object Uint32Array]"]=!0,Nt["[object Arguments]"]=Nt["[object Array]"]=Nt["[object ArrayBuffer]"]=Nt["[object Boolean]"]=Nt["[object DataView]"]=Nt["[object Date]"]=Nt["[object Error]"]=Nt["[object Function]"]=Nt["[object Map]"]=Nt["[object Number]"]=Nt["[object Object]"]=Nt["[object RegExp]"]=Nt["[object Set]"]=Nt["[object String]"]=Nt["[object WeakMap]"]=!1;const ar=function Yl(s){return function(e){return s(e)}};var Ql=I(17133),ti="object"==typeof exports&&exports&&!exports.nodeType&&exports,Cs=ti&&"object"==typeof module&&module&&!module.nodeType&&module,cr=Cs&&Cs.exports===ti&&Ql.A.process;const Vn=function(){try{return Cs&&Cs.require&&Cs.require("util").types||cr&&cr.binding&&cr.binding("util")}catch{}}();var ei=Vn&&Vn.isTypedArray;const ur=ei?ar(ei):function Zl(s){return(0,Xt.A)(s)&&Yt(s.length)&&!!Nt[(0,g.A)(s)]},hr=function no(s,e){if(("constructor"!==e||"function"!=typeof s[e])&&"__proto__"!=e)return s[e]};var ro=Object.prototype.hasOwnProperty;const ni=function io(s,e,t){var n=s[e];(!ro.call(s,e)||!U(n,t)||void 0===t&&!(e in s))&&hn(s,e,t)},Ss=function lo(s,e,t,n){var r=!t;t||(t={});for(var i=-1,o=e.length;++i<o;){var a=e[i],u=n?n(t[a],s[a],a,t,s):void 0;void 0===u&&(u=s[a]),r?hn(t,a,u):ni(t,a,u)}return t};var uo=/^(?:0|[1-9]\d*)$/;const si=function ho(s,e){var t=typeof s;return!!(e=e??9007199254740991)&&("number"==t||"symbol"!=t&&uo.test(s))&&s>-1&&s%1==0&&s<e};var go=Object.prototype.hasOwnProperty;const ri=function po(s,e){var t=(0,ie.A)(s),n=!t&&yn(s),r=!t&&!n&&Et(s),i=!t&&!n&&!r&&ur(s),o=t||n||r||i,a=o?function oo(s,e){for(var t=-1,n=Array(s);++t<s;)n[t]=e(t);return n}(s.length,String):[],u=a.length;for(var d in s)(e||go.call(s,d))&&(!o||!("length"==d||r&&("offset"==d||"parent"==d)||i&&("buffer"==d||"byteLength"==d||"byteOffset"==d)||si(d,u)))&&a.push(d);return a};var vo=Object.prototype.hasOwnProperty;const Ao=function _o(s){if(!N(s))return function mo(s){var e=[];if(null!=s)for(var t in Object(s))e.push(t);return e}(s);var e=gn(s),t=[];for(var n in s)"constructor"==n&&(e||!vo.call(s,n))||t.push(n);return t},qs=function Eo(s){return ve(s)?ri(s,!0):Ao(s)},xo=function wo(s,e,t,n,r,i,o){var a=hr(s,t),u=hr(e,t),d=o.get(u);if(d)fn(s,t,d);else{var v=i?i(a,u,t+"",s,e,o):void 0,L=void 0===v;if(L){var O=(0,ie.A)(u),W=!O&&Et(u),Y=!O&&!W&&ur(u);v=u,O||W||Y?(0,ie.A)(a)?v=a:function xs(s){return(0,Xt.A)(s)&&ve(s)}(a)?v=Un(a):W?(L=!1,v=Se(u,!0)):Y?(L=!1,v=jn(u,!0)):v=[]:function _e(s){if(!(0,Xt.A)(s)||"[object Object]"!=(0,g.A)(s))return!1;var e=Zt(s);if(null===e)return!0;var t=Pt.call(e,"constructor")&&e.constructor;return"function"==typeof t&&t instanceof t&&St.call(t)==Rt}(u)||yn(u)?(v=a,yn(a)?v=function To(s){return Ss(s,qs(s))}(a):(!N(a)||nt(a))&&(v=Fn(u))):L=!1}L&&(o.set(u,v),r(v,u,n,i,o),o.delete(u)),fn(s,t,v)}},Lo=function ii(s,e,t,n,r){s!==e&&ne(e,function(i,o){if(r||(r=new Ce),N(i))xo(s,e,o,t,ii,n,r);else{var a=n?n(hr(s,o),i,o+"",s,e,r):void 0;void 0===a&&(a=i),fn(s,o,a)}},qs)},li=function Co(s){return s};var oi=Math.max;const Ro=function ko(s){return function(){return s}};var Bo=He?function(s,e){return He(s,"toString",{configurable:!0,enumerable:!1,value:Ro(e),writable:!0})}:li,jo=Date.now,Fo=function Uo(s){var e=0,t=0;return function(){var n=jo(),r=16-(n-t);if(t=n,r>0){if(++e>=800)return arguments[0]}else e=0;return s.apply(void 0,arguments)}}(Bo);const Ho=Fo,zo=function $o(s,e){return Ho(function Oo(s,e,t){return e=oi(void 0===e?s.length-1:e,0),function(){for(var n=arguments,r=-1,i=oi(n.length-e,0),o=Array(i);++r<i;)o[r]=n[e+r];r=-1;for(var a=Array(e+1);++r<e;)a[r]=n[r];return a[e]=t(o),function So(s,e,t){switch(t.length){case 0:return s.call(e);case 1:return s.call(e,t[0]);case 2:return s.call(e,t[0],t[1]);case 3:return s.call(e,t[0],t[1],t[2])}return s.apply(e,t)}(s,this,a)}}(s,e,li),s+"")};var Wo=function Vo(s){return zo(function(e,t){var n=-1,r=t.length,i=r>1?t[r-1]:void 0,o=r>2?t[2]:void 0;for(i=s.length>3&&"function"==typeof i?(r--,i):void 0,o&&function Ko(s,e,t){if(!N(t))return!1;var n=typeof e;return!!("number"==n?ve(t)&&si(e,t.length):"string"==n&&e in t)&&U(t[e],s)}(t[0],t[1],o)&&(i=r<3?void 0:i,r=1),e=Object(e);++n<r;){var a=t[n];a&&s(e,a,n,i)}return e})}(function(s,e,t){Lo(s,e,t)});const Xe=Wo;var D=(s=>(s[s.TYPE=3]="TYPE",s[s.LEVEL=12]="LEVEL",s[s.ATTRIBUTE=13]="ATTRIBUTE",s[s.BLOT=14]="BLOT",s[s.INLINE=7]="INLINE",s[s.BLOCK=11]="BLOCK",s[s.BLOCK_BLOT=10]="BLOCK_BLOT",s[s.INLINE_BLOT=6]="INLINE_BLOT",s[s.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",s[s.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",s[s.ANY=15]="ANY",s))(D||{});class Ae{constructor(e,t,n={}){this.attrName=e,this.keyName=t,this.scope=null!=n.scope?n.scope&D.LEVEL|D.TYPE&D.ATTRIBUTE:D.ATTRIBUTE,null!=n.whitelist&&(this.whitelist=n.whitelist)}static keys(e){return Array.from(e.attributes).map(t=>t.name)}add(e,t){return!!this.canAdd(e,t)&&(e.setAttribute(this.keyName,t),!0)}canAdd(e,t){return null==this.whitelist||("string"==typeof t?this.whitelist.indexOf(t.replace(/["']/g,""))>-1:this.whitelist.indexOf(t)>-1)}remove(e){e.removeAttribute(this.keyName)}value(e){const t=e.getAttribute(this.keyName);return this.canAdd(e,t)&&t?t:""}}
vendor: 16,657 bytes, line 1
1class Wn extends Error{constructor(e){super(e="[Parchment] "+e),this.message=e,this.name=this.constructor.name}}let Zn=(()=>{let s=class Qr{constructor(){this.attributes={},this.classes={},this.tags={},this.types={}}static find(t,n=!1){if(null==t)return null;if(this.blots.has(t))return this.blots.get(t)||null;if(n){let r=null;try{r=t.parentNode}catch{return null}return this.find(r,n)}return null}create(t,n,r){const i=this.query(n);if(null==i)throw new Wn(`Unable to create ${n} blot`);const o=i,a=n instanceof Node||n.nodeType===Node.TEXT_NODE?n:o.create(r),u=new o(t,a,r);return Qr.blots.set(u.domNode,u),u}find(t,n=!1){return Qr.find(t,n)}query(t,n=D.ANY){let r;return"string"==typeof t?r=this.types[t]||this.attributes[t]:t instanceof Text||t.nodeType===Node.TEXT_NODE?r=this.types.text:"number"==typeof t?t&D.LEVEL&D.BLOCK?r=this.types.block:t&D.LEVEL&D.INLINE&&(r=this.types.inline):t instanceof Element&&((t.getAttribute("class")||"").split(/\s+/).some(i=>(r=this.classes[i],!!r)),r=r||this.tags[t.tagName]),null==r?null:"scope"in r&&n&D.LEVEL&r.scope&&n&D.TYPE&r.scope?r:null}register(...t){return t.map(n=>{const r="blotName"in n,i="attrName"in n;if(!r&&!i)throw new Wn("Invalid definition");if(r&&"abstract"===n.blotName)throw new Wn("Cannot register abstract class");return this.types[r?n.blotName:i?n.attrName:void 0]=n,i?"string"==typeof n.keyName&&(this.attributes[n.keyName]=n):r&&(n.className&&(this.classes[n.className]=n),n.tagName&&(n.tagName=Array.isArray(n.tagName)?n.tagName.map(a=>a.toUpperCase()):n.tagName.toUpperCase(),(Array.isArray(n.tagName)?n.tagName:[n.tagName]).forEach(a=>{(null==this.tags[a]||null==n.className)&&(this.tags[a]=n)}))),n})}};return s.blots=new WeakMap,s})();function ai(s,e){return(s.getAttribute("class")||"").split(/\s+/).filter(t=>0===t.indexOf(`${e}-`))}const fe=class Zo extends Ae{static keys(e){return(e.getAttribute("class")||"").split(/\s+/).map(t=>t.split("-").slice(0,-1).join("-"))}add(e,t){return!!this.canAdd(e,t)&&(this.remove(e),e.classList.add(`${this.keyName}-${t}`),!0)}remove(e){ai(e,this.keyName).forEach(t=>{e.classList.remove(t)}),0===e.classList.length&&e.removeAttribute("class")}value(e){const t=(ai(e,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(e,t)?t:""}};function fr(s){const e=s.split("-"),t=e.slice(1).map(n=>n[0].toUpperCase()+n.slice(1)).join("");return e[0]+t}const Ye=class Xo extends Ae{static keys(e){return(e.getAttribute("style")||"").split(";").map(t=>t.split(":")[0].trim())}add(e,t){return!!this.canAdd(e,t)&&(e.style[fr(this.keyName)]=t,!0)}remove(e){e.style[fr(this.keyName)]="",e.getAttribute("style")||e.removeAttribute("style")}value(e){const t=e.style[fr(this.keyName)];return this.canAdd(e,t)?t:""}},Fs=class Yo{constructor(e){this.attributes={},this.domNode=e,this.build()}attribute(e,t){t?e.add(this.domNode,t)&&(null!=e.value(this.domNode)?this.attributes[e.attrName]=e:delete this.attributes[e.attrName]):(e.remove(this.domNode),delete this.attributes[e.attrName])}build(){this.attributes={};const e=Zn.find(this.domNode);if(null==e)return;const t=Ae.keys(this.domNode),n=fe.keys(this.domNode),r=Ye.keys(this.domNode);t.concat(n).concat(r).forEach(i=>{const o=e.scroll.query(i,D.ATTRIBUTE);o instanceof Ae&&(this.attributes[o.attrName]=o)})}copy(e){Object.keys(this.attributes).forEach(t=>{const n=this.attributes[t].value(this.domNode);e.format(t,n)})}move(e){this.copy(e),Object.keys(this.attributes).forEach(t=>{this.attributes[t].remove(this.domNode)}),this.attributes={}}values(){return Object.keys(this.attributes).reduce((e,t)=>(e[t]=this.attributes[t].value(this.domNode),e),{})}},ci=class{constructor(e,t){this.scroll=e,this.domNode=t,Zn.blots.set(t,this),this.prev=null,this.next=null}static create(e){if(null==this.tagName)throw new Wn("Blot definition missing tagName");let t,n;return Array.isArray(this.tagName)?("string"==typeof e?(n=e.toUpperCase(),parseInt(n,10).toString()===n&&(n=parseInt(n,10))):"number"==typeof e&&(n=e),t="number"==typeof n?document.createElement(this.tagName[n-1]):n&&this.tagName.indexOf(n)>-1?document.createElement(n):document.createElement(this.tagName[0])):t=document.createElement(this.tagName),this.className&&t.classList.add(this.className),t}get statics(){return this.constructor}attach(){}clone(){const e=this.domNode.cloneNode(!1);return this.scroll.create(e)}detach(){null!=this.parent&&this.parent.removeChild(this),Zn.blots.delete(this.domNode)}deleteAt(e,t){this.isolate(e,t).remove()}formatAt(e,t,n,r){const i=this.isolate(e,t);if(null!=this.scroll.query(n,D.BLOT)&&r)i.wrap(n,r);else if(null!=this.scroll.query(n,D.ATTRIBUTE)){const o=this.scroll.create(this.statics.scope);i.wrap(o),o.format(n,r)}}insertAt(e,t,n){const r=null==n?this.scroll.create("text",t):this.scroll.create(t,n),i=this.split(e);this.parent.insertBefore(r,i||void 0)}isolate(e,t){const n=this.split(e);if(null==n)throw new Error("Attempt to isolate at end");return n.split(t),n}length(){return 1}offset(e=this.parent){return null==this.parent||this===e?0:this.parent.children.offset(this)+this.parent.offset(e)}optimize(e){this.statics.requiredContainer&&!(this.parent instanceof this.statics.requiredContainer)&&this.wrap(this.statics.requiredContainer.blotName)}remove(){null!=this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode),this.detach()}replaceWith(e,t){const n="string"==typeof e?this.scroll.create(e,t):e;return null!=this.parent&&(this.parent.insertBefore(n,this.next||void 0),this.remove()),n}split(e,t){return 0===e?this:this.next}update(e,t){}wrap(e,t){const n="string"==typeof e?this.scroll.create(e,t):e;if(null!=this.parent&&this.parent.insertBefore(n,this.next||void 0),"function"!=typeof n.appendChild)throw new Wn(`Cannot wrap ${e}`);return n.appendChild(this),n}};ci.blotName="abstract";let ui=ci;const hi=class extends ui{static value(e){return!0}index(e,t){return this.domNode===e||this.domNode.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(t,1):-1}position(e,t){let n=Array.from(this.parent.domNode.childNodes).indexOf(this.domNode);return e>0&&(n+=1),[this.parent.domNode,n]}value(){return{[this.statics.blotName]:this.statics.value(this.domNode)||!0}}};hi.scope=D.INLINE_BLOT;const Ht=hi;class Qo{constructor(){this.head=null,this.tail=null,this.length=0}append(...e){if(this.insertBefore(e[0],null),e.length>1){const t=e.slice(1);this.append(...t)}}at(e){const t=this.iterator();let n=t();for(;n&&e>0;)e-=1,n=t();return n}contains(e){const t=this.iterator();let n=t();for(;n;){if(n===e)return!0;n=t()}return!1}indexOf(e){const t=this.iterator();let n=t(),r=0;for(;n;){if(n===e)return r;r+=1,n=t()}return-1}insertBefore(e,t){null!=e&&(this.remove(e),e.next=t,null!=t?(e.prev=t.prev,null!=t.prev&&(t.prev.next=e),t.prev=e,t===this.head&&(this.head=e)):null!=this.tail?(this.tail.next=e,e.prev=this.tail,this.tail=e):(e.prev=null,this.head=this.tail=e),this.length+=1)}offset(e){let t=0,n=this.head;for(;null!=n;){if(n===e)return t;t+=n.length(),n=n.next}return-1}remove(e){this.contains(e)&&(null!=e.prev&&(e.prev.next=e.next),null!=e.next&&(e.next.prev=e.prev),e===this.head&&(this.head=e.next),e===this.tail&&(this.tail=e.prev),this.length-=1)}iterator(e=this.head){return()=>{const t=e;return null!=e&&(e=e.next),t}}find(e,t=!1){const n=this.iterator();let r=n();for(;r;){const i=r.length();if(e<i||t&&e===i&&(null==r.next||0!==r.next.length()))return[r,e];e-=i,r=n()}return[null,0]}forEach(e){const t=this.iterator();let n=t();for(;n;)e(n),n=t()}forEachAt(e,t,n){if(t<=0)return;const[r,i]=this.find(e);let o=e-i;const a=this.iterator(r);let u=a();for(;u&&o<e+t;){const d=u.length();e>o?n(u,e-o,Math.min(t,o+d-e)):n(u,0,Math.min(d,e+t-o)),o+=d,u=a()}}map(e){return this.reduce((t,n)=>(t.push(e(n)),t),[])}reduce(e,t){const n=this.iterator();let r=n();for(;r;)t=e(t,r),r=n();return t}}function fi(s,e){const t=e.find(s);if(t)return t;try{return e.create(s)}catch{const n=e.create(D.INLINE);return Array.from(s.childNodes).forEach(r=>{n.domNode.appendChild(r)}),s.parentNode&&s.parentNode.replaceChild(n.domNode,s),n.attach(),n}}const de=(()=>{let s=class en extends ui{constructor(t,n){super(t,n),this.uiNode=null,this.build()}appendChild(t){this.insertBefore(t)}attach(){super.attach(),this.children.forEach(t=>{t.attach()})}attachUI(t){null!=this.uiNode&&this.uiNode.remove(),this.uiNode=t,en.uiClass&&this.uiNode.classList.add(en.uiClass),this.uiNode.setAttribute("contenteditable","false"),this.domNode.insertBefore(this.uiNode,this.domNode.firstChild)}build(){this.children=new Qo,Array.from(this.domNode.childNodes).filter(t=>t!==this.uiNode).reverse().forEach(t=>{try{const n=fi(t,this.scroll);this.insertBefore(n,this.children.head||void 0)}catch(n){if(n instanceof Wn)return;throw n}})}deleteAt(t,n){if(0===t&&n===this.length())return this.remove();this.children.forEachAt(t,n,(r,i,o)=>{r.deleteAt(i,o)})}descendant(t,n=0){const[r,i]=this.children.find(n);return null==t.blotName&&t(r)||null!=t.blotName&&r instanceof t?[r,i]:r instanceof en?r.descendant(t,i):[null,-1]}descendants(t,n=0,r=Number.MAX_VALUE){let i=[],o=r;return this.children.forEachAt(n,r,(a,u,d)=>{(null==t.blotName&&t(a)||null!=t.blotName&&a instanceof t)&&i.push(a),a instanceof en&&(i=i.concat(a.descendants(t,u,o))),o-=d}),i}detach(){this.children.forEach(t=>{t.detach()}),super.detach()}enforceAllowedChildren(){let t=!1;this.children.forEach(n=>{t||this.statics.allowedChildren.some(r=>n instanceof r)||(n.statics.scope===D.BLOCK_BLOT?(null!=n.next&&this.splitAfter(n),null!=n.prev&&this.splitAfter(n.prev),n.parent.unwrap(),t=!0):n instanceof en?n.unwrap():n.remove())})}formatAt(t,n,r,i){this.children.forEachAt(t,n,(o,a,u)=>{o.formatAt(a,u,r,i)})}insertAt(t,n,r){const[i,o]=this.children.find(t);if(i)i.insertAt(o,n,r);else{const a=null==r?this.scroll.create("text",n):this.scroll.create(n,r);this.appendChild(a)}}insertBefore(t,n){null!=t.parent&&t.parent.children.remove(t);let r=null;this.children.insertBefore(t,n||null),t.parent=this,null!=n&&(r=n.domNode),(this.domNode.parentNode!==t.domNode||this.domNode.nextSibling!==r)&&this.domNode.insertBefore(t.domNode,r),t.attach()}length(){return this.children.reduce((t,n)=>t+n.length(),0)}moveChildren(t,n){this.children.forEach(r=>{t.insertBefore(r,n)})}optimize(t){if(super.optimize(t),this.enforceAllowedChildren(),null!=this.uiNode&&this.uiNode!==this.domNode.firstChild&&this.domNode.insertBefore(this.uiNode,this.domNode.firstChild),0===this.children.length)if(null!=this.statics.defaultChild){const n=this.scroll.create(this.statics.defaultChild.blotName);this.appendChild(n)}else this.remove()}path(t,n=!1){const[r,i]=this.children.find(t,n),o=[[this,t]];return r instanceof en?o.concat(r.path(i,n)):(null!=r&&o.push([r,i]),o)}removeChild(t){this.children.remove(t)}replaceWith(t,n){const r="string"==typeof t?this.scroll.create(t,n):t;return r instanceof en&&this.moveChildren(r),super.replaceWith(r)}split(t,n=!1){if(!n){if(0===t)return this;if(t===this.length())return this.next}const r=this.clone();return this.parent&&this.parent.insertBefore(r,this.next||void 0),this.children.forEachAt(t,this.length(),(i,o,a)=>{const u=i.split(o,n);null!=u&&r.appendChild(u)}),r}splitAfter(t){const n=this.clone();for(;null!=t.next;)n.appendChild(t.next);return this.parent&&this.parent.insertBefore(n,this.next||void 0),n}unwrap(){this.parent&&this.moveChildren(this.parent,this.next||void 0),this.remove()}update(t,n){const r=[],i=[];t.forEach(o=>{o.target===this.domNode&&"childList"===o.type&&(r.push(...o.addedNodes),i.push(...o.removedNodes))}),i.forEach(o=>{if(null!=o.parentNode&&"IFRAME"!==o.tagName&&document.body.compareDocumentPosition(o)&Node.DOCUMENT_POSITION_CONTAINED_BY)return;const a=this.scroll.find(o);null!=a&&(null==a.domNode.parentNode||a.domNode.parentNode===this.domNode)&&a.detach()}),r.filter(o=>o.parentNode===this.domNode&&o!==this.uiNode).sort((o,a)=>o===a?0:o.compareDocumentPosition(a)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1).forEach(o=>{let a=null;null!=o.nextSibling&&(a=this.scroll.find(o.nextSibling));const u=fi(o,this.scroll);(u.next!==a||null==u.next)&&(null!=u.parent&&u.parent.removeChild(this),this.insertBefore(u,a||void 0))}),this.enforceAllowedChildren()}};return s.uiClass="",s})(),Xn=class ns extends de{static create(e){return super.create(e)}static formats(e,t){const n=t.query(ns.blotName);if(null==n||e.tagName!==n.tagName){if("string"==typeof this.tagName)return!0;if(Array.isArray(this.tagName))return e.tagName.toLowerCase()}}constructor(e,t){super(e,t),this.attributes=new Fs(this.domNode)}format(e,t){if(e!==this.statics.blotName||t){const n=this.scroll.query(e,D.INLINE);if(null==n)return;n instanceof Ae?this.attributes.attribute(n,t):t&&(e!==this.statics.blotName||this.formats()[e]!==t)&&this.replaceWith(e,t)}else this.children.forEach(n=>{n instanceof ns||(n=n.wrap(ns.blotName,!0)),this.attributes.copy(n)}),this.unwrap()}formats(){const e=this.attributes.values(),t=this.statics.formats(this.domNode,this.scroll);return null!=t&&(e[this.statics.blotName]=t),e}formatAt(e,t,n,r){null!=this.formats()[n]||this.scroll.query(n,D.ATTRIBUTE)?this.isolate(e,t).format(n,r):super.formatAt(e,t,n,r)}optimize(e){super.optimize(e);const t=this.formats();if(0===Object.keys(t).length)return this.unwrap();const n=this.next;n instanceof ns&&n.prev===this&&function Jo(s,e){if(Object.keys(s).length!==Object.keys(e).length)return!1;for(const t in s)if(s[t]!==e[t])return!1;return!0}(t,n.formats())&&(n.moveChildren(this),n.remove())}replaceWith(e,t){const n=super.replaceWith(e,t);return this.attributes.copy(n),n}update(e,t){super.update(e,t),e.some(n=>n.target===this.domNode&&"attributes"===n.type)&&this.attributes.build()}wrap(e,t){const n=super.wrap(e,t);return n instanceof ns&&this.attributes.move(n),n}};Xn.allowedChildren=[Xn,Ht],Xn.blotName="inline",Xn.scope=D.INLINE_BLOT,Xn.tagName="SPAN";const dr=Xn,Yn=class Jr extends de{static create(e){return super.create(e)}static formats(e,t){const n=t.query(Jr.blotName);if(null==n||e.tagName!==n.tagName){if("string"==typeof this.tagName)return!0;if(Array.isArray(this.tagName))return e.tagName.toLowerCase()}}constructor(e,t){super(e,t),this.attributes=new Fs(this.domNode)}format(e,t){const n=this.scroll.query(e,D.BLOCK);null!=n&&(n instanceof Ae?this.attributes.attribute(n,t):e!==this.statics.blotName||t?t&&(e!==this.statics.blotName||this.formats()[e]!==t)&&this.replaceWith(e,t):this.replaceWith(Jr.blotName))}formats(){const e=this.attributes.values(),t=this.statics.formats(this.domNode,this.scroll);return null!=t&&(e[this.statics.blotName]=t),e}formatAt(e,t,n,r){null!=this.scroll.query(n,D.BLOCK)?this.format(n,r):super.formatAt(e,t,n,r)}insertAt(e,t,n){if(null==n||null!=this.scroll.query(t,D.INLINE))super.insertAt(e,t,n);else{const r=this.split(e);if(null==r)throw new Error("Attempt to insertAt after block boundaries");{const i=this.scroll.create(t,n);r.parent.insertBefore(i,r)}}}replaceWith(e,t){const n=super.replaceWith(e,t);return this.attributes.copy(n),n}update(e,t){super.update(e,t),e.some(n=>n.target===this.domNode&&"attributes"===n.type)&&this.attributes.build()}};Yn.blotName="block",Yn.scope=D.BLOCK_BLOT,Yn.tagName="P",Yn.allowedChildren=[dr,Yn,Ht];const Os=Yn,gr=class extends de{checkMerge(){return null!==this.next&&this.next.statics.blotName===this.statics.blotName}deleteAt(e,t){super.deleteAt(e,t),this.enforceAllowedChildren()}formatAt(e,t,n,r){super.formatAt(e,t,n,r),this.enforceAllowedChildren()}insertAt(e,t,n){super.insertAt(e,t,n),this.enforceAllowedChildren()}optimize(e){super.optimize(e),this.children.length>0&&null!=this.next&&this.checkMerge()&&(this.next.moveChildren(this),this.next.remove())}};gr.blotName="container",gr.scope=D.BLOCK_BLOT;const Hs=gr,Qt=class ta extends Ht{static formats(e,t){}format(e,t){super.formatAt(0,this.length(),e,t)}formatAt(e,t,n,r){0===e&&t===this.length()?this.format(n,r):super.formatAt(e,t,n,r)}formats(){return this.statics.formats(this.domNode,this.scroll)}},ea={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},Qn=class extends de{constructor(e,t){super(null,t),this.registry=e,this.scroll=this,this.build(),this.observer=new MutationObserver(n=>{this.update(n)}),this.observer.observe(this.domNode,ea),this.attach()}create(e,t){return this.registry.create(this,e,t)}find(e,t=!1){const n=this.registry.find(e,t);return n?n.scroll===this?n:t?this.find(n.scroll.domNode.parentNode,!0):null:null}query(e,t=D.ANY){return this.registry.query(e,t)}register(...e){return this.registry.register(...e)}build(){null!=this.scroll&&super.build()}detach(){super.detach(),this.observer.disconnect()}deleteAt(e,t){this.update(),0===e&&t===this.length()?this.children.forEac
1h(n=>{n.remove()}):super.deleteAt(e,t)}formatAt(e,t,n,r){this.update(),super.formatAt(e,t,n,r)}insertAt(e,t,n){this.update(),super.insertAt(e,t,n)}optimize(e=[],t={}){super.optimize(t);const n=t.mutationsMap||new WeakMap;let r=Array.from(this.observer.takeRecords());for(;r.length>0;)e.push(r.pop());const i=(u,d=!0)=>{null==u||u===this||null!=u.domNode.parentNode&&(n.has(u.domNode)||n.set(u.domNode,[]),d&&i(u.parent))},o=u=>{n.has(u.domNode)&&(u instanceof de&&u.children.forEach(o),n.delete(u.domNode),u.optimize(t))};let a=e;for(let u=0;a.length>0;u+=1){if(u>=100)throw new Error("[Parchment] Maximum optimize iterations reached");for(a.forEach(d=>{const v=this.find(d.target,!0);null!=v&&(v.domNode===d.target&&("childList"===d.type?(i(this.find(d.previousSibling,!1)),Array.from(d.addedNodes).forEach(L=>{const O=this.find(L,!1);i(O,!1),O instanceof de&&O.children.forEach(W=>{i(W,!1)})})):"attributes"===d.type&&i(v.prev)),i(v))}),this.children.forEach(o),a=Array.from(this.observer.takeRecords()),r=a.slice();r.length>0;)e.push(r.pop())}}update(e,t={}){e=e||this.observer.takeRecords();const n=new WeakMap;e.map(r=>{const i=this.find(r.target,!0);return null==i?null:n.has(i.domNode)?(n.get(i.domNode).push(r),null):(n.set(i.domNode,[r]),i)}).forEach(r=>{null!=r&&r!==this&&n.has(r.domNode)&&r.update(n.get(r.domNode)||[],t)}),t.mutationsMap=n,n.has(this.domNode)&&super.update(n.get(this.domNode),t),this.optimize(e,t)}};Qn.blotName="scroll",Qn.defaultChild=Os,Qn.allowedChildren=[Os,Hs],Qn.scope=D.BLOCK_BLOT,Qn.tagName="DIV";const pr=Qn,mr=class Cl extends Ht{static create(e){return document.createTextNode(e)}static value(e){return e.data}constructor(e,t){super(e,t),this.text=this.statics.value(this.domNode)}deleteAt(e,t){this.domNode.data=this.text=this.text.slice(0,e)+this.text.slice(e+t)}index(e,t){return this.domNode===e?t:-1}insertAt(e,t,n){null==n?(this.text=this.text.slice(0,e)+t+this.text.slice(e),this.domNode.data=this.text):super.insertAt(e,t,n)}length(){return this.text.length}optimize(e){super.optimize(e),this.text=this.statics.value(this.domNode),0===this.text.length?this.remove():this.next instanceof Cl&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())}position(e,t=!1){return[this.domNode,e]}split(e,t=!1){if(!t){if(0===e)return this;if(e===this.length())return this.next}const n=this.scroll.create(this.domNode.splitText(e));return this.parent.insertBefore(n,this.next||void 0),this.text=this.statics.value(this.domNode),n}update(e,t){e.some(n=>"characterData"===n.type&&n.target===this.domNode)&&(this.text=this.statics.value(this.domNode))}value(){return this.text}};mr.blotName="text",mr.scope=D.INLINE_BLOT;const $s=mr;var S=I(42577);const la=Gt(Object.keys,Object);var aa=Object.prototype.hasOwnProperty;const br=function ha(s){return ve(s)?ri(s):function ca(s){if(!gn(s))return la(s);var e=[];for(var t in Object(s))aa.call(s,t)&&"constructor"!=t&&e.push(t);return e}(s)},di=function ya(){return[]};var _a=Object.prototype.propertyIsEnumerable,gi=Object.getOwnPropertySymbols,Aa=gi?function(s){return null==s?[]:(s=Object(s),function ma(s,e){for(var t=-1,n=null==s?0:s.length,r=0,i=[];++t<n;){var o=s[t];e(o,t,s)&&(i[r++]=o)}return i}(gi(s),function(e){return _a.call(s,e)}))}:di;const yr=Aa,pi=function Na(s,e){for(var t=-1,n=e.length,r=s.length;++t<n;)s[r+t]=e[t];return s};var xa=Object.getOwnPropertySymbols?function(s){for(var e=[];s;)pi(e,yr(s)),s=Zt(s);return e}:di;const mi=xa,bi=function Sa(s,e,t){var n=e(s);return(0,ie.A)(s)?n:pi(n,t(s))},vr=function qa(s){return bi(s,br,yr)},Ia=function Oa(s){return bi(s,qs,mi)},_r=Mt(V.A,"DataView"),Ar=Mt(V.A,"Promise"),Er=Mt(V.A,"Set"),Tr=Mt(V.A,"WeakMap");var yi="[object Map]",vi="[object Promise]",_i="[object Set]",Ai="[object WeakMap]",Ei="[object DataView]",Pa=ct(_r),ja=ct(Te),Ua=ct(Ar),Fa=ct(Er),Ha=ct(Tr),_n=g.A;(_r&&_n(new _r(new ArrayBuffer(1)))!=Ei||Te&&_n(new Te)!=yi||Ar&&_n(Ar.resolve())!=vi||Er&&_n(new Er)!=_i||Tr&&_n(new Tr)!=Ai)&&(_n=function(s){var e=(0,g.A)(s),t="[object Object]"==e?s.constructor:void 0,n=t?ct(t):"";if(n)switch(n){case Pa:return Ei;case ja:return yi;case Ua:return vi;case Fa:return _i;case Ha:return Ai}return e});
1const Is=_n;var za=Object.prototype.hasOwnProperty;var Za=/\w*$/;var zs=I(6944),Ti=zs.A?zs.A.prototype:void 0,Ni=Ti?Ti.valueOf:void 0;const _c=function vc(s,e,t){var n=s.constructor;switch(e){case"[object ArrayBuffer]":return Ge(s);case"[object Boolean]":case"[object Date]":return new n(+s);case"[object DataView]":return function Va(s,e){var t=e?Ge(s.buffer):s.buffer;return new s.constructor(t,s.byteOffset,s.byteLength)}(s,t);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return jn(s,t);case"[object Map]":case"[object Set]":return new n;case"[object Number]":case"[object String]":return new n(s);case"[object RegExp]":return function Xa(s){var e=new s.constructor(s.source,Za.exec(s));return e.lastIndex=s.lastIndex,e}(s);case"[object Symbol]":return function Qa(s){return Ni?Object(Ni.call(s)):{}}(s)}};var wi=Vn&&Vn.isMap;const wc=wi?ar(wi):function Ec(s){return(0,Xt.A)(s)&&"[object Map]"==Is(s)};var xi=Vn&&Vn.isSet;const qc=xi?ar(xi):function Lc(s){return(0,Xt.A)(s)&&"[object Set]"==Is(s)};var Li="[object Arguments]",Ci="[object Function]",Si="[object Object]",Tt={};Tt[Li]=Tt["[object Array]"]=Tt["[object ArrayBuffer]"]=Tt["[object DataView]"]=Tt["[object Boolean]"]=Tt["[object Date]"]=Tt["[object Float32Array]"]=Tt["[object Float64Array]"]=Tt["[object Int8Array]"]=Tt["[object Int16Array]"]=Tt["[object Int32Array]"]=Tt["[object Map]"]=Tt["[object Number]"]=Tt[Si]=Tt["[object RegExp]"]=Tt["[object Set]"]=Tt["[object String]"]=Tt["[object Symbol]"]=Tt["[object Uint8Array]"]=Tt["[object Uint8ClampedArray]"]=Tt["[object Uint16Array]"]=Tt["[object Uint32Array]"]=!0,Tt["[object Error]"]=Tt[Ci]=Tt["[object WeakMap]"]=!1;const su=function Ks(s,e,t,n,r,i){var o,a=1&e,u=2&e,d=4&e;if(t&&(o=r?t(s,n,r,i):t(s)),void 0!==o)return o;if(!N(s))return s;var v=(0,ie.A)(s);if(v){if(o=function Ka(s){var e=s.length,t=new s.constructor(e);return e&&"string"==typeof s[0]&&za.call(s,"index")&&(t.index=s.index,t.input=s.input),t}(s),!a)return Un(s,o)}else{var L=Is(s),O=L==Ci||"[object GeneratorFunction]"==L;if(Et(s))return Se(s,a);if(L==Si||L==Li||O&&!r){if(o=u||O?{}:Fn(s),!a)return u?function La(s,e){return Ss(s,mi(s),e)}(s,function ga(s,e){return s&&Ss(e,qs(e),s)}(o,s)):function Ea(s,e){return Ss(s,yr(s),e)}(s,function fa(s,e){return s&&Ss(e,br(e),s)}(o,s))}else{if(!Tt[L])return r?s:{};o=_c(s,L,a)}}i||(i=new Ce);var W=i.get(s);if(W)return W;i.set(s,o),qc(s)?s.forEach(function(bt){o.add(Ks(bt,e,t,bt,s,i))}):wc(s)&&s.forEach(function(bt,Z){o.set(Z,Ks(bt,e,t,Z,s,i))});var at=v?void 0:(d?u?Ia:vr:u?qs:br)(s);return function sa(s,e){for(var t=-1,n=null==s?0:s.length;++t<n&&!1!==e(s[t],t,s););}(at||s,function(bt,Z){at&&(bt=s[Z=bt]),ni(o,Z,Ks(bt,e,t,Z,s,i))}),o},Jn=function lu(s){return su(s,5)};function Gs(s){var e=-1,t=null==s?0:s.length;for(this.__data__=new kt;++e<t;)this.add(s[e])}Gs.prototype.add=Gs.prototype.push=function au(s){return this.__data__.set(s,"__lodash_hash_undefined__"),this},Gs.prototype.has=function uu(s){return this.__data__.has(s)};const fu=Gs,gu=function du(s,e){for(var t=-1,n=null==s?0:s.length;++t<n;)if(e(s[t],t,s))return!0;return!1},mu=function pu(s,e){return s.has(e)},qi=function vu(s,e,t,n,r,i){var o=1&t,a=s.length,u=e.length;if(a!=u&&!(o&&u>a))return!1;var d=i.get(s),v=i.get(e);if(d&&v)return d==e&&v==s;var L=-1,O=!0,W=2&t?new fu:void 0;for(i.set(s,e),i.set(e,s);++L<a;){var Y=s[L],at=e[L];if(n)var bt=o?n(at,Y,L,e,s,i):n(Y,at,L,s,e,i);if(void 0!==bt){if(bt)continue;O=!1;break}if(W){if(!gu(e,function(Z,qt){if(!mu(W,qt)&&(Y===Z||r(Y,Z,t,n,i)))return W.push(qt)})){O=!1;break}}else if(Y!==at&&!r(Y,at,t,n,i)){O=!1;break}}return i.delete(s),i.delete(e),O},Au=function _u(s){var e=-1,t=Array(s.size);return s.forEach(function(n,r){t[++e]=[r,n]}),t},Tu=function Eu(s){var e=-1,t=Array(s.size);return s.forEach(function(n){t[++e]=n}),t};var Oi=zs.A?zs.A.prototype:void 0,Nr=Oi?Oi.valueOf:void 0;var Fu=Object.prototype.hasOwnProperty;var Ii="[object Arguments]",ki="[object Array]",Vs="[object Object]",Ri=Object.prototype.hasOwnProperty;const Vu=function Gu(s,e,t,n,r,i){var o=(0,ie.A)(s),a=(0,ie.A)(e),u=o?ki:Is(s),d=a?ki:Is(e),v=(u=u==Ii?Vs:u)==Vs,L=(d=d==Ii?Vs:d)==Vs,O=u==d;
1if(O&&Et(s)){if(!Et(e))return!1;o=!0,v=!1}if(O&&!v)return i||(i=new Ce),o||ur(s)?qi(s,e,t,n,r,i):function Du(s,e,t,n,r,i,o){switch(t){case"[object DataView]":if(s.byteLength!=e.byteLength||s.byteOffset!=e.byteOffset)return!1;s=s.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(s.byteLength!=e.byteLength||!i(new se(s),new se(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return U(+s,+e);case"[object Error]":return s.name==e.name&&s.message==e.message;case"[object RegExp]":case"[object String]":return s==e+"";case"[object Map]":var a=Au;case"[object Set]":if(a||(a=Tu),s.size!=e.size&&!(1&n))return!1;var d=o.get(s);if(d)return d==e;n|=2,o.set(s,e);var v=qi(a(s),a(e),n,r,i,o);return o.delete(s),v;case"[object Symbol]":if(Nr)return Nr.call(s)==Nr.call(e)}return!1}(s,e,u,t,n,r,i);if(!(1&t)){var W=v&&Ri.call(s,"__wrapped__"),Y=L&&Ri.call(e,"__wrapped__");if(W||Y){var at=W?s.value():s,bt=Y?e.value():e;return i||(i=new Ce),r(at,bt,t,n,i)}}return!!O&&(i||(i=new Ce),function Hu(s,e,t,n,r,i){var o=1&t,a=vr(s),u=a.length;if(u!=vr(e).length&&!o)return!1;for(var L=u;L--;){var O=a[L];if(!(o?O in e:Fu.call(e,O)))return!1}var W=i.get(s),Y=i.get(e);if(W&&Y)return W==e&&Y==s;var at=!0;i.set(s,e),i.set(e,s);for(var bt=o;++L<u;){var Z=s[O=a[L]],qt=e[O];if(n)var Ll=o?n(qt,Z,O,e,s,i):n(Z,qt,O,s,e,i);if(!(void 0===Ll?Z===qt||r(Z,qt,t,n,i):Ll)){at=!1;break}bt||(bt="constructor"==O)}if(at&&!bt){var lr=s.constructor,or=e.constructor;lr!=or&&"constructor"in s&&"constructor"in e&&!("function"==typeof lr&&lr instanceof lr&&"function"==typeof or&&or instanceof or)&&(at=!1)}return i.delete(s),i.delete(e),at}(s,e,t,n,r,i))},Wu=function Bi(s,e,t,n,r){return s===e||(null==s||null==e||!(0,Xt.A)(s)&&!(0,Xt.A)(e)?s!=s&&e!=e:Vu(s,e,t,n,Bi,r))},wr=function Zu(s,e){return Wu(s,e)},Ie=(()=>{class s extends Qt{static value(){}optimize(){(this.prev||this.next)&&this.remove()}length(){return 0}value(){return""}}return s.blotName="break",s.tagName="BR",s})();class ge extends $s{}const Xu={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function Ws(s){return s.replace(/[&<>"']/g,e=>Xu[e])}const Qe=(()=>{class s extends dr{static allowedChildren=[s,Ie,Qt,ge];static order=["cursor","inline","link","underline","strike","italic","bold","script","code"];static compare(t,n){const r=s.order.indexOf(t),i=s.order.indexOf(n);return r>=0||i>=0?r-i:t===n?0:t<n?-1:1}formatAt(t,n,r,i){if(s.compare(this.statics.blotName,r)<0&&this.scroll.query(r,D.BLOT)){const o=this.isolate(t,n);i&&o.wrap(r,i)}else super.formatAt(t,n,r,i)}optimize(t){if(super.optimize(t),this.parent instanceof s&&s.compare(this.statics.blotName,this.parent.statics.blotName)>0){const n=this.parent.isolate(this.offset(),this.length());this.moveChildren(n),n.wrap(this)}}}return s})();let Jt=(()=>{class s extends Os{cache={};delta(){return null==this.cache.delta&&(this.cache.delta=Di(this)),this.cache.delta}deleteAt(t,n){super.deleteAt(t,n),this.cache={}}formatAt(t,n,r,i){n<=0||(this.scroll.query(r,D.BLOCK)?t+n===this.length()&&this.format(r,i):super.formatAt(t,Math.min(n,this.length()-t-1),r,i),this.cache={})}insertAt(t,n,r){if(null!=r)return super.insertAt(t,n,r),void(this.cache={});if(0===n.length)return;const i=n.split("\n"),o=i.shift();o.length>0&&(t<this.length()-1||null==this.children.tail?super.insertAt(Math.min(t,this.length()-1),o):this.children.tail.insertAt(this.children.tail.length(),o),this.cache={});let a=this;i.reduce((u,d)=>(a=a.split(u,!0),a.insertAt(0,d),d.length),t+o.length)}insertBefore(t,n){const{head:r}=this.children;super.insertBefore(t,n),r instanceof Ie&&r.remove(),this.cache={}}length(){return null==this.cache.length&&(this.cache.length=super.length()+1),this.cache.length}moveChildren(t,n){super.moveChildren(t,n),this.cache={}}optimize(t){super.optimize(t),this.cache={}}path(t){return super.path(t,!0)}removeChild(t){super.removeChild(t),this.cache={}}split(t){let n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(n&&(0===t||t>=this.length()-1)){const i=this.clone();return 0===t?(this.parent.insertBefore(i,this),this):(this.parent.insertBefore(i,this.next),i)}const r=super.split(t,n);return this.cache={},r}}return s.blotName="block",s.tagName="P",s.defaultChild=Ie,s.allowedChildren=[Ie,Qe,Qt,ge],s})();class le extends Qt{attach(){super.attach(),this.attributes=new Fs(this.domNode)}delta(){return(new S).insert(this.value(),{...this.formats(),...this.attributes.values()})}format(e,t){const n=this.scroll.query(e,D.BLOCK_ATTRIBUTE);null!=n&&this.attributes.attribute(n,t)}formatAt(e,t,n,r){this.format(n,r)}insertAt(e,t,n){if(null!=n)return void super.insertAt(e,t,n);const r=t.split("\n"),i=r.pop(),o=r.map(u=>{const d=this.scroll.create(Jt.blotName);return d.insertAt(0,u),d}),a=this.split(e);o.forEach(u=>{this.parent.insertBefore(u,a)}),i&&this.parent.insertBefore(this.scroll.create("text",i),a)}}function Di(s){let e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return s.descendants(Ht).reduce((t,n)=>0===n.length()?t:t.insert(n.value(),oe(n,{},e)),new S).insert("\n",oe(s))}function oe(s){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return null==s||("formats"in s&&"function"==typeof s.formats&&(e={...e,...s.formats()},t&&delete e["code-token"]),null==s.parent||"scroll"===s.parent.statics.blotName||s.parent.statics.scope!==s.statics.scope)?e:oe(s.parent,e,t)}le.scope=D.BLOCK_BLOT;const Zs=(()=>{class s extends Qt{static blotName="cursor";static className="ql-cursor";static tagName="span";static CONTENTS="\ufeff";static value(){}constructor(t,n,r){super(t,n),this.selection=r,this.textNode=document.createTextNode(s.CONTENTS),this.domNode.appendChild(this.textNode),this.savedLength=0}detach(){null!=this.parent&&this.parent.removeChild(this)}format(t,n){if(0!==this.savedLength)return void super.format(t,n);let r=this,i=0;for(;null!=r&&r.statics.scope!==D.BLOCK_BLOT;)i+=r.offset(r.parent),r=r.parent;null!=r&&(this.savedLength=s.CONTENTS.length,r.optimize(),r.formatAt(i,s.CONTENTS.length,t,n),this.savedLength=0)}index(t,n){return t===this.textNode?0:super.index(t,n)}length(){return this.savedLength}position(){return[this.textNode,this.textNode.data.length]}remove(){super.remove(),this.parent=null}restore(){if(this.selection.composing||null==this.parent)return null;const t=this.selection.getNativeRange();for(;null!=this.domNode.lastChild&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);const n=this.prev instanceof ge?this.prev:null,r=n?n.length():0,i=this.next instanceof ge?this.next:null,o=i?i.text:"",{textNode:a}=this,u=a.data.split(s.CONTENTS).join("");let d;if(a.data=s.CONTENTS,n)d=n,(u||i)&&(n.insertAt(n.length(),u+o),i&&i.remove());else if(i)d=i,i.insertAt(0,u);else{const v=document.createTextNode(u);d=this.scroll.create(v),this.parent.insertBefore(d,this)}if(this.remove(),t){const v=(W,Y)=>n&&W===n.domNode?Y:W===a?r+Y-1:i&&W===i.domNode?r+u.length+Y:null,L=v(t.start.node,t.start.offset),O=v(t.end.node,t.end.offset);if(null!==L&&null!==O)return{startNode:d.domNode,startOffset:L,endNode:d.domNode,endOffset:O}}return null}update(t,n){if(t.some(r=>"characterData"===r.type&&r.target===this.textNode)){const r=this.restore(
vendor: 9,769 bytes, line 1
1);r&&(n.range=r)}}optimize(t){super.optimize(t);let{parent:n}=this;for(;n;){if("A"===n.domNode.tagName){this.savedLength=s.CONTENTS.length,n.isolate(this.offset(n),this.length()).unwrap(),this.savedLength=0;break}n=n.parent}}value(){return""}}return s})();var Yu=I(49280);const xr=new WeakMap,Lr=["error","warn","log","info"];let Cr="warn";function Pi(s){if(Cr&&Lr.indexOf(s)<=Lr.indexOf(Cr)){for(var e=arguments.length,t=new Array(e>1?e-1:0),n=1;n<e;n++)t[n-1]=arguments[n];console[s](...t)}}function Sr(s){return Lr.reduce((e,t)=>(e[t]=Pi.bind(console,t,s),e),{})}Sr.level=s=>{Cr=s},Pi.level=Sr.level;const An=Sr,qr=An("quill:events");["selectionchange","mousedown","mouseup","click"].forEach(s=>{document.addEventListener(s,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];Array.from(document.querySelectorAll(".ql-container")).forEach(r=>{const i=xr.get(r);i&&i.emitter&&i.emitter.handleDOM(...t)})})});const B=(()=>class s extends Yu{static events={EDITOR_CHANGE:"editor-change",SCROLL_BEFORE_UPDATE:"scroll-before-update",SCROLL_BLOT_MOUNT:"scroll-blot-mount",SCROLL_BLOT_UNMOUNT:"scroll-blot-unmount",SCROLL_OPTIMIZE:"scroll-optimize",SCROLL_UPDATE:"scroll-update",SCROLL_EMBED_UPDATE:"scroll-embed-update",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change",COMPOSITION_BEFORE_START:"composition-before-start",COMPOSITION_START:"composition-start",COMPOSITION_BEFORE_END:"composition-before-end",COMPOSITION_END:"composition-end"};static sources={API:"api",SILENT:"silent",USER:"user"};constructor(){super(),this.domListeners={},this.on("error",qr.error)}emit(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return qr.log.call(qr,...n),super.emit(...n)}handleDOM(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];(this.domListeners[t.type]||[]).forEach(o=>{let{node:a,handler:u}=o;(t.target===a||a.contains(t.target))&&u(t,...r)})}listenDOM(t,n,r){this.domListeners[t]||(this.domListeners[t]=[]),this.domListeners[t].push({node:n,handler:r})}})(),Or=An("quill:selection");class En{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this.index=e,this.length=t}}function Ir(s,e){return s.contains(e)}const Ju=class Qu{constructor(e,t){this.emitter=t,this.scroll=e,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=this.scroll.create("cursor",this),this.savedRange=new En(0,0),this.lastRange=this.savedRange,this.lastNative=null,this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,()=>{!this.mouseDown&&!this.composing&&setTimeout(this.update.bind(this,B.sources.USER),1)}),this.emitter.on(B.events.SCROLL_BEFORE_UPDATE,()=>{if(!this.hasFocus())return;const n=this.getNativeRange();null!=n&&n.start.node!==this.cursor.textNode&&this.emitter.once(B.events.SCROLL_UPDATE,(r,i)=>{try{this.root.contains(n.start.node)&&this.root.contains(n.end.node)&&this.setNativeRange(n.start.node,n.start.offset,n.end.node,n.end.offset);const o=i.some(a=>"characterData"===a.type||"childList"===a.type||"attributes"===a.type&&a.target===this.root);this.update(o?B.sources.SILENT:r)}catch{}})}),this.emitter.on(B.events.SCROLL_OPTIMIZE,(n,r)=>{if(r.range){const{startNode:i,startOffset:o,endNode:a,endOffset:u}=r.range;this.setNativeRange(i,o,a,u),this.update(B.sources.SILENT)}}),this.update(B.sources.SILENT)}handleComposition(){this.emitter.on(B.events.COMPOSITION_BEFORE_START,()=>{this.composing=!0}),this.emitter.on(B.events.COMPOSITION_END,()=>{if(this.composing=!1,this.cursor.parent){const e=this.cursor.restore();if(!e)return;setTimeout(()=>{this.setNativeRange(e.startNode,e.startOffset,e.endNode,e.endOffset)},1)}})}handleDragging(){this.emitter.listenDOM("mousedown",document.body,()=>{this.mouseDown=!0}),this.emitter.listenDOM("mouseup",document.body,()=>{this.mouseDown=!1,this.update(B.sources.USER)})}focus(){this.hasFocus()||(this.root.focus({preventScroll:!0}),this.setRange(this.savedRange))}format(e,t){this.scroll.update();const n=this.getNativeRange();if(null!=n&&n.native.collapsed&&!this.scroll.query(e,D.BLOCK)){if(n.start.node!==this.cursor.textNode){const r=this.scroll.find(n.start.node,!1);if(null==r)return;if(r instanceof Ht){const i=r.split(n.start.offset);r.parent.insertBefore(this.cursor,i)}else r.insertBefore(this.cursor,n.start.node);this.cursor.attach()}this.cursor.format(e,t),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}getBounds(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;const n=this.scroll.length();e=Math.min(e,n-1),t=Math.min(e+t,n-1)-e;let r,[i,o]=this.scroll.leaf(e);if(null==i)return null;if(t>0&&o===i.length()){const[v]=this.scroll.leaf(e+1);if(v){const[L]=this.scroll.line(e),[O]=this.scroll.line(e+1);L===O&&(i=v,o=0)}}[r,o]=i.position(o,!0);const a=document.createRange();if(t>0)return a.setStart(r,o),[i,o]=this.scroll.leaf(e+t),null==i?null:([r,o]=i.position(o,!0),a.setEnd(r,o),a.getBoundingClientRect());let d,u="left";if(r instanceof Text){if(!r.data.length)return null;o<r.data.length?(a.setStart(r,o),a.setEnd(r,o+1)):(a.setStart(r,o-1),a.setEnd(r,o),u="right"),d=a.getBoundingClientRect()}else{if(!(i.domNode instanceof Element))return null;d=i.domNode.getBoundingClientRect(),o>0&&(u="right")}return{bottom:d.top+d.height,height:d.height,left:d[u],right:d[u],top:d.top,width:0}}getNativeRange(){const e=document.getSelection();if(null==e||e.rangeCount<=0)return null;const t=e.getRangeAt(0);if(null==t)return null;const n=this.normalizeNative(t);return Or.info("getNativeRange",n),n}getRange(){const e=this.scroll.domNode;if("isConnected"in e&&!e.isConnected)return[null,null];const t=this.getNativeRange();return null==t?[null,null]:[this.normalizedToRange(t),t]}hasFocus(){return document.activeElement===this.root||null!=document.activeElement&&Ir(this.root,document.activeElement)}normalizedToRange(e){const t=[[e.start.node,e.start.offset]];e.native.collapsed||t.push([e.end.node,e.end.offset]);const n=t.map(o=>{const[a,u]=o,d=this.scroll.find(a,!0),v=d.offset(this.scroll);return 0===u?v:d instanceof Ht?v+d.index(a,u):v+d.length()}),r=Math.min(Math.max(...n),this.scroll.length()-1),i=Math.min(r,...n);return new En(i,r-i)}normalizeNative(e){if(!Ir(this.root,e.startContainer)||!e.collapsed&&!Ir(this.root,e.endContainer))return null;const t={start:{node:e.startContainer,offset:e.startOffset},end:{node:e.endContainer,offset:e.endOffset},native:e};return[t.start,t.end].forEach(n=>{let{node:r,offset:i}=n;for(;!(r instanceof Text)&&r.childNodes.length>0;)if(r.childNodes.length>i)r=r.childNodes[i],i=0;else{if(r.childNodes.length!==i)break;r=r.lastChild,i=r instanceof Text?r.data.length:r.childNodes.length>0?r.childNodes.length:r.childNodes.length+1}n.node=r,n.offset=i}),t}rangeToNative(e){const t=this.scroll.length(),n=(r,i)=>{r=Math.min(t-1,r);const[o,a]=this.scroll.leaf(r);return o?o.position(a,i):[null,-1]};return[...n(e.index,!1),...n(e.index+e.length,!0)]}setNativeRange(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t,i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(Or.info("setNativeRange",e,t,n,r),null!=e&&(null==this.root.parentNode||null==e.parentNode||null==n.parentNode))return;const o=document.getSelection();if(null!=o)if(null!=e){this.hasFocus()||this.root.focus({preventScroll:!0});const{native:a}=this.getNativeRange()||{};if(null==a||i||e!==a.startContainer||t!==a.startOffset||n!==a.endContainer||r!==a.endOffset){e instanceof Element&&"BR"===e.tagName&&(t=Array.from(e.parentNode.childNodes).indexOf(e),e=e.parentNode),n instanceof Element&&"BR"===n.tagName&&(r=Array.from(n.parentNode.childNodes).indexOf(n),n=n.parentNode);const u=document.createRange();u.setStart(e,t),u.setEnd(n,r),o.removeAllRanges(),o.addRange(u)}}else o.removeAllRanges(),this.root.blur()}setRange(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:B.sources.API;if("string"==typeof t&&(n=t,t=!1),Or.info("setRange",e),null!=e){const r=this.rangeToNative(e);this.setNativeRange(...r,t)}else this.setNativeRange(null);this.update(n)}update(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:B.sources.USER;const t=this.lastRange,[n,r]=this.getRange();if(this.lastRange=n,this.lastNative=r,null!=this.lastRange&&(this.savedRange=this.lastRange),!wr(t,this.lastRange)){if(!this.composing&&null!=r&&r.native.collapsed&&r.start.node!==this.cursor.textNode){const o=this.cursor.restore();o&&this.setNativeRange(o.startNode,o.startOffset,o.endNode,o.endOffset)}const i=[B.events.SELECTION_CHANGE,Jn(this.lastRange),Jn(t),e];this.emitter.emit(B.events.EDITOR_CHANGE,...i),e!==B.sources.SILENT&&this.emitter.emit(...i)}}},th=/^[ -~]*$/;function ts(s,e,t){if(0===s.length){const[W]=kr(t.pop());return e<=0?`</li></${W}>`:`</li></${W}>${ts([],e-1,t)}`}const[{child:n,offset:r,length:i,indent:o,type:a},...u]=s,[d,v]=kr(a);if(o>e)return t.push(a),o===e+1?`<${d}><li${v}>${ks(n,r,i)}${ts(u,o,t)}`:`<${d}><li>${ts(s,e+1,t)}`;if(o===e&&a===t[t.length-1])return`</li><li${v}>${ks(n,r,i)}${ts(u,o,t)}`;const[O]=kr(t.pop());return`</li></${O}>${ts(s,e-1,t)}`}function ks(s,e,t){let n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if("html"in s&&"function"==typeof s.html)return s.html(e,t);if(s instanceof ge)return Ws(s.value().slice(e,e+t)).replaceAll(" ","&nbsp;");if(s instanceof de){if("list-container"===s.statics.blotName){const d=[];return s.children.forEachAt(e,t,(v,L,O)=>{const W="formats"in v&&"function"==typeof v.formats?v.formats():{};d.push({child:v,offset:L,length:O,indent:W.indent||0,type:W.list})}),ts(d,-1,[])}const r=[];
1if(s.children.forEachAt(e,t,(d,v,L)=>{r.push(ks(d,v,L))}),n||"list"===s.statics.blotName)return r.join("");const{outerHTML:i,innerHTML:o}=s.domNode,[a,u]=i.split(`>${o}<`);return"<table"===a?`<table style="border: 1px solid #000;">${r.join("")}<${u}`:`${a}>${r.join("")}<${u}`}return s.domNode instanceof Element?s.domNode.outerHTML:""}function nh(s,e){return Object.keys(e).reduce((t,n)=>{if(null==s[n])return t;const r=e[n];return t[n]=r===s[n]?r:Array.isArray(r)?r.indexOf(s[n])<0?r.concat([s[n]]):r:[r,s[n]],t},{})}function kr(s){const e="ordered"===s?"ol":"ul";switch(s){case"checked":return[e,' data-list="checked"'];case"unchecked":return[e,' data-list="unchecked"'];default:return[e,""]}}function ji(s){return s.reduce((e,t)=>{if("string"==typeof t.insert){const n=t.insert.replace(/\r\n/g,"\n").replace(/\r/g,"\n");return e.insert(n,t.attributes)}return e.push(t)},new S)}function Ui(s,e){let{index:t,length:n}=s;return new En(t+e,n)}const rh=class eh{constructor(e){this.scroll=e,this.delta=this.getDelta()}applyDelta(e){this.scroll.update();let t=this.scroll.length();this.scroll.batchStart();const n=ji(e),r=new S;return function sh(s){const e=[];return s.forEach(t=>{"string"==typeof t.insert?t.insert.split("\n").forEach((r,i)=>{i&&e.push({insert:"\n",attributes:t.attributes}),r&&e.push({insert:r,attributes:t.attributes})}):e.push(t)}),e}(n.ops.slice()).reduce((o,a)=>{const u=S.Op.length(a);let d=a.attributes||{},v=!1,L=!1;if(null!=a.insert){if(r.retain(u),"string"==typeof a.insert){const Y=a.insert;L=!Y.endsWith("\n")&&(t<=o||!!this.scroll.descendant(le,o)[0]),this.scroll.insertAt(o,Y);const[at,bt]=this.scroll.line(o);let Z=Xe({},oe(at));if(at instanceof Jt){const[qt]=at.descendant(Ht,bt);qt&&(Z=Xe(Z,oe(qt)))}d=S.AttributeMap.diff(Z,d)||{}}else if("object"==typeof a.insert){const Y=Object.keys(a.insert)[0];if(null==Y)return o;const at=null!=this.scroll.query(Y,D.INLINE);if(at)(t<=o||this.scroll.descendant(le,o)[0])&&(L=!0);else if(o>0){const[bt,Z]=this.scroll.descendant(Ht,o-1);bt instanceof ge?"\n"!==bt.value()[Z]&&(v=!0):bt instanceof Qt&&bt.statics.scope===D.INLINE_BLOT&&(v=!0)}if(this.scroll.insertAt(o,Y,a.insert[Y]),at){const[bt]=this.scroll.descendant(Ht,o);if(bt){const Z=Xe({},oe(bt));d=S.AttributeMap.diff(Z,d)||{}}}}t+=u}else if(r.push(a),null!==a.retain&&"object"==typeof a.retain){const Y=Object.keys(a.retain)[0];if(null==Y)return o;this.scroll.updateEmbedAt(o,Y,a.retain[Y])}Object.keys(d).forEach(Y=>{this.scroll.formatAt(o,u,Y,d[Y])});const O=v?1:0,W=L?1:0;return t+=O+W,r.retain(O),r.delete(W),o+u+O+W},0),r.reduce((o,a)=>"number"==typeof a.delete?(this.scroll.deleteAt(o,a.delete),o):o+S.Op.length(a),0),this.scroll.batchEnd(),this.scroll.optimize(),this.update(n)}deleteText(e,t){return this.scroll.deleteAt(e,t),this.update((new S).retain(e).delete(t))}formatLine(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.scroll.update(),Object.keys(n).forEach(i=>{this.scroll.lines(e,Math.max(t,1)).forEach(o=>{o.format(i,n[i])})}),this.scroll.optimize();const r=(new S).retain(e).retain(t,Jn(n));return this.update(r)}formatText(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Object.keys(n).forEach(i=>{this.scroll.formatAt(e,t,i,n[i])});const r=(new S).retain(e).retain(t,Jn(n));return this.update(r)}getContents(e,t){return this.delta.slice(e,e+t)}getDelta(){return this.scroll.lines().reduce((e,t)=>e.concat(t.delta()),new S)}getFormat(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=[],r=[];0===t?this.scroll.path(e).forEach(a=>{const[u]=a;u instanceof Jt?n.push(u):u instanceof Ht&&r.push(u)}):(n=this.scroll.lines(e,t),r=this.scroll.descendants(Ht,e,t));const[i,o]=[n,r].map(a=>{const u=a.shift();if(null==u)return{};let d=oe(u);for(;Object.keys(d).length>0;){const v=a.shift();if(null==v)return d;d=nh(oe(v),d)}return d});return{...i,...o}}getHTML(e,t){const[n,r]=this.scroll.line(e);if(n){const i=n.length();return n.length()>=r+t&&(0!==r||t!==i)?ks(n,r,t,!0):ks(this.scroll,e,t,!0)}return""}getText(e,t){return this.getContents(e,t).filter(n=>"string"==typeof n.insert).map(n=>n.insert).join("")}insertContents(e,t){const n=ji(t),r=(new S).retain(e).concat(n);return this.scroll.insertContents(e,n),this.update(r)}insertEmbed(e,t,n){return this.scroll.insertAt(e,t,n),this.update((new S).retain(e).insert({[t]:n}))}insertText(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t=t.replace(/\r\n/g,"\n").replace(/\r/g,"\n"),this.scroll.insertAt(e,t),Object.keys(n).forEac
1h(r=>{this.scroll.formatAt(e,t.length,r,n[r])}),this.update((new S).retain(e).insert(t,Jn(n)))}isBlank(){if(0===this.scroll.children.length)return!0;if(this.scroll.children.length>1)return!1;const e=this.scroll.children.head;return e?.statics.blotName===Jt.blotName&&(!(e.children.length>1)&&e.children.head instanceof Ie)}removeFormat(e,t){const n=this.getText(e,t),[r,i]=this.scroll.line(e+t);let o=0,a=new S;null!=r&&(o=r.length()-i,a=r.delta().slice(i,i+o-1).insert("\n"));const d=this.getContents(e,t+o).diff((new S).insert(n).concat(a)),v=(new S).retain(e).concat(d);return this.applyDelta(v)}update(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;const r=this.delta;if(1===t.length&&"characterData"===t[0].type&&t[0].target.data.match(th)&&this.scroll.find(t[0].target)){const i=this.scroll.find(t[0].target),o=oe(i),a=i.offset(this.scroll),u=t[0].oldValue.replace(Zs.CONTENTS,""),d=(new S).insert(u),v=(new S).insert(i.value()),L=n&&{oldRange:Ui(n.oldRange,-a),newRange:Ui(n.newRange,-a)};e=(new S).retain(a).concat(d.diff(v,L)).reduce((W,Y)=>Y.insert?W.insert(Y.insert,o):W.push(Y),new S),this.delta=r.compose(e)}else this.delta=this.getDelta(),(!e||!wr(r.compose(e),this.delta))&&(e=r.diff(this.delta,n));return e}},Ee=(()=>class s{static DEFAULTS={};constructor(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.quill=t,this.options=n}})(),Rr=class ih extends Qt{constructor(e,t){super(e,t),this.contentNode=document.createElement("span"),this.contentNode.setAttribute("contenteditable","false"),Array.from(this.domNode.childNodes).forEach(n=>{this.contentNode.appendChild(n)}),this.leftGuard=document.createTextNode("\ufeff"),this.rightGuard=document.createTextNode("\ufeff"),this.domNode.appendChild(this.leftGuard),this.domNode.appendChild(this.contentNode),this.domNode.appendChild(this.rightGuard)}index(e,t){return e===this.leftGuard?0:e===this.rightGuard?1:super.index(e,t)}restore(e){let n,t=null;const r=e.data.split("\ufeff").join("");if(e===this.leftGuard)if(this.prev instanceof ge){const i=this.prev.length();this.prev.insertAt(i,r),t={startNode:this.prev.domNode,startOffset:i+r.length}}else n=document.createTextNode(r),this.parent.insertBefore(this.scroll.create(n),this),t={startNode:n,startOffset:r.length};else e===this.rightGuard&&(this.next instanceof ge?(this.next.insertAt(0,r),t={startNode:this.next.domNode,startOffset:r.length}):(n=document.createTextNode(r),this.parent.insertBefore(this.scroll.create(n),this.next),t={startNode:n,startOffset:r.length}));return e.data="\ufeff",t}update(e,t){e.forEach(n=>{if("characterData"===n.type&&(n.target===this.leftGuard||n.target===this.rightGuard)){const r=this.restore(n.target);r&&(t.range=r)}})}},oh=class lh{isComposing=!1;constructor(e,t){this.scroll=e,this.emitter=t,this.setupListeners()}setupListeners(){this.scroll.domNode.addEventListener("compositionstart",e=>{this.isComposing||this.handleCompositionStart(e)}),this.scroll.domNode.addEventListener("compositionend",e=>{this.isComposing&&queueMicrotask(()=>{this.handleCompositionEnd(e)})})}handleCompositionStart(e){const t=e.target instanceof Node?this.scroll.find(e.target,!0):null;t&&!(t instanceof Rr)&&(this.emitter.emit(B.events.COMPOSITION_BEFORE_START,e),this.scroll.batchStart(),this.emitter.emit(B.events.COMPOSITION_START,e),this.isComposing=!0)}handleCompositionEnd(e){this.emitter.emit(B.events.COMPOSITION_BEFORE_END,e),this.scroll.batchEnd(),this.emitter.emit(B.events.COMPOSITION_END,e),this.isComposing=!1}},Ys=(()=>{class s{static DEFAULTS={modules:{}};static themes={default:s};modules={};constructor(t,n){this.quill=t,this.options=n}init(){Object.keys(this.options.modules).forEach(t=>{null==this.modules[t]&&this.addModule(t)})}addModule(t){const n=this.quill.constructor.import(`modules/${t}`);return this.modules[t]=new n(this.quill,this.options.modules[t]||{}),this.modules[t]}}return s})(),ah=s=>s.parentElement||s.getRootNode().host||null,ch=s=>{const e=s.getBoundingClientRect(),t="offsetWidth"in s&&Math.abs(e.width)/s.offsetWidth||1,n="offsetHeight"in s&&Math.abs(e.height)/s.offsetHeight||1;return{top:e.top,right:e.left+s.clientWidth*t,bottom:e.top+s.clientHeight*n,left:e.left}},Qs=s=>{const e=parseInt(s,10);return Number.isNaN(e)?0:e},Fi=(s,e,t,n,r,i)=>s<t&&e>n?0:s<t?-(t-s+r):e>n?e-s>n-t?s+r-t:e-n+i:0,fh=["block","break","cursor","inline","scroll","text"],es=An("quill"),Js=new Zn;de.uiClass="ql-ui";class y{static DEFAULTS={bounds:null,modules:{clipboard:!0,keyboard:!0,history:!0,uploader:!0},placeholder:"",readOnly:!1,registry:Js,theme:"default"};static events=B.events;static sources=B.sources;static version="2.0.3";static imports={delta:S,parchment:J,"core/module":Ee,"core/theme":Ys};static debug(e){!0===e&&(e="log"),An.level(e)}static find(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return xr.get(e)||Js.find(e,t)}static import(e){return null==this.imports[e]&&es.error(`Cannot import ${e}. Are you sure it was registered?`),this.imports[e]}static register(){if("string"!=typeof(arguments.length<=0?void 0:arguments[0])){const e=arguments.length<=0?void 0:arguments[0],t=!(arguments.length<=1||!arguments[1]),n="attrName"in e?e.attrName:e.blotName;"string"==typeof n?this.register(`formats/${n}`,e,t):Object.keys(e).forEach(r=>{this.register(r,e[r],t)})}else{const e=arguments.length<=0?void 0:arguments[0],t=arguments.length<=1?void 0:arguments[1];null!=this.imports[e]&&!(!(arguments.length<=2)&&arguments[2])&&es.warn(`Overwriting ${e} with`,t),this.imports[e]=t,(e.startsWith("blots/")||e.startsWith("formats/"))&&t&&"boolean"!=typeof t&&"abstract"!==t.blotName&&Js.register(t),"function"==typeof t.register&&t.register(Js)}}constructor(e){if(this.options=function gh(s,e){const t=Hi(s);if(!t)throw new Error("Invalid Quill container");const r=e.theme&&e.theme!==y.DEFAULTS.theme?y.import(`themes/${e.theme}`):Ys;if(!r)throw new Error(`Invalid theme ${e.theme}. Did you register it?`);const{modules:i,...o}=y.DEFAULTS,{modules:a,...u}=r.DEFAULTS;let d=Br(e.modules);null!=d&&d.toolbar&&d.toolbar.constructor!==Object&&(d={...d,toolbar:{container:d.toolbar}});const v=Xe({},Br(i),Br(a),d),L={...o,...$i(u),...$i(e)};let O=e.registry;return O?e.formats&&es.warn('Ignoring "formats" option because "registry" is specified'):O=e.formats?((s,e,t)=>{const n=new Zn;return fh.forEach(r=>{const i=e.query(r);i&&n.register(i)}
vendor: 6,479 bytes, line 1
1),s.forEach(r=>{let i=e.query(r);i||t.error(`Cannot register "${r}" specified in "formats" config. Are you sure it was registered?`);let o=0;for(;i;)if(n.register(i),i="blotName"in i?i.requiredContainer??null:null,o+=1,o>100){t.error(`Cycle detected in registering blot requiredContainer: "${r}"`);break}}),n})(e.formats,L.registry,es):L.registry,{...L,registry:O,container:t,theme:r,modules:Object.entries(v).reduce((W,Y)=>{let[at,bt]=Y;if(!bt)return W;const Z=y.import(`modules/${at}`);return null==Z?(es.error(`Cannot load ${at} module. Are you sure you registered it?`),W):{...W,[at]:Xe({},Z.DEFAULTS||{},bt)}},{}),bounds:Hi(L.bounds)}}(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}),this.container=this.options.container,null==this.container)return void es.error("Invalid Quill container",e);this.options.debug&&y.debug(this.options.debug);const n=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",xr.set(this.container,this),this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.emitter=new B;const r=pr.blotName,i=this.options.registry.query(r);if(!i||!("blotName"in i))throw new Error(`Cannot initialize Quill without "${r}" blot`);if(this.scroll=new i(this.options.registry,this.root,{emitter:this.emitter}),this.editor=new rh(this.scroll),this.selection=new Ju(this.scroll,this.emitter),this.composition=new oh(this.scroll,this.emitter),this.theme=new this.options.theme(this,this.options),this.keyboard=this.theme.addModule("keyboard"),this.clipboard=this.theme.addModule("clipboard"),this.history=this.theme.addModule("history"),this.uploader=this.theme.addModule("uploader"),this.theme.addModule("input"),this.theme.addModule("uiNode"),this.theme.init(),this.emitter.on(B.events.EDITOR_CHANGE,o=>{o===B.events.TEXT_CHANGE&&this.root.classList.toggle("ql-blank",this.editor.isBlank())}),this.emitter.on(B.events.SCROLL_UPDATE,(o,a)=>{const u=this.selection.lastRange,[d]=this.selection.getRange(),v=u&&d?{oldRange:u,newRange:d}:void 0;pe.call(this,()=>this.editor.update(null,a,v),o)}),this.emitter.on(B.events.SCROLL_EMBED_UPDATE,(o,a)=>{const u=this.selection.lastRange,[d]=this.selection.getRange(),v=u&&d?{oldRange:u,newRange:d}:void 0;pe.call(this,()=>{const L=(new S).retain(o.offset(this)).retain({[o.statics.blotName]:a});return this.editor.update(L,[],v)},y.sources.USER)}),n){const o=this.clipboard.convert({html:`${n}<p><br></p>`,text:"\n"});this.setContents(o)}this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable(),this.allowReadOnlyEdits=!1}addContainer(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if("string"==typeof e){const n=e;(e=document.createElement("div")).classList.add(n)}return this.container.insertBefore(e,t),e}blur(){this.selection.setRange(null)}deleteText(e,t,n){return[e,t,,n]=ke(e,t,n),pe.call(this,()=>this.editor.deleteText(e,t),n,e,-1*t)}disable(){this.enable(!1)}editReadOnly(e){this.allowReadOnlyEdits=!0;const t=e();return this.allowReadOnlyEdits=!1,t}enable(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.scroll.enable(e),this.container.classList.toggle("ql-disabled",!e)}focus(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.selection.focus(),e.preventScroll||this.scrollSelectionIntoView()}format(e,t){return pe.call(this,()=>{const r=this.getSelection(!0);let i=new S;if(null==r)return i;if(this.scroll.query(e,D.BLOCK))i=this.editor.formatLine(r.index,r.length,{[e]:t});else{if(0===r.length)return this.selection.format(e,t),i;i=this.editor.formatText(r.index,r.length,{[e]:t})}return this.setSelection(r,B.sources.SILENT),i},arguments.length>2&&void 0!==arguments[2]?arguments[2]:B.sources.API)}formatLine(e,t,n,r,i){let o;return[e,t,o,i]=ke(e,t,n,r,i),pe.call(this,()=>this.editor.formatLine(e,t,o),i,e,0)}formatText(e,t,n,r,i){let o;return[e,t,o,i]=ke(e,t,n,r,i),pe.call(this,()=>this.editor.formatText(e,t,o),i,e,0)}getBounds(e){let n=null;if(n="number"==typeof e?this.selection.getBounds(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0):this.selection.getBounds(e.index,e.length),!n)return null;const r=this.container.getBoundingClientRect();return{bottom:n.bottom-r.top,height:n.height,left:n.left-r.left,right:n.right-r.left,top:n.top-r.top,width:n.width}}getContents(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-e;return[e,t]=ke(e,t),this.editor.getContents(e,t)}getFormat(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getSelection(!0);return"number"==typeof e?this.editor.getFormat(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0):this.editor.getFormat(e.index,e.length)}getIndex(e){return e.offset(this.scroll)}getLength(){return this.scroll.length()}getLeaf(e){return this.scroll.leaf(e)}getLine(e){return this.scroll.line(e)}getLines(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE;return"number"!=typeof e?this.scroll.lines(e.index,e.length):this.scroll.lines(e,t)}getModule(e){return this.theme.modules[e]}getSelection(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]&&this.focus(),this.update(),this.selection.getRange()[0]}getSemanticHTML(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0;return"number"==typeof e&&(t=t??this.getLength()-e),[e,t]=ke(e,t),this.editor.getHTML(e,t)}getText(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0;return"number"==typeof e&&(t=t??this.getLength()-e),[e,t]=ke(e,t),this.editor.getText(e,t)}hasFocus(){return this.selection.hasFocus()}insertEmbed(e,t,n){return pe.call(this,()=>this.editor.insertEmbed(e,t,n),arguments.length>3&&void 0!==arguments[3]?arguments[3]:y.sources.API,e)}insertText(e,t,n,r,i){let o;return[e,,o,i]=ke(e,0,n,r,i),pe.call(this,()=>this.editor.insertText(e,t,o),i,e,t.length)}isEnabled(){return this.scroll.isEnabled()}off(){return this.emitter.off(...arguments)}on(){return this.emitter.on(...arguments)}once(){return this.emitter.once(...arguments)}removeFormat(e,t,n){return[e,t,,n]=ke(e,t,n),pe.call(this,()=>this.editor.removeFormat(e,t),n,e)}scrollRectIntoView(e){((s,e)=>{const t=s.ownerDocument;let n=e,r=s;for(;r;
vendor: 5,721 bytes, line 1
1){const i=r===t.body,o=i?{top:0,right:window.visualViewport?.width??t.documentElement.clientWidth,bottom:window.visualViewport?.height??t.documentElement.clientHeight,left:0}:ch(r),a=getComputedStyle(r),u=Fi(n.left,n.right,o.left,o.right,Qs(a.scrollPaddingLeft),Qs(a.scrollPaddingRight)),d=Fi(n.top,n.bottom,o.top,o.bottom,Qs(a.scrollPaddingTop),Qs(a.scrollPaddingBottom));if(u||d)if(i)t.defaultView?.scrollBy(u,d);else{const{scrollLeft:v,scrollTop:L}=r;d&&(r.scrollTop+=d),u&&(r.scrollLeft+=u);const O=r.scrollLeft-v,W=r.scrollTop-L;n={left:n.left-O,top:n.top-W,right:n.right-O,bottom:n.bottom-W}}r=i||"fixed"===a.position?null:ah(r)}})(this.root,e)}scrollIntoView(){console.warn("Quill#scrollIntoView() has been deprecated and will be removed in the near future. Please use Quill#scrollSelectionIntoView() instead."),this.scrollSelectionIntoView()}scrollSelectionIntoView(){const e=this.selection.lastRange,t=e&&this.selection.getBounds(e.index,e.length);t&&this.scrollRectIntoView(t)}setContents(e){return pe.call(this,()=>{e=new S(e);const n=this.getLength(),r=this.editor.deleteText(0,n),i=this.editor.insertContents(0,e),o=this.editor.deleteText(this.getLength()-1,1);return r.compose(i).compose(o)},arguments.length>1&&void 0!==arguments[1]?arguments[1]:B.sources.API)}setSelection(e,t,n){null==e?this.selection.setRange(null,t||y.sources.API):([e,t,,n]=ke(e,t,n),this.selection.setRange(new En(Math.max(0,e),t),n),n!==B.sources.SILENT&&this.scrollSelectionIntoView())}setText(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:B.sources.API;const n=(new S).insert(e);return this.setContents(n,t)}update(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:B.sources.USER;const t=this.scroll.update(e);return this.selection.update(e),t}updateContents(e){return pe.call(this,()=>(e=new S(e),this.editor.applyDelta(e)),arguments.length>1&&void 0!==arguments[1]?arguments[1]:B.sources.API,!0)}}function Hi(s){return"string"==typeof s?document.querySelector(s):s}function Br(s){return Object.entries(s??{}).reduce((e,t)=>{let[n,r]=t;return{...e,[n]:!0===r?{}:r}},{})}function $i(s){return Object.fromEntries(Object.entries(s).filter(e=>void 0!==e[1]))}function pe(s,e,t,n){if(!this.isEnabled()&&e===B.sources.USER&&!this.allowReadOnlyEdits)return new S;let r=null==t?null:this.getSelection();const i=this.editor.delta,o=s();if(null!=r&&(!0===t&&(t=r.index),null==n?r=zi(r,o,e):0!==n&&(r=zi(r,t,n,e)),this.setSelection(r,B.sources.SILENT)),o.length()>0){const a=[B.events.TEXT_CHANGE,o,i,e];this.emitter.emit(B.events.EDITOR_CHANGE,...a),e!==B.sources.SILENT&&this.emitter.emit(...a)}return o}function ke(s,e,t,n,r){let i={};return"number"==typeof s.index&&"number"==typeof s.length?"number"!=typeof e?(r=n,n=t,t=e,e=s.length,s=s.index):(e=s.length,s=s.index):"number"!=typeof e&&(r=n,n=t,t=e,e=0),"object"==typeof t?(i=t,r=n):"string"==typeof t&&(null!=n?i[t]=n:r=t),[s,e,i,r=r||B.sources.API]}function zi(s,e,t,n){const r="number"==typeof t?t:0;if(null==s)return null;let i,o;return[i,o]=[s.index,s.index+s.length].map(e&&"function"==typeof e.transformPosition?a=>e.transformPosition(a,n!==B.sources.USER):a=>a<e||a===e&&n===B.sources.USER?a:r>=0?a+r:Math.max(e,a+r)),new En(i,o-i)}const Tn=class ph extends Hs{};function Ki(s){return s instanceof Jt||s instanceof le}function Gi(s){return"function"==typeof s.updateContent}let mh=(()=>class s extends pr{static blotName="scroll";static className="ql-editor";static tagName="DIV";static defaultChild=Jt;static allowedChildren=[Jt,le,Tn];constructor(t,n,r){let{emitter:i}=r;super(t,n),this.emitter=i,this.batch=!1,this.optimize(),this.enable(),this.domNode.addEventListener("dragstart",o=>this.handleDragStart(o))}batchStart(){Array.isArray(this.batch)||(this.batch=[])}batchEnd(){if(!this.batch)return;const t=this.batch;this.batch=!1,this.update(t)}emitMount(t){this.emitter.emit(B.events.SCROLL_BLOT_MOUNT,t)}emitUnmount(t){this.emitter.emit(B.events.SCROLL_BLOT_UNMOUNT,t)}emitEmbedUpdate(t,n){this.emitter.emit(B.events.SCROLL_EMBED_UPDATE,t,n)}deleteAt(t,n){const[r,i]=this.line(t),[o]=this.line(t+n);if(super.deleteAt(t,n),null!=o&&r!==o&&i>0){if(r instanceof le||o instanceof le)return void this.optimize();r.moveChildren(o,o.children.head instanceof Ie?null:o.children.head),r.remove()}this.optimize()}enable(){this.domNode.setAttribute("contenteditable",arguments.length>0&&void 0!==arguments[0]&&!arguments[0]?"false":"true")}formatAt(t,n,r,i){super.formatAt(t,n,r,i),this.optimize()}insertAt(t,n,r){if(t>=this.length())if(null==r||null==this.scroll.query(n,D.BLOCK)){const i=this.scroll.create(this.statics.defaultChild.blotName);this.appendChild(i),null==r&&n.endsWith("\n")?i.insertAt(0,n.slice(0,-1),r):i.insertAt(0,n,r)}else{const i=this.scroll.create(n,r);this.appendChild(i)}else super.insertAt(t,n,r);this.optimize()}insertBefore(t,n){if(t.statics.scope===D.INLINE_BLOT){const r=this.scroll.create(this.statics.defaultChild.blotName);r.appendChild(t),super.insertBefore(r,n)}else super.insertBefore(t,n)}insertContents(t,n){const r=this.deltaToRenderBlocks(n.concat((new S).insert("\n"))),i=r.pop();if(null==i)return;this.batchStart();const o=r.shift();if(o){const d="block"===o.type&&(0===o.delta.length()||!this.descendant(le,t)[0]&&t<this.length()),v="block"===o.type?o.delta:(new S).insert({[o.key]:o.value});Mr(this,t,v);const L="block"===o.type?1:0,O=t+v.length()+L;d&&this.insertAt(O-1,"\n");const W=oe(this.line(t)[0]),Y=S.AttributeMap.diff(W,o.attributes)||{};Object.keys(Y).forEach(at=>{this.formatAt(O-1,1,at,Y[at])}),t=O}let[a,u]=this.children.find(t);r.length&&(a&&(a=a.split(u),u=0),r.forEach(d=>{if("block"===d.type)Mr(this.createBlock(d.attributes,a||void 0),0,d.delta);else{const v=this.create(d.key,d.value);
1this.insertBefore(v,a||void 0),Object.keys(d.attributes).forEach(L=>{v.format(L,d.attributes[L])})}})),"block"===i.type&&i.delta.length()&&Mr(this,a?a.offset(a.scroll)+u:this.length(),i.delta),this.batchEnd(),this.optimize()}isEnabled(){return"true"===this.domNode.getAttribute("contenteditable")}leaf(t){const n=this.path(t).pop();if(!n)return[null,-1];const[r,i]=n;return r instanceof Ht?[r,i]:[null,-1]}line(t){return t===this.length()?this.line(t-1):this.descendant(Ki,t)}lines(){const r=(i,o,a)=>{let u=[],d=a;return i.children.forEachAt(o,a,(v,L,O)=>{Ki(v)?u.push(v):v instanceof Hs&&(u=u.concat(r(v,L,d))),d-=O}),u};return r(this,arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE)}optimize(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.batch||(super.optimize(t,n),t.length>0&&this.emitter.emit(B.events.SCROLL_OPTIMIZE,t,n))}path(t){return super.path(t).slice(1)}remove(){}update(t){if(this.batch)return void(Array.isArray(t)&&(this.batch=this.batch.concat(t)));let n=B.sources.USER;"string"==typeof t&&(n=t),Array.isArray(t)||(t=this.observer.takeRecords()),(t=t.filter(r=>{let{target:i}=r;const o=this.find(i,!0);return o&&!Gi(o)})).length>0&&this.emitter.emit(B.events.SCROLL_BEFORE_UPDATE,n,t),super.update(t.concat([])),t.length>0&&this.emitter.emit(B.events.SCROLL_UPDATE,n,t)}updateEmbedAt(t,n,r){const[i]=this.descendant(o=>o instanceof le,t);i&&i.statics.blotName===n&&Gi(i)&&i.updateContent(r)}handleDragStart(t){t.preventDefault()}deltaToRenderBlocks(t){const n=[];let r=new S;return t.forEach(i=>{const o=i?.insert;if(o)if("string"==typeof o){const a=o.split("\n");a.slice(0,-1).forEach(d=>{r.insert(d,i.attributes),n.push({type:"block",delta:r,attributes:i.attributes??{}}),r=new S});const u=a[a.length-1];u&&r.insert(u,i.attributes)}else{const a=Object.keys(o)[0];if(!a)return;this.query(a,D.INLINE)?r.push(i):(r.length()&&n.push({type:"block",delta:r,attributes:{}}),r=new S,n.push({type:"blockEmbed",key:a,value:o[a],attributes:i.attributes??{}}))}}),r.length()&&n.push({type:"block",delta:r,attributes:{}}),n}createBlock(t,n){let r;const i={};Object.entries(t).forEach(u=>{let[d,v]=u;null!=this.query(d,D.BLOCK&D.BLOT)?r=d:i[d]=v});const o=this.create(r||this.statics.defaultChild.blotName,r?t[r]:void 0);this.insertBefore(o,n||void 0);const a=o.length();return Object.entries(i).forEach(u=>{let[d,v]=u;o.formatAt(0,a,d,v)}),o}})();function Mr(s,e,t){t.reduce((n,r)=>{const i=S.Op.length(r);let o=r.attributes||{};if(null!=r.insert)if("string"==typeof r.insert){s.insertAt(n,r.insert);const[u]=s.descendant(Ht,n),d=oe(u);o=S.AttributeMap.diff(d,o)||{}}else if("object"==typeof r.insert){const a=Object.keys(r.insert)[0];if(null==a)return n;if(s.insertAt(n,a,r.insert[a]),null!=s.scroll.query(a,D.INLINE)){const[d]=s.descendant(Ht,n),v=oe(d);o=S.AttributeMap.diff(v,o)||{}}}return Object.keys(o).forEach(a=>{s.formatAt(n,i,a,o[a])}),n+i},e)}const bh=mh,Dr={scope:D.BLOCK,whitelist:["right","center","justify"]},yh=new Ae("align","align",Dr),Vi=new fe("align","ql-align",Dr),Wi=new Ye("align","text-align",Dr);class Zi extends Ye{value(e){let t=super.value(e);return t.startsWith("rgb(")?(t=t.replace(/^[^\d]+/,"").replace(/[^\d]+$/,""),`#${t.split(",").map(r=>`00${parseInt(r,10).toString(16)}`.slice(-2)).join("")}`):t}}const vh=new fe("color","ql-color",{scope:D.INLINE}),Pr=new Zi("color","color",{scope:D.INLINE}),_h=new fe("background","ql-bg",{scope:D.INLINE}),jr=new Zi("background","background-color",{scope:D.INLINE});class Nn extends Tn{static create(e){const t=super.create(e);return t.setAttribute("spellcheck","false"),t}code(e,t){return this.children.map(n=>n.length()<=1?"":n.domNode.innerText).join("\n").slice(e,e+t)}html(e,t){return`<pre>\n${Ws(this.code(e,t))}\n</pre>`}}let zt=(()=>class s extends Jt{static TAB="  ";static register(){y.register(Nn)}})(),Ah=(()=>{class s extends Qe{}return s.blotName="code",s.tagName="CODE",s})();zt.blotName="code-block",zt.className="ql-code-block",zt.tagName="DIV",Nn.blotName="code-block-container",Nn.className="ql-code-block-container",Nn.tagName="DIV",Nn.allowedChildren=[zt],zt.allowedChildren=[ge,Ie,Zs],zt.requiredContainer=Nn;const Ur={scope:D.BLOCK,whitelist:["rtl"]},Xi=new Ae("direction","dir",Ur),Yi=new fe("direction","ql-direction",Ur),Qi=new Ye("direction","direction",Ur),Ji={scope:D.INLINE,whitelist:["serif","monospace"]},tl=new fe("font","ql-font",Ji),el=new class Eh extends Ye{value(e){return super.value(e).replace(/["']/g,"")}}("font","font-family",Ji),nl=new fe("size","ql-size",{scope:D.INLINE,whitelist:["small","large","huge"]}),sl=new Ye("size","font-size",{scope:D.INLINE,whitelist:["10px","18px","32px"]}),Th=An("quill:keyboard"),Nh=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey";
1class tr extends Ee{static match(e,t){return!["altKey","ctrlKey","metaKey","shiftKey"].some(n=>!!t[n]!==e[n]&&null!==t[n])&&(t.key===e.key||t.key===e.which)}constructor(e,t){super(e,t),this.bindings={},Object.keys(this.options.bindings).forEach(n=>{this.options.bindings[n]&&this.addBinding(this.options.bindings[n])}),this.addBinding({key:"Enter",shiftKey:null},this.handleEnter),this.addBinding({key:"Enter",metaKey:null,ctrlKey:null,altKey:null},()=>{}),/Firefox/i.test(navigator.userAgent)?(this.addBinding({key:"Backspace"},{collapsed:!0},this.handleBackspace),this.addBinding({key:"Delete"},{collapsed:!0},this.handleDelete)):(this.addBinding({key:"Backspace"},{collapsed:!0,prefix:/^.?$/},this.handleBackspace),this.addBinding({key:"Delete"},{collapsed:!0,suffix:/^.?$/},this.handleDelete)),this.addBinding({key:"Backspace"},{collapsed:!1},this.handleDeleteRange),this.addBinding({key:"Delete"},{collapsed:!1},this.handleDeleteRange),this.addBinding({key:"Backspace",altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},this.handleBackspace),this.listen()}addBinding(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=function xh(s){if("string"==typeof s||"number"==typeof s)s={key:s};else{if("object"!=typeof s)return null;s=Jn(s)}return s.shortKey&&(s[Nh]=s.shortKey,delete s.shortKey),s}(e);null!=r?("function"==typeof t&&(t={handler:t}),"function"==typeof n&&(n={handler:n}),(Array.isArray(r.key)?r.key:[r.key]).forEach(o=>{const a={...r,key:o,...t,...n};this.bindings[a.key]=this.bindings[a.key]||[],this.bindings[a.key].push(a)})):Th.warn("Attempted to add invalid keyboard binding",r)}listen(){this.quill.root.addEventListener("keydown",e=>{if(e.defaultPrevented||e.isComposing||229===e.keyCode&&("Enter"===e.key||"Backspace"===e.key))return;const r=(this.bindings[e.key]||[]).concat(this.bindings[e.which]||[]).filter(Z=>tr.match(e,Z));if(0===r.length)return;const i=y.find(e.target,!0);if(i&&i.scroll!==this.quill.scroll)return;const o=this.quill.getSelection();if(null==o||!this.quill.hasFocus())return;const[a,u]=this.quill.getLine(o.index),[d,v]=this.quill.getLeaf(o.index),[L,O]=0===o.length?[d,v]:this.quill.getLeaf(o.index+o.length),W=d instanceof $s?d.value().slice(0,v):"",Y=L instanceof $s?L.value().slice(O):"",at={collapsed:0===o.length,empty:0===o.length&&a.length()<=1,format:this.quill.getFormat(o),line:a,offset:u,prefix:W,suffix:Y,event:e};r.some(Z=>{if(null!=Z.collapsed&&Z.collapsed!==at.collapsed||null!=Z.empty&&Z.empty!==at.empty||null!=Z.offset&&Z.offset!==at.offset)return!1;if(Array.isArray(Z.format)){if(Z.format.every(qt=>null==at.format[qt]))return!1}else if("object"==typeof Z.format&&!Object.keys(Z.format).every(qt=>!0===Z.format[qt]?null!=at.format[qt]:!1===Z.format[qt]?null==at.format[qt]:wr(Z.format[qt],at.format[qt])))return!1;return!(null!=Z.prefix&&!Z.prefix.test(at.prefix)||null!=Z.suffix&&!Z.suffix.test(at.suffix))&&!0!==Z.handler.call(this,o,at,Z)})&&e.preventDefault()})}handleBackspace(e,t){const n=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(t.prefix)?2:1;if(0===e.index||this.quill.getLength()<=1)return;let r={};const[i]=this.quill.getLine(e.index);let o=(new S).retain(e.index-n).delete(n);if(0===t.offset){const[a]=this.quill.getLine(e.index-1);if(a&&!("block"===a.statics.blotName&&a.length()<=1)){const d=i.formats(),v=this.quill.getFormat(e.index-1,1);if(r=S.AttributeMap.diff(d,v)||{},Object.keys(r).length>0){const L=(new S).retain(e.index+i.length()-2).retain(1,r);o=o.compose(L)}}}this.quill.updateContents(o,y.sources.USER),this.quill.focus()}handleDelete(e,t){const n=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(t.suffix)?2:1;if(e.index>=this.quill.getLength()-n)return;let r={};const[i]=this.quill.getLine(e.index);let o=(new S).retain(e.index).delete(n);if(t.offset>=i.length()-1){const[a]=this.quill.getLine(e.index+1);if(a){const u=i.formats(),d=this.quill.getFormat(e.index,1);r=S.AttributeMap.diff(u,d)||{},Object.keys(r).length>0&&(o=o.retain(a.length()-1).retain(1,r))}}this.quill.updateContents(o,y.sources.USER),this.quill.focus()}handleDeleteRange(e){Hr({range:e,quill:this.quill}),this.quill.focus()}handleEnter(e,t){const n=Object.keys(t.format).reduce((i,o)=>(this.quill.scroll.query(o,D.BLOCK)&&!Array.isArray(t.format[o])&&
vendor: 5,202 bytes, line 1
1(i[o]=t.format[o]),i),{}),r=(new S).retain(e.index).delete(e.length).insert("\n",n);this.quill.updateContents(r,y.sources.USER),this.quill.setSelection(e.index+1,y.sources.SILENT),this.quill.focus()}}const wh={bindings:{bold:Fr("bold"),italic:Fr("italic"),underline:Fr("underline"),indent:{key:"Tab",format:["blockquote","indent","list"],handler(s,e){return!(!e.collapsed||0===e.offset)||(this.quill.format("indent","+1",y.sources.USER),!1)}},outdent:{key:"Tab",shiftKey:!0,format:["blockquote","indent","list"],handler(s,e){return!(!e.collapsed||0===e.offset)||(this.quill.format("indent","-1",y.sources.USER),!1)}},"outdent backspace":{key:"Backspace",collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler(s,e){null!=e.format.indent?this.quill.format("indent","-1",y.sources.USER):null!=e.format.list&&this.quill.format("list",!1,y.sources.USER)}},"indent code-block":rl(!0),"outdent code-block":rl(!1),"remove tab":{key:"Tab",shiftKey:!0,collapsed:!0,prefix:/\t$/,handler(s){this.quill.deleteText(s.index-1,1,y.sources.USER)}},tab:{key:"Tab",handler(s,e){if(e.format.table)return!0;this.quill.history.cutoff();const t=(new S).retain(s.index).delete(s.length).insert("\t");return this.quill.updateContents(t,y.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(s.index+1,y.sources.SILENT),!1}},"blockquote empty enter":{key:"Enter",collapsed:!0,format:["blockquote"],empty:!0,handler(){this.quill.format("blockquote",!1,y.sources.USER)}},"list empty enter":{key:"Enter",collapsed:!0,format:["list"],empty:!0,handler(s,e){const t={list:!1};e.format.indent&&(t.indent=!1),this.quill.formatLine(s.index,s.length,t,y.sources.USER)}},"checklist enter":{key:"Enter",collapsed:!0,format:{list:"checked"},handler(s){const[e,t]=this.quill.getLine(s.index),n={...e.formats(),list:"checked"},r=(new S).retain(s.index).insert("\n",n).retain(e.length()-t-1).retain(1,{list:"unchecked"});this.quill.updateContents(r,y.sources.USER),this.quill.setSelection(s.index+1,y.sources.SILENT),this.quill.scrollSelectionIntoView()}},"header enter":{key:"Enter",collapsed:!0,format:["header"],suffix:/^$/,handler(s,e){const[t,n]=this.quill.getLine(s.index),r=(new S).retain(s.index).insert("\n",e.format).retain(t.length()-n-1).retain(1,{header:null});this.quill.updateContents(r,y.sources.USER),this.quill.setSelection(s.index+1,y.sources.SILENT),this.quill.scrollSelectionIntoView()}},"table backspace":{key:"Backspace",format:["table"],collapsed:!0,offset:0,handler(){}},"table delete":{key:"Delete",format:["table"],collapsed:!0,suffix:/^$/,handler(){}},"table enter":{key:"Enter",shiftKey:null,format:["table"],handler(s){const e=this.quill.getModule("table");if(e){const[t,n,r,i]=e.getTable(s),o=function Lh(s,e,t,n){return null==e.prev&&null==e.next?null==t.prev&&null==t.next?0===n?-1:1:null==t.prev?-1:1:null==e.prev?-1:null==e.next?1:null}(0,n,r,i);if(null==o)return;let a=t.offset();if(o<0){const u=(new S).retain(a).insert("\n");this.quill.updateContents(u,y.sources.USER),this.quill.setSelection(s.index+1,s.length,y.sources.SILENT)}else if(o>0){a+=t.length();const u=(new S).retain(a).insert("\n");this.quill.updateContents(u,y.sources.USER),this.quill.setSelection(a,y.sources.USER)}}}},"table tab":{key:"Tab",shiftKey:null,format:["table"],handler(s,e){const{event:t,line:n}=e,r=n.offset(this.quill.scroll);this.quill.setSelection(t.shiftKey?r-1:r+n.length(),y.sources.USER)}},"list autofill":{key:" ",shiftKey:null,collapsed:!0,format:{"code-block":!1,blockquote:!1,table:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler(s,e){if(null==this.quill.scroll.query("list"))return!0;const{length:t}=e.prefix,[n,r]=this.quill.getLine(s.index);if(r>t)return!0;let i;switch(e.prefix.trim()){case"[]":case"[ ]":i="unchecked";break;case"[x]":i="checked";break;case"-":case"*":i="bullet";break;default:i="ordered"}this.quill.insertText(s.index," ",y.sources.USER),this.quill.history.cutoff();const o=(new S).retain(s.index-r).delete(t+1).retain(n.length()-2-r).retain(1,{list:i});return this.quill.updateContents(o,y.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(s.index-t,y.sources.SILENT),!1}},"code exit":{key:"Enter",collapsed:!0,format:["code-block"],prefix:/^$/,suffix:/^\s*$/,handler(s){const[e,t]=this.quill.getLine(s.index);let n=2,r=e;for(;null!=r&&r.length()<=1&&r.formats()["code-block"];)if(r=r.prev,n-=1,n<=0){const i=(new S).retain(s.index+e.length()-t-2).retain(1,{"code-block":null}).delete(1);return this.quill.updateContents(i,y.sources.USER),this.quill.setSelection(s.index-1,y.sources.SILENT),!1}return!0}},"embed left":er("ArrowLeft",!1),"embed left shift":er("ArrowLeft",!0),"embed right":er("ArrowRight",!1),"embed right shift":er("ArrowRight",!0),"table down":il(!1),"table up":il(!0)}};function rl(s){return{key:"Tab",shiftKey:!s,format:{"code-block":!0},handler(e,t){let{event:n}=t;const r=this.quill.scroll.query("code-block"),{TAB:i}=r;if(0===e.length&&!n.shiftKey)return this.quill.insertText(e.index,i,y.sources.USER),void this.quill.setSelection(e.index+i.length,y.sources.SILENT);const o=0===e.length?this.quill.getLines(e.index,1):this.quill.getLines(e);let{index:a,length:u}=e;o.forEach((d,v)=>
1{s?(d.insertAt(0,i),0===v?a+=i.length:u+=i.length):d.domNode.textContent.startsWith(i)&&(d.deleteAt(0,i.length),0===v?a-=i.length:u-=i.length)}),this.quill.update(y.sources.USER),this.quill.setSelection(a,u,y.sources.SILENT)}}}function er(s,e){return{key:s,shiftKey:e,altKey:null,["ArrowLeft"===s?"prefix":"suffix"]:/^$/,handler(n){let{index:r}=n;"ArrowRight"===s&&(r+=n.length+1);const[i]=this.quill.getLeaf(r);return!(i instanceof Qt&&("ArrowLeft"===s?e?this.quill.setSelection(n.index-1,n.length+1,y.sources.USER):this.quill.setSelection(n.index-1,y.sources.USER):e?this.quill.setSelection(n.index,n.length+1,y.sources.USER):this.quill.setSelection(n.index+n.length+1,y.sources.USER),1))}}}function Fr(s){return{key:s[0],shortKey:!0,handler(e,t){this.quill.format(s,!t.format[s],y.sources.USER)}}}function il(s){return{key:s?"ArrowUp":"ArrowDown",collapsed:!0,format:["table"],handler(e,t){const n=s?"prev":"next",r=t.line,i=r.parent[n];if(null!=i){if("table-row"===i.statics.blotName){let o=i.children.head,a=r;for(;null!=a.prev;)a=a.prev,o=o.next;const u=o.offset(this.quill.scroll)+Math.min(t.offset,o.length()-1);this.quill.setSelection(u,0,y.sources.USER)}}else{const o=r.table()[n];null!=o&&this.quill.setSelection(s?o.offset(this.quill.scroll)+o.length()-1:o.offset(this.quill.scroll),0,y.sources.USER)}return!1}}}function Hr(s){let{quill:e,range:t}=s;const n=e.getLines(t);let r={};if(n.length>1){const i=n[0].formats(),o=n[n.length-1].formats();r=S.AttributeMap.diff(o,i)||{}}e.deleteText(t,y.sources.USER),Object.keys(r).length>0&&e.formatLine(t.index,1,r,y.sources.USER),e.setSelection(t.index,y.sources.SILENT)}tr.DEFAULTS=wh;const Ch=/font-weight:\s*normal/,Sh=["P","OL","UL"],ll=s=>s&&Sh.includes(s.tagName),kh=/\bmso-list:[^;]*ignore/i,Rh=/\bmso-list:[^;]*\bl(\d+)/i,Bh=/\bmso-list:[^;]*\blevel(\d+)/i,jh=[function Ph(s){"urn:schemas-microsoft-com:office:word"===s.documentElement.getAttribute("xmlns:w")&&(s=>{const e=Array.from(s.querySelectorAll("[style*=mso-list]")),t=[],n=[];e.forEach(o=>{(o.getAttribute("style")||"").match(kh)?t.push(o):n.push(o)}),t.forEach(o=>o.parentNode?.removeChild(o));const r=s.documentElement.innerHTML,i=n.map(o=>((s,e)=>{const t=s.getAttribute("style"),n=t?.match(Rh);if(!n)return null;const r=Number(n[1]),i=t?.match(Bh),o=i?Number(i[1]):1,a=new RegExp(`@list l${r}:level${o}\\s*\\{[^\\}]*mso-level-number-format:\\s*([\\w-]+)`,"i"),u=e.match(a);return{id:r,indent:o,type:u&&"bullet"===u[1]?"bullet":"ordered",element:s}})(o,r)).filter(o=>o);for(;i.length;){const o=[];let a=i.shift();for(;a;)o.push(a),a=i.length&&i[0]?.element===a.element.nextElementSibling&&i[0].id===a.id?i.shift():null;const u=document.createElement("ul");o.forEach(L=>{const O=document.createElement("li");O.setAttribute("data-list",L.type),L.indent>1&&O.setAttribute("class","ql-indent-"+(L.indent-1)),O.innerHTML=L.element.innerHTML,u.appendChild(O)});const d=o[0]?.element,{parentNode:v}=d??{};d&&v?.replaceChild(u,d),o.slice(1).forEach(L=>{let{element:O}=L;v?.removeChild(O)})}})(s)},function Ih(s){s.querySelector('[id^="docs-internal-guid-"]')&&((s=>{Array.from(s.querySelectorAll('b[style*="font-weight"]')).filter(e=>e.getAttribute("style")?.match(Ch)).forEach(e=>{const t=s.createDocumentFragment();t.append(...e.childNodes),e.parentNode?.replaceChild(t,e)})})(s),(s=>{Array.from(s.querySelectorAll("br")).filter(e=>ll(e.previousElementSibling)&&ll(e.nextElementSibling)).forEach(e=>{e.parentNode?.removeChild(e)})})(s))}],Fh=An("quill:clipboard"),Hh=[[Node.TEXT_NODE,function ef(s,e,t){let n=s.data;if("O:P"===s.parentElement?.tagName)return e.insert(n.trim());if(!al(s)){if(0===n.trim().length&&n.includes("\n")&&!function Kh(s,e){return s.previousElementSibling&&s.nextElementSibling&&!Je(s.previousElementSibling,e)&&!Je(s.nextElementSibling,e)}(s,t))return e;n=n.replace(/[^\S\u00a0]/g," "),n=n.replace(/ {2,}/g," "),(null==s.previousSibling&&null!=s.parentElement&&Je(s.parentElement,t)||s.previousSibling instanceof Element&&Je(s.previousSibling,t))&&(n=n.replace(/^ /,"")),(null==s.nextSibling&&null!=s.parentElement&&Je(s.parentElement,t)||s.nextSibling instanceof Element&&Je(s.nextSibling,t))&&(n=n.replace(/ $/,"")),n=n.replaceAll("\xa0"," ")}return e.insert(n)}],[Node.TEXT_NODE,cl],["br",function Wh(s,e){return Rs(e,"\n")||e.insert("\n"),e}],[Node.ELEMENT_NODE,cl],[Node.ELEMENT_NODE,function Vh(s,e,t){const n=t.query(s);if(null==n)return e;if(n.prototype instanceof Qt){const r={},i=n.value(s);if(null!=i)return r[n.blotName]=i,(new S).insert(r,n.formats(s,t))}else if(n.prototype instanceof Os&&!Rs(e,"\n")&&e.insert("\n"),"blotName"in n&&"formats"in n&&"function"==typeof n.formats)return wn(e,n.blotName,n.formats(s,t),t);return e}
1],[Node.ELEMENT_NODE,function Gh(s,e,t){const n=Ae.keys(s),r=fe.keys(s),i=Ye.keys(s),o={};return n.concat(r).concat(i).forEach(a=>{let u=t.query(a,D.ATTRIBUTE);null!=u&&(o[u.attrName]=u.value(s),o[u.attrName])||(u=$h[a],null!=u&&(u.attrName===a||u.keyName===a)&&(o[u.attrName]=u.value(s)||void 0),u=ol[a],null!=u&&(u.attrName===a||u.keyName===a)&&(u=ol[a],o[u.attrName]=u.value(s)||void 0))}),Object.entries(o).reduce((a,u)=>{let[d,v]=u;return wn(a,d,v,t)},e)}],[Node.ELEMENT_NODE,function Jh(s,e,t){const n={},r=s.style||{};return"italic"===r.fontStyle&&(n.italic=!0),"underline"===r.textDecoration&&(n.underline=!0),"line-through"===r.textDecoration&&(n.strike=!0),(r.fontWeight?.startsWith("bold")||parseInt(r.fontWeight,10)>=700)&&(n.bold=!0),e=Object.entries(n).reduce((i,o)=>{let[a,u]=o;return wn(i,a,u,t)},e),parseFloat(r.textIndent||0)>0?(new S).insert("\t").concat(e):e}],["li",function Yh(s,e,t){const n=t.query(s);if(null==n||"list"!==n.blotName||!Rs(e,"\n"))return e;let r=-1,i=s.parentNode;for(;null!=i;)["OL","UL"].includes(i.tagName)&&(r+=1),i=i.parentNode;return r<=0?e:e.reduce((o,a)=>a.insert?a.attributes&&"number"==typeof a.attributes.indent?o.push(a):o.insert(a.insert,{indent:r,...a.attributes||{}}):o,new S)}],["ol, ul",function Qh(s,e,t){let r="OL"===s.tagName?"ordered":"bullet";const i=s.getAttribute("data-checked");return i&&(r="true"===i?"checked":"unchecked"),wn(e,"list",r,t)}],["pre",function Zh(s,e,t){const n=t.query("code-block");return wn(e,"code-block",!n||!("formats"in n)||"function"!=typeof n.formats||n.formats(s,t),t)}],["tr",function tf(s,e,t){const n="TABLE"===s.parentElement?.tagName?s.parentElement:s.parentElement?.parentElement;return null!=n?wn(e,"table",Array.from(n.querySelectorAll("tr")).indexOf(s)+1,t):e}],["b",zr("bold")],["i",zr("italic")],["strike",zr("strike")],["style",function Xh(){return new S}]],$h=[yh,Xi].reduce((s,e)=>(s[e.keyName]=e,s),{}),ol=[Wi,jr,Pr,Qi,el,sl].reduce((s,e)=>(s[e.keyName]=e,s),{});let zh=(()=>class s extends Ee{static DEFAULTS={matchers:[]};constructor(t,n){super(t,n),this.quill.root.addEventListener("copy",r=>this.onCaptureCopy(r,!1)),this.quill.root.addEventListener("cut",r=>this.onCaptureCopy(r,!0)),this.quill.root.addEventListener("paste",this.onCapturePaste.bind(this)),this.matchers=[],Hh.concat(this.options.matchers??[]).forEach(r=>{let[i,o]=r;this.addMatcher(i,o)})}addMatcher(t,n){this.matchers.push([t,n])}convert(t){let{html:n,text:r}=t,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(i[zt.blotName])return(new S).insert(r||"",{[zt.blotName]:i[zt.blotName]});if(!n)return(new S).insert(r||"",i);const o=this.convertHTML(n);return Rs(o,"\n")&&(null==o.ops[o.ops.length-1].attributes||i.table)?o.compose((new S).retain(o.length()-1).delete(1)):o}normalizeHTML(t){(s=>
1{s.documentElement&&jh.forEach(e=>{e(s)})})(t)}convertHTML(t){const n=(new DOMParser).parseFromString(t,"text/html");this.normalizeHTML(n);const r=n.body,i=new WeakMap,[o,a]=this.prepareMatching(r,i);return $r(this.quill.scroll,r,o,a,i)}dangerouslyPasteHTML(t,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:y.sources.API;if("string"==typeof t){const i=this.convert({html:t,text:""});this.quill.setContents(i,n),this.quill.setSelection(0,y.sources.SILENT)}else{const i=this.convert({html:n,text:""});this.quill.updateContents((new S).retain(t).concat(i),r),this.quill.setSelection(t+i.length(),y.sources.SILENT)}}onCaptureCopy(t){let n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(t.defaultPrevented)return;t.preventDefault();const[r]=this.quill.selection.getRange();if(null==r)return;const{html:i,text:o}=this.onCopy(r,n);t.clipboardData?.setData("text/plain",o),t.clipboardData?.setData("text/html",i),n&&Hr({range:r,quill:this.quill})}normalizeURIList(t){return t.split(/\r?\n/).filter(n=>"#"!==n[0]).join("\n")}onCapturePaste(t){if(t.defaultPrevented||!this.quill.isEnabled())return;t.preventDefault();const n=this.quill.getSelection(!0);if(null==n)return;const r=t.clipboardData?.getData("text/html");let i=t.clipboardData?.getData("text/plain");if(!r&&!i){const a=t.clipboardData?.getData("text/uri-list");a&&(i=this.normalizeURIList(a))}const o=Array.from(t.clipboardData?.files||[]);if(!r&&o.length>0)this.quill.uploader.upload(n,o);else{if(r&&o.length>0){const a=(new DOMParser).parseFromString(r,"text/html");if(1===a.body.childElementCount&&"IMG"===a.body.firstElementChild?.tagName)return void this.quill.uploader.upload(n,o)}this.onPaste(n,{html:r,text:i})}}onCopy(t){const n=this.quill.getText(t);return{html:this.quill.getSemanticHTML(t),text:n}}onPaste(t,n){let{text:r,html:i}=n;const o=this.quill.getFormat(t.index),a=this.convert({text:r,html:i},o);Fh.log("onPaste",a,{text:r,html:i});const u=(new S).retain(t.index).delete(t.length).concat(a);this.quill.updateContents(u,y.sources.USER),this.quill.setSelection(u.length()-t.length,y.sources.SILENT),this.quill.scrollSelectionIntoView()}prepareMatching(t,n){const r=[],i=[];return this.matchers.forEach(o=>{const[a,u]=o;switch(a){case Node.TEXT_NODE:i.push(u);break;case Node.ELEMENT_NODE:r.push(u);break;default:Array.from(t.querySelectorAll(a)).forEach(d=>{n.has(d)?n.get(d)?.push(u):n.set(d,[u])})}}),[r,i]}})();function wn(s,e,t,n){return n.query(e)?s.reduce((r,i)=>i.insert?i.attributes&&i.attributes[e]?r.push(i):r.insert(i.insert,{...t?{[e]:t}:{},...i.attributes}):r,new S):s}function Rs(s,e){let t="";for(let n=s.ops.length-1;n>=0&&t.length<e.length;--n){const r=s.ops[n];if("string"!=typeof r.insert)break;t=r.insert+t}return t.slice(-1*e.length)===e}function Je(s,e){if(!(s instanceof Element))return!1;const t=e.query(s);return!(t&&t.prototype instanceof Qt)&&["address","article","blockquote","canvas","dd","div","dl","dt","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","iframe","li","main","nav","ol","output","p","pre","section","table","td","tr","ul","video"].includes(s.tagName.toLowerCase())}const nr=new WeakMap;function al(s){return null!=s&&(nr.has(s)||nr.set(s,"PRE"===s.tagName||al(s.parentNode)),nr.get(s))}function $r(s,e,t,n,r){return e.nodeType===e.TEXT_NODE?n.reduce((i,o)=>o(e,i,s),new S):e.nodeType===e.ELEMENT_NODE?Array.from(e.childNodes||[]).reduce((i,o)=>{let a=$r(s,o,t,n,r);return o.nodeType===e.ELEMENT_NODE&&(a=t.reduce((u,d)=>d(o,u,s),a),a=(r.get(o)||[]).reduce((u,d)=>d(o,u,s),a)),i.concat(a)},new S):new S}function zr(s){return(e,t,n)=>wn(t,s,!0,n)}function cl(s,e,t){if(!Rs(e,"\n")){if(Je(s,t)&&(s.childNodes.length>0||s instanceof HTMLParagraphElement))return e.insert("\n");if(e.length()>0&&s.nextSibling){let n=s.nextSibling;for(;null!=n;){if(Je(n,t))return e.insert("\n");const r=t.query(n);if(r&&r.prototype instanceof le)return e.insert("\n");n=n.firstChild}}}return e}let nf=(()=>class s extends Ee{static DEFAULTS={delay:1e3,maxStack:100,userOnly:!1};lastRecorded=0;ignoreChange=!1;stack={undo:[],redo:[]};currentRange=null;constructor(t,n){super(t,n),this.quill.on(y.events.EDITOR_CHANGE,(r,i,o,a)=>{r===y.events.SELECTION_CHANGE?i&&a!==y.sources.SILENT&&(this.currentRange=i):r===y.events.TEXT_CHANGE&&(this.ignoreChange||(this.options.userOnly&&a!==y.sources.USER?this.transform(i):this.record(i,o)),this.currentRange=Kr(this.currentRange,i))}),this.quill.keyboard.addBinding({key:"z",shortKey:!0},this.undo.bind(this)),this.quill.keyboard.addBinding({key:["z","Z"],shortKey:!0,shiftKey:!0},this.redo.bind(this)),/Win/i.test(navigator.platform)&&this.quill.keyboard.addBinding({key:"y",shortKey:!0},this.redo.bind(this)),this.quill.root.addEventListener("beforeinput",r=>{"historyUndo"===r.inputType?(this.undo(),r.preventDefault()):"historyRedo"===r.inputType&&(this.redo(),r.preventDefault())})}change(t,n){if(0===this.stack[t].length)return;const r=this.stack[t].pop();if(!r)return;const i=this.quill.getContents(),o=r.delta.invert(i);this.stack[n].push({delta:o,range:Kr(r.range,o)}),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(r.delta,y.sources.USER),this.ignoreChange=!1,this.restoreSelection(r)}clear(){this.stack={undo:[],redo:[]}}cutoff(){this.lastRecorded=0}record(t,n){if(0===t.ops.length)return;this.stack.redo=[];let r=t.invert(n),i=this.currentRange;const o=Date.now();if(this.lastRecorded+this.options.delay>o&&this.stack.undo.length>0){const a=this.stack.undo.pop();a&&(r=r.compose(a.delta),i=a.range)}else this.lastRecorded=o;0!==r.length()&&(this.stack.undo.push({delta:r,range:i}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift())}redo(){this.change("redo","undo")}transform(t){ul(this.stack.undo,t),ul(this.stack.redo,t)}undo(){this.change("undo","redo")}restoreSelection(t){if(t.range)this.quill.setSelection(t.range,y.sources.USER);else{const n=function rf(s,e){const t=e.reduce((r,i)=>r+(i.delete||0),0);let n=e.length()-t;
1return function sf(s,e){const t=e.ops[e.ops.length-1];return null!=t&&(null!=t.insert?"string"==typeof t.insert&&t.insert.endsWith("\n"):null!=t.attributes&&Object.keys(t.attributes).some(n=>null!=s.query(n,D.BLOCK)))}(s,e)&&(n-=1),n}(this.quill.scroll,t.delta);this.quill.setSelection(n,y.sources.USER)}}})();function ul(s,e){let t=e;for(let n=s.length-1;n>=0;n-=1){const r=s[n];s[n]={delta:t.transform(r.delta,!0),range:r.range&&Kr(r.range,t)},t=r.delta.transform(t),0===s[n].delta.length()&&s.splice(n,1)}}function Kr(s,e){if(!s)return s;const t=e.transformPosition(s.index);return{index:t,length:e.transformPosition(s.index+s.length)-t}}const lf=(()=>{class s extends Ee{constructor(t,n){super(t,n),t.root.addEventListener("drop",r=>{r.preventDefault();let i=null;if(document.caretRangeFromPoint)i=document.caretRangeFromPoint(r.clientX,r.clientY);else if(document.caretPositionFromPoint){const a=document.caretPositionFromPoint(r.clientX,r.clientY);i=document.createRange(),i.setStart(a.offsetNode,a.offset),i.setEnd(a.offsetNode,a.offset)}const o=i&&t.selection.normalizeNative(i);if(o){const a=t.selection.normalizedToRange(o);r.dataTransfer?.files&&this.upload(a,r.dataTransfer.files)}})}upload(t,n){const r=[];Array.from(n).forEach(i=>{i&&this.options.mimetypes?.includes(i.type)&&r.push(i)}),r.length>0&&this.options.handler.call(this,t,r)}}return s.DEFAULTS={mimetypes:["image/png","image/jpeg"],handler(e,t){if(!this.quill.scroll.query("image"))return;const n=t.map(r=>new Promise(i=>{const o=new FileReader;o.onload=()=>{i(o.result)},o.readAsDataURL(r)}));Promise.all(n).then(r=>{const i=r.reduce((o,a)=>o.insert({image:a}),(new S).retain(e.index).delete(e.length));this.quill.updateContents(i,B.sources.USER),this.quill.setSelection(e.index+r.length,B.sources.SILENT)})}},s})(),of=["insertText","insertReplacementText"],hf=/Mac/i.test(navigator.platform);y.register({"blots/block":Jt,"blots/block/embed":le,"blots/break":Ie,"blots/container":Tn,"blots/cursor":Zs,"blots/embed":Rr,"blots/inline":Qe,"blots/scroll":bh,"blots/text":ge,"modules/clipboard":zh,"modules/history":nf,"modules/keyboard":tr,"modules/uploader":lf,"modules/input":class af extends Ee{constructor(e,t){super(e,t),e.root.addEventListener("beforeinput",n=>{this.handleBeforeInput(n)}),/Android/i.test(navigator.userAgent)||e.on(y.events.COMPOSITION_BEFORE_START,()=>{this.handleCompositionStart()})}deleteRange(e){Hr({range:e,quill:this.quill})}replaceText(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(0===e.length)return!1;if(t){const n=this.quill.getFormat(e.index,1);this.deleteRange(e),this.quill.updateContents((new S).retain(e.index).insert(t,n),y.sources.USER)}else this.deleteRange(e);return this.quill.setSelection(e.index+t.length,0,y.sources.SILENT),!0}handleBeforeInput(e){if(this.quill.composition.isComposing||e.defaultPrevented||!of.includes(e.inputType))return;const t=e.getTargetRanges?e.getTargetRanges()[0]:null;if(!t||!0===t.collapsed)return;const n=function cf(s){return"string"==typeof s.data?s.data:s.dataTransfer?.types.includes("text/plain")?s.dataTransfer.getData("text/plain"):null}(e);if(null==n)return;const r=this.quill.selection.normalizeNative(t),i=r?this.quill.selection.normalizedToRange(r):null;i&&this.replaceText(i,n)&&e.preventDefault()}handleCompositionStart(){const e=this.quill.getSelection();e&&this.replaceText(e)}},"modules/uiNode":class gf extends Ee{isListening=!1;selectionChangeDeadline=0;constructor(e,t){super(e,t),this.handleArrowKeys(),this.handleNavigationShortcuts()}handleArrowKeys(){this.quill.keyboard.addBinding({key:["ArrowLeft","ArrowRight"],offset:0,shiftKey:null,handler(e,t){let{line:n,event:r}=t;if(!(n instanceof de&&n.uiNode))return!0;const i="rtl"===getComputedStyle(n.domNode).direction;return!!(i&&"ArrowRight"!==r.key||!i&&"ArrowLeft"!==r.key)||(this.quill.setSelection(e.index-1,e.length+(r.shiftKey?1:0),y.sources.USER),!1)}})}handleNavigationShortcuts(){this.quill.root.addEventListener("keydown",e=>{!e.defaultPrevented&&(s=>!!("ArrowLeft"===s.key||"ArrowRight"===s.key||"ArrowUp"===s.key||"ArrowDown"===s.key||"Home"===s.key||hf&&"a"===s.key&&!0===s.ctrlKey))(e)&&this.ensureListeningToSelectionChange()})}ensureListeningToSelectionChange(){this.selectionChangeDeadline=Date.now()+100,this.isListening||(this.isListening=!0,document.addEventListener("selectionchange",()=>{this.isListening=!1,Date.now()<=this.selectionChangeDeadline&&this.handleSelectionChange()},{once:!0}))}handleSelectionChange(){const e=document.getSelection();if(!e)return;const t=e.getRangeAt(0);if(!0!==t.collapsed||0!==t.startOffset)return;const n=this.quill.scroll.find(t.startContainer);if(!(n instanceof de&&n.uiNode))return;const r=document.createRange();r.setStartAfter(n.uiNode),r.setEndAfter(n.uiNode),e.removeAllRanges(),e.addRange(r)}}});const Gr=y,bf=new class mf extends fe{add(e,t){let n=0;if("+1"===t||"-1"===t){const r=this.value(e)||0;n="+1"===t?r+1:r-1}else"number"==typeof t&&(n=t);return 0===n?(this.remove(e),!0):super.add(e,n.toString())}canAdd(e,t){return super.canAdd(e,t)||super.canAdd(e,parseInt(t,10))}value(e){return parseInt(super.value(e),10)||void 0}}("indent","ql-indent",{scope:D.BLOCK,whitelist:[1,2,3,4,5,6,7,8]}),yf=(()=>class s extends Jt{static blotName="blockquote";static tagName="blockquote"})(),vf=(()=>class s extends Jt{static blotName="header";static tagName=["H1","H2","H3","H4","H5","H6"];static formats(t){return this.tagName.indexOf(t.tagName)+1}})();let Vr=(()=>{class s extends Tn{}return s.blotName="list-container",s.tagName="OL",s})(),Wr=(()=>{class s extends Jt{static create(t){const n=super.create();return n.setAttribute("data-list",t),n}static formats(t){return t.getAttribute("data-list")||void 0}static register(){y.register(Vr)}constructor(t,n){super(t,n);const r=n.ownerDocument.createElement("span"),i=o=>
1{if(!t.isEnabled())return;const a=this.statics.formats(n,t);"checked"===a?(this.format("list","unchecked"),o.preventDefault()):"unchecked"===a&&(this.format("list","checked"),o.preventDefault())};r.addEventListener("mousedown",i),r.addEventListener("touchstart",i),this.attachUI(r)}format(t,n){t===this.statics.blotName&&n?this.domNode.setAttribute("data-list",n):super.format(t,n)}}return s.blotName="list",s.tagName="LI",s})();Vr.allowedChildren=[Wr],Wr.requiredContainer=Vr;const Zr=(()=>class s extends Qe{static blotName="bold";static tagName=["STRONG","B"];static create(){return super.create()}static formats(){return!0}optimize(t){super.optimize(t),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}})(),_f=(()=>class s extends Zr{static blotName="italic";static tagName=["EM","I"]})();let sr=(()=>class s extends Qe{static blotName="link";static tagName="A";static SANITIZED_URL="about:blank";static PROTOCOL_WHITELIST=["http","https","mailto","tel","sms"];static create(t){const n=super.create(t);return n.setAttribute("href",this.sanitize(t)),n.setAttribute("rel","noopener noreferrer"),n.setAttribute("target","_blank"),n}static formats(t){return t.getAttribute("href")}static sanitize(t){return hl(t,this.PROTOCOL_WHITELIST)?t:this.SANITIZED_URL}format(t,n){t===this.statics.blotName&&n?this.domNode.setAttribute("href",this.constructor.sanitize(n)):super.format(t,n)}})();function hl(s,e){const t=document.createElement("a");t.href=s;const n=t.href.slice(0,t.href.indexOf(":"));return e.indexOf(n)>-1}const Af=(()=>class s extends Qe{static blotName="script";static tagName=["SUB","SUP"];static create(t){return"super"===t?document.createElement("sup"):"sub"===t?document.createElement("sub"):super.create(t)}static formats(t){return"SUB"===t.tagName?"sub":"SUP"===t.tagName?"super":void 0}})(),Ef=(()=>class s extends Zr{static blotName="strike";static tagName=["S","STRIKE"]})(),Tf=(()=>class s extends Qe{static blotName="underline";static tagName="U"})(),Nf=(()=>class s extends Rr{static blotName="formula";static className="ql-formula";static tagName="SPAN";static create(t){if(null==window.katex)throw new Error("Formula module requires KaTeX.");const n=super.create(t);return"string"==typeof t&&(window.katex.render(t,n,{throwOnError:!1,errorColor:"#f00"}),n.setAttribute("data-value",t)),n}static value(t){return t.getAttribute("data-value")}html(){const{formula:t}=this.value();return`<span>${t}</span>`}})(),fl=["alt","height","width"],wf=(()=>class s extends Qt{static blotName="image";static tagName="IMG";static create(t){const n=super.create(t);return"string"==typeof t&&n.setAttribute("src",this.sanitize(t)),n}static formats(t){return fl.reduce((n,r)=>(t.hasAttribute(r)&&(n[r]=t.getAttribute(r)),n),{})}static match(t){return/\.(jpe?g|gif|png)$/.test(t)||/^data:image\/.+;base64/.test(t)}static sanitize(t){return hl(t,["http","https","data"])?t:"//:0"}static value(t){return t.getAttribute("src")}format(t,n){fl.indexOf(t)>-1?n?this.domNode.setAttribute(t,n):this.domNode.removeAttribute(t):super.format(t,n)}})(),dl=["height","width"],xf=(()=>class s extends le{static blotName="video";static className="ql-video";static tagName="IFRAME";static create(t){const n=super.create(t);return n.setAttribute("frameborder","0"),n.setAttribute("allowfullscreen","true"),n.setAttribute("src",this.sanitize(t)),n}static formats(t){return dl.reduce((n,r)=>(t.hasAttribute(r)&&(n[r]=t.getAttribute(r)),n),{})}static sanitize(t){return sr.sanitize(t)}static value(t){return t.getAttribute("src")}format(t,n){dl.indexOf(t)>-1?n?this.domNode.setAttribute(t,n):this.domNode.removeAttribute(t):super.format(t,n)}html(){const{video:t}=this.value();return`<a href="${t}">${t}</a>`}})(),Bs=new fe("code-token","hljs",{scope:D.INLINE});let Ms=(()=>{class s extends Qe{static formats(t,n){for(;null!=t&&t!==n.domNode;){if(t.classList&&t.classList.contains(zt.className))return super.formats(t,n);t=t.parentNode}}constructor(t,n,r){super(t,n,r),Bs.add(this.domNode,r)}format(t,n){t!==s.blotName?super.format(t,n):n?Bs.add(this.domNode,n):(Bs.remove(this.domNode),this.domNode.classList.remove(this.statics.className))}optimize(){super.optimize(...arguments),Bs.value(this.domNode)||this.unwrap()}}return s.blotName="code-token",s.className="ql-token",s})();class ae extends zt{static create(e){const t=super.create(e);return"string"==typeof e&&t.setAttribute("data-language",e),t}static formats(e){return e.getAttribute("data-language")||"plain"}static register(){}format(e,t){e===this.statics.blotName&&t?this.domNode.setAttribute("data-language",t):super.format(e,t)}replaceWith(e,t){return this.formatAt(0,this.length(),Ms.blotName,!1),super.replaceWith(e,t)}}let rr=(()=>{class s extends Nn{attach(){super.attach(),this.forceNext=!1,this.scroll.emitMount(this)}format(t,n){t===ae.blotName&&(this.forceNext=!0,this.children.forEac
vendor: 1,734 bytes, line 1
1h(r=>{r.format(t,n)}))}formatAt(t,n,r,i){r===ae.blotName&&(this.forceNext=!0),super.formatAt(t,n,r,i)}highlight(t){let n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(null==this.children.head)return;const i=`${Array.from(this.domNode.childNodes).filter(a=>a!==this.uiNode).map(a=>a.textContent).join("\n")}\n`,o=ae.formats(this.children.head.domNode);if(n||this.forceNext||this.cachedText!==i){if(i.trim().length>0||null==this.cachedText){const a=this.children.reduce((d,v)=>d.concat(Di(v,!1)),new S),u=t(i,o);a.diff(u).reduce((d,v)=>{let{retain:L,attributes:O}=v;return L?(O&&Object.keys(O).forEach(W=>{[ae.blotName,Ms.blotName].includes(W)&&this.formatAt(d,L,W,O[W])}),d+L):d},0)}this.cachedText=i,this.forceNext=!1}}html(t,n){const[r]=this.children.find(t);return`<pre data-language="${r?ae.formats(r.domNode):"plain"}">\n${Ws(this.code(t,n))}\n</pre>`}optimize(t){if(super.optimize(t),null!=this.parent&&null!=this.children.head&&null!=this.uiNode){const n=ae.formats(this.children.head.domNode);n!==this.uiNode.value&&(this.uiNode.value=n)}}}return s.allowedChildren=[ae],s})();ae.requiredContainer=rr,ae.allowedChildren=[Ms,Zs,ge,Ie];class gl extends Ee{static register(){y.register(Ms,!0),y.register(ae,!0),y.register(rr,!0)}constructor(e,t){if(super(e,t),null==this.options.hljs)throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");this.languages=this.options.languages.reduce((n,r)=>{let{key:i}=r;return n[i]=!0,n},{}),this.highlightBlot=this.highlightBlot.bind(this),this.initListener(),this.initTimer()}initListener(){this.quill.on(y.events.SCROLL_BLOT_MOUNT,e=>{if(!(e instanceof rr))return;const t=this.quill.root.ownerDocument.createElement("select");
1this.options.languages.forEach(n=>{let{key:r,label:i}=n;const o=t.ownerDocument.createElement("option");o.textContent=i,o.setAttribute("value",r),t.appendChild(o)}),t.addEventListener("change",()=>{e.format(ae.blotName,t.value),this.quill.root.focus(),this.highlight(e,!0)}),null==e.uiNode&&(e.attachUI(t),e.children.head&&(t.value=ae.formats(e.children.head.domNode)))})}initTimer(){let e=null;this.quill.on(y.events.SCROLL_OPTIMIZE,()=>{e&&clearTimeout(e),e=setTimeout(()=>{this.highlight(),e=null},this.options.interval)})}highlight(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(this.quill.selection.composing)return;this.quill.update(y.sources.USER);const n=this.quill.getSelection();(null==e?this.quill.scroll.descendants(rr):[e]).forEach(i=>{i.highlight(this.highlightBlot,t)}),this.quill.update(y.sources.SILENT),null!=n&&this.quill.setSelection(n,y.sources.SILENT)}highlightBlot(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"plain";if(t=this.languages[t]?t:"plain","plain"===t)return Ws(e).split("\n").reduce((r,i,o)=>(0!==o&&r.insert("\n",{[zt.blotName]:t}),r.insert(i)),new S);const n=this.quill.root.ownerDocument.createElement("div");return n.classList.add(zt.className),n.innerHTML=((s,e,t)=>{if("string"==typeof s.versionString){const n=s.versionString.split(".")[0];if(parseInt(n,10)>=11)return s.highlight(t,{language:e}).value}return s.highlight(e,t).value})(this.options.hljs,t,e),$r(this.quill.scroll,n,[(r,i)=>{const o=Bs.value(r);return o?i.compose((new S).retain(i.length(),{[Ms.blotName]:o})):i}],[(r,i)=>r.data.split("\n").reduce((o,a,u)=>(0!==u&&o.insert("\n",{[zt.blotName]:t}),o.insert(a)),i)],new WeakMap)}}gl.DEFAULTS={hljs:window.hljs,interval:1e3,languages:[{key:"plain",label:"Plain"},{key:"bash",label:"Bash"},{key:"cpp",label:"C++"},{key:"cs",label:"C#"},{key:"css",label:"CSS"},{key:"diff",label:"Diff"},{key:"xml",label:"HTML/XML"},{key:"java",label:"Java"},{key:"javascript",label:"JavaScript"},{key:"markdown",label:"Markdown"},{key:"php",label:"PHP"},{key:"python",label:"Python"},{key:"ruby",label:"Ruby"},{key:"sql",label:"SQL"}]};let Re=(()=>{class s extends Jt{static blotName="table";static tagName="TD";static create(t){const n=super.create();return n.setAttribute("data-row",t||Yr()),n}static formats(t){if(t.hasAttribute("data-row"))return t.getAttribute("data-row")}cellOffset(){return this.parent?this.parent.children.indexOf(this):-1}format(t,n){t===s.blotName&&n?this.domNode.setAttribute("data-row",n):super.format(t,n)}row(){return this.parent}rowOffset(){return this.row()?this.row().rowOffset():-1}table(){return this.row()&&this.row().table()}}return s})(),xn=(()=>class s extends Tn{static blotName="table-row";static tagName="TR";checkMerge(){if(super.checkMerge()&&null!=this.next.children.head){const t=this.children.head.formats(),n=this.children.tail.formats(),r=this.next.children.head.formats(),i=this.next.children.tail.formats();return t.table===n.table&&t.table===r.table&&t.table===i.table}return!1}optimize(t){super.optimize(t),this.children.forEach(n=>{if(null==n.next)return;const r=n.formats(),i=n.next.formats();if(r.table!==i.table){const o=this.splitAfter(n);o&&o.optimize(),this.prev&&this.prev.optimize()}})}rowOffset(){return this.parent?this.parent.children.indexOf(this):-1}table(){return this.parent&&this.parent.parent}})(),tn=(()=>class s extends Tn{static blotName="table-body";static tagName="TBODY"})(),Xr=(()=>{class s extends Tn{static blotName="table-container";static tagName="TABLE";balanceCells(){const t=this.descendants(xn),n=t.reduce((r,i)=>Math.max(i.children.length,r),0);t.forEach(r=>{new Array(n-r.children.length).fill(0).forEach(()=>{let i;null!=r.children.head&&(i=Re.formats(r.children.head.domNode));const o=this.scroll.create(Re.blotName,i);r.appendChild(o),o.optimize()})})}cells(t){return this.rows().map(n=>n.children.at(t))}deleteColumn(t){const[n]=this.descendant(tn);null==n||null==n.children.head||n.children.forEach(r=>{const i=r.children.at(t);i?.remove()})}insertColumn(t){const[n]=this.descendant(tn);
1null==n||null==n.children.head||n.children.forEach(r=>{const i=r.children.at(t),o=Re.formats(r.children.head.domNode),a=this.scroll.create(Re.blotName,o);r.insertBefore(a,i)})}insertRow(t){const[n]=this.descendant(tn);if(null==n||null==n.children.head)return;const r=Yr(),i=this.scroll.create(xn.blotName);n.children.head.children.forEach(()=>{const a=this.scroll.create(Re.blotName,r);i.appendChild(a)});const o=n.children.at(t);n.insertBefore(i,o)}rows(){const t=this.children.head;return null==t?[]:t.children.map(n=>n)}}return s.allowedChildren=[tn],s})();function Yr(){return`row-${Math.random().toString(36).slice(2,6)}`}tn.requiredContainer=Xr,tn.allowedChildren=[xn],xn.requiredContainer=tn,xn.allowedChildren=[Re],Re.requiredContainer=xn;const pl=An("quill:toolbar");let ml=(()=>{class s extends Ee{constructor(t,n){if(super(t,n),Array.isArray(this.options.container)){const r=document.createElement("div");r.setAttribute("role","toolbar"),function qf(s,e){Array.isArray(e[0])||(e=[e]),e.forEach(t=>{const n=document.createElement("span");n.classList.add("ql-formats"),t.forEach(r=>{if("string"==typeof r)bl(n,r);else{const i=Object.keys(r)[0],o=r[i];Array.isArray(o)?function Of(s,e,t){const n=document.createElement("select");n.classList.add(`ql-${e}`),t.forEach(r=>{const i=document.createElement("option");!1!==r?i.setAttribute("value",String(r)):i.setAttribute("selected","selected"),n.appendChild(i)}),s.appendChild(n)}(n,i,o):bl(n,i,o)}}),s.appendChild(n)})}(r,this.options.container),t.container?.parentNode?.insertBefore(r,t.container),this.container=r}else this.container="string"==typeof this.options.container?document.querySelector(this.options.container):this.options.container;this.container instanceof HTMLElement?(this.container.classList.add("ql-toolbar"),this.controls=[],this.handlers={},this.options.handlers&&Object.keys(this.options.handlers).forEach(r=>{const i=this.options.handlers?.[r];i&&this.addHandler(r,i)}),Array.from(this.container.querySelectorAll("button, select")).forEac
1h(r=>{this.attach(r)}),this.quill.on(y.events.EDITOR_CHANGE,()=>{const[r]=this.quill.selection.getRange();this.update(r)})):pl.error("Container required for toolbar",this.options)}addHandler(t,n){this.handlers[t]=n}attach(t){let n=Array.from(t.classList).find(i=>0===i.indexOf("ql-"));n&&(n=n.slice(3),"BUTTON"===t.tagName&&t.setAttribute("type","button"),null!=this.handlers[n]||null!=this.quill.scroll.query(n)?(t.addEventListener("SELECT"===t.tagName?"change":"click",i=>{let o;if("SELECT"===t.tagName){if(t.selectedIndex<0)return;const u=t.options[t.selectedIndex];o=!u.hasAttribute("selected")&&(u.value||!1)}else o=!t.classList.contains("ql-active")&&(t.value||!t.hasAttribute("value")),i.preventDefault();this.quill.focus();const[a]=this.quill.selection.getRange();if(null!=this.handlers[n])this.handlers[n].call(this,o);else if(this.quill.scroll.query(n).prototype instanceof Qt){if(o=prompt(`Enter ${n}`),!o)return;this.quill.updateContents((new S).retain(a.index).delete(a.length).insert({[n]:o}),y.sources.USER)}else this.quill.format(n,o,y.sources.USER);this.update(a)}),this.controls.push([n,t])):pl.warn("ignoring attaching to nonexistent format",n,t))}update(t){const n=null==t?{}:this.quill.getFormat(t);this.controls.forEach(r=>{const[i,o]=r;if("SELECT"===o.tagName){let a=null;if(null==t)a=null;else if(null==n[i])a=o.querySelector("option[selected]");else if(!Array.isArray(n[i])){let u=n[i];"string"==typeof u&&(u=u.replace(/"/g,'\\"')),a=o.querySelector(`option[value="${u}"]`)}null==a?(o.value="",o.selectedIndex=-1):a.selected=!0}else if(null==t)o.classList.remove("ql-active"),o.setAttribute("aria-pressed","false");else if(o.hasAttribute("value")){const a=n[i],u=a===o.getAttribute("value")||null!=a&&a.toString()===o.getAttribute("value")||null==a&&!o.getAttribute("value");o.classList.toggle("ql-active",u),o.setAttribute("aria-pressed",u.toString())}else{const a=null!=n[i];o.classList.toggle("ql-active",a),o.setAttribute("aria-pressed",a.toString())}})}}return s.DEFAULTS={},s})();function bl(s,e,t){const n=document.createElement("button");n.setAttribute("type","button"),n.classList.add(`ql-${e}`),n.setAttribute("aria-pressed","false"),null!=t?(n.value=t,n.setAttribute("aria-label",`${e}: ${t}`)):n.setAttribute("aria-label",e),s.appendChild(n)}ml.DEFAULTS={container:null,handlers:{clean(){const s=this.quill.getSelection();if(null!=s)if(0===s.length){const e=this.quill.getFormat();Object.keys(e).forEach(t=>{null!=this.quill.scroll.query(t,D.INLINE)&&this.quill.format(t,!1,y.sources.USER)})}else this.quill.removeFormat(s.index,s.length,y.sources.USER)},direction(s){const{align:e}=this.quill.getFormat();"rtl"===s&&null==e?this.quill.format("align","right",y.sources.USER):!s&&"right"===e&&this.quill.format("align",!1,y.sources.USER),this.quill.format("direction",s,y.sources.USER)},indent(s){const e=this.quill.getSelection(),t=this.quill.getFormat(e),n=parseInt(t.indent||0,10);if("+1"===s||"-1"===s){let r="+1"===s?1:-1;"rtl"===t.direction&&(r*=-1),this.quill.format("indent",n+r,y.sources.USER)}},link(s){!0===s&&(s=prompt("Enter link URL:")),this.quill.format("link",s,y.sources.USER)},list(s){const e=this.quill.getSelection(),t=this.quill.getFormat(e);this.quill.format("list","check"===s?"checked"!==t.list&&"unchecked"!==t.list&&"unchecked":s,y.sources.USER)}}};const yl='<svg viewbox="0 0 18 18"><polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"/><polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"/><line class="ql-stroke" x1="10" x2="8" y1="5" y2="13"/></svg>',Ds={align:{"":'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="3" x2="15" y1="9" y2="9"/><line class="ql-stroke" x1="3" x2="13" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="9" y1="4" y2="4"/></svg>',center:'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="14" x2="4" y1="14" y2="14"/><line class="ql-stroke" x1="12" x2="6" y1="4" y2="4"/></svg>',right:'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="15" x2="5" y1="14" y2="14"/><line class="ql-stroke" x1="15" x2="9" y1="4" y2="4"/></svg>',justify:'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="15" x2="3" y1="14" y2="14"/><line class="ql-stroke" x1="15" x2="3" y1="4" y2="4"/></svg>'},background:'<svg viewbox="0 0 18 18"><g class="ql-fill ql-color-label"><polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"/><rect height="1" width="1" x="4" y="4"/><polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"/><rect height="1" width="1" x="2" y="6"/><rect height="1" width="1" x="3" y="5"/><rect height="1" width="1" x="4" y="7"/><polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"/><rect height="1" width="1" x="2" y="12"/><rect height="1" width="1" x="2" y="9"/><rect height="1" width="1" x="2" y="15"/><polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"/><rect height="1" width="1" x="3" y="8"/><path d="M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z"/><path d="M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z"/><path d="M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z"/><rect height="1" width="1" x="12" y="2"/><rect height="1" width="1" x="11" y="3"/><path d="M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z"/><rect height="1" width="1" x="2" y="3"/><rect height="1" width="1" x="6" y="2"/><rect height="1" width="1" x="3" y="2"/><rect height="1" width="1" x="5" y="3"/><rect height="1" width="1" x="9" y="2"/><rect height="1" width="1" x="15" y="14"/><polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"/><rect height="1" width="1" x="13" y="7"/><rect height="1" width="1" x="15" y="5"/><rect height="1" width="1" x="14" y="6"/><rect height="1" width="1" x="15" y="8"/><rect height="1" width="1" x="14" y="9"/><path d="M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z"/><rect height="1" width="1" x="14" y="3"/><polygon points="12 6.868 12 6 11.62 6 12 6.868"/><rect height="1" width="1" x="15" y="2"/><rect height="1" width="1" x="12" y="5"/><rect height="1" width="1" x="13" y="4"/><polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"/><rect height="1" width="1" x="9" y="14"/><rect height="1" width="1" x="8" y="15"/>
1<path d="M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z"/><rect height="1" width="1" x="5" y="15"/><path d="M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z"/><rect height="1" width="1" x="11" y="15"/><path d="M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z"/><rect height="1" width="1" x="14" y="15"/><rect height="1" width="1" x="15" y="11"/></g><polyline class="ql-stroke" points="5.5 13 9 5 12.5 13"/><line class="ql-stroke" x1="11.63" x2="6.38" y1="11" y2="11"/></svg>',blockquote:'<svg viewbox="0 0 18 18"><rect class="ql-fill ql-stroke" height="3" width="3" x="4" y="5"/><rect class="ql-fill ql-stroke" height="3" width="3" x="11" y="5"/><path class="ql-even ql-fill ql-stroke" d="M7,8c0,4.031-3,5-3,5"/><path class="ql-even ql-fill ql-stroke" d="M14,8c0,4.031-3,5-3,5"/></svg>',bold:'<svg viewbox="0 0 18 18"><path class="ql-stroke" d="M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z"/><path class="ql-stroke" d="M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z"/></svg>',clean:'<svg class="" viewbox="0 0 18 18"><line class="ql-stroke" x1="5" x2="13" y1="3" y2="3"/><line class="ql-stroke" x1="6" x2="9.35" y1="12" y2="3"/><line class="ql-stroke" x1="11" x2="15" y1="11" y2="15"/><line class="ql-stroke" x1="15" x2="11" y1="11" y2="15"/><rect class="ql-fill" height="1" rx="0.5" ry="0.5" width="7" x="2" y="14"/></svg>',code:yl,"code-block":yl
vendor: 12,565 bytes, line 1
1,color:'<svg viewbox="0 0 18 18"><line class="ql-color-label ql-stroke ql-transparent" x1="3" x2="15" y1="15" y2="15"/><polyline class="ql-stroke" points="5.5 11 9 3 12.5 11"/><line class="ql-stroke" x1="11.63" x2="6.38" y1="9" y2="9"/></svg>',direction:{"":'<svg viewbox="0 0 18 18"><polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"/><line class="ql-stroke ql-fill" x1="15" x2="11" y1="4" y2="4"/><path class="ql-fill" d="M11,3a3,3,0,0,0,0,6h1V3H11Z"/><rect class="ql-fill" height="11" width="1" x="11" y="4"/><rect class="ql-fill" height="11" width="1" x="13" y="4"/></svg>',rtl:'<svg viewbox="0 0 18 18"><polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"/><line class="ql-stroke ql-fill" x1="9" x2="5" y1="4" y2="4"/><path class="ql-fill" d="M5,3A3,3,0,0,0,5,9H6V3H5Z"/><rect class="ql-fill" height="11" width="1" x="5" y="4"/><rect class="ql-fill" height="11" width="1" x="7" y="4"/></svg>'},formula:'<svg viewbox="0 0 18 18"><path class="ql-fill" d="M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z"/><rect class="ql-fill" height="1.6" rx="0.8" ry="0.8" width="5" x="5.15" y="6.2"/><path class="ql-fill" d="M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z"/></svg>',header:{1:'<svg viewBox="0 0 18 18"><path class="ql-fill" d="M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z"/></svg>',2:'<svg viewBox="0 0 18 18"><path class="ql-fill" d="M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z"/></svg>',3:'<svg viewBox="0 0 18 18"><path class="ql-fill" d="M16.65186,12.30664a2.6742,2.6742,0,0,1-2.915,2.68457,3.96592,3.96592,0,0,1-2.25537-.6709.56007.56007,0,0,1-.13232-.83594L11.64648,13c.209-.34082.48389-.36328.82471-.1543a2.32654,2.32654,0,0,0,1.12256.33008c.71484,0,1.12207-.35156,1.12207-.78125,0-.61523-.61621-.86816-1.46338-.86816H13.2085a.65159.65159,0,0,1-.68213-.41895l-.05518-.10937a.67114.67114,0,0,1,.14307-.78125l.71533-.86914a8.55289,8.55289,0,0,1,.68213-.7373V8.58887a3.93913,3.93913,0,0,1-.748.05469H11.9873a.54085.54085,0,0,1-.605-.60547V7.59863a.54085.54085,0,0,1,.605-.60547h3.75146a.53773.53773,0,0,1,.60547.59375v.17676a1.03723,1.03723,0,0,1-.27539.748L14.74854,10.0293A2.31132,2.31132,0,0,1,16.65186,12.30664ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z"/></svg>',4:'<svg viewBox="0 0 18 18"><path class="ql-fill" d="M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm7.05371,7.96582v.38477c0,.39648-.165.60547-.46191.60547h-.47314v1.29785a.54085.54085,0,0,1-.605.60547h-.69336a.54085.54085,0,0,1-.605-.60547V12.95605H11.333a.5412.5412,0,0,1-.60547-.60547v-.15332a1.199,1.199,0,0,1,.22021-.748l2.56348-4.05957a.7819.7819,0,0,1,.72607-.39648h1.27637a.54085.54085,0,0,1,.605.60547v3.7627h.33008A.54055.54055,0,0,1,17.05371,11.96582ZM14.28125,8.7207h-.022a4.18969,4.18969,0,0,1-.38525.81348l-1.188,1.80469v.02246h1.5293V9.60059A7.04058,7.04058,0,0,1,14.28125,8.7207Z"/></svg>',5:'<svg viewBox="0 0 18 18"><path class="ql-fill" d="M16.74023,12.18555a2.75131,2.75131,0,0,1-2.91553,2.80566,3.908,3.908,0,0,1-2.25537-.68164.54809.54809,0,0,1-.13184-.8252L11.73438,13c.209-.34082.48389-.36328.8252-.1543a2.23757,2.23757,0,0,0,1.1001.33008,1.01827,1.01827,0,0,0,1.1001-.96777c0-.61621-.53906-.97949-1.25439-.97949a2.15554,2.15554,0,0,0-.64893.09961,1.15209,1.15209,0,0,1-.814.01074l-.12109-.04395a.64116.64116,0,0,1-.45117-.71484l.231-3.00391a.56666.56666,0,0,1,.62744-.583H15.541a.54085.54085,0,0,1,.605.60547v.43945a.54085.54085,0,0,1-.605.60547H13.41748l-.04395.72559a1.29306,1.29306,0,0,1-.04395.30859h.022a2.39776,2.39776,0,0,1,.57227-.07715A2.53266,2.53266,0,0,1,16.74023,12.18555ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z"/></svg>',6:'<svg viewBox="0 0 18 18"><path class="ql-fill" d="M14.51758,9.64453a1.85627,1.85627,0,0,0-1.24316.38477H13.252a1.73532,1.73532,0,0,1,1.72754-1.4082,2.66491,2.66491,0,0,1,.5498.06641c.35254.05469.57227.01074.70508-.40723l.16406-.5166a.53393.53393,0,0,0-.373-.75977,4.83723,4.83723,0,0,0-1.17773-.14258c-2.43164,0-3.7627,2.17773-3.7627,4.43359,0,2.47559,1.60645,3.69629,3.19043,3.69629A2.70585,2.70585,0,0,0,16.96,12.19727,2.43861,2.43861,0,0,0,14.51758,9.64453Zm-.23047,3.58691c-.67187,0-1.22168-.81445-1.22168-1.45215,0-.47363.30762-.583.72559-.583.96875,0,1.27734.59375,1.27734,1.12207A.82182.82182,0,0,1,14.28711,13.23145ZM10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Z"/></svg>'},italic:'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="7" x2="13" y1="4" y2="4"/><line class="ql-stroke" x1="5" x2="11" y1="14" y2="14"/><line class="ql-stroke" x1="8" x2="10" y1="14" y2="4"/></svg>',image:'<svg viewbox="0 0 18 18"><rect class="ql-stroke" height="10" width="12" x="3" y="4"/><circle class="ql-fill" cx="6" cy="7" r="1"/><polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"/></svg>',indent:{"+1":'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="3" x2="15" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="9" x2="15" y1="9" y2="9"/><polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"/></svg>',"-1":'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="3" x2="15" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="9" x2="15" y1="9" y2="9"/><polyline class="ql-stroke" points="5 7 5 11 3 9 5 7"/></svg>'},link:'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="7" x2="11" y1="7" y2="11"/><path class="ql-even ql-stroke" d="M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z"/><path class="ql-even ql-stroke" d="M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z"/></svg>',list:{bullet:'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="6" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="6" x2="15" y1="9" y2="9"/><line class="ql-stroke" x1="6" x2="15" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="3" y1="4" y2="4"/><line class="ql-stroke" x1="3" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="3" x2="3" y1="14" y2="14"/></svg>',check:'<svg class="" viewbox="0 0 18 18"><line class="ql-stroke" x1="9" x2="15" y1="4" y2="4"/><polyline class="ql-stroke" points="3 4 4 5 6 3"/><line class="ql-stroke" x1="9" x2="15" y1="14" y2="14"/><polyline class="ql-stroke" points="3 14 4 15 6 13"/><line class="ql-stroke" x1="9" x2="15" y1="9" y2="9"/><polyline class="ql-stroke" points="3 9 4 10 6 8"/></svg>',ordered:'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="7" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="7" x2="15" y1="9" y2="9"/><line class="ql-stroke" x1="7" x2="15" y1="14" y2="14"/><line class="ql-stroke ql-thin" x1="2.5" x2="4.5" y1="5.5" y2="5.5"/><path class="ql-fill" d="M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z"/><path class="ql-stroke ql-thin" d="M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156"/><path class="ql-stroke ql-thin" d="M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109"/></svg>'},script:{sub:'<svg viewbox="0 0 18 18"><path class="ql-fill" d="M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z"/><path class="ql-fill" d="M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z"/></svg>',super:'<svg viewbox="0 0 18 18"><path class="ql-fill" d="M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z"/><path class="ql-fill" d="M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z"/></svg>'},strike:'<svg viewbox="0 0 18 18"><line class="ql-stroke ql-thin" x1="15.5" x2="2.5" y1="8.5" y2="9.5"/><path class="ql-fill" d="M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z"/><path class="ql-fill" d="M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z"/></svg>',table:'<svg viewbox="0 0 18 18"><rect class="ql-stroke" height="12" width="12" x="3" y="3"/><rect class="ql-fill" height="2" width="3" x="5" y="5"/><rect class="ql-fill" height="2" width="4" x="9" y="5"/><g class="ql-fill ql-transparent"><rect height="2" width="3" x="5" y="8"/><rect height="2" width="4" x="9" y="8"/><rect height="2" width="3" x="5" y="11"/><rect height="2" width="4" x="9" y="11"/></g></svg>',underline:'<svg viewbox="0 0 18 18"><path class="ql-stroke" d="M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3"/><rect class="ql-fill" height="1" rx="0.5" ry="0.5" width="12" x="3" y="15"/></svg>',video:'<svg viewbox="0 0 18 18"><rect class="ql-stroke" height="12" width="12" x="3" y="3"/><rect class="ql-fill" height="12" width="1" x="5" y="3"/><rect class="ql-fill" height="12" width="1" x="12" y="3"/><rect class="ql-fill" height="2" width="8" x="5" y="8"/><rect class="ql-fill" height="1" width="3" x="3" y="5"/><rect class="ql-fill" height="1" width="3" x="3" y="7"/><rect class="ql-fill" height="1" width="3" x="3" y="10"/><rect class="ql-fill" height="1" width="3" x="3" y="12"/><rect class="ql-fill" height="1" width="3" x="12" y="5"/><rect class="ql-fill" height="1" width="3" x="12" y="7"/><rect class="ql-fill" height="1" width="3" x="12" y="10"/><rect class="ql-fill" height="1" width="3" x="12" y="12"/></svg>'};let 
vendor: 1,488 bytes, line 1
1vl=0;function _l(s,e){s.setAttribute(e,`${"true"!==s.getAttribute(e)}`)}const ir=class Ff{constructor(e){this.select=e,this.container=document.createElement("span"),this.buildPicker(),this.select.style.display="none",this.select.parentNode.insertBefore(this.container,this.select),this.label.addEventListener("mousedown",()=>{this.togglePicker()}),this.label.addEventListener("keydown",t=>{switch(t.key){case"Enter":this.togglePicker();break;case"Escape":this.escape(),t.preventDefault()}}),this.select.addEventListener("change",this.update.bind(this))}togglePicker(){this.container.classList.toggle("ql-expanded"),_l(this.label,"aria-expanded"),_l(this.options,"aria-hidden")}buildItem(e){const t=document.createElement("span");t.tabIndex="0",t.setAttribute("role","button"),t.classList.add("ql-picker-item");const n=e.getAttribute("value");return n&&t.setAttribute("data-value",n),e.textContent&&t.setAttribute("data-label",e.textContent),t.addEventListener("click",()=>{this.selectItem(t,!0)}),t.addEventListener("keydown",r=>{switch(r.key){case"Enter":this.selectItem(t,!0),r.preventDefault();break;case"Escape":this.escape(),r.preventDefault()}}),t}buildLabel(){const e=document.createElement("span");return e.classList.add("ql-picker-label"),e.innerHTML='<svg viewbox="0 0 18 18"><polygon class="ql-stroke" points="7 11 9 13 11 11 7 11"/><polygon class="ql-stroke" points="7 7 9 5 11 7 7 7"/></svg>',e.tabIndex="0",e.setAttribute("role","button"),e.setAttribute("aria-expanded","fal
1se"),this.container.appendChild(e),e}buildOptions(){const e=document.createElement("span");e.classList.add("ql-picker-options"),e.setAttribute("aria-hidden","true"),e.tabIndex="-1",e.id=`ql-picker-options-${vl}`,vl+=1,this.label.setAttribute("aria-controls",e.id),this.options=e,Array.from(this.select.options).forEach(t=>{const n=this.buildItem(t);e.appendChild(n),!0===t.selected&&this.selectItem(n)}),this.container.appendChild(e)}buildPicker(){Array.from(this.select.attributes).forEach(e=>{this.container.setAttribute(e.name,e.value)}),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}escape(){this.close(),setTimeout(()=>this.label.focus(),1)}close(){this.container.classList.remove("ql-expanded"),this.label.setAttribute("aria-expanded","false"),this.options.setAttribute("aria-hidden","true")}selectItem(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=this.container.querySelector(".ql-selected");e!==n&&(n?.classList.remove("ql-selected"),null!=e&&(e.classList.add("ql-selected"),this.select.selectedIndex=Array.from(e.parentNode.children).indexOf(e),e.hasAttribute("data-value")?this.label.setAttribute("data-value",e.getAttribute("data-value")):this.label.removeAttribute("data-value"),e.hasAttribute("data-label")?this.label.setAttribute("data-label",e.getAttribute("data-label")):this.label.removeAttribute("data-label"),t&&(this.select.dispatchEvent(new Event("change")),this.close())))}update(){let e;if(this.select.selectedIndex>-1){const n=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];e=this.select.options[this.select.selectedIndex],this.selectItem(n)}else this.selectItem(null);const t=null!=e&&e!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",t)}},Al=class Hf extends ir{constructor(e,t){super(e),this.label.innerHTML=t,this.container.classList.add("ql-color-picker"),Array.from(this.container.querySelectorAll(".ql-picker-item")).slice(0,7).forEach(n=>{n.classList.add("ql-primary")})}buildItem(e){const t=super.buildItem(e);return t.style.backgroundColor=e.getAttribute("value")||"",t}selectItem(e,t){super.selectItem(e,t);const n=this.label.querySelector(".ql-color-label"),r=e&&e.getAttribute("data-value")||"";n&&("line"===n.tagName?n.style.stroke=r:n.style.fill=r)}},El=class $f extends ir{constructor(e,t){super(e),this.container.classList.add("ql-icon-picker"),Array.from(this.container.querySelectorAll(".ql-picker-item")).forEach(n=>{n.innerHTML=t[n.getAttribute("data-value")||""]}),this.defaultItem=this.container.querySelector(".ql-selected"),this.selectItem(this.defaultItem)}selectItem(e,t){super.selectItem(e,t);const n=e||this.defaultItem;if(null!=n){if(this.label.innerHTML===n.innerHTML)return;this.label.innerHTML=n.innerHTML}}},Tl=class Kf{constructor(e,t){this.quill=e,this.boundsContainer=t||document.body,this.root=e.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,(s=>{const{overflowY:e}=getComputedStyle(s,null);return"visible"!==e&&"clip"!==e})(this.quill.root)&&this.quill.root.addEventListener("scroll",()=>{this.root.style.marginTop=-1*this.quill.root.scrollTop+"px"}),this.hide()}hide(){this.root.classList.add("ql-hidden")}position(e){const t=e.left+e.width/2-this.root.offsetWidth/2,n=e.bottom+this.quill.root.scrollTop;this.root.style.left=`${t}px`,this.root.style.top=`${n}px`,this.root.classList.remove("ql-flip");const r=this.boundsContainer.getBoundingClientRect(),i=this.root.getBoundingClientRect();let o=0;return i.right>r.right&&(o=r.right-i.right,this.root.style.left=`${t+o}px`),i.left<r.left&&(o=r.left-i.left,this.root.style.left=`${t+o}px`),i.bottom>r.bottom&&(this.root.style.top=n-(e.bottom-e.top+(i.bottom-i.top))+"px",this.root.classList.add("ql-flip")),o}show(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}},Gf=[!1,"center","right","justify"],Vf=["#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"],Wf=[!1,"serif","monospace"],Zf=["1","2","3",!1],Xf=["small",!1,"large","huge"];class Ps extends Ys{constructor(e,t){super(e,t);const n=r=>{document.body.contains(e.root)?(null!=this.tooltip&&!this.tooltip.root.contains(r.target)&&document.activeElement!==this.tooltip.textbox&&!this.quill.hasFocus()&&this.tooltip.hide(),null!=this.pickers&&this.pickers.forEac
vendor: 9,207 bytes, line 1
1h(i=>{i.container.contains(r.target)||i.close()})):document.body.removeEventListener("click",n)};e.emitter.listenDOM("click",document.body,n)}addModule(e){const t=super.addModule(e);return"toolbar"===e&&this.extendToolbar(t),t}buildButtons(e,t){Array.from(e).forEach(n=>{(n.getAttribute("class")||"").split(/\s+/).forEach(i=>{if(i.startsWith("ql-")&&(i=i.slice(3),null!=t[i]))if("direction"===i)n.innerHTML=t[i][""]+t[i].rtl;else if("string"==typeof t[i])n.innerHTML=t[i];else{const o=n.value||"";null!=o&&t[i][o]&&(n.innerHTML=t[i][o])}})})}buildPickers(e,t){this.pickers=Array.from(e).map(r=>{if(r.classList.contains("ql-align")&&(null==r.querySelector("option")&&js(r,Gf),"object"==typeof t.align))return new El(r,t.align);if(r.classList.contains("ql-background")||r.classList.contains("ql-color")){const i=r.classList.contains("ql-background")?"background":"color";return null==r.querySelector("option")&&js(r,Vf,"background"===i?"#ffffff":"#000000"),new Al(r,t[i])}return null==r.querySelector("option")&&(r.classList.contains("ql-font")?js(r,Wf):r.classList.contains("ql-header")?js(r,Zf):r.classList.contains("ql-size")&&js(r,Xf)),new ir(r)}),this.quill.on(B.events.EDITOR_CHANGE,()=>{this.pickers.forEach(r=>{r.update()})})}}Ps.DEFAULTS=Xe({},Ys.DEFAULTS,{modules:{toolbar:{handlers:{formula(){this.quill.theme.tooltip.edit("formula")},image(){let s=this.container.querySelector("input.ql-image[type=file]");null==s&&(s=document.createElement("input"),s.setAttribute("type","file"),s.setAttribute("accept",this.quill.uploader.options.mimetypes.join(", ")),s.classList.add("ql-image"),s.addEventListener("change",()=>{const e=this.quill.getSelection(!0);this.quill.uploader.upload(e,s.files),s.value=""}),this.container.appendChild(s)),s.click()},video(){this.quill.theme.tooltip.edit("video")}}}}});class Nl extends Tl{constructor(e,t){super(e,t),this.textbox=this.root.querySelector('input[type="text"]'),this.listen()}listen(){this.textbox.addEventListener("keydown",e=>{"Enter"===e.key?(this.save(),e.preventDefault()):"Escape"===e.key&&(this.cancel(),e.preventDefault())})}cancel(){this.hide(),this.restoreFocus()}edit(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"link",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),null==this.textbox)return;null!=t?this.textbox.value=t:e!==this.root.getAttribute("data-mode")&&(this.textbox.value="");const n=this.quill.getBounds(this.quill.selection.savedRange);null!=n&&this.position(n),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute(`data-${e}`)||""),this.root.setAttribute("data-mode",e)}restoreFocus(){this.quill.focus({preventScroll:!0})}save(){let{value:e}=this.textbox;switch(this.root.getAttribute("data-mode")){case"link":{const{scrollTop:t}=this.quill.root;this.linkRange?(this.quill.formatText(this.linkRange,"link",e,B.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",e,B.sources.USER)),this.quill.root.scrollTop=t;break}case"video":e=function Yf(s){let e=s.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||s.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);return e?`${e[1]||"https"}://www.youtube.com/embed/${e[2]}?showinfo=0`:(e=s.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?`${e[1]||"https"}://player.vimeo.com/video/${e[2]}/`:s}(e);case"formula":{if(!e)break;const t=this.quill.getSelection(!0);if(null!=t){const n=t.index+t.length;this.quill.insertEmbed(n,this.root.getAttribute("data-mode"),e,B.sources.USER),"formula"===this.root.getAttribute("data-mode")&&this.quill.insertText(n+1," ",B.sources.USER),this.quill.setSelection(n+2,B.sources.USER)}break}}this.textbox.value="",this.hide()}}function js(s,e){let t=arguments.length>2&&void 0!==arguments[2]&&arguments[2];e.forEach(n=>{const r=document.createElement("option");n===t?r.setAttribute("selected","selected"):r.setAttribute("value",String(n)),s.appendChild(r)})}const Qf=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]];class Jf extends Nl{static TEMPLATE=['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].join("");constructor(e,t){super(e,t),this.quill.on(B.events.EDITOR_CHANGE,(n,r,i,o)=>{if(n===B.events.SELECTION_CHANGE)if(null!=r&&r.length>0&&o===B.sources.USER){this.show(),this.root.style.left="0px",this.root.style.width="",this.root.style.width=`${this.root.offsetWidth}px`;const a=this.quill.getLines(r.index,r.length);if(1===a.length){const u=this.quill.getBounds(r);null!=u&&this.position(u)}else{const u=a[a.length-1],d=this.quill.getIndex(u),v=Math.min(u.length()-1,r.index+r.length-d),L=this.quill.getBounds(new En(d,v));null!=L&&this.position(L)}}else document.activeElement!==this.textbox&&this.quill.hasFocus()&&this.hide()})}listen(){super.listen(),this.root.querySelector(".ql-close").addEventListener("click",()=>{this.root.classList.remove("ql-editing")}),this.quill.on(B.events.SCROLL_OPTIMIZE,()=>{setTimeout(()=>{if(this.root.classList.contains("ql-hidden"))return;const e=this.quill.getSelection();if(null!=e){const t=this.quill.getBounds(e);null!=t&&this.position(t)}},1)})}cancel(){this.show()}position(e){const t=super.position(e),n=this.root.querySelector(".ql-tooltip-arrow");return n.style.marginLeft="",0!==t&&(n.style.marginLeft=-1*t-n.offsetWidth/2+"px"),t}}class wl extends Ps{constructor(e,t){null!=t.modules.toolbar&&null==t.modules.toolbar.container&&(t.modules.toolbar.container=Qf),super(e,t),this.quill.container.classList.add("ql-bubble")}extendToolbar(e){this.tooltip=new Jf(this.quill,this.options.bounds),null!=e.container&&(this.tooltip.root.appendChild(e.container),this.buildButtons(e.container.querySelectorAll("button"),Ds),this.buildPickers(e.container.querySelectorAll("select"),Ds))}}wl.DEFAULTS=Xe({},Ps.DEFAULTS,{modules:{toolbar:{handlers:{link(s){s?this.quill.theme.tooltip.edit():this.quill.format("link",!1,y.sources.USER)}}}}});const td=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]];class ed extends Nl{static TEMPLATE=['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-action"></a>','<a class="ql-remove"></a>'].join("");preview=this.root.querySelector("a.ql-preview");listen(){super.listen(),this.root.querySelector("a.ql-action").addEventListener("click",e=>{this.root.classList.contains("ql-editing")?this.save():this.edit("link",this.preview.textContent),e.preventDefault()}),this.root.querySelector("a.ql-remove").addEventListener("click",e=>{if(null!=this.linkRange){const t=this.linkRange;this.restoreFocus(),this.quill.formatText(t,"link",!1,B.sources.USER),delete this.linkRange}e.preventDefault(),this.hide()}),this.quill.on(B.events.SELECTION_CHANGE,(e,t,n)=>{if(null!=e){if(0===e.length&&n===B.sources.USER){const[r,i]=this.quill.scroll.descendant(sr,e.index);if(null!=r){this.linkRange=new En(e.index-i,r.length());const o=sr.formats(r.domNode);this.preview.textContent=o,this.preview.setAttribute("href",o),this.show();const a=this.quill.getBounds(this.linkRange);return void(null!=a&&this.position(a))}}else delete this.linkRange;this.hide()}})}show(){super.show(),this.root.removeAttribute("data-mode")}}class xl extends Ps{constructor(e,t){null!=t.modules.toolbar&&null==t.modules.toolbar.container&&(t.modules.toolbar.container=td),super(e,t),this.quill.container.classList.add("ql-snow")}extendToolbar(e){null!=e.container&&(e.container.classList.add("ql-snow"),this.buildButtons(e.container.querySelectorAll("button"),Ds),this.buildPickers(e.container.querySelectorAll("select"),Ds),this.tooltip=new ed(this.quill,this.options.bounds),e.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"k",shortKey:!0},(t,n)=>{e.handlers.link.call(e,!n.format.link)}))}}xl.DEFAULTS=Xe({},Ps.DEFAULTS,{modules:{toolbar:{handlers:{link(s){if(s){const e=this.quill.getSelection();if(null==e||0===e.length)return;let t=this.quill.getText(e);/^\S+@\S+\.\S+$/.test(t)&&0!==t.indexOf("mailto:")&&(t=`mailto:${t}`);const{tooltip:n}=this.quill.theme;n.edit("link",t)}else this.quill.format("link",!1,y.sources.USER)}}}}});const nd=xl;Gr.register({"attributors/attribute/direction":Xi,"attributors/class/align":Vi,"attributors/class/background":_h,"attributors/class/color":vh,"attributors/class/direction":Yi,"attributors/class/font":tl,"attributors/class/size":nl,"attributors/style/align":Wi,"attributors/style/background":jr,"attributors/style/color":Pr,"attributors/style/direction":Qi,"attributors/style/font":el,"attributors/style/size":sl},!0),Gr.register({"formats/align":Vi,"formats/direction":Yi,"formats/indent":bf,"formats/background":jr,"formats/color":Pr,"formats/font":tl,"formats/size":nl,"formats/blockquote":yf,"formats/code-block":zt,"formats/header":vf,"formats/list":Wr,"formats/bold":Zr,"formats/code":Ah,"formats/ital
1ic":_f,"formats/link":sr,"formats/script":Af,"formats/strike":Ef,"formats/underline":Tf,"formats/formula":Nf,"formats/image":wf,"formats/video":xf,"modules/syntax":gl,"modules/table":class Cf extends Ee{static register(){y.register(Re),y.register(xn),y.register(tn),y.register(Xr)}constructor(){super(...arguments),this.listenBalanceCells()}balanceTables(){this.quill.scroll.descendants(Xr).forEach(e=>{e.balanceCells()})}deleteColumn(){const[e,,t]=this.getTable();null!=t&&(e.deleteColumn(t.cellOffset()),this.quill.update(y.sources.USER))}deleteRow(){const[,e]=this.getTable();null!=e&&(e.remove(),this.quill.update(y.sources.USER))}deleteTable(){const[e]=this.getTable();if(null==e)return;const t=e.offset();e.remove(),this.quill.update(y.sources.USER),this.quill.setSelection(t,y.sources.SILENT)}getTable(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.quill.getSelection();if(null==e)return[null,null,null,-1];const[t,n]=this.quill.getLine(e.index);if(null==t||t.statics.blotName!==Re.blotName)return[null,null,null,-1];const r=t.parent;return[r.parent.parent,r,t,n]}insertColumn(e){const t=this.quill.getSelection();if(!t)return;const[n,r,i]=this.getTable(t);if(null==i)return;const o=i.cellOffset();n.insertColumn(o+e),this.quill.update(y.sources.USER);let a=r.rowOffset();0===e&&(a+=1),this.quill.setSelection(t.index+a,t.length,y.sources.SILENT)}insertColumnLeft(){this.insertColumn(0)}insertColumnRight(){this.insertColumn(1)}insertRow(e){const t=this.quill.getSelection();if(!t)return;const[n,r,i]=this.getTable(t);if(null==i)return;const o=r.rowOffset();n.insertRow(o+e),this.quill.update(y.sources.USER),e>0?this.quill.setSelection(t,y.sources.SILENT):this.quill.setSelection(t.index+r.children.length,t.length,y.sources.SILENT)}insertRowAbove(){this.insertRow(0)}insertRowBelow(){this.insertRow(1)}insertTable(e,t){const n=this.quill.getSelection();if(null==n)return;const r=new Array(e).fill(0).reduce(i=>{const o=new Array(t).fill("\n").join("");return i.insert(o,{table:Yr()})},(new S).retain(n.index));this.quill.updateContents(r,y.sources.USER),this.quill.setSelection(n.index,y.sources.SILENT),this.balanceTables()}listenBalanceCells(){this.quill.on(y.events.SCROLL_OPTIMIZE,e=>{e.some(t=>!!["TD","TR","TBODY","TABLE"].includes(t.target.tagName)&&(this.quill.once(y.events.TEXT_CHANGE,(n,r,i)=>{i===y.sources.USER&&this.balanceTables()}),!0))})}},"modules/toolbar":ml,"themes/bubble":wl,"themes/snow":nd,"ui/icons":Ds,"ui/picker":ir,"ui/icon-picker":El,"ui/color-picker":Al,"ui/tooltip":Tl},!0);const sd=Gr}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.