0xV3NOMx
Linux ip-172-26-7-228 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64



Your IP : 18.117.145.41


Current Path : /var/www/qpms/assets/
Upload File :
Current File : /var/www/qpms/assets/PrepareThQp-BLzjOsVu.js

import{r as ve,I as tn,a as nn,Q as pe,T as rn,U as on,x as Mt,H as an,t as V,B as ce,D as Dt,F as je,G as ln,v as at,E as un,V as sn,L as lt,O as fn}from"./index-C8M3lyNu.js";import{a as cn,u as hn}from"./PrepareQp-CPEkJNV0.js";import{k as dn}from"./sem-xL-Ac5nH.js";import{R as Ve}from"./index-C1EEZ13m.js";import{R as qe,C as de}from"./row-B_crsxDb.js";import{U as Ee,R as Ae}from"./UploadOutlined-Cc55QJY4.js";import{S as Ye}from"./index-Bhb34QNg.js";import{R as Ct}from"./ArrowLeftOutlined-DFfMxdNg.js";import{R as vn}from"./FilePdfOutlined-DZ7XPEq8.js";import{R as pn}from"./HomeOutlined-C5ZSuxRe.js";import"./responsiveObserver-iG098kB7.js";import"./DeleteOutlined-B0vOf_cF.js";var yn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M869 487.8L491.2 159.9c-2.9-2.5-6.6-3.9-10.5-3.9h-88.5c-7.4 0-10.8 9.2-5.2 14l350.2 304H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h585.1L386.9 854c-5.6 4.9-2.2 14 5.2 14h91.5c1.9 0 3.8-.7 5.2-2L869 536.2a32.07 32.07 0 000-48.4z"}}]},name:"arrow-right",theme:"outlined"},gn=function(R,_){return ve.createElement(tn,nn({},R,{ref:_,icon:yn}))},mn=ve.forwardRef(gn);function bn(){this.__data__=[],this.size=0}var _n=bn;function On(x,R){return x===R||x!==x&&R!==R}var Bt=On,En=Bt;function An(x,R){for(var _=x.length;_--;)if(En(x[_][0],R))return _;return-1}var $e=An,xn=$e,wn=Array.prototype,Tn=wn.splice;function kn(x){var R=this.__data__,_=xn(R,x);if(_<0)return!1;var s=R.length-1;return _==s?R.pop():Tn.call(R,_,1),--this.size,!0}var Nn=kn,Sn=$e;function Pn(x){var R=this.__data__,_=Sn(R,x);return _<0?void 0:R[_][1]}var jn=Pn,qn=$e;function Ln(x){return qn(this.__data__,x)>-1}var Rn=Ln,In=$e;function Mn(x,R){var _=this.__data__,s=In(_,x);return s<0?(++this.size,_.push([x,R])):_[s][1]=R,this}var Dn=Mn,Cn=_n,Bn=Nn,$n=jn,Fn=Rn,Un=Dn;function we(x){var R=-1,_=x==null?0:x.length;for(this.clear();++R<_;){var s=x[R];this.set(s[0],s[1])}}we.prototype.clear=Cn;we.prototype.delete=Bn;we.prototype.get=$n;we.prototype.has=Fn;we.prototype.set=Un;var Fe=we,Hn=Fe;function zn(){this.__data__=new Hn,this.size=0}var Kn=zn;function Gn(x){var R=this.__data__,_=R.delete(x);return this.size=R.size,_}var Vn=Gn;function Wn(x){return this.__data__.get(x)}var Zn=Wn;function Qn(x){return this.__data__.has(x)}var Yn=Qn,Xn=typeof pe=="object"&&pe&&pe.Object===Object&&pe,$t=Xn,Jn=$t,er=typeof self=="object"&&self&&self.Object===Object&&self,tr=Jn||er||Function("return this")(),be=tr,nr=be,rr=nr.Symbol,rt=rr,ut=rt,Ft=Object.prototype,ir=Ft.hasOwnProperty,or=Ft.toString,Le=ut?ut.toStringTag:void 0;function ar(x){var R=ir.call(x,Le),_=x[Le];try{x[Le]=void 0;var s=!0}catch{}var d=or.call(x);return s&&(R?x[Le]=_:delete x[Le]),d}var lr=ar,ur=Object.prototype,sr=ur.toString;function fr(x){return sr.call(x)}var cr=fr,st=rt,hr=lr,dr=cr,vr="[object Null]",pr="[object Undefined]",ft=st?st.toStringTag:void 0;function yr(x){return x==null?x===void 0?pr:vr:ft&&ft in Object(x)?hr(x):dr(x)}var Ue=yr;function gr(x){var R=typeof x;return x!=null&&(R=="object"||R=="function")}var Ut=gr,mr=Ue,br=Ut,_r="[object AsyncFunction]",Or="[object Function]",Er="[object GeneratorFunction]",Ar="[object Proxy]";function xr(x){if(!br(x))return!1;var R=mr(x);return R==Or||R==Er||R==_r||R==Ar}var Ht=xr,wr=be,Tr=wr["__core-js_shared__"],kr=Tr,We=kr,ct=function(){var x=/[^.]+$/.exec(We&&We.keys&&We.keys.IE_PROTO||"");return x?"Symbol(src)_1."+x:""}();function Nr(x){return!!ct&&ct in x}var Sr=Nr,Pr=Function.prototype,jr=Pr.toString;function qr(x){if(x!=null){try{return jr.call(x)}catch{}try{return x+""}catch{}}return""}var zt=qr,Lr=Ht,Rr=Sr,Ir=Ut,Mr=zt,Dr=/[\\^$.*+?()[\]{}|]/g,Cr=/^\[object .+?Constructor\]$/,Br=Function.prototype,$r=Object.prototype,Fr=Br.toString,Ur=$r.hasOwnProperty,Hr=RegExp("^"+Fr.call(Ur).replace(Dr,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function zr(x){if(!Ir(x)||Rr(x))return!1;var R=Lr(x)?Hr:Cr;return R.test(Mr(x))}var Kr=zr;function Gr(x,R){return x==null?void 0:x[R]}var Vr=Gr,Wr=Kr,Zr=Vr;function Qr(x,R){var _=Zr(x,R);return Wr(_)?_:void 0}var Te=Qr,Yr=Te,Xr=be,Jr=Yr(Xr,"Map"),it=Jr,ei=Te,ti=ei(Object,"create"),He=ti,ht=He;function ni(){this.__data__=ht?ht(null):{},this.size=0}var ri=ni;function ii(x){var R=this.has(x)&&delete this.__data__[x];return this.size-=R?1:0,R}var oi=ii,ai=He,li="__lodash_hash_undefined__",ui=Object.prototype,si=ui.hasOwnProperty;function fi(x){var R=this.__data__;if(ai){var _=R[x];return _===li?void 0:_}return si.call(R,x)?R[x]:void 0}var ci=fi,hi=He,di=Object.prototype,vi=di.hasOwnProperty;function pi(x){var R=this.__data__;return hi?R[x]!==void 0:vi.call(R,x)}var yi=pi,gi=He,mi="__lodash_hash_undefined__";function bi(x,R){var _=this.__data__;return this.size+=this.has(x)?0:1,_[x]=gi&&R===void 0?mi:R,this}var _i=bi,Oi=ri,Ei=oi,Ai=ci,xi=yi,wi=_i;function ke(x){var R=-1,_=x==null?0:x.length;for(this.clear();++R<_;){var s=x[R];this.set(s[0],s[1])}}ke.prototype.clear=Oi;ke.prototype.delete=Ei;ke.prototype.get=Ai;ke.prototype.has=xi;ke.prototype.set=wi;var Ti=ke,dt=Ti,ki=Fe,Ni=it;function Si(){this.size=0,this.__data__={hash:new dt,map:new(Ni||ki),string:new dt}}var Pi=Si;function ji(x){var R=typeof x;return R=="string"||R=="number"||R=="symbol"||R=="boolean"?x!=="__proto__":x===null}var qi=ji,Li=qi;function Ri(x,R){var _=x.__data__;return Li(R)?_[typeof R=="string"?"string":"hash"]:_.map}var ze=Ri,Ii=ze;function Mi(x){var R=Ii(this,x).delete(x);return this.size-=R?1:0,R}var Di=Mi,Ci=ze;function Bi(x){return Ci(this,x).get(x)}var $i=Bi,Fi=ze;function Ui(x){return Fi(this,x).has(x)}var Hi=Ui,zi=ze;function Ki(x,R){var _=zi(this,x),s=_.size;return _.set(x,R),this.size+=_.size==s?0:1,this}var Gi=Ki,Vi=Pi,Wi=Di,Zi=$i,Qi=Hi,Yi=Gi;function Ne(x){var R=-1,_=x==null?0:x.length;for(this.clear();++R<_;){var s=x[R];this.set(s[0],s[1])}}Ne.prototype.clear=Vi;Ne.prototype.delete=Wi;Ne.prototype.get=Zi;Ne.prototype.has=Qi;Ne.prototype.set=Yi;var Kt=Ne,Xi=Fe,Ji=it,eo=Kt,to=200;function no(x,R){var _=this.__data__;if(_ instanceof Xi){var s=_.__data__;if(!Ji||s.length<to-1)return s.push([x,R]),this.size=++_.size,this;_=this.__data__=new eo(s)}return _.set(x,R),this.size=_.size,this}var ro=no,io=Fe,oo=Kn,ao=Vn,lo=Zn,uo=Yn,so=ro;function Se(x){var R=this.__data__=new io(x);this.size=R.size}Se.prototype.clear=oo;Se.prototype.delete=ao;Se.prototype.get=lo;Se.prototype.has=uo;Se.prototype.set=so;var fo=Se,co="__lodash_hash_undefined__";function ho(x){return this.__data__.set(x,co),this}var vo=ho;function po(x){return this.__data__.has(x)}var yo=po,go=Kt,mo=vo,bo=yo;function Me(x){var R=-1,_=x==null?0:x.length;for(this.__data__=new go;++R<_;)this.add(x[R])}Me.prototype.add=Me.prototype.push=mo;Me.prototype.has=bo;var _o=Me;function Oo(x,R){for(var _=-1,s=x==null?0:x.length;++_<s;)if(R(x[_],_,x))return!0;return!1}var Eo=Oo;function Ao(x,R){return x.has(R)}var xo=Ao,wo=_o,To=Eo,ko=xo,No=1,So=2;function Po(x,R,_,s,d,k){var w=_&No,O=x.length,y=R.length;if(O!=y&&!(w&&y>O))return!1;var v=k.get(x),h=k.get(R);if(v&&h)return v==R&&h==x;var o=-1,e=!0,t=_&So?new wo:void 0;for(k.set(x,R),k.set(R,x);++o<O;){var u=x[o],a=R[o];if(s)var l=w?s(a,u,o,R,x,k):s(u,a,o,x,R,k);if(l!==void 0){if(l)continue;e=!1;break}if(t){if(!To(R,function(r,i){if(!ko(t,i)&&(u===r||d(u,r,_,s,k)))return t.push(i)})){e=!1;break}}else if(!(u===a||d(u,a,_,s,k))){e=!1;break}}return k.delete(x),k.delete(R),e}var Gt=Po,jo=be,qo=jo.Uint8Array,Lo=qo;function Ro(x){var R=-1,_=Array(x.size);return x.forEach(function(s,d){_[++R]=[d,s]}),_}var Io=Ro;function Mo(x){var R=-1,_=Array(x.size);return x.forEach(function(s){_[++R]=s}),_}var Do=Mo,vt=rt,pt=Lo,Co=Bt,Bo=Gt,$o=Io,Fo=Do,Uo=1,Ho=2,zo="[object Boolean]",Ko="[object Date]",Go="[object Error]",Vo="[object Map]",Wo="[object Number]",Zo="[object RegExp]",Qo="[object Set]",Yo="[object String]",Xo="[object Symbol]",Jo="[object ArrayBuffer]",ea="[object DataView]",yt=vt?vt.prototype:void 0,Ze=yt?yt.valueOf:void 0;function ta(x,R,_,s,d,k,w){switch(_){case ea:if(x.byteLength!=R.byteLength||x.byteOffset!=R.byteOffset)return!1;x=x.buffer,R=R.buffer;case Jo:return!(x.byteLength!=R.byteLength||!k(new pt(x),new pt(R)));case zo:case Ko:case Wo:return Co(+x,+R);case Go:return x.name==R.name&&x.message==R.message;case Zo:case Yo:return x==R+"";case Vo:var O=$o;case Qo:var y=s&Uo;if(O||(O=Fo),x.size!=R.size&&!y)return!1;var v=w.get(x);if(v)return v==R;s|=Ho,w.set(x,R);var h=Bo(O(x),O(R),s,d,k,w);return w.delete(x),h;case Xo:if(Ze)return Ze.call(x)==Ze.call(R)}return!1}var na=ta;function ra(x,R){for(var _=-1,s=R.length,d=x.length;++_<s;)x[d+_]=R[_];return x}var ia=ra,oa=Array.isArray,ot=oa,aa=ia,la=ot;function ua(x,R,_){var s=R(x);return la(x)?s:aa(s,_(x))}var sa=ua;function fa(x,R){for(var _=-1,s=x==null?0:x.length,d=0,k=[];++_<s;){var w=x[_];R(w,_,x)&&(k[d++]=w)}return k}var ca=fa;function ha(){return[]}var da=ha,va=ca,pa=da,ya=Object.prototype,ga=ya.propertyIsEnumerable,gt=Object.getOwnPropertySymbols,ma=gt?function(x){return x==null?[]:(x=Object(x),va(gt(x),function(R){return ga.call(x,R)}))}:pa,ba=ma;function _a(x,R){for(var _=-1,s=Array(x);++_<x;)s[_]=R(_);return s}var Oa=_a;function Ea(x){return x!=null&&typeof x=="object"}var Ke=Ea,Aa=Ue,xa=Ke,wa="[object Arguments]";function Ta(x){return xa(x)&&Aa(x)==wa}var ka=Ta,mt=ka,Na=Ke,Vt=Object.prototype,Sa=Vt.hasOwnProperty,Pa=Vt.propertyIsEnumerable,ja=mt(function(){return arguments}())?mt:function(x){return Na(x)&&Sa.call(x,"callee")&&!Pa.call(x,"callee")},qa=ja,De={exports:{}};function La(){return!1}var Ra=La;De.exports;(function(x,R){var _=be,s=Ra,d=R&&!R.nodeType&&R,k=d&&!0&&x&&!x.nodeType&&x,w=k&&k.exports===d,O=w?_.Buffer:void 0,y=O?O.isBuffer:void 0,v=y||s;x.exports=v})(De,De.exports);var Wt=De.exports,Ia=9007199254740991,Ma=/^(?:0|[1-9]\d*)$/;function Da(x,R){var _=typeof x;return R=R??Ia,!!R&&(_=="number"||_!="symbol"&&Ma.test(x))&&x>-1&&x%1==0&&x<R}var Ca=Da,Ba=9007199254740991;function $a(x){return typeof x=="number"&&x>-1&&x%1==0&&x<=Ba}var Zt=$a,Fa=Ue,Ua=Zt,Ha=Ke,za="[object Arguments]",Ka="[object Array]",Ga="[object Boolean]",Va="[object Date]",Wa="[object Error]",Za="[object Function]",Qa="[object Map]",Ya="[object Number]",Xa="[object Object]",Ja="[object RegExp]",el="[object Set]",tl="[object String]",nl="[object WeakMap]",rl="[object ArrayBuffer]",il="[object DataView]",ol="[object Float32Array]",al="[object Float64Array]",ll="[object Int8Array]",ul="[object Int16Array]",sl="[object Int32Array]",fl="[object Uint8Array]",cl="[object Uint8ClampedArray]",hl="[object Uint16Array]",dl="[object Uint32Array]",le={};le[ol]=le[al]=le[ll]=le[ul]=le[sl]=le[fl]=le[cl]=le[hl]=le[dl]=!0;le[za]=le[Ka]=le[rl]=le[Ga]=le[il]=le[Va]=le[Wa]=le[Za]=le[Qa]=le[Ya]=le[Xa]=le[Ja]=le[el]=le[tl]=le[nl]=!1;function vl(x){return Ha(x)&&Ua(x.length)&&!!le[Fa(x)]}var pl=vl;function yl(x){return function(R){return x(R)}}var gl=yl,Ce={exports:{}};Ce.exports;(function(x,R){var _=$t,s=R&&!R.nodeType&&R,d=s&&!0&&x&&!x.nodeType&&x,k=d&&d.exports===s,w=k&&_.process,O=function(){try{var y=d&&d.require&&d.require("util").types;return y||w&&w.binding&&w.binding("util")}catch{}}();x.exports=O})(Ce,Ce.exports);var ml=Ce.exports,bl=pl,_l=gl,bt=ml,_t=bt&&bt.isTypedArray,Ol=_t?_l(_t):bl,Qt=Ol,El=Oa,Al=qa,xl=ot,wl=Wt,Tl=Ca,kl=Qt,Nl=Object.prototype,Sl=Nl.hasOwnProperty;function Pl(x,R){var _=xl(x),s=!_&&Al(x),d=!_&&!s&&wl(x),k=!_&&!s&&!d&&kl(x),w=_||s||d||k,O=w?El(x.length,String):[],y=O.length;for(var v in x)(R||Sl.call(x,v))&&!(w&&(v=="length"||d&&(v=="offset"||v=="parent")||k&&(v=="buffer"||v=="byteLength"||v=="byteOffset")||Tl(v,y)))&&O.push(v);return O}var jl=Pl,ql=Object.prototype;function Ll(x){var R=x&&x.constructor,_=typeof R=="function"&&R.prototype||ql;return x===_}var Rl=Ll;function Il(x,R){return function(_){return x(R(_))}}var Ml=Il,Dl=Ml,Cl=Dl(Object.keys,Object),Bl=Cl,$l=Rl,Fl=Bl,Ul=Object.prototype,Hl=Ul.hasOwnProperty;function zl(x){if(!$l(x))return Fl(x);var R=[];for(var _ in Object(x))Hl.call(x,_)&&_!="constructor"&&R.push(_);return R}var Kl=zl,Gl=Ht,Vl=Zt;function Wl(x){return x!=null&&Vl(x.length)&&!Gl(x)}var Zl=Wl,Ql=jl,Yl=Kl,Xl=Zl;function Jl(x){return Xl(x)?Ql(x):Yl(x)}var eu=Jl,tu=sa,nu=ba,ru=eu;function iu(x){return tu(x,ru,nu)}var ou=iu,Ot=ou,au=1,lu=Object.prototype,uu=lu.hasOwnProperty;function su(x,R,_,s,d,k){var w=_&au,O=Ot(x),y=O.length,v=Ot(R),h=v.length;if(y!=h&&!w)return!1;for(var o=y;o--;){var e=O[o];if(!(w?e in R:uu.call(R,e)))return!1}var t=k.get(x),u=k.get(R);if(t&&u)return t==R&&u==x;var a=!0;k.set(x,R),k.set(R,x);for(var l=w;++o<y;){e=O[o];var r=x[e],i=R[e];if(s)var f=w?s(i,r,e,R,x,k):s(r,i,e,x,R,k);if(!(f===void 0?r===i||d(r,i,_,s,k):f)){a=!1;break}l||(l=e=="constructor")}if(a&&!l){var n=x.constructor,c=R.constructor;n!=c&&"constructor"in x&&"constructor"in R&&!(typeof n=="function"&&n instanceof n&&typeof c=="function"&&c instanceof c)&&(a=!1)}return k.delete(x),k.delete(R),a}var fu=su,cu=Te,hu=be,du=cu(hu,"DataView"),vu=du,pu=Te,yu=be,gu=pu(yu,"Promise"),mu=gu,bu=Te,_u=be,Ou=bu(_u,"Set"),Eu=Ou,Au=Te,xu=be,wu=Au(xu,"WeakMap"),Tu=wu,Xe=vu,Je=it,et=mu,tt=Eu,nt=Tu,Yt=Ue,Pe=zt,Et="[object Map]",ku="[object Object]",At="[object Promise]",xt="[object Set]",wt="[object WeakMap]",Tt="[object DataView]",Nu=Pe(Xe),Su=Pe(Je),Pu=Pe(et),ju=Pe(tt),qu=Pe(nt),Oe=Yt;(Xe&&Oe(new Xe(new ArrayBuffer(1)))!=Tt||Je&&Oe(new Je)!=Et||et&&Oe(et.resolve())!=At||tt&&Oe(new tt)!=xt||nt&&Oe(new nt)!=wt)&&(Oe=function(x){var R=Yt(x),_=R==ku?x.constructor:void 0,s=_?Pe(_):"";if(s)switch(s){case Nu:return Tt;case Su:return Et;case Pu:return At;case ju:return xt;case qu:return wt}return R});var Lu=Oe,Qe=fo,Ru=Gt,Iu=na,Mu=fu,kt=Lu,Nt=ot,St=Wt,Du=Qt,Cu=1,Pt="[object Arguments]",jt="[object Array]",Ie="[object Object]",Bu=Object.prototype,qt=Bu.hasOwnProperty;function $u(x,R,_,s,d,k){var w=Nt(x),O=Nt(R),y=w?jt:kt(x),v=O?jt:kt(R);y=y==Pt?Ie:y,v=v==Pt?Ie:v;var h=y==Ie,o=v==Ie,e=y==v;if(e&&St(x)){if(!St(R))return!1;w=!0,h=!1}if(e&&!h)return k||(k=new Qe),w||Du(x)?Ru(x,R,_,s,d,k):Iu(x,R,y,_,s,d,k);if(!(_&Cu)){var t=h&&qt.call(x,"__wrapped__"),u=o&&qt.call(R,"__wrapped__");if(t||u){var a=t?x.value():x,l=u?R.value():R;return k||(k=new Qe),d(a,l,_,s,k)}}return e?(k||(k=new Qe),Mu(x,R,_,s,d,k)):!1}var Fu=$u,Uu=Fu,Lt=Ke;function Xt(x,R,_,s,d){return x===R?!0:x==null||R==null||!Lt(x)&&!Lt(R)?x!==x&&R!==R:Uu(x,R,_,s,Xt,d)}var Hu=Xt,zu=Hu;function Ku(x,R){return zu(x,R)}var Gu=Ku,Jt={exports:{}};/*!
 * Quill Editor v1.3.7
 * https://quilljs.com/
 * Copyright (c) 2014, Jason Chen
 * Copyright (c) 2013, salesforce.com
 */(function(x,R){(function(s,d){x.exports=d()})(typeof self<"u"?self:pe,function(){return function(_){var s={};function d(k){if(s[k])return s[k].exports;var w=s[k]={i:k,l:!1,exports:{}};return _[k].call(w.exports,w,w.exports,d),w.l=!0,w.exports}return d.m=_,d.c=s,d.d=function(k,w,O){d.o(k,w)||Object.defineProperty(k,w,{configurable:!1,enumerable:!0,get:O})},d.n=function(k){var w=k&&k.__esModule?function(){return k.default}:function(){return k};return d.d(w,"a",w),w},d.o=function(k,w){return Object.prototype.hasOwnProperty.call(k,w)},d.p="",d(d.s=109)}([function(_,s,d){Object.defineProperty(s,"__esModule",{value:!0});var k=d(17),w=d(18),O=d(19),y=d(45),v=d(46),h=d(47),o=d(48),e=d(49),t=d(12),u=d(32),a=d(33),l=d(31),r=d(1),i={Scope:r.Scope,create:r.create,find:r.find,query:r.query,register:r.register,Container:k.default,Format:w.default,Leaf:O.default,Embed:o.default,Scroll:y.default,Block:h.default,Inline:v.default,Text:e.default,Attributor:{Attribute:t.default,Class:u.default,Style:a.default,Store:l.default}};s.default=i},function(_,s,d){var k=this&&this.__extends||function(){var l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var f in i)i.hasOwnProperty(f)&&(r[f]=i[f])};return function(r,i){l(r,i);function f(){this.constructor=r}r.prototype=i===null?Object.create(i):(f.prototype=i.prototype,new f)}}();Object.defineProperty(s,"__esModule",{value:!0});var w=function(l){k(r,l);function r(i){var f=this;return i="[Parchment] "+i,f=l.call(this,i)||this,f.message=i,f.name=f.constructor.name,f}return r}(Error);s.ParchmentError=w;var O={},y={},v={},h={};s.DATA_KEY="__blot";var o;(function(l){l[l.TYPE=3]="TYPE",l[l.LEVEL=12]="LEVEL",l[l.ATTRIBUTE=13]="ATTRIBUTE",l[l.BLOT=14]="BLOT",l[l.INLINE=7]="INLINE",l[l.BLOCK=11]="BLOCK",l[l.BLOCK_BLOT=10]="BLOCK_BLOT",l[l.INLINE_BLOT=6]="INLINE_BLOT",l[l.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",l[l.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",l[l.ANY=15]="ANY"})(o=s.Scope||(s.Scope={}));function e(l,r){var i=u(l);if(i==null)throw new w("Unable to create "+l+" blot");var f=i,n=l instanceof Node||l.nodeType===Node.TEXT_NODE?l:f.create(r);return new f(n,r)}s.create=e;function t(l,r){return r===void 0&&(r=!1),l==null?null:l[s.DATA_KEY]!=null?l[s.DATA_KEY].blot:r?t(l.parentNode,r):null}s.find=t;function u(l,r){r===void 0&&(r=o.ANY);var i;if(typeof l=="string")i=h[l]||O[l];else if(l instanceof Text||l.nodeType===Node.TEXT_NODE)i=h.text;else if(typeof l=="number")l&o.LEVEL&o.BLOCK?i=h.block:l&o.LEVEL&o.INLINE&&(i=h.inline);else if(l instanceof HTMLElement){var f=(l.getAttribute("class")||"").split(/\s+/);for(var n in f)if(i=y[f[n]],i)break;i=i||v[l.tagName]}return i==null?null:r&o.LEVEL&i.scope&&r&o.TYPE&i.scope?i:null}s.query=u;function a(){for(var l=[],r=0;r<arguments.length;r++)l[r]=arguments[r];if(l.length>1)return l.map(function(n){return a(n)});var i=l[0];if(typeof i.blotName!="string"&&typeof i.attrName!="string")throw new w("Invalid definition");if(i.blotName==="abstract")throw new w("Cannot register abstract class");if(h[i.blotName||i.attrName]=i,typeof i.keyName=="string")O[i.keyName]=i;else if(i.className!=null&&(y[i.className]=i),i.tagName!=null){Array.isArray(i.tagName)?i.tagName=i.tagName.map(function(n){return n.toUpperCase()}):i.tagName=i.tagName.toUpperCase();var f=Array.isArray(i.tagName)?i.tagName:[i.tagName];f.forEach(function(n){(v[n]==null||i.className==null)&&(v[n]=i)})}return i}s.register=a},function(_,s,d){var k=d(51),w=d(11),O=d(3),y=d(20),v="\0",h=function(o){Array.isArray(o)?this.ops=o:o!=null&&Array.isArray(o.ops)?this.ops=o.ops:this.ops=[]};h.prototype.insert=function(o,e){var t={};return o.length===0?this:(t.insert=o,e!=null&&typeof e=="object"&&Object.keys(e).length>0&&(t.attributes=e),this.push(t))},h.prototype.delete=function(o){return o<=0?this:this.push({delete:o})},h.prototype.retain=function(o,e){if(o<=0)return this;var t={retain:o};return e!=null&&typeof e=="object"&&Object.keys(e).length>0&&(t.attributes=e),this.push(t)},h.prototype.push=function(o){var e=this.ops.length,t=this.ops[e-1];if(o=O(!0,{},o),typeof t=="object"){if(typeof o.delete=="number"&&typeof t.delete=="number")return this.ops[e-1]={delete:t.delete+o.delete},this;if(typeof t.delete=="number"&&o.insert!=null&&(e-=1,t=this.ops[e-1],typeof t!="object"))return this.ops.unshift(o),this;if(w(o.attributes,t.attributes)){if(typeof o.insert=="string"&&typeof t.insert=="string")return this.ops[e-1]={insert:t.insert+o.insert},typeof o.attributes=="object"&&(this.ops[e-1].attributes=o.attributes),this;if(typeof o.retain=="number"&&typeof t.retain=="number")return this.ops[e-1]={retain:t.retain+o.retain},typeof o.attributes=="object"&&(this.ops[e-1].attributes=o.attributes),this}}return e===this.ops.length?this.ops.push(o):this.ops.splice(e,0,o),this},h.prototype.chop=function(){var o=this.ops[this.ops.length-1];return o&&o.retain&&!o.attributes&&this.ops.pop(),this},h.prototype.filter=function(o){return this.ops.filter(o)},h.prototype.forEach=function(o){this.ops.forEach(o)},h.prototype.map=function(o){return this.ops.map(o)},h.prototype.partition=function(o){var e=[],t=[];return this.forEach(function(u){var a=o(u)?e:t;a.push(u)}),[e,t]},h.prototype.reduce=function(o,e){return this.ops.reduce(o,e)},h.prototype.changeLength=function(){return this.reduce(function(o,e){return e.insert?o+y.length(e):e.delete?o-e.delete:o},0)},h.prototype.length=function(){return this.reduce(function(o,e){return o+y.length(e)},0)},h.prototype.slice=function(o,e){o=o||0,typeof e!="number"&&(e=1/0);for(var t=[],u=y.iterator(this.ops),a=0;a<e&&u.hasNext();){var l;a<o?l=u.next(o-a):(l=u.next(e-a),t.push(l)),a+=y.length(l)}return new h(t)},h.prototype.compose=function(o){var e=y.iterator(this.ops),t=y.iterator(o.ops),u=[],a=t.peek();if(a!=null&&typeof a.retain=="number"&&a.attributes==null){for(var l=a.retain;e.peekType()==="insert"&&e.peekLength()<=l;)l-=e.peekLength(),u.push(e.next());a.retain-l>0&&t.next(a.retain-l)}for(var r=new h(u);e.hasNext()||t.hasNext();)if(t.peekType()==="insert")r.push(t.next());else if(e.peekType()==="delete")r.push(e.next());else{var i=Math.min(e.peekLength(),t.peekLength()),f=e.next(i),n=t.next(i);if(typeof n.retain=="number"){var c={};typeof f.retain=="number"?c.retain=i:c.insert=f.insert;var S=y.attributes.compose(f.attributes,n.attributes,typeof f.retain=="number");if(S&&(c.attributes=S),r.push(c),!t.hasNext()&&w(r.ops[r.ops.length-1],c)){var E=new h(e.rest());return r.concat(E).chop()}}else typeof n.delete=="number"&&typeof f.retain=="number"&&r.push(n)}return r.chop()},h.prototype.concat=function(o){var e=new h(this.ops.slice());return o.ops.length>0&&(e.push(o.ops[0]),e.ops=e.ops.concat(o.ops.slice(1))),e},h.prototype.diff=function(o,e){if(this.ops===o.ops)return new h;var t=[this,o].map(function(i){return i.map(function(f){if(f.insert!=null)return typeof f.insert=="string"?f.insert:v;var n=i===o?"on":"with";throw new Error("diff() called "+n+" non-document")}).join("")}),u=new h,a=k(t[0],t[1],e),l=y.iterator(this.ops),r=y.iterator(o.ops);return a.forEach(function(i){for(var f=i[1].length;f>0;){var n=0;switch(i[0]){case k.INSERT:n=Math.min(r.peekLength(),f),u.push(r.next(n));break;case k.DELETE:n=Math.min(f,l.peekLength()),l.next(n),u.delete(n);break;case k.EQUAL:n=Math.min(l.peekLength(),r.peekLength(),f);var c=l.next(n),S=r.next(n);w(c.insert,S.insert)?u.retain(n,y.attributes.diff(c.attributes,S.attributes)):u.push(S).delete(n);break}f-=n}}),u.chop()},h.prototype.eachLine=function(o,e){e=e||`
`;for(var t=y.iterator(this.ops),u=new h,a=0;t.hasNext();){if(t.peekType()!=="insert")return;var l=t.peek(),r=y.length(l)-t.peekLength(),i=typeof l.insert=="string"?l.insert.indexOf(e,r)-r:-1;if(i<0)u.push(t.next());else if(i>0)u.push(t.next(i));else{if(o(u,t.next(1).attributes||{},a)===!1)return;a+=1,u=new h}}u.length()>0&&o(u,{},a)},h.prototype.transform=function(o,e){if(e=!!e,typeof o=="number")return this.transformPosition(o,e);for(var t=y.iterator(this.ops),u=y.iterator(o.ops),a=new h;t.hasNext()||u.hasNext();)if(t.peekType()==="insert"&&(e||u.peekType()!=="insert"))a.retain(y.length(t.next()));else if(u.peekType()==="insert")a.push(u.next());else{var l=Math.min(t.peekLength(),u.peekLength()),r=t.next(l),i=u.next(l);if(r.delete)continue;i.delete?a.push(i):a.retain(l,y.attributes.transform(r.attributes,i.attributes,e))}return a.chop()},h.prototype.transformPosition=function(o,e){e=!!e;for(var t=y.iterator(this.ops),u=0;t.hasNext()&&u<=o;){var a=t.peekLength(),l=t.peekType();if(t.next(),l==="delete"){o-=Math.min(a,o-u);continue}else l==="insert"&&(u<o||!e)&&(o+=a);u+=a}return o},_.exports=h},function(_,s){var d=Object.prototype.hasOwnProperty,k=Object.prototype.toString,w=Object.defineProperty,O=Object.getOwnPropertyDescriptor,y=function(t){return typeof Array.isArray=="function"?Array.isArray(t):k.call(t)==="[object Array]"},v=function(t){if(!t||k.call(t)!=="[object Object]")return!1;var u=d.call(t,"constructor"),a=t.constructor&&t.constructor.prototype&&d.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!u&&!a)return!1;var l;for(l in t);return typeof l>"u"||d.call(t,l)},h=function(t,u){w&&u.name==="__proto__"?w(t,u.name,{enumerable:!0,configurable:!0,value:u.newValue,writable:!0}):t[u.name]=u.newValue},o=function(t,u){if(u==="__proto__")if(d.call(t,u)){if(O)return O(t,u).value}else return;return t[u]};_.exports=function e(){var t,u,a,l,r,i,f=arguments[0],n=1,c=arguments.length,S=!1;for(typeof f=="boolean"&&(S=f,f=arguments[1]||{},n=2),(f==null||typeof f!="object"&&typeof f!="function")&&(f={});n<c;++n)if(t=arguments[n],t!=null)for(u in t)a=o(f,u),l=o(t,u),f!==l&&(S&&l&&(v(l)||(r=y(l)))?(r?(r=!1,i=a&&y(a)?a:[]):i=a&&v(a)?a:{},h(f,{name:u,newValue:e(S,i,l)})):typeof l<"u"&&h(f,{name:u,newValue:l}));return f}},function(_,s,d){Object.defineProperty(s,"__esModule",{value:!0}),s.default=s.BlockEmbed=s.bubbleFormats=void 0;var k=function(){function p(g,N){for(var q=0;q<N.length;q++){var I=N[q];I.enumerable=I.enumerable||!1,I.configurable=!0,"value"in I&&(I.writable=!0),Object.defineProperty(g,I.key,I)}}return function(g,N,q){return N&&p(g.prototype,N),q&&p(g,q),g}}(),w=function p(g,N,q){g===null&&(g=Function.prototype);var I=Object.getOwnPropertyDescriptor(g,N);if(I===void 0){var F=Object.getPrototypeOf(g);return F===null?void 0:p(F,N,q)}else{if("value"in I)return I.value;var U=I.get;return U===void 0?void 0:U.call(q)}},O=d(3),y=f(O),v=d(2),h=f(v),o=d(0),e=f(o),t=d(16),u=f(t),a=d(6),l=f(a),r=d(7),i=f(r);function f(p){return p&&p.__esModule?p:{default:p}}function n(p,g){if(!(p instanceof g))throw new TypeError("Cannot call a class as a function")}function c(p,g){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:p}function S(p,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);p.prototype=Object.create(g&&g.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(p,g):p.__proto__=g)}var E=1,A=function(p){S(g,p);function g(){return n(this,g),c(this,(g.__proto__||Object.getPrototypeOf(g)).apply(this,arguments))}return k(g,[{key:"attach",value:function(){w(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"attach",this).call(this),this.attributes=new e.default.Attributor.Store(this.domNode)}},{key:"delta",value:function(){return new h.default().insert(this.value(),(0,y.default)(this.formats(),this.attributes.values()))}},{key:"format",value:function(q,I){var F=e.default.query(q,e.default.Scope.BLOCK_ATTRIBUTE);F!=null&&this.attributes.attribute(F,I)}},{key:"formatAt",value:function(q,I,F,U){this.format(F,U)}},{key:"insertAt",value:function(q,I,F){if(typeof I=="string"&&I.endsWith(`
`)){var U=e.default.create(j.blotName);this.parent.insertBefore(U,q===0?this:this.next),U.insertAt(0,I.slice(0,-1))}else w(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"insertAt",this).call(this,q,I,F)}}]),g}(e.default.Embed);A.scope=e.default.Scope.BLOCK_BLOT;var j=function(p){S(g,p);function g(N){n(this,g);var q=c(this,(g.__proto__||Object.getPrototypeOf(g)).call(this,N));return q.cache={},q}return k(g,[{key:"delta",value:function(){return this.cache.delta==null&&(this.cache.delta=this.descendants(e.default.Leaf).reduce(function(q,I){return I.length()===0?q:q.insert(I.value(),b(I))},new h.default).insert(`
`,b(this))),this.cache.delta}},{key:"deleteAt",value:function(q,I){w(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"deleteAt",this).call(this,q,I),this.cache={}}},{key:"formatAt",value:function(q,I,F,U){I<=0||(e.default.query(F,e.default.Scope.BLOCK)?q+I===this.length()&&this.format(F,U):w(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"formatAt",this).call(this,q,Math.min(I,this.length()-q-1),F,U),this.cache={})}},{key:"insertAt",value:function(q,I,F){if(F!=null)return w(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"insertAt",this).call(this,q,I,F);if(I.length!==0){var U=I.split(`
`),K=U.shift();K.length>0&&(q<this.length()-1||this.children.tail==null?w(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"insertAt",this).call(this,Math.min(q,this.length()-1),K):this.children.tail.insertAt(this.children.tail.length(),K),this.cache={});var D=this;U.reduce(function(P,m){return D=D.split(P,!0),D.insertAt(0,m),m.length},q+K.length)}}},{key:"insertBefore",value:function(q,I){var F=this.children.head;w(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"insertBefore",this).call(this,q,I),F instanceof u.default&&F.remove(),this.cache={}}},{key:"length",value:function(){return this.cache.length==null&&(this.cache.length=w(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"length",this).call(this)+E),this.cache.length}},{key:"moveChildren",value:function(q,I){w(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"moveChildren",this).call(this,q,I),this.cache={}}},{key:"optimize",value:function(q){w(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"optimize",this).call(this,q),this.cache={}}},{key:"path",value:function(q){return w(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"path",this).call(this,q,!0)}},{key:"removeChild",value:function(q){w(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"removeChild",this).call(this,q),this.cache={}}},{key:"split",value:function(q){var I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(I&&(q===0||q>=this.length()-E)){var F=this.clone();return q===0?(this.parent.insertBefore(F,this),this):(this.parent.insertBefore(F,this.next),F)}else{var U=w(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"split",this).call(this,q,I);return this.cache={},U}}}]),g}(e.default.Block);j.blotName="block",j.tagName="P",j.defaultChild="break",j.allowedChildren=[l.default,e.default.Embed,i.default];function b(p){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return p==null||(typeof p.formats=="function"&&(g=(0,y.default)(g,p.formats())),p.parent==null||p.parent.blotName=="scroll"||p.parent.statics.scope!==p.statics.scope)?g:b(p.parent,g)}s.bubbleFormats=b,s.BlockEmbed=A,s.default=j},function(_,s,d){Object.defineProperty(s,"__esModule",{value:!0}),s.default=s.overload=s.expandConfig=void 0;var k=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(D){return typeof D}:function(D){return D&&typeof Symbol=="function"&&D.constructor===Symbol&&D!==Symbol.prototype?"symbol":typeof D},w=function(){function D(P,m){var T=[],M=!0,$=!1,B=void 0;try{for(var L=P[Symbol.iterator](),C;!(M=(C=L.next()).done)&&(T.push(C.value),!(m&&T.length===m));M=!0);}catch(H){$=!0,B=H}finally{try{!M&&L.return&&L.return()}finally{if($)throw B}}return T}return function(P,m){if(Array.isArray(P))return P;if(Symbol.iterator in Object(P))return D(P,m);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),O=function(){function D(P,m){for(var T=0;T<m.length;T++){var M=m[T];M.enumerable=M.enumerable||!1,M.configurable=!0,"value"in M&&(M.writable=!0),Object.defineProperty(P,M.key,M)}}return function(P,m,T){return m&&D(P.prototype,m),T&&D(P,T),P}}();d(50);var y=d(2),v=b(y),h=d(14),o=b(h),e=d(8),t=b(e),u=d(9),a=b(u),l=d(0),r=b(l),i=d(15),f=b(i),n=d(3),c=b(n),S=d(10),E=b(S),A=d(34),j=b(A);function b(D){return D&&D.__esModule?D:{default:D}}function p(D,P,m){return P in D?Object.defineProperty(D,P,{value:m,enumerable:!0,configurable:!0,writable:!0}):D[P]=m,D}function g(D,P){if(!(D instanceof P))throw new TypeError("Cannot call a class as a function")}var N=(0,E.default)("quill"),q=function(){O(D,null,[{key:"debug",value:function(m){m===!0&&(m="log"),E.default.level(m)}},{key:"find",value:function(m){return m.__quill||r.default.find(m)}},{key:"import",value:function(m){return this.imports[m]==null&&N.error("Cannot import "+m+". Are you sure it was registered?"),this.imports[m]}},{key:"register",value:function(m,T){var M=this,$=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(typeof m!="string"){var B=m.attrName||m.blotName;typeof B=="string"?this.register("formats/"+B,m,T):Object.keys(m).forEach(function(L){M.register(L,m[L],T)})}else this.imports[m]!=null&&!$&&N.warn("Overwriting "+m+" with",T),this.imports[m]=T,(m.startsWith("blots/")||m.startsWith("formats/"))&&T.blotName!=="abstract"?r.default.register(T):m.startsWith("modules")&&typeof T.register=="function"&&T.register()}}]);function D(P){var m=this,T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(g(this,D),this.options=I(P,T),this.container=this.options.container,this.container==null)return N.error("Invalid Quill container",P);this.options.debug&&D.debug(this.options.debug);var M=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",this.container.__quill=this,this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.root.setAttribute("data-gramm",!1),this.scrollingContainer=this.options.scrollingContainer||this.root,this.emitter=new t.default,this.scroll=r.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new o.default(this.scroll),this.selection=new f.default(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.theme.init(),this.emitter.on(t.default.events.EDITOR_CHANGE,function(B){B===t.default.events.TEXT_CHANGE&&m.root.classList.toggle("ql-blank",m.editor.isBlank())}),this.emitter.on(t.default.events.SCROLL_UPDATE,function(B,L){var C=m.selection.lastRange,H=C&&C.length===0?C.index:void 0;F.call(m,function(){return m.editor.update(null,L,H)},B)});var $=this.clipboard.convert(`<div class='ql-editor' style="white-space: normal;">`+M+"<p><br></p></div>");this.setContents($),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}return O(D,[{key:"addContainer",value:function(m){var T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(typeof m=="string"){var M=m;m=document.createElement("div"),m.classList.add(M)}return this.container.insertBefore(m,T),m}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(m,T,M){var $=this,B=U(m,T,M),L=w(B,4);return m=L[0],T=L[1],M=L[3],F.call(this,function(){return $.editor.deleteText(m,T)},M,m,-1*T)}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.scroll.enable(m),this.container.classList.toggle("ql-disabled",!m)}},{key:"focus",value:function(){var m=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=m,this.scrollIntoView()}},{key:"format",value:function(m,T){var M=this,$=arguments.length>2&&arguments[2]!==void 0?arguments[2]:t.default.sources.API;return F.call(this,function(){var B=M.getSelection(!0),L=new v.default;if(B==null)return L;if(r.default.query(m,r.default.Scope.BLOCK))L=M.editor.formatLine(B.index,B.length,p({},m,T));else{if(B.length===0)return M.selection.format(m,T),L;L=M.editor.formatText(B.index,B.length,p({},m,T))}return M.setSelection(B,t.default.sources.SILENT),L},$)}},{key:"formatLine",value:function(m,T,M,$,B){var L=this,C=void 0,H=U(m,T,M,$,B),z=w(H,4);return m=z[0],T=z[1],C=z[2],B=z[3],F.call(this,function(){return L.editor.formatLine(m,T,C)},B,m,0)}},{key:"formatText",value:function(m,T,M,$,B){var L=this,C=void 0,H=U(m,T,M,$,B),z=w(H,4);return m=z[0],T=z[1],C=z[2],B=z[3],F.call(this,function(){return L.editor.formatText(m,T,C)},B,m,0)}},{key:"getBounds",value:function(m){var T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,M=void 0;typeof m=="number"?M=this.selection.getBounds(m,T):M=this.selection.getBounds(m.index,m.length);var $=this.container.getBoundingClientRect();return{bottom:M.bottom-$.top,height:M.height,left:M.left-$.left,right:M.right-$.left,top:M.top-$.top,width:M.width}}},{key:"getContents",value:function(){var m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getLength()-m,M=U(m,T),$=w(M,2);return m=$[0],T=$[1],this.editor.getContents(m,T)}},{key:"getFormat",value:function(){var m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.getSelection(!0),T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return typeof m=="number"?this.editor.getFormat(m,T):this.editor.getFormat(m.index,m.length)}},{key:"getIndex",value:function(m){return m.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(m){return this.scroll.leaf(m)}},{key:"getLine",value:function(m){return this.scroll.line(m)}},{key:"getLines",value:function(){var m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE;return typeof m!="number"?this.scroll.lines(m.index,m.length):this.scroll.lines(m,T)}},{key:"getModule",value:function(m){return this.theme.modules[m]}},{key:"getSelection",value:function(){var m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return m&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getText",value:function(){var m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getLength()-m,M=U(m,T),$=w(M,2);return m=$[0],T=$[1],this.editor.getText(m,T)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(m,T,M){var $=this,B=arguments.length>3&&arguments[3]!==void 0?arguments[3]:D.sources.API;return F.call(this,function(){return $.editor.insertEmbed(m,T,M)},B,m)}},{key:"insertText",value:function(m,T,M,$,B){var L=this,C=void 0,H=U(m,0,M,$,B),z=w(H,4);return m=z[0],C=z[2],B=z[3],F.call(this,function(){return L.editor.insertText(m,T,C)},B,m,T.length)}},{key:"isEnabled",value:function(){return!this.container.classList.contains("ql-disabled")}},{key:"off",value:function(){return this.emitter.off.apply(this.emitter,arguments)}},{key:"on",value:function(){return this.emitter.on.apply(this.emitter,arguments)}},{key:"once",value:function(){return this.emitter.once.apply(this.emitter,arguments)}},{key:"pasteHTML",value:function(m,T,M){this.clipboard.dangerouslyPasteHTML(m,T,M)}},{key:"removeFormat",value:function(m,T,M){var $=this,B=U(m,T,M),L=w(B,4);return m=L[0],T=L[1],M=L[3],F.call(this,function(){return $.editor.removeFormat(m,T)},M,m)}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(m){var T=this,M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t.default.sources.API;return F.call(this,function(){m=new v.default(m);var $=T.getLength(),B=T.editor.deleteText(0,$),L=T.editor.applyDelta(m),C=L.ops[L.ops.length-1];C!=null&&typeof C.insert=="string"&&C.insert[C.insert.length-1]===`
`&&(T.editor.deleteText(T.getLength()-1,1),L.delete(1));var H=B.compose(L);return H},M)}},{key:"setSelection",value:function(m,T,M){if(m==null)this.selection.setRange(null,T||D.sources.API);else{var $=U(m,T,M),B=w($,4);m=B[0],T=B[1],M=B[3],this.selection.setRange(new i.Range(m,T),M),M!==t.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(m){var T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t.default.sources.API,M=new v.default().insert(m);return this.setContents(M,T)}},{key:"update",value:function(){var m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:t.default.sources.USER,T=this.scroll.update(m);return this.selection.update(m),T}},{key:"updateContents",value:function(m){var T=this,M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t.default.sources.API;return F.call(this,function(){return m=new v.default(m),T.editor.applyDelta(m,M)},M,!0)}}]),D}();q.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},q.events=t.default.events,q.sources=t.default.sources,q.version="1.3.7",q.imports={delta:v.default,parchment:r.default,"core/module":a.default,"core/theme":j.default};function I(D,P){if(P=(0,c.default)(!0,{container:D,modules:{clipboard:!0,keyboard:!0,history:!0}},P),!P.theme||P.theme===q.DEFAULTS.theme)P.theme=j.default;else if(P.theme=q.import("themes/"+P.theme),P.theme==null)throw new Error("Invalid theme "+P.theme+". Did you register it?");var m=(0,c.default)(!0,{},P.theme.DEFAULTS);[m,P].forEach(function($){$.modules=$.modules||{},Object.keys($.modules).forEach(function(B){$.modules[B]===!0&&($.modules[B]={})})});var T=Object.keys(m.modules).concat(Object.keys(P.modules)),M=T.reduce(function($,B){var L=q.import("modules/"+B);return L==null?N.error("Cannot load "+B+" module. Are you sure you registered it?"):$[B]=L.DEFAULTS||{},$},{});return P.modules!=null&&P.modules.toolbar&&P.modules.toolbar.constructor!==Object&&(P.modules.toolbar={container:P.modules.toolbar}),P=(0,c.default)(!0,{},q.DEFAULTS,{modules:M},m,P),["bounds","container","scrollingContainer"].forEach(function($){typeof P[$]=="string"&&(P[$]=document.querySelector(P[$]))}),P.modules=Object.keys(P.modules).reduce(function($,B){return P.modules[B]&&($[B]=P.modules[B]),$},{}),P}function F(D,P,m,T){if(this.options.strict&&!this.isEnabled()&&P===t.default.sources.USER)return new v.default;var M=m==null?null:this.getSelection(),$=this.editor.delta,B=D();if(M!=null&&(m===!0&&(m=M.index),T==null?M=K(M,B,P):T!==0&&(M=K(M,m,T,P)),this.setSelection(M,t.default.sources.SILENT)),B.length()>0){var L,C=[t.default.events.TEXT_CHANGE,B,$,P];if((L=this.emitter).emit.apply(L,[t.default.events.EDITOR_CHANGE].concat(C)),P!==t.default.sources.SILENT){var H;(H=this.emitter).emit.apply(H,C)}}return B}function U(D,P,m,T,M){var $={};return typeof D.index=="number"&&typeof D.length=="number"?typeof P!="number"?(M=T,T=m,m=P,P=D.length,D=D.index):(P=D.length,D=D.index):typeof P!="number"&&(M=T,T=m,m=P,P=0),(typeof m>"u"?"undefined":k(m))==="object"?($=m,M=T):typeof m=="string"&&(T!=null?$[m]=T:M=m),M=M||t.default.sources.API,[D,P,$,M]}function K(D,P,m,T){if(D==null)return null;var M=void 0,$=void 0;if(P instanceof v.default){var B=[D.index,D.index+D.length].map(function(z){return P.transformPosition(z,T!==t.default.sources.USER)}),L=w(B,2);M=L[0],$=L[1]}else{var C=[D.index,D.index+D.length].map(function(z){return z<P||z===P&&T===t.default.sources.USER?z:m>=0?z+m:Math.max(P,z+m)}),H=w(C,2);M=H[0],$=H[1]}return new i.Range(M,$-M)}s.expandConfig=I,s.overload=U,s.default=q},function(_,s,d){Object.defineProperty(s,"__esModule",{value:!0});var k=function(){function l(r,i){for(var f=0;f<i.length;f++){var n=i[f];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(r,n.key,n)}}return function(r,i,f){return i&&l(r.prototype,i),f&&l(r,f),r}}(),w=function l(r,i,f){r===null&&(r=Function.prototype);var n=Object.getOwnPropertyDescriptor(r,i);if(n===void 0){var c=Object.getPrototypeOf(r);return c===null?void 0:l(c,i,f)}else{if("value"in n)return n.value;var S=n.get;return S===void 0?void 0:S.call(f)}},O=d(7),y=o(O),v=d(0),h=o(v);function o(l){return l&&l.__esModule?l:{default:l}}function e(l,r){if(!(l instanceof r))throw new TypeError("Cannot call a class as a function")}function t(l,r){if(!l)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r&&(typeof r=="object"||typeof r=="function")?r:l}function u(l,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof r);l.prototype=Object.create(r&&r.prototype,{constructor:{value:l,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?Object.setPrototypeOf(l,r):l.__proto__=r)}var a=function(l){u(r,l);function r(){return e(this,r),t(this,(r.__proto__||Object.getPrototypeOf(r)).apply(this,arguments))}return k(r,[{key:"formatAt",value:function(f,n,c,S){if(r.compare(this.statics.blotName,c)<0&&h.default.query(c,h.default.Scope.BLOT)){var E=this.isolate(f,n);S&&E.wrap(c,S)}else w(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"formatAt",this).call(this,f,n,c,S)}},{key:"optimize",value:function(f){if(w(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"optimize",this).call(this,f),this.parent instanceof r&&r.compare(this.statics.blotName,this.parent.statics.blotName)>0){var n=this.parent.isolate(this.offset(),this.length());this.moveChildren(n),n.wrap(this)}}}],[{key:"compare",value:function(f,n){var c=r.order.indexOf(f),S=r.order.indexOf(n);return c>=0||S>=0?c-S:f===n?0:f<n?-1:1}}]),r}(h.default.Inline);a.allowedChildren=[a,h.default.Embed,y.default],a.order=["cursor","inline","underline","strike","italic","bold","script","link","code"],s.default=a},function(_,s,d){Object.defineProperty(s,"__esModule",{value:!0});var k=d(0),w=O(k);function O(e){return e&&e.__esModule?e:{default:e}}function y(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function v(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function h(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var o=function(e){h(t,e);function t(){return y(this,t),v(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return t}(w.default.Text);s.default=o},function(_,s,d){Object.defineProperty(s,"__esModule",{value:!0});var k=function(){function i(f,n){for(var c=0;c<n.length;c++){var S=n[c];S.enumerable=S.enumerable||!1,S.configurable=!0,"value"in S&&(S.writable=!0),Object.defineProperty(f,S.key,S)}}return function(f,n,c){return n&&i(f.prototype,n),c&&i(f,c),f}}(),w=function i(f,n,c){f===null&&(f=Function.prototype);var S=Object.getOwnPropertyDescriptor(f,n);if(S===void 0){var E=Object.getPrototypeOf(f);return E===null?void 0:i(E,n,c)}else{if("value"in S)return S.value;var A=S.get;return A===void 0?void 0:A.call(c)}},O=d(54),y=o(O),v=d(10),h=o(v);function o(i){return i&&i.__esModule?i:{default:i}}function e(i,f){if(!(i instanceof f))throw new TypeError("Cannot call a class as a function")}function t(i,f){if(!i)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f&&(typeof f=="object"||typeof f=="function")?f:i}function u(i,f){if(typeof f!="function"&&f!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof f);i.prototype=Object.create(f&&f.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),f&&(Object.setPrototypeOf?Object.setPrototypeOf(i,f):i.__proto__=f)}var a=(0,h.default)("quill:events"),l=["selectionchange","mousedown","mouseup","click"];l.forEach(function(i){document.addEventListener(i,function(){for(var f=arguments.length,n=Array(f),c=0;c<f;c++)n[c]=arguments[c];[].slice.call(document.querySelectorAll(".ql-container")).forEach(function(S){if(S.__quill&&S.__quill.emitter){var E;(E=S.__quill.emitter).handleDOM.apply(E,n)}})})});var r=function(i){u(f,i);function f(){e(this,f);var n=t(this,(f.__proto__||Object.getPrototypeOf(f)).call(this));return n.listeners={},n.on("error",a.error),n}return k(f,[{key:"emit",value:function(){a.log.apply(a,arguments),w(f.prototype.__proto__||Object.getPrototypeOf(f.prototype),"emit",this).apply(this,arguments)}},{key:"handleDOM",value:function(c){for(var S=arguments.length,E=Array(S>1?S-1:0),A=1;A<S;A++)E[A-1]=arguments[A];(this.listeners[c.type]||[]).forEach(function(j){var b=j.node,p=j.handler;(c.target===b||b.contains(c.target))&&p.apply(void 0,[c].concat(E))})}},{key:"listenDOM",value:function(c,S,E){this.listeners[c]||(this.listeners[c]=[]),this.listeners[c].push({node:S,handler:E})}}]),f}(y.default);r.events={EDITOR_CHANGE:"editor-change",SCROLL_BEFORE_UPDATE:"scroll-before-update",SCROLL_OPTIMIZE:"scroll-optimize",SCROLL_UPDATE:"scroll-update",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change"},r.sources={API:"api",SILENT:"silent",USER:"user"},s.default=r},function(_,s,d){Object.defineProperty(s,"__esModule",{value:!0});function k(O,y){if(!(O instanceof y))throw new TypeError("Cannot call a class as a function")}var w=function O(y){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};k(this,O),this.quill=y,this.options=v};w.DEFAULTS={},s.default=w},function(_,s,d){Object.defineProperty(s,"__esModule",{value:!0});var k=["error","warn","log","info"],w="warn";function O(v){if(k.indexOf(v)<=k.indexOf(w)){for(var h,o=arguments.length,e=Array(o>1?o-1:0),t=1;t<o;t++)e[t-1]=arguments[t];(h=console)[v].apply(h,e)}}function y(v){return k.reduce(function(h,o){return h[o]=O.bind(console,o,v),h},{})}O.level=y.level=function(v){w=v},s.default=y},function(_,s,d){var k=Array.prototype.slice,w=d(52),O=d(53),y=_.exports=function(e,t,u){return u||(u={}),e===t?!0:e instanceof Date&&t instanceof Date?e.getTime()===t.getTime():!e||!t||typeof e!="object"&&typeof t!="object"?u.strict?e===t:e==t:o(e,t,u)};function v(e){return e==null}function h(e){return!(!e||typeof e!="object"||typeof e.length!="number"||typeof e.copy!="function"||typeof e.slice!="function"||e.length>0&&typeof e[0]!="number")}function o(e,t,u){var a,l;if(v(e)||v(t)||e.prototype!==t.prototype)return!1;if(O(e))return O(t)?(e=k.call(e),t=k.call(t),y(e,t,u)):!1;if(h(e)){if(!h(t)||e.length!==t.length)return!1;for(a=0;a<e.length;a++)if(e[a]!==t[a])return!1;return!0}try{var r=w(e),i=w(t)}catch{return!1}if(r.length!=i.length)return!1;for(r.sort(),i.sort(),a=r.length-1;a>=0;a--)if(r[a]!=i[a])return!1;for(a=r.length-1;a>=0;a--)if(l=r[a],!y(e[l],t[l],u))return!1;return typeof e==typeof t}},function(_,s,d){Object.defineProperty(s,"__esModule",{value:!0});var k=d(1),w=function(){function O(y,v,h){h===void 0&&(h={}),this.attrName=y,this.keyName=v;var o=k.Scope.TYPE&k.Scope.ATTRIBUTE;h.scope!=null?this.scope=h.scope&k.Scope.LEVEL|o:this.scope=k.Scope.ATTRIBUTE,h.whitelist!=null&&(this.whitelist=h.whitelist)}return O.keys=function(y){return[].map.call(y.attributes,function(v){return v.name})},O.prototype.add=function(y,v){return this.canAdd(y,v)?(y.setAttribute(this.keyName,v),!0):!1},O.prototype.canAdd=function(y,v){var h=k.query(y,k.Scope.BLOT&(this.scope|k.Scope.TYPE));return h==null?!1:this.whitelist==null?!0:typeof v=="string"?this.whitelist.indexOf(v.replace(/["']/g,""))>-1:this.whitelist.indexOf(v)>-1},O.prototype.remove=function(y){y.removeAttribute(this.keyName)},O.prototype.value=function(y){var v=y.getAttribute(this.keyName);return this.canAdd(y,v)&&v?v:""},O}();s.default=w},function(_,s,d){Object.defineProperty(s,"__esModule",{value:!0}),s.default=s.Code=void 0;var k=function(){function A(j,b){var p=[],g=!0,N=!1,q=void 0;try{for(var I=j[Symbol.iterator](),F;!(g=(F=I.next()).done)&&(p.push(F.value),!(b&&p.length===b));g=!0);}catch(U){N=!0,q=U}finally{try{!g&&I.return&&I.return()}finally{if(N)throw q}}return p}return function(j,b){if(Array.isArray(j))return j;if(Symbol.iterator in Object(j))return A(j,b);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),w=function(){function A(j,b){for(var p=0;p<b.length;p++){var g=b[p];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(j,g.key,g)}}return function(j,b,p){return b&&A(j.prototype,b),p&&A(j,p),j}}(),O=function A(j,b,p){j===null&&(j=Function.prototype);var g=Object.getOwnPropertyDescriptor(j,b);if(g===void 0){var N=Object.getPrototypeOf(j);return N===null?void 0:A(N,b,p)}else{if("value"in g)return g.value;var q=g.get;return q===void 0?void 0:q.call(p)}},y=d(2),v=i(y),h=d(0),o=i(h),e=d(4),t=i(e),u=d(6),a=i(u),l=d(7),r=i(l);function i(A){return A&&A.__esModule?A:{default:A}}function f(A,j){if(!(A instanceof j))throw new TypeError("Cannot call a class as a function")}function n(A,j){if(!A)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return j&&(typeof j=="object"||typeof j=="function")?j:A}function c(A,j){if(typeof j!="function"&&j!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof j);A.prototype=Object.create(j&&j.prototype,{constructor:{value:A,enumerable:!1,writable:!0,configurable:!0}}),j&&(Object.setPrototypeOf?Object.setPrototypeOf(A,j):A.__proto__=j)}var S=function(A){c(j,A);function j(){return f(this,j),n(this,(j.__proto__||Object.getPrototypeOf(j)).apply(this,arguments))}return j}(a.default);S.blotName="code",S.tagName="CODE";var E=function(A){c(j,A);function j(){return f(this,j),n(this,(j.__proto__||Object.getPrototypeOf(j)).apply(this,arguments))}return w(j,[{key:"delta",value:function(){var p=this,g=this.domNode.textContent;return g.endsWith(`
`)&&(g=g.slice(0,-1)),g.split(`
`).reduce(function(N,q){return N.insert(q).insert(`
`,p.formats())},new v.default)}},{key:"format",value:function(p,g){if(!(p===this.statics.blotName&&g)){var N=this.descendant(r.default,this.length()-1),q=k(N,1),I=q[0];I!=null&&I.deleteAt(I.length()-1,1),O(j.prototype.__proto__||Object.getPrototypeOf(j.prototype),"format",this).call(this,p,g)}}},{key:"formatAt",value:function(p,g,N,q){if(g!==0&&!(o.default.query(N,o.default.Scope.BLOCK)==null||N===this.statics.blotName&&q===this.statics.formats(this.domNode))){var I=this.newlineIndex(p);if(!(I<0||I>=p+g)){var F=this.newlineIndex(p,!0)+1,U=I-F+1,K=this.isolate(F,U),D=K.next;K.format(N,q),D instanceof j&&D.formatAt(0,p-F+g-U,N,q)}}}},{key:"insertAt",value:function(p,g,N){if(N==null){var q=this.descendant(r.default,p),I=k(q,2),F=I[0],U=I[1];F.insertAt(U,g)}}},{key:"length",value:function(){var p=this.domNode.textContent.length;return this.domNode.textContent.endsWith(`
`)?p:p+1}},{key:"newlineIndex",value:function(p){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(g)return this.domNode.textContent.slice(0,p).lastIndexOf(`
`);var N=this.domNode.textContent.slice(p).indexOf(`
`);return N>-1?p+N:-1}},{key:"optimize",value:function(p){this.domNode.textContent.endsWith(`
`)||this.appendChild(o.default.create("text",`
`)),O(j.prototype.__proto__||Object.getPrototypeOf(j.prototype),"optimize",this).call(this,p);var g=this.next;g!=null&&g.prev===this&&g.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===g.statics.formats(g.domNode)&&(g.optimize(p),g.moveChildren(this),g.remove())}},{key:"replace",value:function(p){O(j.prototype.__proto__||Object.getPrototypeOf(j.prototype),"replace",this).call(this,p),[].slice.call(this.domNode.querySelectorAll("*")).forEach(function(g){var N=o.default.find(g);N==null?g.parentNode.removeChild(g):N instanceof o.default.Embed?N.remove():N.unwrap()})}}],[{key:"create",value:function(p){var g=O(j.__proto__||Object.getPrototypeOf(j),"create",this).call(this,p);return g.setAttribute("spellcheck",!1),g}},{key:"formats",value:function(){return!0}}]),j}(t.default);E.blotName="code-block",E.tagName="PRE",E.TAB="  ",s.Code=S,s.default=E},function(_,s,d){Object.defineProperty(s,"__esModule",{value:!0});var k=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(D){return typeof D}:function(D){return D&&typeof Symbol=="function"&&D.constructor===Symbol&&D!==Symbol.prototype?"symbol":typeof D},w=function(){function D(P,m){var T=[],M=!0,$=!1,B=void 0;try{for(var L=P[Symbol.iterator](),C;!(M=(C=L.next()).done)&&(T.push(C.value),!(m&&T.length===m));M=!0);}catch(H){$=!0,B=H}finally{try{!M&&L.return&&L.return()}finally{if($)throw B}}return T}return function(P,m){if(Array.isArray(P))return P;if(Symbol.iterator in Object(P))return D(P,m);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),O=function(){function D(P,m){for(var T=0;T<m.length;T++){var M=m[T];M.enumerable=M.enumerable||!1,M.configurable=!0,"value"in M&&(M.writable=!0),Object.defineProperty(P,M.key,M)}}return function(P,m,T){return m&&D(P.prototype,m),T&&D(P,T),P}}(),y=d(2),v=g(y),h=d(20),o=g(h),e=d(0),t=g(e),u=d(13),a=g(u),l=d(24),r=g(l),i=d(4),f=g(i),n=d(16),c=g(n),S=d(21),E=g(S),A=d(11),j=g(A),b=d(3),p=g(b);function g(D){return D&&D.__esModule?D:{default:D}}function N(D,P,m){return P in D?Object.defineProperty(D,P,{value:m,enumerable:!0,configurable:!0,writable:!0}):D[P]=m,D}function q(D,P){if(!(D instanceof P))throw new TypeError("Cannot call a class as a function")}var I=/^[ -~]*$/,F=function(){function D(P){q(this,D),this.scroll=P,this.delta=this.getDelta()}return O(D,[{key:"applyDelta",value:function(m){var T=this,M=!1;this.scroll.update();var $=this.scroll.length();return this.scroll.batchStart(),m=K(m),m.reduce(function(B,L){var C=L.retain||L.delete||L.insert.length||1,H=L.attributes||{};if(L.insert!=null){if(typeof L.insert=="string"){var z=L.insert;z.endsWith(`
`)&&M&&(M=!1,z=z.slice(0,-1)),B>=$&&!z.endsWith(`
`)&&(M=!0),T.scroll.insertAt(B,z);var Z=T.scroll.line(B),J=w(Z,2),ee=J[0],te=J[1],oe=(0,p.default)({},(0,i.bubbleFormats)(ee));if(ee instanceof f.default){var ae=ee.descendant(t.default.Leaf,te),he=w(ae,1),fe=he[0];oe=(0,p.default)(oe,(0,i.bubbleFormats)(fe))}H=o.default.attributes.diff(oe,H)||{}}else if(k(L.insert)==="object"){var G=Object.keys(L.insert)[0];if(G==null)return B;T.scroll.insertAt(B,G,L.insert[G])}$+=C}return Object.keys(H).forEach(function(W){T.scroll.formatAt(B,C,W,H[W])}),B+C},0),m.reduce(function(B,L){return typeof L.delete=="number"?(T.scroll.deleteAt(B,L.delete),B):B+(L.retain||L.insert.length||1)},0),this.scroll.batchEnd(),this.update(m)}},{key:"deleteText",value:function(m,T){return this.scroll.deleteAt(m,T),this.update(new v.default().retain(m).delete(T))}},{key:"formatLine",value:function(m,T){var M=this,$=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.scroll.update(),Object.keys($).forEach(function(B){if(!(M.scroll.whitelist!=null&&!M.scroll.whitelist[B])){var L=M.scroll.lines(m,Math.max(T,1)),C=T;L.forEach(function(H){var z=H.length();if(!(H instanceof a.default))H.format(B,$[B]);else{var Z=m-H.offset(M.scroll),J=H.newlineIndex(Z+C)-Z+1;H.formatAt(Z,J,B,$[B])}C-=z})}}),this.scroll.optimize(),this.update(new v.default().retain(m).retain(T,(0,E.default)($)))}},{key:"formatText",value:function(m,T){var M=this,$=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Object.keys($).forEach(function(B){M.scroll.formatAt(m,T,B,$[B])}),this.update(new v.default().retain(m).retain(T,(0,E.default)($)))}},{key:"getContents",value:function(m,T){return this.delta.slice(m,m+T)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce(function(m,T){return m.concat(T.delta())},new v.default)}},{key:"getFormat",value:function(m){var T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,M=[],$=[];T===0?this.scroll.path(m).forEach(function(L){var C=w(L,1),H=C[0];H instanceof f.default?M.push(H):H instanceof t.default.Leaf&&$.push(H)}):(M=this.scroll.lines(m,T),$=this.scroll.descendants(t.default.Leaf,m,T));var B=[M,$].map(function(L){if(L.length===0)return{};for(var C=(0,i.bubbleFormats)(L.shift());Object.keys(C).length>0;){var H=L.shift();if(H==null)return C;C=U((0,i.bubbleFormats)(H),C)}return C});return p.default.apply(p.default,B)}},{key:"getText",value:function(m,T){return this.getContents(m,T).filter(function(M){return typeof M.insert=="string"}).map(function(M){return M.insert}).join("")}},{key:"insertEmbed",value:function(m,T,M){return this.scroll.insertAt(m,T,M),this.update(new v.default().retain(m).insert(N({},T,M)))}},{key:"insertText",value:function(m,T){var M=this,$=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return T=T.replace(/\r\n/g,`
`).replace(/\r/g,`
`),this.scroll.insertAt(m,T),Object.keys($).forEach(function(B){M.scroll.formatAt(m,T.length,B,$[B])}),this.update(new v.default().retain(m).insert(T,(0,E.default)($)))}},{key:"isBlank",value:function(){if(this.scroll.children.length==0)return!0;if(this.scroll.children.length>1)return!1;var m=this.scroll.children.head;return m.statics.blotName!==f.default.blotName||m.children.length>1?!1:m.children.head instanceof c.default}},{key:"removeFormat",value:function(m,T){var M=this.getText(m,T),$=this.scroll.line(m+T),B=w($,2),L=B[0],C=B[1],H=0,z=new v.default;L!=null&&(L instanceof a.default?H=L.newlineIndex(C)-C+1:H=L.length()-C,z=L.delta().slice(C,C+H-1).insert(`
`));var Z=this.getContents(m,T+H),J=Z.diff(new v.default().insert(M).concat(z)),ee=new v.default().retain(m).concat(J);return this.applyDelta(ee)}},{key:"update",value:function(m){var T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],M=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0,$=this.delta;if(T.length===1&&T[0].type==="characterData"&&T[0].target.data.match(I)&&t.default.find(T[0].target)){var B=t.default.find(T[0].target),L=(0,i.bubbleFormats)(B),C=B.offset(this.scroll),H=T[0].oldValue.replace(r.default.CONTENTS,""),z=new v.default().insert(H),Z=new v.default().insert(B.value()),J=new v.default().retain(C).concat(z.diff(Z,M));m=J.reduce(function(ee,te){return te.insert?ee.insert(te.insert,L):ee.push(te)},new v.default),this.delta=$.compose(m)}else this.delta=this.getDelta(),(!m||!(0,j.default)($.compose(m),this.delta))&&(m=$.diff(this.delta,M));return m}}]),D}();function U(D,P){return Object.keys(P).reduce(function(m,T){return D[T]==null||(P[T]===D[T]?m[T]=P[T]:Array.isArray(P[T])?P[T].indexOf(D[T])<0&&(m[T]=P[T].concat([D[T]])):m[T]=[P[T],D[T]]),m},{})}function K(D){return D.reduce(function(P,m){if(m.insert===1){var T=(0,E.default)(m.attributes);return delete T.image,P.insert({image:m.attributes.image},T)}if(m.attributes!=null&&(m.attributes.list===!0||m.attributes.bullet===!0)&&(m=(0,E.default)(m),m.attributes.list?m.attributes.list="ordered":(m.attributes.list="bullet",delete m.attributes.bullet)),typeof m.insert=="string"){var M=m.insert.replace(/\r\n/g,`
`).replace(/\r/g,`
`);return P.insert(M,m.attributes)}return P.push(m)},new v.default)}s.default=F},function(_,s,d){Object.defineProperty(s,"__esModule",{value:!0}),s.default=s.Range=void 0;var k=function(){function A(j,b){var p=[],g=!0,N=!1,q=void 0;try{for(var I=j[Symbol.iterator](),F;!(g=(F=I.next()).done)&&(p.push(F.value),!(b&&p.length===b));g=!0);}catch(U){N=!0,q=U}finally{try{!g&&I.return&&I.return()}finally{if(N)throw q}}return p}return function(j,b){if(Array.isArray(j))return j;if(Symbol.iterator in Object(j))return A(j,b);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),w=function(){function A(j,b){for(var p=0;p<b.length;p++){var g=b[p];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(j,g.key,g)}}return function(j,b,p){return b&&A(j.prototype,b),p&&A(j,p),j}}(),O=d(0),y=r(O),v=d(21),h=r(v),o=d(11),e=r(o),t=d(8),u=r(t),a=d(10),l=r(a);function r(A){return A&&A.__esModule?A:{default:A}}function i(A){if(Array.isArray(A)){for(var j=0,b=Array(A.length);j<A.length;j++)b[j]=A[j];return b}else return Array.from(A)}function f(A,j){if(!(A instanceof j))throw new TypeError("Cannot call a class as a function")}var n=(0,l.default)("quill:selection"),c=function A(j){var b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;f(this,A),this.index=j,this.length=b},S=function(){function A(j,b){var p=this;f(this,A),this.emitter=b,this.scroll=j,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=y.default.create("cursor",this),this.lastRange=this.savedRange=new c(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,function(){p.mouseDown||setTimeout(p.update.bind(p,u.default.sources.USER),1)}),this.emitter.on(u.default.events.EDITOR_CHANGE,function(g,N){g===u.default.events.TEXT_CHANGE&&N.length()>0&&p.update(u.default.sources.SILENT)}),this.emitter.on(u.default.events.SCROLL_BEFORE_UPDATE,function(){if(p.hasFocus()){var g=p.getNativeRange();g!=null&&g.start.node!==p.cursor.textNode&&p.emitter.once(u.default.events.SCROLL_UPDATE,function(){try{p.setNativeRange(g.start.node,g.start.offset,g.end.node,g.end.offset)}catch{}})}}),this.emitter.on(u.default.events.SCROLL_OPTIMIZE,function(g,N){if(N.range){var q=N.range,I=q.startNode,F=q.startOffset,U=q.endNode,K=q.endOffset;p.setNativeRange(I,F,U,K)}}),this.update(u.default.sources.SILENT)}return w(A,[{key:"handleComposition",value:function(){var b=this;this.root.addEventListener("compositionstart",function(){b.composing=!0}),this.root.addEventListener("compositionend",function(){if(b.composing=!1,b.cursor.parent){var p=b.cursor.restore();if(!p)return;setTimeout(function(){b.setNativeRange(p.startNode,p.startOffset,p.endNode,p.endOffset)},1)}})}},{key:"handleDragging",value:function(){var b=this;this.emitter.listenDOM("mousedown",document.body,function(){b.mouseDown=!0}),this.emitter.listenDOM("mouseup",document.body,function(){b.mouseDown=!1,b.update(u.default.sources.USER)})}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(b,p){if(!(this.scroll.whitelist!=null&&!this.scroll.whitelist[b])){this.scroll.update();var g=this.getNativeRange();if(!(g==null||!g.native.collapsed||y.default.query(b,y.default.Scope.BLOCK))){if(g.start.node!==this.cursor.textNode){var N=y.default.find(g.start.node,!1);if(N==null)return;if(N instanceof y.default.Leaf){var q=N.split(g.start.offset);N.parent.insertBefore(this.cursor,q)}else N.insertBefore(this.cursor,g.start.node);this.cursor.attach()}this.cursor.format(b,p),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(b){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,g=this.scroll.length();b=Math.min(b,g-1),p=Math.min(b+p,g-1)-b;var N=void 0,q=this.scroll.leaf(b),I=k(q,2),F=I[0],U=I[1];if(F==null)return null;var K=F.position(U,!0),D=k(K,2);N=D[0],U=D[1];var P=document.createRange();if(p>0){P.setStart(N,U);var m=this.scroll.leaf(b+p),T=k(m,2);if(F=T[0],U=T[1],F==null)return null;var M=F.position(U,!0),$=k(M,2);return N=$[0],U=$[1],P.setEnd(N,U),P.getBoundingClientRect()}else{var B="left",L=void 0;return N instanceof Text?(U<N.data.length?(P.setStart(N,U),P.setEnd(N,U+1)):(P.setStart(N,U-1),P.setEnd(N,U),B="right"),L=P.getBoundingClientRect()):(L=F.domNode.getBoundingClientRect(),U>0&&(B="right")),{bottom:L.top+L.height,height:L.height,left:L[B],right:L[B],top:L.top,width:0}}}},{key:"getNativeRange",value:function(){var b=document.getSelection();if(b==null||b.rangeCount<=0)return null;var p=b.getRangeAt(0);if(p==null)return null;var g=this.normalizeNative(p);return n.info("getNativeRange",g),g}},{key:"getRange",value:function(){var b=this.getNativeRange();if(b==null)return[null,null];var p=this.normalizedToRange(b);return[p,b]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(b){var p=this,g=[[b.start.node,b.start.offset]];b.native.collapsed||g.push([b.end.node,b.end.offset]);var N=g.map(function(F){var U=k(F,2),K=U[0],D=U[1],P=y.default.find(K,!0),m=P.offset(p.scroll);return D===0?m:P instanceof y.default.Container?m+P.length():m+P.index(K,D)}),q=Math.min(Math.max.apply(Math,i(N)),this.scroll.length()-1),I=Math.min.apply(Math,[q].concat(i(N)));return new c(I,q-I)}},{key:"normalizeNative",value:function(b){if(!E(this.root,b.startContainer)||!b.collapsed&&!E(this.root,b.endContainer))return null;var p={start:{node:b.startContainer,offset:b.startOffset},end:{node:b.endContainer,offset:b.endOffset},native:b};return[p.start,p.end].forEach(function(g){for(var N=g.node,q=g.offset;!(N instanceof Text)&&N.childNodes.length>0;)if(N.childNodes.length>q)N=N.childNodes[q],q=0;else if(N.childNodes.length===q)N=N.lastChild,q=N instanceof Text?N.data.length:N.childNodes.length+1;else break;g.node=N,g.offset=q}),p}},{key:"rangeToNative",value:function(b){var p=this,g=b.collapsed?[b.index]:[b.index,b.index+b.length],N=[],q=this.scroll.length();return g.forEach(function(I,F){I=Math.min(q-1,I);var U=void 0,K=p.scroll.leaf(I),D=k(K,2),P=D[0],m=D[1],T=P.position(m,F!==0),M=k(T,2);U=M[0],m=M[1],N.push(U,m)}),N.length<2&&(N=N.concat(N)),N}},{key:"scrollIntoView",value:function(b){var p=this.lastRange;if(p!=null){var g=this.getBounds(p.index,p.length);if(g!=null){var N=this.scroll.length()-1,q=this.scroll.line(Math.min(p.index,N)),I=k(q,1),F=I[0],U=F;if(p.length>0){var K=this.scroll.line(Math.min(p.index+p.length,N)),D=k(K,1);U=D[0]}if(!(F==null||U==null)){var P=b.getBoundingClientRect();g.top<P.top?b.scrollTop-=P.top-g.top:g.bottom>P.bottom&&(b.scrollTop+=g.bottom-P.bottom)}}}}},{key:"setNativeRange",value:function(b,p){var g=arguments.length>2&&arguments[2]!==void 0?arguments[2]:b,N=arguments.length>3&&arguments[3]!==void 0?arguments[3]:p,q=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(n.info("setNativeRange",b,p,g,N),!(b!=null&&(this.root.parentNode==null||b.parentNode==null||g.parentNode==null))){var I=document.getSelection();if(I!=null)if(b!=null){this.hasFocus()||this.root.focus();var F=(this.getNativeRange()||{}).native;if(F==null||q||b!==F.startContainer||p!==F.startOffset||g!==F.endContainer||N!==F.endOffset){b.tagName=="BR"&&(p=[].indexOf.call(b.parentNode.childNodes,b),b=b.parentNode),g.tagName=="BR"&&(N=[].indexOf.call(g.parentNode.childNodes,g),g=g.parentNode);var U=document.createRange();U.setStart(b,p),U.setEnd(g,N),I.removeAllRanges(),I.addRange(U)}}else I.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(b){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,g=arguments.length>2&&arguments[2]!==void 0?arguments[2]:u.default.sources.API;if(typeof p=="string"&&(g=p,p=!1),n.info("setRange",b),b!=null){var N=this.rangeToNative(b);this.setNativeRange.apply(this,i(N).concat([p]))}else this.setNativeRange(null);this.update(g)}},{key:"update",value:function(){var b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:u.default.sources.USER,p=this.lastRange,g=this.getRange(),N=k(g,2),q=N[0],I=N[1];if(this.lastRange=q,this.lastRange!=null&&(this.savedRange=this.lastRange),!(0,e.default)(p,this.lastRange)){var F;!this.composing&&I!=null&&I.native.collapsed&&I.start.node!==this.cursor.textNode&&this.cursor.restore();var U=[u.default.events.SELECTION_CHANGE,(0,h.default)(this.lastRange),(0,h.default)(p),b];if((F=this.emitter).emit.apply(F,[u.default.events.EDITOR_CHANGE].concat(U)),b!==u.default.sources.SILENT){var K;(K=this.emitter).emit.apply(K,U)}}}}]),A}();function E(A,j){try{j.parentNode}catch{return!1}return j instanceof Text&&(j=j.parentNode),A.contains(j)}s.Range=c,s.default=S},function(_,s,d){Object.defineProperty(s,"__esModule",{value:!0});var k=function(){function u(a,l){for(var r=0;r<l.length;r++){var i=l[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(a,i.key,i)}}return function(a,l,r){return l&&u(a.prototype,l),r&&u(a,r),a}}(),w=function u(a,l,r){a===null&&(a=Function.prototype);var i=Object.getOwnPropertyDescriptor(a,l);if(i===void 0){var f=Object.getPrototypeOf(a);return f===null?void 0:u(f,l,r)}else{if("value"in i)return i.value;var n=i.get;return n===void 0?void 0:n.call(r)}},O=d(0),y=v(O);function v(u){return u&&u.__esModule?u:{default:u}}function h(u,a){if(!(u instanceof a))throw new TypeError("Cannot call a class as a function")}function o(u,a){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a&&(typeof a=="object"||typeof a=="function")?a:u}function e(u,a){if(typeof a!="function"&&a!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof a);u.prototype=Object.create(a&&a.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),a&&(Object.setPrototypeOf?Object.setPrototypeOf(u,a):u.__proto__=a)}var t=function(u){e(a,u);function a(){return h(this,a),o(this,(a.__proto__||Object.getPrototypeOf(a)).apply(this,arguments))}return k(a,[{key:"insertInto",value:function(r,i){r.children.length===0?w(a.prototype.__proto__||Object.getPrototypeOf(a.prototype),"insertInto",this).call(this,r,i):this.remove()}},{key:"length",value:function(){return 0}},{key:"value",value:function(){return""}}],[{key:"value",value:function(){}}]),a}(y.default.Embed);t.blotName="break",t.tagName="BR",s.default=t},function(_,s,d){var k=this&&this.__extends||function(){var o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var u in t)t.hasOwnProperty(u)&&(e[u]=t[u])};return function(e,t){o(e,t);function u(){this.constructor=e}e.prototype=t===null?Object.create(t):(u.prototype=t.prototype,new u)}}();Object.defineProperty(s,"__esModule",{value:!0});var w=d(44),O=d(30),y=d(1),v=function(o){k(e,o);function e(t){var u=o.call(this,t)||this;return u.build(),u}return e.prototype.appendChild=function(t){this.insertBefore(t)},e.prototype.attach=function(){o.prototype.attach.call(this),this.children.forEach(function(t){t.attach()})},e.prototype.build=function(){var t=this;this.children=new w.default,[].slice.call(this.domNode.childNodes).reverse().forEach(function(u){try{var a=h(u);t.insertBefore(a,t.children.head||void 0)}catch(l){if(l instanceof y.ParchmentError)return;throw l}})},e.prototype.deleteAt=function(t,u){if(t===0&&u===this.length())return this.remove();this.children.forEachAt(t,u,function(a,l,r){a.deleteAt(l,r)})},e.prototype.descendant=function(t,u){var a=this.children.find(u),l=a[0],r=a[1];return t.blotName==null&&t(l)||t.blotName!=null&&l instanceof t?[l,r]:l instanceof e?l.descendant(t,r):[null,-1]},e.prototype.descendants=function(t,u,a){u===void 0&&(u=0),a===void 0&&(a=Number.MAX_VALUE);var l=[],r=a;return this.children.forEachAt(u,a,function(i,f,n){(t.blotName==null&&t(i)||t.blotName!=null&&i instanceof t)&&l.push(i),i instanceof e&&(l=l.concat(i.descendants(t,f,r))),r-=n}),l},e.prototype.detach=function(){this.children.forEach(function(t){t.detach()}),o.prototype.detach.call(this)},e.prototype.formatAt=function(t,u,a,l){this.children.forEachAt(t,u,function(r,i,f){r.formatAt(i,f,a,l)})},e.prototype.insertAt=function(t,u,a){var l=this.children.find(t),r=l[0],i=l[1];if(r)r.insertAt(i,u,a);else{var f=a==null?y.create("text",u):y.create(u,a);this.appendChild(f)}},e.prototype.insertBefore=function(t,u){if(this.statics.allowedChildren!=null&&!this.statics.allowedChildren.some(function(a){return t instanceof a}))throw new y.ParchmentError("Cannot insert "+t.statics.blotName+" into "+this.statics.blotName);t.insertInto(this,u)},e.prototype.length=function(){return this.children.reduce(function(t,u){return t+u.length()},0)},e.prototype.moveChildren=function(t,u){this.children.forEach(function(a){t.insertBefore(a,u)})},e.prototype.optimize=function(t){if(o.prototype.optimize.call(this,t),this.children.length===0)if(this.statics.defaultChild!=null){var u=y.create(this.statics.defaultChild);this.appendChild(u),u.optimize(t)}else this.remove()},e.prototype.path=function(t,u){u===void 0&&(u=!1);var a=this.children.find(t,u),l=a[0],r=a[1],i=[[this,t]];return l instanceof e?i.concat(l.path(r,u)):(l!=null&&i.push([l,r]),i)},e.prototype.removeChild=function(t){this.children.remove(t)},e.prototype.replace=function(t){t instanceof e&&t.moveChildren(this),o.prototype.replace.call(this,t)},e.prototype.split=function(t,u){if(u===void 0&&(u=!1),!u){if(t===0)return this;if(t===this.length())return this.next}var a=this.clone();return this.parent.insertBefore(a,this.next),this.children.forEachAt(t,this.length(),function(l,r,i){l=l.split(r,u),a.appendChild(l)}),a},e.prototype.unwrap=function(){this.moveChildren(this.parent,this.next),this.remove()},e.prototype.update=function(t,u){var a=this,l=[],r=[];t.forEach(function(i){i.target===a.domNode&&i.type==="childList"&&(l.push.apply(l,i.addedNodes),r.push.apply(r,i.removedNodes))}),r.forEach(function(i){if(!(i.parentNode!=null&&i.tagName!=="IFRAME"&&document.body.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_CONTAINED_BY)){var f=y.find(i);f!=null&&(f.domNode.parentNode==null||f.domNode.parentNode===a.domNode)&&f.detach()}}),l.filter(function(i){return i.parentNode==a.domNode}).sort(function(i,f){return i===f?0:i.compareDocumentPosition(f)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1}).forEach(function(i){var f=null;i.nextSibling!=null&&(f=y.find(i.nextSibling));var n=h(i);(n.next!=f||n.next==null)&&(n.parent!=null&&n.parent.removeChild(a),a.insertBefore(n,f||void 0))})},e}(O.default);function h(o){var e=y.find(o);if(e==null)try{e=y.create(o)}catch{e=y.create(y.Scope.INLINE),[].slice.call(o.childNodes).forEach(function(u){e.domNode.appendChild(u)}),o.parentNode&&o.parentNode.replaceChild(e.domNode,o),e.attach()}return e}s.default=v},function(_,s,d){var k=this&&this.__extends||function(){var o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var u in t)t.hasOwnProperty(u)&&(e[u]=t[u])};return function(e,t){o(e,t);function u(){this.constructor=e}e.prototype=t===null?Object.create(t):(u.prototype=t.prototype,new u)}}();Object.defineProperty(s,"__esModule",{value:!0});var w=d(12),O=d(31),y=d(17),v=d(1),h=function(o){k(e,o);function e(t){var u=o.call(this,t)||this;return u.attributes=new O.default(u.domNode),u}return e.formats=function(t){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return t.tagName.toLowerCase()},e.prototype.format=function(t,u){var a=v.query(t);a instanceof w.default?this.attributes.attribute(a,u):u&&a!=null&&(t!==this.statics.blotName||this.formats()[t]!==u)&&this.replaceWith(t,u)},e.prototype.formats=function(){var t=this.attributes.values(),u=this.statics.formats(this.domNode);return u!=null&&(t[this.statics.blotName]=u),t},e.prototype.replaceWith=function(t,u){var a=o.prototype.replaceWith.call(this,t,u);return this.attributes.copy(a),a},e.prototype.update=function(t,u){var a=this;o.prototype.update.call(this,t,u),t.some(function(l){return l.target===a.domNode&&l.type==="attributes"})&&this.attributes.build()},e.prototype.wrap=function(t,u){var a=o.prototype.wrap.call(this,t,u);return a instanceof e&&a.statics.scope===this.statics.scope&&this.attributes.move(a),a},e}(y.default);s.default=h},function(_,s,d){var k=this&&this.__extends||function(){var v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,o){h.__proto__=o}||function(h,o){for(var e in o)o.hasOwnProperty(e)&&(h[e]=o[e])};return function(h,o){v(h,o);function e(){this.constructor=h}h.prototype=o===null?Object.create(o):(e.prototype=o.prototype,new e)}}();Object.defineProperty(s,"__esModule",{value:!0});var w=d(30),O=d(1),y=function(v){k(h,v);function h(){return v!==null&&v.apply(this,arguments)||this}return h.value=function(o){return!0},h.prototype.index=function(o,e){return this.domNode===o||this.domNode.compareDocumentPosition(o)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(e,1):-1},h.prototype.position=function(o,e){var t=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);return o>0&&(t+=1),[this.parent.domNode,t]},h.prototype.value=function(){var o;return o={},o[this.statics.blotName]=this.statics.value(this.domNode)||!0,o},h.scope=O.Scope.INLINE_BLOT,h}(w.default);s.default=y},function(_,s,d){var k=d(11),w=d(3),O={attributes:{compose:function(v,h,o){typeof v!="object"&&(v={}),typeof h!="object"&&(h={});var e=w(!0,{},h);o||(e=Object.keys(e).reduce(function(u,a){return e[a]!=null&&(u[a]=e[a]),u},{}));for(var t in v)v[t]!==void 0&&h[t]===void 0&&(e[t]=v[t]);return Object.keys(e).length>0?e:void 0},diff:function(v,h){typeof v!="object"&&(v={}),typeof h!="object"&&(h={});var o=Object.keys(v).concat(Object.keys(h)).reduce(function(e,t){return k(v[t],h[t])||(e[t]=h[t]===void 0?null:h[t]),e},{});return Object.keys(o).length>0?o:void 0},transform:function(v,h,o){if(typeof v!="object")return h;if(typeof h=="object"){if(!o)return h;var e=Object.keys(h).reduce(function(t,u){return v[u]===void 0&&(t[u]=h[u]),t},{});return Object.keys(e).length>0?e:void 0}}},iterator:function(v){return new y(v)},length:function(v){return typeof v.delete=="number"?v.delete:typeof v.retain=="number"?v.retain:typeof v.insert=="string"?v.insert.length:1}};function y(v){this.ops=v,this.index=0,this.offset=0}y.prototype.hasNext=function(){return this.peekLength()<1/0},y.prototype.next=function(v){v||(v=1/0);var h=this.ops[this.index];if(h){var o=this.offset,e=O.length(h);if(v>=e-o?(v=e-o,this.index+=1,this.offset=0):this.offset+=v,typeof h.delete=="number")return{delete:v};var t={};return h.attributes&&(t.attributes=h.attributes),typeof h.retain=="number"?t.retain=v:typeof h.insert=="string"?t.insert=h.insert.substr(o,v):t.insert=h.insert,t}else return{retain:1/0}},y.prototype.peek=function(){return this.ops[this.index]},y.prototype.peekLength=function(){return this.ops[this.index]?O.length(this.ops[this.index])-this.offset:1/0},y.prototype.peekType=function(){return this.ops[this.index]?typeof this.ops[this.index].delete=="number"?"delete":typeof this.ops[this.index].retain=="number"?"retain":"insert":"retain"},y.prototype.rest=function(){if(this.hasNext()){if(this.offset===0)return this.ops.slice(this.index);var v=this.offset,h=this.index,o=this.next(),e=this.ops.slice(this.index);return this.offset=v,this.index=h,[o].concat(e)}else return[]},_.exports=O},function(_,s){var d=function(){function k(a,l){return l!=null&&a instanceof l}var w;try{w=Map}catch{w=function(){}}var O;try{O=Set}catch{O=function(){}}var y;try{y=Promise}catch{y=function(){}}function v(a,l,r,i,f){typeof l=="object"&&(r=l.depth,i=l.prototype,f=l.includeNonEnumerable,l=l.circular);var n=[],c=[],S=typeof Buffer<"u";typeof l>"u"&&(l=!0),typeof r>"u"&&(r=1/0);function E(A,j){if(A===null)return null;if(j===0)return A;var b,p;if(typeof A!="object")return A;if(k(A,w))b=new w;else if(k(A,O))b=new O;else if(k(A,y))b=new y(function(P,m){A.then(function(T){P(E(T,j-1))},function(T){m(E(T,j-1))})});else if(v.__isArray(A))b=[];else if(v.__isRegExp(A))b=new RegExp(A.source,u(A)),A.lastIndex&&(b.lastIndex=A.lastIndex);else if(v.__isDate(A))b=new Date(A.getTime());else{if(S&&Buffer.isBuffer(A))return Buffer.allocUnsafe?b=Buffer.allocUnsafe(A.length):b=new Buffer(A.length),A.copy(b),b;k(A,Error)?b=Object.create(A):typeof i>"u"?(p=Object.getPrototypeOf(A),b=Object.create(p)):(b=Object.create(i),p=i)}if(l){var g=n.indexOf(A);if(g!=-1)return c[g];n.push(A),c.push(b)}k(A,w)&&A.forEach(function(P,m){var T=E(m,j-1),M=E(P,j-1);b.set(T,M)}),k(A,O)&&A.forEach(function(P){var m=E(P,j-1);b.add(m)});for(var N in A){var q;p&&(q=Object.getOwnPropertyDescriptor(p,N)),!(q&&q.set==null)&&(b[N]=E(A[N],j-1))}if(Object.getOwnPropertySymbols)for(var I=Object.getOwnPropertySymbols(A),N=0;N<I.length;N++){var F=I[N],U=Object.getOwnPropertyDescriptor(A,F);U&&!U.enumerable&&!f||(b[F]=E(A[F],j-1),U.enumerable||Object.defineProperty(b,F,{enumerable:!1}))}if(f)for(var K=Object.getOwnPropertyNames(A),N=0;N<K.length;N++){var D=K[N],U=Object.getOwnPropertyDescriptor(A,D);U&&U.enumerable||(b[D]=E(A[D],j-1),Object.defineProperty(b,D,{enumerable:!1}))}return b}return E(a,r)}v.clonePrototype=function(l){if(l===null)return null;var r=function(){};return r.prototype=l,new r};function h(a){return Object.prototype.toString.call(a)}v.__objToStr=h;function o(a){return typeof a=="object"&&h(a)==="[object Date]"}v.__isDate=o;function e(a){return typeof a=="object"&&h(a)==="[object Array]"}v.__isArray=e;function t(a){return typeof a=="object"&&h(a)==="[object RegExp]"}v.__isRegExp=t;function u(a){var l="";return a.global&&(l+="g"),a.ignoreCase&&(l+="i"),a.multiline&&(l+="m"),l}return v.__getRegExpFlags=u,v}();typeof _=="object"&&_.exports&&(_.exports=d)},function(_,s,d){Object.defineProperty(s,"__esModule",{value:!0});var k=function(){function b(p,g){var N=[],q=!0,I=!1,F=void 0;try{for(var U=p[Symbol.iterator](),K;!(q=(K=U.next()).done)&&(N.push(K.value),!(g&&N.length===g));q=!0);}catch(D){I=!0,F=D}finally{try{!q&&U.return&&U.return()}finally{if(I)throw F}}return N}return function(p,g){if(Array.isArray(p))return p;if(Symbol.iterator in Object(p))return b(p,g);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),w=function(){function b(p,g){for(var N=0;N<g.length;N++){var q=g[N];q.enumerable=q.enumerable||!1,q.configurable=!0,"value"in q&&(q.writable=!0),Object.defineProperty(p,q.key,q)}}return function(p,g,N){return g&&b(p.prototype,g),N&&b(p,N),p}}(),O=function b(p,g,N){p===null&&(p=Function.prototype);var q=Object.getOwnPropertyDescriptor(p,g);if(q===void 0){var I=Object.getPrototypeOf(p);return I===null?void 0:b(I,g,N)}else{if("value"in q)return q.value;var F=q.get;return F===void 0?void 0:F.call(N)}},y=d(0),v=n(y),h=d(8),o=n(h),e=d(4),t=n(e),u=d(16),a=n(u),l=d(13),r=n(l),i=d(25),f=n(i);function n(b){return b&&b.__esModule?b:{default:b}}function c(b,p){if(!(b instanceof p))throw new TypeError("Cannot call a class as a function")}function S(b,p){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p&&(typeof p=="object"||typeof p=="function")?p:b}function E(b,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof p);b.prototype=Object.create(p&&p.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(b,p):b.__proto__=p)}function A(b){return b instanceof t.default||b instanceof e.BlockEmbed}var j=function(b){E(p,b);function p(g,N){c(this,p);var q=S(this,(p.__proto__||Object.getPrototypeOf(p)).call(this,g));return q.emitter=N.emitter,Array.isArray(N.whitelist)&&(q.whitelist=N.whitelist.reduce(function(I,F){return I[F]=!0,I},{})),q.domNode.addEventListener("DOMNodeInserted",function(){}),q.optimize(),q.enable(),q}return w(p,[{key:"batchStart",value:function(){this.batch=!0}},{key:"batchEnd",value:function(){this.batch=!1,this.optimize()}},{key:"deleteAt",value:function(N,q){var I=this.line(N),F=k(I,2),U=F[0],K=F[1],D=this.line(N+q),P=k(D,1),m=P[0];if(O(p.prototype.__proto__||Object.getPrototypeOf(p.prototype),"deleteAt",this).call(this,N,q),m!=null&&U!==m&&K>0){if(U instanceof e.BlockEmbed||m instanceof e.BlockEmbed){this.optimize();return}if(U instanceof r.default){var T=U.newlineIndex(U.length(),!0);if(T>-1&&(U=U.split(T+1),U===m)){this.optimize();return}}else if(m instanceof r.default){var M=m.newlineIndex(0);M>-1&&m.split(M+1)}var $=m.children.head instanceof a.default?null:m.children.head;U.moveChildren(m,$),U.remove()}this.optimize()}},{key:"enable",value:function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.domNode.setAttribute("contenteditable",N)}},{key:"formatAt",value:function(N,q,I,F){this.whitelist!=null&&!this.whitelist[I]||(O(p.prototype.__proto__||Object.getPrototypeOf(p.prototype),"formatAt",this).call(this,N,q,I,F),this.optimize())}},{key:"insertAt",value:function(N,q,I){if(!(I!=null&&this.whitelist!=null&&!this.whitelist[q])){if(N>=this.length())if(I==null||v.default.query(q,v.default.Scope.BLOCK)==null){var F=v.default.create(this.statics.defaultChild);this.appendChild(F),I==null&&q.endsWith(`
`)&&(q=q.slice(0,-1)),F.insertAt(0,q,I)}else{var U=v.default.create(q,I);this.appendChild(U)}else O(p.prototype.__proto__||Object.getPrototypeOf(p.prototype),"insertAt",this).call(this,N,q,I);this.optimize()}}},{key:"insertBefore",value:function(N,q){if(N.statics.scope===v.default.Scope.INLINE_BLOT){var I=v.default.create(this.statics.defaultChild);I.appendChild(N),N=I}O(p.prototype.__proto__||Object.getPrototypeOf(p.prototype),"insertBefore",this).call(this,N,q)}},{key:"leaf",value:function(N){return this.path(N).pop()||[null,-1]}},{key:"line",value:function(N){return N===this.length()?this.line(N-1):this.descendant(A,N)}},{key:"lines",value:function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE,I=function F(U,K,D){var P=[],m=D;return U.children.forEachAt(K,D,function(T,M,$){A(T)?P.push(T):T instanceof v.default.Container&&(P=P.concat(F(T,M,m))),m-=$}),P};return I(this,N,q)}},{key:"optimize",value:function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.batch!==!0&&(O(p.prototype.__proto__||Object.getPrototypeOf(p.prototype),"optimize",this).call(this,N,q),N.length>0&&this.emitter.emit(o.default.events.SCROLL_OPTIMIZE,N,q))}},{key:"path",value:function(N){return O(p.prototype.__proto__||Object.getPrototypeOf(p.prototype),"path",this).call(this,N).slice(1)}},{key:"update",value:function(N){if(this.batch!==!0){var q=o.default.sources.USER;typeof N=="string"&&(q=N),Array.isArray(N)||(N=this.observer.takeRecords()),N.length>0&&this.emitter.emit(o.default.events.SCROLL_BEFORE_UPDATE,q,N),O(p.prototype.__proto__||Object.getPrototypeOf(p.prototype),"update",this).call(this,N.concat([])),N.length>0&&this.emitter.emit(o.default.events.SCROLL_UPDATE,q,N)}}}]),p}(v.default.Scroll);j.blotName="scroll",j.className="ql-editor",j.tagName="DIV",j.defaultChild="block",j.allowedChildren=[t.default,e.BlockEmbed,f.default],s.default=j},function(_,s,d){Object.defineProperty(s,"__esModule",{value:!0}),s.SHORTKEY=s.default=void 0;var k=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(L){return typeof L}:function(L){return L&&typeof Symbol=="function"&&L.constructor===Symbol&&L!==Symbol.prototype?"symbol":typeof L},w=function(){function L(C,H){var z=[],Z=!0,J=!1,ee=void 0;try{for(var te=C[Symbol.iterator](),oe;!(Z=(oe=te.next()).done)&&(z.push(oe.value),!(H&&z.length===H));Z=!0);}catch(ae){J=!0,ee=ae}finally{try{!Z&&te.return&&te.return()}finally{if(J)throw ee}}return z}return function(C,H){if(Array.isArray(C))return C;if(Symbol.iterator in Object(C))return L(C,H);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),O=function(){function L(C,H){for(var z=0;z<H.length;z++){var Z=H[z];Z.enumerable=Z.enumerable||!1,Z.configurable=!0,"value"in Z&&(Z.writable=!0),Object.defineProperty(C,Z.key,Z)}}return function(C,H,z){return H&&L(C.prototype,H),z&&L(C,z),C}}(),y=d(21),v=b(y),h=d(11),o=b(h),e=d(3),t=b(e),u=d(2),a=b(u),l=d(20),r=b(l),i=d(0),f=b(i),n=d(5),c=b(n),S=d(10),E=b(S),A=d(9),j=b(A);function b(L){return L&&L.__esModule?L:{default:L}}function p(L,C,H){return C in L?Object.defineProperty(L,C,{value:H,enumerable:!0,configurable:!0,writable:!0}):L[C]=H,L}function g(L,C){if(!(L instanceof C))throw new TypeError("Cannot call a class as a function")}function N(L,C){if(!L)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return C&&(typeof C=="object"||typeof C=="function")?C:L}function q(L,C){if(typeof C!="function"&&C!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof C);L.prototype=Object.create(C&&C.prototype,{constructor:{value:L,enumerable:!1,writable:!0,configurable:!0}}),C&&(Object.setPrototypeOf?Object.setPrototypeOf(L,C):L.__proto__=C)}var I=(0,E.default)("quill:keyboard"),F=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",U=function(L){q(C,L),O(C,null,[{key:"match",value:function(z,Z){return Z=B(Z),["altKey","ctrlKey","metaKey","shiftKey"].some(function(J){return!!Z[J]!==z[J]&&Z[J]!==null})?!1:Z.key===(z.which||z.keyCode)}}]);function C(H,z){g(this,C);var Z=N(this,(C.__proto__||Object.getPrototypeOf(C)).call(this,H,z));return Z.bindings={},Object.keys(Z.options.bindings).forEach(function(J){J==="list autofill"&&H.scroll.whitelist!=null&&!H.scroll.whitelist.list||Z.options.bindings[J]&&Z.addBinding(Z.options.bindings[J])}),Z.addBinding({key:C.keys.ENTER,shiftKey:null},T),Z.addBinding({key:C.keys.ENTER,metaKey:null,ctrlKey:null,altKey:null},function(){}),/Firefox/i.test(navigator.userAgent)?(Z.addBinding({key:C.keys.BACKSPACE},{collapsed:!0},D),Z.addBinding({key:C.keys.DELETE},{collapsed:!0},P)):(Z.addBinding({key:C.keys.BACKSPACE},{collapsed:!0,prefix:/^.?$/},D),Z.addBinding({key:C.keys.DELETE},{collapsed:!0,suffix:/^.?$/},P)),Z.addBinding({key:C.keys.BACKSPACE},{collapsed:!1},m),Z.addBinding({key:C.keys.DELETE},{collapsed:!1},m),Z.addBinding({key:C.keys.BACKSPACE,altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},D),Z.listen(),Z}return O(C,[{key:"addBinding",value:function(z){var Z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},J=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},ee=B(z);if(ee==null||ee.key==null)return I.warn("Attempted to add invalid keyboard binding",ee);typeof Z=="function"&&(Z={handler:Z}),typeof J=="function"&&(J={handler:J}),ee=(0,t.default)(ee,Z,J),this.bindings[ee.key]=this.bindings[ee.key]||[],this.bindings[ee.key].push(ee)}},{key:"listen",value:function(){var z=this;this.quill.root.addEventListener("keydown",function(Z){if(!Z.defaultPrevented){var J=Z.which||Z.keyCode,ee=(z.bindings[J]||[]).filter(function(se){return C.match(Z,se)});if(ee.length!==0){var te=z.quill.getSelection();if(!(te==null||!z.quill.hasFocus())){var oe=z.quill.getLine(te.index),ae=w(oe,2),he=ae[0],fe=ae[1],G=z.quill.getLeaf(te.index),W=w(G,2),Y=W[0],X=W[1],Q=te.length===0?[Y,X]:z.quill.getLeaf(te.index+te.length),ne=w(Q,2),re=ne[0],ie=ne[1],ye=Y instanceof f.default.Text?Y.value().slice(0,X):"",me=re instanceof f.default.Text?re.value().slice(ie):"",ue={collapsed:te.length===0,empty:te.length===0&&he.length()<=1,format:z.quill.getFormat(te),offset:fe,prefix:ye,suffix:me},en=ee.some(function(se){if(se.collapsed!=null&&se.collapsed!==ue.collapsed||se.empty!=null&&se.empty!==ue.empty||se.offset!=null&&se.offset!==ue.offset)return!1;if(Array.isArray(se.format)){if(se.format.every(function(_e){return ue.format[_e]==null}))return!1}else if(k(se.format)==="object"&&!Object.keys(se.format).every(function(_e){return se.format[_e]===!0?ue.format[_e]!=null:se.format[_e]===!1?ue.format[_e]==null:(0,o.default)(se.format[_e],ue.format[_e])}))return!1;return se.prefix!=null&&!se.prefix.test(ue.prefix)||se.suffix!=null&&!se.suffix.test(ue.suffix)?!1:se.handler.call(z,te,ue)!==!0});en&&Z.preventDefault()}}}})}}]),C}(j.default);U.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},U.DEFAULTS={bindings:{bold:$("bold"),italic:$("italic"),underline:$("underline"),indent:{key:U.keys.TAB,format:["blockquote","indent","list"],handler:function(C,H){if(H.collapsed&&H.offset!==0)return!0;this.quill.format("indent","+1",c.default.sources.USER)}},outdent:{key:U.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function(C,H){if(H.collapsed&&H.offset!==0)return!0;this.quill.format("indent","-1",c.default.sources.USER)}},"outdent backspace":{key:U.keys.BACKSPACE,collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function(C,H){H.format.indent!=null?this.quill.format("indent","-1",c.default.sources.USER):H.format.list!=null&&this.quill.format("list",!1,c.default.sources.USER)}},"indent code-block":M(!0),"outdent code-block":M(!1),"remove tab":{key:U.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(C){this.quill.deleteText(C.index-1,1,c.default.sources.USER)}},tab:{key:U.keys.TAB,handler:function(C){this.quill.history.cutoff();var H=new a.default().retain(C.index).delete(C.length).insert("	");this.quill.updateContents(H,c.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(C.index+1,c.default.sources.SILENT)}},"list empty enter":{key:U.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(C,H){this.quill.format("list",!1,c.default.sources.USER),H.format.indent&&this.quill.format("indent",!1,c.default.sources.USER)}},"checklist enter":{key:U.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(C){var H=this.quill.getLine(C.index),z=w(H,2),Z=z[0],J=z[1],ee=(0,t.default)({},Z.formats(),{list:"checked"}),te=new a.default().retain(C.index).insert(`
`,ee).retain(Z.length()-J-1).retain(1,{list:"unchecked"});this.quill.updateContents(te,c.default.sources.USER),this.quill.setSelection(C.index+1,c.default.sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:U.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(C,H){var z=this.quill.getLine(C.index),Z=w(z,2),J=Z[0],ee=Z[1],te=new a.default().retain(C.index).insert(`
`,H.format).retain(J.length()-ee-1).retain(1,{header:null});this.quill.updateContents(te,c.default.sources.USER),this.quill.setSelection(C.index+1,c.default.sources.SILENT),this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(C,H){var z=H.prefix.length,Z=this.quill.getLine(C.index),J=w(Z,2),ee=J[0],te=J[1];if(te>z)return!0;var oe=void 0;switch(H.prefix.trim()){case"[]":case"[ ]":oe="unchecked";break;case"[x]":oe="checked";break;case"-":case"*":oe="bullet";break;default:oe="ordered"}this.quill.insertText(C.index," ",c.default.sources.USER),this.quill.history.cutoff();var ae=new a.default().retain(C.index-te).delete(z+1).retain(ee.length()-2-te).retain(1,{list:oe});this.quill.updateContents(ae,c.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(C.index-z,c.default.sources.SILENT)}},"code exit":{key:U.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(C){var H=this.quill.getLine(C.index),z=w(H,2),Z=z[0],J=z[1],ee=new a.default().retain(C.index+Z.length()-J-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(ee,c.default.sources.USER)}},"embed left":K(U.keys.LEFT,!1),"embed left shift":K(U.keys.LEFT,!0),"embed right":K(U.keys.RIGHT,!1),"embed right shift":K(U.keys.RIGHT,!0)}};function K(L,C){var H,z=L===U.keys.LEFT?"prefix":"suffix";return H={key:L,shiftKey:C,altKey:null},p(H,z,/^$/),p(H,"handler",function(J){var ee=J.index;L===U.keys.RIGHT&&(ee+=J.length+1);var te=this.quill.getLeaf(ee),oe=w(te,1),ae=oe[0];return ae instanceof f.default.Embed?(L===U.keys.LEFT?C?this.quill.setSelection(J.index-1,J.length+1,c.default.sources.USER):this.quill.setSelection(J.index-1,c.default.sources.USER):C?this.quill.setSelection(J.index,J.length+1,c.default.sources.USER):this.quill.setSelection(J.index+J.length+1,c.default.sources.USER),!1):!0}),H}function D(L,C){if(!(L.index===0||this.quill.getLength()<=1)){var H=this.quill.getLine(L.index),z=w(H,1),Z=z[0],J={};if(C.offset===0){var ee=this.quill.getLine(L.index-1),te=w(ee,1),oe=te[0];if(oe!=null&&oe.length()>1){var ae=Z.formats(),he=this.quill.getFormat(L.index-1,1);J=r.default.attributes.diff(ae,he)||{}}}var fe=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(C.prefix)?2:1;this.quill.deleteText(L.index-fe,fe,c.default.sources.USER),Object.keys(J).length>0&&this.quill.formatLine(L.index-fe,fe,J,c.default.sources.USER),this.quill.focus()}}function P(L,C){var H=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(C.suffix)?2:1;if(!(L.index>=this.quill.getLength()-H)){var z={},Z=0,J=this.quill.getLine(L.index),ee=w(J,1),te=ee[0];if(C.offset>=te.length()-1){var oe=this.quill.getLine(L.index+1),ae=w(oe,1),he=ae[0];if(he){var fe=te.formats(),G=this.quill.getFormat(L.index,1);z=r.default.attributes.diff(fe,G)||{},Z=he.length()}}this.quill.deleteText(L.index,H,c.default.sources.USER),Object.keys(z).length>0&&this.quill.formatLine(L.index+Z-1,H,z,c.default.sources.USER)}}function m(L){var C=this.quill.getLines(L),H={};if(C.length>1){var z=C[0].formats(),Z=C[C.length-1].formats();H=r.default.attributes.diff(Z,z)||{}}this.quill.deleteText(L,c.default.sources.USER),Object.keys(H).length>0&&this.quill.formatLine(L.index,1,H,c.default.sources.USER),this.quill.setSelection(L.index,c.default.sources.SILENT),this.quill.focus()}function T(L,C){var H=this;L.length>0&&this.quill.scroll.deleteAt(L.index,L.length);var z=Object.keys(C.format).reduce(function(Z,J){return f.default.query(J,f.default.Scope.BLOCK)&&!Array.isArray(C.format[J])&&(Z[J]=C.format[J]),Z},{});this.quill.insertText(L.index,`
`,z,c.default.sources.USER),this.quill.setSelection(L.index+1,c.default.sources.SILENT),this.quill.focus(),Object.keys(C.format).forEach(function(Z){z[Z]==null&&(Array.isArray(C.format[Z])||Z!=="link"&&H.quill.format(Z,C.format[Z],c.default.sources.USER))})}function M(L){return{key:U.keys.TAB,shiftKey:!L,format:{"code-block":!0},handler:function(H){var z=f.default.query("code-block"),Z=H.index,J=H.length,ee=this.quill.scroll.descendant(z,Z),te=w(ee,2),oe=te[0],ae=te[1];if(oe!=null){var he=this.quill.getIndex(oe),fe=oe.newlineIndex(ae,!0)+1,G=oe.newlineIndex(he+ae+J),W=oe.domNode.textContent.slice(fe,G).split(`
`);ae=0,W.forEach(function(Y,X){L?(oe.insertAt(fe+ae,z.TAB),ae+=z.TAB.length,X===0?Z+=z.TAB.length:J+=z.TAB.length):Y.startsWith(z.TAB)&&(oe.deleteAt(fe+ae,z.TAB.length),ae-=z.TAB.length,X===0?Z-=z.TAB.length:J-=z.TAB.length),ae+=Y.length+1}),this.quill.update(c.default.sources.USER),this.quill.setSelection(Z,J,c.default.sources.SILENT)}}}}function $(L){return{key:L[0].toUpperCase(),shortKey:!0,handler:function(H,z){this.quill.format(L,!z.format[L],c.default.sources.USER)}}}function B(L){if(typeof L=="string"||typeof L=="number")return B({key:L});if((typeof L>"u"?"undefined":k(L))==="object"&&(L=(0,v.default)(L,!1)),typeof L.key=="string")if(U.keys[L.key.toUpperCase()]!=null)L.key=U.keys[L.key.toUpperCase()];else if(L.key.length===1)L.key=L.key.toUpperCase().charCodeAt(0);else return null;return L.shortKey&&(L[F]=L.shortKey,delete L.shortKey),L}s.default=U,s.SHORTKEY=F},function(_,s,d){Object.defineProperty(s,"__esModule",{value:!0});var k=function(){function r(i,f){var n=[],c=!0,S=!1,E=void 0;try{for(var A=i[Symbol.iterator](),j;!(c=(j=A.next()).done)&&(n.push(j.value),!(f&&n.length===f));c=!0);}catch(b){S=!0,E=b}finally{try{!c&&A.return&&A.return()}finally{if(S)throw E}}return n}return function(i,f){if(Array.isArray(i))return i;if(Symbol.iterator in Object(i))return r(i,f);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),w=function r(i,f,n){i===null&&(i=Function.prototype);var c=Object.getOwnPropertyDescriptor(i,f);if(c===void 0){var S=Object.getPrototypeOf(i);return S===null?void 0:r(S,f,n)}else{if("value"in c)return c.value;var E=c.get;return E===void 0?void 0:E.call(n)}},O=function(){function r(i,f){for(var n=0;n<f.length;n++){var c=f[n];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(i,c.key,c)}}return function(i,f,n){return f&&r(i.prototype,f),n&&r(i,n),i}}(),y=d(0),v=e(y),h=d(7),o=e(h);function e(r){return r&&r.__esModule?r:{default:r}}function t(r,i){if(!(r instanceof i))throw new TypeError("Cannot call a class as a function")}function u(r,i){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i&&(typeof i=="object"||typeof i=="function")?i:r}function a(r,i){if(typeof i!="function"&&i!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof i);r.prototype=Object.create(i&&i.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),i&&(Object.setPrototypeOf?Object.setPrototypeOf(r,i):r.__proto__=i)}var l=function(r){a(i,r),O(i,null,[{key:"value",value:function(){}}]);function i(f,n){t(this,i);var c=u(this,(i.__proto__||Object.getPrototypeOf(i)).call(this,f));return c.selection=n,c.textNode=document.createTextNode(i.CONTENTS),c.domNode.appendChild(c.textNode),c._length=0,c}return O(i,[{key:"detach",value:function(){this.parent!=null&&this.parent.removeChild(this)}},{key:"format",value:function(n,c){if(this._length!==0)return w(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),"format",this).call(this,n,c);for(var S=this,E=0;S!=null&&S.statics.scope!==v.default.Scope.BLOCK_BLOT;)E+=S.offset(S.parent),S=S.parent;S!=null&&(this._length=i.CONTENTS.length,S.optimize(),S.formatAt(E,i.CONTENTS.length,n,c),this._length=0)}},{key:"index",value:function(n,c){return n===this.textNode?0:w(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),"index",this).call(this,n,c)}},{key:"length",value:function(){return this._length}},{key:"position",value:function(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function(){w(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),"remove",this).call(this),this.parent=null}},{key:"restore",value:function(){if(!(this.selection.composing||this.parent==null)){var n=this.textNode,c=this.selection.getNativeRange(),S=void 0,E=void 0,A=void 0;if(c!=null&&c.start.node===n&&c.end.node===n){var j=[n,c.start.offset,c.end.offset];S=j[0],E=j[1],A=j[2]}for(;this.domNode.lastChild!=null&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);if(this.textNode.data!==i.CONTENTS){var b=this.textNode.data.split(i.CONTENTS).join("");this.next instanceof o.default?(S=this.next.domNode,this.next.insertAt(0,b),this.textNode.data=i.CONTENTS):(this.textNode.data=b,this.parent.insertBefore(v.default.create(this.textNode),this),this.textNode=document.createTextNode(i.CONTENTS),this.domNode.appendChild(this.textNode))}if(this.remove(),E!=null){var p=[E,A].map(function(N){return Math.max(0,Math.min(S.data.length,N-1))}),g=k(p,2);return E=g[0],A=g[1],{startNode:S,startOffset:E,endNode:S,endOffset:A}}}}},{key:"update",value:function(n,c){var S=this;if(n.some(function(A){return A.type==="characterData"&&A.target===S.textNode})){var E=this.restore();E&&(c.range=E)}}},{key:"value",value:function(){return""}}]),i}(v.default.Embed);l.blotName="cursor",l.className="ql-cursor",l.tagName="span",l.CONTENTS="\uFEFF",s.default=l},function(_,s,d){Object.defineProperty(s,"__esModule",{value:!0});var k=d(0),w=v(k),O=d(4),y=v(O);function v(u){return u&&u.__esModule?u:{default:u}}function h(u,a){if(!(u instanceof a))throw new TypeError("Cannot call a class as a function")}function o(u,a){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a&&(typeof a=="object"||typeof a=="function")?a:u}function e(u,a){if(typeof a!="function"&&a!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof a);u.prototype=Object.create(a&&a.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),a&&(Object.setPrototypeOf?Object.setPrototypeOf(u,a):u.__proto__=a)}var t=function(u){e(a,u);function a(){return h(this,a),o(this,(a.__proto__||Object.getPrototypeOf(a)).apply(this,arguments))}return a}(w.default.Container);t.allowedChildren=[y.default,O.BlockEmbed,t],s.default=t},function(_,s,d){Object.defineProperty(s,"__esModule",{value:!0}),s.ColorStyle=s.ColorClass=s.ColorAttributor=void 0;var k=function(){function l(r,i){for(var f=0;f<i.length;f++){var n=i[f];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(r,n.key,n)}}return function(r,i,f){return i&&l(r.prototype,i),f&&l(r,f),r}}(),w=function l(r,i,f){r===null&&(r=Function.prototype);var n=Object.getOwnPropertyDescriptor(r,i);if(n===void 0){var c=Object.getPrototypeOf(r);return c===null?void 0:l(c,i,f)}else{if("value"in n)return n.value;var S=n.get;return S===void 0?void 0:S.call(f)}},O=d(0),y=v(O);function v(l){return l&&l.__esModule?l:{default:l}}function h(l,r){if(!(l instanceof r))throw new TypeError("Cannot call a class as a function")}function o(l,r){if(!l)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r&&(typeof r=="object"||typeof r=="function")?r:l}function e(l,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof r);l.prototype=Object.create(r&&r.prototype,{constructor:{value:l,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?Object.setPrototypeOf(l,r):l.__proto__=r)}var t=function(l){e(r,l);function r(){return h(this,r),o(this,(r.__proto__||Object.getPrototypeOf(r)).apply(this,arguments))}return k(r,[{key:"value",value:function(f){var n=w(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"value",this).call(this,f);return n.startsWith("rgb(")?(n=n.replace(/^[^\d]+/,"").replace(/[^\d]+$/,""),"#"+n.split(",").map(function(c){return("00"+parseInt(c).toString(16)).slice(-2)}).join("")):n}}]),r}(y.default.Attributor.Style),u=new y.default.Attributor.Class("color","ql-color",{scope:y.default.Scope.INLINE}),a=new t("color","color",{scope:y.default.Scope.INLINE});s.ColorAttributor=t,s.ColorClass=u,s.ColorStyle=a},function(_,s,d){Object.defineProperty(s,"__esModule",{value:!0}),s.sanitize=s.default=void 0;var k=function(){function a(l,r){for(var i=0;i<r.length;i++){var f=r[i];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(l,f.key,f)}}return function(l,r,i){return r&&a(l.prototype,r),i&&a(l,i),l}}(),w=function a(l,r,i){l===null&&(l=Function.prototype);var f=Object.getOwnPropertyDescriptor(l,r);if(f===void 0){var n=Object.getPrototypeOf(l);return n===null?void 0:a(n,r,i)}else{if("value"in f)return f.value;var c=f.get;return c===void 0?void 0:c.call(i)}},O=d(6),y=v(O);function v(a){return a&&a.__esModule?a:{default:a}}function h(a,l){if(!(a instanceof l))throw new TypeError("Cannot call a class as a function")}function o(a,l){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l&&(typeof l=="object"||typeof l=="function")?l:a}function e(a,l){if(typeof l!="function"&&l!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof l);a.prototype=Object.create(l&&l.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),l&&(Object.setPrototypeOf?Object.setPrototypeOf(a,l):a.__proto__=l)}var t=function(a){e(l,a);function l(){return h(this,l),o(this,(l.__proto__||Object.getPrototypeOf(l)).apply(this,arguments))}return k(l,[{key:"format",value:function(i,f){if(i!==this.statics.blotName||!f)return w(l.prototype.__proto__||Object.getPrototypeOf(l.prototype),"format",this).call(this,i,f);f=this.constructor.sanitize(f),this.domNode.setAttribute("href",f)}}],[{key:"create",value:function(i){var f=w(l.__proto__||Object.getPrototypeOf(l),"create",this).call(this,i);return i=this.sanitize(i),f.setAttribute("href",i),f.setAttribute("rel","noopener noreferrer"),f.setAttribute("target","_blank"),f}},{key:"formats",value:function(i){return i.getAttribute("href")}},{key:"sanitize",value:function(i){return u(i,this.PROTOCOL_WHITELIST)?i:this.SANITIZED_URL}}]),l}(y.default);t.blotName="link",t.tagName="A",t.SANITIZED_URL="about:blank",t.PROTOCOL_WHITELIST=["http","https","mailto","tel"];function u(a,l){var r=document.createElement("a");r.href=a;var i=r.href.slice(0,r.href.indexOf(":"));return l.indexOf(i)>-1}s.default=t,s.sanitize=u},function(_,s,d){Object.defineProperty(s,"__esModule",{value:!0});var k=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(l){return typeof l}:function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l},w=function(){function l(r,i){for(var f=0;f<i.length;f++){var n=i[f];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(r,n.key,n)}}return function(r,i,f){return i&&l(r.prototype,i),f&&l(r,f),r}}(),O=d(23),y=o(O),v=d(107),h=o(v);function o(l){return l&&l.__esModule?l:{default:l}}function e(l,r){if(!(l instanceof r))throw new TypeError("Cannot call a class as a function")}var t=0;function u(l,r){l.setAttribute(r,l.getAttribute(r)!=="true")}var a=function(){function l(r){var i=this;e(this,l),this.select=r,this.container=document.createElement("span"),this.buildPicker(),this.select.style.display="none",this.select.parentNode.insertBefore(this.container,this.select),this.label.addEventListener("mousedown",function(){i.togglePicker()}),this.label.addEventListener("keydown",function(f){switch(f.keyCode){case y.default.keys.ENTER:i.togglePicker();break;case y.default.keys.ESCAPE:i.escape(),f.preventDefault();break}}),this.select.addEventListener("change",this.update.bind(this))}return w(l,[{key:"togglePicker",value:function(){this.container.classList.toggle("ql-expanded"),u(this.label,"aria-expanded"),u(this.options,"aria-hidden")}},{key:"buildItem",value:function(i){var f=this,n=document.createElement("span");return n.tabIndex="0",n.setAttribute("role","button"),n.classList.add("ql-picker-item"),i.hasAttribute("value")&&n.setAttribute("data-value",i.getAttribute("value")),i.textContent&&n.setAttribute("data-label",i.textContent),n.addEventListener("click",function(){f.selectItem(n,!0)}),n.addEventListener("keydown",function(c){switch(c.keyCode){case y.default.keys.ENTER:f.selectItem(n,!0),c.preventDefault();break;case y.default.keys.ESCAPE:f.escape(),c.preventDefault();break}}),n}},{key:"buildLabel",value:function(){var i=document.createElement("span");return i.classList.add("ql-picker-label"),i.innerHTML=h.default,i.tabIndex="0",i.setAttribute("role","button"),i.setAttribute("aria-expanded","false"),this.container.appendChild(i),i}},{key:"buildOptions",value:function(){var i=this,f=document.createElement("span");f.classList.add("ql-picker-options"),f.setAttribute("aria-hidden","true"),f.tabIndex="-1",f.id="ql-picker-options-"+t,t+=1,this.label.setAttribute("aria-controls",f.id),this.options=f,[].slice.call(this.select.options).forEach(function(n){var c=i.buildItem(n);f.appendChild(c),n.selected===!0&&i.selectItem(c)}),this.container.appendChild(f)}},{key:"buildPicker",value:function(){var i=this;[].slice.call(this.select.attributes).forEach(function(f){i.container.setAttribute(f.name,f.value)}),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}},{key:"escape",value:function(){var i=this;this.close(),setTimeout(function(){return i.label.focus()},1)}},{key:"close",value:function(){this.container.classList.remove("ql-expanded"),this.label.setAttribute("aria-expanded","false"),this.options.setAttribute("aria-hidden","true")}},{key:"selectItem",value:function(i){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=this.container.querySelector(".ql-selected");if(i!==n&&(n!=null&&n.classList.remove("ql-selected"),i!=null&&(i.classList.add("ql-selected"),this.select.selectedIndex=[].indexOf.call(i.parentNode.children,i),i.hasAttribute("data-value")?this.label.setAttribute("data-value",i.getAttribute("data-value")):this.label.removeAttribute("data-value"),i.hasAttribute("data-label")?this.label.setAttribute("data-label",i.getAttribute("data-label")):this.label.removeAttribute("data-label"),f))){if(typeof Event=="function")this.select.dispatchEvent(new Event("change"));else if((typeof Event>"u"?"undefined":k(Event))==="object"){var c=document.createEvent("Event");c.initEvent("change",!0,!0),this.select.dispatchEvent(c)}this.close()}}},{key:"update",value:function(){var i=void 0;if(this.select.selectedIndex>-1){var f=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];i=this.select.options[this.select.selectedIndex],this.selectItem(f)}else this.selectItem(null);var n=i!=null&&i!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",n)}}]),l}();s.default=a},function(_,s,d){Object.defineProperty(s,"__esModule",{value:!0});var k=d(0),w=I(k),O=d(5),y=I(O),v=d(4),h=I(v),o=d(16),e=I(o),t=d(25),u=I(t),a=d(24),l=I(a),r=d(35),i=I(r),f=d(6),n=I(f),c=d(22),S=I(c),E=d(7),A=I(E),j=d(55),b=I(j),p=d(42),g=I(p),N=d(23),q=I(N);function I(F){return F&&F.__esModule?F:{default:F}}y.default.register({"blots/block":h.default,"blots/block/embed":v.BlockEmbed,"blots/break":e.default,"blots/container":u.default,"blots/cursor":l.default,"blots/embed":i.default,"blots/inline":n.default,"blots/scroll":S.default,"blots/text":A.default,"modules/clipboard":b.default,"modules/history":g.default,"modules/keyboard":q.default}),w.default.register(h.default,e.default,l.default,n.default,S.default,A.default),s.default=y.default},function(_,s,d){Object.defineProperty(s,"__esModule",{value:!0});var k=d(1),w=function(){function O(y){this.domNode=y,this.domNode[k.DATA_KEY]={blot:this}}return Object.defineProperty(O.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),O.create=function(y){if(this.tagName==null)throw new k.ParchmentError("Blot definition missing tagName");var v;return Array.isArray(this.tagName)?(typeof y=="string"&&(y=y.toUpperCase(),parseInt(y).toString()===y&&(y=parseInt(y))),typeof y=="number"?v=document.createElement(this.tagName[y-1]):this.tagName.indexOf(y)>-1?v=document.createElement(y):v=document.createElement(this.tagName[0])):v=document.createElement(this.tagName),this.className&&v.classList.add(this.className),v},O.prototype.attach=function(){this.parent!=null&&(this.scroll=this.parent.scroll)},O.prototype.clone=function(){var y=this.domNode.cloneNode(!1);return k.create(y)},O.prototype.detach=function(){this.parent!=null&&this.parent.removeChild(this),delete this.domNode[k.DATA_KEY]},O.prototype.deleteAt=function(y,v){var h=this.isolate(y,v);h.remove()},O.prototype.formatAt=function(y,v,h,o){var e=this.isolate(y,v);if(k.query(h,k.Scope.BLOT)!=null&&o)e.wrap(h,o);else if(k.query(h,k.Scope.ATTRIBUTE)!=null){var t=k.create(this.statics.scope);e.wrap(t),t.format(h,o)}},O.prototype.insertAt=function(y,v,h){var o=h==null?k.create("text",v):k.create(v,h),e=this.split(y);this.parent.insertBefore(o,e)},O.prototype.insertInto=function(y,v){v===void 0&&(v=null),this.parent!=null&&this.parent.children.remove(this);var h=null;y.children.insertBefore(this,v),v!=null&&(h=v.domNode),(this.domNode.parentNode!=y.domNode||this.domNode.nextSibling!=h)&&y.domNode.insertBefore(this.domNode,h),this.parent=y,this.attach()},O.prototype.isolate=function(y,v){var h=this.split(y);return h.split(v),h},O.prototype.length=function(){return 1},O.prototype.offset=function(y){return y===void 0&&(y=this.parent),this.parent==null||this==y?0:this.parent.children.offset(this)+this.parent.offset(y)},O.prototype.optimize=function(y){this.domNode[k.DATA_KEY]!=null&&delete this.domNode[k.DATA_KEY].mutations},O.prototype.remove=function(){this.domNode.parentNode!=null&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},O.prototype.replace=function(y){y.parent!=null&&(y.parent.insertBefore(this,y.next),y.remove())},O.prototype.replaceWith=function(y,v){var h=typeof y=="string"?k.create(y,v):y;return h.replace(this),h},O.prototype.split=function(y,v){return y===0?this:this.next},O.prototype.update=function(y,v){},O.prototype.wrap=function(y,v){var h=typeof y=="string"?k.create(y,v):y;return this.parent!=null&&this.parent.insertBefore(h,this.next),h.appendChild(this),h},O.blotName="abstract",O}();s.default=w},function(_,s,d){Object.defineProperty(s,"__esModule",{value:!0});var k=d(12),w=d(32),O=d(33),y=d(1),v=function(){function h(o){this.attributes={},this.domNode=o,this.build()}return h.prototype.attribute=function(o,e){e?o.add(this.domNode,e)&&(o.value(this.domNode)!=null?this.attributes[o.attrName]=o:delete this.attributes[o.attrName]):(o.remove(this.domNode),delete this.attributes[o.attrName])},h.prototype.build=function(){var o=this;this.attributes={};var e=k.default.keys(this.domNode),t=w.default.keys(this.domNode),u=O.default.keys(this.domNode);e.concat(t).concat(u).forEach(function(a){var l=y.query(a,y.Scope.ATTRIBUTE);l instanceof k.default&&(o.attributes[l.attrName]=l)})},h.prototype.copy=function(o){var e=this;Object.keys(this.attributes).forEach(function(t){var u=e.attributes[t].value(e.domNode);o.format(t,u)})},h.prototype.move=function(o){var e=this;this.copy(o),Object.keys(this.attributes).forEach(function(t){e.attributes[t].remove(e.domNode)}),this.attributes={}},h.prototype.values=function(){var o=this;return Object.keys(this.attributes).reduce(function(e,t){return e[t]=o.attributes[t].value(o.domNode),e},{})},h}();s.default=v},function(_,s,d){var k=this&&this.__extends||function(){var v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,o){h.__proto__=o}||function(h,o){for(var e in o)o.hasOwnProperty(e)&&(h[e]=o[e])};return function(h,o){v(h,o);function e(){this.constructor=h}h.prototype=o===null?Object.create(o):(e.prototype=o.prototype,new e)}}();Object.defineProperty(s,"__esModule",{value:!0});var w=d(12);function O(v,h){var o=v.getAttribute("class")||"";return o.split(/\s+/).filter(function(e){return e.indexOf(h+"-")===0})}var y=function(v){k(h,v);function h(){return v!==null&&v.apply(this,arguments)||this}return h.keys=function(o){return(o.getAttribute("class")||"").split(/\s+/).map(function(e){return e.split("-").slice(0,-1).join("-")})},h.prototype.add=function(o,e){return this.canAdd(o,e)?(this.remove(o),o.classList.add(this.keyName+"-"+e),!0):!1},h.prototype.remove=function(o){var e=O(o,this.keyName);e.forEach(function(t){o.classList.remove(t)}),o.classList.length===0&&o.removeAttribute("class")},h.prototype.value=function(o){var e=O(o,this.keyName)[0]||"",t=e.slice(this.keyName.length+1);return this.canAdd(o,t)?t:""},h}(w.default);s.default=y},function(_,s,d){var k=this&&this.__extends||function(){var v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,o){h.__proto__=o}||function(h,o){for(var e in o)o.hasOwnProperty(e)&&(h[e]=o[e])};return function(h,o){v(h,o);function e(){this.constructor=h}h.prototype=o===null?Object.create(o):(e.prototype=o.prototype,new e)}}();Object.defineProperty(s,"__esModule",{value:!0});var w=d(12);function O(v){var h=v.split("-"),o=h.slice(1).map(function(e){return e[0].toUpperCase()+e.slice(1)}).join("");return h[0]+o}var y=function(v){k(h,v);function h(){return v!==null&&v.apply(this,arguments)||this}return h.keys=function(o){return(o.getAttribute("style")||"").split(";").map(function(e){var t=e.split(":");return t[0].trim()})},h.prototype.add=function(o,e){return this.canAdd(o,e)?(o.style[O(this.keyName)]=e,!0):!1},h.prototype.remove=function(o){o.style[O(this.keyName)]="",o.getAttribute("style")||o.removeAttribute("style")},h.prototype.value=function(o){var e=o.style[O(this.keyName)];return this.canAdd(o,e)?e:""},h}(w.default);s.default=y},function(_,s,d){Object.defineProperty(s,"__esModule",{value:!0});var k=function(){function y(v,h){for(var o=0;o<h.length;o++){var e=h[o];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(v,e.key,e)}}return function(v,h,o){return h&&y(v.prototype,h),o&&y(v,o),v}}();function w(y,v){if(!(y instanceof v))throw new TypeError("Cannot call a class as a function")}var O=function(){function y(v,h){w(this,y),this.quill=v,this.options=h,this.modules={}}return k(y,[{key:"init",value:function(){var h=this;Object.keys(this.options.modules).forEach(function(o){h.modules[o]==null&&h.addModule(o)})}},{key:"addModule",value:function(h){var o=this.quill.constructor.import("modules/"+h);return this.modules[h]=new o(this.quill,this.options.modules[h]||{}),this.modules[h]}}]),y}();O.DEFAULTS={modules:{}},O.themes={default:O},s.default=O},function(_,s,d){Object.defineProperty(s,"__esModule",{value:!0});var k=function(){function r(i,f){for(var n=0;n<f.length;n++){var c=f[n];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(i,c.key,c)}}return function(i,f,n){return f&&r(i.prototype,f),n&&r(i,n),i}}(),w=function r(i,f,n){i===null&&(i=Function.prototype);var c=Object.getOwnPropertyDescriptor(i,f);if(c===void 0){var S=Object.getPrototypeOf(i);return S===null?void 0:r(S,f,n)}else{if("value"in c)return c.value;var E=c.get;return E===void 0?void 0:E.call(n)}},O=d(0),y=o(O),v=d(7),h=o(v);function o(r){return r&&r.__esModule?r:{default:r}}function e(r,i){if(!(r instanceof i))throw new TypeError("Cannot call a class as a function")}function t(r,i){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i&&(typeof i=="object"||typeof i=="function")?i:r}function u(r,i){if(typeof i!="function"&&i!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof i);r.prototype=Object.create(i&&i.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),i&&(Object.setPrototypeOf?Object.setPrototypeOf(r,i):r.__proto__=i)}var a="\uFEFF",l=function(r){u(i,r);function i(f){e(this,i);var n=t(this,(i.__proto__||Object.getPrototypeOf(i)).call(this,f));return n.contentNode=document.createElement("span"),n.contentNode.setAttribute("contenteditable",!1),[].slice.call(n.domNode.childNodes).forEach(function(c){n.contentNode.appendChild(c)}),n.leftGuard=document.createTextNode(a),n.rightGuard=document.createTextNode(a),n.domNode.appendChild(n.leftGuard),n.domNode.appendChild(n.contentNode),n.domNode.appendChild(n.rightGuard),n}return k(i,[{key:"index",value:function(n,c){return n===this.leftGuard?0:n===this.rightGuard?1:w(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),"index",this).call(this,n,c)}},{key:"restore",value:function(n){var c=void 0,S=void 0,E=n.data.split(a).join("");if(n===this.leftGuard)if(this.prev instanceof h.default){var A=this.prev.length();this.prev.insertAt(A,E),c={startNode:this.prev.domNode,startOffset:A+E.length}}else S=document.createTextNode(E),this.parent.insertBefore(y.default.create(S),this),c={startNode:S,startOffset:E.length};else n===this.rightGuard&&(this.next instanceof h.default?(this.next.insertAt(0,E),c={startNode:this.next.domNode,startOffset:E.length}):(S=document.createTextNode(E),this.parent.insertBefore(y.default.create(S),this.next),c={startNode:S,startOffset:E.length}));return n.data=a,c}},{key:"update",value:function(n,c){var S=this;n.forEach(function(E){if(E.type==="characterData"&&(E.target===S.leftGuard||E.target===S.rightGuard)){var A=S.restore(E.target);A&&(c.range=A)}})}}]),i}(y.default.Embed);s.default=l},function(_,s,d){Object.defineProperty(s,"__esModule",{value:!0}),s.AlignStyle=s.AlignClass=s.AlignAttribute=void 0;var k=d(0),w=O(k);function O(e){return e&&e.__esModule?e:{default:e}}var y={scope:w.default.Scope.BLOCK,whitelist:["right","center","justify"]},v=new w.default.Attributor.Attribute("align","align",y),h=new w.default.Attributor.Class("align","ql-align",y),o=new w.default.Attributor.Style("align","text-align",y);s.AlignAttribute=v,s.AlignClass=h,s.AlignStyle=o},function(_,s,d){Object.defineProperty(s,"__esModule",{value:!0}),s.BackgroundStyle=s.BackgroundClass=void 0;var k=d(0),w=y(k),O=d(26);function y(o){return o&&o.__esModule?o:{default:o}}var v=new w.default.Attributor.Class("background","ql-bg",{scope:w.default.Scope.INLINE}),h=new O.ColorAttributor("background","background-color",{scope:w.default.Scope.INLINE});s.BackgroundClass=v,s.BackgroundStyle=h},function(_,s,d){Object.defineProperty(s,"__esModule",{value:!0}),s.DirectionStyle=s.DirectionClass=s.DirectionAttribute=void 0;var k=d(0),w=O(k);function O(e){return e&&e.__esModule?e:{default:e}}var y={scope:w.default.Scope.BLOCK,whitelist:["rtl"]},v=new w.default.Attributor.Attribute("direction","dir",y),h=new w.default.Attributor.Class("direction","ql-direction",y),o=new w.default.Attributor.Style("direction","direction",y);s.DirectionAttribute=v,s.DirectionClass=h,s.DirectionStyle=o},function(_,s,d){Object.defineProperty(s,"__esModule",{value:!0}),s.FontClass=s.FontStyle=void 0;var k=function(){function r(i,f){for(var n=0;n<f.length;n++){var c=f[n];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(i,c.key,c)}}return function(i,f,n){return f&&r(i.prototype,f),n&&r(i,n),i}}(),w=function r(i,f,n){i===null&&(i=Function.prototype);var c=Object.getOwnPropertyDescriptor(i,f);if(c===void 0){var S=Object.getPrototypeOf(i);return S===null?void 0:r(S,f,n)}else{if("value"in c)return c.value;var E=c.get;return E===void 0?void 0:E.call(n)}},O=d(0),y=v(O);function v(r){return r&&r.__esModule?r:{default:r}}function h(r,i){if(!(r instanceof i))throw new TypeError("Cannot call a class as a function")}function o(r,i){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i&&(typeof i=="object"||typeof i=="function")?i:r}function e(r,i){if(typeof i!="function"&&i!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof i);r.prototype=Object.create(i&&i.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),i&&(Object.setPrototypeOf?Object.setPrototypeOf(r,i):r.__proto__=i)}var t={scope:y.default.Scope.INLINE,whitelist:["serif","monospace"]},u=new y.default.Attributor.Class("font","ql-font",t),a=function(r){e(i,r);function i(){return h(this,i),o(this,(i.__proto__||Object.getPrototypeOf(i)).apply(this,arguments))}return k(i,[{key:"value",value:function(n){return w(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),"value",this).call(this,n).replace(/["']/g,"")}}]),i}(y.default.Attributor.Style),l=new a("font","font-family",t);s.FontStyle=l,s.FontClass=u},function(_,s,d){Object.defineProperty(s,"__esModule",{value:!0}),s.SizeStyle=s.SizeClass=void 0;var k=d(0),w=O(k);function O(h){return h&&h.__esModule?h:{default:h}}var y=new w.default.Attributor.Class("size","ql-size",{scope:w.default.Scope.INLINE,whitelist:["small","large","huge"]}),v=new w.default.Attributor.Style("size","font-size",{scope:w.default.Scope.INLINE,whitelist:["10px","18px","32px"]});s.SizeClass=y,s.SizeStyle=v},function(_,s,d){_.exports={align:{"":d(76),center:d(77),right:d(78),justify:d(79)},background:d(80),blockquote:d(81),bold:d(82),clean:d(83),code:d(58),"code-block":d(58),color:d(84),direction:{"":d(85),rtl:d(86)},float:{center:d(87),full:d(88),left:d(89),right:d(90)},formula:d(91),header:{1:d(92),2:d(93)},italic:d(94),image:d(95),indent:{"+1":d(96),"-1":d(97)},link:d(98),list:{ordered:d(99),bullet:d(100),check:d(101)},script:{sub:d(102),super:d(103)},strike:d(104),underline:d(105),video:d(106)}},function(_,s,d){Object.defineProperty(s,"__esModule",{value:!0}),s.getLastChangeIndex=s.default=void 0;var k=function(){function f(n,c){for(var S=0;S<c.length;S++){var E=c[S];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(n,E.key,E)}}return function(n,c,S){return c&&f(n.prototype,c),S&&f(n,S),n}}(),w=d(0),O=e(w),y=d(5),v=e(y),h=d(9),o=e(h);function e(f){return f&&f.__esModule?f:{default:f}}function t(f,n){if(!(f instanceof n))throw new TypeError("Cannot call a class as a function")}function u(f,n){if(!f)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n&&(typeof n=="object"||typeof n=="function")?n:f}function a(f,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof n);f.prototype=Object.create(n&&n.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(f,n):f.__proto__=n)}var l=function(f){a(n,f);function n(c,S){t(this,n);var E=u(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,c,S));return E.lastRecorded=0,E.ignoreChange=!1,E.clear(),E.quill.on(v.default.events.EDITOR_CHANGE,function(A,j,b,p){A!==v.default.events.TEXT_CHANGE||E.ignoreChange||(!E.options.userOnly||p===v.default.sources.USER?E.record(j,b):E.transform(j))}),E.quill.keyboard.addBinding({key:"Z",shortKey:!0},E.undo.bind(E)),E.quill.keyboard.addBinding({key:"Z",shortKey:!0,shiftKey:!0},E.redo.bind(E)),/Win/i.test(navigator.platform)&&E.quill.keyboard.addBinding({key:"Y",shortKey:!0},E.redo.bind(E)),E}return k(n,[{key:"change",value:function(S,E){if(this.stack[S].length!==0){var A=this.stack[S].pop();this.stack[E].push(A),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(A[S],v.default.sources.USER),this.ignoreChange=!1;var j=i(A[S]);this.quill.setSelection(j)}}},{key:"clear",value:function(){this.stack={undo:[],redo:[]}}},{key:"cutoff",value:function(){this.lastRecorded=0}},{key:"record",value:function(S,E){if(S.ops.length!==0){this.stack.redo=[];var A=this.quill.getContents().diff(E),j=Date.now();if(this.lastRecorded+this.options.delay>j&&this.stack.undo.length>0){var b=this.stack.undo.pop();A=A.compose(b.undo),S=b.redo.compose(S)}else this.lastRecorded=j;this.stack.undo.push({redo:S,undo:A}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(S){this.stack.undo.forEach(function(E){E.undo=S.transform(E.undo,!0),E.redo=S.transform(E.redo,!0)}),this.stack.redo.forEach(function(E){E.undo=S.transform(E.undo,!0),E.redo=S.transform(E.redo,!0)})}},{key:"undo",value:function(){this.change("undo","redo")}}]),n}(o.default);l.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1};function r(f){var n=f.ops[f.ops.length-1];return n==null?!1:n.insert!=null?typeof n.insert=="string"&&n.insert.endsWith(`
`):n.attributes!=null?Object.keys(n.attributes).some(function(c){return O.default.query(c,O.default.Scope.BLOCK)!=null}):!1}function i(f){var n=f.reduce(function(S,E){return S+=E.delete||0,S},0),c=f.length()-n;return r(f)&&(c-=1),c}s.default=l,s.getLastChangeIndex=i},function(_,s,d){Object.defineProperty(s,"__esModule",{value:!0}),s.default=s.BaseTooltip=void 0;var k=function(){function T(M,$){for(var B=0;B<$.length;B++){var L=$[B];L.enumerable=L.enumerable||!1,L.configurable=!0,"value"in L&&(L.writable=!0),Object.defineProperty(M,L.key,L)}}return function(M,$,B){return $&&T(M.prototype,$),B&&T(M,B),M}}(),w=function T(M,$,B){M===null&&(M=Function.prototype);var L=Object.getOwnPropertyDescriptor(M,$);if(L===void 0){var C=Object.getPrototypeOf(M);return C===null?void 0:T(C,$,B)}else{if("value"in L)return L.value;var H=L.get;return H===void 0?void 0:H.call(B)}},O=d(3),y=j(O),v=d(2),h=j(v),o=d(8),e=j(o),t=d(23),u=j(t),a=d(34),l=j(a),r=d(59),i=j(r),f=d(60),n=j(f),c=d(28),S=j(c),E=d(61),A=j(E);function j(T){return T&&T.__esModule?T:{default:T}}function b(T,M){if(!(T instanceof M))throw new TypeError("Cannot call a class as a function")}function p(T,M){if(!T)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return M&&(typeof M=="object"||typeof M=="function")?M:T}function g(T,M){if(typeof M!="function"&&M!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof M);T.prototype=Object.create(M&&M.prototype,{constructor:{value:T,enumerable:!1,writable:!0,configurable:!0}}),M&&(Object.setPrototypeOf?Object.setPrototypeOf(T,M):T.__proto__=M)}var N=[!1,"center","right","justify"],q=["#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"],F=["1","2","3",!1],U=["small",!1,"large","huge"],K=function(T){g(M,T);function M($,B){b(this,M);var L=p(this,(M.__proto__||Object.getPrototypeOf(M)).call(this,$,B)),C=function H(z){if(!document.body.contains($.root))return document.body.removeEventListener("click",H);L.tooltip!=null&&!L.tooltip.root.contains(z.target)&&document.activeElement!==L.tooltip.textbox&&!L.quill.hasFocus()&&L.tooltip.hide(),L.pickers!=null&&L.pickers.forEach(function(Z){Z.container.contains(z.target)||Z.close()})};return $.emitter.listenDOM("click",document.body,C),L}return k(M,[{key:"addModule",value:function(B){var L=w(M.prototype.__proto__||Object.getPrototypeOf(M.prototype),"addModule",this).call(this,B);return B==="toolbar"&&this.extendToolbar(L),L}},{key:"buildButtons",value:function(B,L){B.forEach(function(C){var H=C.getAttribute("class")||"";H.split(/\s+/).forEach(function(z){if(z.startsWith("ql-")&&(z=z.slice(3),L[z]!=null))if(z==="direction")C.innerHTML=L[z][""]+L[z].rtl;else if(typeof L[z]=="string")C.innerHTML=L[z];else{var Z=C.value||"";Z!=null&&L[z][Z]&&(C.innerHTML=L[z][Z])}})})}},{key:"buildPickers",value:function(B,L){var C=this;this.pickers=B.map(function(z){if(z.classList.contains("ql-align"))return z.querySelector("option")==null&&m(z,N),new n.default(z,L.align);if(z.classList.contains("ql-background")||z.classList.contains("ql-color")){var Z=z.classList.contains("ql-background")?"background":"color";return z.querySelector("option")==null&&m(z,q,Z==="background"?"#ffffff":"#000000"),new i.default(z,L[Z])}else return z.querySelector("option")==null&&(z.classList.contains("ql-font")?m(z,I):z.classList.contains("ql-header")?m(z,F):z.classList.contains("ql-size")&&m(z,U)),new S.default(z)});var H=function(){C.pickers.forEach(function(Z){Z.update()})};this.quill.on(e.default.events.EDITOR_CHANGE,H)}}]),M}(l.default);K.DEFAULTS=(0,y.default)(!0,{},l.default.DEFAULTS,{modules:{toolbar:{handlers:{formula:function(){this.quill.theme.tooltip.edit("formula")},image:function(){var M=this,$=this.container.querySelector("input.ql-image[type=file]");$==null&&($=document.createElement("input"),$.setAttribute("type","file"),$.setAttribute("accept","image/png, image/gif, image/jpeg, image/bmp, image/x-icon"),$.classList.add("ql-image"),$.addEventListener("change",function(){if($.files!=null&&$.files[0]!=null){var B=new FileReader;B.onload=function(L){var C=M.quill.getSelection(!0);M.quill.updateContents(new h.default().retain(C.index).delete(C.length).insert({image:L.target.result}),e.default.sources.USER),M.quill.setSelection(C.index+1,e.default.sources.SILENT),$.value=""},B.readAsDataURL($.files[0])}}),this.container.appendChild($)),$.click()},video:function(){this.quill.theme.tooltip.edit("video")}}}}});var D=function(T){g(M,T);function M($,B){b(this,M);var L=p(this,(M.__proto__||Object.getPrototypeOf(M)).call(this,$,B));return L.textbox=L.root.querySelector('input[type="text"]'),L.listen(),L}return k(M,[{key:"listen",value:function(){var B=this;this.textbox.addEventListener("keydown",function(L){u.default.match(L,"enter")?(B.save(),L.preventDefault()):u.default.match(L,"escape")&&(B.cancel(),L.preventDefault())})}},{key:"cancel",value:function(){this.hide()}},{key:"edit",value:function(){var B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"link",L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),L!=null?this.textbox.value=L:B!==this.root.getAttribute("data-mode")&&(this.textbox.value=""),this.position(this.quill.getBounds(this.quill.selection.savedRange)),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute("data-"+B)||""),this.root.setAttribute("data-mode",B)}},{key:"restoreFocus",value:function(){var B=this.quill.scrollingContainer.scrollTop;this.quill.focus(),this.quill.scrollingContainer.scrollTop=B}},{key:"save",value:function(){var B=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":{var L=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",B,e.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",B,e.default.sources.USER)),this.quill.root.scrollTop=L;break}case"video":B=P(B);case"formula":{if(!B)break;var C=this.quill.getSelection(!0);if(C!=null){var H=C.index+C.length;this.quill.insertEmbed(H,this.root.getAttribute("data-mode"),B,e.default.sources.USER),this.root.getAttribute("data-mode")==="formula"&&this.quill.insertText(H+1," ",e.default.sources.USER),this.quill.setSelection(H+2,e.default.sources.USER)}break}}this.textbox.value="",this.hide()}}]),M}(A.default);function P(T){var M=T.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||T.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);return M?(M[1]||"https")+"://www.youtube.com/embed/"+M[2]+"?showinfo=0":(M=T.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?(M[1]||"https")+"://player.vimeo.com/video/"+M[2]+"/":T}function m(T,M){var $=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;M.forEach(function(B){var L=document.createElement("option");B===$?L.setAttribute("selected","selected"):L.setAttribute("value",B),T.appendChild(L)})}s.BaseTooltip=D,s.default=K},function(_,s,d){Object.defineProperty(s,"__esModule",{value:!0});var k=function(){function w(){this.head=this.tail=null,this.length=0}return w.prototype.append=function(){for(var O=[],y=0;y<arguments.length;y++)O[y]=arguments[y];this.insertBefore(O[0],null),O.length>1&&this.append.apply(this,O.slice(1))},w.prototype.contains=function(O){for(var y,v=this.iterator();y=v();)if(y===O)return!0;return!1},w.prototype.insertBefore=function(O,y){O&&(O.next=y,y!=null?(O.prev=y.prev,y.prev!=null&&(y.prev.next=O),y.prev=O,y===this.head&&(this.head=O)):this.tail!=null?(this.tail.next=O,O.prev=this.tail,this.tail=O):(O.prev=null,this.head=this.tail=O),this.length+=1)},w.prototype.offset=function(O){for(var y=0,v=this.head;v!=null;){if(v===O)return y;y+=v.length(),v=v.next}return-1},w.prototype.remove=function(O){this.contains(O)&&(O.prev!=null&&(O.prev.next=O.next),O.next!=null&&(O.next.prev=O.prev),O===this.head&&(this.head=O.next),O===this.tail&&(this.tail=O.prev),this.length-=1)},w.prototype.iterator=function(O){return O===void 0&&(O=this.head),function(){var y=O;return O!=null&&(O=O.next),y}},w.prototype.find=function(O,y){y===void 0&&(y=!1);for(var v,h=this.iterator();v=h();){var o=v.length();if(O<o||y&&O===o&&(v.next==null||v.next.length()!==0))return[v,O];O-=o}return[null,0]},w.prototype.forEach=function(O){for(var y,v=this.iterator();y=v();)O(y)},w.prototype.forEachAt=function(O,y,v){if(!(y<=0))for(var h=this.find(O),o=h[0],e=h[1],t,u=O-e,a=this.iterator(o);(t=a())&&u<O+y;){var l=t.length();O>u?v(t,O-u,Math.min(y,u+l-O)):v(t,0,Math.min(l,O+y-u)),u+=l}},w.prototype.map=function(O){return this.reduce(function(y,v){return y.push(O(v)),y},[])},w.prototype.reduce=function(O,y){for(var v,h=this.iterator();v=h();)y=O(y,v);return y},w}();s.default=k},function(_,s,d){var k=this&&this.__extends||function(){var o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var u in t)t.hasOwnProperty(u)&&(e[u]=t[u])};return function(e,t){o(e,t);function u(){this.constructor=e}e.prototype=t===null?Object.create(t):(u.prototype=t.prototype,new u)}}();Object.defineProperty(s,"__esModule",{value:!0});var w=d(17),O=d(1),y={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},v=100,h=function(o){k(e,o);function e(t){var u=o.call(this,t)||this;return u.scroll=u,u.observer=new MutationObserver(function(a){u.update(a)}),u.observer.observe(u.domNode,y),u.attach(),u}return e.prototype.detach=function(){o.prototype.detach.call(this),this.observer.disconnect()},e.prototype.deleteAt=function(t,u){this.update(),t===0&&u===this.length()?this.children.forEach(function(a){a.remove()}):o.prototype.deleteAt.call(this,t,u)},e.prototype.formatAt=function(t,u,a,l){this.update(),o.prototype.formatAt.call(this,t,u,a,l)},e.prototype.insertAt=function(t,u,a){this.update(),o.prototype.insertAt.call(this,t,u,a)},e.prototype.optimize=function(t,u){var a=this;t===void 0&&(t=[]),u===void 0&&(u={}),o.prototype.optimize.call(this,u);for(var l=[].slice.call(this.observer.takeRecords());l.length>0;)t.push(l.pop());for(var r=function(c,S){S===void 0&&(S=!0),!(c==null||c===a)&&c.domNode.parentNode!=null&&(c.domNode[O.DATA_KEY].mutations==null&&(c.domNode[O.DATA_KEY].mutations=[]),S&&r(c.parent))},i=function(c){c.domNode[O.DATA_KEY]==null||c.domNode[O.DATA_KEY].mutations==null||(c instanceof w.default&&c.children.forEach(i),c.optimize(u))},f=t,n=0;f.length>0;n+=1){if(n>=v)throw new Error("[Parchment] Maximum optimize iterations reached");for(f.forEach(function(c){var S=O.find(c.target,!0);S!=null&&(S.domNode===c.target&&(c.type==="childList"?(r(O.find(c.previousSibling,!1)),[].forEach.call(c.addedNodes,function(E){var A=O.find(E,!1);r(A,!1),A instanceof w.default&&A.children.forEach(function(j){r(j,!1)})})):c.type==="attributes"&&r(S.prev)),r(S))}),this.children.forEach(i),f=[].slice.call(this.observer.takeRecords()),l=f.slice();l.length>0;)t.push(l.pop())}},e.prototype.update=function(t,u){var a=this;u===void 0&&(u={}),t=t||this.observer.takeRecords(),t.map(function(l){var r=O.find(l.target,!0);return r==null?null:r.domNode[O.DATA_KEY].mutations==null?(r.domNode[O.DATA_KEY].mutations=[l],r):(r.domNode[O.DATA_KEY].mutations.push(l),null)}).forEach(function(l){l==null||l===a||l.domNode[O.DATA_KEY]==null||l.update(l.domNode[O.DATA_KEY].mutations||[],u)}),this.domNode[O.DATA_KEY].mutations!=null&&o.prototype.update.call(this,this.domNode[O.DATA_KEY].mutations,u),this.optimize(t,u)},e.blotName="scroll",e.defaultChild="block",e.scope=O.Scope.BLOCK_BLOT,e.tagName="DIV",e}(w.default);s.default=h},function(_,s,d){var k=this&&this.__extends||function(){var h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,e){o.__proto__=e}||function(o,e){for(var t in e)e.hasOwnProperty(t)&&(o[t]=e[t])};return function(o,e){h(o,e);function t(){this.constructor=o}o.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}();Object.defineProperty(s,"__esModule",{value:!0});var w=d(18),O=d(1);function y(h,o){if(Object.keys(h).length!==Object.keys(o).length)return!1;for(var e in h)if(h[e]!==o[e])return!1;return!0}var v=function(h){k(o,h);function o(){return h!==null&&h.apply(this,arguments)||this}return o.formats=function(e){if(e.tagName!==o.tagName)return h.formats.call(this,e)},o.prototype.format=function(e,t){var u=this;e===this.statics.blotName&&!t?(this.children.forEach(function(a){a instanceof w.default||(a=a.wrap(o.blotName,!0)),u.attributes.copy(a)}),this.unwrap()):h.prototype.format.call(this,e,t)},o.prototype.formatAt=function(e,t,u,a){if(this.formats()[u]!=null||O.query(u,O.Scope.ATTRIBUTE)){var l=this.isolate(e,t);l.format(u,a)}else h.prototype.formatAt.call(this,e,t,u,a)},o.prototype.optimize=function(e){h.prototype.optimize.call(this,e);var t=this.formats();if(Object.keys(t).length===0)return this.unwrap();var u=this.next;u instanceof o&&u.prev===this&&y(t,u.formats())&&(u.moveChildren(this),u.remove())},o.blotName="inline",o.scope=O.Scope.INLINE_BLOT,o.tagName="SPAN",o}(w.default);s.default=v},function(_,s,d){var k=this&&this.__extends||function(){var v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,o){h.__proto__=o}||function(h,o){for(var e in o)o.hasOwnProperty(e)&&(h[e]=o[e])};return function(h,o){v(h,o);function e(){this.constructor=h}h.prototype=o===null?Object.create(o):(e.prototype=o.prototype,new e)}}();Object.defineProperty(s,"__esModule",{value:!0});var w=d(18),O=d(1),y=function(v){k(h,v);function h(){return v!==null&&v.apply(this,arguments)||this}return h.formats=function(o){var e=O.query(h.blotName).tagName;if(o.tagName!==e)return v.formats.call(this,o)},h.prototype.format=function(o,e){O.query(o,O.Scope.BLOCK)!=null&&(o===this.statics.blotName&&!e?this.replaceWith(h.blotName):v.prototype.format.call(this,o,e))},h.prototype.formatAt=function(o,e,t,u){O.query(t,O.Scope.BLOCK)!=null?this.format(t,u):v.prototype.formatAt.call(this,o,e,t,u)},h.prototype.insertAt=function(o,e,t){if(t==null||O.query(e,O.Scope.INLINE)!=null)v.prototype.insertAt.call(this,o,e,t);else{var u=this.split(o),a=O.create(e,t);u.parent.insertBefore(a,u)}},h.prototype.update=function(o,e){navigator.userAgent.match(/Trident/)?this.build():v.prototype.update.call(this,o,e)},h.blotName="block",h.scope=O.Scope.BLOCK_BLOT,h.tagName="P",h}(w.default);s.default=y},function(_,s,d){var k=this&&this.__extends||function(){var y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,h){v.__proto__=h}||function(v,h){for(var o in h)h.hasOwnProperty(o)&&(v[o]=h[o])};return function(v,h){y(v,h);function o(){this.constructor=v}v.prototype=h===null?Object.create(h):(o.prototype=h.prototype,new o)}}();Object.defineProperty(s,"__esModule",{value:!0});var w=d(19),O=function(y){k(v,y);function v(){return y!==null&&y.apply(this,arguments)||this}return v.formats=function(h){},v.prototype.format=function(h,o){y.prototype.formatAt.call(this,0,this.length(),h,o)},v.prototype.formatAt=function(h,o,e,t){h===0&&o===this.length()?this.format(e,t):y.prototype.formatAt.call(this,h,o,e,t)},v.prototype.formats=function(){return this.statics.formats(this.domNode)},v}(w.default);s.default=O},function(_,s,d){var k=this&&this.__extends||function(){var v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,o){h.__proto__=o}||function(h,o){for(var e in o)o.hasOwnProperty(e)&&(h[e]=o[e])};return function(h,o){v(h,o);function e(){this.constructor=h}h.prototype=o===null?Object.create(o):(e.prototype=o.prototype,new e)}}();Object.defineProperty(s,"__esModule",{value:!0});var w=d(19),O=d(1),y=function(v){k(h,v);function h(o){var e=v.call(this,o)||this;return e.text=e.statics.value(e.domNode),e}return h.create=function(o){return document.createTextNode(o)},h.value=function(o){var e=o.data;return e.normalize&&(e=e.normalize()),e},h.prototype.deleteAt=function(o,e){this.domNode.data=this.text=this.text.slice(0,o)+this.text.slice(o+e)},h.prototype.index=function(o,e){return this.domNode===o?e:-1},h.prototype.insertAt=function(o,e,t){t==null?(this.text=this.text.slice(0,o)+e+this.text.slice(o),this.domNode.data=this.text):v.prototype.insertAt.call(this,o,e,t)},h.prototype.length=function(){return this.text.length},h.prototype.optimize=function(o){v.prototype.optimize.call(this,o),this.text=this.statics.value(this.domNode),this.text.length===0?this.remove():this.next instanceof h&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},h.prototype.position=function(o,e){return[this.domNode,o]},h.prototype.split=function(o,e){if(e===void 0&&(e=!1),!e){if(o===0)return this;if(o===this.length())return this.next}var t=O.create(this.domNode.splitText(o));return this.parent.insertBefore(t,this.next),this.text=this.statics.value(this.domNode),t},h.prototype.update=function(o,e){var t=this;o.some(function(u){return u.type==="characterData"&&u.target===t.domNode})&&(this.text=this.statics.value(this.domNode))},h.prototype.value=function(){return this.text},h.blotName="text",h.scope=O.Scope.INLINE_BLOT,h}(w.default);s.default=y},function(_,s,d){var k=document.createElement("div");if(k.classList.toggle("test-class",!1),k.classList.contains("test-class")){var w=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(O,y){return arguments.length>1&&!this.contains(O)==!y?y:w.call(this,O)}}String.prototype.startsWith||(String.prototype.startsWith=function(O,y){return y=y||0,this.substr(y,O.length)===O}),String.prototype.endsWith||(String.prototype.endsWith=function(O,y){var v=this.toString();(typeof y!="number"||!isFinite(y)||Math.floor(y)!==y||y>v.length)&&(y=v.length),y-=O.length;var h=v.indexOf(O,y);return h!==-1&&h===y}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(y){if(this===null)throw new TypeError("Array.prototype.find called on null or undefined");if(typeof y!="function")throw new TypeError("predicate must be a function");for(var v=Object(this),h=v.length>>>0,o=arguments[1],e,t=0;t<h;t++)if(e=v[t],y.call(o,e,t,v))return e}}),document.addEventListener("DOMContentLoaded",function(){document.execCommand("enableObjectResizing",!1,!1),document.execCommand("autoUrlDetect",!1,!1)})},function(_,s){var d=-1,k=1,w=0;function O(n,c,S){if(n==c)return n?[[w,n]]:[];(S<0||n.length<S)&&(S=null);var E=o(n,c),A=n.substring(0,E);n=n.substring(E),c=c.substring(E),E=e(n,c);var j=n.substring(n.length-E);n=n.substring(0,n.length-E),c=c.substring(0,c.length-E);var b=y(n,c);return A&&b.unshift([w,A]),j&&b.push([w,j]),u(b),S!=null&&(b=r(b,S)),b=i(b),b}function y(n,c){var S;if(!n)return[[k,c]];if(!c)return[[d,n]];var E=n.length>c.length?n:c,A=n.length>c.length?c:n,j=E.indexOf(A);if(j!=-1)return S=[[k,E.substring(0,j)],[w,A],[k,E.substring(j+A.length)]],n.length>c.length&&(S[0][0]=S[2][0]=d),S;if(A.length==1)return[[d,n],[k,c]];var b=t(n,c);if(b){var p=b[0],g=b[1],N=b[2],q=b[3],I=b[4],F=O(p,N),U=O(g,q);return F.concat([[w,I]],U)}return v(n,c)}function v(n,c){for(var S=n.length,E=c.length,A=Math.ceil((S+E)/2),j=A,b=2*A,p=new Array(b),g=new Array(b),N=0;N<b;N++)p[N]=-1,g[N]=-1;p[j+1]=0,g[j+1]=0;for(var q=S-E,I=q%2!=0,F=0,U=0,K=0,D=0,P=0;P<A;P++){for(var m=-P+F;m<=P-U;m+=2){var T=j+m,M;m==-P||m!=P&&p[T-1]<p[T+1]?M=p[T+1]:M=p[T-1]+1;for(var $=M-m;M<S&&$<E&&n.charAt(M)==c.charAt($);)M++,$++;if(p[T]=M,M>S)U+=2;else if($>E)F+=2;else if(I){var B=j+q-m;if(B>=0&&B<b&&g[B]!=-1){var L=S-g[B];if(M>=L)return h(n,c,M,$)}}}for(var C=-P+K;C<=P-D;C+=2){var B=j+C,L;C==-P||C!=P&&g[B-1]<g[B+1]?L=g[B+1]:L=g[B-1]+1;for(var H=L-C;L<S&&H<E&&n.charAt(S-L-1)==c.charAt(E-H-1);)L++,H++;if(g[B]=L,L>S)D+=2;else if(H>E)K+=2;else if(!I){var T=j+q-C;if(T>=0&&T<b&&p[T]!=-1){var M=p[T],$=j+M-T;if(L=S-L,M>=L)return h(n,c,M,$)}}}}return[[d,n],[k,c]]}function h(n,c,S,E){var A=n.substring(0,S),j=c.substring(0,E),b=n.substring(S),p=c.substring(E),g=O(A,j),N=O(b,p);return g.concat(N)}function o(n,c){if(!n||!c||n.charAt(0)!=c.charAt(0))return 0;for(var S=0,E=Math.min(n.length,c.length),A=E,j=0;S<A;)n.substring(j,A)==c.substring(j,A)?(S=A,j=S):E=A,A=Math.floor((E-S)/2+S);return A}function e(n,c){if(!n||!c||n.charAt(n.length-1)!=c.charAt(c.length-1))return 0;for(var S=0,E=Math.min(n.length,c.length),A=E,j=0;S<A;)n.substring(n.length-A,n.length-j)==c.substring(c.length-A,c.length-j)?(S=A,j=S):E=A,A=Math.floor((E-S)/2+S);return A}function t(n,c){var S=n.length>c.length?n:c,E=n.length>c.length?c:n;if(S.length<4||E.length*2<S.length)return null;function A(U,K,D){for(var P=U.substring(D,D+Math.floor(U.length/4)),m=-1,T="",M,$,B,L;(m=K.indexOf(P,m+1))!=-1;){var C=o(U.substring(D),K.substring(m)),H=e(U.substring(0,D),K.substring(0,m));T.length<H+C&&(T=K.substring(m-H,m)+K.substring(m,m+C),M=U.substring(0,D-H),$=U.substring(D+C),B=K.substring(0,m-H),L=K.substring(m+C))}return T.length*2>=U.length?[M,$,B,L,T]:null}var j=A(S,E,Math.ceil(S.length/4)),b=A(S,E,Math.ceil(S.length/2)),p;if(!j&&!b)return null;b?j?p=j[4].length>b[4].length?j:b:p=b:p=j;var g,N,q,I;n.length>c.length?(g=p[0],N=p[1],q=p[2],I=p[3]):(q=p[0],I=p[1],g=p[2],N=p[3]);var F=p[4];return[g,N,q,I,F]}function u(n){n.push([w,""]);for(var c=0,S=0,E=0,A="",j="",b;c<n.length;)switch(n[c][0]){case k:E++,j+=n[c][1],c++;break;case d:S++,A+=n[c][1],c++;break;case w:S+E>1?(S!==0&&E!==0&&(b=o(j,A),b!==0&&(c-S-E>0&&n[c-S-E-1][0]==w?n[c-S-E-1][1]+=j.substring(0,b):(n.splice(0,0,[w,j.substring(0,b)]),c++),j=j.substring(b),A=A.substring(b)),b=e(j,A),b!==0&&(n[c][1]=j.substring(j.length-b)+n[c][1],j=j.substring(0,j.length-b),A=A.substring(0,A.length-b))),S===0?n.splice(c-E,S+E,[k,j]):E===0?n.splice(c-S,S+E,[d,A]):n.splice(c-S-E,S+E,[d,A],[k,j]),c=c-S-E+(S?1:0)+(E?1:0)+1):c!==0&&n[c-1][0]==w?(n[c-1][1]+=n[c][1],n.splice(c,1)):c++,E=0,S=0,A="",j="";break}n[n.length-1][1]===""&&n.pop();var p=!1;for(c=1;c<n.length-1;)n[c-1][0]==w&&n[c+1][0]==w&&(n[c][1].substring(n[c][1].length-n[c-1][1].length)==n[c-1][1]?(n[c][1]=n[c-1][1]+n[c][1].substring(0,n[c][1].length-n[c-1][1].length),n[c+1][1]=n[c-1][1]+n[c+1][1],n.splice(c-1,1),p=!0):n[c][1].substring(0,n[c+1][1].length)==n[c+1][1]&&(n[c-1][1]+=n[c+1][1],n[c][1]=n[c][1].substring(n[c+1][1].length)+n[c+1][1],n.splice(c+1,1),p=!0)),c++;p&&u(n)}var a=O;a.INSERT=k,a.DELETE=d,a.EQUAL=w,_.exports=a;function l(n,c){if(c===0)return[w,n];for(var S=0,E=0;E<n.length;E++){var A=n[E];if(A[0]===d||A[0]===w){var j=S+A[1].length;if(c===j)return[E+1,n];if(c<j){n=n.slice();var b=c-S,p=[A[0],A[1].slice(0,b)],g=[A[0],A[1].slice(b)];return n.splice(E,1,p,g),[E+1,n]}else S=j}}throw new Error("cursor_pos is out of bounds!")}function r(n,c){var S=l(n,c),E=S[1],A=S[0],j=E[A],b=E[A+1];if(j==null)return n;if(j[0]!==w)return n;if(b!=null&&j[1]+b[1]===b[1]+j[1])return E.splice(A,2,b,j),f(E,A,2);if(b!=null&&b[1].indexOf(j[1])===0){E.splice(A,2,[b[0],j[1]],[0,j[1]]);var p=b[1].slice(j[1].length);return p.length>0&&E.splice(A+2,0,[b[0],p]),f(E,A,3)}else return n}function i(n){for(var c=!1,S=function(b){return b.charCodeAt(0)>=56320&&b.charCodeAt(0)<=57343},E=function(b){return b.charCodeAt(b.length-1)>=55296&&b.charCodeAt(b.length-1)<=56319},A=2;A<n.length;A+=1)n[A-2][0]===w&&E(n[A-2][1])&&n[A-1][0]===d&&S(n[A-1][1])&&n[A][0]===k&&S(n[A][1])&&(c=!0,n[A-1][1]=n[A-2][1].slice(-1)+n[A-1][1],n[A][1]=n[A-2][1].slice(-1)+n[A][1],n[A-2][1]=n[A-2][1].slice(0,-1));if(!c)return n;for(var j=[],A=0;A<n.length;A+=1)n[A][1].length>0&&j.push(n[A]);return j}function f(n,c,S){for(var E=c+S-1;E>=0&&E>=c-1;E--)if(E+1<n.length){var A=n[E],j=n[E+1];A[0]===j[1]&&n.splice(E,2,[A[0],A[1]+j[1]])}return n}},function(_,s){s=_.exports=typeof Object.keys=="function"?Object.keys:d,s.shim=d;function d(k){var w=[];for(var O in k)w.push(O);return w}},function(_,s){var d=function(){return Object.prototype.toString.call(arguments)}()=="[object Arguments]";s=_.exports=d?k:w,s.supported=k;function k(O){return Object.prototype.toString.call(O)=="[object Arguments]"}s.unsupported=w;function w(O){return O&&typeof O=="object"&&typeof O.length=="number"&&Object.prototype.hasOwnProperty.call(O,"callee")&&!Object.prototype.propertyIsEnumerable.call(O,"callee")||!1}},function(_,s){var d=Object.prototype.hasOwnProperty,k="~";function w(){}Object.create&&(w.prototype=Object.create(null),new w().__proto__||(k=!1));function O(v,h,o){this.fn=v,this.context=h,this.once=o||!1}function y(){this._events=new w,this._eventsCount=0}y.prototype.eventNames=function(){var h=[],o,e;if(this._eventsCount===0)return h;for(e in o=this._events)d.call(o,e)&&h.push(k?e.slice(1):e);return Object.getOwnPropertySymbols?h.concat(Object.getOwnPropertySymbols(o)):h},y.prototype.listeners=function(h,o){var e=k?k+h:h,t=this._events[e];if(o)return!!t;if(!t)return[];if(t.fn)return[t.fn];for(var u=0,a=t.length,l=new Array(a);u<a;u++)l[u]=t[u].fn;return l},y.prototype.emit=function(h,o,e,t,u,a){var l=k?k+h:h;if(!this._events[l])return!1;var r=this._events[l],i=arguments.length,f,n;if(r.fn){switch(r.once&&this.removeListener(h,r.fn,void 0,!0),i){case 1:return r.fn.call(r.context),!0;case 2:return r.fn.call(r.context,o),!0;case 3:return r.fn.call(r.context,o,e),!0;case 4:return r.fn.call(r.context,o,e,t),!0;case 5:return r.fn.call(r.context,o,e,t,u),!0;case 6:return r.fn.call(r.context,o,e,t,u,a),!0}for(n=1,f=new Array(i-1);n<i;n++)f[n-1]=arguments[n];r.fn.apply(r.context,f)}else{var c=r.length,S;for(n=0;n<c;n++)switch(r[n].once&&this.removeListener(h,r[n].fn,void 0,!0),i){case 1:r[n].fn.call(r[n].context);break;case 2:r[n].fn.call(r[n].context,o);break;case 3:r[n].fn.call(r[n].context,o,e);break;case 4:r[n].fn.call(r[n].context,o,e,t);break;default:if(!f)for(S=1,f=new Array(i-1);S<i;S++)f[S-1]=arguments[S];r[n].fn.apply(r[n].context,f)}}return!0},y.prototype.on=function(h,o,e){var t=new O(o,e||this),u=k?k+h:h;return this._events[u]?this._events[u].fn?this._events[u]=[this._events[u],t]:this._events[u].push(t):(this._events[u]=t,this._eventsCount++),this},y.prototype.once=function(h,o,e){var t=new O(o,e||this,!0),u=k?k+h:h;return this._events[u]?this._events[u].fn?this._events[u]=[this._events[u],t]:this._events[u].push(t):(this._events[u]=t,this._eventsCount++),this},y.prototype.removeListener=function(h,o,e,t){var u=k?k+h:h;if(!this._events[u])return this;if(!o)return--this._eventsCount===0?this._events=new w:delete this._events[u],this;var a=this._events[u];if(a.fn)a.fn===o&&(!t||a.once)&&(!e||a.context===e)&&(--this._eventsCount===0?this._events=new w:delete this._events[u]);else{for(var l=0,r=[],i=a.length;l<i;l++)(a[l].fn!==o||t&&!a[l].once||e&&a[l].context!==e)&&r.push(a[l]);r.length?this._events[u]=r.length===1?r[0]:r:--this._eventsCount===0?this._events=new w:delete this._events[u]}return this},y.prototype.removeAllListeners=function(h){var o;return h?(o=k?k+h:h,this._events[o]&&(--this._eventsCount===0?this._events=new w:delete this._events[o])):(this._events=new w,this._eventsCount=0),this},y.prototype.off=y.prototype.removeListener,y.prototype.addListener=y.prototype.on,y.prototype.setMaxListeners=function(){return this},y.prefixed=k,y.EventEmitter=y,typeof _<"u"&&(_.exports=y)},function(_,s,d){Object.defineProperty(s,"__esModule",{value:!0}),s.matchText=s.matchSpacing=s.matchNewline=s.matchBlot=s.matchAttributor=s.default=void 0;var k=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(G){return typeof G}:function(G){return G&&typeof Symbol=="function"&&G.constructor===Symbol&&G!==Symbol.prototype?"symbol":typeof G},w=function(){function G(W,Y){var X=[],Q=!0,ne=!1,re=void 0;try{for(var ie=W[Symbol.iterator](),ye;!(Q=(ye=ie.next()).done)&&(X.push(ye.value),!(Y&&X.length===Y));Q=!0);}catch(me){ne=!0,re=me}finally{try{!Q&&ie.return&&ie.return()}finally{if(ne)throw re}}return X}return function(W,Y){if(Array.isArray(W))return W;if(Symbol.iterator in Object(W))return G(W,Y);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),O=function(){function G(W,Y){for(var X=0;X<Y.length;X++){var Q=Y[X];Q.enumerable=Q.enumerable||!1,Q.configurable=!0,"value"in Q&&(Q.writable=!0),Object.defineProperty(W,Q.key,Q)}}return function(W,Y,X){return Y&&G(W.prototype,Y),X&&G(W,X),W}}(),y=d(3),v=g(y),h=d(2),o=g(h),e=d(0),t=g(e),u=d(5),a=g(u),l=d(10),r=g(l),i=d(9),f=g(i),n=d(36),c=d(37),S=d(13),E=g(S),A=d(26),j=d(38),b=d(39),p=d(40);function g(G){return G&&G.__esModule?G:{default:G}}function N(G,W,Y){return W in G?Object.defineProperty(G,W,{value:Y,enumerable:!0,configurable:!0,writable:!0}):G[W]=Y,G}function q(G,W){if(!(G instanceof W))throw new TypeError("Cannot call a class as a function")}function I(G,W){if(!G)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return W&&(typeof W=="object"||typeof W=="function")?W:G}function F(G,W){if(typeof W!="function"&&W!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof W);G.prototype=Object.create(W&&W.prototype,{constructor:{value:G,enumerable:!1,writable:!0,configurable:!0}}),W&&(Object.setPrototypeOf?Object.setPrototypeOf(G,W):G.__proto__=W)}var U=(0,r.default)("quill:clipboard"),K="__ql-matcher",D=[[Node.TEXT_NODE,fe],[Node.TEXT_NODE,oe],["br",J],[Node.ELEMENT_NODE,oe],[Node.ELEMENT_NODE,Z],[Node.ELEMENT_NODE,ae],[Node.ELEMENT_NODE,z],[Node.ELEMENT_NODE,he],["li",te],["b",H.bind(H,"bold")],["i",H.bind(H,"italic")],["style",ee]],P=[n.AlignAttribute,j.DirectionAttribute].reduce(function(G,W){return G[W.keyName]=W,G},{}),m=[n.AlignStyle,c.BackgroundStyle,A.ColorStyle,j.DirectionStyle,b.FontStyle,p.SizeStyle].reduce(function(G,W){return G[W.keyName]=W,G},{}),T=function(G){F(W,G);function W(Y,X){q(this,W);var Q=I(this,(W.__proto__||Object.getPrototypeOf(W)).call(this,Y,X));return Q.quill.root.addEventListener("paste",Q.onPaste.bind(Q)),Q.container=Q.quill.addContainer("ql-clipboard"),Q.container.setAttribute("contenteditable",!0),Q.container.setAttribute("tabindex",-1),Q.matchers=[],D.concat(Q.options.matchers).forEach(function(ne){var re=w(ne,2),ie=re[0],ye=re[1];!X.matchVisual&&ye===ae||Q.addMatcher(ie,ye)}),Q}return O(W,[{key:"addMatcher",value:function(X,Q){this.matchers.push([X,Q])}},{key:"convert",value:function(X){if(typeof X=="string")return this.container.innerHTML=X.replace(/\>\r?\n +\</g,"><"),this.convert();var Q=this.quill.getFormat(this.quill.selection.savedRange.index);if(Q[E.default.blotName]){var ne=this.container.innerText;return this.container.innerHTML="",new o.default().insert(ne,N({},E.default.blotName,Q[E.default.blotName]))}var re=this.prepareMatching(),ie=w(re,2),ye=ie[0],me=ie[1],ue=C(this.container,ye,me);return B(ue,`
`)&&ue.ops[ue.ops.length-1].attributes==null&&(ue=ue.compose(new o.default().retain(ue.length()-1).delete(1))),U.log("convert",this.container.innerHTML,ue),this.container.innerHTML="",ue}},{key:"dangerouslyPasteHTML",value:function(X,Q){var ne=arguments.length>2&&arguments[2]!==void 0?arguments[2]:a.default.sources.API;if(typeof X=="string")this.quill.setContents(this.convert(X),Q),this.quill.setSelection(0,a.default.sources.SILENT);else{var re=this.convert(Q);this.quill.updateContents(new o.default().retain(X).concat(re),ne),this.quill.setSelection(X+re.length(),a.default.sources.SILENT)}}},{key:"onPaste",value:function(X){var Q=this;if(!(X.defaultPrevented||!this.quill.isEnabled())){var ne=this.quill.getSelection(),re=new o.default().retain(ne.index),ie=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(a.default.sources.SILENT),setTimeout(function(){re=re.concat(Q.convert()).delete(ne.length),Q.quill.updateContents(re,a.default.sources.USER),Q.quill.setSelection(re.length()-ne.length,a.default.sources.SILENT),Q.quill.scrollingContainer.scrollTop=ie,Q.quill.focus()},1)}}},{key:"prepareMatching",value:function(){var X=this,Q=[],ne=[];return this.matchers.forEach(function(re){var ie=w(re,2),ye=ie[0],me=ie[1];switch(ye){case Node.TEXT_NODE:ne.push(me);break;case Node.ELEMENT_NODE:Q.push(me);break;default:[].forEach.call(X.container.querySelectorAll(ye),function(ue){ue[K]=ue[K]||[],ue[K].push(me)});break}}),[Q,ne]}}]),W}(f.default);T.DEFAULTS={matchers:[],matchVisual:!0};function M(G,W,Y){return(typeof W>"u"?"undefined":k(W))==="object"?Object.keys(W).reduce(function(X,Q){return M(X,Q,W[Q])},G):G.reduce(function(X,Q){return Q.attributes&&Q.attributes[W]?X.push(Q):X.insert(Q.insert,(0,v.default)({},N({},W,Y),Q.attributes))},new o.default)}function $(G){if(G.nodeType!==Node.ELEMENT_NODE)return{};var W="__ql-computed-style";return G[W]||(G[W]=window.getComputedStyle(G))}function B(G,W){for(var Y="",X=G.ops.length-1;X>=0&&Y.length<W.length;--X){var Q=G.ops[X];if(typeof Q.insert!="string")break;Y=Q.insert+Y}return Y.slice(-1*W.length)===W}function L(G){if(G.childNodes.length===0)return!1;var W=$(G);return["block","list-item"].indexOf(W.display)>-1}function C(G,W,Y){return G.nodeType===G.TEXT_NODE?Y.reduce(function(X,Q){return Q(G,X)},new o.default):G.nodeType===G.ELEMENT_NODE?[].reduce.call(G.childNodes||[],function(X,Q){var ne=C(Q,W,Y);return Q.nodeType===G.ELEMENT_NODE&&(ne=W.reduce(function(re,ie){return ie(Q,re)},ne),ne=(Q[K]||[]).reduce(function(re,ie){return ie(Q,re)},ne)),X.concat(ne)},new o.default):new o.default}function H(G,W,Y){return M(Y,G,!0)}function z(G,W){var Y=t.default.Attributor.Attribute.keys(G),X=t.default.Attributor.Class.keys(G),Q=t.default.Attributor.Style.keys(G),ne={};return Y.concat(X).concat(Q).forEach(function(re){var ie=t.default.query(re,t.default.Scope.ATTRIBUTE);ie!=null&&(ne[ie.attrName]=ie.value(G),ne[ie.attrName])||(ie=P[re],ie!=null&&(ie.attrName===re||ie.keyName===re)&&(ne[ie.attrName]=ie.value(G)||void 0),ie=m[re],ie!=null&&(ie.attrName===re||ie.keyName===re)&&(ie=m[re],ne[ie.attrName]=ie.value(G)||void 0))}),Object.keys(ne).length>0&&(W=M(W,ne)),W}function Z(G,W){var Y=t.default.query(G);if(Y==null)return W;if(Y.prototype instanceof t.default.Embed){var X={},Q=Y.value(G);Q!=null&&(X[Y.blotName]=Q,W=new o.default().insert(X,Y.formats(G)))}else typeof Y.formats=="function"&&(W=M(W,Y.blotName,Y.formats(G)));return W}function J(G,W){return B(W,`
`)||W.insert(`
`),W}function ee(){return new o.default}function te(G,W){var Y=t.default.query(G);if(Y==null||Y.blotName!=="list-item"||!B(W,`
`))return W;for(var X=-1,Q=G.parentNode;!Q.classList.contains("ql-clipboard");)(t.default.query(Q)||{}).blotName==="list"&&(X+=1),Q=Q.parentNode;return X<=0?W:W.compose(new o.default().retain(W.length()-1).retain(1,{indent:X}))}function oe(G,W){return B(W,`
`)||(L(G)||W.length()>0&&G.nextSibling&&L(G.nextSibling))&&W.insert(`
`),W}function ae(G,W){if(L(G)&&G.nextElementSibling!=null&&!B(W,`

`)){var Y=G.offsetHeight+parseFloat($(G).marginTop)+parseFloat($(G).marginBottom);G.nextElementSibling.offsetTop>G.offsetTop+Y*1.5&&W.insert(`
`)}return W}function he(G,W){var Y={},X=G.style||{};return X.fontStyle&&$(G).fontStyle==="italic"&&(Y.italic=!0),X.fontWeight&&($(G).fontWeight.startsWith("bold")||parseInt($(G).fontWeight)>=700)&&(Y.bold=!0),Object.keys(Y).length>0&&(W=M(W,Y)),parseFloat(X.textIndent||0)>0&&(W=new o.default().insert("	").concat(W)),W}function fe(G,W){var Y=G.data;if(G.parentNode.tagName==="O:P")return W.insert(Y.trim());if(Y.trim().length===0&&G.parentNode.classList.contains("ql-clipboard"))return W;if(!$(G.parentNode).whiteSpace.startsWith("pre")){var X=function(ne,re){return re=re.replace(/[^\u00a0]/g,""),re.length<1&&ne?" ":re};Y=Y.replace(/\r\n/g," ").replace(/\n/g," "),Y=Y.replace(/\s\s+/g,X.bind(X,!0)),(G.previousSibling==null&&L(G.parentNode)||G.previousSibling!=null&&L(G.previousSibling))&&(Y=Y.replace(/^\s+/,X.bind(X,!1))),(G.nextSibling==null&&L(G.parentNode)||G.nextSibling!=null&&L(G.nextSibling))&&(Y=Y.replace(/\s+$/,X.bind(X,!1)))}return W.insert(Y)}s.default=T,s.matchAttributor=z,s.matchBlot=Z,s.matchNewline=oe,s.matchSpacing=ae,s.matchText=fe},function(_,s,d){Object.defineProperty(s,"__esModule",{value:!0});var k=function(){function u(a,l){for(var r=0;r<l.length;r++){var i=l[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(a,i.key,i)}}return function(a,l,r){return l&&u(a.prototype,l),r&&u(a,r),a}}(),w=function u(a,l,r){a===null&&(a=Function.prototype);var i=Object.getOwnPropertyDescriptor(a,l);if(i===void 0){var f=Object.getPrototypeOf(a);return f===null?void 0:u(f,l,r)}else{if("value"in i)return i.value;var n=i.get;return n===void 0?void 0:n.call(r)}},O=d(6),y=v(O);function v(u){return u&&u.__esModule?u:{default:u}}function h(u,a){if(!(u instanceof a))throw new TypeError("Cannot call a class as a function")}function o(u,a){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a&&(typeof a=="object"||typeof a=="function")?a:u}function e(u,a){if(typeof a!="function"&&a!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof a);u.prototype=Object.create(a&&a.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),a&&(Object.setPrototypeOf?Object.setPrototypeOf(u,a):u.__proto__=a)}var t=function(u){e(a,u);function a(){return h(this,a),o(this,(a.__proto__||Object.getPrototypeOf(a)).apply(this,arguments))}return k(a,[{key:"optimize",value:function(r){w(a.prototype.__proto__||Object.getPrototypeOf(a.prototype),"optimize",this).call(this,r),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return w(a.__proto__||Object.getPrototypeOf(a),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),a}(y.default);t.blotName="bold",t.tagName=["STRONG","B"],s.default=t},function(_,s,d){Object.defineProperty(s,"__esModule",{value:!0}),s.addControls=s.default=void 0;var k=function(){function p(g,N){var q=[],I=!0,F=!1,U=void 0;try{for(var K=g[Symbol.iterator](),D;!(I=(D=K.next()).done)&&(q.push(D.value),!(N&&q.length===N));I=!0);}catch(P){F=!0,U=P}finally{try{!I&&K.return&&K.return()}finally{if(F)throw U}}return q}return function(g,N){if(Array.isArray(g))return g;if(Symbol.iterator in Object(g))return p(g,N);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),w=function(){function p(g,N){for(var q=0;q<N.length;q++){var I=N[q];I.enumerable=I.enumerable||!1,I.configurable=!0,"value"in I&&(I.writable=!0),Object.defineProperty(g,I.key,I)}}return function(g,N,q){return N&&p(g.prototype,N),q&&p(g,q),g}}(),O=d(2),y=r(O),v=d(0),h=r(v),o=d(5),e=r(o),t=d(10),u=r(t),a=d(9),l=r(a);function r(p){return p&&p.__esModule?p:{default:p}}function i(p,g,N){return g in p?Object.defineProperty(p,g,{value:N,enumerable:!0,configurable:!0,writable:!0}):p[g]=N,p}function f(p,g){if(!(p instanceof g))throw new TypeError("Cannot call a class as a function")}function n(p,g){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:p}function c(p,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);p.prototype=Object.create(g&&g.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(p,g):p.__proto__=g)}var S=(0,u.default)("quill:toolbar"),E=function(p){c(g,p);function g(N,q){f(this,g);var I=n(this,(g.__proto__||Object.getPrototypeOf(g)).call(this,N,q));if(Array.isArray(I.options.container)){var F=document.createElement("div");j(F,I.options.container),N.container.parentNode.insertBefore(F,N.container),I.container=F}else typeof I.options.container=="string"?I.container=document.querySelector(I.options.container):I.container=I.options.container;if(!(I.container instanceof HTMLElement)){var U;return U=S.error("Container required for toolbar",I.options),n(I,U)}return I.container.classList.add("ql-toolbar"),I.controls=[],I.handlers={},Object.keys(I.options.handlers).forEach(function(K){I.addHandler(K,I.options.handlers[K])}),[].forEach.call(I.container.querySelectorAll("button, select"),function(K){I.attach(K)}),I.quill.on(e.default.events.EDITOR_CHANGE,function(K,D){K===e.default.events.SELECTION_CHANGE&&I.update(D)}),I.quill.on(e.default.events.SCROLL_OPTIMIZE,function(){var K=I.quill.selection.getRange(),D=k(K,1),P=D[0];I.update(P)}),I}return w(g,[{key:"addHandler",value:function(q,I){this.handlers[q]=I}},{key:"attach",value:function(q){var I=this,F=[].find.call(q.classList,function(K){return K.indexOf("ql-")===0});if(F){if(F=F.slice(3),q.tagName==="BUTTON"&&q.setAttribute("type","button"),this.handlers[F]==null){if(this.quill.scroll.whitelist!=null&&this.quill.scroll.whitelist[F]==null){S.warn("ignoring attaching to disabled format",F,q);return}if(h.default.query(F)==null){S.warn("ignoring attaching to nonexistent format",F,q);return}}var U=q.tagName==="SELECT"?"change":"click";q.addEventListener(U,function(K){var D=void 0;if(q.tagName==="SELECT"){if(q.selectedIndex<0)return;var P=q.options[q.selectedIndex];P.hasAttribute("selected")?D=!1:D=P.value||!1}else q.classList.contains("ql-active")?D=!1:D=q.value||!q.hasAttribute("value"),K.preventDefault();I.quill.focus();var m=I.quill.selection.getRange(),T=k(m,1),M=T[0];if(I.handlers[F]!=null)I.handlers[F].call(I,D);else if(h.default.query(F).prototype instanceof h.default.Embed){if(D=prompt("Enter "+F),!D)return;I.quill.updateContents(new y.default().retain(M.index).delete(M.length).insert(i({},F,D)),e.default.sources.USER)}else I.quill.format(F,D,e.default.sources.USER);I.update(M)}),this.controls.push([F,q])}}},{key:"update",value:function(q){var I=q==null?{}:this.quill.getFormat(q);this.controls.forEach(function(F){var U=k(F,2),K=U[0],D=U[1];if(D.tagName==="SELECT"){var P=void 0;if(q==null)P=null;else if(I[K]==null)P=D.querySelector("option[selected]");else if(!Array.isArray(I[K])){var m=I[K];typeof m=="string"&&(m=m.replace(/\"/g,'\\"')),P=D.querySelector('option[value="'+m+'"]')}P==null?(D.value="",D.selectedIndex=-1):P.selected=!0}else if(q==null)D.classList.remove("ql-active");else if(D.hasAttribute("value")){var T=I[K]===D.getAttribute("value")||I[K]!=null&&I[K].toString()===D.getAttribute("value")||I[K]==null&&!D.getAttribute("value");D.classList.toggle("ql-active",T)}else D.classList.toggle("ql-active",I[K]!=null)})}}]),g}(l.default);E.DEFAULTS={};function A(p,g,N){var q=document.createElement("button");q.setAttribute("type","button"),q.classList.add("ql-"+g),N!=null&&(q.value=N),p.appendChild(q)}function j(p,g){Array.isArray(g[0])||(g=[g]),g.forEach(function(N){var q=document.createElement("span");q.classList.add("ql-formats"),N.forEach(function(I){if(typeof I=="string")A(q,I);else{var F=Object.keys(I)[0],U=I[F];Array.isArray(U)?b(q,F,U):A(q,F,U)}}),p.appendChild(q)})}function b(p,g,N){var q=document.createElement("select");q.classList.add("ql-"+g),N.forEach(function(I){var F=document.createElement("option");I!==!1?F.setAttribute("value",I):F.setAttribute("selected","selected"),q.appendChild(F)}),p.appendChild(q)}E.DEFAULTS={container:null,handlers:{clean:function(){var g=this,N=this.quill.getSelection();if(N!=null)if(N.length==0){var q=this.quill.getFormat();Object.keys(q).forEach(function(I){h.default.query(I,h.default.Scope.INLINE)!=null&&g.quill.format(I,!1)})}else this.quill.removeFormat(N,e.default.sources.USER)},direction:function(g){var N=this.quill.getFormat().align;g==="rtl"&&N==null?this.quill.format("align","right",e.default.sources.USER):!g&&N==="right"&&this.quill.format("align",!1,e.default.sources.USER),this.quill.format("direction",g,e.default.sources.USER)},indent:function(g){var N=this.quill.getSelection(),q=this.quill.getFormat(N),I=parseInt(q.indent||0);if(g==="+1"||g==="-1"){var F=g==="+1"?1:-1;q.direction==="rtl"&&(F*=-1),this.quill.format("indent",I+F,e.default.sources.USER)}},link:function(g){g===!0&&(g=prompt("Enter link URL:")),this.quill.format("link",g,e.default.sources.USER)},list:function(g){var N=this.quill.getSelection(),q=this.quill.getFormat(N);g==="check"?q.list==="checked"||q.list==="unchecked"?this.quill.format("list",!1,e.default.sources.USER):this.quill.format("list","unchecked",e.default.sources.USER):this.quill.format("list",g,e.default.sources.USER)}}},s.default=E,s.addControls=j},function(_,s){_.exports='<svg viewbox="0 0 18 18"> <polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"></polyline> <polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"></polyline> <line class=ql-stroke x1=10 x2=8 y1=5 y2=13></line> </svg>'},function(_,s,d){Object.defineProperty(s,"__esModule",{value:!0});var k=function(){function u(a,l){for(var r=0;r<l.length;r++){var i=l[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(a,i.key,i)}}return function(a,l,r){return l&&u(a.prototype,l),r&&u(a,r),a}}(),w=function u(a,l,r){a===null&&(a=Function.prototype);var i=Object.getOwnPropertyDescriptor(a,l);if(i===void 0){var f=Object.getPrototypeOf(a);return f===null?void 0:u(f,l,r)}else{if("value"in i)return i.value;var n=i.get;return n===void 0?void 0:n.call(r)}},O=d(28),y=v(O);function v(u){return u&&u.__esModule?u:{default:u}}function h(u,a){if(!(u instanceof a))throw new TypeError("Cannot call a class as a function")}function o(u,a){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a&&(typeof a=="object"||typeof a=="function")?a:u}function e(u,a){if(typeof a!="function"&&a!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof a);u.prototype=Object.create(a&&a.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),a&&(Object.setPrototypeOf?Object.setPrototypeOf(u,a):u.__proto__=a)}var t=function(u){e(a,u);function a(l,r){h(this,a);var i=o(this,(a.__proto__||Object.getPrototypeOf(a)).call(this,l));return i.label.innerHTML=r,i.container.classList.add("ql-color-picker"),[].slice.call(i.container.querySelectorAll(".ql-picker-item"),0,7).forEach(function(f){f.classList.add("ql-primary")}),i}return k(a,[{key:"buildItem",value:function(r){var i=w(a.prototype.__proto__||Object.getPrototypeOf(a.prototype),"buildItem",this).call(this,r);return i.style.backgroundColor=r.getAttribute("value")||"",i}},{key:"selectItem",value:function(r,i){w(a.prototype.__proto__||Object.getPrototypeOf(a.prototype),"selectItem",this).call(this,r,i);var f=this.label.querySelector(".ql-color-label"),n=r&&r.getAttribute("data-value")||"";f&&(f.tagName==="line"?f.style.stroke=n:f.style.fill=n)}}]),a}(y.default);s.default=t},function(_,s,d){Object.defineProperty(s,"__esModule",{value:!0});var k=function(){function u(a,l){for(var r=0;r<l.length;r++){var i=l[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(a,i.key,i)}}return function(a,l,r){return l&&u(a.prototype,l),r&&u(a,r),a}}(),w=function u(a,l,r){a===null&&(a=Function.prototype);var i=Object.getOwnPropertyDescriptor(a,l);if(i===void 0){var f=Object.getPrototypeOf(a);return f===null?void 0:u(f,l,r)}else{if("value"in i)return i.value;var n=i.get;return n===void 0?void 0:n.call(r)}},O=d(28),y=v(O);function v(u){return u&&u.__esModule?u:{default:u}}function h(u,a){if(!(u instanceof a))throw new TypeError("Cannot call a class as a function")}function o(u,a){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a&&(typeof a=="object"||typeof a=="function")?a:u}function e(u,a){if(typeof a!="function"&&a!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof a);u.prototype=Object.create(a&&a.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),a&&(Object.setPrototypeOf?Object.setPrototypeOf(u,a):u.__proto__=a)}var t=function(u){e(a,u);function a(l,r){h(this,a);var i=o(this,(a.__proto__||Object.getPrototypeOf(a)).call(this,l));return i.container.classList.add("ql-icon-picker"),[].forEach.call(i.container.querySelectorAll(".ql-picker-item"),function(f){f.innerHTML=r[f.getAttribute("data-value")||""]}),i.defaultItem=i.container.querySelector(".ql-selected"),i.selectItem(i.defaultItem),i}return k(a,[{key:"selectItem",value:function(r,i){w(a.prototype.__proto__||Object.getPrototypeOf(a.prototype),"selectItem",this).call(this,r,i),r=r||this.defaultItem,this.label.innerHTML=r.innerHTML}}]),a}(y.default);s.default=t},function(_,s,d){Object.defineProperty(s,"__esModule",{value:!0});var k=function(){function y(v,h){for(var o=0;o<h.length;o++){var e=h[o];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(v,e.key,e)}}return function(v,h,o){return h&&y(v.prototype,h),o&&y(v,o),v}}();function w(y,v){if(!(y instanceof v))throw new TypeError("Cannot call a class as a function")}var O=function(){function y(v,h){var o=this;w(this,y),this.quill=v,this.boundsContainer=h||document.body,this.root=v.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",function(){o.root.style.marginTop=-1*o.quill.root.scrollTop+"px"}),this.hide()}return k(y,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(h){var o=h.left+h.width/2-this.root.offsetWidth/2,e=h.bottom+this.quill.root.scrollTop;this.root.style.left=o+"px",this.root.style.top=e+"px",this.root.classList.remove("ql-flip");var t=this.boundsContainer.getBoundingClientRect(),u=this.root.getBoundingClientRect(),a=0;if(u.right>t.right&&(a=t.right-u.right,this.root.style.left=o+a+"px"),u.left<t.left&&(a=t.left-u.left,this.root.style.left=o+a+"px"),u.bottom>t.bottom){var l=u.bottom-u.top,r=h.bottom-h.top+l;this.root.style.top=e-r+"px",this.root.classList.add("ql-flip")}return a}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),y}();s.default=O},function(_,s,d){Object.defineProperty(s,"__esModule",{value:!0});var k=function(){function b(p,g){var N=[],q=!0,I=!1,F=void 0;try{for(var U=p[Symbol.iterator](),K;!(q=(K=U.next()).done)&&(N.push(K.value),!(g&&N.length===g));q=!0);}catch(D){I=!0,F=D}finally{try{!q&&U.return&&U.return()}finally{if(I)throw F}}return N}return function(p,g){if(Array.isArray(p))return p;if(Symbol.iterator in Object(p))return b(p,g);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),w=function b(p,g,N){p===null&&(p=Function.prototype);var q=Object.getOwnPropertyDescriptor(p,g);if(q===void 0){var I=Object.getPrototypeOf(p);return I===null?void 0:b(I,g,N)}else{if("value"in q)return q.value;var F=q.get;return F===void 0?void 0:F.call(N)}},O=function(){function b(p,g){for(var N=0;N<g.length;N++){var q=g[N];q.enumerable=q.enumerable||!1,q.configurable=!0,"value"in q&&(q.writable=!0),Object.defineProperty(p,q.key,q)}}return function(p,g,N){return g&&b(p.prototype,g),N&&b(p,N),p}}(),y=d(3),v=f(y),h=d(8),o=f(h),e=d(43),t=f(e),u=d(27),a=f(u),l=d(15),r=d(41),i=f(r);function f(b){return b&&b.__esModule?b:{default:b}}function n(b,p){if(!(b instanceof p))throw new TypeError("Cannot call a class as a function")}function c(b,p){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p&&(typeof p=="object"||typeof p=="function")?p:b}function S(b,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof p);b.prototype=Object.create(p&&p.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(b,p):b.__proto__=p)}var E=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],A=function(b){S(p,b);function p(g,N){n(this,p),N.modules.toolbar!=null&&N.modules.toolbar.container==null&&(N.modules.toolbar.container=E);var q=c(this,(p.__proto__||Object.getPrototypeOf(p)).call(this,g,N));return q.quill.container.classList.add("ql-snow"),q}return O(p,[{key:"extendToolbar",value:function(N){N.container.classList.add("ql-snow"),this.buildButtons([].slice.call(N.container.querySelectorAll("button")),i.default),this.buildPickers([].slice.call(N.container.querySelectorAll("select")),i.default),this.tooltip=new j(this.quill,this.options.bounds),N.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},function(q,I){N.handlers.link.call(N,!I.format.link)})}}]),p}(t.default);A.DEFAULTS=(0,v.default)(!0,{},t.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(p){if(p){var g=this.quill.getSelection();if(g==null||g.length==0)return;var N=this.quill.getText(g);/^\S+@\S+\.\S+$/.test(N)&&N.indexOf("mailto:")!==0&&(N="mailto:"+N);var q=this.quill.theme.tooltip;q.edit("link",N)}else this.quill.format("link",!1)}}}}});var j=function(b){S(p,b);function p(g,N){n(this,p);var q=c(this,(p.__proto__||Object.getPrototypeOf(p)).call(this,g,N));return q.preview=q.root.querySelector("a.ql-preview"),q}return O(p,[{key:"listen",value:function(){var N=this;w(p.prototype.__proto__||Object.getPrototypeOf(p.prototype),"listen",this).call(this),this.root.querySelector("a.ql-action").addEventListener("click",function(q){N.root.classList.contains("ql-editing")?N.save():N.edit("link",N.preview.textContent),q.preventDefault()}),this.root.querySelector("a.ql-remove").addEventListener("click",function(q){if(N.linkRange!=null){var I=N.linkRange;N.restoreFocus(),N.quill.formatText(I,"link",!1,o.default.sources.USER),delete N.linkRange}q.preventDefault(),N.hide()}),this.quill.on(o.default.events.SELECTION_CHANGE,function(q,I,F){if(q!=null){if(q.length===0&&F===o.default.sources.USER){var U=N.quill.scroll.descendant(a.default,q.index),K=k(U,2),D=K[0],P=K[1];if(D!=null){N.linkRange=new l.Range(q.index-P,D.length());var m=a.default.formats(D.domNode);N.preview.textContent=m,N.preview.setAttribute("href",m),N.show(),N.position(N.quill.getBounds(N.linkRange));return}}else delete N.linkRange;N.hide()}})}},{key:"show",value:function(){w(p.prototype.__proto__||Object.getPrototypeOf(p.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]),p}(e.BaseTooltip);j.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(""),s.default=A},function(_,s,d){Object.defineProperty(s,"__esModule",{value:!0});var k=d(29),w=Q(k),O=d(36),y=d(38),v=d(64),h=d(65),o=Q(h),e=d(66),t=Q(e),u=d(67),a=Q(u),l=d(37),r=d(26),i=d(39),f=d(40),n=d(56),c=Q(n),S=d(68),E=Q(S),A=d(27),j=Q(A),b=d(69),p=Q(b),g=d(70),N=Q(g),q=d(71),I=Q(q),F=d(72),U=Q(F),K=d(73),D=Q(K),P=d(13),m=Q(P),T=d(74),M=Q(T),$=d(75),B=Q($),L=d(57),C=Q(L),H=d(41),z=Q(H),Z=d(28),J=Q(Z),ee=d(59),te=Q(ee),oe=d(60),ae=Q(oe),he=d(61),fe=Q(he),G=d(108),W=Q(G),Y=d(62),X=Q(Y);function Q(ne){return ne&&ne.__esModule?ne:{default:ne}}w.default.register({"attributors/attribute/direction":y.DirectionAttribute,"attributors/class/align":O.AlignClass,"attributors/class/background":l.BackgroundClass,"attributors/class/color":r.ColorClass,"attributors/class/direction":y.DirectionClass,"attributors/class/font":i.FontClass,"attributors/class/size":f.SizeClass,"attributors/style/align":O.AlignStyle,"attributors/style/background":l.BackgroundStyle,"attributors/style/color":r.ColorStyle,"attributors/style/direction":y.DirectionStyle,"attributors/style/font":i.FontStyle,"attributors/style/size":f.SizeStyle},!0),w.default.register({"formats/align":O.AlignClass,"formats/direction":y.DirectionClass,"formats/indent":v.IndentClass,"formats/background":l.BackgroundStyle,"formats/color":r.ColorStyle,"formats/font":i.FontClass,"formats/size":f.SizeClass,"formats/blockquote":o.default,"formats/code-block":m.default,"formats/header":t.default,"formats/list":a.default,"formats/bold":c.default,"formats/code":P.Code,"formats/italic":E.default,"formats/link":j.default,"formats/script":p.default,"formats/strike":N.default,"formats/underline":I.default,"formats/image":U.default,"formats/video":D.default,"formats/list/item":u.ListItem,"modules/formula":M.default,"modules/syntax":B.default,"modules/toolbar":C.default,"themes/bubble":W.default,"themes/snow":X.default,"ui/icons":z.default,"ui/picker":J.default,"ui/icon-picker":ae.default,"ui/color-picker":te.default,"ui/tooltip":fe.default},!0),s.default=w.default},function(_,s,d){Object.defineProperty(s,"__esModule",{value:!0}),s.IndentClass=void 0;var k=function(){function a(l,r){for(var i=0;i<r.length;i++){var f=r[i];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(l,f.key,f)}}return function(l,r,i){return r&&a(l.prototype,r),i&&a(l,i),l}}(),w=function a(l,r,i){l===null&&(l=Function.prototype);var f=Object.getOwnPropertyDescriptor(l,r);if(f===void 0){var n=Object.getPrototypeOf(l);return n===null?void 0:a(n,r,i)}else{if("value"in f)return f.value;var c=f.get;return c===void 0?void 0:c.call(i)}},O=d(0),y=v(O);function v(a){return a&&a.__esModule?a:{default:a}}function h(a,l){if(!(a instanceof l))throw new TypeError("Cannot call a class as a function")}function o(a,l){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l&&(typeof l=="object"||typeof l=="function")?l:a}function e(a,l){if(typeof l!="function"&&l!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof l);a.prototype=Object.create(l&&l.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),l&&(Object.setPrototypeOf?Object.setPrototypeOf(a,l):a.__proto__=l)}var t=function(a){e(l,a);function l(){return h(this,l),o(this,(l.__proto__||Object.getPrototypeOf(l)).apply(this,arguments))}return k(l,[{key:"add",value:function(i,f){if(f==="+1"||f==="-1"){var n=this.value(i)||0;f=f==="+1"?n+1:n-1}return f===0?(this.remove(i),!0):w(l.prototype.__proto__||Object.getPrototypeOf(l.prototype),"add",this).call(this,i,f)}},{key:"canAdd",value:function(i,f){return w(l.prototype.__proto__||Object.getPrototypeOf(l.prototype),"canAdd",this).call(this,i,f)||w(l.prototype.__proto__||Object.getPrototypeOf(l.prototype),"canAdd",this).call(this,i,parseInt(f))}},{key:"value",value:function(i){return parseInt(w(l.prototype.__proto__||Object.getPrototypeOf(l.prototype),"value",this).call(this,i))||void 0}}]),l}(y.default.Attributor.Class),u=new t("indent","ql-indent",{scope:y.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});s.IndentClass=u},function(_,s,d){Object.defineProperty(s,"__esModule",{value:!0});var k=d(4),w=O(k);function O(e){return e&&e.__esModule?e:{default:e}}function y(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function v(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function h(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var o=function(e){h(t,e);function t(){return y(this,t),v(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return t}(w.default);o.blotName="blockquote",o.tagName="blockquote",s.default=o},function(_,s,d){Object.defineProperty(s,"__esModule",{value:!0});var k=function(){function t(u,a){for(var l=0;l<a.length;l++){var r=a[l];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(u,r.key,r)}}return function(u,a,l){return a&&t(u.prototype,a),l&&t(u,l),u}}(),w=d(4),O=y(w);function y(t){return t&&t.__esModule?t:{default:t}}function v(t,u){if(!(t instanceof u))throw new TypeError("Cannot call a class as a function")}function h(t,u){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return u&&(typeof u=="object"||typeof u=="function")?u:t}function o(t,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof u);t.prototype=Object.create(u&&u.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),u&&(Object.setPrototypeOf?Object.setPrototypeOf(t,u):t.__proto__=u)}var e=function(t){o(u,t);function u(){return v(this,u),h(this,(u.__proto__||Object.getPrototypeOf(u)).apply(this,arguments))}return k(u,null,[{key:"formats",value:function(l){return this.tagName.indexOf(l.tagName)+1}}]),u}(O.default);e.blotName="header",e.tagName=["H1","H2","H3","H4","H5","H6"],s.default=e},function(_,s,d){Object.defineProperty(s,"__esModule",{value:!0}),s.default=s.ListItem=void 0;var k=function(){function n(c,S){for(var E=0;E<S.length;E++){var A=S[E];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(c,A.key,A)}}return function(c,S,E){return S&&n(c.prototype,S),E&&n(c,E),c}}(),w=function n(c,S,E){c===null&&(c=Function.prototype);var A=Object.getOwnPropertyDescriptor(c,S);if(A===void 0){var j=Object.getPrototypeOf(c);return j===null?void 0:n(j,S,E)}else{if("value"in A)return A.value;var b=A.get;return b===void 0?void 0:b.call(E)}},O=d(0),y=t(O),v=d(4),h=t(v),o=d(25),e=t(o);function t(n){return n&&n.__esModule?n:{default:n}}function u(n,c,S){return c in n?Object.defineProperty(n,c,{value:S,enumerable:!0,configurable:!0,writable:!0}):n[c]=S,n}function a(n,c){if(!(n instanceof c))throw new TypeError("Cannot call a class as a function")}function l(n,c){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return c&&(typeof c=="object"||typeof c=="function")?c:n}function r(n,c){if(typeof c!="function"&&c!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof c);n.prototype=Object.create(c&&c.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),c&&(Object.setPrototypeOf?Object.setPrototypeOf(n,c):n.__proto__=c)}var i=function(n){r(c,n);function c(){return a(this,c),l(this,(c.__proto__||Object.getPrototypeOf(c)).apply(this,arguments))}return k(c,[{key:"format",value:function(E,A){E===f.blotName&&!A?this.replaceWith(y.default.create(this.statics.scope)):w(c.prototype.__proto__||Object.getPrototypeOf(c.prototype),"format",this).call(this,E,A)}},{key:"remove",value:function(){this.prev==null&&this.next==null?this.parent.remove():w(c.prototype.__proto__||Object.getPrototypeOf(c.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(E,A){return this.parent.isolate(this.offset(this.parent),this.length()),E===this.parent.statics.blotName?(this.parent.replaceWith(E,A),this):(this.parent.unwrap(),w(c.prototype.__proto__||Object.getPrototypeOf(c.prototype),"replaceWith",this).call(this,E,A))}}],[{key:"formats",value:function(E){return E.tagName===this.tagName?void 0:w(c.__proto__||Object.getPrototypeOf(c),"formats",this).call(this,E)}}]),c}(h.default);i.blotName="list-item",i.tagName="LI";var f=function(n){r(c,n),k(c,null,[{key:"create",value:function(E){var A=E==="ordered"?"OL":"UL",j=w(c.__proto__||Object.getPrototypeOf(c),"create",this).call(this,A);return(E==="checked"||E==="unchecked")&&j.setAttribute("data-checked",E==="checked"),j}},{key:"formats",value:function(E){if(E.tagName==="OL")return"ordered";if(E.tagName==="UL")return E.hasAttribute("data-checked")?E.getAttribute("data-checked")==="true"?"checked":"unchecked":"bullet"}}]);function c(S){a(this,c);var E=l(this,(c.__proto__||Object.getPrototypeOf(c)).call(this,S)),A=function(b){if(b.target.parentNode===S){var p=E.statics.formats(S),g=y.default.find(b.target);p==="checked"?g.format("list","unchecked"):p==="unchecked"&&g.format("list","checked")}};return S.addEventListener("touchstart",A),S.addEventListener("mousedown",A),E}return k(c,[{key:"format",value:function(E,A){this.children.length>0&&this.children.tail.format(E,A)}},{key:"formats",value:function(){return u({},this.statics.blotName,this.statics.formats(this.domNode))}},{key:"insertBefore",value:function(E,A){if(E instanceof i)w(c.prototype.__proto__||Object.getPrototypeOf(c.prototype),"insertBefore",this).call(this,E,A);else{var j=A==null?this.length():A.offset(this),b=this.split(j);b.parent.insertBefore(E,b)}}},{key:"optimize",value:function(E){w(c.prototype.__proto__||Object.getPrototypeOf(c.prototype),"optimize",this).call(this,E);var A=this.next;A!=null&&A.prev===this&&A.statics.blotName===this.statics.blotName&&A.domNode.tagName===this.domNode.tagName&&A.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(A.moveChildren(this),A.remove())}},{key:"replace",value:function(E){if(E.statics.blotName!==this.statics.blotName){var A=y.default.create(this.statics.defaultChild);E.moveChildren(A),this.appendChild(A)}w(c.prototype.__proto__||Object.getPrototypeOf(c.prototype),"replace",this).call(this,E)}}]),c}(e.default);f.blotName="list",f.scope=y.default.Scope.BLOCK_BLOT,f.tagName=["OL","UL"],f.defaultChild="list-item",f.allowedChildren=[i],s.ListItem=i,s.default=f},function(_,s,d){Object.defineProperty(s,"__esModule",{value:!0});var k=d(56),w=O(k);function O(e){return e&&e.__esModule?e:{default:e}}function y(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function v(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function h(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var o=function(e){h(t,e);function t(){return y(this,t),v(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return t}(w.default);o.blotName="italic",o.tagName=["EM","I"],s.default=o},function(_,s,d){Object.defineProperty(s,"__esModule",{value:!0});var k=function(){function u(a,l){for(var r=0;r<l.length;r++){var i=l[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(a,i.key,i)}}return function(a,l,r){return l&&u(a.prototype,l),r&&u(a,r),a}}(),w=function u(a,l,r){a===null&&(a=Function.prototype);var i=Object.getOwnPropertyDescriptor(a,l);if(i===void 0){var f=Object.getPrototypeOf(a);return f===null?void 0:u(f,l,r)}else{if("value"in i)return i.value;var n=i.get;return n===void 0?void 0:n.call(r)}},O=d(6),y=v(O);function v(u){return u&&u.__esModule?u:{default:u}}function h(u,a){if(!(u instanceof a))throw new TypeError("Cannot call a class as a function")}function o(u,a){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a&&(typeof a=="object"||typeof a=="function")?a:u}function e(u,a){if(typeof a!="function"&&a!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof a);u.prototype=Object.create(a&&a.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),a&&(Object.setPrototypeOf?Object.setPrototypeOf(u,a):u.__proto__=a)}var t=function(u){e(a,u);function a(){return h(this,a),o(this,(a.__proto__||Object.getPrototypeOf(a)).apply(this,arguments))}return k(a,null,[{key:"create",value:function(r){return r==="super"?document.createElement("sup"):r==="sub"?document.createElement("sub"):w(a.__proto__||Object.getPrototypeOf(a),"create",this).call(this,r)}},{key:"formats",value:function(r){if(r.tagName==="SUB")return"sub";if(r.tagName==="SUP")return"super"}}]),a}(y.default);t.blotName="script",t.tagName=["SUB","SUP"],s.default=t},function(_,s,d){Object.defineProperty(s,"__esModule",{value:!0});var k=d(6),w=O(k);function O(e){return e&&e.__esModule?e:{default:e}}function y(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function v(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function h(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var o=function(e){h(t,e);function t(){return y(this,t),v(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return t}(w.default);o.blotName="strike",o.tagName="S",s.default=o},function(_,s,d){Object.defineProperty(s,"__esModule",{value:!0});var k=d(6),w=O(k);function O(e){return e&&e.__esModule?e:{default:e}}function y(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function v(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function h(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var o=function(e){h(t,e);function t(){return y(this,t),v(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return t}(w.default);o.blotName="underline",o.tagName="U",s.default=o},function(_,s,d){Object.defineProperty(s,"__esModule",{value:!0});var k=function(){function l(r,i){for(var f=0;f<i.length;f++){var n=i[f];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(r,n.key,n)}}return function(r,i,f){return i&&l(r.prototype,i),f&&l(r,f),r}}(),w=function l(r,i,f){r===null&&(r=Function.prototype);var n=Object.getOwnPropertyDescriptor(r,i);if(n===void 0){var c=Object.getPrototypeOf(r);return c===null?void 0:l(c,i,f)}else{if("value"in n)return n.value;var S=n.get;return S===void 0?void 0:S.call(f)}},O=d(0),y=h(O),v=d(27);function h(l){return l&&l.__esModule?l:{default:l}}function o(l,r){if(!(l instanceof r))throw new TypeError("Cannot call a class as a function")}function e(l,r){if(!l)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r&&(typeof r=="object"||typeof r=="function")?r:l}function t(l,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof r);l.prototype=Object.create(r&&r.prototype,{constructor:{value:l,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?Object.setPrototypeOf(l,r):l.__proto__=r)}var u=["alt","height","width"],a=function(l){t(r,l);function r(){return o(this,r),e(this,(r.__proto__||Object.getPrototypeOf(r)).apply(this,arguments))}return k(r,[{key:"format",value:function(f,n){u.indexOf(f)>-1?n?this.domNode.setAttribute(f,n):this.domNode.removeAttribute(f):w(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"format",this).call(this,f,n)}}],[{key:"create",value:function(f){var n=w(r.__proto__||Object.getPrototypeOf(r),"create",this).call(this,f);return typeof f=="string"&&n.setAttribute("src",this.sanitize(f)),n}},{key:"formats",value:function(f){return u.reduce(function(n,c){return f.hasAttribute(c)&&(n[c]=f.getAttribute(c)),n},{})}},{key:"match",value:function(f){return/\.(jpe?g|gif|png)$/.test(f)||/^data:image\/.+;base64/.test(f)}},{key:"sanitize",value:function(f){return(0,v.sanitize)(f,["http","https","data"])?f:"//:0"}},{key:"value",value:function(f){return f.getAttribute("src")}}]),r}(y.default.Embed);a.blotName="image",a.tagName="IMG",s.default=a},function(_,s,d){Object.defineProperty(s,"__esModule",{value:!0});var k=function(){function l(r,i){for(var f=0;f<i.length;f++){var n=i[f];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(r,n.key,n)}}return function(r,i,f){return i&&l(r.prototype,i),f&&l(r,f),r}}(),w=function l(r,i,f){r===null&&(r=Function.prototype);var n=Object.getOwnPropertyDescriptor(r,i);if(n===void 0){var c=Object.getPrototypeOf(r);return c===null?void 0:l(c,i,f)}else{if("value"in n)return n.value;var S=n.get;return S===void 0?void 0:S.call(f)}},O=d(4),y=d(27),v=h(y);function h(l){return l&&l.__esModule?l:{default:l}}function o(l,r){if(!(l instanceof r))throw new TypeError("Cannot call a class as a function")}function e(l,r){if(!l)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r&&(typeof r=="object"||typeof r=="function")?r:l}function t(l,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof r);l.prototype=Object.create(r&&r.prototype,{constructor:{value:l,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?Object.setPrototypeOf(l,r):l.__proto__=r)}var u=["height","width"],a=function(l){t(r,l);function r(){return o(this,r),e(this,(r.__proto__||Object.getPrototypeOf(r)).apply(this,arguments))}return k(r,[{key:"format",value:function(f,n){u.indexOf(f)>-1?n?this.domNode.setAttribute(f,n):this.domNode.removeAttribute(f):w(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"format",this).call(this,f,n)}}],[{key:"create",value:function(f){var n=w(r.__proto__||Object.getPrototypeOf(r),"create",this).call(this,f);return n.setAttribute("frameborder","0"),n.setAttribute("allowfullscreen",!0),n.setAttribute("src",this.sanitize(f)),n}},{key:"formats",value:function(f){return u.reduce(function(n,c){return f.hasAttribute(c)&&(n[c]=f.getAttribute(c)),n},{})}},{key:"sanitize",value:function(f){return v.default.sanitize(f)}},{key:"value",value:function(f){return f.getAttribute("src")}}]),r}(O.BlockEmbed);a.blotName="video",a.className="ql-video",a.tagName="IFRAME",s.default=a},function(_,s,d){Object.defineProperty(s,"__esModule",{value:!0}),s.default=s.FormulaBlot=void 0;var k=function(){function f(n,c){for(var S=0;S<c.length;S++){var E=c[S];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(n,E.key,E)}}return function(n,c,S){return c&&f(n.prototype,c),S&&f(n,S),n}}(),w=function f(n,c,S){n===null&&(n=Function.prototype);var E=Object.getOwnPropertyDescriptor(n,c);if(E===void 0){var A=Object.getPrototypeOf(n);return A===null?void 0:f(A,c,S)}else{if("value"in E)return E.value;var j=E.get;return j===void 0?void 0:j.call(S)}},O=d(35),y=t(O),v=d(5),h=t(v),o=d(9),e=t(o);function t(f){return f&&f.__esModule?f:{default:f}}function u(f,n){if(!(f instanceof n))throw new TypeError("Cannot call a class as a function")}function a(f,n){if(!f)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n&&(typeof n=="object"||typeof n=="function")?n:f}function l(f,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof n);f.prototype=Object.create(n&&n.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(f,n):f.__proto__=n)}var r=function(f){l(n,f);function n(){return u(this,n),a(this,(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments))}return k(n,null,[{key:"create",value:function(S){var E=w(n.__proto__||Object.getPrototypeOf(n),"create",this).call(this,S);return typeof S=="string"&&(window.katex.render(S,E,{throwOnError:!1,errorColor:"#f00"}),E.setAttribute("data-value",S)),E}},{key:"value",value:function(S){return S.getAttribute("data-value")}}]),n}(y.default);r.blotName="formula",r.className="ql-formula",r.tagName="SPAN";var i=function(f){l(n,f),k(n,null,[{key:"register",value:function(){h.default.register(r,!0)}}]);function n(){u(this,n);var c=a(this,(n.__proto__||Object.getPrototypeOf(n)).call(this));if(window.katex==null)throw new Error("Formula module requires KaTeX.");return c}return n}(e.default);s.FormulaBlot=r,s.default=i},function(_,s,d){Object.defineProperty(s,"__esModule",{value:!0}),s.default=s.CodeToken=s.CodeBlock=void 0;var k=function(){function S(E,A){for(var j=0;j<A.length;j++){var b=A[j];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(E,b.key,b)}}return function(E,A,j){return A&&S(E.prototype,A),j&&S(E,j),E}}(),w=function S(E,A,j){E===null&&(E=Function.prototype);var b=Object.getOwnPropertyDescriptor(E,A);if(b===void 0){var p=Object.getPrototypeOf(E);return p===null?void 0:S(p,A,j)}else{if("value"in b)return b.value;var g=b.get;return g===void 0?void 0:g.call(j)}},O=d(0),y=a(O),v=d(5),h=a(v),o=d(9),e=a(o),t=d(13),u=a(t);function a(S){return S&&S.__esModule?S:{default:S}}function l(S,E){if(!(S instanceof E))throw new TypeError("Cannot call a class as a function")}function r(S,E){if(!S)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return E&&(typeof E=="object"||typeof E=="function")?E:S}function i(S,E){if(typeof E!="function"&&E!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof E);S.prototype=Object.create(E&&E.prototype,{constructor:{value:S,enumerable:!1,writable:!0,configurable:!0}}),E&&(Object.setPrototypeOf?Object.setPrototypeOf(S,E):S.__proto__=E)}var f=function(S){i(E,S);function E(){return l(this,E),r(this,(E.__proto__||Object.getPrototypeOf(E)).apply(this,arguments))}return k(E,[{key:"replaceWith",value:function(j){this.domNode.textContent=this.domNode.textContent,this.attach(),w(E.prototype.__proto__||Object.getPrototypeOf(E.prototype),"replaceWith",this).call(this,j)}},{key:"highlight",value:function(j){var b=this.domNode.textContent;this.cachedText!==b&&((b.trim().length>0||this.cachedText==null)&&(this.domNode.innerHTML=j(b),this.domNode.normalize(),this.attach()),this.cachedText=b)}}]),E}(u.default);f.className="ql-syntax";var n=new y.default.Attributor.Class("token","hljs",{scope:y.default.Scope.INLINE}),c=function(S){i(E,S),k(E,null,[{key:"register",value:function(){h.default.register(n,!0),h.default.register(f,!0)}}]);function E(A,j){l(this,E);var b=r(this,(E.__proto__||Object.getPrototypeOf(E)).call(this,A,j));if(typeof b.options.highlight!="function")throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var p=null;return b.quill.on(h.default.events.SCROLL_OPTIMIZE,function(){clearTimeout(p),p=setTimeout(function(){b.highlight(),p=null},b.options.interval)}),b.highlight(),b}return k(E,[{key:"highlight",value:function(){var j=this;if(!this.quill.selection.composing){this.quill.update(h.default.sources.USER);var b=this.quill.getSelection();this.quill.scroll.descendants(f).forEach(function(p){p.highlight(j.options.highlight)}),this.quill.update(h.default.sources.SILENT),b!=null&&this.quill.setSelection(b,h.default.sources.SILENT)}}}]),E}(e.default);c.DEFAULTS={highlight:function(){return window.hljs==null?null:function(S){var E=window.hljs.highlightAuto(S);return E.value}}(),interval:1e3},s.CodeBlock=f,s.CodeToken=n,s.default=c},function(_,s){_.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=13 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=9 y1=4 y2=4></line> </svg>'},function(_,s){_.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=14 x2=4 y1=14 y2=14></line> <line class=ql-stroke x1=12 x2=6 y1=4 y2=4></line> </svg>'},function(_,s){_.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=5 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=9 y1=4 y2=4></line> </svg>'},function(_,s){_.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=3 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=3 y1=4 y2=4></line> </svg>'},function(_,s){_.exports='<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"></polygon> <rect height=1 width=1 x=4 y=4></rect> <polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"></polygon> <rect height=1 width=1 x=2 y=6></rect> <rect height=1 width=1 x=3 y=5></rect> <rect height=1 width=1 x=4 y=7></rect> <polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"></polygon> <rect height=1 width=1 x=2 y=12></rect> <rect height=1 width=1 x=2 y=9></rect> <rect height=1 width=1 x=2 y=15></rect> <polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"></polygon> <rect height=1 width=1 x=3 y=8></rect> <path d=M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z></path> <path d=M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z></path> <path d=M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z></path> <rect height=1 width=1 x=12 y=2></rect> <rect height=1 width=1 x=11 y=3></rect> <path d=M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z></path> <rect height=1 width=1 x=2 y=3></rect> <rect height=1 width=1 x=6 y=2></rect> <rect height=1 width=1 x=3 y=2></rect> <rect height=1 width=1 x=5 y=3></rect> <rect height=1 width=1 x=9 y=2></rect> <rect height=1 width=1 x=15 y=14></rect> <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"></polygon> <rect height=1 width=1 x=13 y=7></rect> <rect height=1 width=1 x=15 y=5></rect> <rect height=1 width=1 x=14 y=6></rect> <rect height=1 width=1 x=15 y=8></rect> <rect height=1 width=1 x=14 y=9></rect> <path d=M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z></path> <rect height=1 width=1 x=14 y=3></rect> <polygon points="12 6.868 12 6 11.62 6 12 6.868"></polygon> <rect height=1 width=1 x=15 y=2></rect> <rect height=1 width=1 x=12 y=5></rect> <rect height=1 width=1 x=13 y=4></rect> <polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"></polygon> <rect height=1 width=1 x=9 y=14></rect> <rect height=1 width=1 x=8 y=15></rect> <path d=M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z></path> <rect height=1 width=1 x=5 y=15></rect> <path d=M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z></path> <rect height=1 width=1 x=11 y=15></rect> <path d=M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z></path> <rect height=1 width=1 x=14 y=15></rect> <rect height=1 width=1 x=15 y=11></rect> </g> <polyline class=ql-stroke points="5.5 13 9 5 12.5 13"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=11 y2=11></line> </svg>'},function(_,s){_.exports='<svg viewbox="0 0 18 18"> <rect class="ql-fill ql-stroke" height=3 width=3 x=4 y=5></rect> <rect class="ql-fill ql-stroke" height=3 width=3 x=11 y=5></rect> <path class="ql-even ql-fill ql-stroke" d=M7,8c0,4.031-3,5-3,5></path> <path class="ql-even ql-fill ql-stroke" d=M14,8c0,4.031-3,5-3,5></path> </svg>'},function(_,s){_.exports='<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> <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></path> </svg>'},function(_,s){_.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=5 x2=13 y1=3 y2=3></line> <line class=ql-stroke x1=6 x2=9.35 y1=12 y2=3></line> <line class=ql-stroke x1=11 x2=15 y1=11 y2=15></line> <line class=ql-stroke x1=15 x2=11 y1=11 y2=15></line> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=7 x=2 y=14></rect> </svg>'},function(_,s){_.exports='<svg viewbox="0 0 18 18"> <line class="ql-color-label ql-stroke ql-transparent" x1=3 x2=15 y1=15 y2=15></line> <polyline class=ql-stroke points="5.5 11 9 3 12.5 11"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=9 y2=9></line> </svg>'},function(_,s){_.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"></polygon> <line class="ql-stroke ql-fill" x1=15 x2=11 y1=4 y2=4></line> <path class=ql-fill d=M11,3a3,3,0,0,0,0,6h1V3H11Z></path> <rect class=ql-fill height=11 width=1 x=11 y=4></rect> <rect class=ql-fill height=11 width=1 x=13 y=4></rect> </svg>'},function(_,s){_.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"></polygon> <line class="ql-stroke ql-fill" x1=9 x2=5 y1=4 y2=4></line> <path class=ql-fill d=M5,3A3,3,0,0,0,5,9H6V3H5Z></path> <rect class=ql-fill height=11 width=1 x=5 y=4></rect> <rect class=ql-fill height=11 width=1 x=7 y=4></rect> </svg>'},function(_,s){_.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M14,16H4a1,1,0,0,1,0-2H14A1,1,0,0,1,14,16Z /> <path class=ql-fill d=M14,4H4A1,1,0,0,1,4,2H14A1,1,0,0,1,14,4Z /> <rect class=ql-fill x=3 y=6 width=12 height=6 rx=1 ry=1 /> </svg>'},function(_,s){_.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M13,16H5a1,1,0,0,1,0-2h8A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H5A1,1,0,0,1,5,2h8A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=2 y=6 width=14 height=6 rx=1 ry=1 /> </svg>'},function(_,s){_.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15,8H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,8Z /> <path class=ql-fill d=M15,12H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,12Z /> <path class=ql-fill d=M15,16H5a1,1,0,0,1,0-2H15A1,1,0,0,1,15,16Z /> <path class=ql-fill d=M15,4H5A1,1,0,0,1,5,2H15A1,1,0,0,1,15,4Z /> <rect class=ql-fill x=2 y=6 width=8 height=6 rx=1 ry=1 /> </svg>'},function(_,s){_.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M5,8H3A1,1,0,0,1,3,6H5A1,1,0,0,1,5,8Z /> <path class=ql-fill d=M5,12H3a1,1,0,0,1,0-2H5A1,1,0,0,1,5,12Z /> <path class=ql-fill d=M13,16H3a1,1,0,0,1,0-2H13A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H3A1,1,0,0,1,3,2H13A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=8 y=6 width=8 height=6 rx=1 ry=1 transform="translate(24 18) rotate(-180)"/> </svg>'},function(_,s){_.exports='<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></path> <rect class=ql-fill height=1.6 rx=0.8 ry=0.8 width=5 x=5.15 y=6.2></rect> <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></path> </svg>'},function(_,s){_.exports='<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>'},function(_,s){_.exports='<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>'},function(_,s){_.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=13 y1=4 y2=4></line> <line class=ql-stroke x1=5 x2=11 y1=14 y2=14></line> <line class=ql-stroke x1=8 x2=10 y1=14 y2=4></line> </svg>'},function(_,s){_.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=10 width=12 x=3 y=4></rect> <circle class=ql-fill cx=6 cy=7 r=1></circle> <polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"></polyline> </svg>'},function(_,s){_.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"></polyline> </svg>'},function(_,s){_.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="5 7 5 11 3 9 5 7"></polyline> </svg>'},function(_,s){_.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=11 y1=7 y2=11></line> <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> <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></path> </svg>'},function(_,s){_.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=7 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=7 x2=15 y1=14 y2=14></line> <line class="ql-stroke ql-thin" x1=2.5 x2=4.5 y1=5.5 y2=5.5></line> <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> <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> <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></path> </svg>'},function(_,s){_.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=6 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=6 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=6 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=3 y1=4 y2=4></line> <line class=ql-stroke x1=3 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=3 y1=14 y2=14></line> </svg>'},function(_,s){_.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=9 x2=15 y1=4 y2=4></line> <polyline class=ql-stroke points="3 4 4 5 6 3"></polyline> <line class=ql-stroke x1=9 x2=15 y1=14 y2=14></line> <polyline class=ql-stroke points="3 14 4 15 6 13"></polyline> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="3 9 4 10 6 8"></polyline> </svg>'},function(_,s){_.exports='<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>'},function(_,s){_.exports='<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>'},function(_,s){_.exports='<svg viewbox="0 0 18 18"> <line class="ql-stroke ql-thin" x1=15.5 x2=2.5 y1=8.5 y2=9.5></line> <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> <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></path> </svg>'},function(_,s){_.exports='<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></path> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=12 x=3 y=15></rect> </svg>'},function(_,s){_.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=12 width=12 x=3 y=3></rect> <rect class=ql-fill height=12 width=1 x=5 y=3></rect> <rect class=ql-fill height=12 width=1 x=12 y=3></rect> <rect class=ql-fill height=2 width=8 x=5 y=8></rect> <rect class=ql-fill height=1 width=3 x=3 y=5></rect> <rect class=ql-fill height=1 width=3 x=3 y=7></rect> <rect class=ql-fill height=1 width=3 x=3 y=10></rect> <rect class=ql-fill height=1 width=3 x=3 y=12></rect> <rect class=ql-fill height=1 width=3 x=12 y=5></rect> <rect class=ql-fill height=1 width=3 x=12 y=7></rect> <rect class=ql-fill height=1 width=3 x=12 y=10></rect> <rect class=ql-fill height=1 width=3 x=12 y=12></rect> </svg>'},function(_,s){_.exports='<svg viewbox="0 0 18 18"> <polygon class=ql-stroke points="7 11 9 13 11 11 7 11"></polygon> <polygon class=ql-stroke points="7 7 9 5 11 7 7 7"></polygon> </svg>'},function(_,s,d){Object.defineProperty(s,"__esModule",{value:!0}),s.default=s.BubbleTooltip=void 0;var k=function E(A,j,b){A===null&&(A=Function.prototype);var p=Object.getOwnPropertyDescriptor(A,j);if(p===void 0){var g=Object.getPrototypeOf(A);return g===null?void 0:E(g,j,b)}else{if("value"in p)return p.value;var N=p.get;return N===void 0?void 0:N.call(b)}},w=function(){function E(A,j){for(var b=0;b<j.length;b++){var p=j[b];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(A,p.key,p)}}return function(A,j,b){return j&&E(A.prototype,j),b&&E(A,b),A}}(),O=d(3),y=l(O),v=d(8),h=l(v),o=d(43),e=l(o),t=d(15),u=d(41),a=l(u);function l(E){return E&&E.__esModule?E:{default:E}}function r(E,A){if(!(E instanceof A))throw new TypeError("Cannot call a class as a function")}function i(E,A){if(!E)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return A&&(typeof A=="object"||typeof A=="function")?A:E}function f(E,A){if(typeof A!="function"&&A!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof A);E.prototype=Object.create(A&&A.prototype,{constructor:{value:E,enumerable:!1,writable:!0,configurable:!0}}),A&&(Object.setPrototypeOf?Object.setPrototypeOf(E,A):E.__proto__=A)}var n=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],c=function(E){f(A,E);function A(j,b){r(this,A),b.modules.toolbar!=null&&b.modules.toolbar.container==null&&(b.modules.toolbar.container=n);var p=i(this,(A.__proto__||Object.getPrototypeOf(A)).call(this,j,b));return p.quill.container.classList.add("ql-bubble"),p}return w(A,[{key:"extendToolbar",value:function(b){this.tooltip=new S(this.quill,this.options.bounds),this.tooltip.root.appendChild(b.container),this.buildButtons([].slice.call(b.container.querySelectorAll("button")),a.default),this.buildPickers([].slice.call(b.container.querySelectorAll("select")),a.default)}}]),A}(e.default);c.DEFAULTS=(0,y.default)(!0,{},e.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(A){A?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var S=function(E){f(A,E);function A(j,b){r(this,A);var p=i(this,(A.__proto__||Object.getPrototypeOf(A)).call(this,j,b));return p.quill.on(h.default.events.EDITOR_CHANGE,function(g,N,q,I){if(g===h.default.events.SELECTION_CHANGE)if(N!=null&&N.length>0&&I===h.default.sources.USER){p.show(),p.root.style.left="0px",p.root.style.width="",p.root.style.width=p.root.offsetWidth+"px";var F=p.quill.getLines(N.index,N.length);if(F.length===1)p.position(p.quill.getBounds(N));else{var U=F[F.length-1],K=p.quill.getIndex(U),D=Math.min(U.length()-1,N.index+N.length-K),P=p.quill.getBounds(new t.Range(K,D));p.position(P)}}else document.activeElement!==p.textbox&&p.quill.hasFocus()&&p.hide()}),p}return w(A,[{key:"listen",value:function(){var b=this;k(A.prototype.__proto__||Object.getPrototypeOf(A.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",function(){b.root.classList.remove("ql-editing")}),this.quill.on(h.default.events.SCROLL_OPTIMIZE,function(){setTimeout(function(){if(!b.root.classList.contains("ql-hidden")){var p=b.quill.getSelection();p!=null&&b.position(b.quill.getBounds(p))}},1)})}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(b){var p=k(A.prototype.__proto__||Object.getPrototypeOf(A.prototype),"position",this).call(this,b),g=this.root.querySelector(".ql-tooltip-arrow");if(g.style.marginLeft="",p===0)return p;g.style.marginLeft=-1*p-g.offsetWidth/2+"px"}}]),A}(o.BaseTooltip);S.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(""),s.BubbleTooltip=S,s.default=c},function(_,s,d){_.exports=d(63)}]).default})})(Jt);var Vu=Jt.exports,Wu=pe&&pe.__extends||function(){var x=function(R,_){return x=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,d){s.__proto__=d}||function(s,d){for(var k in d)d.hasOwnProperty(k)&&(s[k]=d[k])},x(R,_)};return function(R,_){x(R,_);function s(){this.constructor=R}R.prototype=_===null?Object.create(_):(s.prototype=_.prototype,new s)}}(),Be=pe&&pe.__assign||function(){return Be=Object.assign||function(x){for(var R,_=1,s=arguments.length;_<s;_++){R=arguments[_];for(var d in R)Object.prototype.hasOwnProperty.call(R,d)&&(x[d]=R[d])}return x},Be.apply(this,arguments)},Zu=pe&&pe.__spreadArrays||function(){for(var x=0,R=0,_=arguments.length;R<_;R++)x+=arguments[R].length;for(var s=Array(x),d=0,R=0;R<_;R++)for(var k=arguments[R],w=0,O=k.length;w<O;w++,d++)s[d]=k[w];return s},Ge=pe&&pe.__importDefault||function(x){return x&&x.__esModule?x:{default:x}},ge=Ge(ve),Qu=Ge(rn),Re=Ge(Gu),Rt=Ge(Vu),Yu=function(x){Wu(R,x);function R(_){var s=x.call(this,_)||this;s.dirtyProps=["modules","formats","bounds","theme","children"],s.cleanProps=["id","className","style","placeholder","tabIndex","onChange","onChangeSelection","onFocus","onBlur","onKeyPress","onKeyDown","onKeyUp"],s.state={generation:0},s.selection=null,s.onEditorChange=function(k,w,O,y){var v,h,o,e;k==="text-change"?(h=(v=s).onEditorChangeText)===null||h===void 0||h.call(v,s.editor.root.innerHTML,w,y,s.unprivilegedEditor):k==="selection-change"&&((e=(o=s).onEditorChangeSelection)===null||e===void 0||e.call(o,w,y,s.unprivilegedEditor))};var d=s.isControlled()?_.value:_.defaultValue;return s.value=d??"",s}return R.prototype.validateProps=function(_){var s;if(ge.default.Children.count(_.children)>1)throw new Error("The Quill editing area can only be composed of a single React element.");if(ge.default.Children.count(_.children)){var d=ge.default.Children.only(_.children);if(((s=d)===null||s===void 0?void 0:s.type)==="textarea")throw new Error("Quill does not support editing on a <textarea>. Use a <div> instead.")}if(this.lastDeltaChangeSet&&_.value===this.lastDeltaChangeSet)throw new Error("You are passing the `delta` object from the `onChange` event back as `value`. You most probably want `editor.getContents()` instead. See: https://github.com/zenoamaro/react-quill#using-deltas")},R.prototype.shouldComponentUpdate=function(_,s){var d=this,k;if(this.validateProps(_),!this.editor||this.state.generation!==s.generation)return!0;if("value"in _){var w=this.getEditorContents(),O=(k=_.value,k??"");this.isEqualValue(O,w)||this.setEditorContents(this.editor,O)}return _.readOnly!==this.props.readOnly&&this.setEditorReadOnly(this.editor,_.readOnly),Zu(this.cleanProps,this.dirtyProps).some(function(y){return!Re.default(_[y],d.props[y])})},R.prototype.shouldComponentRegenerate=function(_){var s=this;return this.dirtyProps.some(function(d){return!Re.default(_[d],s.props[d])})},R.prototype.componentDidMount=function(){this.instantiateEditor(),this.setEditorContents(this.editor,this.getEditorContents())},R.prototype.componentWillUnmount=function(){this.destroyEditor()},R.prototype.componentDidUpdate=function(_,s){var d=this;if(this.editor&&this.shouldComponentRegenerate(_)){var k=this.editor.getContents(),w=this.editor.getSelection();this.regenerationSnapshot={delta:k,selection:w},this.setState({generation:this.state.generation+1}),this.destroyEditor()}if(this.state.generation!==s.generation){var O=this.regenerationSnapshot,k=O.delta,y=O.selection;delete this.regenerationSnapshot,this.instantiateEditor();var v=this.editor;v.setContents(k),It(function(){return d.setEditorSelection(v,y)})}},R.prototype.instantiateEditor=function(){this.editor?this.hookEditor(this.editor):this.editor=this.createEditor(this.getEditingArea(),this.getEditorConfig())},R.prototype.destroyEditor=function(){this.editor&&this.unhookEditor(this.editor)},R.prototype.isControlled=function(){return"value"in this.props},R.prototype.getEditorConfig=function(){return{bounds:this.props.bounds,formats:this.props.formats,modules:this.props.modules,placeholder:this.props.placeholder,readOnly:this.props.readOnly,scrollingContainer:this.props.scrollingContainer,tabIndex:this.props.tabIndex,theme:this.props.theme}},R.prototype.getEditor=function(){if(!this.editor)throw new Error("Accessing non-instantiated editor");return this.editor},R.prototype.createEditor=function(_,s){var d=new Rt.default(_,s);return s.tabIndex!=null&&this.setEditorTabIndex(d,s.tabIndex),this.hookEditor(d),d},R.prototype.hookEditor=function(_){this.unprivilegedEditor=this.makeUnprivilegedEditor(_),_.on("editor-change",this.onEditorChange)},R.prototype.unhookEditor=function(_){_.off("editor-change",this.onEditorChange)},R.prototype.getEditorContents=function(){return this.value},R.prototype.getEditorSelection=function(){return this.selection},R.prototype.isDelta=function(_){return _&&_.ops},R.prototype.isEqualValue=function(_,s){return this.isDelta(_)&&this.isDelta(s)?Re.default(_.ops,s.ops):Re.default(_,s)},R.prototype.setEditorContents=function(_,s){var d=this;this.value=s;var k=this.getEditorSelection();typeof s=="string"?_.setContents(_.clipboard.convert(s)):_.setContents(s),It(function(){return d.setEditorSelection(_,k)})},R.prototype.setEditorSelection=function(_,s){if(this.selection=s,s){var d=_.getLength();s.index=Math.max(0,Math.min(s.index,d-1)),s.length=Math.max(0,Math.min(s.length,d-1-s.index)),_.setSelection(s)}},R.prototype.setEditorTabIndex=function(_,s){var d,k;!((k=(d=_)===null||d===void 0?void 0:d.scroll)===null||k===void 0)&&k.domNode&&(_.scroll.domNode.tabIndex=s)},R.prototype.setEditorReadOnly=function(_,s){s?_.disable():_.enable()},R.prototype.makeUnprivilegedEditor=function(_){var s=_;return{getHTML:function(){return s.root.innerHTML},getLength:s.getLength.bind(s),getText:s.getText.bind(s),getContents:s.getContents.bind(s),getSelection:s.getSelection.bind(s),getBounds:s.getBounds.bind(s)}},R.prototype.getEditingArea=function(){if(!this.editingArea)throw new Error("Instantiating on missing editing area");var _=Qu.default.findDOMNode(this.editingArea);if(!_)throw new Error("Cannot find element for editing area");if(_.nodeType===3)throw new Error("Editing area cannot be a text node");return _},R.prototype.renderEditingArea=function(){var _=this,s=this.props,d=s.children,k=s.preserveWhitespace,w=this.state.generation,O={key:w,ref:function(y){_.editingArea=y}};return ge.default.Children.count(d)?ge.default.cloneElement(ge.default.Children.only(d),O):k?ge.default.createElement("pre",Be({},O)):ge.default.createElement("div",Be({},O))},R.prototype.render=function(){var _;return ge.default.createElement("div",{id:this.props.id,style:this.props.style,key:this.state.generation,className:"quill "+(_=this.props.className,_??""),onKeyPress:this.props.onKeyPress,onKeyDown:this.props.onKeyDown,onKeyUp:this.props.onKeyUp},this.renderEditingArea())},R.prototype.onEditorChangeText=function(_,s,d,k){var w,O;if(this.editor){var y=this.isDelta(this.value)?k.getContents():k.getHTML();y!==this.getEditorContents()&&(this.lastDeltaChangeSet=s,this.value=y,(O=(w=this.props).onChange)===null||O===void 0||O.call(w,_,s,d,k))}},R.prototype.onEditorChangeSelection=function(_,s,d){var k,w,O,y,v,h;if(this.editor){var o=this.getEditorSelection(),e=!o&&_,t=o&&!_;Re.default(_,o)||(this.selection=_,(w=(k=this.props).onChangeSelection)===null||w===void 0||w.call(k,_,s,d),e?(y=(O=this.props).onFocus)===null||y===void 0||y.call(O,_,s,d):t&&((h=(v=this.props).onBlur)===null||h===void 0||h.call(v,o,s,d)))}},R.prototype.focus=function(){this.editor&&this.editor.focus()},R.prototype.blur=function(){this.editor&&(this.selection=null,this.editor.blur())},R.displayName="React Quill",R.Quill=Rt.default,R.defaultProps={theme:"snow",modules:{},readOnly:!1},R}(ge.default.Component);function It(x){Promise.resolve().then(x)}var Xu=Yu;const xe=on(Xu),Ju=x=>{const R=an(),{mode:_,qpcode:s,set:d,teachcode:k,tempcode:w,type:O,year:y}=x.element;let v="https://omr-files.s3.ap-south-1.amazonaws.com/",h=localStorage.getItem("dbname");const[o,e]=ve.useState([]),[t,u]=ve.useState(""),[a,l]=ve.useState(null),[r,i]=ve.useState(null),[f,n]=ve.useState(null),[c,S]=ve.useState(null),[E,A]=ve.useState(null),[j,b]=ve.useState(null);ve.useState(""),ve.useEffect(()=>{x.getQuestions(x.element)},[]),ve.useEffect(()=>{var K;e(x.getQn),u((K=x.getQn[0])==null?void 0:K.fdata[0].fqpno)},[x.getQn]);const p=K=>{document.execCommand(K)},g=K=>{K.file.status==="done"?message.success(`${K.file.name} file uploaded successfully`):K.file.status==="error"&&message.error(`${K.file.name} file upload failed.`)},N=(K,D,P)=>{const m=o;P.target.checked&&(m[K].fdata[D].ftype=P.target.value),e([...m])},q=(K,D,P,m)=>{const T=o;T[K].fdata[D][m]=P,e([...T])},I=async(K,D,P,m,T)=>{const M=new FormData;M.append("univcode",x.user.funivcode),M.append("qpcode",s),M.append("year",y),M.append("mode",_),M.append("qnno",m),M.append("field",T),M.append("file",K.file),M.append("noqp",d),M.append("teachcode",k),M.append("userid",x.user.fregno),R({type:"SET_BTN_LOADER"});const $=await at.post("app.php?a=uploadQnFiles&db="+h,M);if(R({type:"UNSET_BTN_LOADER"}),$.data.error_code===0){let B=o;B[D].fdata[P][T]=$.data.data.msg,e([...B])}else un("error",$.data.data.msg);x.uploadQnFiles(JSON.stringify($.data))},F=async(K,D,P)=>{let m=o[K].fdata[D];const T=new FormData;if(T.append("data",JSON.stringify(m)),T.append("qpcode",s),T.append("year",y),T.append("mode",_),T.append("teachcode",k),T.append("set",d),T.append("usertype",x.user.fusertype),T.append("userid",x.user.fregno),(await at.post("app.php?a=saveQuestions&db="+h,T)).data.error_code===0){if(o[K].fdata.length===D+1)if(o[K+1]==null)u(o[0].fdata[0].fqpno);else{let B=o[K+1].fdata[0].fqpno;u(B)}else u(P[D+1].fqpno);let $=o;m.fquestion!==""&&m.fquestion!==null&&($[K].fdata[D].fqpcomp="Completed",e($))}},U=()=>V.jsxs(Ye,{children:[V.jsx(ce,{size:"small",onClick:()=>{p("bold")},children:"B"}),V.jsx(ce,{size:"small",onClick:()=>p("italic"),children:"I"}),V.jsx(ce,{size:"small",onClick:()=>p("underline"),children:"U"})]});return V.jsxs(V.Fragment,{children:[o.map((K,D)=>V.jsxs("div",{children:[V.jsx("h6",{children:K.fpartcode+" - "+K.fpartdesc}),K.fdata.map((P,m)=>V.jsx(ce,{size:"small",style:{margin:"5px",marginBottom:"10px",background:P.fqpcomp==="Completed"&&"green",color:P.fqpcomp==="Completed"&&"white"},onClick:()=>u(P.fqpno),children:P.fqpno},m))]},D)),V.jsx("div",{children:o.map((K,D)=>V.jsx("div",{children:K.fdata.map((P,m)=>V.jsx("div",{children:t==P.fqpno&&V.jsxs(Dt,{title:V.jsx("div",{children:O==="THEORY"&&V.jsxs(Ve.Group,{style:{marginBottom:"10px"},value:P.ftype,onChange:T=>N(D,m,T),children:[V.jsx(Ve,{value:"Descriptive",children:"Descriptive"}),V.jsx(Ve,{value:"MCQ",children:"MCQ"})]})}),extra:V.jsx(U,{}),children:[V.jsxs(qe,{gutter:16,children:[V.jsxs(de,{xs:24,sm:24,md:12,lg:12,xl:12,xxl:12,children:[V.jsx("h6",{children:P.fqpno}),V.jsx("div",{className:"editor-container",children:V.jsx(xe,{className:"custom-quill-editor",value:P.fquestion,onChange:T=>q(D,m,T,"fquestion")})}),V.jsxs("div",{style:{marginTop:"10px"},children:[V.jsx(Ee,{customRequest:T=>{x.user.fusertype==="T"?(I(T,D,m,P.fqpno,"fqnfile"),I(T,D,m,P.fqpno,"fmodqnfile")):x.user.fusertype==="M"&&I(T,D,m,P.fqpno,"fmodqnfile")},onChange:g,showUploadList:!1,beforeUpload:T=>{l(T)},maxCount:1,children:V.jsxs(ce,{loading:x.btnLoading,size:"small",children:[V.jsx(Ae,{})," Upload Image"]})}),V.jsx("a",{children:a&&a.name}),P.fqnfile!==""&&V.jsx("a",{href:v+P.fqnfile,target:"_blank",style:{float:"right"},children:"View"})]})]}),P.ftype!=="MCQ"&&O!=="MCQ"?V.jsxs(de,{xs:24,sm:24,md:12,lg:12,xl:12,xxl:12,style:{marginBottom:"20px"},children:[V.jsx("h6",{children:"Key Answer"}),V.jsx("div",{className:"editor-container",children:V.jsx(xe,{className:"custom-quill-editor",value:P.fkeyans,onChange:T=>q(D,m,T,"fkeyans")})}),V.jsxs("div",{style:{marginTop:"10px"},children:[V.jsx(Ee,{customRequest:T=>{x.user.fusertype==="T"?(I(T,D,m,P.fqpno,"fkeyansfile"),I(T,D,m,P.fqpno,"fmodkeyansfile")):x.user.fusertype==="M"&&I(T,D,m,P.fqpno,"fmodkeyansfile")},onChange:g,showUploadList:!1,beforeUpload:T=>{i(T)},maxCount:1,children:V.jsxs(ce,{size:"small",children:[V.jsx(Ae,{})," Upload Image"]})}),V.jsx("a",{children:r&&r.name}),P.fkeyansfile!==""&&V.jsx("a",{href:v+P.fkeyansfile,target:"_blank",style:{float:"right"},children:"View"})]})]}):V.jsxs(de,{xs:24,sm:24,md:12,lg:12,xl:12,xxl:12,children:[V.jsxs(qe,{gutter:16,children:[V.jsxs(de,{xs:24,sm:24,md:12,lg:12,xl:12,xxl:12,style:{marginBottom:"20px"},children:[V.jsx("h6",{children:" A) "}),V.jsx("div",{className:"editor-container",children:V.jsx(xe,{className:"custom-quill-editor",style:{height:"80px",overflowY:"auto"},value:P.fopta,onChange:T=>q(D,m,T,"fopta")})}),V.jsxs("div",{style:{marginTop:"10px"},children:[V.jsx(Ee,{customRequest:T=>{x.user.fusertype==="T"?(I(T,D,m,P.fqpno,"foptafile"),I(T,D,m,P.fqpno,"fmodoptafile")):x.user.fusertype==="M"&&I(T,D,m,P.fqpno,"fmodoptafile")},onChange:g,showUploadList:!1,beforeUpload:T=>{n(T)},maxCount:1,children:V.jsxs(ce,{size:"small",children:[V.jsx(Ae,{})," Upload Image"]})}),V.jsx("a",{children:f&&f.name}),P.foptafile!==""&&V.jsx("a",{href:v+P.foptafile,target:"_blank",style:{float:"right"},children:"View"})]})]}),V.jsxs(de,{xs:24,sm:24,md:12,lg:12,xl:12,xxl:12,style:{marginBottom:"20px"},children:[V.jsx("h6",{children:" B) "}),V.jsx("div",{className:"editor-container",children:V.jsx(xe,{className:"custom-quill-editor",style:{height:"80px",overflowY:"auto"},value:P.foptb,onChange:T=>q(D,m,T,"foptb")})}),V.jsxs("div",{style:{marginTop:"10px"},children:[V.jsx(Ee,{customRequest:T=>{x.user.fusertype==="T"?(I(T,D,m,P.fqpno,"foptbfile"),I(T,D,m,P.fqpno,"fmodoptbfile")):x.user.fusertype==="M"&&I(T,D,m,P.fqpno,"fmodoptbfile")},onChange:g,showUploadList:!1,beforeUpload:T=>{S(T)},maxCount:1,children:V.jsxs(ce,{size:"small",children:[V.jsx(Ae,{})," Upload Image"]})}),V.jsx("a",{children:c&&c.name}),P.foptbfile!==""&&V.jsx("a",{href:v+P.foptbfile,target:"_blank",style:{float:"right"},children:"View"})]})]})]}),V.jsxs(qe,{gutter:16,children:[V.jsxs(de,{xs:24,sm:24,md:12,lg:12,xl:12,xxl:12,style:{marginBottom:"20px"},children:[V.jsx("h6",{children:" C) "}),V.jsx("div",{className:"editor-container",children:V.jsx(xe,{className:"custom-quill-editor",style:{height:"80px",overflowY:"auto"},value:P.foptc,onChange:T=>q(D,m,T,"foptc")})}),V.jsxs("div",{style:{marginTop:"10px"},children:[V.jsx(Ee,{customRequest:T=>{x.user.fusertype==="T"?(I(T,D,m,P.fqpno,"foptcfile"),I(T,D,m,P.fqpno,"fmodoptcfile")):x.user.fusertype==="M"&&I(T,D,m,P.fqpno,"fmodoptcfile")},onChange:g,showUploadList:!1,beforeUpload:T=>{A(T)},maxCount:1,children:V.jsxs(ce,{size:"small",children:[V.jsx(Ae,{})," Upload Image"]})}),V.jsx("a",{children:E&&E.name}),P.foptcfile!==""&&V.jsx("a",{href:v+P.foptcfile,target:"_blank",style:{float:"right"},children:"View"})]})]}),V.jsxs(de,{xs:24,sm:24,md:12,lg:12,xl:12,xxl:12,style:{marginBottom:"20px"},children:[V.jsx("h6",{children:" D) "}),V.jsx("div",{className:"editor-container",children:V.jsx(xe,{className:"custom-quill-editor",style:{height:"80px",overflowY:"auto"},value:P.foptd,onChange:T=>q(D,m,T,"foptd")})}),V.jsxs("div",{style:{marginTop:"10px"},children:[V.jsx(Ee,{customRequest:T=>{x.user.fusertype==="T"?(I(T,D,m,P.fqpno,"foptdfile"),I(T,D,m,P.fqpno,"fmodoptdfile")):x.user.fusertype==="M"&&I(T,D,m,P.fqpno,"fmodoptdfile")},onChange:g,showUploadList:!1,beforeUpload:T=>{b(T)},maxCount:1,children:V.jsxs(ce,{size:"small",children:[V.jsx(Ae,{})," Upload Image"]})}),V.jsx("a",{children:j&&j.name}),P.foptdfile!==""&&V.jsx("a",{href:v+P.foptdfile,target:"_blank",style:{float:"right"},children:"View"})]})]})]})]})]}),V.jsxs(qe,{gutter:16,children:[V.jsxs(de,{xs:24,sm:5,md:4,lg:3,xl:3,xxl:3,children:[V.jsx("label",{children:"Max. Marks"}),V.jsx(je,{style:{marginBottom:"10px"},value:P.fmaxmarks,disabled:!0})]}),(O==="MCQ"||P.ftype==="MCQ")&&V.jsxs(de,{xs:24,sm:5,md:4,lg:3,xl:3,xxl:3,children:[V.jsx("label",{children:"Key Answer"}),V.jsx(ln,{style:{width:"100%"},value:P.fkeyans,options:dn,onChange:T=>q(D,m,T,"fkeyans")})]}),V.jsxs(de,{xs:24,sm:5,md:4,lg:3,xl:3,xxl:3,children:[V.jsx("label",{children:"CO"}),V.jsx(je,{style:{marginBottom:"10px"},value:P.fco,onChange:T=>q(D,m,T.target.value,"fco")})]}),V.jsxs(de,{xs:24,sm:5,md:4,lg:3,xl:3,xxl:3,children:[V.jsx("label",{children:"PO"}),V.jsx(je,{style:{marginBottom:"10px"},value:P.fpo,onChange:T=>q(D,m,T.target.value,"fpo")})]}),V.jsxs(de,{xs:24,sm:5,md:4,lg:3,xl:3,xxl:3,children:[V.jsx("label",{children:"Bloom's"}),V.jsx(je,{style:{marginBottom:"10px"},value:P.fblooms,onChange:T=>q(D,m,T.target.value,"fblooms")})]}),x.user.fusertype==="M"&&V.jsxs(de,{xs:24,sm:12,md:8,lg:8,xl:8,xxl:8,children:[V.jsx("label",{children:"Remarks"}),V.jsx(je,{style:{marginBottom:"10px"},value:P.fmodremarks,onChange:T=>q(D,m,T.target.value,"fmodremarks")})]})]}),V.jsx(qe,{children:V.jsx(de,{xs:24,sm:24,md:24,lg:24,xl:24,xxl:24,style:{marginBottom:"10px"},children:V.jsxs(Ye,{style:{float:"right"},children:[V.jsx(ce,{size:"medium",icon:V.jsx(Ct,{}),onClick:()=>{m!==0&&u(K.fdata[m-1].fqpno)},children:"Previous"}),V.jsxs(ce,{size:"medium",type:"primary",onClick:()=>F(D,m,K.fdata),children:["Next ",V.jsx(mn,{})]})]})})})]},m)},m))},D))})]})},es=x=>(console.log(x.qnfiles),{user:x.loginfo.userData,getQn:x.getQuestions,btnLoading:x.loader.btnLoading,qnfiles:x.qnfiles}),ts=Mt(es,{getQuestions:cn,uploadQnFiles:hn})(Ju),ns=x=>{const R=sn(),_=()=>{window.open(fn+"/app.php?a=getOmrQpReport&db="+localStorage.getItem("dbname")+"&univcode="+x.user.funivcode+"&qpcode="+R.qpcode+"&year="+R.year+"&mode="+R.mode+"&teachcode="+R.teachcode+"&noqp="+R.set+"&type="+R.type+"&teachtype="+x.user.fusertype)};return V.jsx(Dt,{style:{margin:"6rem 10px 10px"},title:V.jsx("h6",{children:"Prepare Question Paper"}),extra:V.jsxs(Ye,{children:[V.jsx(lt,{to:x.user.fusertype==="M"?"/qpsettings/mod-qp-det-online":"/qpsettings/prepare-qp",children:V.jsxs(ce,{style:{background:"green",color:"white"},children:[V.jsx(Ct,{}),"Back"]})}),V.jsxs(ce,{type:"primary",onClick:()=>_(),children:[V.jsx(vn,{})," Preview"]}),V.jsx(lt,{to:"/",children:V.jsxs(ce,{type:"primary",danger:!0,children:[V.jsx(pn,{})," Exit"]})})]}),children:V.jsx(ts,{element:R})})},rs=x=>({user:x.loginfo.userData}),ys=Mt(rs,{})(ns);export{ys as default};