`),Z=z.shift();Z.length>0&&(x<this.length()-1||this.children.tail==null?S(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"insertAt",this).call(this,Math.min(x,this.length()-1),Z):this.children.tail.insertAt(this.children.tail.length(),Z),this.cache={});varC=this;z.reduce(function(q,A){returnC=C.split(q,!0),C.insertAt(0,A),A.length},x+Z.length)}}},{key:"insertBefore",value:function(x,I){varU=this.children.head;S(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"insertBefore",this).call(this,x,I),Uinstanceofh.default&&U.remove(),this.cache={}}},{key:"length",value:function(){returnthis.cache.length==null&&(this.cache.length=S(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"length",this).call(this)+b),this.cache.length}},{key:"moveChildren",value:function(x,I){S(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"moveChildren",this).call(this,x,I),this.cache={}}},{key:"optimize",value:function(x){S(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"optimize",this).call(this,x),this.cache={}}},{key:"path",value:function(x){returnS(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"path",this).call(this,x,!0)}},{key:"removeChild",value:function(x){S(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"removeChild",this).call(this,x),this.cache={}}},{key:"split",value:function(x){varI=arguments.length>1&&arguments[1]!==void0?arguments[1]:!1;if(I&&(x===0||x>=this.length()-b)){varU=this.clone();returnx===0?(this.parent.insertBefore(U,this),this):(this.parent.insertBefore(U,this.next),U)}else{varz=S(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"split",this).call(this,x,I);returnthis.cache={},z}}}]),_}(t.default.Block);T.blotName="block",T.tagName="P",T.defaultChild="break",T.allowedChildren=[c.default,t.default.Embed,o.default];functionp(v){var_=arguments.length>1&&arguments[1]!==void0?arguments[1]:{};returnv==null||(typeofv.formats=="function"&&(_=(0,y.default)(_,v.formats())),v.parent==null||v.parent.blotName=="scroll"||v.parent.statics.scope!==v.statics.scope)?_:p(v.parent,_)}O.bubbleFormats=p,O.BlockEmbed=g,O.default=T},function(F,O,m){Object.defineProperty(O,"__esModule",{value:!0}),O.default=O.overload=O.expandConfig=void0;varL=typeofSymbol=="function"&&typeofSymbol.iterator=="symbol"?function(C){returntypeofC}:function(C){returnC&&typeofSymbol=="function"&&C.constructor===Symbol&&C!==Symbol.prototype?"symbol":typeofC},S=function(){functionC(q,A){varR=[],j=!0,H=!1,M=void0;try{for(varP=q[Symbol.iterator](),B;!(j=(B=P.next()).done)&&(R.push(B.value),!(A&&R.length===A));j=!0);}catch(K){H=!0,M=K}finally{try{!j&&P.return&&P.return()}finally{if(H)throwM}}returnR}returnfunction(q,A){if(Array.isArray(q))returnq;if(Symbol.iteratorinObject(q))returnC(q,A);thrownewTypeError("Invalid attempt to destructure non-iterable instance")}}(),N=function(){functionC(q,A){for(varR=0;R<A.length;R++){varj=A[R];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"inj&&(j.writable=!0),Object.defineProperty(q,j.key,j)}}returnfunction(q,A,R){returnA&&C(q.prototype,A),R&&C(q,R),q}}();m(50);vary=m(2),d=p(y),f=m(14),i=p(f),t=m(8),n=p(t),h=m(9),u=p(h),c=m(0),a=p(c),o=m(15),r=p(o),e=m(3),l=p(e),E=m(10),b=p(E),g=m(34),T=p(g);functionp(C){returnC&&C.__esModule?C:{default:C}}functionv(C,q,A){returnqinC?Object.defineProperty(C,q,{value:A,enumerable:!0,configurable:!0,writable:!0}):C[q]=A,C}function_(C,q){if(!(Cinstanceofq))thrownewTypeError("Cannot call a class as a function")}varw=(0,b.default)("quill"),x=function(){N(C,null,[{key:"debug",value:function(A){A===!0&&(A="log"),b.default.level(A)}},{key:"find",value:function(A){returnA.__quill||a.default.find(A)}},{key:"import",value:function(A){returnthis.imports[A]==null&&w.error("Cannot import "+A+". Are you sure it was registered?"),this.imports[A]}},{key:"register",value:function(A,R){varj=this,H=arguments.length>2&&arguments[2]!==void0?arguments[2]:!1;if(typeofA!="string"){varM=A.attrName||A.blotName;typeofM=="string"?this.register("formats/"+M,A,R):Object.keys(A).forE
`)),N(T.prototype.__proto__||Object.getPrototypeOf(T.prototype),"optimize",this).call(this,v);var_=this.next;_!=null&&_.prev===this&&_.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===_.statics.formats(_.domNode)&&(_.optimize(v),_.moveChildren(this),_.remove())}},{key:"replace",value:function(v){N(T.prototype.__proto__||Object.getPrototypeOf(T.prototype),"replace",this).call(this,v),[].slice.call(this.domNode.querySelectorAll("*")).forEach(function(_){varw=i.default.find(_);w==null?_.parentNode.removeChild(_):winstanceofi.default.Embed?w.remove():w.unwrap()})}}],[{key:"create",value:function(v){var_=N(T.__proto__||Object.getPrototypeOf(T),"create",this).call(this,v);return_.setAttribute("spellcheck",!1),_}},{key:"formats",value:function(){return!0}}]),T}(n.default);b.blotName="code-block",b.tagName="PRE",b.TAB=" ",O.Code=E,O.default=b},function(F,O,m){Object.defineProperty(O,"__esModule",{value:!0});varL=typeofSymbol=="function"&&typeofSymbol.iterator=="symbol"?function(C){returntypeofC}:function(C){returnC&&typeofSymbol=="function"&&C.constructor===Symbol&&C!==Symbol.prototype?"symbol":typeofC},S=function(){functionC(q,A){varR=[],j=!0,H=!1,M=void0;try{for(varP=q[Symbol.iterator](),B;!(j=(B=P.next()).done)&&(R.push(B.value),!(A&&R.length===A));j=!0);}catch(K){H=!0,M=K}finally{try{!j&&P.return&&P.return()}finally{if(H)throwM}}returnR}returnfunction(q,A){if(Array.isArray(q))returnq;if(Symbol.iteratorinObject(q))returnC(q,A);thrownewTypeError("Invalid attempt to destructure non-iterable instance")}}(),N=function(){functionC(q,A){for(varR=0;R<A.length;R++){varj=A[R];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"inj&&(j.writable=!0),Object.defineProperty(q,j.key,j)}}returnfunction(q,A,R){returnA&&C(q.prototype,A),R&&C(q,R),q}}(),y=m(2),d=_(y),f=m(20),i=_(f),t=m(0),n=_(t),h=m(13),u=_(h),c=m(24),a=_(c),o=m(4),r=_(o),e=m(16),l=_(e),E=m(21),b=_(E),g=m(11),T=_(g),p=m(3),v=_(p);function_(C){returnC&&C.__esModule?C:{default:C}}functionw(C,q,A){returnqinC?Object.defineProperty(C,q,{value:A,enumerable:!0,configurable:!0,writable:!0}):C[q]=A,C}functionx(C,q){if(!(Cinstanceofq))thrownewTypeError("Cannot call a class as a function")}varI=/^[ -~]*$/,U=function(){functionC(q){x(this,C),this.scroll=q,this.delta=this.getDelta()}returnN(C,[{key:"applyDelta",value:function(A){varR=this,j=!1;this.scroll.update();varH=this.scroll.length();returnthis.scroll.batchStart(),A=Z(A),A.reduce(function(M,P){varB=P.retain||P.delete||P.insert.length||1,K=P.attributes||{};if(P.insert!=null){if(typeofP.insert=="string"){varG=P.insert;G.endsWith(`
`);returnq.insert(j,A.attributes)}returnq.push(A)},newd.default)}O.default=U},function(F,O,m){Object.defineProperty(O,"__esModule",{value:!0}),O.default=O.Range=void0;varL=function(){functiong(T,p){varv=[],_=!0,w=!1,x=void0;try{for(varI=T[Symbol.iterator](),U;!(_=(U=I.next()).done)&&(v.push(U.value),!(p&&v.length===p));_=!0);}catch(z){w=!0,x=z}finally{try{!_&&I.return&&I.return()}finally{if(w)throwx}}returnv}returnfunction(T,p){if(Array.isArray(T))returnT;if(Symbol.iteratorinObject(T))returng(T,p);thrownewTypeError("Invalid attempt to destructure non-iterable instance")}}(),S=function(){functiong(T,p){for(varv=0;v<p.length;v++){var_=p[v];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in_&&(_.writable=!0),Object.defineProperty(T,_.key,_)}}returnfunction(T,p,v){returnp&&g(T.prototype,p),v&&g(T,v),T}}(),N=m(0),y=a(N),d=m(21),f=a(d),i=m(11),t=a(i),n=m(8),h=a(n),u=m(10),c=a(u);functiona(g){returng&&g.__esModule?g:{default:g}}functiono(g){if(Array.isArray(g)){for(varT=0,p=Array(g.length);T<g.length;T++)p[T]=g[T];returnp}elsereturnArray.from(g)}functionr(g,T){if(!(ginstanceofT))thrownewTypeError("Cannot call a class as a function")}vare=(0,c.default)("quill:selection"),l=functiong(T){varp=arguments.length>1&&arguments[1]!==void0?arguments[1]:0;r(this,g),this.index=T,this.length=p},E=function(){functiong(T,p){varv=this;r(this,g),this.emitter=p,this.scroll=T,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=y.default.create("cursor",this),this.lastRange=this.savedRange=newl(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,function(){v.mouseDown||setTimeout(v.update.bind(v,h.default.sources.USER),1)}),this.emitter.on(h.default.events.EDITOR_CHANGE,function(_,w){_===h.default.events.TEXT_CHANGE&&w.length()>0&&v.update(h.default.sources.SILENT)}),this.emitter.on(h.default.events.SCROLL_BEFORE_UPDATE,function(){if(v.hasFocus()){var_=v.getNativeRange();_!=null&&_.start.node!==v.cursor.textNode&&v.emitter.once(h.default.events.SCROLL_UPDATE,function(){try{v.setNativeRange(_.start.node,_.start.offset,_.end.node,_.end.offset)}catch{}})}}),this.emitter.on(h.default.events.SCROLL_OPTIMIZE,function(_,w){if(w.range){varx=w.range,I=x.startNode,U=x.startOffset,z=x.endNode,Z=x.endOffset;v.setNativeRange(I,U,z,Z)}}),this.update(h.default.sources.SILENT)}returnS(g,[{key:"handleComposition",value:function(){varp=this;this.root.addEventListener("compositionstart",function(){p.composing=!0}),this.root.addEventListener("compositionend",function(){if(p.composing=!1,p.cursor.parent){varv=p.cursor.restore();if(!v)return;setTimeout(function(){p.setNativeRange(v.startNode,v.startOffset,v.endNode,v.endOffset)},1)}})}},{key:"handleDragging",value:function(){varp=this;this.emitter.listenDOM("mousedown",document.body,function(){p.mouseDown=!0}),this.emitter.listenDOM("mouseup",document.body,function(){p.mouseDown=!1,p.update(h.default.sources.USER)})}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(p,v){if(!(this.scroll.whitelist!=null&&!this.scroll.whitelist[p])){this.scroll.update();var_=this.getNativeRange();if(!(_==null||!_.native.collapsed||y.default.query(p,y.default.Scope.BLOCK))){if(_.start.node!==this.cursor.textNode){varw=y.default.find(_.start.node,!1);if(w==null)return;if(winstanceofy.default.Leaf){varx=w.split(_.start.offset);w.parent.insertBefore(this.cursor,x)}elsew.insertBefore(this.cursor,_.start.node);this.cursor.attach()}this.cursor.format(p,v),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(p){varv=arguments.length>1&&arguments[1]!==void0?arguments[1]:0,_=this.scroll.length();p=Math.min(p,_-1),v=Math.min(p+v,_-1)-p;varw=void0,x=this.scroll.leaf(p),I=L(x,2),U=I[0],z=I[1];if(U==null)returnnull;varZ=U.position(z,!0),C=L(Z,2);w=C[0],z=C[1];varq=document.createRange();if(v>0){q.setStart(w,z);varA=this.scroll.leaf(p+
`)&&(x=x.slice(0,-1)),U.insertAt(0,x,I)}else{var z=d.default.create(x,I);this.appendChild(z)}else N(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"insertAt",this).call(this,w,x,I);this.optimize()}}},{key:"insertBefore",value:function(w,x){if(w.statics.scope===d.default.Scope.INLINE_BLOT){var I=d.default.create(this.statics.defaultChild);I.appendChild(w),w=I}N(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"insertBefore",this).call(this,w,x)}},{key:"leaf",value:function(w){return this.path(w).pop()||[null,-1]}},{key:"line",value:function(w){return w===this.length()?this.line(w-1):this.descendant(g,w)}},{key:"lines",value:function(){var w=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE,I=function U(z,Z,C){var q=[],A=C;return z.children.forEachAt(Z,C,function(R,j,H){g(R)?q.push(R):R instanceof d.default.Container&&(q=q.concat(U(R,j,A))),A-=H}),q};return I(this,w,x)}},{key:"optimize",value:function(){var w=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.batch!==!0&&(N(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"optimize",this).call(this,w,x),w.length>0&&this.emitter.emit(i.default.events.SCROLL_OPTIMIZE,w,x))}},{key:"path",value:function(w){return N(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"path",this).call(this,w).slice(1)}},{key:"update",value:function(w){if(this.batch!==!0){var x=i.default.sources.USER;typeof w=="string"&&(x=w),Array.isArray(w)||(w=this.observer.takeRecords()),w.length>0&&this.emitter.emit(i.default.events.SCROLL_BEFORE_UPDATE,x,w),N(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"update",this).call(this,w.concat([])),w.length>0&&this.emitter.emit(i.default.events.SCROLL_UPDATE,x,w)}}}]),v}(d.default.Scroll);T.blotName="scroll",T.className="ql-editor",T.tagName="DIV",T.defaultChild="block",T.allowedChildren=[n.default,t.BlockEmbed,r.default],O.default=T},function(F,O,m){Object.defineProperty(O,"__esModule",{value:!0}),O.SHORTKEY=O.default=void 0;var L=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(P){return typeof P}:function(P){return P&&typeof Symbol=="function"&&P.constructor===Symbol&&P!==Symbol.prototype?"symbol":typeof P},S=function(){function P(B,K){var G=[],Y=!0,tt=!1,nt=void 0;try{for(var it=B[Symbol.iterator](),ut;!(Y=(ut=it.next()).done)&&(G.push(ut.value),!(K&&G.length===K));Y=!0);}catch(st){tt=!0,nt=st}finally{try{!Y&&it.return&&it.return()}finally{if(tt)throw nt}}return G}return function(B,K){if(Array.isArray(B))return B;if(Symbol.iterator in Object(B))return P(B,K);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),N=function(){function P(B,K){for(var G=0;G<K.length;G++){var Y=K[G];Y.enumerable=Y.enumerable||!1,Y.configurable=!0,"value"in Y&&(Y.writable=!0),Object.defineProperty(B,Y.key,Y)}}return function(B,K,G){return K&&P(B.prototype,K),G&&P(B,G),B}}(),y=m(21),d=p(y),f=m(11),i=p(f),t=m(3),n=p(t),h=m(2),u=p(h),c=m(20),a=p(c),o=m(0),r=p(o),e=m(5),l=p(e),E=m(10),b=p(E),g=m(9),T=p(g);function p(P){return P&&P.__esModule?P:{default:P}}function v(P,B,K){return B in P?Object.defineProperty(P,B,{value:K,enumerable:!0,configurable:!0,writable:!0}):P[B]=K,P}function _(P,B){if(!(P instanceof B))throw new TypeError("Cannot call a class as a function")}function w(P,B){if(!P)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return B&&(typeof B=="object"||typeof B=="function")?B:P}function x(P,B){if(typeof B!="function"&&B!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof B);P.prototype=Object.create(B&&B.prototype,{constructor:{value:P,enumerable:!1,writable:!0,configurable:!0}}),B&&(Object.setPrototypeOf?Object.setPrototypeOf(P,B):P.__proto__=B)}var I=(0,b.default)("quill:keyboard"),U=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",z=function(P){x(B,P),N(B,null,[{key:"match",value:function(G,Y){return Y=M(Y),["altKey","ctrlKey","metaKey","shiftKey"
`);st=0,W.forEach(function(Q,J){P?(ut.insertAt(gt+st,G.TAB),st+=G.TAB.length,J===0?Y+=G.TAB.length:tt+=G.TAB.length):Q.startsWith(G.TAB)&&(ut.deleteAt(gt+st,G.TAB.length),st-=G.TAB.length,J===0?Y-=G.TAB.length:tt-=G.TAB.length),st+=Q.length+1}),this.quill.update(l.default.sources.USER),this.quill.setSelection(Y,tt,l.default.sources.SILENT)}}}}functionH(P){return{key:P[0].toUpperCase(),shortKey:!0,handler:function(K,G){this.quill.format(P,!G.format[P],l.default.sources.USER)}}}functionM(P){if(typeofP=="string"||typeofP=="number")returnM({key:P});if((typeofP>"u"?"undefined":L(P))==="object"&&(P=(0,d.default)(P,!1)),typeofP.key=="string")if(z.keys[P.key.toUpperCase()]!=null)P.key=z.keys[P.key.toUpperCase()];elseif(P.key.length===1)P.key=P.key.toUpperCase().charCodeAt(0);elsereturnnull;returnP.shortKey&&(P[U]=P.shortKey,deleteP.shortKey),P}O.default=z,O.SHORTKEY=U},function(F,O,m){Object.defineProperty(O,"__esModule",{value:!0});varL=function(){functiona(o,r){vare=[],l=!0,E=!1,b=void0;try{for(varg=o[Symbol.iterator](),T;!(l=(T=g.next()).done)&&(e.push(T.value),!(r&&e.length===r));l=!0);}catch(p){E=!0,b=p}finally{try{!l&&g.return&&g.return()}finally{if(E)throwb}}returne}returnfunction(o,r){if(Array.isArray(o))returno;if(Symbol.iteratorinObject(o))returna(o,r);thrownewTypeError("Invalid attempt to destructure non-iterable instance")}}(),S=functiona(o,r,e){o===null&&(o=Function.prototype);varl=Object.getOwnPropertyDescriptor(o,r);if(l===void0){varE=Object.getPrototypeOf(o);returnE===null?void0:a(E,r,e)}else{if("value"inl)returnl.value;varb=l.get;returnb===void0?void0:b.call(e)}},N=function(){functiona(o,r){for(vare=0;e<r.length;e++){varl=r[e];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"inl&&(l.writable=!0),Object.defineProperty(o,l.key,l)}}returnfunction(o,r,e){returnr&&a(o.prototype,r),e&&a(o,e),o}}(),y=m(0),d=t(y),f=m(7),i=t(f);functiont(a){returna&&a.__esModule?a:{default:a}}functionn(a,o){if(!(ainstanceofo))thrownewTypeError("Cannot call a class as a function")}functionh(a,o){if(!a)thrownewReferenceError("this hasn't been initialised - super() hasn't been called");returno&&(typeofo=="object"||typeofo=="function")?o:a}functionu(a,o){if(typeofo!="function"&&o!==null)thrownewTypeError("Super expression must either be null or a function, not "+typeofo);a.prototype=Object.create(o&&o.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),o&&(Object.setPrototypeOf?Object.setPrototypeOf(a,o):a.__proto__=o)}varc=function(a){u(o,a),N(o,null,[{key:"value",value:function(){}}]);functiono(r,e){n(this,o);varl=h(this,(o.__proto__||Object.getPrototypeOf(o)).call(this,r));returnl.selection=e,l.textNode=document.createTextNode(o.CONTENTS),l.domNode.appendChild(l.textNode),l._length=0,l}returnN(o,[{key:"detach",value:function(){this.parent!=null&&this.parent.removeChild(this)}},{key:"format",value:function(e,l){if(this._length!==0)returnS(o.prototype.__proto__||Object.getPrototypeOf(o.prototype),"format",this).call(this,e,l);for(varE=this,b=0;E!=null&&E.statics.scope!==d.default.Scope.BLOCK_BLOT;)b+=E.offset(E.parent),E=E.parent;E!=null&&(this._length=o.CONTENTS.length,E.optimize(),E.formatAt(b,o.CONTENTS.length,e,l),this._length=0)}},{key:"index",value:function(e,l){returne===this.textNode?0:S(o.prototype.__proto__||Object.getPrototypeOf(o.prototype),"index",this).call(this,e,l)}},{key:"length",value:function(){returnthis._length}},{key:"position",value:function(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function(){S(o.prototype.__proto__||Object.getPrototypeOf(o.prototype),"remove",this).call(this),this.parent=null}},{key:"restore",value:function(){if(!(this.selection.composing||this.parent==null)){vare=this.textNode,l=this.selection.getNativeRange(),E=void0,b=void0,g=void0;if(l!=null&&l.start.node===e&&l.end.node===e){varT=[e,l.start.offset,l.end.offset];E=T[0],b=T[1],g=T[2]}for(;this.domNode.lastChild!=null&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.last
`):e.attributes!=null?Object.keys(e.attributes).some(function(l){return N.default.query(l,N.default.Scope.BLOCK)!=null}):!1}function o(r){var e=r.reduce(function(E,b){return E+=b.delete||0,E},0),l=r.length()-e;return a(r)&&(l-=1),l}O.default=c,O.getLastChangeIndex=o},function(F,O,m){Object.defineProperty(O,"__esModule",{value:!0}),O.default=O.BaseTooltip=void 0;var L=function(){function R(j,H){for(var M=0;M<H.length;M++){var P=H[M];P.enumerable=P.enumerable||!1,P.configurable=!0,"value"in P&&(P.writable=!0),Object.defineProperty(j,P.key,P)}}return function(j,H,M){return H&&R(j.prototype,H),M&&R(j,M),j}}(),S=function R(j,H,M){j===null&&(j=Function.prototype);var P=Object.getOwnPropertyDescriptor(j,H);if(P===void 0){var B=Object.getPrototypeOf(j);return B===null?void 0:R(B,H,M)}else{if("value"in P)return P.value;var K=P.get;return K===void 0?void 0:K.call(M)}},N=m(3),y=T(N),d=m(2),f=T(d),i=m(8),t=T(i),n=m(23),h=T(n),u=m(34),c=T(u),a=m(59),o=T(a),r=m(60),e=T(r),l=m(28),E=T(l),b=m(61),g=T(b);function T(R){return R&&R.__esModule?R:{default:R}}function p(R,j){if(!(R instanceof j))throw new TypeError("Cannot call a class as a function")}function v(R,j){if(!R)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return j&&(typeof j=="object"||typeof j=="function")?j:R}function _(R,j){if(typeof j!="function"&&j!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof j);R.prototype=Object.create(j&&j.prototype,{constructor:{value:R,enumerable:!1,writable:!0,configurable:!0}}),j&&(Object.setPrototypeOf?Object.setPrototypeOf(R,j):R.__proto__=j)}var w=[!1,"center","right","justify"],x=["#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"],I=[!1,"serif","monospace"],U=["1","2","3",!1],z=["small",!1,"large","huge"],Z=function(R){_(j,R);function j(H,M){p(this,j);var P=v(this,(j.__proto__||Object.getPrototypeOf(j)).call(this,H,M)),B=function K(G){if(!document.body.contains(H.root))return document.body.removeEventListener("click",K);P.tooltip!=null&&!P.tooltip.root.contains(G.target)&&document.activeElement!==P.tooltip.textbox&&!P.quill.hasFocus()&&P.tooltip.hide(),P.pickers!=null&&P.pickers.forEach(function(Y){Y.container.contains(G.target)||Y.close()})};return H.emitter.listenDOM("click",document.body,B),P}return L(j,[{key:"addModule",value:function(M){var P=S(j.prototype.__proto__||Object.getPrototypeOf(j.prototype),"addModule",this).call(this,M);return M==="toolbar"&&this.extendToolbar(P),P}},{key:"buildButtons",value:function(M,P){M.forEach(function(B){var K=B.getAttribute("class")||"";K.split(/\s+/).forEach(function(G){if(G.startsWith("ql-")&&(G=G.slice(3),P[G]!=null))if(G==="direction")B.innerHTML=P[G][""]+P[G].rtl;else if(typeof P[G]=="string")B.innerHTML=P[G];else{var Y=B.value||"";Y!=null&&P[G][Y]&&(B.innerHTML=P[G][Y])}})})}},{key:"buildPickers",value:function(M,P){var B=this;this.pickers=M.map(function(G){if(G.classList.contains("ql-align"))return G.querySelector("option")==null&&A(G,w),new e.default(G,P.align);if(G.classList.contains("ql-background")||G.classList.contains("ql-color")){var Y=G.classList.contains("ql-background")?"background":"color";return G.querySelector("option")==null&&A(G,x,Y==="background"?"#ffffff":"#000000"),new o.default(G,P[Y])}else return G.querySelector("option")==null&&(G.classList.contains("ql-font")?A(G,I):G.classList.contains("ql-header")?A(G,U):G.classList.contains("ql-size")&&A(G,z)),new E.default(G)});var K=function(){B.pickers.forEach(function(Y){Y.update()})};this.quill.on(t.default.events.EDITOR_CHANGE,K)}}]),j}(c.default);Z.DEFAULTS=(0,y.default)(!0,{},c.default.DEFAULTS,{modules:{toolbar:{handlers:{formula:function(){this.quill.theme.tooltip.edit("formula")},image:function(){var j=this,H=this.container.querySelector("input.ql-i
`)}returnW}functionmt($,W){varQ={},J=$.style||{};returnJ.fontStyle&&H($).fontStyle==="italic"&&(Q.italic=!0),J.fontWeight&&(H($).fontWeight.startsWith("bold")||parseInt(H($).fontWeight)>=700)&&(Q.bold=!0),Object.keys(Q).length>0&&(W=j(W,Q)),parseFloat(J.textIndent||0)>0&&(W=newi.default().insert(" ").concat(W)),W}functiongt($,W){varQ=$.data;if($.parentNode.tagName==="O:P")returnW.insert(Q.trim());if(Q.trim().length===0&&$.parentNode.classList.contains("ql-clipboard"))returnW;if(!H($.parentNode).whiteSpace.startsWith("pre")){varJ=function(at,rt){returnrt=rt.replace(/[^\u00a0]/g,""),rt.length<1&&at?" ":rt};Q=Q.replace(/\r\n/g," ").replace(/\n/g," "),Q=Q.replace(/\s\s+/g,J.bind(J,!0)),($.previousSibling==null&&P($.parentNode)||$.previousSibling!=null&&P($.previousSibling))&&(Q=Q.replace(/^\s+/,J.bind(J,!1))),($.nextSibling==null&&P($.parentNode)||$.nextSibling!=null&&P($.nextSibling))&&(Q=Q.replace(/\s+$/,J.bind(J,!1)))}returnW.insert(Q)}O.default=R,O.matchAttributor=G,O.matchBlot=Y,O.matchNewline=ut,O.matchSpacing=st,O.matchText=gt},function(F,O,m){Object.defineProperty(O,"__esModule",{value:!0});varL=function(){functionh(u,c){for(vara=0;a<c.length;a++){varo=c[a];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"ino&&(o.writable=!0),Object.defineProperty(u,o.key,o)}}returnfunction(u,c,a){returnc&&h(u.prototype,c),a&&h(u,a),u}}(),S=functionh(u,c,a){u===null&&(u=Function.prototype);varo=Object.getOwnPropertyDescriptor(u,c);if(o===void0){varr=Object.getPrototypeOf(u);returnr===null?void0:h(r,c,a)}else{if("value"ino)returno.value;vare=o.get;returne===void0?void0:e.call(a)}},N=m(6),y=d(N);functiond(h){returnh&&h.__esModule?h:{default:h}}functionf(h,u){if(!(hinstanceofu))thrownewTypeError("Cannot call a class as a function")}functioni(h,u){if(!h)thrownewReferenceError("this hasn't been initialised - super() hasn't been called");returnu&&(typeofu=="object"||typeofu=="function")?u:h}functiont(h,u){if(typeofu!="function"&&u!==null)thrownewTypeError("Super expression must either be null or a function, not "+typeofu);h.prototype=Object.create(u&&u.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}}),u&&(Object.setPrototypeOf?Object.setPrototypeOf(h,u):h.__proto__=u)}varn=function(h){t(u,h);functionu(){returnf(this,u),i(this,(u.__proto__||Object.getPrototypeOf(u)).apply(this,arguments))}returnL(u,[{key:"optimize",value:function(a){S(u.prototype.__proto__||Object.getPrototypeOf(u.prototype),"optimize",this).call(this,a),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){returnS(u.__proto__||Object.getPrototypeOf(u),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),u}(y.default);n.blotName="bold",n.tagName=["STRONG","B"],O.default=n},function(F,O,m){Object.defineProperty(O,"__esModule",{value:!0}),O.addControls=O.default=void0;varL=function(){functionv(_,w){varx=[],I=!0,U=!1,z=void0;try{for(varZ=_[Symbol.iterator](),C;!(I=(C=Z.next()).done)&&(x.push(C.value),!(w&&x.length===w));I=!0);}catch(q){U=!0,z=q}finally{try{!I&&Z.return&&Z.return()}finally{if(U)throwz}}returnx}returnfunction(_,w){if(Array.isArray(_))return_;if(Symbol.iteratorinObject(_))returnv(_,w);thrownewTypeError("Invalid attempt to destructure non-iterable instance")}}(),S=function(){functionv(_,w){for(varx=0;x<w.length;x++){varI=w[x];I.enumerable=I.enumerable||!1,I.configurable=!0,"value"inI&&(I.writable=!0),Object.defineProperty(_,I.key,I)}}returnfunction(_,w,x){returnw&&v(_.prototype,w),x&&v(_,x),_}}(),N=m(2),y=a(N),d=m(0),f=a(d),i=m(5),t=a(i),n=m(10),h=a(n),u=m(9),c=a(u);functiona(v){returnv&&v.__esModule?v:{default:v}}functiono(v,_,w){return_inv?Object.defineProperty(v,_,{value:w,enumerable:!0,configurable:!0,writable:!0}):v[_]=w,v}functionr(v,_){if(!(vinstanceof_))thrownewTypeError("Cannot call a class as a function")}functione(v,_){if(!v)thrownewReferenceError("this hasn't been initialised - super() hasn't been called");return_&&(typeof_=="object"||typeof