Files
aso/public/client-portal/assets/RHFTextField.8217bd7f.js
Linksehat Staging Server d125d1bb38 [Production] Build
2024-01-14 12:06:54 +07:00

45 lines
331 KiB
JavaScript

import{i as tt,a as kr}from"./isObject.095d1ac4.js";import{z as Me,R as Se,r as Kn,A as Gn,s as at,j as ge,f as Ie,q as Kr,B as mo}from"./index.4524613b.js";import"./formatNumber.e535a2a3.js";import{T as bo}from"./TextField.489cf1ea.js";var fr;try{fr=Map}catch{}var cr;try{cr=Set}catch{}function Wn(e,n,t){if(!e||typeof e!="object"||typeof e=="function")return e;if(e.nodeType&&"cloneNode"in e)return e.cloneNode(!0);if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp)return new RegExp(e);if(Array.isArray(e))return e.map(dr);if(fr&&e instanceof fr)return new Map(Array.from(e.entries()));if(cr&&e instanceof cr)return new Set(Array.from(e.values()));if(e instanceof Object){n.push(e);var r=Object.create(e);t.push(r);for(var i in e){var f=n.findIndex(function(h){return h===e[i]});r[i]=f>-1?t[f]:Wn(e[i],n,t)}return r}return e}function dr(e){return Wn(e,[],[])}const _o=Object.prototype.toString,Oo=Error.prototype.toString,wo=RegExp.prototype.toString,Eo=typeof Symbol<"u"?Symbol.prototype.toString:()=>"",xo=/^Symbol\((.*)\)(.*)$/;function Ao(e){return e!=+e?"NaN":e===0&&1/e<0?"-0":""+e}function Gr(e,n=!1){if(e==null||e===!0||e===!1)return""+e;const t=typeof e;if(t==="number")return Ao(e);if(t==="string")return n?`"${e}"`:e;if(t==="function")return"[Function "+(e.name||"anonymous")+"]";if(t==="symbol")return Eo.call(e).replace(xo,"Symbol($1)");const r=_o.call(e).slice(8,-1);return r==="Date"?isNaN(e.getTime())?""+e:e.toISOString(e):r==="Error"||e instanceof Error?"["+Oo.call(e)+"]":r==="RegExp"?wo.call(e):null}function Et(e,n){let t=Gr(e,n);return t!==null?t:JSON.stringify(e,function(r,i){let f=Gr(this[r],n);return f!==null?f:i},2)}let nt={default:"${path} is invalid",required:"${path} is a required field",oneOf:"${path} must be one of the following values: ${values}",notOneOf:"${path} must not be one of the following values: ${values}",notType:({path:e,type:n,value:t,originalValue:r})=>{let i=r!=null&&r!==t,f=`${e} must be a \`${n}\` type, but the final value was: \`${Et(t,!0)}\``+(i?` (cast from the value \`${Et(r,!0)}\`).`:".");return t===null&&(f+='\n If "null" is intended as an empty value be sure to mark the schema as `.nullable()`'),f},defined:"${path} must be defined"},He={length:"${path} must be exactly ${length} characters",min:"${path} must be at least ${min} characters",max:"${path} must be at most ${max} characters",matches:'${path} must match the following: "${regex}"',email:"${path} must be a valid email",url:"${path} must be a valid URL",uuid:"${path} must be a valid UUID",trim:"${path} must be a trimmed string",lowercase:"${path} must be a lowercase string",uppercase:"${path} must be a upper case string"},To={min:"${path} must be greater than or equal to ${min}",max:"${path} must be less than or equal to ${max}",lessThan:"${path} must be less than ${less}",moreThan:"${path} must be greater than ${more}",positive:"${path} must be a positive number",negative:"${path} must be a negative number",integer:"${path} must be an integer"},hr={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},ko={isValue:"${path} field must be ${value}"},pr={noUnknown:"${path} field has unspecified keys: ${unknown}"},So={min:"${path} field must have at least ${min} items",max:"${path} field must have less than or equal to ${max} items",length:"${path} must have ${length} items"};Object.assign(Object.create(null),{mixed:nt,string:He,number:To,date:hr,object:pr,array:So,boolean:ko});var qo=Object.prototype,No=qo.hasOwnProperty;function Po(e,n){return e!=null&&No.call(e,n)}var Lo=Po,Ro=typeof Me=="object"&&Me&&Me.Object===Object&&Me,Zn=Ro,Fo=Zn,Do=typeof self=="object"&&self&&self.Object===Object&&self,jo=Fo||Do||Function("return this")(),Qe=jo,Io=Qe,$o=Io.Symbol,Gt=$o,Wr=Gt,Yn=Object.prototype,Co=Yn.hasOwnProperty,Mo=Yn.toString,_t=Wr?Wr.toStringTag:void 0;function Bo(e){var n=Co.call(e,_t),t=e[_t];try{e[_t]=void 0;var r=!0}catch{}var i=Mo.call(e);return r&&(n?e[_t]=t:delete e[_t]),i}var Uo=Bo,Vo=Object.prototype,Ho=Vo.toString;function zo(e){return Ho.call(e)}var Ko=zo,Zr=Gt,Go=Uo,Wo=Ko,Zo="[object Null]",Yo="[object Undefined]",Yr=Zr?Zr.toStringTag:void 0;function Xo(e){return e==null?e===void 0?Yo:Zo:Yr&&Yr in Object(e)?Go(e):Wo(e)}var xt=Xo;function Qo(e){return e!=null&&typeof e=="object"}var At=Qo,Jo=xt,ea=At,ta="[object Symbol]";function ra(e){return typeof e=="symbol"||ea(e)&&Jo(e)==ta}var Sr=ra,na=tt,ia=Sr,oa=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,aa=/^\w*$/;function la(e,n){if(na(e))return!1;var t=typeof e;return t=="number"||t=="symbol"||t=="boolean"||e==null||ia(e)?!0:aa.test(e)||!oa.test(e)||n!=null&&e in Object(n)}var qr=la,sa=xt,ua=kr,fa="[object AsyncFunction]",ca="[object Function]",da="[object GeneratorFunction]",ha="[object Proxy]";function pa(e){if(!ua(e))return!1;var n=sa(e);return n==ca||n==da||n==fa||n==ha}var Xn=pa,va=Qe,ya=va["__core-js_shared__"],ga=ya,rr=ga,Xr=function(){var e=/[^.]+$/.exec(rr&&rr.keys&&rr.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function ma(e){return!!Xr&&Xr in e}var ba=ma,_a=Function.prototype,Oa=_a.toString;function wa(e){if(e!=null){try{return Oa.call(e)}catch{}try{return e+""}catch{}}return""}var Qn=wa,Ea=Xn,xa=ba,Aa=kr,Ta=Qn,ka=/[\\^$.*+?()[\]{}|]/g,Sa=/^\[object .+?Constructor\]$/,qa=Function.prototype,Na=Object.prototype,Pa=qa.toString,La=Na.hasOwnProperty,Ra=RegExp("^"+Pa.call(La).replace(ka,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Fa(e){if(!Aa(e)||xa(e))return!1;var n=Ea(e)?Ra:Sa;return n.test(Ta(e))}var Da=Fa;function ja(e,n){return e==null?void 0:e[n]}var Ia=ja,$a=Da,Ca=Ia;function Ma(e,n){var t=Ca(e,n);return $a(t)?t:void 0}var lt=Ma,Ba=lt,Ua=Ba(Object,"create"),Wt=Ua,Qr=Wt;function Va(){this.__data__=Qr?Qr(null):{},this.size=0}var Ha=Va;function za(e){var n=this.has(e)&&delete this.__data__[e];return this.size-=n?1:0,n}var Ka=za,Ga=Wt,Wa="__lodash_hash_undefined__",Za=Object.prototype,Ya=Za.hasOwnProperty;function Xa(e){var n=this.__data__;if(Ga){var t=n[e];return t===Wa?void 0:t}return Ya.call(n,e)?n[e]:void 0}var Qa=Xa,Ja=Wt,el=Object.prototype,tl=el.hasOwnProperty;function rl(e){var n=this.__data__;return Ja?n[e]!==void 0:tl.call(n,e)}var nl=rl,il=Wt,ol="__lodash_hash_undefined__";function al(e,n){var t=this.__data__;return this.size+=this.has(e)?0:1,t[e]=il&&n===void 0?ol:n,this}var ll=al,sl=Ha,ul=Ka,fl=Qa,cl=nl,dl=ll;function vt(e){var n=-1,t=e==null?0:e.length;for(this.clear();++n<t;){var r=e[n];this.set(r[0],r[1])}}vt.prototype.clear=sl;vt.prototype.delete=ul;vt.prototype.get=fl;vt.prototype.has=cl;vt.prototype.set=dl;var hl=vt;function pl(){this.__data__=[],this.size=0}var vl=pl;function yl(e,n){return e===n||e!==e&&n!==n}var Jn=yl,gl=Jn;function ml(e,n){for(var t=e.length;t--;)if(gl(e[t][0],n))return t;return-1}var Zt=ml,bl=Zt,_l=Array.prototype,Ol=_l.splice;function wl(e){var n=this.__data__,t=bl(n,e);if(t<0)return!1;var r=n.length-1;return t==r?n.pop():Ol.call(n,t,1),--this.size,!0}var El=wl,xl=Zt;function Al(e){var n=this.__data__,t=xl(n,e);return t<0?void 0:n[t][1]}var Tl=Al,kl=Zt;function Sl(e){return kl(this.__data__,e)>-1}var ql=Sl,Nl=Zt;function Pl(e,n){var t=this.__data__,r=Nl(t,e);return r<0?(++this.size,t.push([e,n])):t[r][1]=n,this}var Ll=Pl,Rl=vl,Fl=El,Dl=Tl,jl=ql,Il=Ll;function yt(e){var n=-1,t=e==null?0:e.length;for(this.clear();++n<t;){var r=e[n];this.set(r[0],r[1])}}yt.prototype.clear=Rl;yt.prototype.delete=Fl;yt.prototype.get=Dl;yt.prototype.has=jl;yt.prototype.set=Il;var Yt=yt,$l=lt,Cl=Qe,Ml=$l(Cl,"Map"),Nr=Ml,Jr=hl,Bl=Yt,Ul=Nr;function Vl(){this.size=0,this.__data__={hash:new Jr,map:new(Ul||Bl),string:new Jr}}var Hl=Vl;function zl(e){var n=typeof e;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?e!=="__proto__":e===null}var Kl=zl,Gl=Kl;function Wl(e,n){var t=e.__data__;return Gl(n)?t[typeof n=="string"?"string":"hash"]:t.map}var Xt=Wl,Zl=Xt;function Yl(e){var n=Zl(this,e).delete(e);return this.size-=n?1:0,n}var Xl=Yl,Ql=Xt;function Jl(e){return Ql(this,e).get(e)}var es=Jl,ts=Xt;function rs(e){return ts(this,e).has(e)}var ns=rs,is=Xt;function os(e,n){var t=is(this,e),r=t.size;return t.set(e,n),this.size+=t.size==r?0:1,this}var as=os,ls=Hl,ss=Xl,us=es,fs=ns,cs=as;function gt(e){var n=-1,t=e==null?0:e.length;for(this.clear();++n<t;){var r=e[n];this.set(r[0],r[1])}}gt.prototype.clear=ls;gt.prototype.delete=ss;gt.prototype.get=us;gt.prototype.has=fs;gt.prototype.set=cs;var Pr=gt,ei=Pr,ds="Expected a function";function Lr(e,n){if(typeof e!="function"||n!=null&&typeof n!="function")throw new TypeError(ds);var t=function(){var r=arguments,i=n?n.apply(this,r):r[0],f=t.cache;if(f.has(i))return f.get(i);var h=e.apply(this,r);return t.cache=f.set(i,h)||f,h};return t.cache=new(Lr.Cache||ei),t}Lr.Cache=ei;var hs=Lr,ps=hs,vs=500;function ys(e){var n=ps(e,function(r){return t.size===vs&&t.clear(),r}),t=n.cache;return n}var gs=ys,ms=gs,bs=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,_s=/\\(\\)?/g,Os=ms(function(e){var n=[];return e.charCodeAt(0)===46&&n.push(""),e.replace(bs,function(t,r,i,f){n.push(i?f.replace(_s,"$1"):r||t)}),n}),ws=Os;function Es(e,n){for(var t=-1,r=e==null?0:e.length,i=Array(r);++t<r;)i[t]=n(e[t],t,e);return i}var xs=Es,en=Gt,As=xs,Ts=tt,ks=Sr,Ss=1/0,tn=en?en.prototype:void 0,rn=tn?tn.toString:void 0;function ti(e){if(typeof e=="string")return e;if(Ts(e))return As(e,ti)+"";if(ks(e))return rn?rn.call(e):"";var n=e+"";return n=="0"&&1/e==-Ss?"-0":n}var qs=ti,Ns=qs;function Ps(e){return e==null?"":Ns(e)}var Tt=Ps,Ls=tt,Rs=qr,Fs=ws,Ds=Tt;function js(e,n){return Ls(e)?e:Rs(e,n)?[e]:Fs(Ds(e))}var ri=js,Is=xt,$s=At,Cs="[object Arguments]";function Ms(e){return $s(e)&&Is(e)==Cs}var Bs=Ms,nn=Bs,Us=At,ni=Object.prototype,Vs=ni.hasOwnProperty,Hs=ni.propertyIsEnumerable,zs=nn(function(){return arguments}())?nn:function(e){return Us(e)&&Vs.call(e,"callee")&&!Hs.call(e,"callee")},ii=zs,Ks=9007199254740991,Gs=/^(?:0|[1-9]\d*)$/;function Ws(e,n){var t=typeof e;return n=n==null?Ks:n,!!n&&(t=="number"||t!="symbol"&&Gs.test(e))&&e>-1&&e%1==0&&e<n}var oi=Ws,Zs=9007199254740991;function Ys(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Zs}var Rr=Ys,Xs=Sr,Qs=1/0;function Js(e){if(typeof e=="string"||Xs(e))return e;var n=e+"";return n=="0"&&1/e==-Qs?"-0":n}var Qt=Js,eu=ri,tu=ii,ru=tt,nu=oi,iu=Rr,ou=Qt;function au(e,n,t){n=eu(n,e);for(var r=-1,i=n.length,f=!1;++r<i;){var h=ou(n[r]);if(!(f=e!=null&&t(e,h)))break;e=e[h]}return f||++r!=i?f:(i=e==null?0:e.length,!!i&&iu(i)&&nu(h,i)&&(ru(e)||tu(e)))}var ai=au,lu=Lo,su=ai;function uu(e,n){return e!=null&&su(e,n,lu)}var jt=uu;const li=e=>e&&e.__isYupSchema__;class fu{constructor(n,t){if(this.fn=void 0,this.refs=n,this.refs=n,typeof t=="function"){this.fn=t;return}if(!jt(t,"is"))throw new TypeError("`is:` is required for `when()` conditions");if(!t.then&&!t.otherwise)throw new TypeError("either `then:` or `otherwise:` is required for `when()` conditions");let{is:r,then:i,otherwise:f}=t,h=typeof r=="function"?r:(...O)=>O.every(m=>m===r);this.fn=function(...O){let m=O.pop(),_=O.pop(),p=h(...O)?i:f;if(!!p)return typeof p=="function"?p(_):_.concat(p.resolve(m))}}resolve(n,t){let r=this.refs.map(f=>f.getValue(t==null?void 0:t.value,t==null?void 0:t.parent,t==null?void 0:t.context)),i=this.fn.apply(n,r.concat(n,t));if(i===void 0||i===n)return n;if(!li(i))throw new TypeError("conditions must return a schema object");return i.resolve(t)}}function si(e){return e==null?[]:[].concat(e)}function vr(){return vr=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},vr.apply(this,arguments)}let cu=/\$\{\s*(\w+)\s*\}/g;class Be extends Error{static formatError(n,t){const r=t.label||t.path||"this";return r!==t.path&&(t=vr({},t,{path:r})),typeof n=="string"?n.replace(cu,(i,f)=>Et(t[f])):typeof n=="function"?n(t):n}static isError(n){return n&&n.name==="ValidationError"}constructor(n,t,r,i){super(),this.value=void 0,this.path=void 0,this.type=void 0,this.errors=void 0,this.params=void 0,this.inner=void 0,this.name="ValidationError",this.value=t,this.path=r,this.type=i,this.errors=[],this.inner=[],si(n).forEach(f=>{Be.isError(f)?(this.errors.push(...f.errors),this.inner=this.inner.concat(f.inner.length?f.inner:f)):this.errors.push(f)}),this.message=this.errors.length>1?`${this.errors.length} errors occurred`:this.errors[0],Error.captureStackTrace&&Error.captureStackTrace(this,Be)}}const du=e=>{let n=!1;return(...t)=>{n||(n=!0,e(...t))}};function yr(e,n){let{endEarly:t,tests:r,args:i,value:f,errors:h,sort:O,path:m}=e,_=du(n),p=r.length;const l=[];if(h=h||[],!p)return h.length?_(new Be(h,f,m)):_(null,f);for(let o=0;o<r.length;o++){const a=r[o];a(i,function(d){if(d){if(!Be.isError(d))return _(d,f);if(t)return d.value=f,_(d,f);l.push(d)}if(--p<=0){if(l.length&&(O&&l.sort(O),h.length&&l.push(...h),h=l),h.length){_(new Be(h,f,m),f);return}_(null,f)}})}}var hu=lt,pu=function(){try{var e=hu(Object,"defineProperty");return e({},"",{}),e}catch{}}(),vu=pu,on=vu;function yu(e,n,t){n=="__proto__"&&on?on(e,n,{configurable:!0,enumerable:!0,value:t,writable:!0}):e[n]=t}var ui=yu;function gu(e){return function(n,t,r){for(var i=-1,f=Object(n),h=r(n),O=h.length;O--;){var m=h[e?O:++i];if(t(f[m],m,f)===!1)break}return n}}var mu=gu,bu=mu,_u=bu(),Ou=_u;function wu(e,n){for(var t=-1,r=Array(e);++t<e;)r[t]=n(t);return r}var Eu=wu,It={exports:{}};function xu(){return!1}var Au=xu;(function(e,n){var t=Qe,r=Au,i=n&&!n.nodeType&&n,f=i&&!0&&e&&!e.nodeType&&e,h=f&&f.exports===i,O=h?t.Buffer:void 0,m=O?O.isBuffer:void 0,_=m||r;e.exports=_})(It,It.exports);var Tu=xt,ku=Rr,Su=At,qu="[object Arguments]",Nu="[object Array]",Pu="[object Boolean]",Lu="[object Date]",Ru="[object Error]",Fu="[object Function]",Du="[object Map]",ju="[object Number]",Iu="[object Object]",$u="[object RegExp]",Cu="[object Set]",Mu="[object String]",Bu="[object WeakMap]",Uu="[object ArrayBuffer]",Vu="[object DataView]",Hu="[object Float32Array]",zu="[object Float64Array]",Ku="[object Int8Array]",Gu="[object Int16Array]",Wu="[object Int32Array]",Zu="[object Uint8Array]",Yu="[object Uint8ClampedArray]",Xu="[object Uint16Array]",Qu="[object Uint32Array]",xe={};xe[Hu]=xe[zu]=xe[Ku]=xe[Gu]=xe[Wu]=xe[Zu]=xe[Yu]=xe[Xu]=xe[Qu]=!0;xe[qu]=xe[Nu]=xe[Uu]=xe[Pu]=xe[Vu]=xe[Lu]=xe[Ru]=xe[Fu]=xe[Du]=xe[ju]=xe[Iu]=xe[$u]=xe[Cu]=xe[Mu]=xe[Bu]=!1;function Ju(e){return Su(e)&&ku(e.length)&&!!xe[Tu(e)]}var ef=Ju;function tf(e){return function(n){return e(n)}}var rf=tf,gr={exports:{}};(function(e,n){var t=Zn,r=n&&!n.nodeType&&n,i=r&&!0&&e&&!e.nodeType&&e,f=i&&i.exports===r,h=f&&t.process,O=function(){try{var m=i&&i.require&&i.require("util").types;return m||h&&h.binding&&h.binding("util")}catch{}}();e.exports=O})(gr,gr.exports);var nf=ef,of=rf,an=gr.exports,ln=an&&an.isTypedArray,af=ln?of(ln):nf,fi=af,lf=Eu,sf=ii,uf=tt,ff=It.exports,cf=oi,df=fi,hf=Object.prototype,pf=hf.hasOwnProperty;function vf(e,n){var t=uf(e),r=!t&&sf(e),i=!t&&!r&&ff(e),f=!t&&!r&&!i&&df(e),h=t||r||i||f,O=h?lf(e.length,String):[],m=O.length;for(var _ in e)(n||pf.call(e,_))&&!(h&&(_=="length"||i&&(_=="offset"||_=="parent")||f&&(_=="buffer"||_=="byteLength"||_=="byteOffset")||cf(_,m)))&&O.push(_);return O}var yf=vf,gf=Object.prototype;function mf(e){var n=e&&e.constructor,t=typeof n=="function"&&n.prototype||gf;return e===t}var bf=mf;function _f(e,n){return function(t){return e(n(t))}}var Of=_f,wf=Of,Ef=wf(Object.keys,Object),xf=Ef,Af=bf,Tf=xf,kf=Object.prototype,Sf=kf.hasOwnProperty;function qf(e){if(!Af(e))return Tf(e);var n=[];for(var t in Object(e))Sf.call(e,t)&&t!="constructor"&&n.push(t);return n}var Nf=qf,Pf=Xn,Lf=Rr;function Rf(e){return e!=null&&Lf(e.length)&&!Pf(e)}var Ff=Rf,Df=yf,jf=Nf,If=Ff;function $f(e){return If(e)?Df(e):jf(e)}var Fr=$f,Cf=Ou,Mf=Fr;function Bf(e,n){return e&&Cf(e,n,Mf)}var ci=Bf,Uf=Yt;function Vf(){this.__data__=new Uf,this.size=0}var Hf=Vf;function zf(e){var n=this.__data__,t=n.delete(e);return this.size=n.size,t}var Kf=zf;function Gf(e){return this.__data__.get(e)}var Wf=Gf;function Zf(e){return this.__data__.has(e)}var Yf=Zf,Xf=Yt,Qf=Nr,Jf=Pr,ec=200;function tc(e,n){var t=this.__data__;if(t instanceof Xf){var r=t.__data__;if(!Qf||r.length<ec-1)return r.push([e,n]),this.size=++t.size,this;t=this.__data__=new Jf(r)}return t.set(e,n),this.size=t.size,this}var rc=tc,nc=Yt,ic=Hf,oc=Kf,ac=Wf,lc=Yf,sc=rc;function mt(e){var n=this.__data__=new nc(e);this.size=n.size}mt.prototype.clear=ic;mt.prototype.delete=oc;mt.prototype.get=ac;mt.prototype.has=lc;mt.prototype.set=sc;var di=mt,uc="__lodash_hash_undefined__";function fc(e){return this.__data__.set(e,uc),this}var cc=fc;function dc(e){return this.__data__.has(e)}var hc=dc,pc=Pr,vc=cc,yc=hc;function $t(e){var n=-1,t=e==null?0:e.length;for(this.__data__=new pc;++n<t;)this.add(e[n])}$t.prototype.add=$t.prototype.push=vc;$t.prototype.has=yc;var gc=$t;function mc(e,n){for(var t=-1,r=e==null?0:e.length;++t<r;)if(n(e[t],t,e))return!0;return!1}var bc=mc;function _c(e,n){return e.has(n)}var Oc=_c,wc=gc,Ec=bc,xc=Oc,Ac=1,Tc=2;function kc(e,n,t,r,i,f){var h=t&Ac,O=e.length,m=n.length;if(O!=m&&!(h&&m>O))return!1;var _=f.get(e),p=f.get(n);if(_&&p)return _==n&&p==e;var l=-1,o=!0,a=t&Tc?new wc:void 0;for(f.set(e,n),f.set(n,e);++l<O;){var y=e[l],d=n[l];if(r)var v=h?r(d,y,l,n,e,f):r(y,d,l,e,n,f);if(v!==void 0){if(v)continue;o=!1;break}if(a){if(!Ec(n,function(c,u){if(!xc(a,u)&&(y===c||i(y,c,t,r,f)))return a.push(u)})){o=!1;break}}else if(!(y===d||i(y,d,t,r,f))){o=!1;break}}return f.delete(e),f.delete(n),o}var hi=kc,Sc=Qe,qc=Sc.Uint8Array,Nc=qc;function Pc(e){var n=-1,t=Array(e.size);return e.forEach(function(r,i){t[++n]=[i,r]}),t}var Lc=Pc;function Rc(e){var n=-1,t=Array(e.size);return e.forEach(function(r){t[++n]=r}),t}var Fc=Rc,sn=Gt,un=Nc,Dc=Jn,jc=hi,Ic=Lc,$c=Fc,Cc=1,Mc=2,Bc="[object Boolean]",Uc="[object Date]",Vc="[object Error]",Hc="[object Map]",zc="[object Number]",Kc="[object RegExp]",Gc="[object Set]",Wc="[object String]",Zc="[object Symbol]",Yc="[object ArrayBuffer]",Xc="[object DataView]",fn=sn?sn.prototype:void 0,nr=fn?fn.valueOf:void 0;function Qc(e,n,t,r,i,f,h){switch(t){case Xc:if(e.byteLength!=n.byteLength||e.byteOffset!=n.byteOffset)return!1;e=e.buffer,n=n.buffer;case Yc:return!(e.byteLength!=n.byteLength||!f(new un(e),new un(n)));case Bc:case Uc:case zc:return Dc(+e,+n);case Vc:return e.name==n.name&&e.message==n.message;case Kc:case Wc:return e==n+"";case Hc:var O=Ic;case Gc:var m=r&Cc;if(O||(O=$c),e.size!=n.size&&!m)return!1;var _=h.get(e);if(_)return _==n;r|=Mc,h.set(e,n);var p=jc(O(e),O(n),r,i,f,h);return h.delete(e),p;case Zc:if(nr)return nr.call(e)==nr.call(n)}return!1}var Jc=Qc;function ed(e,n){for(var t=-1,r=n.length,i=e.length;++t<r;)e[i+t]=n[t];return e}var td=ed,rd=td,nd=tt;function id(e,n,t){var r=n(e);return nd(e)?r:rd(r,t(e))}var od=id;function ad(e,n){for(var t=-1,r=e==null?0:e.length,i=0,f=[];++t<r;){var h=e[t];n(h,t,e)&&(f[i++]=h)}return f}var ld=ad;function sd(){return[]}var ud=sd,fd=ld,cd=ud,dd=Object.prototype,hd=dd.propertyIsEnumerable,cn=Object.getOwnPropertySymbols,pd=cn?function(e){return e==null?[]:(e=Object(e),fd(cn(e),function(n){return hd.call(e,n)}))}:cd,vd=pd,yd=od,gd=vd,md=Fr;function bd(e){return yd(e,md,gd)}var _d=bd,dn=_d,Od=1,wd=Object.prototype,Ed=wd.hasOwnProperty;function xd(e,n,t,r,i,f){var h=t&Od,O=dn(e),m=O.length,_=dn(n),p=_.length;if(m!=p&&!h)return!1;for(var l=m;l--;){var o=O[l];if(!(h?o in n:Ed.call(n,o)))return!1}var a=f.get(e),y=f.get(n);if(a&&y)return a==n&&y==e;var d=!0;f.set(e,n),f.set(n,e);for(var v=h;++l<m;){o=O[l];var c=e[o],u=n[o];if(r)var b=h?r(u,c,o,n,e,f):r(c,u,o,e,n,f);if(!(b===void 0?c===u||i(c,u,t,r,f):b)){d=!1;break}v||(v=o=="constructor")}if(d&&!v){var s=e.constructor,g=n.constructor;s!=g&&"constructor"in e&&"constructor"in n&&!(typeof s=="function"&&s instanceof s&&typeof g=="function"&&g instanceof g)&&(d=!1)}return f.delete(e),f.delete(n),d}var Ad=xd,Td=lt,kd=Qe,Sd=Td(kd,"DataView"),qd=Sd,Nd=lt,Pd=Qe,Ld=Nd(Pd,"Promise"),Rd=Ld,Fd=lt,Dd=Qe,jd=Fd(Dd,"Set"),Id=jd,$d=lt,Cd=Qe,Md=$d(Cd,"WeakMap"),Bd=Md,mr=qd,br=Nr,_r=Rd,Or=Id,wr=Bd,pi=xt,bt=Qn,hn="[object Map]",Ud="[object Object]",pn="[object Promise]",vn="[object Set]",yn="[object WeakMap]",gn="[object DataView]",Vd=bt(mr),Hd=bt(br),zd=bt(_r),Kd=bt(Or),Gd=bt(wr),it=pi;(mr&&it(new mr(new ArrayBuffer(1)))!=gn||br&&it(new br)!=hn||_r&&it(_r.resolve())!=pn||Or&&it(new Or)!=vn||wr&&it(new wr)!=yn)&&(it=function(e){var n=pi(e),t=n==Ud?e.constructor:void 0,r=t?bt(t):"";if(r)switch(r){case Vd:return gn;case Hd:return hn;case zd:return pn;case Kd:return vn;case Gd:return yn}return n});var Wd=it,ir=di,Zd=hi,Yd=Jc,Xd=Ad,mn=Wd,bn=tt,_n=It.exports,Qd=fi,Jd=1,On="[object Arguments]",wn="[object Array]",Pt="[object Object]",eh=Object.prototype,En=eh.hasOwnProperty;function th(e,n,t,r,i,f){var h=bn(e),O=bn(n),m=h?wn:mn(e),_=O?wn:mn(n);m=m==On?Pt:m,_=_==On?Pt:_;var p=m==Pt,l=_==Pt,o=m==_;if(o&&_n(e)){if(!_n(n))return!1;h=!0,p=!1}if(o&&!p)return f||(f=new ir),h||Qd(e)?Zd(e,n,t,r,i,f):Yd(e,n,m,t,r,i,f);if(!(t&Jd)){var a=p&&En.call(e,"__wrapped__"),y=l&&En.call(n,"__wrapped__");if(a||y){var d=a?e.value():e,v=y?n.value():n;return f||(f=new ir),i(d,v,t,r,f)}}return o?(f||(f=new ir),Xd(e,n,t,r,i,f)):!1}var rh=th,nh=rh,xn=At;function vi(e,n,t,r,i){return e===n?!0:e==null||n==null||!xn(e)&&!xn(n)?e!==e&&n!==n:nh(e,n,t,r,vi,i)}var Dr=vi,ih=di,oh=Dr,ah=1,lh=2;function sh(e,n,t,r){var i=t.length,f=i,h=!r;if(e==null)return!f;for(e=Object(e);i--;){var O=t[i];if(h&&O[2]?O[1]!==e[O[0]]:!(O[0]in e))return!1}for(;++i<f;){O=t[i];var m=O[0],_=e[m],p=O[1];if(h&&O[2]){if(_===void 0&&!(m in e))return!1}else{var l=new ih;if(r)var o=r(_,p,m,e,n,l);if(!(o===void 0?oh(p,_,ah|lh,r,l):o))return!1}}return!0}var uh=sh,fh=kr;function ch(e){return e===e&&!fh(e)}var yi=ch,dh=yi,hh=Fr;function ph(e){for(var n=hh(e),t=n.length;t--;){var r=n[t],i=e[r];n[t]=[r,i,dh(i)]}return n}var vh=ph;function yh(e,n){return function(t){return t==null?!1:t[e]===n&&(n!==void 0||e in Object(t))}}var gi=yh,gh=uh,mh=vh,bh=gi;function _h(e){var n=mh(e);return n.length==1&&n[0][2]?bh(n[0][0],n[0][1]):function(t){return t===e||gh(t,e,n)}}var Oh=_h,wh=ri,Eh=Qt;function xh(e,n){n=wh(n,e);for(var t=0,r=n.length;e!=null&&t<r;)e=e[Eh(n[t++])];return t&&t==r?e:void 0}var mi=xh,Ah=mi;function Th(e,n,t){var r=e==null?void 0:Ah(e,n);return r===void 0?t:r}var kh=Th;function Sh(e,n){return e!=null&&n in Object(e)}var qh=Sh,Nh=qh,Ph=ai;function Lh(e,n){return e!=null&&Ph(e,n,Nh)}var Rh=Lh,Fh=Dr,Dh=kh,jh=Rh,Ih=qr,$h=yi,Ch=gi,Mh=Qt,Bh=1,Uh=2;function Vh(e,n){return Ih(e)&&$h(n)?Ch(Mh(e),n):function(t){var r=Dh(t,e);return r===void 0&&r===n?jh(t,e):Fh(n,r,Bh|Uh)}}var Hh=Vh;function zh(e){return e}var Kh=zh;function Gh(e){return function(n){return n==null?void 0:n[e]}}var Wh=Gh,Zh=mi;function Yh(e){return function(n){return Zh(n,e)}}var Xh=Yh,Qh=Wh,Jh=Xh,ep=qr,tp=Qt;function rp(e){return ep(e)?Qh(tp(e)):Jh(e)}var np=rp,ip=Oh,op=Hh,ap=Kh,lp=tt,sp=np;function up(e){return typeof e=="function"?e:e==null?ap:typeof e=="object"?lp(e)?op(e[0],e[1]):ip(e):sp(e)}var bi=up,fp=ui,cp=ci,dp=bi;function hp(e,n){var t={};return n=dp(n),cp(e,function(r,i,f){fp(t,i,n(r,i,f))}),t}var _i=hp;function st(e){this._maxSize=e,this.clear()}st.prototype.clear=function(){this._size=0,this._values=Object.create(null)};st.prototype.get=function(e){return this._values[e]};st.prototype.set=function(e,n){return this._size>=this._maxSize&&this.clear(),e in this._values||this._size++,this._values[e]=n};var pp=/[^.^\]^[]+|(?=\[\]|\.\.)/g,Oi=/^\d+$/,vp=/^\d/,yp=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,gp=/^\s*(['"]?)(.*?)(\1)\s*$/,jr=512,An=new st(jr),Tn=new st(jr),kn=new st(jr),Jt={Cache:st,split:Er,normalizePath:or,setter:function(e){var n=or(e);return Tn.get(e)||Tn.set(e,function(r,i){for(var f=0,h=n.length,O=r;f<h-1;){var m=n[f];if(m==="__proto__"||m==="constructor"||m==="prototype")return r;O=O[n[f++]]}O[n[f]]=i})},getter:function(e,n){var t=or(e);return kn.get(e)||kn.set(e,function(i){for(var f=0,h=t.length;f<h;)if(i!=null||!n)i=i[t[f++]];else return;return i})},join:function(e){return e.reduce(function(n,t){return n+(Ir(t)||Oi.test(t)?"["+t+"]":(n?".":"")+t)},"")},forEach:function(e,n,t){mp(Array.isArray(e)?e:Er(e),n,t)}};function or(e){return An.get(e)||An.set(e,Er(e).map(function(n){return n.replace(gp,"$2")}))}function Er(e){return e.match(pp)||[""]}function mp(e,n,t){var r=e.length,i,f,h,O;for(f=0;f<r;f++)i=e[f],i&&(Op(i)&&(i='"'+i+'"'),O=Ir(i),h=!O&&/^\d+$/.test(i),n.call(t,i,O,h,f,e))}function Ir(e){return typeof e=="string"&&e&&["'",'"'].indexOf(e.charAt(0))!==-1}function bp(e){return e.match(vp)&&!e.match(Oi)}function _p(e){return yp.test(e)}function Op(e){return!Ir(e)&&(bp(e)||_p(e))}const Lt={context:"$",value:"."};class et{constructor(n,t={}){if(this.key=void 0,this.isContext=void 0,this.isValue=void 0,this.isSibling=void 0,this.path=void 0,this.getter=void 0,this.map=void 0,typeof n!="string")throw new TypeError("ref must be a string, got: "+n);if(this.key=n.trim(),n==="")throw new TypeError("ref must be a non-empty string");this.isContext=this.key[0]===Lt.context,this.isValue=this.key[0]===Lt.value,this.isSibling=!this.isContext&&!this.isValue;let r=this.isContext?Lt.context:this.isValue?Lt.value:"";this.path=this.key.slice(r.length),this.getter=this.path&&Jt.getter(this.path,!0),this.map=t.map}getValue(n,t,r){let i=this.isContext?r:this.isValue?n:t;return this.getter&&(i=this.getter(i||{})),this.map&&(i=this.map(i)),i}cast(n,t){return this.getValue(n,t==null?void 0:t.parent,t==null?void 0:t.context)}resolve(){return this}describe(){return{type:"ref",key:this.key}}toString(){return`Ref(${this.key})`}static isRef(n){return n&&n.__isYupRef}}et.prototype.__isYupRef=!0;function Ct(){return Ct=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},Ct.apply(this,arguments)}function wp(e,n){if(e==null)return{};var t={},r=Object.keys(e),i,f;for(f=0;f<r.length;f++)i=r[f],!(n.indexOf(i)>=0)&&(t[i]=e[i]);return t}function Rt(e){function n(t,r){let{value:i,path:f="",label:h,options:O,originalValue:m,sync:_}=t,p=wp(t,["value","path","label","options","originalValue","sync"]);const{name:l,test:o,params:a,message:y}=e;let{parent:d,context:v}=O;function c(T){return et.isRef(T)?T.getValue(i,d,v):T}function u(T={}){const A=_i(Ct({value:i,originalValue:m,label:h,path:T.path||f},a,T.params),c),k=new Be(Be.formatError(T.message||y,A),i,A.path,T.type||l);return k.params=A,k}let b=Ct({path:f,parent:d,type:l,createError:u,resolve:c,options:O,originalValue:m},p);if(!_){try{Promise.resolve(o.call(b,i,b)).then(T=>{Be.isError(T)?r(T):T?r(null,T):r(u())}).catch(r)}catch(T){r(T)}return}let s;try{var g;if(s=o.call(b,i,b),typeof((g=s)==null?void 0:g.then)=="function")throw new Error(`Validation test of type: "${b.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`)}catch(T){r(T);return}Be.isError(s)?r(s):s?r(null,s):r(u())}return n.OPTIONS=e,n}let Ep=e=>e.substr(0,e.length-1).substr(1);function xp(e,n,t,r=t){let i,f,h;return n?(Jt.forEach(n,(O,m,_)=>{let p=m?Ep(O):O;if(e=e.resolve({context:r,parent:i,value:t}),e.innerType){let l=_?parseInt(p,10):0;if(t&&l>=t.length)throw new Error(`Yup.reach cannot resolve an array item at index: ${O}, in the path: ${n}. because there is no value at that index. `);i=t,t=t&&t[l],e=e.innerType}if(!_){if(!e.fields||!e.fields[p])throw new Error(`The schema does not contain the path: ${n}. (failed at: ${h} which is a type: "${e._type}")`);i=t,t=t&&t[p],e=e.fields[p]}f=p,h=m?"["+O+"]":"."+O}),{schema:e,parent:i,parentPath:f}):{parent:i,parentPath:n,schema:e}}class Mt{constructor(){this.list=void 0,this.refs=void 0,this.list=new Set,this.refs=new Map}get size(){return this.list.size+this.refs.size}describe(){const n=[];for(const t of this.list)n.push(t);for(const[,t]of this.refs)n.push(t.describe());return n}toArray(){return Array.from(this.list).concat(Array.from(this.refs.values()))}resolveAll(n){return this.toArray().reduce((t,r)=>t.concat(et.isRef(r)?n(r):r),[])}add(n){et.isRef(n)?this.refs.set(n.key,n):this.list.add(n)}delete(n){et.isRef(n)?this.refs.delete(n.key):this.list.delete(n)}clone(){const n=new Mt;return n.list=new Set(this.list),n.refs=new Map(this.refs),n}merge(n,t){const r=this.clone();return n.list.forEach(i=>r.add(i)),n.refs.forEach(i=>r.add(i)),t.list.forEach(i=>r.delete(i)),t.refs.forEach(i=>r.delete(i)),r}}function Ue(){return Ue=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},Ue.apply(this,arguments)}class Ce{constructor(n){this.deps=[],this.tests=void 0,this.transforms=void 0,this.conditions=[],this._mutate=void 0,this._typeError=void 0,this._whitelist=new Mt,this._blacklist=new Mt,this.exclusiveTests=Object.create(null),this.spec=void 0,this.tests=[],this.transforms=[],this.withMutation(()=>{this.typeError(nt.notType)}),this.type=(n==null?void 0:n.type)||"mixed",this.spec=Ue({strip:!1,strict:!1,abortEarly:!0,recursive:!0,nullable:!1,presence:"optional"},n==null?void 0:n.spec)}get _type(){return this.type}_typeCheck(n){return!0}clone(n){if(this._mutate)return n&&Object.assign(this.spec,n),this;const t=Object.create(Object.getPrototypeOf(this));return t.type=this.type,t._typeError=this._typeError,t._whitelistError=this._whitelistError,t._blacklistError=this._blacklistError,t._whitelist=this._whitelist.clone(),t._blacklist=this._blacklist.clone(),t.exclusiveTests=Ue({},this.exclusiveTests),t.deps=[...this.deps],t.conditions=[...this.conditions],t.tests=[...this.tests],t.transforms=[...this.transforms],t.spec=dr(Ue({},this.spec,n)),t}label(n){let t=this.clone();return t.spec.label=n,t}meta(...n){if(n.length===0)return this.spec.meta;let t=this.clone();return t.spec.meta=Object.assign(t.spec.meta||{},n[0]),t}withMutation(n){let t=this._mutate;this._mutate=!0;let r=n(this);return this._mutate=t,r}concat(n){if(!n||n===this)return this;if(n.type!==this.type&&this.type!=="mixed")throw new TypeError(`You cannot \`concat()\` schema's of different types: ${this.type} and ${n.type}`);let t=this,r=n.clone();const i=Ue({},t.spec,r.spec);return r.spec=i,r._typeError||(r._typeError=t._typeError),r._whitelistError||(r._whitelistError=t._whitelistError),r._blacklistError||(r._blacklistError=t._blacklistError),r._whitelist=t._whitelist.merge(n._whitelist,n._blacklist),r._blacklist=t._blacklist.merge(n._blacklist,n._whitelist),r.tests=t.tests,r.exclusiveTests=t.exclusiveTests,r.withMutation(f=>{n.tests.forEach(h=>{f.test(h.OPTIONS)})}),r.transforms=[...t.transforms,...r.transforms],r}isType(n){return this.spec.nullable&&n===null?!0:this._typeCheck(n)}resolve(n){let t=this;if(t.conditions.length){let r=t.conditions;t=t.clone(),t.conditions=[],t=r.reduce((i,f)=>f.resolve(i,n),t),t=t.resolve(n)}return t}cast(n,t={}){let r=this.resolve(Ue({value:n},t)),i=r._cast(n,t);if(n!==void 0&&t.assert!==!1&&r.isType(i)!==!0){let f=Et(n),h=Et(i);throw new TypeError(`The value of ${t.path||"field"} could not be cast to a value that satisfies the schema type: "${r._type}".
attempted value: ${f}
`+(h!==f?`result of cast: ${h}`:""))}return i}_cast(n,t){let r=n===void 0?n:this.transforms.reduce((i,f)=>f.call(this,i,n,this),n);return r===void 0&&(r=this.getDefault()),r}_validate(n,t={},r){let{sync:i,path:f,from:h=[],originalValue:O=n,strict:m=this.spec.strict,abortEarly:_=this.spec.abortEarly}=t,p=n;m||(p=this._cast(p,Ue({assert:!1},t)));let l={value:p,path:f,options:t,originalValue:O,schema:this,label:this.spec.label,sync:i,from:h},o=[];this._typeError&&o.push(this._typeError);let a=[];this._whitelistError&&a.push(this._whitelistError),this._blacklistError&&a.push(this._blacklistError),yr({args:l,value:p,path:f,sync:i,tests:o,endEarly:_},y=>{if(y)return void r(y,p);yr({tests:this.tests.concat(a),args:l,path:f,sync:i,value:p,endEarly:_},r)})}validate(n,t,r){let i=this.resolve(Ue({},t,{value:n}));return typeof r=="function"?i._validate(n,t,r):new Promise((f,h)=>i._validate(n,t,(O,m)=>{O?h(O):f(m)}))}validateSync(n,t){let r=this.resolve(Ue({},t,{value:n})),i;return r._validate(n,Ue({},t,{sync:!0}),(f,h)=>{if(f)throw f;i=h}),i}isValid(n,t){return this.validate(n,t).then(()=>!0,r=>{if(Be.isError(r))return!1;throw r})}isValidSync(n,t){try{return this.validateSync(n,t),!0}catch(r){if(Be.isError(r))return!1;throw r}}_getDefault(){let n=this.spec.default;return n==null?n:typeof n=="function"?n.call(this):dr(n)}getDefault(n){return this.resolve(n||{})._getDefault()}default(n){return arguments.length===0?this._getDefault():this.clone({default:n})}strict(n=!0){let t=this.clone();return t.spec.strict=n,t}_isPresent(n){return n!=null}defined(n=nt.defined){return this.test({message:n,name:"defined",exclusive:!0,test(t){return t!==void 0}})}required(n=nt.required){return this.clone({presence:"required"}).withMutation(t=>t.test({message:n,name:"required",exclusive:!0,test(r){return this.schema._isPresent(r)}}))}notRequired(){let n=this.clone({presence:"optional"});return n.tests=n.tests.filter(t=>t.OPTIONS.name!=="required"),n}nullable(n=!0){return this.clone({nullable:n!==!1})}transform(n){let t=this.clone();return t.transforms.push(n),t}test(...n){let t;if(n.length===1?typeof n[0]=="function"?t={test:n[0]}:t=n[0]:n.length===2?t={name:n[0],test:n[1]}:t={name:n[0],message:n[1],test:n[2]},t.message===void 0&&(t.message=nt.default),typeof t.test!="function")throw new TypeError("`test` is a required parameters");let r=this.clone(),i=Rt(t),f=t.exclusive||t.name&&r.exclusiveTests[t.name]===!0;if(t.exclusive&&!t.name)throw new TypeError("Exclusive tests must provide a unique `name` identifying the test");return t.name&&(r.exclusiveTests[t.name]=!!t.exclusive),r.tests=r.tests.filter(h=>!(h.OPTIONS.name===t.name&&(f||h.OPTIONS.test===i.OPTIONS.test))),r.tests.push(i),r}when(n,t){!Array.isArray(n)&&typeof n!="string"&&(t=n,n=".");let r=this.clone(),i=si(n).map(f=>new et(f));return i.forEach(f=>{f.isSibling&&r.deps.push(f.key)}),r.conditions.push(new fu(i,t)),r}typeError(n){let t=this.clone();return t._typeError=Rt({message:n,name:"typeError",test(r){return r!==void 0&&!this.schema.isType(r)?this.createError({params:{type:this.schema._type}}):!0}}),t}oneOf(n,t=nt.oneOf){let r=this.clone();return n.forEach(i=>{r._whitelist.add(i),r._blacklist.delete(i)}),r._whitelistError=Rt({message:t,name:"oneOf",test(i){if(i===void 0)return!0;let f=this.schema._whitelist,h=f.resolveAll(this.resolve);return h.includes(i)?!0:this.createError({params:{values:f.toArray().join(", "),resolved:h}})}}),r}notOneOf(n,t=nt.notOneOf){let r=this.clone();return n.forEach(i=>{r._blacklist.add(i),r._whitelist.delete(i)}),r._blacklistError=Rt({message:t,name:"notOneOf",test(i){let f=this.schema._blacklist,h=f.resolveAll(this.resolve);return h.includes(i)?this.createError({params:{values:f.toArray().join(", "),resolved:h}}):!0}}),r}strip(n=!0){let t=this.clone();return t.spec.strip=n,t}describe(){const n=this.clone(),{label:t,meta:r}=n.spec;return{meta:r,label:t,type:n.type,oneOf:n._whitelist.describe(),notOneOf:n._blacklist.describe(),tests:n.tests.map(f=>({name:f.OPTIONS.name,params:f.OPTIONS.params})).filter((f,h,O)=>O.findIndex(m=>m.name===f.name)===h)}}}Ce.prototype.__isYupSchema__=!0;for(const e of["validate","validateSync"])Ce.prototype[`${e}At`]=function(n,t,r={}){const{parent:i,parentPath:f,schema:h}=xp(this,n,t,r.context);return h[e](i&&i[f],Ue({},r,{parent:i,path:n}))};for(const e of["equals","is"])Ce.prototype[e]=Ce.prototype.oneOf;for(const e of["not","nope"])Ce.prototype[e]=Ce.prototype.notOneOf;Ce.prototype.optional=Ce.prototype.notRequired;const Ap=Ce;Ap.prototype;const ze=e=>e==null;let Tp=/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))$/i,kp=/^((https?|ftp):)?\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,Sp=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,qp=e=>ze(e)||e===e.trim(),Np={}.toString();function Pp(){return new wi}class wi extends Ce{constructor(){super({type:"string"}),this.withMutation(()=>{this.transform(function(n){if(this.isType(n)||Array.isArray(n))return n;const t=n!=null&&n.toString?n.toString():n;return t===Np?n:t})})}_typeCheck(n){return n instanceof String&&(n=n.valueOf()),typeof n=="string"}_isPresent(n){return super._isPresent(n)&&!!n.length}length(n,t=He.length){return this.test({message:t,name:"length",exclusive:!0,params:{length:n},test(r){return ze(r)||r.length===this.resolve(n)}})}min(n,t=He.min){return this.test({message:t,name:"min",exclusive:!0,params:{min:n},test(r){return ze(r)||r.length>=this.resolve(n)}})}max(n,t=He.max){return this.test({name:"max",exclusive:!0,message:t,params:{max:n},test(r){return ze(r)||r.length<=this.resolve(n)}})}matches(n,t){let r=!1,i,f;return t&&(typeof t=="object"?{excludeEmptyString:r=!1,message:i,name:f}=t:i=t),this.test({name:f||"matches",message:i||He.matches,params:{regex:n},test:h=>ze(h)||h===""&&r||h.search(n)!==-1})}email(n=He.email){return this.matches(Tp,{name:"email",message:n,excludeEmptyString:!0})}url(n=He.url){return this.matches(kp,{name:"url",message:n,excludeEmptyString:!0})}uuid(n=He.uuid){return this.matches(Sp,{name:"uuid",message:n,excludeEmptyString:!1})}ensure(){return this.default("").transform(n=>n===null?"":n)}trim(n=He.trim){return this.transform(t=>t!=null?t.trim():t).test({message:n,name:"trim",test:qp})}lowercase(n=He.lowercase){return this.transform(t=>ze(t)?t:t.toLowerCase()).test({message:n,name:"string_case",exclusive:!0,test:t=>ze(t)||t===t.toLowerCase()})}uppercase(n=He.uppercase){return this.transform(t=>ze(t)?t:t.toUpperCase()).test({message:n,name:"string_case",exclusive:!0,test:t=>ze(t)||t===t.toUpperCase()})}}Pp.prototype=wi.prototype;var Lp=/^(\d{4}|[+\-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,\.](\d{1,}))?)?(?:(Z)|([+\-])(\d{2})(?::?(\d{2}))?)?)?$/;function Rp(e){var n=[1,4,5,6,7,10,11],t=0,r,i;if(i=Lp.exec(e)){for(var f=0,h;h=n[f];++f)i[h]=+i[h]||0;i[2]=(+i[2]||1)-1,i[3]=+i[3]||1,i[7]=i[7]?String(i[7]).substr(0,3):0,(i[8]===void 0||i[8]==="")&&(i[9]===void 0||i[9]==="")?r=+new Date(i[1],i[2],i[3],i[4],i[5],i[6],i[7]):(i[8]!=="Z"&&i[9]!==void 0&&(t=i[10]*60+i[11],i[9]==="+"&&(t=0-t)),r=Date.UTC(i[1],i[2],i[3],i[4],i[5]+t,i[6],i[7]))}else r=Date.parse?Date.parse(e):NaN;return r}let Ei=new Date(""),Fp=e=>Object.prototype.toString.call(e)==="[object Date]";class xi extends Ce{constructor(){super({type:"date"}),this.withMutation(()=>{this.transform(function(n){return this.isType(n)?n:(n=Rp(n),isNaN(n)?Ei:new Date(n))})})}_typeCheck(n){return Fp(n)&&!isNaN(n.getTime())}prepareParam(n,t){let r;if(et.isRef(n))r=n;else{let i=this.cast(n);if(!this._typeCheck(i))throw new TypeError(`\`${t}\` must be a Date or a value that can be \`cast()\` to a Date`);r=i}return r}min(n,t=hr.min){let r=this.prepareParam(n,"min");return this.test({message:t,name:"min",exclusive:!0,params:{min:n},test(i){return ze(i)||i>=this.resolve(r)}})}max(n,t=hr.max){let r=this.prepareParam(n,"max");return this.test({message:t,name:"max",exclusive:!0,params:{max:n},test(i){return ze(i)||i<=this.resolve(r)}})}}xi.INVALID_DATE=Ei;xi.prototype;function Dp(e,n,t,r){var i=-1,f=e==null?0:e.length;for(r&&f&&(t=e[++i]);++i<f;)t=n(t,e[i],i,e);return t}var jp=Dp;function Ip(e){return function(n){return e==null?void 0:e[n]}}var $p=Ip,Cp=$p,Mp={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},Bp=Cp(Mp),Up=Bp,Vp=Up,Hp=Tt,zp=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Kp="\\u0300-\\u036f",Gp="\\ufe20-\\ufe2f",Wp="\\u20d0-\\u20ff",Zp=Kp+Gp+Wp,Yp="["+Zp+"]",Xp=RegExp(Yp,"g");function Qp(e){return e=Hp(e),e&&e.replace(zp,Vp).replace(Xp,"")}var Jp=Qp,ev=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function tv(e){return e.match(ev)||[]}var rv=tv,nv=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function iv(e){return nv.test(e)}var ov=iv,Ai="\\ud800-\\udfff",av="\\u0300-\\u036f",lv="\\ufe20-\\ufe2f",sv="\\u20d0-\\u20ff",uv=av+lv+sv,Ti="\\u2700-\\u27bf",ki="a-z\\xdf-\\xf6\\xf8-\\xff",fv="\\xac\\xb1\\xd7\\xf7",cv="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",dv="\\u2000-\\u206f",hv=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Si="A-Z\\xc0-\\xd6\\xd8-\\xde",pv="\\ufe0e\\ufe0f",qi=fv+cv+dv+hv,Ni="['\u2019]",Sn="["+qi+"]",vv="["+uv+"]",Pi="\\d+",yv="["+Ti+"]",Li="["+ki+"]",Ri="[^"+Ai+qi+Pi+Ti+ki+Si+"]",gv="\\ud83c[\\udffb-\\udfff]",mv="(?:"+vv+"|"+gv+")",bv="[^"+Ai+"]",Fi="(?:\\ud83c[\\udde6-\\uddff]){2}",Di="[\\ud800-\\udbff][\\udc00-\\udfff]",ct="["+Si+"]",_v="\\u200d",qn="(?:"+Li+"|"+Ri+")",Ov="(?:"+ct+"|"+Ri+")",Nn="(?:"+Ni+"(?:d|ll|m|re|s|t|ve))?",Pn="(?:"+Ni+"(?:D|LL|M|RE|S|T|VE))?",ji=mv+"?",Ii="["+pv+"]?",wv="(?:"+_v+"(?:"+[bv,Fi,Di].join("|")+")"+Ii+ji+")*",Ev="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",xv="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Av=Ii+ji+wv,Tv="(?:"+[yv,Fi,Di].join("|")+")"+Av,kv=RegExp([ct+"?"+Li+"+"+Nn+"(?="+[Sn,ct,"$"].join("|")+")",Ov+"+"+Pn+"(?="+[Sn,ct+qn,"$"].join("|")+")",ct+"?"+qn+"+"+Nn,ct+"+"+Pn,xv,Ev,Pi,Tv].join("|"),"g");function Sv(e){return e.match(kv)||[]}var qv=Sv,Nv=rv,Pv=ov,Lv=Tt,Rv=qv;function Fv(e,n,t){return e=Lv(e),n=t?void 0:n,n===void 0?Pv(e)?Rv(e):Nv(e):e.match(n)||[]}var Dv=Fv,jv=jp,Iv=Jp,$v=Dv,Cv="['\u2019]",Mv=RegExp(Cv,"g");function Bv(e){return function(n){return jv($v(Iv(n).replace(Mv,"")),e,"")}}var $i=Bv,Uv=$i,Vv=Uv(function(e,n,t){return e+(t?"_":"")+n.toLowerCase()}),Ln=Vv;function Hv(e,n,t){var r=-1,i=e.length;n<0&&(n=-n>i?0:i+n),t=t>i?i:t,t<0&&(t+=i),i=n>t?0:t-n>>>0,n>>>=0;for(var f=Array(i);++r<i;)f[r]=e[r+n];return f}var zv=Hv,Kv=zv;function Gv(e,n,t){var r=e.length;return t=t===void 0?r:t,!n&&t>=r?e:Kv(e,n,t)}var Wv=Gv,Zv="\\ud800-\\udfff",Yv="\\u0300-\\u036f",Xv="\\ufe20-\\ufe2f",Qv="\\u20d0-\\u20ff",Jv=Yv+Xv+Qv,ey="\\ufe0e\\ufe0f",ty="\\u200d",ry=RegExp("["+ty+Zv+Jv+ey+"]");function ny(e){return ry.test(e)}var Ci=ny;function iy(e){return e.split("")}var oy=iy,Mi="\\ud800-\\udfff",ay="\\u0300-\\u036f",ly="\\ufe20-\\ufe2f",sy="\\u20d0-\\u20ff",uy=ay+ly+sy,fy="\\ufe0e\\ufe0f",cy="["+Mi+"]",xr="["+uy+"]",Ar="\\ud83c[\\udffb-\\udfff]",dy="(?:"+xr+"|"+Ar+")",Bi="[^"+Mi+"]",Ui="(?:\\ud83c[\\udde6-\\uddff]){2}",Vi="[\\ud800-\\udbff][\\udc00-\\udfff]",hy="\\u200d",Hi=dy+"?",zi="["+fy+"]?",py="(?:"+hy+"(?:"+[Bi,Ui,Vi].join("|")+")"+zi+Hi+")*",vy=zi+Hi+py,yy="(?:"+[Bi+xr+"?",xr,Ui,Vi,cy].join("|")+")",gy=RegExp(Ar+"(?="+Ar+")|"+yy+vy,"g");function my(e){return e.match(gy)||[]}var by=my,_y=oy,Oy=Ci,wy=by;function Ey(e){return Oy(e)?wy(e):_y(e)}var xy=Ey,Ay=Wv,Ty=Ci,ky=xy,Sy=Tt;function qy(e){return function(n){n=Sy(n);var t=Ty(n)?ky(n):void 0,r=t?t[0]:n.charAt(0),i=t?Ay(t,1).join(""):n.slice(1);return r[e]()+i}}var Ny=qy,Py=Ny,Ly=Py("toUpperCase"),Ry=Ly,Fy=Tt,Dy=Ry;function jy(e){return Dy(Fy(e).toLowerCase())}var Iy=jy,$y=Iy,Cy=$i,My=Cy(function(e,n,t){return n=n.toLowerCase(),e+(t?$y(n):n)}),By=My,Uy=ui,Vy=ci,Hy=bi;function zy(e,n){var t={};return n=Hy(n),Vy(e,function(r,i,f){Uy(t,n(r,i,f),r)}),t}var Ky=zy,$r={exports:{}};$r.exports=function(e){return Ki(Gy(e),e)};$r.exports.array=Ki;function Ki(e,n){var t=e.length,r=new Array(t),i={},f=t,h=Wy(n),O=Zy(e);for(n.forEach(function(_){if(!O.has(_[0])||!O.has(_[1]))throw new Error("Unknown node. There is an unknown node in the supplied edges.")});f--;)i[f]||m(e[f],f,new Set);return r;function m(_,p,l){if(l.has(_)){var o;try{o=", node was:"+JSON.stringify(_)}catch{o=""}throw new Error("Cyclic dependency"+o)}if(!O.has(_))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(_));if(!i[p]){i[p]=!0;var a=h.get(_)||new Set;if(a=Array.from(a),p=a.length){l.add(_);do{var y=a[--p];m(y,O.get(y),l)}while(p);l.delete(_)}r[--t]=_}}}function Gy(e){for(var n=new Set,t=0,r=e.length;t<r;t++){var i=e[t];n.add(i[0]),n.add(i[1])}return Array.from(n)}function Wy(e){for(var n=new Map,t=0,r=e.length;t<r;t++){var i=e[t];n.has(i[0])||n.set(i[0],new Set),n.has(i[1])||n.set(i[1],new Set),n.get(i[0]).add(i[1])}return n}function Zy(e){for(var n=new Map,t=0,r=e.length;t<r;t++)n.set(e[t],t);return n}function Yy(e,n=[]){let t=[],r=new Set,i=new Set(n.map(([h,O])=>`${h}-${O}`));function f(h,O){let m=Jt.split(h)[0];r.add(m),i.has(`${O}-${m}`)||t.push([O,m])}for(const h in e)if(jt(e,h)){let O=e[h];r.add(h),et.isRef(O)&&O.isSibling?f(O.path,h):li(O)&&"deps"in O&&O.deps.forEach(m=>f(m,h))}return $r.exports.array(Array.from(r),t).reverse()}function Rn(e,n){let t=1/0;return e.some((r,i)=>{var f;if(((f=n.path)==null?void 0:f.indexOf(r))!==-1)return t=i,!0}),t}function Gi(e){return(n,t)=>Rn(e,n)-Rn(e,t)}function dt(){return dt=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},dt.apply(this,arguments)}let Fn=e=>Object.prototype.toString.call(e)==="[object Object]";function Xy(e,n){let t=Object.keys(e.fields);return Object.keys(n).filter(r=>t.indexOf(r)===-1)}const Qy=Gi([]);class Wi extends Ce{constructor(n){super({type:"object"}),this.fields=Object.create(null),this._sortErrors=Qy,this._nodes=[],this._excludedEdges=[],this.withMutation(()=>{this.transform(function(r){if(typeof r=="string")try{r=JSON.parse(r)}catch{r=null}return this.isType(r)?r:null}),n&&this.shape(n)})}_typeCheck(n){return Fn(n)||typeof n=="function"}_cast(n,t={}){var r;let i=super._cast(n,t);if(i===void 0)return this.getDefault();if(!this._typeCheck(i))return i;let f=this.fields,h=(r=t.stripUnknown)!=null?r:this.spec.noUnknown,O=this._nodes.concat(Object.keys(i).filter(l=>this._nodes.indexOf(l)===-1)),m={},_=dt({},t,{parent:m,__validating:t.__validating||!1}),p=!1;for(const l of O){let o=f[l],a=jt(i,l);if(o){let y,d=i[l];_.path=(t.path?`${t.path}.`:"")+l,o=o.resolve({value:d,context:t.context,parent:m});let v="spec"in o?o.spec:void 0,c=v==null?void 0:v.strict;if(v!=null&&v.strip){p=p||l in i;continue}y=!t.__validating||!c?o.cast(i[l],_):i[l],y!==void 0&&(m[l]=y)}else a&&!h&&(m[l]=i[l]);m[l]!==i[l]&&(p=!0)}return p?m:i}_validate(n,t={},r){let i=[],{sync:f,from:h=[],originalValue:O=n,abortEarly:m=this.spec.abortEarly,recursive:_=this.spec.recursive}=t;h=[{schema:this,value:O},...h],t.__validating=!0,t.originalValue=O,t.from=h,super._validate(n,t,(p,l)=>{if(p){if(!Be.isError(p)||m)return void r(p,l);i.push(p)}if(!_||!Fn(l)){r(i[0]||null,l);return}O=O||l;let o=this._nodes.map(a=>(y,d)=>{let v=a.indexOf(".")===-1?(t.path?`${t.path}.`:"")+a:`${t.path||""}["${a}"]`,c=this.fields[a];if(c&&"validate"in c){c.validate(l[a],dt({},t,{path:v,from:h,strict:!0,parent:l,originalValue:O[a]}),d);return}d(null)});yr({sync:f,tests:o,value:l,errors:i,endEarly:m,sort:this._sortErrors,path:t.path},r)})}clone(n){const t=super.clone(n);return t.fields=dt({},this.fields),t._nodes=this._nodes,t._excludedEdges=this._excludedEdges,t._sortErrors=this._sortErrors,t}concat(n){let t=super.concat(n),r=t.fields;for(let[i,f]of Object.entries(this.fields)){const h=r[i];h===void 0?r[i]=f:h instanceof Ce&&f instanceof Ce&&(r[i]=f.concat(h))}return t.withMutation(()=>t.shape(r,this._excludedEdges))}getDefaultFromShape(){let n={};return this._nodes.forEach(t=>{const r=this.fields[t];n[t]="default"in r?r.getDefault():void 0}),n}_getDefault(){if("default"in this.spec)return super._getDefault();if(!!this._nodes.length)return this.getDefaultFromShape()}shape(n,t=[]){let r=this.clone(),i=Object.assign(r.fields,n);return r.fields=i,r._sortErrors=Gi(Object.keys(i)),t.length&&(Array.isArray(t[0])||(t=[t]),r._excludedEdges=[...r._excludedEdges,...t]),r._nodes=Yy(i,r._excludedEdges),r}pick(n){const t={};for(const r of n)this.fields[r]&&(t[r]=this.fields[r]);return this.clone().withMutation(r=>(r.fields={},r.shape(t)))}omit(n){const t=this.clone(),r=t.fields;t.fields={};for(const i of n)delete r[i];return t.withMutation(()=>t.shape(r))}from(n,t,r){let i=Jt.getter(n,!0);return this.transform(f=>{if(f==null)return f;let h=f;return jt(f,n)&&(h=dt({},f),r||delete h[n],h[t]=i(f)),h})}noUnknown(n=!0,t=pr.noUnknown){typeof n=="string"&&(t=n,n=!0);let r=this.test({name:"noUnknown",exclusive:!0,message:t,test(i){if(i==null)return!0;const f=Xy(this.schema,i);return!n||f.length===0||this.createError({params:{unknown:f.join(", ")}})}});return r.spec.noUnknown=n,r}unknown(n=!0,t=pr.noUnknown){return this.noUnknown(!n,t)}transformKeys(n){return this.transform(t=>t&&Ky(t,(r,i)=>n(i)))}camelCase(){return this.transformKeys(By)}snakeCase(){return this.transformKeys(Ln)}constantCase(){return this.transformKeys(n=>Ln(n).toUpperCase())}describe(){let n=super.describe();return n.fields=_i(this.fields,t=>t.describe()),n}}function Jy(e){return new Wi(e)}Jy.prototype=Wi.prototype;var kt=e=>e.type==="checkbox",ht=e=>e instanceof Date,$e=e=>e==null;const Zi=e=>typeof e=="object";var Pe=e=>!$e(e)&&!Array.isArray(e)&&Zi(e)&&!ht(e),Yi=e=>Pe(e)&&e.target?kt(e.target)?e.target.checked:e.target.value:e,eg=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,Xi=(e,n)=>e.has(eg(n)),tg=e=>{const n=e.constructor&&e.constructor.prototype;return Pe(n)&&n.hasOwnProperty("isPrototypeOf")},Cr=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Xe(e){let n;const t=Array.isArray(e);if(e instanceof Date)n=new Date(e);else if(e instanceof Set)n=new Set(e);else if(!(Cr&&(e instanceof Blob||e instanceof FileList))&&(t||Pe(e)))if(n=t?[]:{},!Array.isArray(e)&&!tg(e))n=e;else for(const r in e)n[r]=Xe(e[r]);else return e;return n}var St=e=>Array.isArray(e)?e.filter(Boolean):[],ke=e=>e===void 0,se=(e,n,t)=>{if(!n||!Pe(e))return t;const r=St(n.split(/[,[\].]+?/)).reduce((i,f)=>$e(i)?i:i[f],e);return ke(r)||r===e?ke(e[n])?t:e[n]:r};const Bt={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},Ke={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},Ye={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},Qi=Se.createContext(null),er=()=>Se.useContext(Qi),rg=e=>{const{children:n,...t}=e;return Se.createElement(Qi.Provider,{value:t},n)};var Ji=(e,n,t,r=!0)=>{const i={defaultValues:n._defaultValues};for(const f in e)Object.defineProperty(i,f,{get:()=>{const h=f;return n._proxyFormState[h]!==Ke.all&&(n._proxyFormState[h]=!r||Ke.all),t&&(t[h]=!0),e[h]}});return i},Ve=e=>Pe(e)&&!Object.keys(e).length,eo=(e,n,t,r)=>{t(e);const{name:i,...f}=e;return Ve(f)||Object.keys(f).length>=Object.keys(n).length||Object.keys(f).find(h=>n[h]===(!r||Ke.all))},Ft=e=>Array.isArray(e)?e:[e],to=(e,n,t)=>t&&n?e===n:!e||!n||e===n||Ft(e).some(r=>r&&(r.startsWith(n)||n.startsWith(r)));function Mr(e){const n=Se.useRef(e);n.current=e,Se.useEffect(()=>{const t=!e.disabled&&n.current.subject&&n.current.subject.subscribe({next:n.current.next});return()=>{t&&t.unsubscribe()}},[e.disabled])}function ng(e){const n=er(),{control:t=n.control,disabled:r,name:i,exact:f}=e||{},[h,O]=Se.useState(t._formState),m=Se.useRef(!0),_=Se.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1}),p=Se.useRef(i);return p.current=i,Mr({disabled:r,next:l=>m.current&&to(p.current,l.name,f)&&eo(l,_.current,t._updateFormState)&&O({...t._formState,...l}),subject:t._subjects.state}),Se.useEffect(()=>{m.current=!0;const l=t._proxyFormState.isDirty&&t._getDirty();return l!==t._formState.isDirty&&t._subjects.state.next({isDirty:l}),_.current.isValid&&t._updateValid(!0),()=>{m.current=!1}},[t]),Ji(h,t,_.current,!1)}var Ze=e=>typeof e=="string",ro=(e,n,t,r,i)=>Ze(e)?(r&&n.watch.add(e),se(t,e,i)):Array.isArray(e)?e.map(f=>(r&&n.watch.add(f),se(t,f))):(r&&(n.watchAll=!0),t);function ig(e){const n=er(),{control:t=n.control,name:r,defaultValue:i,disabled:f,exact:h}=e||{},O=Se.useRef(r);O.current=r,Mr({disabled:f,subject:t._subjects.values,next:p=>{to(O.current,p.name,h)&&_(Xe(ro(O.current,t._names,p.values||t._formValues,!1,i)))}});const[m,_]=Se.useState(t._getWatch(r,i));return Se.useEffect(()=>t._removeUnmounted()),m}var Br=e=>/^\w*$/.test(e),no=e=>St(e.replace(/["|']|\]/g,"").split(/\.|\[/));function Oe(e,n,t){let r=-1;const i=Br(n)?[n]:no(n),f=i.length,h=f-1;for(;++r<f;){const O=i[r];let m=t;if(r!==h){const _=e[O];m=Pe(_)||Array.isArray(_)?_:isNaN(+i[r+1])?{}:[]}e[O]=m,e=e[O]}return e}function og(e){const n=er(),{name:t,control:r=n.control,shouldUnregister:i}=e,f=Xi(r._names.array,t),h=ig({control:r,name:t,defaultValue:se(r._formValues,t,se(r._defaultValues,t,e.defaultValue)),exact:!0}),O=ng({control:r,name:t}),m=Se.useRef(r.register(t,{...e.rules,value:h}));return Se.useEffect(()=>{const _=r._options.shouldUnregister||i,p=(l,o)=>{const a=se(r._fields,l);a&&(a._f.mount=o)};if(p(t,!0),_){const l=Xe(se(r._options.defaultValues,t));Oe(r._defaultValues,t,l),ke(se(r._formValues,t))&&Oe(r._formValues,t,l)}return()=>{(f?_&&!r._state.action:_)?r.unregister(t):p(t,!1)}},[t,r,f,i]),{field:{name:t,value:h,onChange:Se.useCallback(_=>m.current.onChange({target:{value:Yi(_),name:t},type:Bt.CHANGE}),[t]),onBlur:Se.useCallback(()=>m.current.onBlur({target:{value:se(r._formValues,t),name:t},type:Bt.BLUR}),[t,r]),ref:_=>{const p=se(r._fields,t);p&&_&&(p._f.ref={focus:()=>_.focus(),select:()=>_.select(),setCustomValidity:l=>_.setCustomValidity(l),reportValidity:()=>_.reportValidity()})}},formState:O,fieldState:Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!se(O.errors,t)},isDirty:{enumerable:!0,get:()=>!!se(O.dirtyFields,t)},isTouched:{enumerable:!0,get:()=>!!se(O.touchedFields,t)},error:{enumerable:!0,get:()=>se(O.errors,t)}})}}const ag=e=>e.render(og(e));var io=(e,n,t,r,i)=>n?{...t[e],types:{...t[e]&&t[e].types?t[e].types:{},[r]:i||!0}}:{};const Tr=(e,n,t)=>{for(const r of t||Object.keys(e)){const i=se(e,r);if(i){const{_f:f,...h}=i;if(f&&n(f.name)){if(f.ref.focus){f.ref.focus();break}else if(f.refs&&f.refs[0].focus){f.refs[0].focus();break}}else Pe(h)&&Tr(h,n)}}};var Dn=e=>({isOnSubmit:!e||e===Ke.onSubmit,isOnBlur:e===Ke.onBlur,isOnChange:e===Ke.onChange,isOnAll:e===Ke.all,isOnTouch:e===Ke.onTouched}),jn=(e,n,t)=>!t&&(n.watchAll||n.watch.has(e)||[...n.watch].some(r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length)))),lg=(e,n,t)=>{const r=St(se(e,t));return Oe(r,"root",n[t]),Oe(e,t,r),e},pt=e=>typeof e=="boolean",Ur=e=>e.type==="file",Je=e=>typeof e=="function",Ut=e=>{if(!Cr)return!1;const n=e?e.ownerDocument:0;return e instanceof(n&&n.defaultView?n.defaultView.HTMLElement:HTMLElement)},Dt=e=>Ze(e),Vr=e=>e.type==="radio",Vt=e=>e instanceof RegExp;const In={value:!1,isValid:!1},$n={value:!0,isValid:!0};var oo=e=>{if(Array.isArray(e)){if(e.length>1){const n=e.filter(t=>t&&t.checked&&!t.disabled).map(t=>t.value);return{value:n,isValid:!!n.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!ke(e[0].attributes.value)?ke(e[0].value)||e[0].value===""?$n:{value:e[0].value,isValid:!0}:$n:In}return In};const Cn={isValid:!1,value:null};var ao=e=>Array.isArray(e)?e.reduce((n,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:n,Cn):Cn;function Mn(e,n,t="validate"){if(Dt(e)||Array.isArray(e)&&e.every(Dt)||pt(e)&&!e)return{type:t,message:Dt(e)?e:"",ref:n}}var ft=e=>Pe(e)&&!Vt(e)?e:{value:e,message:""},Bn=async(e,n,t,r,i)=>{const{ref:f,refs:h,required:O,maxLength:m,minLength:_,min:p,max:l,pattern:o,validate:a,name:y,valueAsNumber:d,mount:v,disabled:c}=e._f,u=se(n,y);if(!v||c)return{};const b=h?h[0]:f,s=w=>{r&&b.reportValidity&&(b.setCustomValidity(pt(w)?"":w||""),b.reportValidity())},g={},T=Vr(f),A=kt(f),k=T||A,N=(d||Ur(f))&&ke(f.value)&&ke(u)||Ut(f)&&f.value===""||u===""||Array.isArray(u)&&!u.length,x=io.bind(null,y,t,g),E=(w,S,P,F=Ye.maxLength,M=Ye.minLength)=>{const H=w?S:P;g[y]={type:w?F:M,message:H,ref:f,...x(w?F:M,H)}};if(i?!Array.isArray(u)||!u.length:O&&(!k&&(N||$e(u))||pt(u)&&!u||A&&!oo(h).isValid||T&&!ao(h).isValid)){const{value:w,message:S}=Dt(O)?{value:!!O,message:O}:ft(O);if(w&&(g[y]={type:Ye.required,message:S,ref:b,...x(Ye.required,S)},!t))return s(S),g}if(!N&&(!$e(p)||!$e(l))){let w,S;const P=ft(l),F=ft(p);if(!$e(u)&&!isNaN(u)){const M=f.valueAsNumber||u&&+u;$e(P.value)||(w=M>P.value),$e(F.value)||(S=M<F.value)}else{const M=f.valueAsDate||new Date(u),H=D=>new Date(new Date().toDateString()+" "+D),Q=f.type=="time",C=f.type=="week";Ze(P.value)&&u&&(w=Q?H(u)>H(P.value):C?u>P.value:M>new Date(P.value)),Ze(F.value)&&u&&(S=Q?H(u)<H(F.value):C?u<F.value:M<new Date(F.value))}if((w||S)&&(E(!!w,P.message,F.message,Ye.max,Ye.min),!t))return s(g[y].message),g}if((m||_)&&!N&&(Ze(u)||i&&Array.isArray(u))){const w=ft(m),S=ft(_),P=!$e(w.value)&&u.length>+w.value,F=!$e(S.value)&&u.length<+S.value;if((P||F)&&(E(P,w.message,S.message),!t))return s(g[y].message),g}if(o&&!N&&Ze(u)){const{value:w,message:S}=ft(o);if(Vt(w)&&!u.match(w)&&(g[y]={type:Ye.pattern,message:S,ref:f,...x(Ye.pattern,S)},!t))return s(S),g}if(a){if(Je(a)){const w=await a(u,n),S=Mn(w,b);if(S&&(g[y]={...S,...x(Ye.validate,S.message)},!t))return s(S.message),g}else if(Pe(a)){let w={};for(const S in a){if(!Ve(w)&&!t)break;const P=Mn(await a[S](u,n),b,S);P&&(w={...P,...x(S,P.message)},s(P.message),t&&(g[y]=w))}if(!Ve(w)&&(g[y]={ref:b,...w},!t))return g}}return s(!0),g};function sg(e,n){const t=n.slice(0,-1).length;let r=0;for(;r<t;)e=ke(e)?r++:e[n[r++]];return e}function ug(e){for(const n in e)if(!ke(e[n]))return!1;return!0}function De(e,n){const t=Array.isArray(n)?n:Br(n)?[n]:no(n),r=t.length===1?e:sg(e,t),i=t.length-1,f=t[i];return r&&delete r[f],i!==0&&(Pe(r)&&Ve(r)||Array.isArray(r)&&ug(r))&&De(e,t.slice(0,-1)),e}function ar(){let e=[];return{get observers(){return e},next:i=>{for(const f of e)f.next&&f.next(i)},subscribe:i=>(e.push(i),{unsubscribe:()=>{e=e.filter(f=>f!==i)}}),unsubscribe:()=>{e=[]}}}var Ht=e=>$e(e)||!Zi(e);function ot(e,n){if(Ht(e)||Ht(n))return e===n;if(ht(e)&&ht(n))return e.getTime()===n.getTime();const t=Object.keys(e),r=Object.keys(n);if(t.length!==r.length)return!1;for(const i of t){const f=e[i];if(!r.includes(i))return!1;if(i!=="ref"){const h=n[i];if(ht(f)&&ht(h)||Pe(f)&&Pe(h)||Array.isArray(f)&&Array.isArray(h)?!ot(f,h):f!==h)return!1}}return!0}var lo=e=>e.type==="select-multiple",fg=e=>Vr(e)||kt(e),lr=e=>Ut(e)&&e.isConnected,so=e=>{for(const n in e)if(Je(e[n]))return!0;return!1};function zt(e,n={}){const t=Array.isArray(e);if(Pe(e)||t)for(const r in e)Array.isArray(e[r])||Pe(e[r])&&!so(e[r])?(n[r]=Array.isArray(e[r])?[]:{},zt(e[r],n[r])):$e(e[r])||(n[r]=!0);return n}function uo(e,n,t){const r=Array.isArray(e);if(Pe(e)||r)for(const i in e)Array.isArray(e[i])||Pe(e[i])&&!so(e[i])?ke(n)||Ht(t[i])?t[i]=Array.isArray(e[i])?zt(e[i],[]):{...zt(e[i])}:uo(e[i],$e(n)?{}:n[i],t[i]):t[i]=!ot(e[i],n[i]);return t}var sr=(e,n)=>uo(e,n,zt(n)),fo=(e,{valueAsNumber:n,valueAsDate:t,setValueAs:r})=>ke(e)?e:n?e===""?NaN:e&&+e:t&&Ze(e)?new Date(e):r?r(e):e;function ur(e){const n=e.ref;if(!(e.refs?e.refs.every(t=>t.disabled):n.disabled))return Ur(n)?n.files:Vr(n)?ao(e.refs).value:lo(n)?[...n.selectedOptions].map(({value:t})=>t):kt(n)?oo(e.refs).value:fo(ke(n.value)?e.ref.value:n.value,e)}var cg=(e,n,t,r)=>{const i={};for(const f of e){const h=se(n,f);h&&Oe(i,f,h._f)}return{criteriaMode:t,names:[...e],fields:i,shouldUseNativeValidation:r}},Ot=e=>ke(e)?e:Vt(e)?e.source:Pe(e)?Vt(e.value)?e.value.source:e.value:e,dg=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function Un(e,n,t){const r=se(e,t);if(r||Br(t))return{error:r,name:t};const i=t.split(".");for(;i.length;){const f=i.join("."),h=se(n,f),O=se(e,f);if(h&&!Array.isArray(h)&&t!==f)return{name:t};if(O&&O.type)return{name:f,error:O};i.pop()}return{name:t}}var hg=(e,n,t,r,i)=>i.isOnAll?!1:!t&&i.isOnTouch?!(n||e):(t?r.isOnBlur:i.isOnBlur)?!e:(t?r.isOnChange:i.isOnChange)?e:!0,pg=(e,n)=>!St(se(e,n)).length&&De(e,n);const vg={mode:Ke.onSubmit,reValidateMode:Ke.onChange,shouldFocusError:!0};function yg(e={},n){let t={...vg,...e},r={submitCount:0,isDirty:!1,isLoading:Je(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},errors:{}},i={},f=Pe(t.defaultValues)||Pe(t.values)?Xe(t.defaultValues||t.values)||{}:{},h=t.shouldUnregister?{}:Xe(f),O={action:!1,mount:!1,watch:!1},m={mount:new Set,unMount:new Set,array:new Set,watch:new Set},_,p=0;const l={isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},o={values:ar(),array:ar(),state:ar()},a=e.resetOptions&&e.resetOptions.keepDirtyValues,y=Dn(t.mode),d=Dn(t.reValidateMode),v=t.criteriaMode===Ke.all,c=I=>Y=>{clearTimeout(p),p=setTimeout(I,Y)},u=async I=>{if(l.isValid||I){const Y=t.resolver?Ve((await N()).errors):await E(i,!0);Y!==r.isValid&&o.state.next({isValid:Y})}},b=I=>l.isValidating&&o.state.next({isValidating:I}),s=(I,Y=[],X,z,U=!0,G=!0)=>{if(z&&X){if(O.action=!0,G&&Array.isArray(se(i,I))){const te=X(se(i,I),z.argA,z.argB);U&&Oe(i,I,te)}if(G&&Array.isArray(se(r.errors,I))){const te=X(se(r.errors,I),z.argA,z.argB);U&&Oe(r.errors,I,te),pg(r.errors,I)}if(l.touchedFields&&G&&Array.isArray(se(r.touchedFields,I))){const te=X(se(r.touchedFields,I),z.argA,z.argB);U&&Oe(r.touchedFields,I,te)}l.dirtyFields&&(r.dirtyFields=sr(f,h)),o.state.next({name:I,isDirty:S(I,Y),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else Oe(h,I,Y)},g=(I,Y)=>{Oe(r.errors,I,Y),o.state.next({errors:r.errors})},T=(I,Y,X,z)=>{const U=se(i,I);if(U){const G=se(h,I,ke(X)?se(f,I):X);ke(G)||z&&z.defaultChecked||Y?Oe(h,I,Y?G:ur(U._f)):M(I,G),O.mount&&u()}},A=(I,Y,X,z,U)=>{let G=!1,te=!1;const ee={name:I};if(!X||z){l.isDirty&&(te=r.isDirty,r.isDirty=ee.isDirty=S(),G=te!==ee.isDirty);const ue=ot(se(f,I),Y);te=se(r.dirtyFields,I),ue?De(r.dirtyFields,I):Oe(r.dirtyFields,I,!0),ee.dirtyFields=r.dirtyFields,G=G||l.dirtyFields&&te!==!ue}if(X){const ue=se(r.touchedFields,I);ue||(Oe(r.touchedFields,I,X),ee.touchedFields=r.touchedFields,G=G||l.touchedFields&&ue!==X)}return G&&U&&o.state.next(ee),G?ee:{}},k=(I,Y,X,z)=>{const U=se(r.errors,I),G=l.isValid&&pt(Y)&&r.isValid!==Y;if(e.delayError&&X?(_=c(()=>g(I,X)),_(e.delayError)):(clearTimeout(p),_=null,X?Oe(r.errors,I,X):De(r.errors,I)),(X?!ot(U,X):U)||!Ve(z)||G){const te={...z,...G&&pt(Y)?{isValid:Y}:{},errors:r.errors,name:I};r={...r,...te},o.state.next(te)}b(!1)},N=async I=>t.resolver(h,t.context,cg(I||m.mount,i,t.criteriaMode,t.shouldUseNativeValidation)),x=async I=>{const{errors:Y}=await N();if(I)for(const X of I){const z=se(Y,X);z?Oe(r.errors,X,z):De(r.errors,X)}else r.errors=Y;return Y},E=async(I,Y,X={valid:!0})=>{for(const z in I){const U=I[z];if(U){const{_f:G,...te}=U;if(G){const ee=m.array.has(G.name),ue=await Bn(U,h,v,t.shouldUseNativeValidation&&!Y,ee);if(ue[G.name]&&(X.valid=!1,Y))break;!Y&&(se(ue,G.name)?ee?lg(r.errors,ue,G.name):Oe(r.errors,G.name,ue[G.name]):De(r.errors,G.name))}te&&await E(te,Y,X)}}return X.valid},w=()=>{for(const I of m.unMount){const Y=se(i,I);Y&&(Y._f.refs?Y._f.refs.every(X=>!lr(X)):!lr(Y._f.ref))&&L(I)}m.unMount=new Set},S=(I,Y)=>(I&&Y&&Oe(h,I,Y),!ot(q(),f)),P=(I,Y,X)=>ro(I,m,{...O.mount?h:ke(Y)?f:Ze(I)?{[I]:Y}:Y},X,Y),F=I=>St(se(O.mount?h:f,I,e.shouldUnregister?se(f,I,[]):[])),M=(I,Y,X={})=>{const z=se(i,I);let U=Y;if(z){const G=z._f;G&&(!G.disabled&&Oe(h,I,fo(Y,G)),U=Ut(G.ref)&&$e(Y)?"":Y,lo(G.ref)?[...G.ref.options].forEach(te=>te.selected=U.includes(te.value)):G.refs?kt(G.ref)?G.refs.length>1?G.refs.forEach(te=>(!te.defaultChecked||!te.disabled)&&(te.checked=Array.isArray(U)?!!U.find(ee=>ee===te.value):U===te.value)):G.refs[0]&&(G.refs[0].checked=!!U):G.refs.forEach(te=>te.checked=te.value===U):Ur(G.ref)?G.ref.value="":(G.ref.value=U,G.ref.type||o.values.next({name:I,values:{...h}})))}(X.shouldDirty||X.shouldTouch)&&A(I,U,X.shouldTouch,X.shouldDirty,!0),X.shouldValidate&&D(I)},H=(I,Y,X)=>{for(const z in Y){const U=Y[z],G=`${I}.${z}`,te=se(i,G);(m.array.has(I)||!Ht(U)||te&&!te._f)&&!ht(U)?H(G,U,X):M(G,U,X)}},Q=(I,Y,X={})=>{const z=se(i,I),U=m.array.has(I),G=Xe(Y);Oe(h,I,G),U?(o.array.next({name:I,values:{...h}}),(l.isDirty||l.dirtyFields)&&X.shouldDirty&&o.state.next({name:I,dirtyFields:sr(f,h),isDirty:S(I,G)})):z&&!z._f&&!$e(G)?H(I,G,X):M(I,G,X),jn(I,m)&&o.state.next({...r}),o.values.next({name:I,values:{...h}}),!O.mount&&n()},C=async I=>{const Y=I.target;let X=Y.name,z=!0;const U=se(i,X),G=()=>Y.type?ur(U._f):Yi(I);if(U){let te,ee;const ue=G(),he=I.type===Bt.BLUR||I.type===Bt.FOCUS_OUT,ye=!dg(U._f)&&!t.resolver&&!se(r.errors,X)&&!U._f.deps||hg(he,se(r.touchedFields,X),r.isSubmitted,d,y),qe=jn(X,m,he);Oe(h,X,ue),he?(U._f.onBlur&&U._f.onBlur(I),_&&_(0)):U._f.onChange&&U._f.onChange(I);const Re=A(X,ue,he,!1),_e=!Ve(Re)||qe;if(!he&&o.values.next({name:X,type:I.type,values:{...h}}),ye)return l.isValid&&u(),_e&&o.state.next({name:X,...qe?{}:Re});if(!he&&qe&&o.state.next({...r}),b(!0),t.resolver){const{errors:ne}=await N([X]),K=Un(r.errors,i,X),oe=Un(ne,i,K.name||X);te=oe.error,X=oe.name,ee=Ve(ne)}else te=(await Bn(U,h,v,t.shouldUseNativeValidation))[X],z=isNaN(ue)||ue===se(h,X,ue),z&&(te?ee=!1:l.isValid&&(ee=await E(i,!0)));z&&(U._f.deps&&D(U._f.deps),k(X,ee,te,Re))}},D=async(I,Y={})=>{let X,z;const U=Ft(I);if(b(!0),t.resolver){const G=await x(ke(I)?I:U);X=Ve(G),z=I?!U.some(te=>se(G,te)):X}else I?(z=(await Promise.all(U.map(async G=>{const te=se(i,G);return await E(te&&te._f?{[G]:te}:te)}))).every(Boolean),!(!z&&!r.isValid)&&u()):z=X=await E(i);return o.state.next({...!Ze(I)||l.isValid&&X!==r.isValid?{}:{name:I},...t.resolver||!I?{isValid:X}:{},errors:r.errors,isValidating:!1}),Y.shouldFocus&&!z&&Tr(i,G=>G&&se(r.errors,G),I?U:m.mount),z},q=I=>{const Y={...f,...O.mount?h:{}};return ke(I)?Y:Ze(I)?se(Y,I):I.map(X=>se(Y,X))},R=(I,Y)=>({invalid:!!se((Y||r).errors,I),isDirty:!!se((Y||r).dirtyFields,I),isTouched:!!se((Y||r).touchedFields,I),error:se((Y||r).errors,I)}),j=I=>{I&&Ft(I).forEach(Y=>De(r.errors,Y)),o.state.next({errors:I?r.errors:{}})},B=(I,Y,X)=>{const z=(se(i,I,{_f:{}})._f||{}).ref;Oe(r.errors,I,{...Y,ref:z}),o.state.next({name:I,errors:r.errors,isValid:!1}),X&&X.shouldFocus&&z&&z.focus&&z.focus()},V=(I,Y)=>Je(I)?o.values.subscribe({next:X=>I(P(void 0,Y),X)}):P(I,Y,!0),L=(I,Y={})=>{for(const X of I?Ft(I):m.mount)m.mount.delete(X),m.array.delete(X),Y.keepValue||(De(i,X),De(h,X)),!Y.keepError&&De(r.errors,X),!Y.keepDirty&&De(r.dirtyFields,X),!Y.keepTouched&&De(r.touchedFields,X),!t.shouldUnregister&&!Y.keepDefaultValue&&De(f,X);o.values.next({values:{...h}}),o.state.next({...r,...Y.keepDirty?{isDirty:S()}:{}}),!Y.keepIsValid&&u()},$=(I,Y={})=>{let X=se(i,I);const z=pt(Y.disabled);return Oe(i,I,{...X||{},_f:{...X&&X._f?X._f:{ref:{name:I}},name:I,mount:!0,...Y}}),m.mount.add(I),X?z&&Oe(h,I,Y.disabled?void 0:se(h,I,ur(X._f))):T(I,!0,Y.value),{...z?{disabled:Y.disabled}:{},...t.shouldUseNativeValidation?{required:!!Y.required,min:Ot(Y.min),max:Ot(Y.max),minLength:Ot(Y.minLength),maxLength:Ot(Y.maxLength),pattern:Ot(Y.pattern)}:{},name:I,onChange:C,onBlur:C,ref:U=>{if(U){$(I,Y),X=se(i,I);const G=ke(U.value)&&U.querySelectorAll&&U.querySelectorAll("input,select,textarea")[0]||U,te=fg(G),ee=X._f.refs||[];if(te?ee.find(ue=>ue===G):G===X._f.ref)return;Oe(i,I,{_f:{...X._f,...te?{refs:[...ee.filter(lr),G,...Array.isArray(se(f,I))?[{}]:[]],ref:{type:G.type,name:I}}:{ref:G}}}),T(I,!1,void 0,G)}else X=se(i,I,{}),X._f&&(X._f.mount=!1),(t.shouldUnregister||Y.shouldUnregister)&&!(Xi(m.array,I)&&O.action)&&m.unMount.add(I)}}},Z=()=>t.shouldFocusError&&Tr(i,I=>I&&se(r.errors,I),m.mount),W=(I,Y)=>async X=>{X&&(X.preventDefault&&X.preventDefault(),X.persist&&X.persist());let z=Xe(h);if(o.state.next({isSubmitting:!0}),t.resolver){const{errors:U,values:G}=await N();r.errors=U,z=G}else await E(i);De(r.errors,"root"),Ve(r.errors)?(o.state.next({errors:{}}),await I(z,X)):(Y&&await Y({...r.errors},X),Z(),setTimeout(Z)),o.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Ve(r.errors),submitCount:r.submitCount+1,errors:r.errors})},J=(I,Y={})=>{se(i,I)&&(ke(Y.defaultValue)?Q(I,se(f,I)):(Q(I,Y.defaultValue),Oe(f,I,Y.defaultValue)),Y.keepTouched||De(r.touchedFields,I),Y.keepDirty||(De(r.dirtyFields,I),r.isDirty=Y.defaultValue?S(I,se(f,I)):S()),Y.keepError||(De(r.errors,I),l.isValid&&u()),o.state.next({...r}))},le=(I,Y={})=>{const X=I||f,z=Xe(X),U=I&&!Ve(I)?z:f;if(Y.keepDefaultValues||(f=X),!Y.keepValues){if(Y.keepDirtyValues||a)for(const G of m.mount)se(r.dirtyFields,G)?Oe(U,G,se(h,G)):Q(G,se(U,G));else{if(Cr&&ke(I))for(const G of m.mount){const te=se(i,G);if(te&&te._f){const ee=Array.isArray(te._f.refs)?te._f.refs[0]:te._f.ref;if(Ut(ee)){const ue=ee.closest("form");if(ue){ue.reset();break}}}}i={}}h=e.shouldUnregister?Y.keepDefaultValues?Xe(f):{}:z,o.array.next({values:{...U}}),o.values.next({values:{...U}})}m={mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},!O.mount&&n(),O.mount=!l.isValid||!!Y.keepIsValid,O.watch=!!e.shouldUnregister,o.state.next({submitCount:Y.keepSubmitCount?r.submitCount:0,isDirty:Y.keepDirty?r.isDirty:!!(Y.keepDefaultValues&&!ot(I,f)),isSubmitted:Y.keepIsSubmitted?r.isSubmitted:!1,dirtyFields:Y.keepDirtyValues?r.dirtyFields:Y.keepDefaultValues&&I?sr(f,I):{},touchedFields:Y.keepTouched?r.touchedFields:{},errors:Y.keepErrors?r.errors:{},isSubmitting:!1,isSubmitSuccessful:!1})},de=(I,Y)=>le(Je(I)?I(h):I,Y),pe=(I,Y={})=>{const X=se(i,I),z=X&&X._f;if(z){const U=z.refs?z.refs[0]:z.ref;U.focus&&(U.focus(),Y.shouldSelect&&U.select())}},ve=I=>{r={...r,...I}};return Je(t.defaultValues)&&t.defaultValues().then(I=>{de(I,t.resetOptions),o.state.next({isLoading:!1})}),{control:{register:$,unregister:L,getFieldState:R,_executeSchema:N,_getWatch:P,_getDirty:S,_updateValid:u,_removeUnmounted:w,_updateFieldArray:s,_getFieldArray:F,_reset:le,_updateFormState:ve,_subjects:o,_proxyFormState:l,get _fields(){return i},get _formValues(){return h},get _state(){return O},set _state(I){O=I},get _defaultValues(){return f},get _names(){return m},set _names(I){m=I},get _formState(){return r},set _formState(I){r=I},get _options(){return t},set _options(I){t={...t,...I}}},trigger:D,register:$,handleSubmit:W,watch:V,setValue:Q,getValues:q,reset:de,resetField:J,clearErrors:j,unregister:L,setError:B,setFocus:pe,getFieldState:R}}function $g(e={}){const n=Se.useRef(),[t,r]=Se.useState({isDirty:!1,isValidating:!1,isLoading:Je(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},errors:{},defaultValues:Je(e.defaultValues)?void 0:e.defaultValues});n.current||(n.current={...yg(e,()=>r(f=>({...f}))),formState:t});const i=n.current.control;return i._options=e,Mr({subject:i._subjects.state,next:f=>{eo(f,i._proxyFormState,i._updateFormState,!0)&&r({...i._formState})}}),Se.useEffect(()=>{e.values&&!ot(e.values,i._defaultValues)&&i._reset(e.values,i._options.resetOptions)},[e.values,i]),Se.useEffect(()=>{i._state.mount||(i._updateValid(),i._state.mount=!0),i._state.watch&&(i._state.watch=!1,i._subjects.state.next({...i._formState})),i._removeUnmounted()}),n.current.formState=Ji(t,i),n.current}var Vn=function(e,n,t){if(e&&"reportValidity"in e){var r=se(t,n);e.setCustomValidity(r&&r.message||""),e.reportValidity()}},co=function(e,n){var t=function(i){var f=n.fields[i];f&&f.ref&&"reportValidity"in f.ref?Vn(f.ref,i,e):f.refs&&f.refs.forEach(function(h){return Vn(h,i,e)})};for(var r in n.fields)t(r)},gg=function(e,n){n.shouldUseNativeValidation&&co(e,n);var t={};for(var r in e){var i=se(n.fields,r);Oe(t,r,Object.assign(e[r],{ref:i&&i.ref}))}return t},Cg=function(e,n,t){return n===void 0&&(n={}),t===void 0&&(t={}),function(r,i,f){try{return Promise.resolve(function(h,O){try{var m=(n.context,Promise.resolve(e[t.mode==="sync"?"validateSync":"validate"](r,Object.assign({abortEarly:!1},n,{context:i}))).then(function(_){return f.shouldUseNativeValidation&&co({},f),{values:t.rawValues?r:_,errors:{}}}))}catch(_){return O(_)}return m&&m.then?m.then(void 0,O):m}(0,function(h){if(!h.inner)throw h;return{values:{},errors:gg((O=h,m=!f.shouldUseNativeValidation&&f.criteriaMode==="all",(O.inner||[]).reduce(function(_,p){if(_[p.path]||(_[p.path]={message:p.message,type:p.type}),m){var l=_[p.path].types,o=l&&l[p.type];_[p.path]=io(p.path,m,_,p.type,o?[].concat(o,p.message):p.message)}return _},{})),f)};var O,m}))}catch(h){return Promise.reject(h)}}};(()=>{var e={296:(i,f,h)=>{var O=/^\s+|\s+$/g,m=/^[-+]0x[0-9a-f]+$/i,_=/^0b[01]+$/i,p=/^0o[0-7]+$/i,l=parseInt,o=typeof h.g=="object"&&h.g&&h.g.Object===Object&&h.g,a=typeof self=="object"&&self&&self.Object===Object&&self,y=o||a||Function("return this")(),d=Object.prototype.toString,v=Math.max,c=Math.min,u=function(){return y.Date.now()};function b(g){var T=typeof g;return!!g&&(T=="object"||T=="function")}function s(g){if(typeof g=="number")return g;if(function(k){return typeof k=="symbol"||function(N){return!!N&&typeof N=="object"}(k)&&d.call(k)=="[object Symbol]"}(g))return NaN;if(b(g)){var T=typeof g.valueOf=="function"?g.valueOf():g;g=b(T)?T+"":T}if(typeof g!="string")return g===0?g:+g;g=g.replace(O,"");var A=_.test(g);return A||p.test(g)?l(g.slice(2),A?2:8):m.test(g)?NaN:+g}i.exports=function(g,T,A){var k,N,x,E,w,S,P=0,F=!1,M=!1,H=!0;if(typeof g!="function")throw new TypeError("Expected a function");function Q(B){var V=k,L=N;return k=N=void 0,P=B,E=g.apply(L,V)}function C(B){return P=B,w=setTimeout(q,T),F?Q(B):E}function D(B){var V=B-S;return S===void 0||V>=T||V<0||M&&B-P>=x}function q(){var B=u();if(D(B))return R(B);w=setTimeout(q,function(V){var L=T-(V-S);return M?c(L,x-(V-P)):L}(B))}function R(B){return w=void 0,H&&k?Q(B):(k=N=void 0,E)}function j(){var B=u(),V=D(B);if(k=arguments,N=this,S=B,V){if(w===void 0)return C(S);if(M)return w=setTimeout(q,T),Q(S)}return w===void 0&&(w=setTimeout(q,T)),E}return T=s(T)||0,b(A)&&(F=!!A.leading,x=(M="maxWait"in A)?v(s(A.maxWait)||0,T):x,H="trailing"in A?!!A.trailing:H),j.cancel=function(){w!==void 0&&clearTimeout(w),P=0,k=S=N=w=void 0},j.flush=function(){return w===void 0?E:R(u())},j}},96:(i,f,h)=>{var O="Expected a function",m=/^\s+|\s+$/g,_=/^[-+]0x[0-9a-f]+$/i,p=/^0b[01]+$/i,l=/^0o[0-7]+$/i,o=parseInt,a=typeof h.g=="object"&&h.g&&h.g.Object===Object&&h.g,y=typeof self=="object"&&self&&self.Object===Object&&self,d=a||y||Function("return this")(),v=Object.prototype.toString,c=Math.max,u=Math.min,b=function(){return d.Date.now()};function s(T){var A=typeof T;return!!T&&(A=="object"||A=="function")}function g(T){if(typeof T=="number")return T;if(function(N){return typeof N=="symbol"||function(x){return!!x&&typeof x=="object"}(N)&&v.call(N)=="[object Symbol]"}(T))return NaN;if(s(T)){var A=typeof T.valueOf=="function"?T.valueOf():T;T=s(A)?A+"":A}if(typeof T!="string")return T===0?T:+T;T=T.replace(m,"");var k=p.test(T);return k||l.test(T)?o(T.slice(2),k?2:8):_.test(T)?NaN:+T}i.exports=function(T,A,k){var N=!0,x=!0;if(typeof T!="function")throw new TypeError(O);return s(k)&&(N="leading"in k?!!k.leading:N,x="trailing"in k?!!k.trailing:x),function(E,w,S){var P,F,M,H,Q,C,D=0,q=!1,R=!1,j=!0;if(typeof E!="function")throw new TypeError(O);function B(J){var le=P,de=F;return P=F=void 0,D=J,H=E.apply(de,le)}function V(J){return D=J,Q=setTimeout($,w),q?B(J):H}function L(J){var le=J-C;return C===void 0||le>=w||le<0||R&&J-D>=M}function $(){var J=b();if(L(J))return Z(J);Q=setTimeout($,function(le){var de=w-(le-C);return R?u(de,M-(le-D)):de}(J))}function Z(J){return Q=void 0,j&&P?B(J):(P=F=void 0,H)}function W(){var J=b(),le=L(J);if(P=arguments,F=this,C=J,le){if(Q===void 0)return V(C);if(R)return Q=setTimeout($,w),B(C)}return Q===void 0&&(Q=setTimeout($,w)),H}return w=g(w)||0,s(S)&&(q=!!S.leading,M=(R="maxWait"in S)?c(g(S.maxWait)||0,w):M,j="trailing"in S?!!S.trailing:j),W.cancel=function(){Q!==void 0&&clearTimeout(Q),D=0,P=C=F=Q=void 0},W.flush=function(){return Q===void 0?H:Z(b())},W}(T,A,{leading:N,maxWait:A,trailing:x})}},703:(i,f,h)=>{var O=h(414);function m(){}function _(){}_.resetWarningCache=m,i.exports=function(){function p(a,y,d,v,c,u){if(u!==O){var b=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw b.name="Invariant Violation",b}}function l(){return p}p.isRequired=p;var o={array:p,bool:p,func:p,number:p,object:p,string:p,symbol:p,any:p,arrayOf:l,element:p,elementType:p,instanceOf:l,node:p,objectOf:l,oneOf:l,oneOfType:l,shape:l,exact:l,checkPropTypes:_,resetWarningCache:m};return o.PropTypes=o,o}},697:(i,f,h)=>{i.exports=h(703)()},414:i=>{i.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}},n={};function t(i){var f=n[i];if(f!==void 0)return f.exports;var h=n[i]={exports:{}};return e[i](h,h.exports,t),h.exports}t.n=i=>{var f=i&&i.__esModule?()=>i.default:()=>i;return t.d(f,{a:f}),f},t.d=(i,f)=>{for(var h in f)t.o(f,h)&&!t.o(i,h)&&Object.defineProperty(i,h,{enumerable:!0,get:f[h]})},t.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}(),t.o=(i,f)=>Object.prototype.hasOwnProperty.call(i,f),t.r=i=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(i,"__esModule",{value:!0})};var r={};(()=>{t.r(r),t.d(r,{LazyLoadComponent:()=>Y,LazyLoadImage:()=>_e,trackWindowScroll:()=>q});const i=Kn.exports;var f=t.n(i),h=t(697);const O=Gn.exports;var m=t.n(O);function _(){return typeof window<"u"&&"IntersectionObserver"in window&&"isIntersecting"in window.IntersectionObserverEntry.prototype}function p(ne){return(p=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(K){return typeof K}:function(K){return K&&typeof Symbol=="function"&&K.constructor===Symbol&&K!==Symbol.prototype?"symbol":typeof K})(ne)}function l(ne,K){var oe=Object.keys(ne);if(Object.getOwnPropertySymbols){var ae=Object.getOwnPropertySymbols(ne);K&&(ae=ae.filter(function(Le){return Object.getOwnPropertyDescriptor(ne,Le).enumerable})),oe.push.apply(oe,ae)}return oe}function o(ne,K,oe){return K in ne?Object.defineProperty(ne,K,{value:oe,enumerable:!0,configurable:!0,writable:!0}):ne[K]=oe,ne}function a(ne,K){for(var oe=0;oe<K.length;oe++){var ae=K[oe];ae.enumerable=ae.enumerable||!1,ae.configurable=!0,"value"in ae&&(ae.writable=!0),Object.defineProperty(ne,ae.key,ae)}}function y(ne,K){return(y=Object.setPrototypeOf||function(oe,ae){return oe.__proto__=ae,oe})(ne,K)}function d(ne,K){if(K&&(p(K)==="object"||typeof K=="function"))return K;if(K!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(oe){if(oe===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return oe}(ne)}function v(ne){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(K){return K.__proto__||Object.getPrototypeOf(K)})(ne)}var c=function(ne){ne.forEach(function(K){K.isIntersecting&&K.target.onVisible()})},u={},b=function(ne){(function(re,ie){if(typeof ie!="function"&&ie!==null)throw new TypeError("Super expression must either be null or a function");re.prototype=Object.create(ie&&ie.prototype,{constructor:{value:re,writable:!0,configurable:!0}}),ie&&y(re,ie)})(we,ne);var K,oe,ae,Le,Ge=(ae=we,Le=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var re,ie=v(ae);if(Le){var fe=v(this).constructor;re=Reflect.construct(ie,arguments,fe)}else re=ie.apply(this,arguments);return d(this,re)});function we(re){var ie;if(function(ce,me){if(!(ce instanceof me))throw new TypeError("Cannot call a class as a function")}(this,we),(ie=Ge.call(this,re)).supportsObserver=!re.scrollPosition&&re.useIntersectionObserver&&_(),ie.supportsObserver){var fe=re.threshold;ie.observer=function(ce){return u[ce]=u[ce]||new IntersectionObserver(c,{rootMargin:ce+"px"}),u[ce]}(fe)}return ie}return K=we,(oe=[{key:"componentDidMount",value:function(){this.placeholder&&this.observer&&(this.placeholder.onVisible=this.props.onVisible,this.observer.observe(this.placeholder)),this.supportsObserver||this.updateVisibility()}},{key:"componentWillUnmount",value:function(){this.observer&&this.placeholder&&this.observer.unobserve(this.placeholder)}},{key:"componentDidUpdate",value:function(){this.supportsObserver||this.updateVisibility()}},{key:"getPlaceholderBoundingBox",value:function(){var re=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.props.scrollPosition,ie=this.placeholder.getBoundingClientRect(),fe=m().findDOMNode(this.placeholder).style,ce={left:parseInt(fe.getPropertyValue("margin-left"),10)||0,top:parseInt(fe.getPropertyValue("margin-top"),10)||0};return{bottom:re.y+ie.bottom+ce.top,left:re.x+ie.left+ce.left,right:re.x+ie.right+ce.left,top:re.y+ie.top+ce.top}}},{key:"isPlaceholderInViewport",value:function(){if(typeof window>"u"||!this.placeholder)return!1;var re=this.props,ie=re.scrollPosition,fe=re.threshold,ce=this.getPlaceholderBoundingBox(ie),me=ie.y+window.innerHeight,be=ie.x,Ae=ie.x+window.innerWidth,Te=ie.y;return Boolean(Te-fe<=ce.bottom&&me+fe>=ce.top&&be-fe<=ce.right&&Ae+fe>=ce.left)}},{key:"updateVisibility",value:function(){this.isPlaceholderInViewport()&&this.props.onVisible()}},{key:"render",value:function(){var re=this,ie=this.props,fe=ie.className,ce=ie.height,me=ie.placeholder,be=ie.style,Ae=ie.width;if(me&&typeof me.type!="function")return f().cloneElement(me,{ref:function(Ee){return re.placeholder=Ee}});var Te=function(Ee){for(var Fe=1;Fe<arguments.length;Fe++){var Ne=arguments[Fe]!=null?arguments[Fe]:{};Fe%2?l(Object(Ne),!0).forEach(function(je){o(Ee,je,Ne[je])}):Object.getOwnPropertyDescriptors?Object.defineProperties(Ee,Object.getOwnPropertyDescriptors(Ne)):l(Object(Ne)).forEach(function(je){Object.defineProperty(Ee,je,Object.getOwnPropertyDescriptor(Ne,je))})}return Ee}({display:"inline-block"},be);return Ae!==void 0&&(Te.width=Ae),ce!==void 0&&(Te.height=ce),f().createElement("span",{className:fe,ref:function(Ee){return re.placeholder=Ee},style:Te},me)}}])&&a(K.prototype,oe),we}(f().Component);b.propTypes={onVisible:h.PropTypes.func.isRequired,className:h.PropTypes.string,height:h.PropTypes.oneOfType([h.PropTypes.number,h.PropTypes.string]),placeholder:h.PropTypes.element,threshold:h.PropTypes.number,useIntersectionObserver:h.PropTypes.bool,scrollPosition:h.PropTypes.shape({x:h.PropTypes.number.isRequired,y:h.PropTypes.number.isRequired}),width:h.PropTypes.oneOfType([h.PropTypes.number,h.PropTypes.string])},b.defaultProps={className:"",placeholder:null,threshold:100,useIntersectionObserver:!0};const s=b;var g=t(296),T=t.n(g),A=t(96),k=t.n(A),N=function(ne){var K=getComputedStyle(ne,null);return K.getPropertyValue("overflow")+K.getPropertyValue("overflow-y")+K.getPropertyValue("overflow-x")};const x=function(ne){if(!(ne instanceof HTMLElement))return window;for(var K=ne;K&&K instanceof HTMLElement;){if(/(scroll|auto)/.test(N(K)))return K;K=K.parentNode}return window};function E(ne){return(E=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(K){return typeof K}:function(K){return K&&typeof Symbol=="function"&&K.constructor===Symbol&&K!==Symbol.prototype?"symbol":typeof K})(ne)}var w=["delayMethod","delayTime"];function S(){return(S=Object.assign||function(ne){for(var K=1;K<arguments.length;K++){var oe=arguments[K];for(var ae in oe)Object.prototype.hasOwnProperty.call(oe,ae)&&(ne[ae]=oe[ae])}return ne}).apply(this,arguments)}function P(ne,K){for(var oe=0;oe<K.length;oe++){var ae=K[oe];ae.enumerable=ae.enumerable||!1,ae.configurable=!0,"value"in ae&&(ae.writable=!0),Object.defineProperty(ne,ae.key,ae)}}function F(ne,K){return(F=Object.setPrototypeOf||function(oe,ae){return oe.__proto__=ae,oe})(ne,K)}function M(ne,K){if(K&&(E(K)==="object"||typeof K=="function"))return K;if(K!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return H(ne)}function H(ne){if(ne===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ne}function Q(ne){return(Q=Object.setPrototypeOf?Object.getPrototypeOf:function(K){return K.__proto__||Object.getPrototypeOf(K)})(ne)}var C=function(){return typeof window>"u"?0:window.scrollX||window.pageXOffset},D=function(){return typeof window>"u"?0:window.scrollY||window.pageYOffset};const q=function(ne){var K=function(oe){(function(fe,ce){if(typeof ce!="function"&&ce!==null)throw new TypeError("Super expression must either be null or a function");fe.prototype=Object.create(ce&&ce.prototype,{constructor:{value:fe,writable:!0,configurable:!0}}),ce&&F(fe,ce)})(ie,oe);var ae,Le,Ge,we,re=(Ge=ie,we=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var fe,ce=Q(Ge);if(we){var me=Q(this).constructor;fe=Reflect.construct(ce,arguments,me)}else fe=ce.apply(this,arguments);return M(this,fe)});function ie(fe){var ce;if(function(be,Ae){if(!(be instanceof Ae))throw new TypeError("Cannot call a class as a function")}(this,ie),(ce=re.call(this,fe)).useIntersectionObserver=fe.useIntersectionObserver&&_(),ce.useIntersectionObserver)return M(ce);var me=ce.onChangeScroll.bind(H(ce));return fe.delayMethod==="debounce"?ce.delayedScroll=T()(me,fe.delayTime):fe.delayMethod==="throttle"&&(ce.delayedScroll=k()(me,fe.delayTime)),ce.state={scrollPosition:{x:C(),y:D()}},ce.baseComponentRef=f().createRef(),ce}return ae=ie,(Le=[{key:"componentDidMount",value:function(){this.addListeners()}},{key:"componentWillUnmount",value:function(){this.removeListeners()}},{key:"componentDidUpdate",value:function(){typeof window>"u"||this.useIntersectionObserver||x(m().findDOMNode(this.baseComponentRef.current))!==this.scrollElement&&(this.removeListeners(),this.addListeners())}},{key:"addListeners",value:function(){typeof window>"u"||this.useIntersectionObserver||(this.scrollElement=x(m().findDOMNode(this.baseComponentRef.current)),this.scrollElement.addEventListener("scroll",this.delayedScroll,{passive:!0}),window.addEventListener("resize",this.delayedScroll,{passive:!0}),this.scrollElement!==window&&window.addEventListener("scroll",this.delayedScroll,{passive:!0}))}},{key:"removeListeners",value:function(){typeof window>"u"||this.useIntersectionObserver||(this.scrollElement.removeEventListener("scroll",this.delayedScroll),window.removeEventListener("resize",this.delayedScroll),this.scrollElement!==window&&window.removeEventListener("scroll",this.delayedScroll))}},{key:"onChangeScroll",value:function(){this.useIntersectionObserver||this.setState({scrollPosition:{x:C(),y:D()}})}},{key:"render",value:function(){var fe=this.props,ce=(fe.delayMethod,fe.delayTime,function(be,Ae){if(be==null)return{};var Te,Ee,Fe=function(je,ut){if(je==null)return{};var rt,Nt,Hr={},zr=Object.keys(je);for(Nt=0;Nt<zr.length;Nt++)rt=zr[Nt],ut.indexOf(rt)>=0||(Hr[rt]=je[rt]);return Hr}(be,Ae);if(Object.getOwnPropertySymbols){var Ne=Object.getOwnPropertySymbols(be);for(Ee=0;Ee<Ne.length;Ee++)Te=Ne[Ee],Ae.indexOf(Te)>=0||Object.prototype.propertyIsEnumerable.call(be,Te)&&(Fe[Te]=be[Te])}return Fe}(fe,w)),me=this.useIntersectionObserver?null:this.state.scrollPosition;return f().createElement(ne,S({forwardRef:this.baseComponentRef,scrollPosition:me},ce))}}])&&P(ae.prototype,Le),ie}(f().Component);return K.propTypes={delayMethod:h.PropTypes.oneOf(["debounce","throttle"]),delayTime:h.PropTypes.number,useIntersectionObserver:h.PropTypes.bool},K.defaultProps={delayMethod:"throttle",delayTime:300,useIntersectionObserver:!0},K};function R(ne){return(R=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(K){return typeof K}:function(K){return K&&typeof Symbol=="function"&&K.constructor===Symbol&&K!==Symbol.prototype?"symbol":typeof K})(ne)}function j(ne,K){for(var oe=0;oe<K.length;oe++){var ae=K[oe];ae.enumerable=ae.enumerable||!1,ae.configurable=!0,"value"in ae&&(ae.writable=!0),Object.defineProperty(ne,ae.key,ae)}}function B(ne,K){return(B=Object.setPrototypeOf||function(oe,ae){return oe.__proto__=ae,oe})(ne,K)}function V(ne,K){if(K&&(R(K)==="object"||typeof K=="function"))return K;if(K!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(oe){if(oe===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return oe}(ne)}function L(ne){return(L=Object.setPrototypeOf?Object.getPrototypeOf:function(K){return K.__proto__||Object.getPrototypeOf(K)})(ne)}var $=function(ne){(function(re,ie){if(typeof ie!="function"&&ie!==null)throw new TypeError("Super expression must either be null or a function");re.prototype=Object.create(ie&&ie.prototype,{constructor:{value:re,writable:!0,configurable:!0}}),ie&&B(re,ie)})(we,ne);var K,oe,ae,Le,Ge=(ae=we,Le=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var re,ie=L(ae);if(Le){var fe=L(this).constructor;re=Reflect.construct(ie,arguments,fe)}else re=ie.apply(this,arguments);return V(this,re)});function we(re){return function(ie,fe){if(!(ie instanceof fe))throw new TypeError("Cannot call a class as a function")}(this,we),Ge.call(this,re)}return K=we,(oe=[{key:"render",value:function(){return f().createElement(s,this.props)}}])&&j(K.prototype,oe),we}(f().Component);const Z=q($);function W(ne){return(W=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(K){return typeof K}:function(K){return K&&typeof Symbol=="function"&&K.constructor===Symbol&&K!==Symbol.prototype?"symbol":typeof K})(ne)}function J(ne,K){for(var oe=0;oe<K.length;oe++){var ae=K[oe];ae.enumerable=ae.enumerable||!1,ae.configurable=!0,"value"in ae&&(ae.writable=!0),Object.defineProperty(ne,ae.key,ae)}}function le(ne,K){return(le=Object.setPrototypeOf||function(oe,ae){return oe.__proto__=ae,oe})(ne,K)}function de(ne,K){if(K&&(W(K)==="object"||typeof K=="function"))return K;if(K!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return pe(ne)}function pe(ne){if(ne===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ne}function ve(ne){return(ve=Object.setPrototypeOf?Object.getPrototypeOf:function(K){return K.__proto__||Object.getPrototypeOf(K)})(ne)}var I=function(ne){(function(re,ie){if(typeof ie!="function"&&ie!==null)throw new TypeError("Super expression must either be null or a function");re.prototype=Object.create(ie&&ie.prototype,{constructor:{value:re,writable:!0,configurable:!0}}),ie&&le(re,ie)})(we,ne);var K,oe,ae,Le,Ge=(ae=we,Le=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var re,ie=ve(ae);if(Le){var fe=ve(this).constructor;re=Reflect.construct(ie,arguments,fe)}else re=ie.apply(this,arguments);return de(this,re)});function we(re){var ie;(function(Ae,Te){if(!(Ae instanceof Te))throw new TypeError("Cannot call a class as a function")})(this,we),ie=Ge.call(this,re);var fe=re.afterLoad,ce=re.beforeLoad,me=re.scrollPosition,be=re.visibleByDefault;return ie.state={visible:be},be&&(ce(),fe()),ie.onVisible=ie.onVisible.bind(pe(ie)),ie.isScrollTracked=Boolean(me&&Number.isFinite(me.x)&&me.x>=0&&Number.isFinite(me.y)&&me.y>=0),ie}return K=we,(oe=[{key:"componentDidUpdate",value:function(re,ie){ie.visible!==this.state.visible&&this.props.afterLoad()}},{key:"onVisible",value:function(){this.props.beforeLoad(),this.setState({visible:!0})}},{key:"render",value:function(){if(this.state.visible)return this.props.children;var re=this.props,ie=re.className,fe=re.delayMethod,ce=re.delayTime,me=re.height,be=re.placeholder,Ae=re.scrollPosition,Te=re.style,Ee=re.threshold,Fe=re.useIntersectionObserver,Ne=re.width;return this.isScrollTracked||Fe&&_()?f().createElement(s,{className:ie,height:me,onVisible:this.onVisible,placeholder:be,scrollPosition:Ae,style:Te,threshold:Ee,useIntersectionObserver:Fe,width:Ne}):f().createElement(Z,{className:ie,delayMethod:fe,delayTime:ce,height:me,onVisible:this.onVisible,placeholder:be,style:Te,threshold:Ee,width:Ne})}}])&&J(K.prototype,oe),we}(f().Component);I.propTypes={afterLoad:h.PropTypes.func,beforeLoad:h.PropTypes.func,useIntersectionObserver:h.PropTypes.bool,visibleByDefault:h.PropTypes.bool},I.defaultProps={afterLoad:function(){return{}},beforeLoad:function(){return{}},useIntersectionObserver:!0,visibleByDefault:!1};const Y=I;function X(ne){return(X=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(K){return typeof K}:function(K){return K&&typeof Symbol=="function"&&K.constructor===Symbol&&K!==Symbol.prototype?"symbol":typeof K})(ne)}var z=["afterLoad","beforeLoad","delayMethod","delayTime","effect","placeholder","placeholderSrc","scrollPosition","threshold","useIntersectionObserver","visibleByDefault","wrapperClassName","wrapperProps"];function U(ne,K){var oe=Object.keys(ne);if(Object.getOwnPropertySymbols){var ae=Object.getOwnPropertySymbols(ne);K&&(ae=ae.filter(function(Le){return Object.getOwnPropertyDescriptor(ne,Le).enumerable})),oe.push.apply(oe,ae)}return oe}function G(ne){for(var K=1;K<arguments.length;K++){var oe=arguments[K]!=null?arguments[K]:{};K%2?U(Object(oe),!0).forEach(function(ae){te(ne,ae,oe[ae])}):Object.getOwnPropertyDescriptors?Object.defineProperties(ne,Object.getOwnPropertyDescriptors(oe)):U(Object(oe)).forEach(function(ae){Object.defineProperty(ne,ae,Object.getOwnPropertyDescriptor(oe,ae))})}return ne}function te(ne,K,oe){return K in ne?Object.defineProperty(ne,K,{value:oe,enumerable:!0,configurable:!0,writable:!0}):ne[K]=oe,ne}function ee(){return(ee=Object.assign||function(ne){for(var K=1;K<arguments.length;K++){var oe=arguments[K];for(var ae in oe)Object.prototype.hasOwnProperty.call(oe,ae)&&(ne[ae]=oe[ae])}return ne}).apply(this,arguments)}function ue(ne,K){for(var oe=0;oe<K.length;oe++){var ae=K[oe];ae.enumerable=ae.enumerable||!1,ae.configurable=!0,"value"in ae&&(ae.writable=!0),Object.defineProperty(ne,ae.key,ae)}}function he(ne,K){return(he=Object.setPrototypeOf||function(oe,ae){return oe.__proto__=ae,oe})(ne,K)}function ye(ne,K){if(K&&(X(K)==="object"||typeof K=="function"))return K;if(K!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(oe){if(oe===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return oe}(ne)}function qe(ne){return(qe=Object.setPrototypeOf?Object.getPrototypeOf:function(K){return K.__proto__||Object.getPrototypeOf(K)})(ne)}var Re=function(ne){(function(re,ie){if(typeof ie!="function"&&ie!==null)throw new TypeError("Super expression must either be null or a function");re.prototype=Object.create(ie&&ie.prototype,{constructor:{value:re,writable:!0,configurable:!0}}),ie&&he(re,ie)})(we,ne);var K,oe,ae,Le,Ge=(ae=we,Le=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var re,ie=qe(ae);if(Le){var fe=qe(this).constructor;re=Reflect.construct(ie,arguments,fe)}else re=ie.apply(this,arguments);return ye(this,re)});function we(re){var ie;return function(fe,ce){if(!(fe instanceof ce))throw new TypeError("Cannot call a class as a function")}(this,we),(ie=Ge.call(this,re)).state={loaded:!1},ie}return K=we,(oe=[{key:"onImageLoad",value:function(){var re=this;return this.state.loaded?null:function(){re.props.afterLoad(),re.setState({loaded:!0})}}},{key:"getImg",value:function(){var re=this.props,ie=(re.afterLoad,re.beforeLoad,re.delayMethod,re.delayTime,re.effect,re.placeholder,re.placeholderSrc,re.scrollPosition,re.threshold,re.useIntersectionObserver,re.visibleByDefault,re.wrapperClassName,re.wrapperProps,function(fe,ce){if(fe==null)return{};var me,be,Ae=function(Ee,Fe){if(Ee==null)return{};var Ne,je,ut={},rt=Object.keys(Ee);for(je=0;je<rt.length;je++)Ne=rt[je],Fe.indexOf(Ne)>=0||(ut[Ne]=Ee[Ne]);return ut}(fe,ce);if(Object.getOwnPropertySymbols){var Te=Object.getOwnPropertySymbols(fe);for(be=0;be<Te.length;be++)me=Te[be],ce.indexOf(me)>=0||Object.prototype.propertyIsEnumerable.call(fe,me)&&(Ae[me]=fe[me])}return Ae}(re,z));return f().createElement("img",ee({onLoad:this.onImageLoad()},ie))}},{key:"getLazyLoadImage",value:function(){var re=this.props,ie=re.beforeLoad,fe=re.className,ce=re.delayMethod,me=re.delayTime,be=re.height,Ae=re.placeholder,Te=re.scrollPosition,Ee=re.style,Fe=re.threshold,Ne=re.useIntersectionObserver,je=re.visibleByDefault,ut=re.width;return f().createElement(Y,{beforeLoad:ie,className:fe,delayMethod:ce,delayTime:me,height:be,placeholder:Ae,scrollPosition:Te,style:Ee,threshold:Fe,useIntersectionObserver:Ne,visibleByDefault:je,width:ut},this.getImg())}},{key:"getWrappedLazyLoadImage",value:function(re){var ie=this.props,fe=ie.effect,ce=ie.height,me=ie.placeholderSrc,be=ie.width,Ae=ie.wrapperClassName,Te=ie.wrapperProps,Ee=this.state.loaded,Fe=Ee?" lazy-load-image-loaded":"",Ne=Ee||!me?{}:{backgroundImage:"url(".concat(me,")"),backgroundSize:"100% 100%"};return f().createElement("span",ee({className:Ae+" lazy-load-image-background "+fe+Fe,style:G(G({},Ne),{},{color:"transparent",display:"inline-block",height:ce,width:be})},Te),re)}},{key:"render",value:function(){var re=this.props,ie=re.effect,fe=re.placeholderSrc,ce=re.visibleByDefault,me=re.wrapperClassName,be=re.wrapperProps,Ae=this.getLazyLoadImage();return(ie||fe)&&!ce||me||be?this.getWrappedLazyLoadImage(Ae):Ae}}])&&ue(K.prototype,oe),we}(f().Component);Re.propTypes={afterLoad:h.PropTypes.func,beforeLoad:h.PropTypes.func,delayMethod:h.PropTypes.string,delayTime:h.PropTypes.number,effect:h.PropTypes.string,placeholderSrc:h.PropTypes.string,threshold:h.PropTypes.number,useIntersectionObserver:h.PropTypes.bool,visibleByDefault:h.PropTypes.bool,wrapperClassName:h.PropTypes.string,wrapperProps:h.PropTypes.object},Re.defaultProps={afterLoad:function(){return{}},beforeLoad:function(){return{}},delayMethod:"throttle",delayTime:300,effect:"",placeholderSrc:null,threshold:100,useIntersectionObserver:!0,visibleByDefault:!1,wrapperClassName:""};const _e=Re})()})();at("div")(({theme:e})=>({width:144,height:144,margin:"auto",borderRadius:"50%",padding:e.spacing(1),border:`1px dashed ${e.palette.grey[50032]}`}));at("div")({zIndex:0,width:"100%",height:"100%",outline:"none",display:"flex",overflow:"hidden",borderRadius:"50%",position:"relative",alignItems:"center",justifyContent:"center","& > *":{width:"100%",height:"100%"},"&:hover":{cursor:"pointer","& .placeholder":{zIndex:9}}});at("div")(({theme:e})=>({display:"flex",position:"absolute",alignItems:"center",flexDirection:"column",justifyContent:"center",color:e.palette.text.secondary,backgroundColor:e.palette.background.neutral,transition:e.transitions.create("opacity",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.shorter}),"&:hover":{opacity:.72}}));at("div")(({theme:e})=>({outline:"none",padding:e.spacing(5,1),borderRadius:e.shape.borderRadius,backgroundColor:e.palette.background.neutral,border:`1px dashed ${e.palette.grey[50032]}`,"&:hover":{opacity:.72,cursor:"pointer"}}));at("div")(({theme:e})=>({outline:"none",overflow:"hidden",position:"relative",padding:e.spacing(5,1),borderRadius:e.shape.borderRadius,transition:e.transitions.create("padding"),backgroundColor:e.palette.background.neutral,border:`1px dashed ${e.palette.grey[50032]}`,"&:hover":{opacity:.72,cursor:"pointer"}}));function Mg({children:e,onSubmit:n,methods:t,encType:r}){return ge(rg,{...t,children:ge("form",{onSubmit:n,encType:r,children:e})})}var mg=Dr;function bg(e,n){return mg(e,n)}var _g=bg,ho={exports:{}};/*!
* Quill Editor v1.3.7
* https://quilljs.com/
* Copyright (c) 2014, Jason Chen
* Copyright (c) 2013, salesforce.com
*/(function(e,n){(function(r,i){e.exports=i()})(typeof self<"u"?self:Me,function(){return function(t){var r={};function i(f){if(r[f])return r[f].exports;var h=r[f]={i:f,l:!1,exports:{}};return t[f].call(h.exports,h,h.exports,i),h.l=!0,h.exports}return i.m=t,i.c=r,i.d=function(f,h,O){i.o(f,h)||Object.defineProperty(f,h,{configurable:!1,enumerable:!0,get:O})},i.n=function(f){var h=f&&f.__esModule?function(){return f.default}:function(){return f};return i.d(h,"a",h),h},i.o=function(f,h){return Object.prototype.hasOwnProperty.call(f,h)},i.p="",i(i.s=109)}([function(t,r,i){Object.defineProperty(r,"__esModule",{value:!0});var f=i(17),h=i(18),O=i(19),m=i(45),_=i(46),p=i(47),l=i(48),o=i(49),a=i(12),y=i(32),d=i(33),v=i(31),c=i(1),u={Scope:c.Scope,create:c.create,find:c.find,query:c.query,register:c.register,Container:f.default,Format:h.default,Leaf:O.default,Embed:l.default,Scroll:m.default,Block:p.default,Inline:_.default,Text:o.default,Attributor:{Attribute:a.default,Class:y.default,Style:d.default,Store:v.default}};r.default=u},function(t,r,i){var f=this&&this.__extends||function(){var v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,u){c.__proto__=u}||function(c,u){for(var b in u)u.hasOwnProperty(b)&&(c[b]=u[b])};return function(c,u){v(c,u);function b(){this.constructor=c}c.prototype=u===null?Object.create(u):(b.prototype=u.prototype,new b)}}();Object.defineProperty(r,"__esModule",{value:!0});var h=function(v){f(c,v);function c(u){var b=this;return u="[Parchment] "+u,b=v.call(this,u)||this,b.message=u,b.name=b.constructor.name,b}return c}(Error);r.ParchmentError=h;var O={},m={},_={},p={};r.DATA_KEY="__blot";var l;(function(v){v[v.TYPE=3]="TYPE",v[v.LEVEL=12]="LEVEL",v[v.ATTRIBUTE=13]="ATTRIBUTE",v[v.BLOT=14]="BLOT",v[v.INLINE=7]="INLINE",v[v.BLOCK=11]="BLOCK",v[v.BLOCK_BLOT=10]="BLOCK_BLOT",v[v.INLINE_BLOT=6]="INLINE_BLOT",v[v.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",v[v.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",v[v.ANY=15]="ANY"})(l=r.Scope||(r.Scope={}));function o(v,c){var u=y(v);if(u==null)throw new h("Unable to create "+v+" blot");var b=u,s=v instanceof Node||v.nodeType===Node.TEXT_NODE?v:b.create(c);return new b(s,c)}r.create=o;function a(v,c){return c===void 0&&(c=!1),v==null?null:v[r.DATA_KEY]!=null?v[r.DATA_KEY].blot:c?a(v.parentNode,c):null}r.find=a;function y(v,c){c===void 0&&(c=l.ANY);var u;if(typeof v=="string")u=p[v]||O[v];else if(v instanceof Text||v.nodeType===Node.TEXT_NODE)u=p.text;else if(typeof v=="number")v&l.LEVEL&l.BLOCK?u=p.block:v&l.LEVEL&l.INLINE&&(u=p.inline);else if(v instanceof HTMLElement){var b=(v.getAttribute("class")||"").split(/\s+/);for(var s in b)if(u=m[b[s]],u)break;u=u||_[v.tagName]}return u==null?null:c&l.LEVEL&u.scope&&c&l.TYPE&u.scope?u:null}r.query=y;function d(){for(var v=[],c=0;c<arguments.length;c++)v[c]=arguments[c];if(v.length>1)return v.map(function(s){return d(s)});var u=v[0];if(typeof u.blotName!="string"&&typeof u.attrName!="string")throw new h("Invalid definition");if(u.blotName==="abstract")throw new h("Cannot register abstract class");if(p[u.blotName||u.attrName]=u,typeof u.keyName=="string")O[u.keyName]=u;else if(u.className!=null&&(m[u.className]=u),u.tagName!=null){Array.isArray(u.tagName)?u.tagName=u.tagName.map(function(s){return s.toUpperCase()}):u.tagName=u.tagName.toUpperCase();var b=Array.isArray(u.tagName)?u.tagName:[u.tagName];b.forEach(function(s){(_[s]==null||u.className==null)&&(_[s]=u)})}return u}r.register=d},function(t,r,i){var f=i(51),h=i(11),O=i(3),m=i(20),_=String.fromCharCode(0),p=function(l){Array.isArray(l)?this.ops=l:l!=null&&Array.isArray(l.ops)?this.ops=l.ops:this.ops=[]};p.prototype.insert=function(l,o){var a={};return l.length===0?this:(a.insert=l,o!=null&&typeof o=="object"&&Object.keys(o).length>0&&(a.attributes=o),this.push(a))},p.prototype.delete=function(l){return l<=0?this:this.push({delete:l})},p.prototype.retain=function(l,o){if(l<=0)return this;var a={retain:l};return o!=null&&typeof o=="object"&&Object.keys(o).length>0&&(a.attributes=o),this.push(a)},p.prototype.push=function(l){var o=this.ops.length,a=this.ops[o-1];if(l=O(!0,{},l),typeof a=="object"){if(typeof l.delete=="number"&&typeof a.delete=="number")return this.ops[o-1]={delete:a.delete+l.delete},this;if(typeof a.delete=="number"&&l.insert!=null&&(o-=1,a=this.ops[o-1],typeof a!="object"))return this.ops.unshift(l),this;if(h(l.attributes,a.attributes)){if(typeof l.insert=="string"&&typeof a.insert=="string")return this.ops[o-1]={insert:a.insert+l.insert},typeof l.attributes=="object"&&(this.ops[o-1].attributes=l.attributes),this;if(typeof l.retain=="number"&&typeof a.retain=="number")return this.ops[o-1]={retain:a.retain+l.retain},typeof l.attributes=="object"&&(this.ops[o-1].attributes=l.attributes),this}}return o===this.ops.length?this.ops.push(l):this.ops.splice(o,0,l),this},p.prototype.chop=function(){var l=this.ops[this.ops.length-1];return l&&l.retain&&!l.attributes&&this.ops.pop(),this},p.prototype.filter=function(l){return this.ops.filter(l)},p.prototype.forEach=function(l){this.ops.forEach(l)},p.prototype.map=function(l){return this.ops.map(l)},p.prototype.partition=function(l){var o=[],a=[];return this.forEach(function(y){var d=l(y)?o:a;d.push(y)}),[o,a]},p.prototype.reduce=function(l,o){return this.ops.reduce(l,o)},p.prototype.changeLength=function(){return this.reduce(function(l,o){return o.insert?l+m.length(o):o.delete?l-o.delete:l},0)},p.prototype.length=function(){return this.reduce(function(l,o){return l+m.length(o)},0)},p.prototype.slice=function(l,o){l=l||0,typeof o!="number"&&(o=1/0);for(var a=[],y=m.iterator(this.ops),d=0;d<o&&y.hasNext();){var v;d<l?v=y.next(l-d):(v=y.next(o-d),a.push(v)),d+=m.length(v)}return new p(a)},p.prototype.compose=function(l){var o=m.iterator(this.ops),a=m.iterator(l.ops),y=[],d=a.peek();if(d!=null&&typeof d.retain=="number"&&d.attributes==null){for(var v=d.retain;o.peekType()==="insert"&&o.peekLength()<=v;)v-=o.peekLength(),y.push(o.next());d.retain-v>0&&a.next(d.retain-v)}for(var c=new p(y);o.hasNext()||a.hasNext();)if(a.peekType()==="insert")c.push(a.next());else if(o.peekType()==="delete")c.push(o.next());else{var u=Math.min(o.peekLength(),a.peekLength()),b=o.next(u),s=a.next(u);if(typeof s.retain=="number"){var g={};typeof b.retain=="number"?g.retain=u:g.insert=b.insert;var T=m.attributes.compose(b.attributes,s.attributes,typeof b.retain=="number");if(T&&(g.attributes=T),c.push(g),!a.hasNext()&&h(c.ops[c.ops.length-1],g)){var A=new p(o.rest());return c.concat(A).chop()}}else typeof s.delete=="number"&&typeof b.retain=="number"&&c.push(s)}return c.chop()},p.prototype.concat=function(l){var o=new p(this.ops.slice());return l.ops.length>0&&(o.push(l.ops[0]),o.ops=o.ops.concat(l.ops.slice(1))),o},p.prototype.diff=function(l,o){if(this.ops===l.ops)return new p;var a=[this,l].map(function(u){return u.map(function(b){if(b.insert!=null)return typeof b.insert=="string"?b.insert:_;var s=u===l?"on":"with";throw new Error("diff() called "+s+" non-document")}).join("")}),y=new p,d=f(a[0],a[1],o),v=m.iterator(this.ops),c=m.iterator(l.ops);return d.forEach(function(u){for(var b=u[1].length;b>0;){var s=0;switch(u[0]){case f.INSERT:s=Math.min(c.peekLength(),b),y.push(c.next(s));break;case f.DELETE:s=Math.min(b,v.peekLength()),v.next(s),y.delete(s);break;case f.EQUAL:s=Math.min(v.peekLength(),c.peekLength(),b);var g=v.next(s),T=c.next(s);h(g.insert,T.insert)?y.retain(s,m.attributes.diff(g.attributes,T.attributes)):y.push(T).delete(s);break}b-=s}}),y.chop()},p.prototype.eachLine=function(l,o){o=o||`
`;for(var a=m.iterator(this.ops),y=new p,d=0;a.hasNext();){if(a.peekType()!=="insert")return;var v=a.peek(),c=m.length(v)-a.peekLength(),u=typeof v.insert=="string"?v.insert.indexOf(o,c)-c:-1;if(u<0)y.push(a.next());else if(u>0)y.push(a.next(u));else{if(l(y,a.next(1).attributes||{},d)===!1)return;d+=1,y=new p}}y.length()>0&&l(y,{},d)},p.prototype.transform=function(l,o){if(o=!!o,typeof l=="number")return this.transformPosition(l,o);for(var a=m.iterator(this.ops),y=m.iterator(l.ops),d=new p;a.hasNext()||y.hasNext();)if(a.peekType()==="insert"&&(o||y.peekType()!=="insert"))d.retain(m.length(a.next()));else if(y.peekType()==="insert")d.push(y.next());else{var v=Math.min(a.peekLength(),y.peekLength()),c=a.next(v),u=y.next(v);if(c.delete)continue;u.delete?d.push(u):d.retain(v,m.attributes.transform(c.attributes,u.attributes,o))}return d.chop()},p.prototype.transformPosition=function(l,o){o=!!o;for(var a=m.iterator(this.ops),y=0;a.hasNext()&&y<=l;){var d=a.peekLength(),v=a.peekType();if(a.next(),v==="delete"){l-=Math.min(d,l-y);continue}else v==="insert"&&(y<l||!o)&&(l+=d);y+=d}return l},t.exports=p},function(t,r){var i=Object.prototype.hasOwnProperty,f=Object.prototype.toString,h=Object.defineProperty,O=Object.getOwnPropertyDescriptor,m=function(a){return typeof Array.isArray=="function"?Array.isArray(a):f.call(a)==="[object Array]"},_=function(a){if(!a||f.call(a)!=="[object Object]")return!1;var y=i.call(a,"constructor"),d=a.constructor&&a.constructor.prototype&&i.call(a.constructor.prototype,"isPrototypeOf");if(a.constructor&&!y&&!d)return!1;var v;for(v in a);return typeof v>"u"||i.call(a,v)},p=function(a,y){h&&y.name==="__proto__"?h(a,y.name,{enumerable:!0,configurable:!0,value:y.newValue,writable:!0}):a[y.name]=y.newValue},l=function(a,y){if(y==="__proto__")if(i.call(a,y)){if(O)return O(a,y).value}else return;return a[y]};t.exports=function o(){var a,y,d,v,c,u,b=arguments[0],s=1,g=arguments.length,T=!1;for(typeof b=="boolean"&&(T=b,b=arguments[1]||{},s=2),(b==null||typeof b!="object"&&typeof b!="function")&&(b={});s<g;++s)if(a=arguments[s],a!=null)for(y in a)d=l(b,y),v=l(a,y),b!==v&&(T&&v&&(_(v)||(c=m(v)))?(c?(c=!1,u=d&&m(d)?d:[]):u=d&&_(d)?d:{},p(b,{name:y,newValue:o(T,u,v)})):typeof v<"u"&&p(b,{name:y,newValue:v}));return b}},function(t,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.default=r.BlockEmbed=r.bubbleFormats=void 0;var f=function(){function E(w,S){for(var P=0;P<S.length;P++){var F=S[P];F.enumerable=F.enumerable||!1,F.configurable=!0,"value"in F&&(F.writable=!0),Object.defineProperty(w,F.key,F)}}return function(w,S,P){return S&&E(w.prototype,S),P&&E(w,P),w}}(),h=function E(w,S,P){w===null&&(w=Function.prototype);var F=Object.getOwnPropertyDescriptor(w,S);if(F===void 0){var M=Object.getPrototypeOf(w);return M===null?void 0:E(M,S,P)}else{if("value"in F)return F.value;var H=F.get;return H===void 0?void 0:H.call(P)}},O=i(3),m=b(O),_=i(2),p=b(_),l=i(0),o=b(l),a=i(16),y=b(a),d=i(6),v=b(d),c=i(7),u=b(c);function b(E){return E&&E.__esModule?E:{default:E}}function s(E,w){if(!(E instanceof w))throw new TypeError("Cannot call a class as a function")}function g(E,w){if(!E)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return w&&(typeof w=="object"||typeof w=="function")?w:E}function T(E,w){if(typeof w!="function"&&w!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof w);E.prototype=Object.create(w&&w.prototype,{constructor:{value:E,enumerable:!1,writable:!0,configurable:!0}}),w&&(Object.setPrototypeOf?Object.setPrototypeOf(E,w):E.__proto__=w)}var A=1,k=function(E){T(w,E);function w(){return s(this,w),g(this,(w.__proto__||Object.getPrototypeOf(w)).apply(this,arguments))}return f(w,[{key:"attach",value:function(){h(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"attach",this).call(this),this.attributes=new o.default.Attributor.Store(this.domNode)}},{key:"delta",value:function(){return new p.default().insert(this.value(),(0,m.default)(this.formats(),this.attributes.values()))}},{key:"format",value:function(P,F){var M=o.default.query(P,o.default.Scope.BLOCK_ATTRIBUTE);M!=null&&this.attributes.attribute(M,F)}},{key:"formatAt",value:function(P,F,M,H){this.format(M,H)}},{key:"insertAt",value:function(P,F,M){if(typeof F=="string"&&F.endsWith(`
`)){var H=o.default.create(N.blotName);this.parent.insertBefore(H,P===0?this:this.next),H.insertAt(0,F.slice(0,-1))}else h(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"insertAt",this).call(this,P,F,M)}}]),w}(o.default.Embed);k.scope=o.default.Scope.BLOCK_BLOT;var N=function(E){T(w,E);function w(S){s(this,w);var P=g(this,(w.__proto__||Object.getPrototypeOf(w)).call(this,S));return P.cache={},P}return f(w,[{key:"delta",value:function(){return this.cache.delta==null&&(this.cache.delta=this.descendants(o.default.Leaf).reduce(function(P,F){return F.length()===0?P:P.insert(F.value(),x(F))},new p.default).insert(`
`,x(this))),this.cache.delta}},{key:"deleteAt",value:function(P,F){h(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"deleteAt",this).call(this,P,F),this.cache={}}},{key:"formatAt",value:function(P,F,M,H){F<=0||(o.default.query(M,o.default.Scope.BLOCK)?P+F===this.length()&&this.format(M,H):h(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"formatAt",this).call(this,P,Math.min(F,this.length()-P-1),M,H),this.cache={})}},{key:"insertAt",value:function(P,F,M){if(M!=null)return h(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"insertAt",this).call(this,P,F,M);if(F.length!==0){var H=F.split(`
`),Q=H.shift();Q.length>0&&(P<this.length()-1||this.children.tail==null?h(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"insertAt",this).call(this,Math.min(P,this.length()-1),Q):this.children.tail.insertAt(this.children.tail.length(),Q),this.cache={});var C=this;H.reduce(function(D,q){return C=C.split(D,!0),C.insertAt(0,q),q.length},P+Q.length)}}},{key:"insertBefore",value:function(P,F){var M=this.children.head;h(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"insertBefore",this).call(this,P,F),M instanceof y.default&&M.remove(),this.cache={}}},{key:"length",value:function(){return this.cache.length==null&&(this.cache.length=h(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"length",this).call(this)+A),this.cache.length}},{key:"moveChildren",value:function(P,F){h(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"moveChildren",this).call(this,P,F),this.cache={}}},{key:"optimize",value:function(P){h(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"optimize",this).call(this,P),this.cache={}}},{key:"path",value:function(P){return h(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"path",this).call(this,P,!0)}},{key:"removeChild",value:function(P){h(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"removeChild",this).call(this,P),this.cache={}}},{key:"split",value:function(P){var F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(F&&(P===0||P>=this.length()-A)){var M=this.clone();return P===0?(this.parent.insertBefore(M,this),this):(this.parent.insertBefore(M,this.next),M)}else{var H=h(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"split",this).call(this,P,F);return this.cache={},H}}}]),w}(o.default.Block);N.blotName="block",N.tagName="P",N.defaultChild="break",N.allowedChildren=[v.default,o.default.Embed,u.default];function x(E){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return E==null||(typeof E.formats=="function"&&(w=(0,m.default)(w,E.formats())),E.parent==null||E.parent.blotName=="scroll"||E.parent.statics.scope!==E.statics.scope)?w:x(E.parent,w)}r.bubbleFormats=x,r.BlockEmbed=k,r.default=N},function(t,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.default=r.overload=r.expandConfig=void 0;var f=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(C){return typeof C}:function(C){return C&&typeof Symbol=="function"&&C.constructor===Symbol&&C!==Symbol.prototype?"symbol":typeof C},h=function(){function C(D,q){var R=[],j=!0,B=!1,V=void 0;try{for(var L=D[Symbol.iterator](),$;!(j=($=L.next()).done)&&(R.push($.value),!(q&&R.length===q));j=!0);}catch(Z){B=!0,V=Z}finally{try{!j&&L.return&&L.return()}finally{if(B)throw V}}return R}return function(D,q){if(Array.isArray(D))return D;if(Symbol.iterator in Object(D))return C(D,q);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),O=function(){function C(D,q){for(var R=0;R<q.length;R++){var j=q[R];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"in j&&(j.writable=!0),Object.defineProperty(D,j.key,j)}}return function(D,q,R){return q&&C(D.prototype,q),R&&C(D,R),D}}();i(50);var m=i(2),_=x(m),p=i(14),l=x(p),o=i(8),a=x(o),y=i(9),d=x(y),v=i(0),c=x(v),u=i(15),b=x(u),s=i(3),g=x(s),T=i(10),A=x(T),k=i(34),N=x(k);function x(C){return C&&C.__esModule?C:{default:C}}function E(C,D,q){return D in C?Object.defineProperty(C,D,{value:q,enumerable:!0,configurable:!0,writable:!0}):C[D]=q,C}function w(C,D){if(!(C instanceof D))throw new TypeError("Cannot call a class as a function")}var S=(0,A.default)("quill"),P=function(){O(C,null,[{key:"debug",value:function(q){q===!0&&(q="log"),A.default.level(q)}},{key:"find",value:function(q){return q.__quill||c.default.find(q)}},{key:"import",value:function(q){return this.imports[q]==null&&S.error("Cannot import "+q+". Are you sure it was registered?"),this.imports[q]}},{key:"register",value:function(q,R){var j=this,B=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(typeof q!="string"){var V=q.attrName||q.blotName;typeof V=="string"?this.register("formats/"+V,q,R):Object.keys(q).forEach(function(L){j.register(L,q[L],R)})}else this.imports[q]!=null&&!B&&S.warn("Overwriting "+q+" with",R),this.imports[q]=R,(q.startsWith("blots/")||q.startsWith("formats/"))&&R.blotName!=="abstract"?c.default.register(R):q.startsWith("modules")&&typeof R.register=="function"&&R.register()}}]);function C(D){var q=this,R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(w(this,C),this.options=F(D,R),this.container=this.options.container,this.container==null)return S.error("Invalid Quill container",D);this.options.debug&&C.debug(this.options.debug);var j=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 a.default,this.scroll=c.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new l.default(this.scroll),this.selection=new b.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(a.default.events.EDITOR_CHANGE,function(V){V===a.default.events.TEXT_CHANGE&&q.root.classList.toggle("ql-blank",q.editor.isBlank())}),this.emitter.on(a.default.events.SCROLL_UPDATE,function(V,L){var $=q.selection.lastRange,Z=$&&$.length===0?$.index:void 0;M.call(q,function(){return q.editor.update(null,L,Z)},V)});var B=this.clipboard.convert(`<div class='ql-editor' style="white-space: normal;">`+j+"<p><br></p></div>");this.setContents(B),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}return O(C,[{key:"addContainer",value:function(q){var R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(typeof q=="string"){var j=q;q=document.createElement("div"),q.classList.add(j)}return this.container.insertBefore(q,R),q}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(q,R,j){var B=this,V=H(q,R,j),L=h(V,4);return q=L[0],R=L[1],j=L[3],M.call(this,function(){return B.editor.deleteText(q,R)},j,q,-1*R)}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var q=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.scroll.enable(q),this.container.classList.toggle("ql-disabled",!q)}},{key:"focus",value:function(){var q=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=q,this.scrollIntoView()}},{key:"format",value:function(q,R){var j=this,B=arguments.length>2&&arguments[2]!==void 0?arguments[2]:a.default.sources.API;return M.call(this,function(){var V=j.getSelection(!0),L=new _.default;if(V==null)return L;if(c.default.query(q,c.default.Scope.BLOCK))L=j.editor.formatLine(V.index,V.length,E({},q,R));else{if(V.length===0)return j.selection.format(q,R),L;L=j.editor.formatText(V.index,V.length,E({},q,R))}return j.setSelection(V,a.default.sources.SILENT),L},B)}},{key:"formatLine",value:function(q,R,j,B,V){var L=this,$=void 0,Z=H(q,R,j,B,V),W=h(Z,4);return q=W[0],R=W[1],$=W[2],V=W[3],M.call(this,function(){return L.editor.formatLine(q,R,$)},V,q,0)}},{key:"formatText",value:function(q,R,j,B,V){var L=this,$=void 0,Z=H(q,R,j,B,V),W=h(Z,4);return q=W[0],R=W[1],$=W[2],V=W[3],M.call(this,function(){return L.editor.formatText(q,R,$)},V,q,0)}},{key:"getBounds",value:function(q){var R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,j=void 0;typeof q=="number"?j=this.selection.getBounds(q,R):j=this.selection.getBounds(q.index,q.length);var B=this.container.getBoundingClientRect();return{bottom:j.bottom-B.top,height:j.height,left:j.left-B.left,right:j.right-B.left,top:j.top-B.top,width:j.width}}},{key:"getContents",value:function(){var q=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getLength()-q,j=H(q,R),B=h(j,2);return q=B[0],R=B[1],this.editor.getContents(q,R)}},{key:"getFormat",value:function(){var q=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.getSelection(!0),R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return typeof q=="number"?this.editor.getFormat(q,R):this.editor.getFormat(q.index,q.length)}},{key:"getIndex",value:function(q){return q.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(q){return this.scroll.leaf(q)}},{key:"getLine",value:function(q){return this.scroll.line(q)}},{key:"getLines",value:function(){var q=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE;return typeof q!="number"?this.scroll.lines(q.index,q.length):this.scroll.lines(q,R)}},{key:"getModule",value:function(q){return this.theme.modules[q]}},{key:"getSelection",value:function(){var q=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return q&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getText",value:function(){var q=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getLength()-q,j=H(q,R),B=h(j,2);return q=B[0],R=B[1],this.editor.getText(q,R)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(q,R,j){var B=this,V=arguments.length>3&&arguments[3]!==void 0?arguments[3]:C.sources.API;return M.call(this,function(){return B.editor.insertEmbed(q,R,j)},V,q)}},{key:"insertText",value:function(q,R,j,B,V){var L=this,$=void 0,Z=H(q,0,j,B,V),W=h(Z,4);return q=W[0],$=W[2],V=W[3],M.call(this,function(){return L.editor.insertText(q,R,$)},V,q,R.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(q,R,j){this.clipboard.dangerouslyPasteHTML(q,R,j)}},{key:"removeFormat",value:function(q,R,j){var B=this,V=H(q,R,j),L=h(V,4);return q=L[0],R=L[1],j=L[3],M.call(this,function(){return B.editor.removeFormat(q,R)},j,q)}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(q){var R=this,j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:a.default.sources.API;return M.call(this,function(){q=new _.default(q);var B=R.getLength(),V=R.editor.deleteText(0,B),L=R.editor.applyDelta(q),$=L.ops[L.ops.length-1];$!=null&&typeof $.insert=="string"&&$.insert[$.insert.length-1]===`
`&&(R.editor.deleteText(R.getLength()-1,1),L.delete(1));var Z=V.compose(L);return Z},j)}},{key:"setSelection",value:function(q,R,j){if(q==null)this.selection.setRange(null,R||C.sources.API);else{var B=H(q,R,j),V=h(B,4);q=V[0],R=V[1],j=V[3],this.selection.setRange(new u.Range(q,R),j),j!==a.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(q){var R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:a.default.sources.API,j=new _.default().insert(q);return this.setContents(j,R)}},{key:"update",value:function(){var q=arguments.length>0&&arguments[0]!==void 0?arguments[0]:a.default.sources.USER,R=this.scroll.update(q);return this.selection.update(q),R}},{key:"updateContents",value:function(q){var R=this,j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:a.default.sources.API;return M.call(this,function(){return q=new _.default(q),R.editor.applyDelta(q,j)},j,!0)}}]),C}();P.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},P.events=a.default.events,P.sources=a.default.sources,P.version="1.3.7",P.imports={delta:_.default,parchment:c.default,"core/module":d.default,"core/theme":N.default};function F(C,D){if(D=(0,g.default)(!0,{container:C,modules:{clipboard:!0,keyboard:!0,history:!0}},D),!D.theme||D.theme===P.DEFAULTS.theme)D.theme=N.default;else if(D.theme=P.import("themes/"+D.theme),D.theme==null)throw new Error("Invalid theme "+D.theme+". Did you register it?");var q=(0,g.default)(!0,{},D.theme.DEFAULTS);[q,D].forEach(function(B){B.modules=B.modules||{},Object.keys(B.modules).forEach(function(V){B.modules[V]===!0&&(B.modules[V]={})})});var R=Object.keys(q.modules).concat(Object.keys(D.modules)),j=R.reduce(function(B,V){var L=P.import("modules/"+V);return L==null?S.error("Cannot load "+V+" module. Are you sure you registered it?"):B[V]=L.DEFAULTS||{},B},{});return D.modules!=null&&D.modules.toolbar&&D.modules.toolbar.constructor!==Object&&(D.modules.toolbar={container:D.modules.toolbar}),D=(0,g.default)(!0,{},P.DEFAULTS,{modules:j},q,D),["bounds","container","scrollingContainer"].forEach(function(B){typeof D[B]=="string"&&(D[B]=document.querySelector(D[B]))}),D.modules=Object.keys(D.modules).reduce(function(B,V){return D.modules[V]&&(B[V]=D.modules[V]),B},{}),D}function M(C,D,q,R){if(this.options.strict&&!this.isEnabled()&&D===a.default.sources.USER)return new _.default;var j=q==null?null:this.getSelection(),B=this.editor.delta,V=C();if(j!=null&&(q===!0&&(q=j.index),R==null?j=Q(j,V,D):R!==0&&(j=Q(j,q,R,D)),this.setSelection(j,a.default.sources.SILENT)),V.length()>0){var L,$=[a.default.events.TEXT_CHANGE,V,B,D];if((L=this.emitter).emit.apply(L,[a.default.events.EDITOR_CHANGE].concat($)),D!==a.default.sources.SILENT){var Z;(Z=this.emitter).emit.apply(Z,$)}}return V}function H(C,D,q,R,j){var B={};return typeof C.index=="number"&&typeof C.length=="number"?typeof D!="number"?(j=R,R=q,q=D,D=C.length,C=C.index):(D=C.length,C=C.index):typeof D!="number"&&(j=R,R=q,q=D,D=0),(typeof q>"u"?"undefined":f(q))==="object"?(B=q,j=R):typeof q=="string"&&(R!=null?B[q]=R:j=q),j=j||a.default.sources.API,[C,D,B,j]}function Q(C,D,q,R){if(C==null)return null;var j=void 0,B=void 0;if(D instanceof _.default){var V=[C.index,C.index+C.length].map(function(W){return D.transformPosition(W,R!==a.default.sources.USER)}),L=h(V,2);j=L[0],B=L[1]}else{var $=[C.index,C.index+C.length].map(function(W){return W<D||W===D&&R===a.default.sources.USER?W:q>=0?W+q:Math.max(D,W+q)}),Z=h($,2);j=Z[0],B=Z[1]}return new u.Range(j,B-j)}r.expandConfig=F,r.overload=H,r.default=P},function(t,r,i){Object.defineProperty(r,"__esModule",{value:!0});var f=function(){function v(c,u){for(var b=0;b<u.length;b++){var s=u[b];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(c,s.key,s)}}return function(c,u,b){return u&&v(c.prototype,u),b&&v(c,b),c}}(),h=function v(c,u,b){c===null&&(c=Function.prototype);var s=Object.getOwnPropertyDescriptor(c,u);if(s===void 0){var g=Object.getPrototypeOf(c);return g===null?void 0:v(g,u,b)}else{if("value"in s)return s.value;var T=s.get;return T===void 0?void 0:T.call(b)}},O=i(7),m=l(O),_=i(0),p=l(_);function l(v){return v&&v.__esModule?v:{default:v}}function o(v,c){if(!(v instanceof c))throw new TypeError("Cannot call a class as a function")}function a(v,c){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return c&&(typeof c=="object"||typeof c=="function")?c:v}function y(v,c){if(typeof c!="function"&&c!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof c);v.prototype=Object.create(c&&c.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),c&&(Object.setPrototypeOf?Object.setPrototypeOf(v,c):v.__proto__=c)}var d=function(v){y(c,v);function c(){return o(this,c),a(this,(c.__proto__||Object.getPrototypeOf(c)).apply(this,arguments))}return f(c,[{key:"formatAt",value:function(b,s,g,T){if(c.compare(this.statics.blotName,g)<0&&p.default.query(g,p.default.Scope.BLOT)){var A=this.isolate(b,s);T&&A.wrap(g,T)}else h(c.prototype.__proto__||Object.getPrototypeOf(c.prototype),"formatAt",this).call(this,b,s,g,T)}},{key:"optimize",value:function(b){if(h(c.prototype.__proto__||Object.getPrototypeOf(c.prototype),"optimize",this).call(this,b),this.parent instanceof c&&c.compare(this.statics.blotName,this.parent.statics.blotName)>0){var s=this.parent.isolate(this.offset(),this.length());this.moveChildren(s),s.wrap(this)}}}],[{key:"compare",value:function(b,s){var g=c.order.indexOf(b),T=c.order.indexOf(s);return g>=0||T>=0?g-T:b===s?0:b<s?-1:1}}]),c}(p.default.Inline);d.allowedChildren=[d,p.default.Embed,m.default],d.order=["cursor","inline","underline","strike","italic","bold","script","link","code"],r.default=d},function(t,r,i){Object.defineProperty(r,"__esModule",{value:!0});var f=i(0),h=O(f);function O(o){return o&&o.__esModule?o:{default:o}}function m(o,a){if(!(o instanceof a))throw new TypeError("Cannot call a class as a function")}function _(o,a){if(!o)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a&&(typeof a=="object"||typeof a=="function")?a:o}function p(o,a){if(typeof a!="function"&&a!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof a);o.prototype=Object.create(a&&a.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),a&&(Object.setPrototypeOf?Object.setPrototypeOf(o,a):o.__proto__=a)}var l=function(o){p(a,o);function a(){return m(this,a),_(this,(a.__proto__||Object.getPrototypeOf(a)).apply(this,arguments))}return a}(h.default.Text);r.default=l},function(t,r,i){Object.defineProperty(r,"__esModule",{value:!0});var f=function(){function u(b,s){for(var g=0;g<s.length;g++){var T=s[g];T.enumerable=T.enumerable||!1,T.configurable=!0,"value"in T&&(T.writable=!0),Object.defineProperty(b,T.key,T)}}return function(b,s,g){return s&&u(b.prototype,s),g&&u(b,g),b}}(),h=function u(b,s,g){b===null&&(b=Function.prototype);var T=Object.getOwnPropertyDescriptor(b,s);if(T===void 0){var A=Object.getPrototypeOf(b);return A===null?void 0:u(A,s,g)}else{if("value"in T)return T.value;var k=T.get;return k===void 0?void 0:k.call(g)}},O=i(54),m=l(O),_=i(10),p=l(_);function l(u){return u&&u.__esModule?u:{default:u}}function o(u,b){if(!(u instanceof b))throw new TypeError("Cannot call a class as a function")}function a(u,b){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return b&&(typeof b=="object"||typeof b=="function")?b:u}function y(u,b){if(typeof b!="function"&&b!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof b);u.prototype=Object.create(b&&b.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(u,b):u.__proto__=b)}var d=(0,p.default)("quill:events"),v=["selectionchange","mousedown","mouseup","click"];v.forEach(function(u){document.addEventListener(u,function(){for(var b=arguments.length,s=Array(b),g=0;g<b;g++)s[g]=arguments[g];[].slice.call(document.querySelectorAll(".ql-container")).forEach(function(T){if(T.__quill&&T.__quill.emitter){var A;(A=T.__quill.emitter).handleDOM.apply(A,s)}})})});var c=function(u){y(b,u);function b(){o(this,b);var s=a(this,(b.__proto__||Object.getPrototypeOf(b)).call(this));return s.listeners={},s.on("error",d.error),s}return f(b,[{key:"emit",value:function(){d.log.apply(d,arguments),h(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"emit",this).apply(this,arguments)}},{key:"handleDOM",value:function(g){for(var T=arguments.length,A=Array(T>1?T-1:0),k=1;k<T;k++)A[k-1]=arguments[k];(this.listeners[g.type]||[]).forEach(function(N){var x=N.node,E=N.handler;(g.target===x||x.contains(g.target))&&E.apply(void 0,[g].concat(A))})}},{key:"listenDOM",value:function(g,T,A){this.listeners[g]||(this.listeners[g]=[]),this.listeners[g].push({node:T,handler:A})}}]),b}(m.default);c.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"},c.sources={API:"api",SILENT:"silent",USER:"user"},r.default=c},function(t,r,i){Object.defineProperty(r,"__esModule",{value:!0});function f(O,m){if(!(O instanceof m))throw new TypeError("Cannot call a class as a function")}var h=function O(m){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};f(this,O),this.quill=m,this.options=_};h.DEFAULTS={},r.default=h},function(t,r,i){Object.defineProperty(r,"__esModule",{value:!0});var f=["error","warn","log","info"],h="warn";function O(_){if(f.indexOf(_)<=f.indexOf(h)){for(var p,l=arguments.length,o=Array(l>1?l-1:0),a=1;a<l;a++)o[a-1]=arguments[a];(p=console)[_].apply(p,o)}}function m(_){return f.reduce(function(p,l){return p[l]=O.bind(console,l,_),p},{})}O.level=m.level=function(_){h=_},r.default=m},function(t,r,i){var f=Array.prototype.slice,h=i(52),O=i(53),m=t.exports=function(o,a,y){return y||(y={}),o===a?!0:o instanceof Date&&a instanceof Date?o.getTime()===a.getTime():!o||!a||typeof o!="object"&&typeof a!="object"?y.strict?o===a:o==a:l(o,a,y)};function _(o){return o==null}function p(o){return!(!o||typeof o!="object"||typeof o.length!="number"||typeof o.copy!="function"||typeof o.slice!="function"||o.length>0&&typeof o[0]!="number")}function l(o,a,y){var d,v;if(_(o)||_(a)||o.prototype!==a.prototype)return!1;if(O(o))return O(a)?(o=f.call(o),a=f.call(a),m(o,a,y)):!1;if(p(o)){if(!p(a)||o.length!==a.length)return!1;for(d=0;d<o.length;d++)if(o[d]!==a[d])return!1;return!0}try{var c=h(o),u=h(a)}catch{return!1}if(c.length!=u.length)return!1;for(c.sort(),u.sort(),d=c.length-1;d>=0;d--)if(c[d]!=u[d])return!1;for(d=c.length-1;d>=0;d--)if(v=c[d],!m(o[v],a[v],y))return!1;return typeof o==typeof a}},function(t,r,i){Object.defineProperty(r,"__esModule",{value:!0});var f=i(1),h=function(){function O(m,_,p){p===void 0&&(p={}),this.attrName=m,this.keyName=_;var l=f.Scope.TYPE&f.Scope.ATTRIBUTE;p.scope!=null?this.scope=p.scope&f.Scope.LEVEL|l:this.scope=f.Scope.ATTRIBUTE,p.whitelist!=null&&(this.whitelist=p.whitelist)}return O.keys=function(m){return[].map.call(m.attributes,function(_){return _.name})},O.prototype.add=function(m,_){return this.canAdd(m,_)?(m.setAttribute(this.keyName,_),!0):!1},O.prototype.canAdd=function(m,_){var p=f.query(m,f.Scope.BLOT&(this.scope|f.Scope.TYPE));return p==null?!1:this.whitelist==null?!0:typeof _=="string"?this.whitelist.indexOf(_.replace(/["']/g,""))>-1:this.whitelist.indexOf(_)>-1},O.prototype.remove=function(m){m.removeAttribute(this.keyName)},O.prototype.value=function(m){var _=m.getAttribute(this.keyName);return this.canAdd(m,_)&&_?_:""},O}();r.default=h},function(t,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.default=r.Code=void 0;var f=function(){function k(N,x){var E=[],w=!0,S=!1,P=void 0;try{for(var F=N[Symbol.iterator](),M;!(w=(M=F.next()).done)&&(E.push(M.value),!(x&&E.length===x));w=!0);}catch(H){S=!0,P=H}finally{try{!w&&F.return&&F.return()}finally{if(S)throw P}}return E}return function(N,x){if(Array.isArray(N))return N;if(Symbol.iterator in Object(N))return k(N,x);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),h=function(){function k(N,x){for(var E=0;E<x.length;E++){var w=x[E];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(N,w.key,w)}}return function(N,x,E){return x&&k(N.prototype,x),E&&k(N,E),N}}(),O=function k(N,x,E){N===null&&(N=Function.prototype);var w=Object.getOwnPropertyDescriptor(N,x);if(w===void 0){var S=Object.getPrototypeOf(N);return S===null?void 0:k(S,x,E)}else{if("value"in w)return w.value;var P=w.get;return P===void 0?void 0:P.call(E)}},m=i(2),_=u(m),p=i(0),l=u(p),o=i(4),a=u(o),y=i(6),d=u(y),v=i(7),c=u(v);function u(k){return k&&k.__esModule?k:{default:k}}function b(k,N){if(!(k instanceof N))throw new TypeError("Cannot call a class as a function")}function s(k,N){if(!k)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return N&&(typeof N=="object"||typeof N=="function")?N:k}function g(k,N){if(typeof N!="function"&&N!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof N);k.prototype=Object.create(N&&N.prototype,{constructor:{value:k,enumerable:!1,writable:!0,configurable:!0}}),N&&(Object.setPrototypeOf?Object.setPrototypeOf(k,N):k.__proto__=N)}var T=function(k){g(N,k);function N(){return b(this,N),s(this,(N.__proto__||Object.getPrototypeOf(N)).apply(this,arguments))}return N}(d.default);T.blotName="code",T.tagName="CODE";var A=function(k){g(N,k);function N(){return b(this,N),s(this,(N.__proto__||Object.getPrototypeOf(N)).apply(this,arguments))}return h(N,[{key:"delta",value:function(){var E=this,w=this.domNode.textContent;return w.endsWith(`
`)&&(w=w.slice(0,-1)),w.split(`
`).reduce(function(S,P){return S.insert(P).insert(`
`,E.formats())},new _.default)}},{key:"format",value:function(E,w){if(!(E===this.statics.blotName&&w)){var S=this.descendant(c.default,this.length()-1),P=f(S,1),F=P[0];F!=null&&F.deleteAt(F.length()-1,1),O(N.prototype.__proto__||Object.getPrototypeOf(N.prototype),"format",this).call(this,E,w)}}},{key:"formatAt",value:function(E,w,S,P){if(w!==0&&!(l.default.query(S,l.default.Scope.BLOCK)==null||S===this.statics.blotName&&P===this.statics.formats(this.domNode))){var F=this.newlineIndex(E);if(!(F<0||F>=E+w)){var M=this.newlineIndex(E,!0)+1,H=F-M+1,Q=this.isolate(M,H),C=Q.next;Q.format(S,P),C instanceof N&&C.formatAt(0,E-M+w-H,S,P)}}}},{key:"insertAt",value:function(E,w,S){if(S==null){var P=this.descendant(c.default,E),F=f(P,2),M=F[0],H=F[1];M.insertAt(H,w)}}},{key:"length",value:function(){var E=this.domNode.textContent.length;return this.domNode.textContent.endsWith(`
`)?E:E+1}},{key:"newlineIndex",value:function(E){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(w)return this.domNode.textContent.slice(0,E).lastIndexOf(`
`);var S=this.domNode.textContent.slice(E).indexOf(`
`);return S>-1?E+S:-1}},{key:"optimize",value:function(E){this.domNode.textContent.endsWith(`
`)||this.appendChild(l.default.create("text",`
`)),O(N.prototype.__proto__||Object.getPrototypeOf(N.prototype),"optimize",this).call(this,E);var w=this.next;w!=null&&w.prev===this&&w.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===w.statics.formats(w.domNode)&&(w.optimize(E),w.moveChildren(this),w.remove())}},{key:"replace",value:function(E){O(N.prototype.__proto__||Object.getPrototypeOf(N.prototype),"replace",this).call(this,E),[].slice.call(this.domNode.querySelectorAll("*")).forEach(function(w){var S=l.default.find(w);S==null?w.parentNode.removeChild(w):S instanceof l.default.Embed?S.remove():S.unwrap()})}}],[{key:"create",value:function(E){var w=O(N.__proto__||Object.getPrototypeOf(N),"create",this).call(this,E);return w.setAttribute("spellcheck",!1),w}},{key:"formats",value:function(){return!0}}]),N}(a.default);A.blotName="code-block",A.tagName="PRE",A.TAB=" ",r.Code=T,r.default=A},function(t,r,i){Object.defineProperty(r,"__esModule",{value:!0});var f=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(C){return typeof C}:function(C){return C&&typeof Symbol=="function"&&C.constructor===Symbol&&C!==Symbol.prototype?"symbol":typeof C},h=function(){function C(D,q){var R=[],j=!0,B=!1,V=void 0;try{for(var L=D[Symbol.iterator](),$;!(j=($=L.next()).done)&&(R.push($.value),!(q&&R.length===q));j=!0);}catch(Z){B=!0,V=Z}finally{try{!j&&L.return&&L.return()}finally{if(B)throw V}}return R}return function(D,q){if(Array.isArray(D))return D;if(Symbol.iterator in Object(D))return C(D,q);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),O=function(){function C(D,q){for(var R=0;R<q.length;R++){var j=q[R];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"in j&&(j.writable=!0),Object.defineProperty(D,j.key,j)}}return function(D,q,R){return q&&C(D.prototype,q),R&&C(D,R),D}}(),m=i(2),_=w(m),p=i(20),l=w(p),o=i(0),a=w(o),y=i(13),d=w(y),v=i(24),c=w(v),u=i(4),b=w(u),s=i(16),g=w(s),T=i(21),A=w(T),k=i(11),N=w(k),x=i(3),E=w(x);function w(C){return C&&C.__esModule?C:{default:C}}function S(C,D,q){return D in C?Object.defineProperty(C,D,{value:q,enumerable:!0,configurable:!0,writable:!0}):C[D]=q,C}function P(C,D){if(!(C instanceof D))throw new TypeError("Cannot call a class as a function")}var F=/^[ -~]*$/,M=function(){function C(D){P(this,C),this.scroll=D,this.delta=this.getDelta()}return O(C,[{key:"applyDelta",value:function(q){var R=this,j=!1;this.scroll.update();var B=this.scroll.length();return this.scroll.batchStart(),q=Q(q),q.reduce(function(V,L){var $=L.retain||L.delete||L.insert.length||1,Z=L.attributes||{};if(L.insert!=null){if(typeof L.insert=="string"){var W=L.insert;W.endsWith(`
`)&&j&&(j=!1,W=W.slice(0,-1)),V>=B&&!W.endsWith(`
`)&&(j=!0),R.scroll.insertAt(V,W);var J=R.scroll.line(V),le=h(J,2),de=le[0],pe=le[1],ve=(0,E.default)({},(0,u.bubbleFormats)(de));if(de instanceof b.default){var I=de.descendant(a.default.Leaf,pe),Y=h(I,1),X=Y[0];ve=(0,E.default)(ve,(0,u.bubbleFormats)(X))}Z=l.default.attributes.diff(ve,Z)||{}}else if(f(L.insert)==="object"){var z=Object.keys(L.insert)[0];if(z==null)return V;R.scroll.insertAt(V,z,L.insert[z])}B+=$}return Object.keys(Z).forEach(function(U){R.scroll.formatAt(V,$,U,Z[U])}),V+$},0),q.reduce(function(V,L){return typeof L.delete=="number"?(R.scroll.deleteAt(V,L.delete),V):V+(L.retain||L.insert.length||1)},0),this.scroll.batchEnd(),this.update(q)}},{key:"deleteText",value:function(q,R){return this.scroll.deleteAt(q,R),this.update(new _.default().retain(q).delete(R))}},{key:"formatLine",value:function(q,R){var j=this,B=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.scroll.update(),Object.keys(B).forEach(function(V){if(!(j.scroll.whitelist!=null&&!j.scroll.whitelist[V])){var L=j.scroll.lines(q,Math.max(R,1)),$=R;L.forEach(function(Z){var W=Z.length();if(!(Z instanceof d.default))Z.format(V,B[V]);else{var J=q-Z.offset(j.scroll),le=Z.newlineIndex(J+$)-J+1;Z.formatAt(J,le,V,B[V])}$-=W})}}),this.scroll.optimize(),this.update(new _.default().retain(q).retain(R,(0,A.default)(B)))}},{key:"formatText",value:function(q,R){var j=this,B=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Object.keys(B).forEach(function(V){j.scroll.formatAt(q,R,V,B[V])}),this.update(new _.default().retain(q).retain(R,(0,A.default)(B)))}},{key:"getContents",value:function(q,R){return this.delta.slice(q,q+R)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce(function(q,R){return q.concat(R.delta())},new _.default)}},{key:"getFormat",value:function(q){var R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,j=[],B=[];R===0?this.scroll.path(q).forEach(function(L){var $=h(L,1),Z=$[0];Z instanceof b.default?j.push(Z):Z instanceof a.default.Leaf&&B.push(Z)}):(j=this.scroll.lines(q,R),B=this.scroll.descendants(a.default.Leaf,q,R));var V=[j,B].map(function(L){if(L.length===0)return{};for(var $=(0,u.bubbleFormats)(L.shift());Object.keys($).length>0;){var Z=L.shift();if(Z==null)return $;$=H((0,u.bubbleFormats)(Z),$)}return $});return E.default.apply(E.default,V)}},{key:"getText",value:function(q,R){return this.getContents(q,R).filter(function(j){return typeof j.insert=="string"}).map(function(j){return j.insert}).join("")}},{key:"insertEmbed",value:function(q,R,j){return this.scroll.insertAt(q,R,j),this.update(new _.default().retain(q).insert(S({},R,j)))}},{key:"insertText",value:function(q,R){var j=this,B=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return R=R.replace(/\r\n/g,`
`).replace(/\r/g,`
`),this.scroll.insertAt(q,R),Object.keys(B).forEach(function(V){j.scroll.formatAt(q,R.length,V,B[V])}),this.update(new _.default().retain(q).insert(R,(0,A.default)(B)))}},{key:"isBlank",value:function(){if(this.scroll.children.length==0)return!0;if(this.scroll.children.length>1)return!1;var q=this.scroll.children.head;return q.statics.blotName!==b.default.blotName||q.children.length>1?!1:q.children.head instanceof g.default}},{key:"removeFormat",value:function(q,R){var j=this.getText(q,R),B=this.scroll.line(q+R),V=h(B,2),L=V[0],$=V[1],Z=0,W=new _.default;L!=null&&(L instanceof d.default?Z=L.newlineIndex($)-$+1:Z=L.length()-$,W=L.delta().slice($,$+Z-1).insert(`
`));var J=this.getContents(q,R+Z),le=J.diff(new _.default().insert(j).concat(W)),de=new _.default().retain(q).concat(le);return this.applyDelta(de)}},{key:"update",value:function(q){var R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],j=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0,B=this.delta;if(R.length===1&&R[0].type==="characterData"&&R[0].target.data.match(F)&&a.default.find(R[0].target)){var V=a.default.find(R[0].target),L=(0,u.bubbleFormats)(V),$=V.offset(this.scroll),Z=R[0].oldValue.replace(c.default.CONTENTS,""),W=new _.default().insert(Z),J=new _.default().insert(V.value()),le=new _.default().retain($).concat(W.diff(J,j));q=le.reduce(function(de,pe){return pe.insert?de.insert(pe.insert,L):de.push(pe)},new _.default),this.delta=B.compose(q)}else this.delta=this.getDelta(),(!q||!(0,N.default)(B.compose(q),this.delta))&&(q=B.diff(this.delta,j));return q}}]),C}();function H(C,D){return Object.keys(D).reduce(function(q,R){return C[R]==null||(D[R]===C[R]?q[R]=D[R]:Array.isArray(D[R])?D[R].indexOf(C[R])<0&&(q[R]=D[R].concat([C[R]])):q[R]=[D[R],C[R]]),q},{})}function Q(C){return C.reduce(function(D,q){if(q.insert===1){var R=(0,A.default)(q.attributes);return delete R.image,D.insert({image:q.attributes.image},R)}if(q.attributes!=null&&(q.attributes.list===!0||q.attributes.bullet===!0)&&(q=(0,A.default)(q),q.attributes.list?q.attributes.list="ordered":(q.attributes.list="bullet",delete q.attributes.bullet)),typeof q.insert=="string"){var j=q.insert.replace(/\r\n/g,`
`).replace(/\r/g,`
`);return D.insert(j,q.attributes)}return D.push(q)},new _.default)}r.default=M},function(t,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.default=r.Range=void 0;var f=function(){function k(N,x){var E=[],w=!0,S=!1,P=void 0;try{for(var F=N[Symbol.iterator](),M;!(w=(M=F.next()).done)&&(E.push(M.value),!(x&&E.length===x));w=!0);}catch(H){S=!0,P=H}finally{try{!w&&F.return&&F.return()}finally{if(S)throw P}}return E}return function(N,x){if(Array.isArray(N))return N;if(Symbol.iterator in Object(N))return k(N,x);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),h=function(){function k(N,x){for(var E=0;E<x.length;E++){var w=x[E];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(N,w.key,w)}}return function(N,x,E){return x&&k(N.prototype,x),E&&k(N,E),N}}(),O=i(0),m=c(O),_=i(21),p=c(_),l=i(11),o=c(l),a=i(8),y=c(a),d=i(10),v=c(d);function c(k){return k&&k.__esModule?k:{default:k}}function u(k){if(Array.isArray(k)){for(var N=0,x=Array(k.length);N<k.length;N++)x[N]=k[N];return x}else return Array.from(k)}function b(k,N){if(!(k instanceof N))throw new TypeError("Cannot call a class as a function")}var s=(0,v.default)("quill:selection"),g=function k(N){var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;b(this,k),this.index=N,this.length=x},T=function(){function k(N,x){var E=this;b(this,k),this.emitter=x,this.scroll=N,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=m.default.create("cursor",this),this.lastRange=this.savedRange=new g(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,function(){E.mouseDown||setTimeout(E.update.bind(E,y.default.sources.USER),1)}),this.emitter.on(y.default.events.EDITOR_CHANGE,function(w,S){w===y.default.events.TEXT_CHANGE&&S.length()>0&&E.update(y.default.sources.SILENT)}),this.emitter.on(y.default.events.SCROLL_BEFORE_UPDATE,function(){if(!!E.hasFocus()){var w=E.getNativeRange();w!=null&&w.start.node!==E.cursor.textNode&&E.emitter.once(y.default.events.SCROLL_UPDATE,function(){try{E.setNativeRange(w.start.node,w.start.offset,w.end.node,w.end.offset)}catch{}})}}),this.emitter.on(y.default.events.SCROLL_OPTIMIZE,function(w,S){if(S.range){var P=S.range,F=P.startNode,M=P.startOffset,H=P.endNode,Q=P.endOffset;E.setNativeRange(F,M,H,Q)}}),this.update(y.default.sources.SILENT)}return h(k,[{key:"handleComposition",value:function(){var x=this;this.root.addEventListener("compositionstart",function(){x.composing=!0}),this.root.addEventListener("compositionend",function(){if(x.composing=!1,x.cursor.parent){var E=x.cursor.restore();if(!E)return;setTimeout(function(){x.setNativeRange(E.startNode,E.startOffset,E.endNode,E.endOffset)},1)}})}},{key:"handleDragging",value:function(){var x=this;this.emitter.listenDOM("mousedown",document.body,function(){x.mouseDown=!0}),this.emitter.listenDOM("mouseup",document.body,function(){x.mouseDown=!1,x.update(y.default.sources.USER)})}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(x,E){if(!(this.scroll.whitelist!=null&&!this.scroll.whitelist[x])){this.scroll.update();var w=this.getNativeRange();if(!(w==null||!w.native.collapsed||m.default.query(x,m.default.Scope.BLOCK))){if(w.start.node!==this.cursor.textNode){var S=m.default.find(w.start.node,!1);if(S==null)return;if(S instanceof m.default.Leaf){var P=S.split(w.start.offset);S.parent.insertBefore(this.cursor,P)}else S.insertBefore(this.cursor,w.start.node);this.cursor.attach()}this.cursor.format(x,E),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(x){var E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,w=this.scroll.length();x=Math.min(x,w-1),E=Math.min(x+E,w-1)-x;var S=void 0,P=this.scroll.leaf(x),F=f(P,2),M=F[0],H=F[1];if(M==null)return null;var Q=M.position(H,!0),C=f(Q,2);S=C[0],H=C[1];var D=document.createRange();if(E>0){D.setStart(S,H);var q=this.scroll.leaf(x+E),R=f(q,2);if(M=R[0],H=R[1],M==null)return null;var j=M.position(H,!0),B=f(j,2);return S=B[0],H=B[1],D.setEnd(S,H),D.getBoundingClientRect()}else{var V="left",L=void 0;return S instanceof Text?(H<S.data.length?(D.setStart(S,H),D.setEnd(S,H+1)):(D.setStart(S,H-1),D.setEnd(S,H),V="right"),L=D.getBoundingClientRect()):(L=M.domNode.getBoundingClientRect(),H>0&&(V="right")),{bottom:L.top+L.height,height:L.height,left:L[V],right:L[V],top:L.top,width:0}}}},{key:"getNativeRange",value:function(){var x=document.getSelection();if(x==null||x.rangeCount<=0)return null;var E=x.getRangeAt(0);if(E==null)return null;var w=this.normalizeNative(E);return s.info("getNativeRange",w),w}},{key:"getRange",value:function(){var x=this.getNativeRange();if(x==null)return[null,null];var E=this.normalizedToRange(x);return[E,x]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(x){var E=this,w=[[x.start.node,x.start.offset]];x.native.collapsed||w.push([x.end.node,x.end.offset]);var S=w.map(function(M){var H=f(M,2),Q=H[0],C=H[1],D=m.default.find(Q,!0),q=D.offset(E.scroll);return C===0?q:D instanceof m.default.Container?q+D.length():q+D.index(Q,C)}),P=Math.min(Math.max.apply(Math,u(S)),this.scroll.length()-1),F=Math.min.apply(Math,[P].concat(u(S)));return new g(F,P-F)}},{key:"normalizeNative",value:function(x){if(!A(this.root,x.startContainer)||!x.collapsed&&!A(this.root,x.endContainer))return null;var E={start:{node:x.startContainer,offset:x.startOffset},end:{node:x.endContainer,offset:x.endOffset},native:x};return[E.start,E.end].forEach(function(w){for(var S=w.node,P=w.offset;!(S instanceof Text)&&S.childNodes.length>0;)if(S.childNodes.length>P)S=S.childNodes[P],P=0;else if(S.childNodes.length===P)S=S.lastChild,P=S instanceof Text?S.data.length:S.childNodes.length+1;else break;w.node=S,w.offset=P}),E}},{key:"rangeToNative",value:function(x){var E=this,w=x.collapsed?[x.index]:[x.index,x.index+x.length],S=[],P=this.scroll.length();return w.forEach(function(F,M){F=Math.min(P-1,F);var H=void 0,Q=E.scroll.leaf(F),C=f(Q,2),D=C[0],q=C[1],R=D.position(q,M!==0),j=f(R,2);H=j[0],q=j[1],S.push(H,q)}),S.length<2&&(S=S.concat(S)),S}},{key:"scrollIntoView",value:function(x){var E=this.lastRange;if(E!=null){var w=this.getBounds(E.index,E.length);if(w!=null){var S=this.scroll.length()-1,P=this.scroll.line(Math.min(E.index,S)),F=f(P,1),M=F[0],H=M;if(E.length>0){var Q=this.scroll.line(Math.min(E.index+E.length,S)),C=f(Q,1);H=C[0]}if(!(M==null||H==null)){var D=x.getBoundingClientRect();w.top<D.top?x.scrollTop-=D.top-w.top:w.bottom>D.bottom&&(x.scrollTop+=w.bottom-D.bottom)}}}}},{key:"setNativeRange",value:function(x,E){var w=arguments.length>2&&arguments[2]!==void 0?arguments[2]:x,S=arguments.length>3&&arguments[3]!==void 0?arguments[3]:E,P=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(s.info("setNativeRange",x,E,w,S),!(x!=null&&(this.root.parentNode==null||x.parentNode==null||w.parentNode==null))){var F=document.getSelection();if(F!=null)if(x!=null){this.hasFocus()||this.root.focus();var M=(this.getNativeRange()||{}).native;if(M==null||P||x!==M.startContainer||E!==M.startOffset||w!==M.endContainer||S!==M.endOffset){x.tagName=="BR"&&(E=[].indexOf.call(x.parentNode.childNodes,x),x=x.parentNode),w.tagName=="BR"&&(S=[].indexOf.call(w.parentNode.childNodes,w),w=w.parentNode);var H=document.createRange();H.setStart(x,E),H.setEnd(w,S),F.removeAllRanges(),F.addRange(H)}}else F.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(x){var E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,w=arguments.length>2&&arguments[2]!==void 0?arguments[2]:y.default.sources.API;if(typeof E=="string"&&(w=E,E=!1),s.info("setRange",x),x!=null){var S=this.rangeToNative(x);this.setNativeRange.apply(this,u(S).concat([E]))}else this.setNativeRange(null);this.update(w)}},{key:"update",value:function(){var x=arguments.length>0&&arguments[0]!==void 0?arguments[0]:y.default.sources.USER,E=this.lastRange,w=this.getRange(),S=f(w,2),P=S[0],F=S[1];if(this.lastRange=P,this.lastRange!=null&&(this.savedRange=this.lastRange),!(0,o.default)(E,this.lastRange)){var M;!this.composing&&F!=null&&F.native.collapsed&&F.start.node!==this.cursor.textNode&&this.cursor.restore();var H=[y.default.events.SELECTION_CHANGE,(0,p.default)(this.lastRange),(0,p.default)(E),x];if((M=this.emitter).emit.apply(M,[y.default.events.EDITOR_CHANGE].concat(H)),x!==y.default.sources.SILENT){var Q;(Q=this.emitter).emit.apply(Q,H)}}}}]),k}();function A(k,N){try{N.parentNode}catch{return!1}return N instanceof Text&&(N=N.parentNode),k.contains(N)}r.Range=g,r.default=T},function(t,r,i){Object.defineProperty(r,"__esModule",{value:!0});var f=function(){function y(d,v){for(var c=0;c<v.length;c++){var u=v[c];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(d,u.key,u)}}return function(d,v,c){return v&&y(d.prototype,v),c&&y(d,c),d}}(),h=function y(d,v,c){d===null&&(d=Function.prototype);var u=Object.getOwnPropertyDescriptor(d,v);if(u===void 0){var b=Object.getPrototypeOf(d);return b===null?void 0:y(b,v,c)}else{if("value"in u)return u.value;var s=u.get;return s===void 0?void 0:s.call(c)}},O=i(0),m=_(O);function _(y){return y&&y.__esModule?y:{default:y}}function p(y,d){if(!(y instanceof d))throw new TypeError("Cannot call a class as a function")}function l(y,d){if(!y)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return d&&(typeof d=="object"||typeof d=="function")?d:y}function o(y,d){if(typeof d!="function"&&d!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof d);y.prototype=Object.create(d&&d.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),d&&(Object.setPrototypeOf?Object.setPrototypeOf(y,d):y.__proto__=d)}var a=function(y){o(d,y);function d(){return p(this,d),l(this,(d.__proto__||Object.getPrototypeOf(d)).apply(this,arguments))}return f(d,[{key:"insertInto",value:function(c,u){c.children.length===0?h(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"insertInto",this).call(this,c,u):this.remove()}},{key:"length",value:function(){return 0}},{key:"value",value:function(){return""}}],[{key:"value",value:function(){}}]),d}(m.default.Embed);a.blotName="break",a.tagName="BR",r.default=a},function(t,r,i){var f=this&&this.__extends||function(){var l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,a){o.__proto__=a}||function(o,a){for(var y in a)a.hasOwnProperty(y)&&(o[y]=a[y])};return function(o,a){l(o,a);function y(){this.constructor=o}o.prototype=a===null?Object.create(a):(y.prototype=a.prototype,new y)}}();Object.defineProperty(r,"__esModule",{value:!0});var h=i(44),O=i(30),m=i(1),_=function(l){f(o,l);function o(a){var y=l.call(this,a)||this;return y.build(),y}return o.prototype.appendChild=function(a){this.insertBefore(a)},o.prototype.attach=function(){l.prototype.attach.call(this),this.children.forEach(function(a){a.attach()})},o.prototype.build=function(){var a=this;this.children=new h.default,[].slice.call(this.domNode.childNodes).reverse().forEach(function(y){try{var d=p(y);a.insertBefore(d,a.children.head||void 0)}catch(v){if(v instanceof m.ParchmentError)return;throw v}})},o.prototype.deleteAt=function(a,y){if(a===0&&y===this.length())return this.remove();this.children.forEachAt(a,y,function(d,v,c){d.deleteAt(v,c)})},o.prototype.descendant=function(a,y){var d=this.children.find(y),v=d[0],c=d[1];return a.blotName==null&&a(v)||a.blotName!=null&&v instanceof a?[v,c]:v instanceof o?v.descendant(a,c):[null,-1]},o.prototype.descendants=function(a,y,d){y===void 0&&(y=0),d===void 0&&(d=Number.MAX_VALUE);var v=[],c=d;return this.children.forEachAt(y,d,function(u,b,s){(a.blotName==null&&a(u)||a.blotName!=null&&u instanceof a)&&v.push(u),u instanceof o&&(v=v.concat(u.descendants(a,b,c))),c-=s}),v},o.prototype.detach=function(){this.children.forEach(function(a){a.detach()}),l.prototype.detach.call(this)},o.prototype.formatAt=function(a,y,d,v){this.children.forEachAt(a,y,function(c,u,b){c.formatAt(u,b,d,v)})},o.prototype.insertAt=function(a,y,d){var v=this.children.find(a),c=v[0],u=v[1];if(c)c.insertAt(u,y,d);else{var b=d==null?m.create("text",y):m.create(y,d);this.appendChild(b)}},o.prototype.insertBefore=function(a,y){if(this.statics.allowedChildren!=null&&!this.statics.allowedChildren.some(function(d){return a instanceof d}))throw new m.ParchmentError("Cannot insert "+a.statics.blotName+" into "+this.statics.blotName);a.insertInto(this,y)},o.prototype.length=function(){return this.children.reduce(function(a,y){return a+y.length()},0)},o.prototype.moveChildren=function(a,y){this.children.forEach(function(d){a.insertBefore(d,y)})},o.prototype.optimize=function(a){if(l.prototype.optimize.call(this,a),this.children.length===0)if(this.statics.defaultChild!=null){var y=m.create(this.statics.defaultChild);this.appendChild(y),y.optimize(a)}else this.remove()},o.prototype.path=function(a,y){y===void 0&&(y=!1);var d=this.children.find(a,y),v=d[0],c=d[1],u=[[this,a]];return v instanceof o?u.concat(v.path(c,y)):(v!=null&&u.push([v,c]),u)},o.prototype.removeChild=function(a){this.children.remove(a)},o.prototype.replace=function(a){a instanceof o&&a.moveChildren(this),l.prototype.replace.call(this,a)},o.prototype.split=function(a,y){if(y===void 0&&(y=!1),!y){if(a===0)return this;if(a===this.length())return this.next}var d=this.clone();return this.parent.insertBefore(d,this.next),this.children.forEachAt(a,this.length(),function(v,c,u){v=v.split(c,y),d.appendChild(v)}),d},o.prototype.unwrap=function(){this.moveChildren(this.parent,this.next),this.remove()},o.prototype.update=function(a,y){var d=this,v=[],c=[];a.forEach(function(u){u.target===d.domNode&&u.type==="childList"&&(v.push.apply(v,u.addedNodes),c.push.apply(c,u.removedNodes))}),c.forEach(function(u){if(!(u.parentNode!=null&&u.tagName!=="IFRAME"&&document.body.compareDocumentPosition(u)&Node.DOCUMENT_POSITION_CONTAINED_BY)){var b=m.find(u);b!=null&&(b.domNode.parentNode==null||b.domNode.parentNode===d.domNode)&&b.detach()}}),v.filter(function(u){return u.parentNode==d.domNode}).sort(function(u,b){return u===b?0:u.compareDocumentPosition(b)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1}).forEach(function(u){var b=null;u.nextSibling!=null&&(b=m.find(u.nextSibling));var s=p(u);(s.next!=b||s.next==null)&&(s.parent!=null&&s.parent.removeChild(d),d.insertBefore(s,b||void 0))})},o}(O.default);function p(l){var o=m.find(l);if(o==null)try{o=m.create(l)}catch{o=m.create(m.Scope.INLINE),[].slice.call(l.childNodes).forEach(function(y){o.domNode.appendChild(y)}),l.parentNode&&l.parentNode.replaceChild(o.domNode,l),o.attach()}return o}r.default=_},function(t,r,i){var f=this&&this.__extends||function(){var l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,a){o.__proto__=a}||function(o,a){for(var y in a)a.hasOwnProperty(y)&&(o[y]=a[y])};return function(o,a){l(o,a);function y(){this.constructor=o}o.prototype=a===null?Object.create(a):(y.prototype=a.prototype,new y)}}();Object.defineProperty(r,"__esModule",{value:!0});var h=i(12),O=i(31),m=i(17),_=i(1),p=function(l){f(o,l);function o(a){var y=l.call(this,a)||this;return y.attributes=new O.default(y.domNode),y}return o.formats=function(a){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return a.tagName.toLowerCase()},o.prototype.format=function(a,y){var d=_.query(a);d instanceof h.default?this.attributes.attribute(d,y):y&&d!=null&&(a!==this.statics.blotName||this.formats()[a]!==y)&&this.replaceWith(a,y)},o.prototype.formats=function(){var a=this.attributes.values(),y=this.statics.formats(this.domNode);return y!=null&&(a[this.statics.blotName]=y),a},o.prototype.replaceWith=function(a,y){var d=l.prototype.replaceWith.call(this,a,y);return this.attributes.copy(d),d},o.prototype.update=function(a,y){var d=this;l.prototype.update.call(this,a,y),a.some(function(v){return v.target===d.domNode&&v.type==="attributes"})&&this.attributes.build()},o.prototype.wrap=function(a,y){var d=l.prototype.wrap.call(this,a,y);return d instanceof o&&d.statics.scope===this.statics.scope&&this.attributes.move(d),d},o}(m.default);r.default=p},function(t,r,i){var f=this&&this.__extends||function(){var _=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,l){p.__proto__=l}||function(p,l){for(var o in l)l.hasOwnProperty(o)&&(p[o]=l[o])};return function(p,l){_(p,l);function o(){this.constructor=p}p.prototype=l===null?Object.create(l):(o.prototype=l.prototype,new o)}}();Object.defineProperty(r,"__esModule",{value:!0});var h=i(30),O=i(1),m=function(_){f(p,_);function p(){return _!==null&&_.apply(this,arguments)||this}return p.value=function(l){return!0},p.prototype.index=function(l,o){return this.domNode===l||this.domNode.compareDocumentPosition(l)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(o,1):-1},p.prototype.position=function(l,o){var a=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);return l>0&&(a+=1),[this.parent.domNode,a]},p.prototype.value=function(){var l;return l={},l[this.statics.blotName]=this.statics.value(this.domNode)||!0,l},p.scope=O.Scope.INLINE_BLOT,p}(h.default);r.default=m},function(t,r,i){var f=i(11),h=i(3),O={attributes:{compose:function(_,p,l){typeof _!="object"&&(_={}),typeof p!="object"&&(p={});var o=h(!0,{},p);l||(o=Object.keys(o).reduce(function(y,d){return o[d]!=null&&(y[d]=o[d]),y},{}));for(var a in _)_[a]!==void 0&&p[a]===void 0&&(o[a]=_[a]);return Object.keys(o).length>0?o:void 0},diff:function(_,p){typeof _!="object"&&(_={}),typeof p!="object"&&(p={});var l=Object.keys(_).concat(Object.keys(p)).reduce(function(o,a){return f(_[a],p[a])||(o[a]=p[a]===void 0?null:p[a]),o},{});return Object.keys(l).length>0?l:void 0},transform:function(_,p,l){if(typeof _!="object")return p;if(typeof p=="object"){if(!l)return p;var o=Object.keys(p).reduce(function(a,y){return _[y]===void 0&&(a[y]=p[y]),a},{});return Object.keys(o).length>0?o:void 0}}},iterator:function(_){return new m(_)},length:function(_){return typeof _.delete=="number"?_.delete:typeof _.retain=="number"?_.retain:typeof _.insert=="string"?_.insert.length:1}};function m(_){this.ops=_,this.index=0,this.offset=0}m.prototype.hasNext=function(){return this.peekLength()<1/0},m.prototype.next=function(_){_||(_=1/0);var p=this.ops[this.index];if(p){var l=this.offset,o=O.length(p);if(_>=o-l?(_=o-l,this.index+=1,this.offset=0):this.offset+=_,typeof p.delete=="number")return{delete:_};var a={};return p.attributes&&(a.attributes=p.attributes),typeof p.retain=="number"?a.retain=_:typeof p.insert=="string"?a.insert=p.insert.substr(l,_):a.insert=p.insert,a}else return{retain:1/0}},m.prototype.peek=function(){return this.ops[this.index]},m.prototype.peekLength=function(){return this.ops[this.index]?O.length(this.ops[this.index])-this.offset:1/0},m.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"},m.prototype.rest=function(){if(this.hasNext()){if(this.offset===0)return this.ops.slice(this.index);var _=this.offset,p=this.index,l=this.next(),o=this.ops.slice(this.index);return this.offset=_,this.index=p,[l].concat(o)}else return[]},t.exports=O},function(t,r){var i=function(){function f(d,v){return v!=null&&d instanceof v}var h;try{h=Map}catch{h=function(){}}var O;try{O=Set}catch{O=function(){}}var m;try{m=Promise}catch{m=function(){}}function _(d,v,c,u,b){typeof v=="object"&&(c=v.depth,u=v.prototype,b=v.includeNonEnumerable,v=v.circular);var s=[],g=[],T=typeof Buffer<"u";typeof v>"u"&&(v=!0),typeof c>"u"&&(c=1/0);function A(k,N){if(k===null)return null;if(N===0)return k;var x,E;if(typeof k!="object")return k;if(f(k,h))x=new h;else if(f(k,O))x=new O;else if(f(k,m))x=new m(function(D,q){k.then(function(R){D(A(R,N-1))},function(R){q(A(R,N-1))})});else if(_.__isArray(k))x=[];else if(_.__isRegExp(k))x=new RegExp(k.source,y(k)),k.lastIndex&&(x.lastIndex=k.lastIndex);else if(_.__isDate(k))x=new Date(k.getTime());else{if(T&&Buffer.isBuffer(k))return Buffer.allocUnsafe?x=Buffer.allocUnsafe(k.length):x=new Buffer(k.length),k.copy(x),x;f(k,Error)?x=Object.create(k):typeof u>"u"?(E=Object.getPrototypeOf(k),x=Object.create(E)):(x=Object.create(u),E=u)}if(v){var w=s.indexOf(k);if(w!=-1)return g[w];s.push(k),g.push(x)}f(k,h)&&k.forEach(function(D,q){var R=A(q,N-1),j=A(D,N-1);x.set(R,j)}),f(k,O)&&k.forEach(function(D){var q=A(D,N-1);x.add(q)});for(var S in k){var P;E&&(P=Object.getOwnPropertyDescriptor(E,S)),!(P&&P.set==null)&&(x[S]=A(k[S],N-1))}if(Object.getOwnPropertySymbols)for(var F=Object.getOwnPropertySymbols(k),S=0;S<F.length;S++){var M=F[S],H=Object.getOwnPropertyDescriptor(k,M);H&&!H.enumerable&&!b||(x[M]=A(k[M],N-1),H.enumerable||Object.defineProperty(x,M,{enumerable:!1}))}if(b)for(var Q=Object.getOwnPropertyNames(k),S=0;S<Q.length;S++){var C=Q[S],H=Object.getOwnPropertyDescriptor(k,C);H&&H.enumerable||(x[C]=A(k[C],N-1),Object.defineProperty(x,C,{enumerable:!1}))}return x}return A(d,c)}_.clonePrototype=function(v){if(v===null)return null;var c=function(){};return c.prototype=v,new c};function p(d){return Object.prototype.toString.call(d)}_.__objToStr=p;function l(d){return typeof d=="object"&&p(d)==="[object Date]"}_.__isDate=l;function o(d){return typeof d=="object"&&p(d)==="[object Array]"}_.__isArray=o;function a(d){return typeof d=="object"&&p(d)==="[object RegExp]"}_.__isRegExp=a;function y(d){var v="";return d.global&&(v+="g"),d.ignoreCase&&(v+="i"),d.multiline&&(v+="m"),v}return _.__getRegExpFlags=y,_}();typeof t=="object"&&t.exports&&(t.exports=i)},function(t,r,i){Object.defineProperty(r,"__esModule",{value:!0});var f=function(){function x(E,w){var S=[],P=!0,F=!1,M=void 0;try{for(var H=E[Symbol.iterator](),Q;!(P=(Q=H.next()).done)&&(S.push(Q.value),!(w&&S.length===w));P=!0);}catch(C){F=!0,M=C}finally{try{!P&&H.return&&H.return()}finally{if(F)throw M}}return S}return function(E,w){if(Array.isArray(E))return E;if(Symbol.iterator in Object(E))return x(E,w);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),h=function(){function x(E,w){for(var S=0;S<w.length;S++){var P=w[S];P.enumerable=P.enumerable||!1,P.configurable=!0,"value"in P&&(P.writable=!0),Object.defineProperty(E,P.key,P)}}return function(E,w,S){return w&&x(E.prototype,w),S&&x(E,S),E}}(),O=function x(E,w,S){E===null&&(E=Function.prototype);var P=Object.getOwnPropertyDescriptor(E,w);if(P===void 0){var F=Object.getPrototypeOf(E);return F===null?void 0:x(F,w,S)}else{if("value"in P)return P.value;var M=P.get;return M===void 0?void 0:M.call(S)}},m=i(0),_=s(m),p=i(8),l=s(p),o=i(4),a=s(o),y=i(16),d=s(y),v=i(13),c=s(v),u=i(25),b=s(u);function s(x){return x&&x.__esModule?x:{default:x}}function g(x,E){if(!(x instanceof E))throw new TypeError("Cannot call a class as a function")}function T(x,E){if(!x)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return E&&(typeof E=="object"||typeof E=="function")?E:x}function A(x,E){if(typeof E!="function"&&E!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof E);x.prototype=Object.create(E&&E.prototype,{constructor:{value:x,enumerable:!1,writable:!0,configurable:!0}}),E&&(Object.setPrototypeOf?Object.setPrototypeOf(x,E):x.__proto__=E)}function k(x){return x instanceof a.default||x instanceof o.BlockEmbed}var N=function(x){A(E,x);function E(w,S){g(this,E);var P=T(this,(E.__proto__||Object.getPrototypeOf(E)).call(this,w));return P.emitter=S.emitter,Array.isArray(S.whitelist)&&(P.whitelist=S.whitelist.reduce(function(F,M){return F[M]=!0,F},{})),P.domNode.addEventListener("DOMNodeInserted",function(){}),P.optimize(),P.enable(),P}return h(E,[{key:"batchStart",value:function(){this.batch=!0}},{key:"batchEnd",value:function(){this.batch=!1,this.optimize()}},{key:"deleteAt",value:function(S,P){var F=this.line(S),M=f(F,2),H=M[0],Q=M[1],C=this.line(S+P),D=f(C,1),q=D[0];if(O(E.prototype.__proto__||Object.getPrototypeOf(E.prototype),"deleteAt",this).call(this,S,P),q!=null&&H!==q&&Q>0){if(H instanceof o.BlockEmbed||q instanceof o.BlockEmbed){this.optimize();return}if(H instanceof c.default){var R=H.newlineIndex(H.length(),!0);if(R>-1&&(H=H.split(R+1),H===q)){this.optimize();return}}else if(q instanceof c.default){var j=q.newlineIndex(0);j>-1&&q.split(j+1)}var B=q.children.head instanceof d.default?null:q.children.head;H.moveChildren(q,B),H.remove()}this.optimize()}},{key:"enable",value:function(){var S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.domNode.setAttribute("contenteditable",S)}},{key:"formatAt",value:function(S,P,F,M){this.whitelist!=null&&!this.whitelist[F]||(O(E.prototype.__proto__||Object.getPrototypeOf(E.prototype),"formatAt",this).call(this,S,P,F,M),this.optimize())}},{key:"insertAt",value:function(S,P,F){if(!(F!=null&&this.whitelist!=null&&!this.whitelist[P])){if(S>=this.length())if(F==null||_.default.query(P,_.default.Scope.BLOCK)==null){var M=_.default.create(this.statics.defaultChild);this.appendChild(M),F==null&&P.endsWith(`
`)&&(P=P.slice(0,-1)),M.insertAt(0,P,F)}else{var H=_.default.create(P,F);this.appendChild(H)}else O(E.prototype.__proto__||Object.getPrototypeOf(E.prototype),"insertAt",this).call(this,S,P,F);this.optimize()}}},{key:"insertBefore",value:function(S,P){if(S.statics.scope===_.default.Scope.INLINE_BLOT){var F=_.default.create(this.statics.defaultChild);F.appendChild(S),S=F}O(E.prototype.__proto__||Object.getPrototypeOf(E.prototype),"insertBefore",this).call(this,S,P)}},{key:"leaf",value:function(S){return this.path(S).pop()||[null,-1]}},{key:"line",value:function(S){return S===this.length()?this.line(S-1):this.descendant(k,S)}},{key:"lines",value:function(){var S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE,F=function M(H,Q,C){var D=[],q=C;return H.children.forEachAt(Q,C,function(R,j,B){k(R)?D.push(R):R instanceof _.default.Container&&(D=D.concat(M(R,j,q))),q-=B}),D};return F(this,S,P)}},{key:"optimize",value:function(){var S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.batch!==!0&&(O(E.prototype.__proto__||Object.getPrototypeOf(E.prototype),"optimize",this).call(this,S,P),S.length>0&&this.emitter.emit(l.default.events.SCROLL_OPTIMIZE,S,P))}},{key:"path",value:function(S){return O(E.prototype.__proto__||Object.getPrototypeOf(E.prototype),"path",this).call(this,S).slice(1)}},{key:"update",value:function(S){if(this.batch!==!0){var P=l.default.sources.USER;typeof S=="string"&&(P=S),Array.isArray(S)||(S=this.observer.takeRecords()),S.length>0&&this.emitter.emit(l.default.events.SCROLL_BEFORE_UPDATE,P,S),O(E.prototype.__proto__||Object.getPrototypeOf(E.prototype),"update",this).call(this,S.concat([])),S.length>0&&this.emitter.emit(l.default.events.SCROLL_UPDATE,P,S)}}}]),E}(_.default.Scroll);N.blotName="scroll",N.className="ql-editor",N.tagName="DIV",N.defaultChild="block",N.allowedChildren=[a.default,o.BlockEmbed,b.default],r.default=N},function(t,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.SHORTKEY=r.default=void 0;var f=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},h=function(){function L($,Z){var W=[],J=!0,le=!1,de=void 0;try{for(var pe=$[Symbol.iterator](),ve;!(J=(ve=pe.next()).done)&&(W.push(ve.value),!(Z&&W.length===Z));J=!0);}catch(I){le=!0,de=I}finally{try{!J&&pe.return&&pe.return()}finally{if(le)throw de}}return W}return function($,Z){if(Array.isArray($))return $;if(Symbol.iterator in Object($))return L($,Z);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),O=function(){function L($,Z){for(var W=0;W<Z.length;W++){var J=Z[W];J.enumerable=J.enumerable||!1,J.configurable=!0,"value"in J&&(J.writable=!0),Object.defineProperty($,J.key,J)}}return function($,Z,W){return Z&&L($.prototype,Z),W&&L($,W),$}}(),m=i(21),_=x(m),p=i(11),l=x(p),o=i(3),a=x(o),y=i(2),d=x(y),v=i(20),c=x(v),u=i(0),b=x(u),s=i(5),g=x(s),T=i(10),A=x(T),k=i(9),N=x(k);function x(L){return L&&L.__esModule?L:{default:L}}function E(L,$,Z){return $ in L?Object.defineProperty(L,$,{value:Z,enumerable:!0,configurable:!0,writable:!0}):L[$]=Z,L}function w(L,$){if(!(L instanceof $))throw new TypeError("Cannot call a class as a function")}function S(L,$){if(!L)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return $&&(typeof $=="object"||typeof $=="function")?$:L}function P(L,$){if(typeof $!="function"&&$!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof $);L.prototype=Object.create($&&$.prototype,{constructor:{value:L,enumerable:!1,writable:!0,configurable:!0}}),$&&(Object.setPrototypeOf?Object.setPrototypeOf(L,$):L.__proto__=$)}var F=(0,A.default)("quill:keyboard"),M=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",H=function(L){P($,L),O($,null,[{key:"match",value:function(W,J){return J=V(J),["altKey","ctrlKey","metaKey","shiftKey"].some(function(le){return!!J[le]!==W[le]&&J[le]!==null})?!1:J.key===(W.which||W.keyCode)}}]);function $(Z,W){w(this,$);var J=S(this,($.__proto__||Object.getPrototypeOf($)).call(this,Z,W));return J.bindings={},Object.keys(J.options.bindings).forEach(function(le){le==="list autofill"&&Z.scroll.whitelist!=null&&!Z.scroll.whitelist.list||J.options.bindings[le]&&J.addBinding(J.options.bindings[le])}),J.addBinding({key:$.keys.ENTER,shiftKey:null},R),J.addBinding({key:$.keys.ENTER,metaKey:null,ctrlKey:null,altKey:null},function(){}),/Firefox/i.test(navigator.userAgent)?(J.addBinding({key:$.keys.BACKSPACE},{collapsed:!0},C),J.addBinding({key:$.keys.DELETE},{collapsed:!0},D)):(J.addBinding({key:$.keys.BACKSPACE},{collapsed:!0,prefix:/^.?$/},C),J.addBinding({key:$.keys.DELETE},{collapsed:!0,suffix:/^.?$/},D)),J.addBinding({key:$.keys.BACKSPACE},{collapsed:!1},q),J.addBinding({key:$.keys.DELETE},{collapsed:!1},q),J.addBinding({key:$.keys.BACKSPACE,altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},C),J.listen(),J}return O($,[{key:"addBinding",value:function(W){var J=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},le=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},de=V(W);if(de==null||de.key==null)return F.warn("Attempted to add invalid keyboard binding",de);typeof J=="function"&&(J={handler:J}),typeof le=="function"&&(le={handler:le}),de=(0,a.default)(de,J,le),this.bindings[de.key]=this.bindings[de.key]||[],this.bindings[de.key].push(de)}},{key:"listen",value:function(){var W=this;this.quill.root.addEventListener("keydown",function(J){if(!J.defaultPrevented){var le=J.which||J.keyCode,de=(W.bindings[le]||[]).filter(function(K){return $.match(J,K)});if(de.length!==0){var pe=W.quill.getSelection();if(!(pe==null||!W.quill.hasFocus())){var ve=W.quill.getLine(pe.index),I=h(ve,2),Y=I[0],X=I[1],z=W.quill.getLeaf(pe.index),U=h(z,2),G=U[0],te=U[1],ee=pe.length===0?[G,te]:W.quill.getLeaf(pe.index+pe.length),ue=h(ee,2),he=ue[0],ye=ue[1],qe=G instanceof b.default.Text?G.value().slice(0,te):"",Re=he instanceof b.default.Text?he.value().slice(ye):"",_e={collapsed:pe.length===0,empty:pe.length===0&&Y.length()<=1,format:W.quill.getFormat(pe),offset:X,prefix:qe,suffix:Re},ne=de.some(function(K){if(K.collapsed!=null&&K.collapsed!==_e.collapsed||K.empty!=null&&K.empty!==_e.empty||K.offset!=null&&K.offset!==_e.offset)return!1;if(Array.isArray(K.format)){if(K.format.every(function(oe){return _e.format[oe]==null}))return!1}else if(f(K.format)==="object"&&!Object.keys(K.format).every(function(oe){return K.format[oe]===!0?_e.format[oe]!=null:K.format[oe]===!1?_e.format[oe]==null:(0,l.default)(K.format[oe],_e.format[oe])}))return!1;return K.prefix!=null&&!K.prefix.test(_e.prefix)||K.suffix!=null&&!K.suffix.test(_e.suffix)?!1:K.handler.call(W,pe,_e)!==!0});ne&&J.preventDefault()}}}})}}]),$}(N.default);H.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},H.DEFAULTS={bindings:{bold:B("bold"),italic:B("italic"),underline:B("underline"),indent:{key:H.keys.TAB,format:["blockquote","indent","list"],handler:function($,Z){if(Z.collapsed&&Z.offset!==0)return!0;this.quill.format("indent","+1",g.default.sources.USER)}},outdent:{key:H.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function($,Z){if(Z.collapsed&&Z.offset!==0)return!0;this.quill.format("indent","-1",g.default.sources.USER)}},"outdent backspace":{key:H.keys.BACKSPACE,collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function($,Z){Z.format.indent!=null?this.quill.format("indent","-1",g.default.sources.USER):Z.format.list!=null&&this.quill.format("list",!1,g.default.sources.USER)}},"indent code-block":j(!0),"outdent code-block":j(!1),"remove tab":{key:H.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function($){this.quill.deleteText($.index-1,1,g.default.sources.USER)}},tab:{key:H.keys.TAB,handler:function($){this.quill.history.cutoff();var Z=new d.default().retain($.index).delete($.length).insert(" ");this.quill.updateContents(Z,g.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection($.index+1,g.default.sources.SILENT)}},"list empty enter":{key:H.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function($,Z){this.quill.format("list",!1,g.default.sources.USER),Z.format.indent&&this.quill.format("indent",!1,g.default.sources.USER)}},"checklist enter":{key:H.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function($){var Z=this.quill.getLine($.index),W=h(Z,2),J=W[0],le=W[1],de=(0,a.default)({},J.formats(),{list:"checked"}),pe=new d.default().retain($.index).insert(`
`,de).retain(J.length()-le-1).retain(1,{list:"unchecked"});this.quill.updateContents(pe,g.default.sources.USER),this.quill.setSelection($.index+1,g.default.sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:H.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function($,Z){var W=this.quill.getLine($.index),J=h(W,2),le=J[0],de=J[1],pe=new d.default().retain($.index).insert(`
`,Z.format).retain(le.length()-de-1).retain(1,{header:null});this.quill.updateContents(pe,g.default.sources.USER),this.quill.setSelection($.index+1,g.default.sources.SILENT),this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function($,Z){var W=Z.prefix.length,J=this.quill.getLine($.index),le=h(J,2),de=le[0],pe=le[1];if(pe>W)return!0;var ve=void 0;switch(Z.prefix.trim()){case"[]":case"[ ]":ve="unchecked";break;case"[x]":ve="checked";break;case"-":case"*":ve="bullet";break;default:ve="ordered"}this.quill.insertText($.index," ",g.default.sources.USER),this.quill.history.cutoff();var I=new d.default().retain($.index-pe).delete(W+1).retain(de.length()-2-pe).retain(1,{list:ve});this.quill.updateContents(I,g.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection($.index-W,g.default.sources.SILENT)}},"code exit":{key:H.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function($){var Z=this.quill.getLine($.index),W=h(Z,2),J=W[0],le=W[1],de=new d.default().retain($.index+J.length()-le-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(de,g.default.sources.USER)}},"embed left":Q(H.keys.LEFT,!1),"embed left shift":Q(H.keys.LEFT,!0),"embed right":Q(H.keys.RIGHT,!1),"embed right shift":Q(H.keys.RIGHT,!0)}};function Q(L,$){var Z,W=L===H.keys.LEFT?"prefix":"suffix";return Z={key:L,shiftKey:$,altKey:null},E(Z,W,/^$/),E(Z,"handler",function(le){var de=le.index;L===H.keys.RIGHT&&(de+=le.length+1);var pe=this.quill.getLeaf(de),ve=h(pe,1),I=ve[0];return I instanceof b.default.Embed?(L===H.keys.LEFT?$?this.quill.setSelection(le.index-1,le.length+1,g.default.sources.USER):this.quill.setSelection(le.index-1,g.default.sources.USER):$?this.quill.setSelection(le.index,le.length+1,g.default.sources.USER):this.quill.setSelection(le.index+le.length+1,g.default.sources.USER),!1):!0}),Z}function C(L,$){if(!(L.index===0||this.quill.getLength()<=1)){var Z=this.quill.getLine(L.index),W=h(Z,1),J=W[0],le={};if($.offset===0){var de=this.quill.getLine(L.index-1),pe=h(de,1),ve=pe[0];if(ve!=null&&ve.length()>1){var I=J.formats(),Y=this.quill.getFormat(L.index-1,1);le=c.default.attributes.diff(I,Y)||{}}}var X=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test($.prefix)?2:1;this.quill.deleteText(L.index-X,X,g.default.sources.USER),Object.keys(le).length>0&&this.quill.formatLine(L.index-X,X,le,g.default.sources.USER),this.quill.focus()}}function D(L,$){var Z=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test($.suffix)?2:1;if(!(L.index>=this.quill.getLength()-Z)){var W={},J=0,le=this.quill.getLine(L.index),de=h(le,1),pe=de[0];if($.offset>=pe.length()-1){var ve=this.quill.getLine(L.index+1),I=h(ve,1),Y=I[0];if(Y){var X=pe.formats(),z=this.quill.getFormat(L.index,1);W=c.default.attributes.diff(X,z)||{},J=Y.length()}}this.quill.deleteText(L.index,Z,g.default.sources.USER),Object.keys(W).length>0&&this.quill.formatLine(L.index+J-1,Z,W,g.default.sources.USER)}}function q(L){var $=this.quill.getLines(L),Z={};if($.length>1){var W=$[0].formats(),J=$[$.length-1].formats();Z=c.default.attributes.diff(J,W)||{}}this.quill.deleteText(L,g.default.sources.USER),Object.keys(Z).length>0&&this.quill.formatLine(L.index,1,Z,g.default.sources.USER),this.quill.setSelection(L.index,g.default.sources.SILENT),this.quill.focus()}function R(L,$){var Z=this;L.length>0&&this.quill.scroll.deleteAt(L.index,L.length);var W=Object.keys($.format).reduce(function(J,le){return b.default.query(le,b.default.Scope.BLOCK)&&!Array.isArray($.format[le])&&(J[le]=$.format[le]),J},{});this.quill.insertText(L.index,`
`,W,g.default.sources.USER),this.quill.setSelection(L.index+1,g.default.sources.SILENT),this.quill.focus(),Object.keys($.format).forEach(function(J){W[J]==null&&(Array.isArray($.format[J])||J!=="link"&&Z.quill.format(J,$.format[J],g.default.sources.USER))})}function j(L){return{key:H.keys.TAB,shiftKey:!L,format:{"code-block":!0},handler:function(Z){var W=b.default.query("code-block"),J=Z.index,le=Z.length,de=this.quill.scroll.descendant(W,J),pe=h(de,2),ve=pe[0],I=pe[1];if(ve!=null){var Y=this.quill.getIndex(ve),X=ve.newlineIndex(I,!0)+1,z=ve.newlineIndex(Y+I+le),U=ve.domNode.textContent.slice(X,z).split(`
`);I=0,U.forEach(function(G,te){L?(ve.insertAt(X+I,W.TAB),I+=W.TAB.length,te===0?J+=W.TAB.length:le+=W.TAB.length):G.startsWith(W.TAB)&&(ve.deleteAt(X+I,W.TAB.length),I-=W.TAB.length,te===0?J-=W.TAB.length:le-=W.TAB.length),I+=G.length+1}),this.quill.update(g.default.sources.USER),this.quill.setSelection(J,le,g.default.sources.SILENT)}}}}function B(L){return{key:L[0].toUpperCase(),shortKey:!0,handler:function(Z,W){this.quill.format(L,!W.format[L],g.default.sources.USER)}}}function V(L){if(typeof L=="string"||typeof L=="number")return V({key:L});if((typeof L>"u"?"undefined":f(L))==="object"&&(L=(0,_.default)(L,!1)),typeof L.key=="string")if(H.keys[L.key.toUpperCase()]!=null)L.key=H.keys[L.key.toUpperCase()];else if(L.key.length===1)L.key=L.key.toUpperCase().charCodeAt(0);else return null;return L.shortKey&&(L[M]=L.shortKey,delete L.shortKey),L}r.default=H,r.SHORTKEY=M},function(t,r,i){Object.defineProperty(r,"__esModule",{value:!0});var f=function(){function c(u,b){var s=[],g=!0,T=!1,A=void 0;try{for(var k=u[Symbol.iterator](),N;!(g=(N=k.next()).done)&&(s.push(N.value),!(b&&s.length===b));g=!0);}catch(x){T=!0,A=x}finally{try{!g&&k.return&&k.return()}finally{if(T)throw A}}return s}return function(u,b){if(Array.isArray(u))return u;if(Symbol.iterator in Object(u))return c(u,b);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),h=function c(u,b,s){u===null&&(u=Function.prototype);var g=Object.getOwnPropertyDescriptor(u,b);if(g===void 0){var T=Object.getPrototypeOf(u);return T===null?void 0:c(T,b,s)}else{if("value"in g)return g.value;var A=g.get;return A===void 0?void 0:A.call(s)}},O=function(){function c(u,b){for(var s=0;s<b.length;s++){var g=b[s];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(u,g.key,g)}}return function(u,b,s){return b&&c(u.prototype,b),s&&c(u,s),u}}(),m=i(0),_=o(m),p=i(7),l=o(p);function o(c){return c&&c.__esModule?c:{default:c}}function a(c,u){if(!(c instanceof u))throw new TypeError("Cannot call a class as a function")}function y(c,u){if(!c)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return u&&(typeof u=="object"||typeof u=="function")?u:c}function d(c,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof u);c.prototype=Object.create(u&&u.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),u&&(Object.setPrototypeOf?Object.setPrototypeOf(c,u):c.__proto__=u)}var v=function(c){d(u,c),O(u,null,[{key:"value",value:function(){}}]);function u(b,s){a(this,u);var g=y(this,(u.__proto__||Object.getPrototypeOf(u)).call(this,b));return g.selection=s,g.textNode=document.createTextNode(u.CONTENTS),g.domNode.appendChild(g.textNode),g._length=0,g}return O(u,[{key:"detach",value:function(){this.parent!=null&&this.parent.removeChild(this)}},{key:"format",value:function(s,g){if(this._length!==0)return h(u.prototype.__proto__||Object.getPrototypeOf(u.prototype),"format",this).call(this,s,g);for(var T=this,A=0;T!=null&&T.statics.scope!==_.default.Scope.BLOCK_BLOT;)A+=T.offset(T.parent),T=T.parent;T!=null&&(this._length=u.CONTENTS.length,T.optimize(),T.formatAt(A,u.CONTENTS.length,s,g),this._length=0)}},{key:"index",value:function(s,g){return s===this.textNode?0:h(u.prototype.__proto__||Object.getPrototypeOf(u.prototype),"index",this).call(this,s,g)}},{key:"length",value:function(){return this._length}},{key:"position",value:function(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function(){h(u.prototype.__proto__||Object.getPrototypeOf(u.prototype),"remove",this).call(this),this.parent=null}},{key:"restore",value:function(){if(!(this.selection.composing||this.parent==null)){var s=this.textNode,g=this.selection.getNativeRange(),T=void 0,A=void 0,k=void 0;if(g!=null&&g.start.node===s&&g.end.node===s){var N=[s,g.start.offset,g.end.offset];T=N[0],A=N[1],k=N[2]}for(;this.domNode.lastChild!=null&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);if(this.textNode.data!==u.CONTENTS){var x=this.textNode.data.split(u.CONTENTS).join("");this.next instanceof l.default?(T=this.next.domNode,this.next.insertAt(0,x),this.textNode.data=u.CONTENTS):(this.textNode.data=x,this.parent.insertBefore(_.default.create(this.textNode),this),this.textNode=document.createTextNode(u.CONTENTS),this.domNode.appendChild(this.textNode))}if(this.remove(),A!=null){var E=[A,k].map(function(S){return Math.max(0,Math.min(T.data.length,S-1))}),w=f(E,2);return A=w[0],k=w[1],{startNode:T,startOffset:A,endNode:T,endOffset:k}}}}},{key:"update",value:function(s,g){var T=this;if(s.some(function(k){return k.type==="characterData"&&k.target===T.textNode})){var A=this.restore();A&&(g.range=A)}}},{key:"value",value:function(){return""}}]),u}(_.default.Embed);v.blotName="cursor",v.className="ql-cursor",v.tagName="span",v.CONTENTS="\uFEFF",r.default=v},function(t,r,i){Object.defineProperty(r,"__esModule",{value:!0});var f=i(0),h=_(f),O=i(4),m=_(O);function _(y){return y&&y.__esModule?y:{default:y}}function p(y,d){if(!(y instanceof d))throw new TypeError("Cannot call a class as a function")}function l(y,d){if(!y)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return d&&(typeof d=="object"||typeof d=="function")?d:y}function o(y,d){if(typeof d!="function"&&d!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof d);y.prototype=Object.create(d&&d.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),d&&(Object.setPrototypeOf?Object.setPrototypeOf(y,d):y.__proto__=d)}var a=function(y){o(d,y);function d(){return p(this,d),l(this,(d.__proto__||Object.getPrototypeOf(d)).apply(this,arguments))}return d}(h.default.Container);a.allowedChildren=[m.default,O.BlockEmbed,a],r.default=a},function(t,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.ColorStyle=r.ColorClass=r.ColorAttributor=void 0;var f=function(){function v(c,u){for(var b=0;b<u.length;b++){var s=u[b];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(c,s.key,s)}}return function(c,u,b){return u&&v(c.prototype,u),b&&v(c,b),c}}(),h=function v(c,u,b){c===null&&(c=Function.prototype);var s=Object.getOwnPropertyDescriptor(c,u);if(s===void 0){var g=Object.getPrototypeOf(c);return g===null?void 0:v(g,u,b)}else{if("value"in s)return s.value;var T=s.get;return T===void 0?void 0:T.call(b)}},O=i(0),m=_(O);function _(v){return v&&v.__esModule?v:{default:v}}function p(v,c){if(!(v instanceof c))throw new TypeError("Cannot call a class as a function")}function l(v,c){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return c&&(typeof c=="object"||typeof c=="function")?c:v}function o(v,c){if(typeof c!="function"&&c!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof c);v.prototype=Object.create(c&&c.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),c&&(Object.setPrototypeOf?Object.setPrototypeOf(v,c):v.__proto__=c)}var a=function(v){o(c,v);function c(){return p(this,c),l(this,(c.__proto__||Object.getPrototypeOf(c)).apply(this,arguments))}return f(c,[{key:"value",value:function(b){var s=h(c.prototype.__proto__||Object.getPrototypeOf(c.prototype),"value",this).call(this,b);return s.startsWith("rgb(")?(s=s.replace(/^[^\d]+/,"").replace(/[^\d]+$/,""),"#"+s.split(",").map(function(g){return("00"+parseInt(g).toString(16)).slice(-2)}).join("")):s}}]),c}(m.default.Attributor.Style),y=new m.default.Attributor.Class("color","ql-color",{scope:m.default.Scope.INLINE}),d=new a("color","color",{scope:m.default.Scope.INLINE});r.ColorAttributor=a,r.ColorClass=y,r.ColorStyle=d},function(t,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.sanitize=r.default=void 0;var f=function(){function d(v,c){for(var u=0;u<c.length;u++){var b=c[u];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(v,b.key,b)}}return function(v,c,u){return c&&d(v.prototype,c),u&&d(v,u),v}}(),h=function d(v,c,u){v===null&&(v=Function.prototype);var b=Object.getOwnPropertyDescriptor(v,c);if(b===void 0){var s=Object.getPrototypeOf(v);return s===null?void 0:d(s,c,u)}else{if("value"in b)return b.value;var g=b.get;return g===void 0?void 0:g.call(u)}},O=i(6),m=_(O);function _(d){return d&&d.__esModule?d:{default:d}}function p(d,v){if(!(d instanceof v))throw new TypeError("Cannot call a class as a function")}function l(d,v){if(!d)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v&&(typeof v=="object"||typeof v=="function")?v:d}function o(d,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);d.prototype=Object.create(v&&v.prototype,{constructor:{value:d,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(d,v):d.__proto__=v)}var a=function(d){o(v,d);function v(){return p(this,v),l(this,(v.__proto__||Object.getPrototypeOf(v)).apply(this,arguments))}return f(v,[{key:"format",value:function(u,b){if(u!==this.statics.blotName||!b)return h(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"format",this).call(this,u,b);b=this.constructor.sanitize(b),this.domNode.setAttribute("href",b)}}],[{key:"create",value:function(u){var b=h(v.__proto__||Object.getPrototypeOf(v),"create",this).call(this,u);return u=this.sanitize(u),b.setAttribute("href",u),b.setAttribute("rel","noopener noreferrer"),b.setAttribute("target","_blank"),b}},{key:"formats",value:function(u){return u.getAttribute("href")}},{key:"sanitize",value:function(u){return y(u,this.PROTOCOL_WHITELIST)?u:this.SANITIZED_URL}}]),v}(m.default);a.blotName="link",a.tagName="A",a.SANITIZED_URL="about:blank",a.PROTOCOL_WHITELIST=["http","https","mailto","tel"];function y(d,v){var c=document.createElement("a");c.href=d;var u=c.href.slice(0,c.href.indexOf(":"));return v.indexOf(u)>-1}r.default=a,r.sanitize=y},function(t,r,i){Object.defineProperty(r,"__esModule",{value:!0});var f=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(v){return typeof v}:function(v){return v&&typeof Symbol=="function"&&v.constructor===Symbol&&v!==Symbol.prototype?"symbol":typeof v},h=function(){function v(c,u){for(var b=0;b<u.length;b++){var s=u[b];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(c,s.key,s)}}return function(c,u,b){return u&&v(c.prototype,u),b&&v(c,b),c}}(),O=i(23),m=l(O),_=i(107),p=l(_);function l(v){return v&&v.__esModule?v:{default:v}}function o(v,c){if(!(v instanceof c))throw new TypeError("Cannot call a class as a function")}var a=0;function y(v,c){v.setAttribute(c,v.getAttribute(c)!=="true")}var d=function(){function v(c){var u=this;o(this,v),this.select=c,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(){u.togglePicker()}),this.label.addEventListener("keydown",function(b){switch(b.keyCode){case m.default.keys.ENTER:u.togglePicker();break;case m.default.keys.ESCAPE:u.escape(),b.preventDefault();break}}),this.select.addEventListener("change",this.update.bind(this))}return h(v,[{key:"togglePicker",value:function(){this.container.classList.toggle("ql-expanded"),y(this.label,"aria-expanded"),y(this.options,"aria-hidden")}},{key:"buildItem",value:function(u){var b=this,s=document.createElement("span");return s.tabIndex="0",s.setAttribute("role","button"),s.classList.add("ql-picker-item"),u.hasAttribute("value")&&s.setAttribute("data-value",u.getAttribute("value")),u.textContent&&s.setAttribute("data-label",u.textContent),s.addEventListener("click",function(){b.selectItem(s,!0)}),s.addEventListener("keydown",function(g){switch(g.keyCode){case m.default.keys.ENTER:b.selectItem(s,!0),g.preventDefault();break;case m.default.keys.ESCAPE:b.escape(),g.preventDefault();break}}),s}},{key:"buildLabel",value:function(){var u=document.createElement("span");return u.classList.add("ql-picker-label"),u.innerHTML=p.default,u.tabIndex="0",u.setAttribute("role","button"),u.setAttribute("aria-expanded","false"),this.container.appendChild(u),u}},{key:"buildOptions",value:function(){var u=this,b=document.createElement("span");b.classList.add("ql-picker-options"),b.setAttribute("aria-hidden","true"),b.tabIndex="-1",b.id="ql-picker-options-"+a,a+=1,this.label.setAttribute("aria-controls",b.id),this.options=b,[].slice.call(this.select.options).forEach(function(s){var g=u.buildItem(s);b.appendChild(g),s.selected===!0&&u.selectItem(g)}),this.container.appendChild(b)}},{key:"buildPicker",value:function(){var u=this;[].slice.call(this.select.attributes).forEach(function(b){u.container.setAttribute(b.name,b.value)}),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}},{key:"escape",value:function(){var u=this;this.close(),setTimeout(function(){return u.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(u){var b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,s=this.container.querySelector(".ql-selected");if(u!==s&&(s!=null&&s.classList.remove("ql-selected"),u!=null&&(u.classList.add("ql-selected"),this.select.selectedIndex=[].indexOf.call(u.parentNode.children,u),u.hasAttribute("data-value")?this.label.setAttribute("data-value",u.getAttribute("data-value")):this.label.removeAttribute("data-value"),u.hasAttribute("data-label")?this.label.setAttribute("data-label",u.getAttribute("data-label")):this.label.removeAttribute("data-label"),b))){if(typeof Event=="function")this.select.dispatchEvent(new Event("change"));else if((typeof Event>"u"?"undefined":f(Event))==="object"){var g=document.createEvent("Event");g.initEvent("change",!0,!0),this.select.dispatchEvent(g)}this.close()}}},{key:"update",value:function(){var u=void 0;if(this.select.selectedIndex>-1){var b=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];u=this.select.options[this.select.selectedIndex],this.selectItem(b)}else this.selectItem(null);var s=u!=null&&u!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",s)}}]),v}();r.default=d},function(t,r,i){Object.defineProperty(r,"__esModule",{value:!0});var f=i(0),h=F(f),O=i(5),m=F(O),_=i(4),p=F(_),l=i(16),o=F(l),a=i(25),y=F(a),d=i(24),v=F(d),c=i(35),u=F(c),b=i(6),s=F(b),g=i(22),T=F(g),A=i(7),k=F(A),N=i(55),x=F(N),E=i(42),w=F(E),S=i(23),P=F(S);function F(M){return M&&M.__esModule?M:{default:M}}m.default.register({"blots/block":p.default,"blots/block/embed":_.BlockEmbed,"blots/break":o.default,"blots/container":y.default,"blots/cursor":v.default,"blots/embed":u.default,"blots/inline":s.default,"blots/scroll":T.default,"blots/text":k.default,"modules/clipboard":x.default,"modules/history":w.default,"modules/keyboard":P.default}),h.default.register(p.default,o.default,v.default,s.default,T.default,k.default),r.default=m.default},function(t,r,i){Object.defineProperty(r,"__esModule",{value:!0});var f=i(1),h=function(){function O(m){this.domNode=m,this.domNode[f.DATA_KEY]={blot:this}}return Object.defineProperty(O.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),O.create=function(m){if(this.tagName==null)throw new f.ParchmentError("Blot definition missing tagName");var _;return Array.isArray(this.tagName)?(typeof m=="string"&&(m=m.toUpperCase(),parseInt(m).toString()===m&&(m=parseInt(m))),typeof m=="number"?_=document.createElement(this.tagName[m-1]):this.tagName.indexOf(m)>-1?_=document.createElement(m):_=document.createElement(this.tagName[0])):_=document.createElement(this.tagName),this.className&&_.classList.add(this.className),_},O.prototype.attach=function(){this.parent!=null&&(this.scroll=this.parent.scroll)},O.prototype.clone=function(){var m=this.domNode.cloneNode(!1);return f.create(m)},O.prototype.detach=function(){this.parent!=null&&this.parent.removeChild(this),delete this.domNode[f.DATA_KEY]},O.prototype.deleteAt=function(m,_){var p=this.isolate(m,_);p.remove()},O.prototype.formatAt=function(m,_,p,l){var o=this.isolate(m,_);if(f.query(p,f.Scope.BLOT)!=null&&l)o.wrap(p,l);else if(f.query(p,f.Scope.ATTRIBUTE)!=null){var a=f.create(this.statics.scope);o.wrap(a),a.format(p,l)}},O.prototype.insertAt=function(m,_,p){var l=p==null?f.create("text",_):f.create(_,p),o=this.split(m);this.parent.insertBefore(l,o)},O.prototype.insertInto=function(m,_){_===void 0&&(_=null),this.parent!=null&&this.parent.children.remove(this);var p=null;m.children.insertBefore(this,_),_!=null&&(p=_.domNode),(this.domNode.parentNode!=m.domNode||this.domNode.nextSibling!=p)&&m.domNode.insertBefore(this.domNode,p),this.parent=m,this.attach()},O.prototype.isolate=function(m,_){var p=this.split(m);return p.split(_),p},O.prototype.length=function(){return 1},O.prototype.offset=function(m){return m===void 0&&(m=this.parent),this.parent==null||this==m?0:this.parent.children.offset(this)+this.parent.offset(m)},O.prototype.optimize=function(m){this.domNode[f.DATA_KEY]!=null&&delete this.domNode[f.DATA_KEY].mutations},O.prototype.remove=function(){this.domNode.parentNode!=null&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},O.prototype.replace=function(m){m.parent!=null&&(m.parent.insertBefore(this,m.next),m.remove())},O.prototype.replaceWith=function(m,_){var p=typeof m=="string"?f.create(m,_):m;return p.replace(this),p},O.prototype.split=function(m,_){return m===0?this:this.next},O.prototype.update=function(m,_){},O.prototype.wrap=function(m,_){var p=typeof m=="string"?f.create(m,_):m;return this.parent!=null&&this.parent.insertBefore(p,this.next),p.appendChild(this),p},O.blotName="abstract",O}();r.default=h},function(t,r,i){Object.defineProperty(r,"__esModule",{value:!0});var f=i(12),h=i(32),O=i(33),m=i(1),_=function(){function p(l){this.attributes={},this.domNode=l,this.build()}return p.prototype.attribute=function(l,o){o?l.add(this.domNode,o)&&(l.value(this.domNode)!=null?this.attributes[l.attrName]=l:delete this.attributes[l.attrName]):(l.remove(this.domNode),delete this.attributes[l.attrName])},p.prototype.build=function(){var l=this;this.attributes={};var o=f.default.keys(this.domNode),a=h.default.keys(this.domNode),y=O.default.keys(this.domNode);o.concat(a).concat(y).forEach(function(d){var v=m.query(d,m.Scope.ATTRIBUTE);v instanceof f.default&&(l.attributes[v.attrName]=v)})},p.prototype.copy=function(l){var o=this;Object.keys(this.attributes).forEach(function(a){var y=o.attributes[a].value(o.domNode);l.format(a,y)})},p.prototype.move=function(l){var o=this;this.copy(l),Object.keys(this.attributes).forEach(function(a){o.attributes[a].remove(o.domNode)}),this.attributes={}},p.prototype.values=function(){var l=this;return Object.keys(this.attributes).reduce(function(o,a){return o[a]=l.attributes[a].value(l.domNode),o},{})},p}();r.default=_},function(t,r,i){var f=this&&this.__extends||function(){var _=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,l){p.__proto__=l}||function(p,l){for(var o in l)l.hasOwnProperty(o)&&(p[o]=l[o])};return function(p,l){_(p,l);function o(){this.constructor=p}p.prototype=l===null?Object.create(l):(o.prototype=l.prototype,new o)}}();Object.defineProperty(r,"__esModule",{value:!0});var h=i(12);function O(_,p){var l=_.getAttribute("class")||"";return l.split(/\s+/).filter(function(o){return o.indexOf(p+"-")===0})}var m=function(_){f(p,_);function p(){return _!==null&&_.apply(this,arguments)||this}return p.keys=function(l){return(l.getAttribute("class")||"").split(/\s+/).map(function(o){return o.split("-").slice(0,-1).join("-")})},p.prototype.add=function(l,o){return this.canAdd(l,o)?(this.remove(l),l.classList.add(this.keyName+"-"+o),!0):!1},p.prototype.remove=function(l){var o=O(l,this.keyName);o.forEach(function(a){l.classList.remove(a)}),l.classList.length===0&&l.removeAttribute("class")},p.prototype.value=function(l){var o=O(l,this.keyName)[0]||"",a=o.slice(this.keyName.length+1);return this.canAdd(l,a)?a:""},p}(h.default);r.default=m},function(t,r,i){var f=this&&this.__extends||function(){var _=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,l){p.__proto__=l}||function(p,l){for(var o in l)l.hasOwnProperty(o)&&(p[o]=l[o])};return function(p,l){_(p,l);function o(){this.constructor=p}p.prototype=l===null?Object.create(l):(o.prototype=l.prototype,new o)}}();Object.defineProperty(r,"__esModule",{value:!0});var h=i(12);function O(_){var p=_.split("-"),l=p.slice(1).map(function(o){return o[0].toUpperCase()+o.slice(1)}).join("");return p[0]+l}var m=function(_){f(p,_);function p(){return _!==null&&_.apply(this,arguments)||this}return p.keys=function(l){return(l.getAttribute("style")||"").split(";").map(function(o){var a=o.split(":");return a[0].trim()})},p.prototype.add=function(l,o){return this.canAdd(l,o)?(l.style[O(this.keyName)]=o,!0):!1},p.prototype.remove=function(l){l.style[O(this.keyName)]="",l.getAttribute("style")||l.removeAttribute("style")},p.prototype.value=function(l){var o=l.style[O(this.keyName)];return this.canAdd(l,o)?o:""},p}(h.default);r.default=m},function(t,r,i){Object.defineProperty(r,"__esModule",{value:!0});var f=function(){function m(_,p){for(var l=0;l<p.length;l++){var o=p[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(_,o.key,o)}}return function(_,p,l){return p&&m(_.prototype,p),l&&m(_,l),_}}();function h(m,_){if(!(m instanceof _))throw new TypeError("Cannot call a class as a function")}var O=function(){function m(_,p){h(this,m),this.quill=_,this.options=p,this.modules={}}return f(m,[{key:"init",value:function(){var p=this;Object.keys(this.options.modules).forEach(function(l){p.modules[l]==null&&p.addModule(l)})}},{key:"addModule",value:function(p){var l=this.quill.constructor.import("modules/"+p);return this.modules[p]=new l(this.quill,this.options.modules[p]||{}),this.modules[p]}}]),m}();O.DEFAULTS={modules:{}},O.themes={default:O},r.default=O},function(t,r,i){Object.defineProperty(r,"__esModule",{value:!0});var f=function(){function c(u,b){for(var s=0;s<b.length;s++){var g=b[s];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(u,g.key,g)}}return function(u,b,s){return b&&c(u.prototype,b),s&&c(u,s),u}}(),h=function c(u,b,s){u===null&&(u=Function.prototype);var g=Object.getOwnPropertyDescriptor(u,b);if(g===void 0){var T=Object.getPrototypeOf(u);return T===null?void 0:c(T,b,s)}else{if("value"in g)return g.value;var A=g.get;return A===void 0?void 0:A.call(s)}},O=i(0),m=l(O),_=i(7),p=l(_);function l(c){return c&&c.__esModule?c:{default:c}}function o(c,u){if(!(c instanceof u))throw new TypeError("Cannot call a class as a function")}function a(c,u){if(!c)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return u&&(typeof u=="object"||typeof u=="function")?u:c}function y(c,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof u);c.prototype=Object.create(u&&u.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),u&&(Object.setPrototypeOf?Object.setPrototypeOf(c,u):c.__proto__=u)}var d="\uFEFF",v=function(c){y(u,c);function u(b){o(this,u);var s=a(this,(u.__proto__||Object.getPrototypeOf(u)).call(this,b));return s.contentNode=document.createElement("span"),s.contentNode.setAttribute("contenteditable",!1),[].slice.call(s.domNode.childNodes).forEach(function(g){s.contentNode.appendChild(g)}),s.leftGuard=document.createTextNode(d),s.rightGuard=document.createTextNode(d),s.domNode.appendChild(s.leftGuard),s.domNode.appendChild(s.contentNode),s.domNode.appendChild(s.rightGuard),s}return f(u,[{key:"index",value:function(s,g){return s===this.leftGuard?0:s===this.rightGuard?1:h(u.prototype.__proto__||Object.getPrototypeOf(u.prototype),"index",this).call(this,s,g)}},{key:"restore",value:function(s){var g=void 0,T=void 0,A=s.data.split(d).join("");if(s===this.leftGuard)if(this.prev instanceof p.default){var k=this.prev.length();this.prev.insertAt(k,A),g={startNode:this.prev.domNode,startOffset:k+A.length}}else T=document.createTextNode(A),this.parent.insertBefore(m.default.create(T),this),g={startNode:T,startOffset:A.length};else s===this.rightGuard&&(this.next instanceof p.default?(this.next.insertAt(0,A),g={startNode:this.next.domNode,startOffset:A.length}):(T=document.createTextNode(A),this.parent.insertBefore(m.default.create(T),this.next),g={startNode:T,startOffset:A.length}));return s.data=d,g}},{key:"update",value:function(s,g){var T=this;s.forEach(function(A){if(A.type==="characterData"&&(A.target===T.leftGuard||A.target===T.rightGuard)){var k=T.restore(A.target);k&&(g.range=k)}})}}]),u}(m.default.Embed);r.default=v},function(t,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.AlignStyle=r.AlignClass=r.AlignAttribute=void 0;var f=i(0),h=O(f);function O(o){return o&&o.__esModule?o:{default:o}}var m={scope:h.default.Scope.BLOCK,whitelist:["right","center","justify"]},_=new h.default.Attributor.Attribute("align","align",m),p=new h.default.Attributor.Class("align","ql-align",m),l=new h.default.Attributor.Style("align","text-align",m);r.AlignAttribute=_,r.AlignClass=p,r.AlignStyle=l},function(t,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.BackgroundStyle=r.BackgroundClass=void 0;var f=i(0),h=m(f),O=i(26);function m(l){return l&&l.__esModule?l:{default:l}}var _=new h.default.Attributor.Class("background","ql-bg",{scope:h.default.Scope.INLINE}),p=new O.ColorAttributor("background","background-color",{scope:h.default.Scope.INLINE});r.BackgroundClass=_,r.BackgroundStyle=p},function(t,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.DirectionStyle=r.DirectionClass=r.DirectionAttribute=void 0;var f=i(0),h=O(f);function O(o){return o&&o.__esModule?o:{default:o}}var m={scope:h.default.Scope.BLOCK,whitelist:["rtl"]},_=new h.default.Attributor.Attribute("direction","dir",m),p=new h.default.Attributor.Class("direction","ql-direction",m),l=new h.default.Attributor.Style("direction","direction",m);r.DirectionAttribute=_,r.DirectionClass=p,r.DirectionStyle=l},function(t,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.FontClass=r.FontStyle=void 0;var f=function(){function c(u,b){for(var s=0;s<b.length;s++){var g=b[s];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(u,g.key,g)}}return function(u,b,s){return b&&c(u.prototype,b),s&&c(u,s),u}}(),h=function c(u,b,s){u===null&&(u=Function.prototype);var g=Object.getOwnPropertyDescriptor(u,b);if(g===void 0){var T=Object.getPrototypeOf(u);return T===null?void 0:c(T,b,s)}else{if("value"in g)return g.value;var A=g.get;return A===void 0?void 0:A.call(s)}},O=i(0),m=_(O);function _(c){return c&&c.__esModule?c:{default:c}}function p(c,u){if(!(c instanceof u))throw new TypeError("Cannot call a class as a function")}function l(c,u){if(!c)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return u&&(typeof u=="object"||typeof u=="function")?u:c}function o(c,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof u);c.prototype=Object.create(u&&u.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),u&&(Object.setPrototypeOf?Object.setPrototypeOf(c,u):c.__proto__=u)}var a={scope:m.default.Scope.INLINE,whitelist:["serif","monospace"]},y=new m.default.Attributor.Class("font","ql-font",a),d=function(c){o(u,c);function u(){return p(this,u),l(this,(u.__proto__||Object.getPrototypeOf(u)).apply(this,arguments))}return f(u,[{key:"value",value:function(s){return h(u.prototype.__proto__||Object.getPrototypeOf(u.prototype),"value",this).call(this,s).replace(/["']/g,"")}}]),u}(m.default.Attributor.Style),v=new d("font","font-family",a);r.FontStyle=v,r.FontClass=y},function(t,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.SizeStyle=r.SizeClass=void 0;var f=i(0),h=O(f);function O(p){return p&&p.__esModule?p:{default:p}}var m=new h.default.Attributor.Class("size","ql-size",{scope:h.default.Scope.INLINE,whitelist:["small","large","huge"]}),_=new h.default.Attributor.Style("size","font-size",{scope:h.default.Scope.INLINE,whitelist:["10px","18px","32px"]});r.SizeClass=m,r.SizeStyle=_},function(t,r,i){t.exports={align:{"":i(76),center:i(77),right:i(78),justify:i(79)},background:i(80),blockquote:i(81),bold:i(82),clean:i(83),code:i(58),"code-block":i(58),color:i(84),direction:{"":i(85),rtl:i(86)},float:{center:i(87),full:i(88),left:i(89),right:i(90)},formula:i(91),header:{1:i(92),2:i(93)},italic:i(94),image:i(95),indent:{"+1":i(96),"-1":i(97)},link:i(98),list:{ordered:i(99),bullet:i(100),check:i(101)},script:{sub:i(102),super:i(103)},strike:i(104),underline:i(105),video:i(106)}},function(t,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.getLastChangeIndex=r.default=void 0;var f=function(){function b(s,g){for(var T=0;T<g.length;T++){var A=g[T];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(s,A.key,A)}}return function(s,g,T){return g&&b(s.prototype,g),T&&b(s,T),s}}(),h=i(0),O=o(h),m=i(5),_=o(m),p=i(9),l=o(p);function o(b){return b&&b.__esModule?b:{default:b}}function a(b,s){if(!(b instanceof s))throw new TypeError("Cannot call a class as a function")}function y(b,s){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s&&(typeof s=="object"||typeof s=="function")?s:b}function d(b,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof s);b.prototype=Object.create(s&&s.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),s&&(Object.setPrototypeOf?Object.setPrototypeOf(b,s):b.__proto__=s)}var v=function(b){d(s,b);function s(g,T){a(this,s);var A=y(this,(s.__proto__||Object.getPrototypeOf(s)).call(this,g,T));return A.lastRecorded=0,A.ignoreChange=!1,A.clear(),A.quill.on(_.default.events.EDITOR_CHANGE,function(k,N,x,E){k!==_.default.events.TEXT_CHANGE||A.ignoreChange||(!A.options.userOnly||E===_.default.sources.USER?A.record(N,x):A.transform(N))}),A.quill.keyboard.addBinding({key:"Z",shortKey:!0},A.undo.bind(A)),A.quill.keyboard.addBinding({key:"Z",shortKey:!0,shiftKey:!0},A.redo.bind(A)),/Win/i.test(navigator.platform)&&A.quill.keyboard.addBinding({key:"Y",shortKey:!0},A.redo.bind(A)),A}return f(s,[{key:"change",value:function(T,A){if(this.stack[T].length!==0){var k=this.stack[T].pop();this.stack[A].push(k),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(k[T],_.default.sources.USER),this.ignoreChange=!1;var N=u(k[T]);this.quill.setSelection(N)}}},{key:"clear",value:function(){this.stack={undo:[],redo:[]}}},{key:"cutoff",value:function(){this.lastRecorded=0}},{key:"record",value:function(T,A){if(T.ops.length!==0){this.stack.redo=[];var k=this.quill.getContents().diff(A),N=Date.now();if(this.lastRecorded+this.options.delay>N&&this.stack.undo.length>0){var x=this.stack.undo.pop();k=k.compose(x.undo),T=x.redo.compose(T)}else this.lastRecorded=N;this.stack.undo.push({redo:T,undo:k}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(T){this.stack.undo.forEach(function(A){A.undo=T.transform(A.undo,!0),A.redo=T.transform(A.redo,!0)}),this.stack.redo.forEach(function(A){A.undo=T.transform(A.undo,!0),A.redo=T.transform(A.redo,!0)})}},{key:"undo",value:function(){this.change("undo","redo")}}]),s}(l.default);v.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1};function c(b){var s=b.ops[b.ops.length-1];return s==null?!1:s.insert!=null?typeof s.insert=="string"&&s.insert.endsWith(`
`):s.attributes!=null?Object.keys(s.attributes).some(function(g){return O.default.query(g,O.default.Scope.BLOCK)!=null}):!1}function u(b){var s=b.reduce(function(T,A){return T+=A.delete||0,T},0),g=b.length()-s;return c(b)&&(g-=1),g}r.default=v,r.getLastChangeIndex=u},function(t,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.default=r.BaseTooltip=void 0;var f=function(){function R(j,B){for(var V=0;V<B.length;V++){var L=B[V];L.enumerable=L.enumerable||!1,L.configurable=!0,"value"in L&&(L.writable=!0),Object.defineProperty(j,L.key,L)}}return function(j,B,V){return B&&R(j.prototype,B),V&&R(j,V),j}}(),h=function R(j,B,V){j===null&&(j=Function.prototype);var L=Object.getOwnPropertyDescriptor(j,B);if(L===void 0){var $=Object.getPrototypeOf(j);return $===null?void 0:R($,B,V)}else{if("value"in L)return L.value;var Z=L.get;return Z===void 0?void 0:Z.call(V)}},O=i(3),m=N(O),_=i(2),p=N(_),l=i(8),o=N(l),a=i(23),y=N(a),d=i(34),v=N(d),c=i(59),u=N(c),b=i(60),s=N(b),g=i(28),T=N(g),A=i(61),k=N(A);function N(R){return R&&R.__esModule?R:{default:R}}function x(R,j){if(!(R instanceof j))throw new TypeError("Cannot call a class as a function")}function E(R,j){if(!R)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return j&&(typeof j=="object"||typeof j=="function")?j:R}function w(R,j){if(typeof j!="function"&&j!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof j);R.prototype=Object.create(j&&j.prototype,{constructor:{value:R,enumerable:!1,writable:!0,configurable:!0}}),j&&(Object.setPrototypeOf?Object.setPrototypeOf(R,j):R.__proto__=j)}var S=[!1,"center","right","justify"],P=["#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"],F=[!1,"serif","monospace"],M=["1","2","3",!1],H=["small",!1,"large","huge"],Q=function(R){w(j,R);function j(B,V){x(this,j);var L=E(this,(j.__proto__||Object.getPrototypeOf(j)).call(this,B,V)),$=function Z(W){if(!document.body.contains(B.root))return document.body.removeEventListener("click",Z);L.tooltip!=null&&!L.tooltip.root.contains(W.target)&&document.activeElement!==L.tooltip.textbox&&!L.quill.hasFocus()&&L.tooltip.hide(),L.pickers!=null&&L.pickers.forEach(function(J){J.container.contains(W.target)||J.close()})};return B.emitter.listenDOM("click",document.body,$),L}return f(j,[{key:"addModule",value:function(V){var L=h(j.prototype.__proto__||Object.getPrototypeOf(j.prototype),"addModule",this).call(this,V);return V==="toolbar"&&this.extendToolbar(L),L}},{key:"buildButtons",value:function(V,L){V.forEach(function($){var Z=$.getAttribute("class")||"";Z.split(/\s+/).forEach(function(W){if(!!W.startsWith("ql-")&&(W=W.slice(3),L[W]!=null))if(W==="direction")$.innerHTML=L[W][""]+L[W].rtl;else if(typeof L[W]=="string")$.innerHTML=L[W];else{var J=$.value||"";J!=null&&L[W][J]&&($.innerHTML=L[W][J])}})})}},{key:"buildPickers",value:function(V,L){var $=this;this.pickers=V.map(function(W){if(W.classList.contains("ql-align"))return W.querySelector("option")==null&&q(W,S),new s.default(W,L.align);if(W.classList.contains("ql-background")||W.classList.contains("ql-color")){var J=W.classList.contains("ql-background")?"background":"color";return W.querySelector("option")==null&&q(W,P,J==="background"?"#ffffff":"#000000"),new u.default(W,L[J])}else return W.querySelector("option")==null&&(W.classList.contains("ql-font")?q(W,F):W.classList.contains("ql-header")?q(W,M):W.classList.contains("ql-size")&&q(W,H)),new T.default(W)});var Z=function(){$.pickers.forEach(function(J){J.update()})};this.quill.on(o.default.events.EDITOR_CHANGE,Z)}}]),j}(v.default);Q.DEFAULTS=(0,m.default)(!0,{},v.default.DEFAULTS,{modules:{toolbar:{handlers:{formula:function(){this.quill.theme.tooltip.edit("formula")},image:function(){var j=this,B=this.container.querySelector("input.ql-image[type=file]");B==null&&(B=document.createElement("input"),B.setAttribute("type","file"),B.setAttribute("accept","image/png, image/gif, image/jpeg, image/bmp, image/x-icon"),B.classList.add("ql-image"),B.addEventListener("change",function(){if(B.files!=null&&B.files[0]!=null){var V=new FileReader;V.onload=function(L){var $=j.quill.getSelection(!0);j.quill.updateContents(new p.default().retain($.index).delete($.length).insert({image:L.target.result}),o.default.sources.USER),j.quill.setSelection($.index+1,o.default.sources.SILENT),B.value=""},V.readAsDataURL(B.files[0])}}),this.container.appendChild(B)),B.click()},video:function(){this.quill.theme.tooltip.edit("video")}}}}});var C=function(R){w(j,R);function j(B,V){x(this,j);var L=E(this,(j.__proto__||Object.getPrototypeOf(j)).call(this,B,V));return L.textbox=L.root.querySelector('input[type="text"]'),L.listen(),L}return f(j,[{key:"listen",value:function(){var V=this;this.textbox.addEventListener("keydown",function(L){y.default.match(L,"enter")?(V.save(),L.preventDefault()):y.default.match(L,"escape")&&(V.cancel(),L.preventDefault())})}},{key:"cancel",value:function(){this.hide()}},{key:"edit",value:function(){var V=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:V!==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-"+V)||""),this.root.setAttribute("data-mode",V)}},{key:"restoreFocus",value:function(){var V=this.quill.scrollingContainer.scrollTop;this.quill.focus(),this.quill.scrollingContainer.scrollTop=V}},{key:"save",value:function(){var V=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",V,o.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",V,o.default.sources.USER)),this.quill.root.scrollTop=L;break}case"video":V=D(V);case"formula":{if(!V)break;var $=this.quill.getSelection(!0);if($!=null){var Z=$.index+$.length;this.quill.insertEmbed(Z,this.root.getAttribute("data-mode"),V,o.default.sources.USER),this.root.getAttribute("data-mode")==="formula"&&this.quill.insertText(Z+1," ",o.default.sources.USER),this.quill.setSelection(Z+2,o.default.sources.USER)}break}}this.textbox.value="",this.hide()}}]),j}(k.default);function D(R){var j=R.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||R.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);return j?(j[1]||"https")+"://www.youtube.com/embed/"+j[2]+"?showinfo=0":(j=R.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?(j[1]||"https")+"://player.vimeo.com/video/"+j[2]+"/":R}function q(R,j){var B=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;j.forEach(function(V){var L=document.createElement("option");V===B?L.setAttribute("selected","selected"):L.setAttribute("value",V),R.appendChild(L)})}r.BaseTooltip=C,r.default=Q},function(t,r,i){Object.defineProperty(r,"__esModule",{value:!0});var f=function(){function h(){this.head=this.tail=null,this.length=0}return h.prototype.append=function(){for(var O=[],m=0;m<arguments.length;m++)O[m]=arguments[m];this.insertBefore(O[0],null),O.length>1&&this.append.apply(this,O.slice(1))},h.prototype.contains=function(O){for(var m,_=this.iterator();m=_();)if(m===O)return!0;return!1},h.prototype.insertBefore=function(O,m){!O||(O.next=m,m!=null?(O.prev=m.prev,m.prev!=null&&(m.prev.next=O),m.prev=O,m===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)},h.prototype.offset=function(O){for(var m=0,_=this.head;_!=null;){if(_===O)return m;m+=_.length(),_=_.next}return-1},h.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)},h.prototype.iterator=function(O){return O===void 0&&(O=this.head),function(){var m=O;return O!=null&&(O=O.next),m}},h.prototype.find=function(O,m){m===void 0&&(m=!1);for(var _,p=this.iterator();_=p();){var l=_.length();if(O<l||m&&O===l&&(_.next==null||_.next.length()!==0))return[_,O];O-=l}return[null,0]},h.prototype.forEach=function(O){for(var m,_=this.iterator();m=_();)O(m)},h.prototype.forEachAt=function(O,m,_){if(!(m<=0))for(var p=this.find(O),l=p[0],o=p[1],a,y=O-o,d=this.iterator(l);(a=d())&&y<O+m;){var v=a.length();O>y?_(a,O-y,Math.min(m,y+v-O)):_(a,0,Math.min(v,O+m-y)),y+=v}},h.prototype.map=function(O){return this.reduce(function(m,_){return m.push(O(_)),m},[])},h.prototype.reduce=function(O,m){for(var _,p=this.iterator();_=p();)m=O(m,_);return m},h}();r.default=f},function(t,r,i){var f=this&&this.__extends||function(){var l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,a){o.__proto__=a}||function(o,a){for(var y in a)a.hasOwnProperty(y)&&(o[y]=a[y])};return function(o,a){l(o,a);function y(){this.constructor=o}o.prototype=a===null?Object.create(a):(y.prototype=a.prototype,new y)}}();Object.defineProperty(r,"__esModule",{value:!0});var h=i(17),O=i(1),m={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},_=100,p=function(l){f(o,l);function o(a){var y=l.call(this,a)||this;return y.scroll=y,y.observer=new MutationObserver(function(d){y.update(d)}),y.observer.observe(y.domNode,m),y.attach(),y}return o.prototype.detach=function(){l.prototype.detach.call(this),this.observer.disconnect()},o.prototype.deleteAt=function(a,y){this.update(),a===0&&y===this.length()?this.children.forEach(function(d){d.remove()}):l.prototype.deleteAt.call(this,a,y)},o.prototype.formatAt=function(a,y,d,v){this.update(),l.prototype.formatAt.call(this,a,y,d,v)},o.prototype.insertAt=function(a,y,d){this.update(),l.prototype.insertAt.call(this,a,y,d)},o.prototype.optimize=function(a,y){var d=this;a===void 0&&(a=[]),y===void 0&&(y={}),l.prototype.optimize.call(this,y);for(var v=[].slice.call(this.observer.takeRecords());v.length>0;)a.push(v.pop());for(var c=function(g,T){T===void 0&&(T=!0),!(g==null||g===d)&&g.domNode.parentNode!=null&&(g.domNode[O.DATA_KEY].mutations==null&&(g.domNode[O.DATA_KEY].mutations=[]),T&&c(g.parent))},u=function(g){g.domNode[O.DATA_KEY]==null||g.domNode[O.DATA_KEY].mutations==null||(g instanceof h.default&&g.children.forEach(u),g.optimize(y))},b=a,s=0;b.length>0;s+=1){if(s>=_)throw new Error("[Parchment] Maximum optimize iterations reached");for(b.forEach(function(g){var T=O.find(g.target,!0);T!=null&&(T.domNode===g.target&&(g.type==="childList"?(c(O.find(g.previousSibling,!1)),[].forEach.call(g.addedNodes,function(A){var k=O.find(A,!1);c(k,!1),k instanceof h.default&&k.children.forEach(function(N){c(N,!1)})})):g.type==="attributes"&&c(T.prev)),c(T))}),this.children.forEach(u),b=[].slice.call(this.observer.takeRecords()),v=b.slice();v.length>0;)a.push(v.pop())}},o.prototype.update=function(a,y){var d=this;y===void 0&&(y={}),a=a||this.observer.takeRecords(),a.map(function(v){var c=O.find(v.target,!0);return c==null?null:c.domNode[O.DATA_KEY].mutations==null?(c.domNode[O.DATA_KEY].mutations=[v],c):(c.domNode[O.DATA_KEY].mutations.push(v),null)}).forEach(function(v){v==null||v===d||v.domNode[O.DATA_KEY]==null||v.update(v.domNode[O.DATA_KEY].mutations||[],y)}),this.domNode[O.DATA_KEY].mutations!=null&&l.prototype.update.call(this,this.domNode[O.DATA_KEY].mutations,y),this.optimize(a,y)},o.blotName="scroll",o.defaultChild="block",o.scope=O.Scope.BLOCK_BLOT,o.tagName="DIV",o}(h.default);r.default=p},function(t,r,i){var f=this&&this.__extends||function(){var p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,o){l.__proto__=o}||function(l,o){for(var a in o)o.hasOwnProperty(a)&&(l[a]=o[a])};return function(l,o){p(l,o);function a(){this.constructor=l}l.prototype=o===null?Object.create(o):(a.prototype=o.prototype,new a)}}();Object.defineProperty(r,"__esModule",{value:!0});var h=i(18),O=i(1);function m(p,l){if(Object.keys(p).length!==Object.keys(l).length)return!1;for(var o in p)if(p[o]!==l[o])return!1;return!0}var _=function(p){f(l,p);function l(){return p!==null&&p.apply(this,arguments)||this}return l.formats=function(o){if(o.tagName!==l.tagName)return p.formats.call(this,o)},l.prototype.format=function(o,a){var y=this;o===this.statics.blotName&&!a?(this.children.forEach(function(d){d instanceof h.default||(d=d.wrap(l.blotName,!0)),y.attributes.copy(d)}),this.unwrap()):p.prototype.format.call(this,o,a)},l.prototype.formatAt=function(o,a,y,d){if(this.formats()[y]!=null||O.query(y,O.Scope.ATTRIBUTE)){var v=this.isolate(o,a);v.format(y,d)}else p.prototype.formatAt.call(this,o,a,y,d)},l.prototype.optimize=function(o){p.prototype.optimize.call(this,o);var a=this.formats();if(Object.keys(a).length===0)return this.unwrap();var y=this.next;y instanceof l&&y.prev===this&&m(a,y.formats())&&(y.moveChildren(this),y.remove())},l.blotName="inline",l.scope=O.Scope.INLINE_BLOT,l.tagName="SPAN",l}(h.default);r.default=_},function(t,r,i){var f=this&&this.__extends||function(){var _=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,l){p.__proto__=l}||function(p,l){for(var o in l)l.hasOwnProperty(o)&&(p[o]=l[o])};return function(p,l){_(p,l);function o(){this.constructor=p}p.prototype=l===null?Object.create(l):(o.prototype=l.prototype,new o)}}();Object.defineProperty(r,"__esModule",{value:!0});var h=i(18),O=i(1),m=function(_){f(p,_);function p(){return _!==null&&_.apply(this,arguments)||this}return p.formats=function(l){var o=O.query(p.blotName).tagName;if(l.tagName!==o)return _.formats.call(this,l)},p.prototype.format=function(l,o){O.query(l,O.Scope.BLOCK)!=null&&(l===this.statics.blotName&&!o?this.replaceWith(p.blotName):_.prototype.format.call(this,l,o))},p.prototype.formatAt=function(l,o,a,y){O.query(a,O.Scope.BLOCK)!=null?this.format(a,y):_.prototype.formatAt.call(this,l,o,a,y)},p.prototype.insertAt=function(l,o,a){if(a==null||O.query(o,O.Scope.INLINE)!=null)_.prototype.insertAt.call(this,l,o,a);else{var y=this.split(l),d=O.create(o,a);y.parent.insertBefore(d,y)}},p.prototype.update=function(l,o){navigator.userAgent.match(/Trident/)?this.build():_.prototype.update.call(this,l,o)},p.blotName="block",p.scope=O.Scope.BLOCK_BLOT,p.tagName="P",p}(h.default);r.default=m},function(t,r,i){var f=this&&this.__extends||function(){var m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(_,p){_.__proto__=p}||function(_,p){for(var l in p)p.hasOwnProperty(l)&&(_[l]=p[l])};return function(_,p){m(_,p);function l(){this.constructor=_}_.prototype=p===null?Object.create(p):(l.prototype=p.prototype,new l)}}();Object.defineProperty(r,"__esModule",{value:!0});var h=i(19),O=function(m){f(_,m);function _(){return m!==null&&m.apply(this,arguments)||this}return _.formats=function(p){},_.prototype.format=function(p,l){m.prototype.formatAt.call(this,0,this.length(),p,l)},_.prototype.formatAt=function(p,l,o,a){p===0&&l===this.length()?this.format(o,a):m.prototype.formatAt.call(this,p,l,o,a)},_.prototype.formats=function(){return this.statics.formats(this.domNode)},_}(h.default);r.default=O},function(t,r,i){var f=this&&this.__extends||function(){var _=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,l){p.__proto__=l}||function(p,l){for(var o in l)l.hasOwnProperty(o)&&(p[o]=l[o])};return function(p,l){_(p,l);function o(){this.constructor=p}p.prototype=l===null?Object.create(l):(o.prototype=l.prototype,new o)}}();Object.defineProperty(r,"__esModule",{value:!0});var h=i(19),O=i(1),m=function(_){f(p,_);function p(l){var o=_.call(this,l)||this;return o.text=o.statics.value(o.domNode),o}return p.create=function(l){return document.createTextNode(l)},p.value=function(l){var o=l.data;return o.normalize&&(o=o.normalize()),o},p.prototype.deleteAt=function(l,o){this.domNode.data=this.text=this.text.slice(0,l)+this.text.slice(l+o)},p.prototype.index=function(l,o){return this.domNode===l?o:-1},p.prototype.insertAt=function(l,o,a){a==null?(this.text=this.text.slice(0,l)+o+this.text.slice(l),this.domNode.data=this.text):_.prototype.insertAt.call(this,l,o,a)},p.prototype.length=function(){return this.text.length},p.prototype.optimize=function(l){_.prototype.optimize.call(this,l),this.text=this.statics.value(this.domNode),this.text.length===0?this.remove():this.next instanceof p&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},p.prototype.position=function(l,o){return[this.domNode,l]},p.prototype.split=function(l,o){if(o===void 0&&(o=!1),!o){if(l===0)return this;if(l===this.length())return this.next}var a=O.create(this.domNode.splitText(l));return this.parent.insertBefore(a,this.next),this.text=this.statics.value(this.domNode),a},p.prototype.update=function(l,o){var a=this;l.some(function(y){return y.type==="characterData"&&y.target===a.domNode})&&(this.text=this.statics.value(this.domNode))},p.prototype.value=function(){return this.text},p.blotName="text",p.scope=O.Scope.INLINE_BLOT,p}(h.default);r.default=m},function(t,r,i){var f=document.createElement("div");if(f.classList.toggle("test-class",!1),f.classList.contains("test-class")){var h=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(O,m){return arguments.length>1&&!this.contains(O)==!m?m:h.call(this,O)}}String.prototype.startsWith||(String.prototype.startsWith=function(O,m){return m=m||0,this.substr(m,O.length)===O}),String.prototype.endsWith||(String.prototype.endsWith=function(O,m){var _=this.toString();(typeof m!="number"||!isFinite(m)||Math.floor(m)!==m||m>_.length)&&(m=_.length),m-=O.length;var p=_.indexOf(O,m);return p!==-1&&p===m}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(m){if(this===null)throw new TypeError("Array.prototype.find called on null or undefined");if(typeof m!="function")throw new TypeError("predicate must be a function");for(var _=Object(this),p=_.length>>>0,l=arguments[1],o,a=0;a<p;a++)if(o=_[a],m.call(l,o,a,_))return o}}),document.addEventListener("DOMContentLoaded",function(){document.execCommand("enableObjectResizing",!1,!1),document.execCommand("autoUrlDetect",!1,!1)})},function(t,r){var i=-1,f=1,h=0;function O(s,g,T){if(s==g)return s?[[h,s]]:[];(T<0||s.length<T)&&(T=null);var A=l(s,g),k=s.substring(0,A);s=s.substring(A),g=g.substring(A),A=o(s,g);var N=s.substring(s.length-A);s=s.substring(0,s.length-A),g=g.substring(0,g.length-A);var x=m(s,g);return k&&x.unshift([h,k]),N&&x.push([h,N]),y(x),T!=null&&(x=c(x,T)),x=u(x),x}function m(s,g){var T;if(!s)return[[f,g]];if(!g)return[[i,s]];var A=s.length>g.length?s:g,k=s.length>g.length?g:s,N=A.indexOf(k);if(N!=-1)return T=[[f,A.substring(0,N)],[h,k],[f,A.substring(N+k.length)]],s.length>g.length&&(T[0][0]=T[2][0]=i),T;if(k.length==1)return[[i,s],[f,g]];var x=a(s,g);if(x){var E=x[0],w=x[1],S=x[2],P=x[3],F=x[4],M=O(E,S),H=O(w,P);return M.concat([[h,F]],H)}return _(s,g)}function _(s,g){for(var T=s.length,A=g.length,k=Math.ceil((T+A)/2),N=k,x=2*k,E=new Array(x),w=new Array(x),S=0;S<x;S++)E[S]=-1,w[S]=-1;E[N+1]=0,w[N+1]=0;for(var P=T-A,F=P%2!=0,M=0,H=0,Q=0,C=0,D=0;D<k;D++){for(var q=-D+M;q<=D-H;q+=2){var R=N+q,j;q==-D||q!=D&&E[R-1]<E[R+1]?j=E[R+1]:j=E[R-1]+1;for(var B=j-q;j<T&&B<A&&s.charAt(j)==g.charAt(B);)j++,B++;if(E[R]=j,j>T)H+=2;else if(B>A)M+=2;else if(F){var V=N+P-q;if(V>=0&&V<x&&w[V]!=-1){var L=T-w[V];if(j>=L)return p(s,g,j,B)}}}for(var $=-D+Q;$<=D-C;$+=2){var V=N+$,L;$==-D||$!=D&&w[V-1]<w[V+1]?L=w[V+1]:L=w[V-1]+1;for(var Z=L-$;L<T&&Z<A&&s.charAt(T-L-1)==g.charAt(A-Z-1);)L++,Z++;if(w[V]=L,L>T)C+=2;else if(Z>A)Q+=2;else if(!F){var R=N+P-$;if(R>=0&&R<x&&E[R]!=-1){var j=E[R],B=N+j-R;if(L=T-L,j>=L)return p(s,g,j,B)}}}}return[[i,s],[f,g]]}function p(s,g,T,A){var k=s.substring(0,T),N=g.substring(0,A),x=s.substring(T),E=g.substring(A),w=O(k,N),S=O(x,E);return w.concat(S)}function l(s,g){if(!s||!g||s.charAt(0)!=g.charAt(0))return 0;for(var T=0,A=Math.min(s.length,g.length),k=A,N=0;T<k;)s.substring(N,k)==g.substring(N,k)?(T=k,N=T):A=k,k=Math.floor((A-T)/2+T);return k}function o(s,g){if(!s||!g||s.charAt(s.length-1)!=g.charAt(g.length-1))return 0;for(var T=0,A=Math.min(s.length,g.length),k=A,N=0;T<k;)s.substring(s.length-k,s.length-N)==g.substring(g.length-k,g.length-N)?(T=k,N=T):A=k,k=Math.floor((A-T)/2+T);return k}function a(s,g){var T=s.length>g.length?s:g,A=s.length>g.length?g:s;if(T.length<4||A.length*2<T.length)return null;function k(H,Q,C){for(var D=H.substring(C,C+Math.floor(H.length/4)),q=-1,R="",j,B,V,L;(q=Q.indexOf(D,q+1))!=-1;){var $=l(H.substring(C),Q.substring(q)),Z=o(H.substring(0,C),Q.substring(0,q));R.length<Z+$&&(R=Q.substring(q-Z,q)+Q.substring(q,q+$),j=H.substring(0,C-Z),B=H.substring(C+$),V=Q.substring(0,q-Z),L=Q.substring(q+$))}return R.length*2>=H.length?[j,B,V,L,R]:null}var N=k(T,A,Math.ceil(T.length/4)),x=k(T,A,Math.ceil(T.length/2)),E;if(!N&&!x)return null;x?N?E=N[4].length>x[4].length?N:x:E=x:E=N;var w,S,P,F;s.length>g.length?(w=E[0],S=E[1],P=E[2],F=E[3]):(P=E[0],F=E[1],w=E[2],S=E[3]);var M=E[4];return[w,S,P,F,M]}function y(s){s.push([h,""]);for(var g=0,T=0,A=0,k="",N="",x;g<s.length;)switch(s[g][0]){case f:A++,N+=s[g][1],g++;break;case i:T++,k+=s[g][1],g++;break;case h:T+A>1?(T!==0&&A!==0&&(x=l(N,k),x!==0&&(g-T-A>0&&s[g-T-A-1][0]==h?s[g-T-A-1][1]+=N.substring(0,x):(s.splice(0,0,[h,N.substring(0,x)]),g++),N=N.substring(x),k=k.substring(x)),x=o(N,k),x!==0&&(s[g][1]=N.substring(N.length-x)+s[g][1],N=N.substring(0,N.length-x),k=k.substring(0,k.length-x))),T===0?s.splice(g-A,T+A,[f,N]):A===0?s.splice(g-T,T+A,[i,k]):s.splice(g-T-A,T+A,[i,k],[f,N]),g=g-T-A+(T?1:0)+(A?1:0)+1):g!==0&&s[g-1][0]==h?(s[g-1][1]+=s[g][1],s.splice(g,1)):g++,A=0,T=0,k="",N="";break}s[s.length-1][1]===""&&s.pop();var E=!1;for(g=1;g<s.length-1;)s[g-1][0]==h&&s[g+1][0]==h&&(s[g][1].substring(s[g][1].length-s[g-1][1].length)==s[g-1][1]?(s[g][1]=s[g-1][1]+s[g][1].substring(0,s[g][1].length-s[g-1][1].length),s[g+1][1]=s[g-1][1]+s[g+1][1],s.splice(g-1,1),E=!0):s[g][1].substring(0,s[g+1][1].length)==s[g+1][1]&&(s[g-1][1]+=s[g+1][1],s[g][1]=s[g][1].substring(s[g+1][1].length)+s[g+1][1],s.splice(g+1,1),E=!0)),g++;E&&y(s)}var d=O;d.INSERT=f,d.DELETE=i,d.EQUAL=h,t.exports=d;function v(s,g){if(g===0)return[h,s];for(var T=0,A=0;A<s.length;A++){var k=s[A];if(k[0]===i||k[0]===h){var N=T+k[1].length;if(g===N)return[A+1,s];if(g<N){s=s.slice();var x=g-T,E=[k[0],k[1].slice(0,x)],w=[k[0],k[1].slice(x)];return s.splice(A,1,E,w),[A+1,s]}else T=N}}throw new Error("cursor_pos is out of bounds!")}function c(s,g){var T=v(s,g),A=T[1],k=T[0],N=A[k],x=A[k+1];if(N==null)return s;if(N[0]!==h)return s;if(x!=null&&N[1]+x[1]===x[1]+N[1])return A.splice(k,2,x,N),b(A,k,2);if(x!=null&&x[1].indexOf(N[1])===0){A.splice(k,2,[x[0],N[1]],[0,N[1]]);var E=x[1].slice(N[1].length);return E.length>0&&A.splice(k+2,0,[x[0],E]),b(A,k,3)}else return s}function u(s){for(var g=!1,T=function(x){return x.charCodeAt(0)>=56320&&x.charCodeAt(0)<=57343},A=function(x){return x.charCodeAt(x.length-1)>=55296&&x.charCodeAt(x.length-1)<=56319},k=2;k<s.length;k+=1)s[k-2][0]===h&&A(s[k-2][1])&&s[k-1][0]===i&&T(s[k-1][1])&&s[k][0]===f&&T(s[k][1])&&(g=!0,s[k-1][1]=s[k-2][1].slice(-1)+s[k-1][1],s[k][1]=s[k-2][1].slice(-1)+s[k][1],s[k-2][1]=s[k-2][1].slice(0,-1));if(!g)return s;for(var N=[],k=0;k<s.length;k+=1)s[k][1].length>0&&N.push(s[k]);return N}function b(s,g,T){for(var A=g+T-1;A>=0&&A>=g-1;A--)if(A+1<s.length){var k=s[A],N=s[A+1];k[0]===N[1]&&s.splice(A,2,[k[0],k[1]+N[1]])}return s}},function(t,r){r=t.exports=typeof Object.keys=="function"?Object.keys:i,r.shim=i;function i(f){var h=[];for(var O in f)h.push(O);return h}},function(t,r){var i=function(){return Object.prototype.toString.call(arguments)}()=="[object Arguments]";r=t.exports=i?f:h,r.supported=f;function f(O){return Object.prototype.toString.call(O)=="[object Arguments]"}r.unsupported=h;function h(O){return O&&typeof O=="object"&&typeof O.length=="number"&&Object.prototype.hasOwnProperty.call(O,"callee")&&!Object.prototype.propertyIsEnumerable.call(O,"callee")||!1}},function(t,r){var i=Object.prototype.hasOwnProperty,f="~";function h(){}Object.create&&(h.prototype=Object.create(null),new h().__proto__||(f=!1));function O(_,p,l){this.fn=_,this.context=p,this.once=l||!1}function m(){this._events=new h,this._eventsCount=0}m.prototype.eventNames=function(){var p=[],l,o;if(this._eventsCount===0)return p;for(o in l=this._events)i.call(l,o)&&p.push(f?o.slice(1):o);return Object.getOwnPropertySymbols?p.concat(Object.getOwnPropertySymbols(l)):p},m.prototype.listeners=function(p,l){var o=f?f+p:p,a=this._events[o];if(l)return!!a;if(!a)return[];if(a.fn)return[a.fn];for(var y=0,d=a.length,v=new Array(d);y<d;y++)v[y]=a[y].fn;return v},m.prototype.emit=function(p,l,o,a,y,d){var v=f?f+p:p;if(!this._events[v])return!1;var c=this._events[v],u=arguments.length,b,s;if(c.fn){switch(c.once&&this.removeListener(p,c.fn,void 0,!0),u){case 1:return c.fn.call(c.context),!0;case 2:return c.fn.call(c.context,l),!0;case 3:return c.fn.call(c.context,l,o),!0;case 4:return c.fn.call(c.context,l,o,a),!0;case 5:return c.fn.call(c.context,l,o,a,y),!0;case 6:return c.fn.call(c.context,l,o,a,y,d),!0}for(s=1,b=new Array(u-1);s<u;s++)b[s-1]=arguments[s];c.fn.apply(c.context,b)}else{var g=c.length,T;for(s=0;s<g;s++)switch(c[s].once&&this.removeListener(p,c[s].fn,void 0,!0),u){case 1:c[s].fn.call(c[s].context);break;case 2:c[s].fn.call(c[s].context,l);break;case 3:c[s].fn.call(c[s].context,l,o);break;case 4:c[s].fn.call(c[s].context,l,o,a);break;default:if(!b)for(T=1,b=new Array(u-1);T<u;T++)b[T-1]=arguments[T];c[s].fn.apply(c[s].context,b)}}return!0},m.prototype.on=function(p,l,o){var a=new O(l,o||this),y=f?f+p:p;return this._events[y]?this._events[y].fn?this._events[y]=[this._events[y],a]:this._events[y].push(a):(this._events[y]=a,this._eventsCount++),this},m.prototype.once=function(p,l,o){var a=new O(l,o||this,!0),y=f?f+p:p;return this._events[y]?this._events[y].fn?this._events[y]=[this._events[y],a]:this._events[y].push(a):(this._events[y]=a,this._eventsCount++),this},m.prototype.removeListener=function(p,l,o,a){var y=f?f+p:p;if(!this._events[y])return this;if(!l)return--this._eventsCount===0?this._events=new h:delete this._events[y],this;var d=this._events[y];if(d.fn)d.fn===l&&(!a||d.once)&&(!o||d.context===o)&&(--this._eventsCount===0?this._events=new h:delete this._events[y]);else{for(var v=0,c=[],u=d.length;v<u;v++)(d[v].fn!==l||a&&!d[v].once||o&&d[v].context!==o)&&c.push(d[v]);c.length?this._events[y]=c.length===1?c[0]:c:--this._eventsCount===0?this._events=new h:delete this._events[y]}return this},m.prototype.removeAllListeners=function(p){var l;return p?(l=f?f+p:p,this._events[l]&&(--this._eventsCount===0?this._events=new h:delete this._events[l])):(this._events=new h,this._eventsCount=0),this},m.prototype.off=m.prototype.removeListener,m.prototype.addListener=m.prototype.on,m.prototype.setMaxListeners=function(){return this},m.prefixed=f,m.EventEmitter=m,typeof t<"u"&&(t.exports=m)},function(t,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.matchText=r.matchSpacing=r.matchNewline=r.matchBlot=r.matchAttributor=r.default=void 0;var f=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(z){return typeof z}:function(z){return z&&typeof Symbol=="function"&&z.constructor===Symbol&&z!==Symbol.prototype?"symbol":typeof z},h=function(){function z(U,G){var te=[],ee=!0,ue=!1,he=void 0;try{for(var ye=U[Symbol.iterator](),qe;!(ee=(qe=ye.next()).done)&&(te.push(qe.value),!(G&&te.length===G));ee=!0);}catch(Re){ue=!0,he=Re}finally{try{!ee&&ye.return&&ye.return()}finally{if(ue)throw he}}return te}return function(U,G){if(Array.isArray(U))return U;if(Symbol.iterator in Object(U))return z(U,G);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),O=function(){function z(U,G){for(var te=0;te<G.length;te++){var ee=G[te];ee.enumerable=ee.enumerable||!1,ee.configurable=!0,"value"in ee&&(ee.writable=!0),Object.defineProperty(U,ee.key,ee)}}return function(U,G,te){return G&&z(U.prototype,G),te&&z(U,te),U}}(),m=i(3),_=w(m),p=i(2),l=w(p),o=i(0),a=w(o),y=i(5),d=w(y),v=i(10),c=w(v),u=i(9),b=w(u),s=i(36),g=i(37),T=i(13),A=w(T),k=i(26),N=i(38),x=i(39),E=i(40);function w(z){return z&&z.__esModule?z:{default:z}}function S(z,U,G){return U in z?Object.defineProperty(z,U,{value:G,enumerable:!0,configurable:!0,writable:!0}):z[U]=G,z}function P(z,U){if(!(z instanceof U))throw new TypeError("Cannot call a class as a function")}function F(z,U){if(!z)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return U&&(typeof U=="object"||typeof U=="function")?U:z}function M(z,U){if(typeof U!="function"&&U!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof U);z.prototype=Object.create(U&&U.prototype,{constructor:{value:z,enumerable:!1,writable:!0,configurable:!0}}),U&&(Object.setPrototypeOf?Object.setPrototypeOf(z,U):z.__proto__=U)}var H=(0,c.default)("quill:clipboard"),Q="__ql-matcher",C=[[Node.TEXT_NODE,X],[Node.TEXT_NODE,ve],["br",le],[Node.ELEMENT_NODE,ve],[Node.ELEMENT_NODE,J],[Node.ELEMENT_NODE,I],[Node.ELEMENT_NODE,W],[Node.ELEMENT_NODE,Y],["li",pe],["b",Z.bind(Z,"bold")],["i",Z.bind(Z,"italic")],["style",de]],D=[s.AlignAttribute,N.DirectionAttribute].reduce(function(z,U){return z[U.keyName]=U,z},{}),q=[s.AlignStyle,g.BackgroundStyle,k.ColorStyle,N.DirectionStyle,x.FontStyle,E.SizeStyle].reduce(function(z,U){return z[U.keyName]=U,z},{}),R=function(z){M(U,z);function U(G,te){P(this,U);var ee=F(this,(U.__proto__||Object.getPrototypeOf(U)).call(this,G,te));return ee.quill.root.addEventListener("paste",ee.onPaste.bind(ee)),ee.container=ee.quill.addContainer("ql-clipboard"),ee.container.setAttribute("contenteditable",!0),ee.container.setAttribute("tabindex",-1),ee.matchers=[],C.concat(ee.options.matchers).forEach(function(ue){var he=h(ue,2),ye=he[0],qe=he[1];!te.matchVisual&&qe===I||ee.addMatcher(ye,qe)}),ee}return O(U,[{key:"addMatcher",value:function(te,ee){this.matchers.push([te,ee])}},{key:"convert",value:function(te){if(typeof te=="string")return this.container.innerHTML=te.replace(/\>\r?\n +\</g,"><"),this.convert();var ee=this.quill.getFormat(this.quill.selection.savedRange.index);if(ee[A.default.blotName]){var ue=this.container.innerText;return this.container.innerHTML="",new l.default().insert(ue,S({},A.default.blotName,ee[A.default.blotName]))}var he=this.prepareMatching(),ye=h(he,2),qe=ye[0],Re=ye[1],_e=$(this.container,qe,Re);return V(_e,`
`)&&_e.ops[_e.ops.length-1].attributes==null&&(_e=_e.compose(new l.default().retain(_e.length()-1).delete(1))),H.log("convert",this.container.innerHTML,_e),this.container.innerHTML="",_e}},{key:"dangerouslyPasteHTML",value:function(te,ee){var ue=arguments.length>2&&arguments[2]!==void 0?arguments[2]:d.default.sources.API;if(typeof te=="string")this.quill.setContents(this.convert(te),ee),this.quill.setSelection(0,d.default.sources.SILENT);else{var he=this.convert(ee);this.quill.updateContents(new l.default().retain(te).concat(he),ue),this.quill.setSelection(te+he.length(),d.default.sources.SILENT)}}},{key:"onPaste",value:function(te){var ee=this;if(!(te.defaultPrevented||!this.quill.isEnabled())){var ue=this.quill.getSelection(),he=new l.default().retain(ue.index),ye=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(d.default.sources.SILENT),setTimeout(function(){he=he.concat(ee.convert()).delete(ue.length),ee.quill.updateContents(he,d.default.sources.USER),ee.quill.setSelection(he.length()-ue.length,d.default.sources.SILENT),ee.quill.scrollingContainer.scrollTop=ye,ee.quill.focus()},1)}}},{key:"prepareMatching",value:function(){var te=this,ee=[],ue=[];return this.matchers.forEach(function(he){var ye=h(he,2),qe=ye[0],Re=ye[1];switch(qe){case Node.TEXT_NODE:ue.push(Re);break;case Node.ELEMENT_NODE:ee.push(Re);break;default:[].forEach.call(te.container.querySelectorAll(qe),function(_e){_e[Q]=_e[Q]||[],_e[Q].push(Re)});break}}),[ee,ue]}}]),U}(b.default);R.DEFAULTS={matchers:[],matchVisual:!0};function j(z,U,G){return(typeof U>"u"?"undefined":f(U))==="object"?Object.keys(U).reduce(function(te,ee){return j(te,ee,U[ee])},z):z.reduce(function(te,ee){return ee.attributes&&ee.attributes[U]?te.push(ee):te.insert(ee.insert,(0,_.default)({},S({},U,G),ee.attributes))},new l.default)}function B(z){if(z.nodeType!==Node.ELEMENT_NODE)return{};var U="__ql-computed-style";return z[U]||(z[U]=window.getComputedStyle(z))}function V(z,U){for(var G="",te=z.ops.length-1;te>=0&&G.length<U.length;--te){var ee=z.ops[te];if(typeof ee.insert!="string")break;G=ee.insert+G}return G.slice(-1*U.length)===U}function L(z){if(z.childNodes.length===0)return!1;var U=B(z);return["block","list-item"].indexOf(U.display)>-1}function $(z,U,G){return z.nodeType===z.TEXT_NODE?G.reduce(function(te,ee){return ee(z,te)},new l.default):z.nodeType===z.ELEMENT_NODE?[].reduce.call(z.childNodes||[],function(te,ee){var ue=$(ee,U,G);return ee.nodeType===z.ELEMENT_NODE&&(ue=U.reduce(function(he,ye){return ye(ee,he)},ue),ue=(ee[Q]||[]).reduce(function(he,ye){return ye(ee,he)},ue)),te.concat(ue)},new l.default):new l.default}function Z(z,U,G){return j(G,z,!0)}function W(z,U){var G=a.default.Attributor.Attribute.keys(z),te=a.default.Attributor.Class.keys(z),ee=a.default.Attributor.Style.keys(z),ue={};return G.concat(te).concat(ee).forEach(function(he){var ye=a.default.query(he,a.default.Scope.ATTRIBUTE);ye!=null&&(ue[ye.attrName]=ye.value(z),ue[ye.attrName])||(ye=D[he],ye!=null&&(ye.attrName===he||ye.keyName===he)&&(ue[ye.attrName]=ye.value(z)||void 0),ye=q[he],ye!=null&&(ye.attrName===he||ye.keyName===he)&&(ye=q[he],ue[ye.attrName]=ye.value(z)||void 0))}),Object.keys(ue).length>0&&(U=j(U,ue)),U}function J(z,U){var G=a.default.query(z);if(G==null)return U;if(G.prototype instanceof a.default.Embed){var te={},ee=G.value(z);ee!=null&&(te[G.blotName]=ee,U=new l.default().insert(te,G.formats(z)))}else typeof G.formats=="function"&&(U=j(U,G.blotName,G.formats(z)));return U}function le(z,U){return V(U,`
`)||U.insert(`
`),U}function de(){return new l.default}function pe(z,U){var G=a.default.query(z);if(G==null||G.blotName!=="list-item"||!V(U,`
`))return U;for(var te=-1,ee=z.parentNode;!ee.classList.contains("ql-clipboard");)(a.default.query(ee)||{}).blotName==="list"&&(te+=1),ee=ee.parentNode;return te<=0?U:U.compose(new l.default().retain(U.length()-1).retain(1,{indent:te}))}function ve(z,U){return V(U,`
`)||(L(z)||U.length()>0&&z.nextSibling&&L(z.nextSibling))&&U.insert(`
`),U}function I(z,U){if(L(z)&&z.nextElementSibling!=null&&!V(U,`
`)){var G=z.offsetHeight+parseFloat(B(z).marginTop)+parseFloat(B(z).marginBottom);z.nextElementSibling.offsetTop>z.offsetTop+G*1.5&&U.insert(`
`)}return U}function Y(z,U){var G={},te=z.style||{};return te.fontStyle&&B(z).fontStyle==="italic"&&(G.italic=!0),te.fontWeight&&(B(z).fontWeight.startsWith("bold")||parseInt(B(z).fontWeight)>=700)&&(G.bold=!0),Object.keys(G).length>0&&(U=j(U,G)),parseFloat(te.textIndent||0)>0&&(U=new l.default().insert(" ").concat(U)),U}function X(z,U){var G=z.data;if(z.parentNode.tagName==="O:P")return U.insert(G.trim());if(G.trim().length===0&&z.parentNode.classList.contains("ql-clipboard"))return U;if(!B(z.parentNode).whiteSpace.startsWith("pre")){var te=function(ue,he){return he=he.replace(/[^\u00a0]/g,""),he.length<1&&ue?" ":he};G=G.replace(/\r\n/g," ").replace(/\n/g," "),G=G.replace(/\s\s+/g,te.bind(te,!0)),(z.previousSibling==null&&L(z.parentNode)||z.previousSibling!=null&&L(z.previousSibling))&&(G=G.replace(/^\s+/,te.bind(te,!1))),(z.nextSibling==null&&L(z.parentNode)||z.nextSibling!=null&&L(z.nextSibling))&&(G=G.replace(/\s+$/,te.bind(te,!1)))}return U.insert(G)}r.default=R,r.matchAttributor=W,r.matchBlot=J,r.matchNewline=ve,r.matchSpacing=I,r.matchText=X},function(t,r,i){Object.defineProperty(r,"__esModule",{value:!0});var f=function(){function y(d,v){for(var c=0;c<v.length;c++){var u=v[c];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(d,u.key,u)}}return function(d,v,c){return v&&y(d.prototype,v),c&&y(d,c),d}}(),h=function y(d,v,c){d===null&&(d=Function.prototype);var u=Object.getOwnPropertyDescriptor(d,v);if(u===void 0){var b=Object.getPrototypeOf(d);return b===null?void 0:y(b,v,c)}else{if("value"in u)return u.value;var s=u.get;return s===void 0?void 0:s.call(c)}},O=i(6),m=_(O);function _(y){return y&&y.__esModule?y:{default:y}}function p(y,d){if(!(y instanceof d))throw new TypeError("Cannot call a class as a function")}function l(y,d){if(!y)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return d&&(typeof d=="object"||typeof d=="function")?d:y}function o(y,d){if(typeof d!="function"&&d!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof d);y.prototype=Object.create(d&&d.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),d&&(Object.setPrototypeOf?Object.setPrototypeOf(y,d):y.__proto__=d)}var a=function(y){o(d,y);function d(){return p(this,d),l(this,(d.__proto__||Object.getPrototypeOf(d)).apply(this,arguments))}return f(d,[{key:"optimize",value:function(c){h(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"optimize",this).call(this,c),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return h(d.__proto__||Object.getPrototypeOf(d),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),d}(m.default);a.blotName="bold",a.tagName=["STRONG","B"],r.default=a},function(t,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.addControls=r.default=void 0;var f=function(){function E(w,S){var P=[],F=!0,M=!1,H=void 0;try{for(var Q=w[Symbol.iterator](),C;!(F=(C=Q.next()).done)&&(P.push(C.value),!(S&&P.length===S));F=!0);}catch(D){M=!0,H=D}finally{try{!F&&Q.return&&Q.return()}finally{if(M)throw H}}return P}return function(w,S){if(Array.isArray(w))return w;if(Symbol.iterator in Object(w))return E(w,S);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),h=function(){function E(w,S){for(var P=0;P<S.length;P++){var F=S[P];F.enumerable=F.enumerable||!1,F.configurable=!0,"value"in F&&(F.writable=!0),Object.defineProperty(w,F.key,F)}}return function(w,S,P){return S&&E(w.prototype,S),P&&E(w,P),w}}(),O=i(2),m=c(O),_=i(0),p=c(_),l=i(5),o=c(l),a=i(10),y=c(a),d=i(9),v=c(d);function c(E){return E&&E.__esModule?E:{default:E}}function u(E,w,S){return w in E?Object.defineProperty(E,w,{value:S,enumerable:!0,configurable:!0,writable:!0}):E[w]=S,E}function b(E,w){if(!(E instanceof w))throw new TypeError("Cannot call a class as a function")}function s(E,w){if(!E)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return w&&(typeof w=="object"||typeof w=="function")?w:E}function g(E,w){if(typeof w!="function"&&w!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof w);E.prototype=Object.create(w&&w.prototype,{constructor:{value:E,enumerable:!1,writable:!0,configurable:!0}}),w&&(Object.setPrototypeOf?Object.setPrototypeOf(E,w):E.__proto__=w)}var T=(0,y.default)("quill:toolbar"),A=function(E){g(w,E);function w(S,P){b(this,w);var F=s(this,(w.__proto__||Object.getPrototypeOf(w)).call(this,S,P));if(Array.isArray(F.options.container)){var M=document.createElement("div");N(M,F.options.container),S.container.parentNode.insertBefore(M,S.container),F.container=M}else typeof F.options.container=="string"?F.container=document.querySelector(F.options.container):F.container=F.options.container;if(!(F.container instanceof HTMLElement)){var H;return H=T.error("Container required for toolbar",F.options),s(F,H)}return F.container.classList.add("ql-toolbar"),F.controls=[],F.handlers={},Object.keys(F.options.handlers).forEach(function(Q){F.addHandler(Q,F.options.handlers[Q])}),[].forEach.call(F.container.querySelectorAll("button, select"),function(Q){F.attach(Q)}),F.quill.on(o.default.events.EDITOR_CHANGE,function(Q,C){Q===o.default.events.SELECTION_CHANGE&&F.update(C)}),F.quill.on(o.default.events.SCROLL_OPTIMIZE,function(){var Q=F.quill.selection.getRange(),C=f(Q,1),D=C[0];F.update(D)}),F}return h(w,[{key:"addHandler",value:function(P,F){this.handlers[P]=F}},{key:"attach",value:function(P){var F=this,M=[].find.call(P.classList,function(Q){return Q.indexOf("ql-")===0});if(!!M){if(M=M.slice(3),P.tagName==="BUTTON"&&P.setAttribute("type","button"),this.handlers[M]==null){if(this.quill.scroll.whitelist!=null&&this.quill.scroll.whitelist[M]==null){T.warn("ignoring attaching to disabled format",M,P);return}if(p.default.query(M)==null){T.warn("ignoring attaching to nonexistent format",M,P);return}}var H=P.tagName==="SELECT"?"change":"click";P.addEventListener(H,function(Q){var C=void 0;if(P.tagName==="SELECT"){if(P.selectedIndex<0)return;var D=P.options[P.selectedIndex];D.hasAttribute("selected")?C=!1:C=D.value||!1}else P.classList.contains("ql-active")?C=!1:C=P.value||!P.hasAttribute("value"),Q.preventDefault();F.quill.focus();var q=F.quill.selection.getRange(),R=f(q,1),j=R[0];if(F.handlers[M]!=null)F.handlers[M].call(F,C);else if(p.default.query(M).prototype instanceof p.default.Embed){if(C=prompt("Enter "+M),!C)return;F.quill.updateContents(new m.default().retain(j.index).delete(j.length).insert(u({},M,C)),o.default.sources.USER)}else F.quill.format(M,C,o.default.sources.USER);F.update(j)}),this.controls.push([M,P])}}},{key:"update",value:function(P){var F=P==null?{}:this.quill.getFormat(P);this.controls.forEach(function(M){var H=f(M,2),Q=H[0],C=H[1];if(C.tagName==="SELECT"){var D=void 0;if(P==null)D=null;else if(F[Q]==null)D=C.querySelector("option[selected]");else if(!Array.isArray(F[Q])){var q=F[Q];typeof q=="string"&&(q=q.replace(/\"/g,'\\"')),D=C.querySelector('option[value="'+q+'"]')}D==null?(C.value="",C.selectedIndex=-1):D.selected=!0}else if(P==null)C.classList.remove("ql-active");else if(C.hasAttribute("value")){var R=F[Q]===C.getAttribute("value")||F[Q]!=null&&F[Q].toString()===C.getAttribute("value")||F[Q]==null&&!C.getAttribute("value");C.classList.toggle("ql-active",R)}else C.classList.toggle("ql-active",F[Q]!=null)})}}]),w}(v.default);A.DEFAULTS={};function k(E,w,S){var P=document.createElement("button");P.setAttribute("type","button"),P.classList.add("ql-"+w),S!=null&&(P.value=S),E.appendChild(P)}function N(E,w){Array.isArray(w[0])||(w=[w]),w.forEach(function(S){var P=document.createElement("span");P.classList.add("ql-formats"),S.forEach(function(F){if(typeof F=="string")k(P,F);else{var M=Object.keys(F)[0],H=F[M];Array.isArray(H)?x(P,M,H):k(P,M,H)}}),E.appendChild(P)})}function x(E,w,S){var P=document.createElement("select");P.classList.add("ql-"+w),S.forEach(function(F){var M=document.createElement("option");F!==!1?M.setAttribute("value",F):M.setAttribute("selected","selected"),P.appendChild(M)}),E.appendChild(P)}A.DEFAULTS={container:null,handlers:{clean:function(){var w=this,S=this.quill.getSelection();if(S!=null)if(S.length==0){var P=this.quill.getFormat();Object.keys(P).forEach(function(F){p.default.query(F,p.default.Scope.INLINE)!=null&&w.quill.format(F,!1)})}else this.quill.removeFormat(S,o.default.sources.USER)},direction:function(w){var S=this.quill.getFormat().align;w==="rtl"&&S==null?this.quill.format("align","right",o.default.sources.USER):!w&&S==="right"&&this.quill.format("align",!1,o.default.sources.USER),this.quill.format("direction",w,o.default.sources.USER)},indent:function(w){var S=this.quill.getSelection(),P=this.quill.getFormat(S),F=parseInt(P.indent||0);if(w==="+1"||w==="-1"){var M=w==="+1"?1:-1;P.direction==="rtl"&&(M*=-1),this.quill.format("indent",F+M,o.default.sources.USER)}},link:function(w){w===!0&&(w=prompt("Enter link URL:")),this.quill.format("link",w,o.default.sources.USER)},list:function(w){var S=this.quill.getSelection(),P=this.quill.getFormat(S);w==="check"?P.list==="checked"||P.list==="unchecked"?this.quill.format("list",!1,o.default.sources.USER):this.quill.format("list","unchecked",o.default.sources.USER):this.quill.format("list",w,o.default.sources.USER)}}},r.default=A,r.addControls=N},function(t,r){t.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(t,r,i){Object.defineProperty(r,"__esModule",{value:!0});var f=function(){function y(d,v){for(var c=0;c<v.length;c++){var u=v[c];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(d,u.key,u)}}return function(d,v,c){return v&&y(d.prototype,v),c&&y(d,c),d}}(),h=function y(d,v,c){d===null&&(d=Function.prototype);var u=Object.getOwnPropertyDescriptor(d,v);if(u===void 0){var b=Object.getPrototypeOf(d);return b===null?void 0:y(b,v,c)}else{if("value"in u)return u.value;var s=u.get;return s===void 0?void 0:s.call(c)}},O=i(28),m=_(O);function _(y){return y&&y.__esModule?y:{default:y}}function p(y,d){if(!(y instanceof d))throw new TypeError("Cannot call a class as a function")}function l(y,d){if(!y)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return d&&(typeof d=="object"||typeof d=="function")?d:y}function o(y,d){if(typeof d!="function"&&d!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof d);y.prototype=Object.create(d&&d.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),d&&(Object.setPrototypeOf?Object.setPrototypeOf(y,d):y.__proto__=d)}var a=function(y){o(d,y);function d(v,c){p(this,d);var u=l(this,(d.__proto__||Object.getPrototypeOf(d)).call(this,v));return u.label.innerHTML=c,u.container.classList.add("ql-color-picker"),[].slice.call(u.container.querySelectorAll(".ql-picker-item"),0,7).forEach(function(b){b.classList.add("ql-primary")}),u}return f(d,[{key:"buildItem",value:function(c){var u=h(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"buildItem",this).call(this,c);return u.style.backgroundColor=c.getAttribute("value")||"",u}},{key:"selectItem",value:function(c,u){h(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"selectItem",this).call(this,c,u);var b=this.label.querySelector(".ql-color-label"),s=c&&c.getAttribute("data-value")||"";b&&(b.tagName==="line"?b.style.stroke=s:b.style.fill=s)}}]),d}(m.default);r.default=a},function(t,r,i){Object.defineProperty(r,"__esModule",{value:!0});var f=function(){function y(d,v){for(var c=0;c<v.length;c++){var u=v[c];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(d,u.key,u)}}return function(d,v,c){return v&&y(d.prototype,v),c&&y(d,c),d}}(),h=function y(d,v,c){d===null&&(d=Function.prototype);var u=Object.getOwnPropertyDescriptor(d,v);if(u===void 0){var b=Object.getPrototypeOf(d);return b===null?void 0:y(b,v,c)}else{if("value"in u)return u.value;var s=u.get;return s===void 0?void 0:s.call(c)}},O=i(28),m=_(O);function _(y){return y&&y.__esModule?y:{default:y}}function p(y,d){if(!(y instanceof d))throw new TypeError("Cannot call a class as a function")}function l(y,d){if(!y)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return d&&(typeof d=="object"||typeof d=="function")?d:y}function o(y,d){if(typeof d!="function"&&d!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof d);y.prototype=Object.create(d&&d.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),d&&(Object.setPrototypeOf?Object.setPrototypeOf(y,d):y.__proto__=d)}var a=function(y){o(d,y);function d(v,c){p(this,d);var u=l(this,(d.__proto__||Object.getPrototypeOf(d)).call(this,v));return u.container.classList.add("ql-icon-picker"),[].forEach.call(u.container.querySelectorAll(".ql-picker-item"),function(b){b.innerHTML=c[b.getAttribute("data-value")||""]}),u.defaultItem=u.container.querySelector(".ql-selected"),u.selectItem(u.defaultItem),u}return f(d,[{key:"selectItem",value:function(c,u){h(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"selectItem",this).call(this,c,u),c=c||this.defaultItem,this.label.innerHTML=c.innerHTML}}]),d}(m.default);r.default=a},function(t,r,i){Object.defineProperty(r,"__esModule",{value:!0});var f=function(){function m(_,p){for(var l=0;l<p.length;l++){var o=p[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(_,o.key,o)}}return function(_,p,l){return p&&m(_.prototype,p),l&&m(_,l),_}}();function h(m,_){if(!(m instanceof _))throw new TypeError("Cannot call a class as a function")}var O=function(){function m(_,p){var l=this;h(this,m),this.quill=_,this.boundsContainer=p||document.body,this.root=_.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",function(){l.root.style.marginTop=-1*l.quill.root.scrollTop+"px"}),this.hide()}return f(m,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(p){var l=p.left+p.width/2-this.root.offsetWidth/2,o=p.bottom+this.quill.root.scrollTop;this.root.style.left=l+"px",this.root.style.top=o+"px",this.root.classList.remove("ql-flip");var a=this.boundsContainer.getBoundingClientRect(),y=this.root.getBoundingClientRect(),d=0;if(y.right>a.right&&(d=a.right-y.right,this.root.style.left=l+d+"px"),y.left<a.left&&(d=a.left-y.left,this.root.style.left=l+d+"px"),y.bottom>a.bottom){var v=y.bottom-y.top,c=p.bottom-p.top+v;this.root.style.top=o-c+"px",this.root.classList.add("ql-flip")}return d}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),m}();r.default=O},function(t,r,i){Object.defineProperty(r,"__esModule",{value:!0});var f=function(){function x(E,w){var S=[],P=!0,F=!1,M=void 0;try{for(var H=E[Symbol.iterator](),Q;!(P=(Q=H.next()).done)&&(S.push(Q.value),!(w&&S.length===w));P=!0);}catch(C){F=!0,M=C}finally{try{!P&&H.return&&H.return()}finally{if(F)throw M}}return S}return function(E,w){if(Array.isArray(E))return E;if(Symbol.iterator in Object(E))return x(E,w);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),h=function x(E,w,S){E===null&&(E=Function.prototype);var P=Object.getOwnPropertyDescriptor(E,w);if(P===void 0){var F=Object.getPrototypeOf(E);return F===null?void 0:x(F,w,S)}else{if("value"in P)return P.value;var M=P.get;return M===void 0?void 0:M.call(S)}},O=function(){function x(E,w){for(var S=0;S<w.length;S++){var P=w[S];P.enumerable=P.enumerable||!1,P.configurable=!0,"value"in P&&(P.writable=!0),Object.defineProperty(E,P.key,P)}}return function(E,w,S){return w&&x(E.prototype,w),S&&x(E,S),E}}(),m=i(3),_=b(m),p=i(8),l=b(p),o=i(43),a=b(o),y=i(27),d=b(y),v=i(15),c=i(41),u=b(c);function b(x){return x&&x.__esModule?x:{default:x}}function s(x,E){if(!(x instanceof E))throw new TypeError("Cannot call a class as a function")}function g(x,E){if(!x)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return E&&(typeof E=="object"||typeof E=="function")?E:x}function T(x,E){if(typeof E!="function"&&E!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof E);x.prototype=Object.create(E&&E.prototype,{constructor:{value:x,enumerable:!1,writable:!0,configurable:!0}}),E&&(Object.setPrototypeOf?Object.setPrototypeOf(x,E):x.__proto__=E)}var A=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],k=function(x){T(E,x);function E(w,S){s(this,E),S.modules.toolbar!=null&&S.modules.toolbar.container==null&&(S.modules.toolbar.container=A);var P=g(this,(E.__proto__||Object.getPrototypeOf(E)).call(this,w,S));return P.quill.container.classList.add("ql-snow"),P}return O(E,[{key:"extendToolbar",value:function(S){S.container.classList.add("ql-snow"),this.buildButtons([].slice.call(S.container.querySelectorAll("button")),u.default),this.buildPickers([].slice.call(S.container.querySelectorAll("select")),u.default),this.tooltip=new N(this.quill,this.options.bounds),S.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},function(P,F){S.handlers.link.call(S,!F.format.link)})}}]),E}(a.default);k.DEFAULTS=(0,_.default)(!0,{},a.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(E){if(E){var w=this.quill.getSelection();if(w==null||w.length==0)return;var S=this.quill.getText(w);/^\S+@\S+\.\S+$/.test(S)&&S.indexOf("mailto:")!==0&&(S="mailto:"+S);var P=this.quill.theme.tooltip;P.edit("link",S)}else this.quill.format("link",!1)}}}}});var N=function(x){T(E,x);function E(w,S){s(this,E);var P=g(this,(E.__proto__||Object.getPrototypeOf(E)).call(this,w,S));return P.preview=P.root.querySelector("a.ql-preview"),P}return O(E,[{key:"listen",value:function(){var S=this;h(E.prototype.__proto__||Object.getPrototypeOf(E.prototype),"listen",this).call(this),this.root.querySelector("a.ql-action").addEventListener("click",function(P){S.root.classList.contains("ql-editing")?S.save():S.edit("link",S.preview.textContent),P.preventDefault()}),this.root.querySelector("a.ql-remove").addEventListener("click",function(P){if(S.linkRange!=null){var F=S.linkRange;S.restoreFocus(),S.quill.formatText(F,"link",!1,l.default.sources.USER),delete S.linkRange}P.preventDefault(),S.hide()}),this.quill.on(l.default.events.SELECTION_CHANGE,function(P,F,M){if(P!=null){if(P.length===0&&M===l.default.sources.USER){var H=S.quill.scroll.descendant(d.default,P.index),Q=f(H,2),C=Q[0],D=Q[1];if(C!=null){S.linkRange=new v.Range(P.index-D,C.length());var q=d.default.formats(C.domNode);S.preview.textContent=q,S.preview.setAttribute("href",q),S.show(),S.position(S.quill.getBounds(S.linkRange));return}}else delete S.linkRange;S.hide()}})}},{key:"show",value:function(){h(E.prototype.__proto__||Object.getPrototypeOf(E.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]),E}(o.BaseTooltip);N.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(""),r.default=k},function(t,r,i){Object.defineProperty(r,"__esModule",{value:!0});var f=i(29),h=ee(f),O=i(36),m=i(38),_=i(64),p=i(65),l=ee(p),o=i(66),a=ee(o),y=i(67),d=ee(y),v=i(37),c=i(26),u=i(39),b=i(40),s=i(56),g=ee(s),T=i(68),A=ee(T),k=i(27),N=ee(k),x=i(69),E=ee(x),w=i(70),S=ee(w),P=i(71),F=ee(P),M=i(72),H=ee(M),Q=i(73),C=ee(Q),D=i(13),q=ee(D),R=i(74),j=ee(R),B=i(75),V=ee(B),L=i(57),$=ee(L),Z=i(41),W=ee(Z),J=i(28),le=ee(J),de=i(59),pe=ee(de),ve=i(60),I=ee(ve),Y=i(61),X=ee(Y),z=i(108),U=ee(z),G=i(62),te=ee(G);function ee(ue){return ue&&ue.__esModule?ue:{default:ue}}h.default.register({"attributors/attribute/direction":m.DirectionAttribute,"attributors/class/align":O.AlignClass,"attributors/class/background":v.BackgroundClass,"attributors/class/color":c.ColorClass,"attributors/class/direction":m.DirectionClass,"attributors/class/font":u.FontClass,"attributors/class/size":b.SizeClass,"attributors/style/align":O.AlignStyle,"attributors/style/background":v.BackgroundStyle,"attributors/style/color":c.ColorStyle,"attributors/style/direction":m.DirectionStyle,"attributors/style/font":u.FontStyle,"attributors/style/size":b.SizeStyle},!0),h.default.register({"formats/align":O.AlignClass,"formats/direction":m.DirectionClass,"formats/indent":_.IndentClass,"formats/background":v.BackgroundStyle,"formats/color":c.ColorStyle,"formats/font":u.FontClass,"formats/size":b.SizeClass,"formats/blockquote":l.default,"formats/code-block":q.default,"formats/header":a.default,"formats/list":d.default,"formats/bold":g.default,"formats/code":D.Code,"formats/italic":A.default,"formats/link":N.default,"formats/script":E.default,"formats/strike":S.default,"formats/underline":F.default,"formats/image":H.default,"formats/video":C.default,"formats/list/item":y.ListItem,"modules/formula":j.default,"modules/syntax":V.default,"modules/toolbar":$.default,"themes/bubble":U.default,"themes/snow":te.default,"ui/icons":W.default,"ui/picker":le.default,"ui/icon-picker":I.default,"ui/color-picker":pe.default,"ui/tooltip":X.default},!0),r.default=h.default},function(t,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.IndentClass=void 0;var f=function(){function d(v,c){for(var u=0;u<c.length;u++){var b=c[u];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(v,b.key,b)}}return function(v,c,u){return c&&d(v.prototype,c),u&&d(v,u),v}}(),h=function d(v,c,u){v===null&&(v=Function.prototype);var b=Object.getOwnPropertyDescriptor(v,c);if(b===void 0){var s=Object.getPrototypeOf(v);return s===null?void 0:d(s,c,u)}else{if("value"in b)return b.value;var g=b.get;return g===void 0?void 0:g.call(u)}},O=i(0),m=_(O);function _(d){return d&&d.__esModule?d:{default:d}}function p(d,v){if(!(d instanceof v))throw new TypeError("Cannot call a class as a function")}function l(d,v){if(!d)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v&&(typeof v=="object"||typeof v=="function")?v:d}function o(d,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);d.prototype=Object.create(v&&v.prototype,{constructor:{value:d,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(d,v):d.__proto__=v)}var a=function(d){o(v,d);function v(){return p(this,v),l(this,(v.__proto__||Object.getPrototypeOf(v)).apply(this,arguments))}return f(v,[{key:"add",value:function(u,b){if(b==="+1"||b==="-1"){var s=this.value(u)||0;b=b==="+1"?s+1:s-1}return b===0?(this.remove(u),!0):h(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"add",this).call(this,u,b)}},{key:"canAdd",value:function(u,b){return h(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"canAdd",this).call(this,u,b)||h(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"canAdd",this).call(this,u,parseInt(b))}},{key:"value",value:function(u){return parseInt(h(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"value",this).call(this,u))||void 0}}]),v}(m.default.Attributor.Class),y=new a("indent","ql-indent",{scope:m.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});r.IndentClass=y},function(t,r,i){Object.defineProperty(r,"__esModule",{value:!0});var f=i(4),h=O(f);function O(o){return o&&o.__esModule?o:{default:o}}function m(o,a){if(!(o instanceof a))throw new TypeError("Cannot call a class as a function")}function _(o,a){if(!o)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a&&(typeof a=="object"||typeof a=="function")?a:o}function p(o,a){if(typeof a!="function"&&a!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof a);o.prototype=Object.create(a&&a.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),a&&(Object.setPrototypeOf?Object.setPrototypeOf(o,a):o.__proto__=a)}var l=function(o){p(a,o);function a(){return m(this,a),_(this,(a.__proto__||Object.getPrototypeOf(a)).apply(this,arguments))}return a}(h.default);l.blotName="blockquote",l.tagName="blockquote",r.default=l},function(t,r,i){Object.defineProperty(r,"__esModule",{value:!0});var f=function(){function a(y,d){for(var v=0;v<d.length;v++){var c=d[v];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(y,c.key,c)}}return function(y,d,v){return d&&a(y.prototype,d),v&&a(y,v),y}}(),h=i(4),O=m(h);function m(a){return a&&a.__esModule?a:{default:a}}function _(a,y){if(!(a instanceof y))throw new TypeError("Cannot call a class as a function")}function p(a,y){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y&&(typeof y=="object"||typeof y=="function")?y:a}function l(a,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof y);a.prototype=Object.create(y&&y.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(a,y):a.__proto__=y)}var o=function(a){l(y,a);function y(){return _(this,y),p(this,(y.__proto__||Object.getPrototypeOf(y)).apply(this,arguments))}return f(y,null,[{key:"formats",value:function(v){return this.tagName.indexOf(v.tagName)+1}}]),y}(O.default);o.blotName="header",o.tagName=["H1","H2","H3","H4","H5","H6"],r.default=o},function(t,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.default=r.ListItem=void 0;var f=function(){function s(g,T){for(var A=0;A<T.length;A++){var k=T[A];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(g,k.key,k)}}return function(g,T,A){return T&&s(g.prototype,T),A&&s(g,A),g}}(),h=function s(g,T,A){g===null&&(g=Function.prototype);var k=Object.getOwnPropertyDescriptor(g,T);if(k===void 0){var N=Object.getPrototypeOf(g);return N===null?void 0:s(N,T,A)}else{if("value"in k)return k.value;var x=k.get;return x===void 0?void 0:x.call(A)}},O=i(0),m=a(O),_=i(4),p=a(_),l=i(25),o=a(l);function a(s){return s&&s.__esModule?s:{default:s}}function y(s,g,T){return g in s?Object.defineProperty(s,g,{value:T,enumerable:!0,configurable:!0,writable:!0}):s[g]=T,s}function d(s,g){if(!(s instanceof g))throw new TypeError("Cannot call a class as a function")}function v(s,g){if(!s)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:s}function c(s,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);s.prototype=Object.create(g&&g.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(s,g):s.__proto__=g)}var u=function(s){c(g,s);function g(){return d(this,g),v(this,(g.__proto__||Object.getPrototypeOf(g)).apply(this,arguments))}return f(g,[{key:"format",value:function(A,k){A===b.blotName&&!k?this.replaceWith(m.default.create(this.statics.scope)):h(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"format",this).call(this,A,k)}},{key:"remove",value:function(){this.prev==null&&this.next==null?this.parent.remove():h(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(A,k){return this.parent.isolate(this.offset(this.parent),this.length()),A===this.parent.statics.blotName?(this.parent.replaceWith(A,k),this):(this.parent.unwrap(),h(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"replaceWith",this).call(this,A,k))}}],[{key:"formats",value:function(A){return A.tagName===this.tagName?void 0:h(g.__proto__||Object.getPrototypeOf(g),"formats",this).call(this,A)}}]),g}(p.default);u.blotName="list-item",u.tagName="LI";var b=function(s){c(g,s),f(g,null,[{key:"create",value:function(A){var k=A==="ordered"?"OL":"UL",N=h(g.__proto__||Object.getPrototypeOf(g),"create",this).call(this,k);return(A==="checked"||A==="unchecked")&&N.setAttribute("data-checked",A==="checked"),N}},{key:"formats",value:function(A){if(A.tagName==="OL")return"ordered";if(A.tagName==="UL")return A.hasAttribute("data-checked")?A.getAttribute("data-checked")==="true"?"checked":"unchecked":"bullet"}}]);function g(T){d(this,g);var A=v(this,(g.__proto__||Object.getPrototypeOf(g)).call(this,T)),k=function(x){if(x.target.parentNode===T){var E=A.statics.formats(T),w=m.default.find(x.target);E==="checked"?w.format("list","unchecked"):E==="unchecked"&&w.format("list","checked")}};return T.addEventListener("touchstart",k),T.addEventListener("mousedown",k),A}return f(g,[{key:"format",value:function(A,k){this.children.length>0&&this.children.tail.format(A,k)}},{key:"formats",value:function(){return y({},this.statics.blotName,this.statics.formats(this.domNode))}},{key:"insertBefore",value:function(A,k){if(A instanceof u)h(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"insertBefore",this).call(this,A,k);else{var N=k==null?this.length():k.offset(this),x=this.split(N);x.parent.insertBefore(A,x)}}},{key:"optimize",value:function(A){h(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"optimize",this).call(this,A);var k=this.next;k!=null&&k.prev===this&&k.statics.blotName===this.statics.blotName&&k.domNode.tagName===this.domNode.tagName&&k.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(k.moveChildren(this),k.remove())}},{key:"replace",value:function(A){if(A.statics.blotName!==this.statics.blotName){var k=m.default.create(this.statics.defaultChild);A.moveChildren(k),this.appendChild(k)}h(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"replace",this).call(this,A)}}]),g}(o.default);b.blotName="list",b.scope=m.default.Scope.BLOCK_BLOT,b.tagName=["OL","UL"],b.defaultChild="list-item",b.allowedChildren=[u],r.ListItem=u,r.default=b},function(t,r,i){Object.defineProperty(r,"__esModule",{value:!0});var f=i(56),h=O(f);function O(o){return o&&o.__esModule?o:{default:o}}function m(o,a){if(!(o instanceof a))throw new TypeError("Cannot call a class as a function")}function _(o,a){if(!o)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a&&(typeof a=="object"||typeof a=="function")?a:o}function p(o,a){if(typeof a!="function"&&a!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof a);o.prototype=Object.create(a&&a.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),a&&(Object.setPrototypeOf?Object.setPrototypeOf(o,a):o.__proto__=a)}var l=function(o){p(a,o);function a(){return m(this,a),_(this,(a.__proto__||Object.getPrototypeOf(a)).apply(this,arguments))}return a}(h.default);l.blotName="italic",l.tagName=["EM","I"],r.default=l},function(t,r,i){Object.defineProperty(r,"__esModule",{value:!0});var f=function(){function y(d,v){for(var c=0;c<v.length;c++){var u=v[c];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(d,u.key,u)}}return function(d,v,c){return v&&y(d.prototype,v),c&&y(d,c),d}}(),h=function y(d,v,c){d===null&&(d=Function.prototype);var u=Object.getOwnPropertyDescriptor(d,v);if(u===void 0){var b=Object.getPrototypeOf(d);return b===null?void 0:y(b,v,c)}else{if("value"in u)return u.value;var s=u.get;return s===void 0?void 0:s.call(c)}},O=i(6),m=_(O);function _(y){return y&&y.__esModule?y:{default:y}}function p(y,d){if(!(y instanceof d))throw new TypeError("Cannot call a class as a function")}function l(y,d){if(!y)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return d&&(typeof d=="object"||typeof d=="function")?d:y}function o(y,d){if(typeof d!="function"&&d!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof d);y.prototype=Object.create(d&&d.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),d&&(Object.setPrototypeOf?Object.setPrototypeOf(y,d):y.__proto__=d)}var a=function(y){o(d,y);function d(){return p(this,d),l(this,(d.__proto__||Object.getPrototypeOf(d)).apply(this,arguments))}return f(d,null,[{key:"create",value:function(c){return c==="super"?document.createElement("sup"):c==="sub"?document.createElement("sub"):h(d.__proto__||Object.getPrototypeOf(d),"create",this).call(this,c)}},{key:"formats",value:function(c){if(c.tagName==="SUB")return"sub";if(c.tagName==="SUP")return"super"}}]),d}(m.default);a.blotName="script",a.tagName=["SUB","SUP"],r.default=a},function(t,r,i){Object.defineProperty(r,"__esModule",{value:!0});var f=i(6),h=O(f);function O(o){return o&&o.__esModule?o:{default:o}}function m(o,a){if(!(o instanceof a))throw new TypeError("Cannot call a class as a function")}function _(o,a){if(!o)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a&&(typeof a=="object"||typeof a=="function")?a:o}function p(o,a){if(typeof a!="function"&&a!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof a);o.prototype=Object.create(a&&a.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),a&&(Object.setPrototypeOf?Object.setPrototypeOf(o,a):o.__proto__=a)}var l=function(o){p(a,o);function a(){return m(this,a),_(this,(a.__proto__||Object.getPrototypeOf(a)).apply(this,arguments))}return a}(h.default);l.blotName="strike",l.tagName="S",r.default=l},function(t,r,i){Object.defineProperty(r,"__esModule",{value:!0});var f=i(6),h=O(f);function O(o){return o&&o.__esModule?o:{default:o}}function m(o,a){if(!(o instanceof a))throw new TypeError("Cannot call a class as a function")}function _(o,a){if(!o)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a&&(typeof a=="object"||typeof a=="function")?a:o}function p(o,a){if(typeof a!="function"&&a!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof a);o.prototype=Object.create(a&&a.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),a&&(Object.setPrototypeOf?Object.setPrototypeOf(o,a):o.__proto__=a)}var l=function(o){p(a,o);function a(){return m(this,a),_(this,(a.__proto__||Object.getPrototypeOf(a)).apply(this,arguments))}return a}(h.default);l.blotName="underline",l.tagName="U",r.default=l},function(t,r,i){Object.defineProperty(r,"__esModule",{value:!0});var f=function(){function v(c,u){for(var b=0;b<u.length;b++){var s=u[b];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(c,s.key,s)}}return function(c,u,b){return u&&v(c.prototype,u),b&&v(c,b),c}}(),h=function v(c,u,b){c===null&&(c=Function.prototype);var s=Object.getOwnPropertyDescriptor(c,u);if(s===void 0){var g=Object.getPrototypeOf(c);return g===null?void 0:v(g,u,b)}else{if("value"in s)return s.value;var T=s.get;return T===void 0?void 0:T.call(b)}},O=i(0),m=p(O),_=i(27);function p(v){return v&&v.__esModule?v:{default:v}}function l(v,c){if(!(v instanceof c))throw new TypeError("Cannot call a class as a function")}function o(v,c){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return c&&(typeof c=="object"||typeof c=="function")?c:v}function a(v,c){if(typeof c!="function"&&c!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof c);v.prototype=Object.create(c&&c.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),c&&(Object.setPrototypeOf?Object.setPrototypeOf(v,c):v.__proto__=c)}var y=["alt","height","width"],d=function(v){a(c,v);function c(){return l(this,c),o(this,(c.__proto__||Object.getPrototypeOf(c)).apply(this,arguments))}return f(c,[{key:"format",value:function(b,s){y.indexOf(b)>-1?s?this.domNode.setAttribute(b,s):this.domNode.removeAttribute(b):h(c.prototype.__proto__||Object.getPrototypeOf(c.prototype),"format",this).call(this,b,s)}}],[{key:"create",value:function(b){var s=h(c.__proto__||Object.getPrototypeOf(c),"create",this).call(this,b);return typeof b=="string"&&s.setAttribute("src",this.sanitize(b)),s}},{key:"formats",value:function(b){return y.reduce(function(s,g){return b.hasAttribute(g)&&(s[g]=b.getAttribute(g)),s},{})}},{key:"match",value:function(b){return/\.(jpe?g|gif|png)$/.test(b)||/^data:image\/.+;base64/.test(b)}},{key:"sanitize",value:function(b){return(0,_.sanitize)(b,["http","https","data"])?b:"//:0"}},{key:"value",value:function(b){return b.getAttribute("src")}}]),c}(m.default.Embed);d.blotName="image",d.tagName="IMG",r.default=d},function(t,r,i){Object.defineProperty(r,"__esModule",{value:!0});var f=function(){function v(c,u){for(var b=0;b<u.length;b++){var s=u[b];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(c,s.key,s)}}return function(c,u,b){return u&&v(c.prototype,u),b&&v(c,b),c}}(),h=function v(c,u,b){c===null&&(c=Function.prototype);var s=Object.getOwnPropertyDescriptor(c,u);if(s===void 0){var g=Object.getPrototypeOf(c);return g===null?void 0:v(g,u,b)}else{if("value"in s)return s.value;var T=s.get;return T===void 0?void 0:T.call(b)}},O=i(4),m=i(27),_=p(m);function p(v){return v&&v.__esModule?v:{default:v}}function l(v,c){if(!(v instanceof c))throw new TypeError("Cannot call a class as a function")}function o(v,c){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return c&&(typeof c=="object"||typeof c=="function")?c:v}function a(v,c){if(typeof c!="function"&&c!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof c);v.prototype=Object.create(c&&c.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),c&&(Object.setPrototypeOf?Object.setPrototypeOf(v,c):v.__proto__=c)}var y=["height","width"],d=function(v){a(c,v);function c(){return l(this,c),o(this,(c.__proto__||Object.getPrototypeOf(c)).apply(this,arguments))}return f(c,[{key:"format",value:function(b,s){y.indexOf(b)>-1?s?this.domNode.setAttribute(b,s):this.domNode.removeAttribute(b):h(c.prototype.__proto__||Object.getPrototypeOf(c.prototype),"format",this).call(this,b,s)}}],[{key:"create",value:function(b){var s=h(c.__proto__||Object.getPrototypeOf(c),"create",this).call(this,b);return s.setAttribute("frameborder","0"),s.setAttribute("allowfullscreen",!0),s.setAttribute("src",this.sanitize(b)),s}},{key:"formats",value:function(b){return y.reduce(function(s,g){return b.hasAttribute(g)&&(s[g]=b.getAttribute(g)),s},{})}},{key:"sanitize",value:function(b){return _.default.sanitize(b)}},{key:"value",value:function(b){return b.getAttribute("src")}}]),c}(O.BlockEmbed);d.blotName="video",d.className="ql-video",d.tagName="IFRAME",r.default=d},function(t,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.default=r.FormulaBlot=void 0;var f=function(){function b(s,g){for(var T=0;T<g.length;T++){var A=g[T];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(s,A.key,A)}}return function(s,g,T){return g&&b(s.prototype,g),T&&b(s,T),s}}(),h=function b(s,g,T){s===null&&(s=Function.prototype);var A=Object.getOwnPropertyDescriptor(s,g);if(A===void 0){var k=Object.getPrototypeOf(s);return k===null?void 0:b(k,g,T)}else{if("value"in A)return A.value;var N=A.get;return N===void 0?void 0:N.call(T)}},O=i(35),m=a(O),_=i(5),p=a(_),l=i(9),o=a(l);function a(b){return b&&b.__esModule?b:{default:b}}function y(b,s){if(!(b instanceof s))throw new TypeError("Cannot call a class as a function")}function d(b,s){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s&&(typeof s=="object"||typeof s=="function")?s:b}function v(b,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof s);b.prototype=Object.create(s&&s.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),s&&(Object.setPrototypeOf?Object.setPrototypeOf(b,s):b.__proto__=s)}var c=function(b){v(s,b);function s(){return y(this,s),d(this,(s.__proto__||Object.getPrototypeOf(s)).apply(this,arguments))}return f(s,null,[{key:"create",value:function(T){var A=h(s.__proto__||Object.getPrototypeOf(s),"create",this).call(this,T);return typeof T=="string"&&(window.katex.render(T,A,{throwOnError:!1,errorColor:"#f00"}),A.setAttribute("data-value",T)),A}},{key:"value",value:function(T){return T.getAttribute("data-value")}}]),s}(m.default);c.blotName="formula",c.className="ql-formula",c.tagName="SPAN";var u=function(b){v(s,b),f(s,null,[{key:"register",value:function(){p.default.register(c,!0)}}]);function s(){y(this,s);var g=d(this,(s.__proto__||Object.getPrototypeOf(s)).call(this));if(window.katex==null)throw new Error("Formula module requires KaTeX.");return g}return s}(o.default);r.FormulaBlot=c,r.default=u},function(t,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.default=r.CodeToken=r.CodeBlock=void 0;var f=function(){function T(A,k){for(var N=0;N<k.length;N++){var x=k[N];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(A,x.key,x)}}return function(A,k,N){return k&&T(A.prototype,k),N&&T(A,N),A}}(),h=function T(A,k,N){A===null&&(A=Function.prototype);var x=Object.getOwnPropertyDescriptor(A,k);if(x===void 0){var E=Object.getPrototypeOf(A);return E===null?void 0:T(E,k,N)}else{if("value"in x)return x.value;var w=x.get;return w===void 0?void 0:w.call(N)}},O=i(0),m=d(O),_=i(5),p=d(_),l=i(9),o=d(l),a=i(13),y=d(a);function d(T){return T&&T.__esModule?T:{default:T}}function v(T,A){if(!(T instanceof A))throw new TypeError("Cannot call a class as a function")}function c(T,A){if(!T)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return A&&(typeof A=="object"||typeof A=="function")?A:T}function u(T,A){if(typeof A!="function"&&A!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof A);T.prototype=Object.create(A&&A.prototype,{constructor:{value:T,enumerable:!1,writable:!0,configurable:!0}}),A&&(Object.setPrototypeOf?Object.setPrototypeOf(T,A):T.__proto__=A)}var b=function(T){u(A,T);function A(){return v(this,A),c(this,(A.__proto__||Object.getPrototypeOf(A)).apply(this,arguments))}return f(A,[{key:"replaceWith",value:function(N){this.domNode.textContent=this.domNode.textContent,this.attach(),h(A.prototype.__proto__||Object.getPrototypeOf(A.prototype),"replaceWith",this).call(this,N)}},{key:"highlight",value:function(N){var x=this.domNode.textContent;this.cachedText!==x&&((x.trim().length>0||this.cachedText==null)&&(this.domNode.innerHTML=N(x),this.domNode.normalize(),this.attach()),this.cachedText=x)}}]),A}(y.default);b.className="ql-syntax";var s=new m.default.Attributor.Class("token","hljs",{scope:m.default.Scope.INLINE}),g=function(T){u(A,T),f(A,null,[{key:"register",value:function(){p.default.register(s,!0),p.default.register(b,!0)}}]);function A(k,N){v(this,A);var x=c(this,(A.__proto__||Object.getPrototypeOf(A)).call(this,k,N));if(typeof x.options.highlight!="function")throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var E=null;return x.quill.on(p.default.events.SCROLL_OPTIMIZE,function(){clearTimeout(E),E=setTimeout(function(){x.highlight(),E=null},x.options.interval)}),x.highlight(),x}return f(A,[{key:"highlight",value:function(){var N=this;if(!this.quill.selection.composing){this.quill.update(p.default.sources.USER);var x=this.quill.getSelection();this.quill.scroll.descendants(b).forEach(function(E){E.highlight(N.options.highlight)}),this.quill.update(p.default.sources.SILENT),x!=null&&this.quill.setSelection(x,p.default.sources.SILENT)}}}]),A}(o.default);g.DEFAULTS={highlight:function(){return window.hljs==null?null:function(T){var A=window.hljs.highlightAuto(T);return A.value}}(),interval:1e3},r.CodeBlock=b,r.CodeToken=s,r.default=g},function(t,r){t.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(t,r){t.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(t,r){t.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(t,r){t.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(t,r){t.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(t,r){t.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(t,r){t.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(t,r){t.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(t,r){t.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(t,r){t.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(t,r){t.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(t,r){t.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(t,r){t.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(t,r){t.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(t,r){t.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(t,r){t.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(t,r){t.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(t,r){t.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(t,r){t.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(t,r){t.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(t,r){t.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(t,r){t.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(t,r){t.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(t,r){t.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(t,r){t.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(t,r){t.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(t,r){t.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(t,r){t.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(t,r){t.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(t,r){t.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(t,r){t.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(t,r){t.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(t,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.default=r.BubbleTooltip=void 0;var f=function A(k,N,x){k===null&&(k=Function.prototype);var E=Object.getOwnPropertyDescriptor(k,N);if(E===void 0){var w=Object.getPrototypeOf(k);return w===null?void 0:A(w,N,x)}else{if("value"in E)return E.value;var S=E.get;return S===void 0?void 0:S.call(x)}},h=function(){function A(k,N){for(var x=0;x<N.length;x++){var E=N[x];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(k,E.key,E)}}return function(k,N,x){return N&&A(k.prototype,N),x&&A(k,x),k}}(),O=i(3),m=v(O),_=i(8),p=v(_),l=i(43),o=v(l),a=i(15),y=i(41),d=v(y);function v(A){return A&&A.__esModule?A:{default:A}}function c(A,k){if(!(A instanceof k))throw new TypeError("Cannot call a class as a function")}function u(A,k){if(!A)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return k&&(typeof k=="object"||typeof k=="function")?k:A}function b(A,k){if(typeof k!="function"&&k!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof k);A.prototype=Object.create(k&&k.prototype,{constructor:{value:A,enumerable:!1,writable:!0,configurable:!0}}),k&&(Object.setPrototypeOf?Object.setPrototypeOf(A,k):A.__proto__=k)}var s=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],g=function(A){b(k,A);function k(N,x){c(this,k),x.modules.toolbar!=null&&x.modules.toolbar.container==null&&(x.modules.toolbar.container=s);var E=u(this,(k.__proto__||Object.getPrototypeOf(k)).call(this,N,x));return E.quill.container.classList.add("ql-bubble"),E}return h(k,[{key:"extendToolbar",value:function(x){this.tooltip=new T(this.quill,this.options.bounds),this.tooltip.root.appendChild(x.container),this.buildButtons([].slice.call(x.container.querySelectorAll("button")),d.default),this.buildPickers([].slice.call(x.container.querySelectorAll("select")),d.default)}}]),k}(o.default);g.DEFAULTS=(0,m.default)(!0,{},o.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(k){k?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var T=function(A){b(k,A);function k(N,x){c(this,k);var E=u(this,(k.__proto__||Object.getPrototypeOf(k)).call(this,N,x));return E.quill.on(p.default.events.EDITOR_CHANGE,function(w,S,P,F){if(w===p.default.events.SELECTION_CHANGE)if(S!=null&&S.length>0&&F===p.default.sources.USER){E.show(),E.root.style.left="0px",E.root.style.width="",E.root.style.width=E.root.offsetWidth+"px";var M=E.quill.getLines(S.index,S.length);if(M.length===1)E.position(E.quill.getBounds(S));else{var H=M[M.length-1],Q=E.quill.getIndex(H),C=Math.min(H.length()-1,S.index+S.length-Q),D=E.quill.getBounds(new a.Range(Q,C));E.position(D)}}else document.activeElement!==E.textbox&&E.quill.hasFocus()&&E.hide()}),E}return h(k,[{key:"listen",value:function(){var x=this;f(k.prototype.__proto__||Object.getPrototypeOf(k.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",function(){x.root.classList.remove("ql-editing")}),this.quill.on(p.default.events.SCROLL_OPTIMIZE,function(){setTimeout(function(){if(!x.root.classList.contains("ql-hidden")){var E=x.quill.getSelection();E!=null&&x.position(x.quill.getBounds(E))}},1)})}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(x){var E=f(k.prototype.__proto__||Object.getPrototypeOf(k.prototype),"position",this).call(this,x),w=this.root.querySelector(".ql-tooltip-arrow");if(w.style.marginLeft="",E===0)return E;w.style.marginLeft=-1*E-w.offsetWidth/2+"px"}}]),k}(l.BaseTooltip);T.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(""),r.BubbleTooltip=T,r.default=g},function(t,r,i){t.exports=i(63)}]).default})})(ho);var Og=Me&&Me.__extends||function(){var e=function(n,t){return e=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])},e(n,t)};return function(n,t){e(n,t);function r(){this.constructor=n}n.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),Kt=Me&&Me.__assign||function(){return Kt=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++){n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},Kt.apply(this,arguments)},wg=Me&&Me.__spreadArrays||function(){for(var e=0,n=0,t=arguments.length;n<t;n++)e+=arguments[n].length;for(var r=Array(e),i=0,n=0;n<t;n++)for(var f=arguments[n],h=0,O=f.length;h<O;h++,i++)r[i]=f[h];return r},tr=Me&&Me.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},We=tr(Kn.exports),Eg=tr(Gn.exports),wt=tr(_g),Hn=tr(ho.exports),xg=function(e){Og(n,e);function n(t){var r=e.call(this,t)||this;r.dirtyProps=["modules","formats","bounds","theme","children"],r.cleanProps=["id","className","style","placeholder","tabIndex","onChange","onChangeSelection","onFocus","onBlur","onKeyPress","onKeyDown","onKeyUp"],r.state={generation:0},r.selection=null,r.onEditorChange=function(f,h,O,m){var _,p,l,o;f==="text-change"?(p=(_=r).onEditorChangeText)===null||p===void 0||p.call(_,r.editor.root.innerHTML,h,m,r.unprivilegedEditor):f==="selection-change"&&((o=(l=r).onEditorChangeSelection)===null||o===void 0||o.call(l,h,m,r.unprivilegedEditor))};var i=r.isControlled()?t.value:t.defaultValue;return r.value=i!=null?i:"",r}return n.prototype.validateProps=function(t){var r;if(We.default.Children.count(t.children)>1)throw new Error("The Quill editing area can only be composed of a single React element.");if(We.default.Children.count(t.children)){var i=We.default.Children.only(t.children);if(((r=i)===null||r===void 0?void 0:r.type)==="textarea")throw new Error("Quill does not support editing on a <textarea>. Use a <div> instead.")}if(this.lastDeltaChangeSet&&t.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")},n.prototype.shouldComponentUpdate=function(t,r){var i=this,f;if(this.validateProps(t),!this.editor||this.state.generation!==r.generation)return!0;if("value"in t){var h=this.getEditorContents(),O=(f=t.value,f!=null?f:"");this.isEqualValue(O,h)||this.setEditorContents(this.editor,O)}return t.readOnly!==this.props.readOnly&&this.setEditorReadOnly(this.editor,t.readOnly),wg(this.cleanProps,this.dirtyProps).some(function(m){return!wt.default(t[m],i.props[m])})},n.prototype.shouldComponentRegenerate=function(t){var r=this;return this.dirtyProps.some(function(i){return!wt.default(t[i],r.props[i])})},n.prototype.componentDidMount=function(){this.instantiateEditor(),this.setEditorContents(this.editor,this.getEditorContents())},n.prototype.componentWillUnmount=function(){this.destroyEditor()},n.prototype.componentDidUpdate=function(t,r){var i=this;if(this.editor&&this.shouldComponentRegenerate(t)){var f=this.editor.getContents(),h=this.editor.getSelection();this.regenerationSnapshot={delta:f,selection:h},this.setState({generation:this.state.generation+1}),this.destroyEditor()}if(this.state.generation!==r.generation){var O=this.regenerationSnapshot,f=O.delta,m=O.selection;delete this.regenerationSnapshot,this.instantiateEditor();var _=this.editor;_.setContents(f),zn(function(){return i.setEditorSelection(_,m)})}},n.prototype.instantiateEditor=function(){this.editor||(this.editor=this.createEditor(this.getEditingArea(),this.getEditorConfig()))},n.prototype.destroyEditor=function(){!this.editor||(this.unhookEditor(this.editor),delete this.editor)},n.prototype.isControlled=function(){return"value"in this.props},n.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}},n.prototype.getEditor=function(){if(!this.editor)throw new Error("Accessing non-instantiated editor");return this.editor},n.prototype.createEditor=function(t,r){var i=new Hn.default(t,r);return r.tabIndex!=null&&this.setEditorTabIndex(i,r.tabIndex),this.hookEditor(i),i},n.prototype.hookEditor=function(t){this.unprivilegedEditor=this.makeUnprivilegedEditor(t),t.on("editor-change",this.onEditorChange)},n.prototype.unhookEditor=function(t){t.off("editor-change",this.onEditorChange)},n.prototype.getEditorContents=function(){return this.value},n.prototype.getEditorSelection=function(){return this.selection},n.prototype.isDelta=function(t){return t&&t.ops},n.prototype.isEqualValue=function(t,r){return this.isDelta(t)&&this.isDelta(r)?wt.default(t.ops,r.ops):wt.default(t,r)},n.prototype.setEditorContents=function(t,r){var i=this;this.value=r;var f=this.getEditorSelection();typeof r=="string"?t.setContents(t.clipboard.convert(r)):t.setContents(r),zn(function(){return i.setEditorSelection(t,f)})},n.prototype.setEditorSelection=function(t,r){if(this.selection=r,r){var i=t.getLength();r.index=Math.max(0,Math.min(r.index,i-1)),r.length=Math.max(0,Math.min(r.length,i-1-r.index)),t.setSelection(r)}},n.prototype.setEditorTabIndex=function(t,r){var i,f;!((f=(i=t)===null||i===void 0?void 0:i.scroll)===null||f===void 0)&&f.domNode&&(t.scroll.domNode.tabIndex=r)},n.prototype.setEditorReadOnly=function(t,r){r?t.disable():t.enable()},n.prototype.makeUnprivilegedEditor=function(t){var r=t;return{getHTML:function(){return r.root.innerHTML},getLength:r.getLength.bind(r),getText:r.getText.bind(r),getContents:r.getContents.bind(r),getSelection:r.getSelection.bind(r),getBounds:r.getBounds.bind(r)}},n.prototype.getEditingArea=function(){if(!this.editingArea)throw new Error("Instantiating on missing editing area");var t=Eg.default.findDOMNode(this.editingArea);if(!t)throw new Error("Cannot find element for editing area");if(t.nodeType===3)throw new Error("Editing area cannot be a text node");return t},n.prototype.renderEditingArea=function(){var t=this,r=this.props,i=r.children,f=r.preserveWhitespace,h=this.state.generation,O={key:h,ref:function(m){t.editingArea=m}};return We.default.Children.count(i)?We.default.cloneElement(We.default.Children.only(i),O):f?We.default.createElement("pre",Kt({},O)):We.default.createElement("div",Kt({},O))},n.prototype.render=function(){var t;return We.default.createElement("div",{id:this.props.id,style:this.props.style,key:this.state.generation,className:"quill "+(t=this.props.className,t!=null?t:""),onKeyPress:this.props.onKeyPress,onKeyDown:this.props.onKeyDown,onKeyUp:this.props.onKeyUp},this.renderEditingArea())},n.prototype.onEditorChangeText=function(t,r,i,f){var h,O;if(!!this.editor){var m=this.isDelta(this.value)?f.getContents():f.getHTML();m!==this.getEditorContents()&&(this.lastDeltaChangeSet=r,this.value=m,(O=(h=this.props).onChange)===null||O===void 0||O.call(h,t,r,i,f))}},n.prototype.onEditorChangeSelection=function(t,r,i){var f,h,O,m,_,p;if(!!this.editor){var l=this.getEditorSelection(),o=!l&&t,a=l&&!t;wt.default(t,l)||(this.selection=t,(h=(f=this.props).onChangeSelection)===null||h===void 0||h.call(f,t,r,i),o?(m=(O=this.props).onFocus)===null||m===void 0||m.call(O,t,r,i):a&&((p=(_=this.props).onBlur)===null||p===void 0||p.call(_,l,r,i)))}},n.prototype.focus=function(){!this.editor||this.editor.focus()},n.prototype.blur=function(){!this.editor||(this.selection=null,this.editor.blur())},n.displayName="React Quill",n.Quill=Hn.default,n.defaultProps={theme:"snow",modules:{},readOnly:!1},n}(We.default.Component);function zn(e){Promise.resolve().then(e)}var qt=xg;const Ag=qt;const Tg=at("div")(({theme:e})=>{const n=e.direction==="rtl";return{"& .ql-snow.ql-toolbar button:hover .ql-fill, .ql-snow .ql-toolbar button:hover .ql-fill, .ql-snow.ql-toolbar button:focus .ql-fill, .ql-snow .ql-toolbar button:focus .ql-fill, .ql-snow.ql-toolbar button.ql-active .ql-fill, .ql-snow .ql-toolbar button.ql-active .ql-fill, .ql-snow.ql-toolbar .ql-picker-label:hover .ql-fill, .ql-snow .ql-toolbar .ql-picker-label:hover .ql-fill, .ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-fill, .ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-fill, .ql-snow.ql-toolbar .ql-picker-item:hover .ql-fill, .ql-snow .ql-toolbar .ql-picker-item:hover .ql-fill, .ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-fill, .ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-fill, .ql-snow.ql-toolbar button:hover .ql-stroke.ql-fill, .ql-snow .ql-toolbar button:hover .ql-stroke.ql-fill, .ql-snow.ql-toolbar button:focus .ql-stroke.ql-fill, .ql-snow .ql-toolbar button:focus .ql-stroke.ql-fill, .ql-snow.ql-toolbar button.ql-active .ql-stroke.ql-fill, .ql-snow .ql-toolbar button.ql-active .ql-stroke.ql-fill, .ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke.ql-fill, .ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke.ql-fill, .ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke.ql-fill, .ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke.ql-fill, .ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke.ql-fill, .ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke.ql-fill, .ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke.ql-fill, .ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke.ql-fill":{fill:e.palette.primary.main},"& .ql-snow.ql-toolbar button:hover, .ql-snow .ql-toolbar button:hover, .ql-snow.ql-toolbar button:focus, .ql-snow .ql-toolbar button:focus, .ql-snow.ql-toolbar button.ql-active, .ql-snow .ql-toolbar button.ql-active, .ql-snow.ql-toolbar .ql-picker-label:hover, .ql-snow .ql-toolbar .ql-picker-label:hover, .ql-snow.ql-toolbar .ql-picker-label.ql-active, .ql-snow .ql-toolbar .ql-picker-label.ql-active, .ql-snow.ql-toolbar .ql-picker-item:hover, .ql-snow .ql-toolbar .ql-picker-item:hover, .ql-snow.ql-toolbar .ql-picker-item.ql-selected, .ql-snow .ql-toolbar .ql-picker-item.ql-selected":{color:e.palette.primary.main},"& .ql-snow.ql-toolbar button:hover .ql-stroke, .ql-snow .ql-toolbar button:hover .ql-stroke, .ql-snow.ql-toolbar button:focus .ql-stroke, .ql-snow .ql-toolbar button:focus .ql-stroke, .ql-snow.ql-toolbar button.ql-active .ql-stroke, .ql-snow .ql-toolbar button.ql-active .ql-stroke, .ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke, .ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke, .ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke, .ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke, .ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke, .ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke, .ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke, .ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke, .ql-snow.ql-toolbar button:hover .ql-stroke-miter, .ql-snow .ql-toolbar button:hover .ql-stroke-miter, .ql-snow.ql-toolbar button:focus .ql-stroke-miter, .ql-snow .ql-toolbar button:focus .ql-stroke-miter, .ql-snow.ql-toolbar button.ql-active .ql-stroke-miter, .ql-snow .ql-toolbar button.ql-active .ql-stroke-miter, .ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke-miter, .ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke-miter, .ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke-miter, .ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke-miter, .ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke-miter, .ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke-miter, .ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke-miter, .ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke-miter":{stroke:e.palette.primary.main},"& .ql-stroke":{stroke:e.palette.text.primary},"& .ql-fill, .ql-stroke.ql-fill":{fill:e.palette.text.primary},"& .ql-picker, .ql-picker-options, .ql-picker-item, .ql-picker-label, button":{"&:focus":{outline:"none"}},"& .ql-toolbar.ql-snow":{border:"none",borderBottom:`solid 1px ${e.palette.grey[50032]}`,"& .ql-formats":{"&:not(:last-of-type)":{marginRight:e.spacing(2)}},"& button":{padding:0,display:"flex",alignItems:"center",justifyContent:"center",borderRadius:4,color:e.palette.text.primary},"& button svg, span svg":{width:20,height:20},"& .ql-picker-label":{...e.typography.subtitle2,color:e.palette.text.primary,"& .ql-stroke":{stroke:e.palette.text.primary}},"& .ql-picker-label svg":{...n&&{right:"0 !important",left:"auto !important"}},"& .ql-color,& .ql-background,& .ql-align ":{"& .ql-picker-label":{padding:0,display:"flex",alignItems:"center",justifyContent:"center"}},"& .ql-expanded":{"& .ql-picker-label":{borderRadius:4,color:e.palette.text.disabled,borderColor:"transparent !important",backgroundColor:e.palette.action.focus,"& .ql-stroke":{stroke:e.palette.text.disabled}},"& .ql-picker-options":{padding:0,marginTop:4,border:"none",maxHeight:200,overflow:"auto",boxShadow:e.customShadows.z20,borderRadius:e.shape.borderRadius,backgroundColor:e.palette.background.paper},"& .ql-picker-item":{color:e.palette.text.primary},"&.ql-align":{"& .ql-picker-options":{padding:0,display:"flex"},"& .ql-picker-item":{width:32,height:32,display:"flex",alignItems:"center",justifyContent:"center"}},"&.ql-color, &.ql-background":{"& .ql-picker-options":{padding:8},"& .ql-picker-item":{margin:3,borderRadius:4,"&.ql-selected":{border:"solid 1px black"}}},"&.ql-font, &.ql-size, &.ql-header":{"& .ql-picker-options":{padding:e.spacing(1,0)},"& .ql-picker-item":{padding:e.spacing(.5,1.5)}}}}}}),kg=Tg,po=["Arial","Tahoma","Georgia","Impact","Verdana"],vo=["8px","9px","10px","12px","14px","16px","20px","24px","32px","42px","54px","68px","84px","98px"],Sg=["Heading 1","Heading 2","Heading 3","Heading 4","Heading 5","Heading 6"];function qg(){this.quill.history.undo()}function Ng(){this.quill.history.redo()}const yo=qt.Quill.import("attributors/style/size");yo.whitelist=vo;qt.Quill.register(yo,!0);const go=qt.Quill.import("attributors/style/font");go.whitelist=po;qt.Quill.register(go,!0);const Pg=["align","background","blockquote","bold","bullet","code","code-block","color","direction","font","formula","header","image","indent","italic","link","list","script","size","strike","table","underline","video"];function Lg({id:e,isSimple:n,...t}){return ge(kg,{...t,children:Ie("div",{id:e,children:[Ie("div",{className:"ql-formats",children:[!n&&Ie("select",{className:"ql-font",defaultValue:"",children:[ge("option",{value:"",children:"Font"}),po.map(r=>ge("option",{value:r,children:r},r))]}),!n&&ge("select",{className:"ql-size",defaultValue:"16px",children:vo.map(r=>ge("option",{value:r,children:r},r))}),Ie("select",{className:"ql-header",defaultValue:"",children:[Sg.map((r,i)=>ge("option",{value:i+1,children:r},r)),ge("option",{value:"",children:"Normal"})]})]}),Ie("div",{className:"ql-formats",children:[ge("button",{type:"button",className:"ql-bold"}),ge("button",{type:"button",className:"ql-italic"}),ge("button",{type:"button",className:"ql-underline"}),ge("button",{type:"button",className:"ql-strike"})]}),!n&&Ie("div",{className:"ql-formats",children:[ge("select",{className:"ql-color"}),ge("select",{className:"ql-background"})]}),Ie("div",{className:"ql-formats",children:[ge("button",{type:"button",className:"ql-list",value:"ordered"}),ge("button",{type:"button",className:"ql-list",value:"bullet"}),!n&&ge("button",{type:"button",className:"ql-indent",value:"-1"}),!n&&ge("button",{type:"button",className:"ql-indent",value:"+1"})]}),!n&&Ie("div",{className:"ql-formats",children:[ge("button",{type:"button",className:"ql-script",value:"super"}),ge("button",{type:"button",className:"ql-script",value:"sub"})]}),!n&&Ie("div",{className:"ql-formats",children:[ge("button",{type:"button",className:"ql-code-block"}),ge("button",{type:"button",className:"ql-blockquote"})]}),Ie("div",{className:"ql-formats",children:[ge("button",{type:"button",className:"ql-direction",value:"rtl"}),ge("select",{className:"ql-align"})]}),!n&&Ie("div",{className:"ql-formats",children:[ge("button",{type:"button",className:"ql-link"}),ge("button",{type:"button",className:"ql-image"}),ge("button",{type:"button",className:"ql-video"})]}),Ie("div",{className:"ql-formats",children:[!n&&ge("button",{type:"button",className:"ql-formula"}),ge("button",{type:"button",className:"ql-clean"})]}),!n&&Ie("div",{className:"ql-formats",children:[ge("button",{type:"button",className:"ql-undo",children:ge(Kr,{icon:"ic:round-undo",width:18,height:18})}),ge("button",{type:"button",className:"ql-redo",children:ge(Kr,{icon:"ic:round-redo",width:18,height:18})})]})]})})}const Rg=at(mo)(({theme:e})=>({borderRadius:e.shape.borderRadius,border:`solid 1px ${e.palette.grey[50032]}`,"& .ql-container.ql-snow":{borderColor:"transparent",...e.typography.body1,fontFamily:e.typography.fontFamily},"& .ql-editor":{minHeight:200,"&.ql-blank::before":{fontStyle:"normal",color:e.palette.text.disabled},"& pre.ql-syntax":{...e.typography.body2,padding:e.spacing(2),borderRadius:e.shape.borderRadius,backgroundColor:e.palette.grey[900]}}}));function Bg({id:e="minimal-quill",error:n,value:t,onChange:r,simple:i=!1,helperText:f,sx:h,...O}){const m={toolbar:{container:`#${e}`,handlers:{undo:qg,redo:Ng}},history:{delay:500,maxStack:100,userOnly:!0},syntax:!1,clipboard:{matchVisual:!1}};return Ie("div",{children:[Ie(Rg,{sx:{...n&&{border:_=>`solid 1px ${_.palette.error.main}`},...h},children:[ge(Lg,{id:e,isSimple:i}),ge(Ag,{value:t,onChange:r,modules:m,formats:Pg,placeholder:"Write something awesome...",...O})]}),f&&f]})}function Ug({name:e,...n}){const{control:t}=er();return ge(ag,{name:e,control:t,render:({field:r,fieldState:{error:i}})=>ge(bo,{...r,fullWidth:!0,error:!!i,helperText:i==null?void 0:i.message,...n})})}export{ag as C,Bg as E,Mg as F,Ug as R,Pp as a,er as b,Jy as c,Cg as o,$g as u};