Files
aso/public/client-portal/assets/RHFTextField.522e64b8.js
2023-02-04 08:38:46 +07:00

78 lines
321 KiB
JavaScript

import{a as po,g as vo,A as In,s as Ae,b as Me,_ as Pe,C as Mn,r as at,u as jn,e as Bn,j as Se,h as yo,i as go,E as _e,R as ce,G as mo,H as bo,f as Fr,J as _o,B as Oo}from"./index.6e3d3f58.js";import{T as Eo}from"./TextField.d5f4a1bd.js";function wo(e){return po("MuiCircularProgress",e)}vo("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const xo=["className","color","disableShrink","size","style","thickness","value","variant"];let qt=e=>e,Lr,Rr,$r,Dr;const Ce=44,Ao=In(Lr||(Lr=qt`
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
`)),ko=In(Rr||(Rr=qt`
0% {
stroke-dasharray: 1px, 200px;
stroke-dashoffset: 0;
}
50% {
stroke-dasharray: 100px, 200px;
stroke-dashoffset: -15px;
}
100% {
stroke-dasharray: 100px, 200px;
stroke-dashoffset: -125px;
}
`)),To=e=>{const{classes:t,variant:r,color:n,disableShrink:i}=e,v={root:["root",r,`color${Me(n)}`],svg:["svg"],circle:["circle",`circle${Me(r)}`,i&&"circleDisableShrink"]};return go(v,wo,t)},So=Ae("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`color${Me(r.color)}`]]}})(({ownerState:e,theme:t})=>Pe({display:"inline-block"},e.variant==="determinate"&&{transition:t.transitions.create("transform")},e.color!=="inherit"&&{color:(t.vars||t).palette[e.color].main}),({ownerState:e})=>e.variant==="indeterminate"&&Mn($r||($r=qt`
animation: ${0} 1.4s linear infinite;
`),Ao)),qo=Ae("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),No=Ae("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.circle,t[`circle${Me(r.variant)}`],r.disableShrink&&t.circleDisableShrink]}})(({ownerState:e,theme:t})=>Pe({stroke:"currentColor"},e.variant==="determinate"&&{transition:t.transitions.create("stroke-dashoffset")},e.variant==="indeterminate"&&{strokeDasharray:"80px, 200px",strokeDashoffset:0}),({ownerState:e})=>e.variant==="indeterminate"&&!e.disableShrink&&Mn(Dr||(Dr=qt`
animation: ${0} 1.4s ease-in-out infinite;
`),ko)),Po=at.exports.forwardRef(function(t,r){const n=jn({props:t,name:"MuiCircularProgress"}),{className:i,color:v="primary",disableShrink:m=!1,size:g=40,style:_,thickness:u=3.6,value:s=0,variant:l="indeterminate"}=n,o=Bn(n,xo),a=Pe({},n,{color:v,disableShrink:m,size:g,thickness:u,value:s,variant:l}),p=To(a),c={},y={},d={};if(l==="determinate"){const h=2*Math.PI*((Ce-u)/2);c.strokeDasharray=h.toFixed(3),d["aria-valuenow"]=Math.round(s),c.strokeDashoffset=`${((100-s)/100*h).toFixed(3)}px`,y.transform="rotate(-90deg)"}return Se(So,Pe({className:yo(p.root,i),style:Pe({width:g,height:g},y,_),ownerState:a,ref:r,role:"progressbar"},d,o,{children:Se(qo,{className:p.svg,ownerState:a,viewBox:`${Ce/2} ${Ce/2} ${Ce} ${Ce}`,children:Se(No,{className:p.circle,style:c,ownerState:a,cx:Ce,cy:Ce,r:(Ce-u)/2,fill:"none",strokeWidth:u})})}))}),Fo=Po;var Yt;try{Yt=Map}catch{}var Xt;try{Xt=Set}catch{}function Un(e,t,r){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(Qt);if(Yt&&e instanceof Yt)return new Map(Array.from(e.entries()));if(Xt&&e instanceof Xt)return new Set(Array.from(e.values()));if(e instanceof Object){t.push(e);var n=Object.create(e);r.push(n);for(var i in e){var v=t.findIndex(function(m){return m===e[i]});n[i]=v>-1?r[v]:Un(e[i],t,r)}return n}return e}function Qt(e){return Un(e,[],[])}const Lo=Object.prototype.toString,Ro=Error.prototype.toString,$o=RegExp.prototype.toString,Do=typeof Symbol<"u"?Symbol.prototype.toString:()=>"",Co=/^Symbol\((.*)\)(.*)$/;function Io(e){return e!=+e?"NaN":e===0&&1/e<0?"-0":""+e}function Cr(e,t=!1){if(e==null||e===!0||e===!1)return""+e;const r=typeof e;if(r==="number")return Io(e);if(r==="string")return t?`"${e}"`:e;if(r==="function")return"[Function "+(e.name||"anonymous")+"]";if(r==="symbol")return Do.call(e).replace(Co,"Symbol($1)");const n=Lo.call(e).slice(8,-1);return n==="Date"?isNaN(e.getTime())?""+e:e.toISOString(e):n==="Error"||e instanceof Error?"["+Ro.call(e)+"]":n==="RegExp"?$o.call(e):null}function lt(e,t){let r=Cr(e,t);return r!==null?r:JSON.stringify(e,function(n,i){let v=Cr(this[n],t);return v!==null?v:i},2)}let Ue={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:t,value:r,originalValue:n})=>{let i=n!=null&&n!==r,v=`${e} must be a \`${t}\` type, but the final value was: \`${lt(r,!0)}\``+(i?` (cast from the value \`${lt(n,!0)}\`).`:".");return r===null&&(v+='\n If "null" is intended as an empty value be sure to mark the schema as `.nullable()`'),v},defined:"${path} must be defined"},ke={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"},Ie={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"},Jt={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},Mo={isValue:"${path} field must be ${value}"},er={noUnknown:"${path} field has unspecified keys: ${unknown}"},jo={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:Ue,string:ke,number:Ie,date:Jt,object:er,array:jo,boolean:Mo});var Bo=Object.prototype,Uo=Bo.hasOwnProperty;function zo(e,t){return e!=null&&Uo.call(e,t)}var Vo=zo,Ho=Array.isArray,Be=Ho,Ko=typeof _e=="object"&&_e&&_e.Object===Object&&_e,zn=Ko,Go=zn,Wo=typeof self=="object"&&self&&self.Object===Object&&self,Zo=Go||Wo||Function("return this")(),$e=Zo,Yo=$e,Xo=Yo.Symbol,Nt=Xo,Ir=Nt,Vn=Object.prototype,Qo=Vn.hasOwnProperty,Jo=Vn.toString,nt=Ir?Ir.toStringTag:void 0;function ea(e){var t=Qo.call(e,nt),r=e[nt];try{e[nt]=void 0;var n=!0}catch{}var i=Jo.call(e);return n&&(t?e[nt]=r:delete e[nt]),i}var ta=ea,ra=Object.prototype,na=ra.toString;function ia(e){return na.call(e)}var oa=ia,Mr=Nt,aa=ta,la=oa,sa="[object Null]",ua="[object Undefined]",jr=Mr?Mr.toStringTag:void 0;function fa(e){return e==null?e===void 0?ua:sa:jr&&jr in Object(e)?aa(e):la(e)}var st=fa;function ca(e){return e!=null&&typeof e=="object"}var ut=ca,da=st,ha=ut,pa="[object Symbol]";function va(e){return typeof e=="symbol"||ha(e)&&da(e)==pa}var vr=va,ya=Be,ga=vr,ma=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ba=/^\w*$/;function _a(e,t){if(ya(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||ga(e)?!0:ba.test(e)||!ma.test(e)||t!=null&&e in Object(t)}var yr=_a;function Oa(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var gr=Oa,Ea=st,wa=gr,xa="[object AsyncFunction]",Aa="[object Function]",ka="[object GeneratorFunction]",Ta="[object Proxy]";function Sa(e){if(!wa(e))return!1;var t=Ea(e);return t==Aa||t==ka||t==xa||t==Ta}var Hn=Sa,qa=$e,Na=qa["__core-js_shared__"],Pa=Na,Ut=Pa,Br=function(){var e=/[^.]+$/.exec(Ut&&Ut.keys&&Ut.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Fa(e){return!!Br&&Br in e}var La=Fa,Ra=Function.prototype,$a=Ra.toString;function Da(e){if(e!=null){try{return $a.call(e)}catch{}try{return e+""}catch{}}return""}var Kn=Da,Ca=Hn,Ia=La,Ma=gr,ja=Kn,Ba=/[\\^$.*+?()[\]{}|]/g,Ua=/^\[object .+?Constructor\]$/,za=Function.prototype,Va=Object.prototype,Ha=za.toString,Ka=Va.hasOwnProperty,Ga=RegExp("^"+Ha.call(Ka).replace(Ba,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Wa(e){if(!Ma(e)||Ia(e))return!1;var t=Ca(e)?Ga:Ua;return t.test(ja(e))}var Za=Wa;function Ya(e,t){return e==null?void 0:e[t]}var Xa=Ya,Qa=Za,Ja=Xa;function el(e,t){var r=Ja(e,t);return Qa(r)?r:void 0}var He=el,tl=He,rl=tl(Object,"create"),Pt=rl,Ur=Pt;function nl(){this.__data__=Ur?Ur(null):{},this.size=0}var il=nl;function ol(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var al=ol,ll=Pt,sl="__lodash_hash_undefined__",ul=Object.prototype,fl=ul.hasOwnProperty;function cl(e){var t=this.__data__;if(ll){var r=t[e];return r===sl?void 0:r}return fl.call(t,e)?t[e]:void 0}var dl=cl,hl=Pt,pl=Object.prototype,vl=pl.hasOwnProperty;function yl(e){var t=this.__data__;return hl?t[e]!==void 0:vl.call(t,e)}var gl=yl,ml=Pt,bl="__lodash_hash_undefined__";function _l(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=ml&&t===void 0?bl:t,this}var Ol=_l,El=il,wl=al,xl=dl,Al=gl,kl=Ol;function Qe(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Qe.prototype.clear=El;Qe.prototype.delete=wl;Qe.prototype.get=xl;Qe.prototype.has=Al;Qe.prototype.set=kl;var Tl=Qe;function Sl(){this.__data__=[],this.size=0}var ql=Sl;function Nl(e,t){return e===t||e!==e&&t!==t}var Gn=Nl,Pl=Gn;function Fl(e,t){for(var r=e.length;r--;)if(Pl(e[r][0],t))return r;return-1}var Ft=Fl,Ll=Ft,Rl=Array.prototype,$l=Rl.splice;function Dl(e){var t=this.__data__,r=Ll(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():$l.call(t,r,1),--this.size,!0}var Cl=Dl,Il=Ft;function Ml(e){var t=this.__data__,r=Il(t,e);return r<0?void 0:t[r][1]}var jl=Ml,Bl=Ft;function Ul(e){return Bl(this.__data__,e)>-1}var zl=Ul,Vl=Ft;function Hl(e,t){var r=this.__data__,n=Vl(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var Kl=Hl,Gl=ql,Wl=Cl,Zl=jl,Yl=zl,Xl=Kl;function Je(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Je.prototype.clear=Gl;Je.prototype.delete=Wl;Je.prototype.get=Zl;Je.prototype.has=Yl;Je.prototype.set=Xl;var Lt=Je,Ql=He,Jl=$e,es=Ql(Jl,"Map"),mr=es,zr=Tl,ts=Lt,rs=mr;function ns(){this.size=0,this.__data__={hash:new zr,map:new(rs||ts),string:new zr}}var is=ns;function os(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var as=os,ls=as;function ss(e,t){var r=e.__data__;return ls(t)?r[typeof t=="string"?"string":"hash"]:r.map}var Rt=ss,us=Rt;function fs(e){var t=us(this,e).delete(e);return this.size-=t?1:0,t}var cs=fs,ds=Rt;function hs(e){return ds(this,e).get(e)}var ps=hs,vs=Rt;function ys(e){return vs(this,e).has(e)}var gs=ys,ms=Rt;function bs(e,t){var r=ms(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}var _s=bs,Os=is,Es=cs,ws=ps,xs=gs,As=_s;function et(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}et.prototype.clear=Os;et.prototype.delete=Es;et.prototype.get=ws;et.prototype.has=xs;et.prototype.set=As;var br=et,Wn=br,ks="Expected a function";function _r(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(ks);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],v=r.cache;if(v.has(i))return v.get(i);var m=e.apply(this,n);return r.cache=v.set(i,m)||v,m};return r.cache=new(_r.Cache||Wn),r}_r.Cache=Wn;var Ts=_r,Ss=Ts,qs=500;function Ns(e){var t=Ss(e,function(n){return r.size===qs&&r.clear(),n}),r=t.cache;return t}var Ps=Ns,Fs=Ps,Ls=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Rs=/\\(\\)?/g,$s=Fs(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Ls,function(r,n,i,v){t.push(i?v.replace(Rs,"$1"):n||r)}),t}),Ds=$s;function Cs(e,t){for(var r=-1,n=e==null?0:e.length,i=Array(n);++r<n;)i[r]=t(e[r],r,e);return i}var Is=Cs,Vr=Nt,Ms=Is,js=Be,Bs=vr,Us=1/0,Hr=Vr?Vr.prototype:void 0,Kr=Hr?Hr.toString:void 0;function Zn(e){if(typeof e=="string")return e;if(js(e))return Ms(e,Zn)+"";if(Bs(e))return Kr?Kr.call(e):"";var t=e+"";return t=="0"&&1/e==-Us?"-0":t}var zs=Zn,Vs=zs;function Hs(e){return e==null?"":Vs(e)}var ft=Hs,Ks=Be,Gs=yr,Ws=Ds,Zs=ft;function Ys(e,t){return Ks(e)?e:Gs(e,t)?[e]:Ws(Zs(e))}var Yn=Ys,Xs=st,Qs=ut,Js="[object Arguments]";function eu(e){return Qs(e)&&Xs(e)==Js}var tu=eu,Gr=tu,ru=ut,Xn=Object.prototype,nu=Xn.hasOwnProperty,iu=Xn.propertyIsEnumerable,ou=Gr(function(){return arguments}())?Gr:function(e){return ru(e)&&nu.call(e,"callee")&&!iu.call(e,"callee")},Qn=ou,au=9007199254740991,lu=/^(?:0|[1-9]\d*)$/;function su(e,t){var r=typeof e;return t=t==null?au:t,!!t&&(r=="number"||r!="symbol"&&lu.test(e))&&e>-1&&e%1==0&&e<t}var Jn=su,uu=9007199254740991;function fu(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=uu}var Or=fu,cu=vr,du=1/0;function hu(e){if(typeof e=="string"||cu(e))return e;var t=e+"";return t=="0"&&1/e==-du?"-0":t}var $t=hu,pu=Yn,vu=Qn,yu=Be,gu=Jn,mu=Or,bu=$t;function _u(e,t,r){t=pu(t,e);for(var n=-1,i=t.length,v=!1;++n<i;){var m=bu(t[n]);if(!(v=e!=null&&r(e,m)))break;e=e[m]}return v||++n!=i?v:(i=e==null?0:e.length,!!i&&mu(i)&&gu(m,i)&&(yu(e)||vu(e)))}var ei=_u,Ou=Vo,Eu=ei;function wu(e,t){return e!=null&&Eu(e,t,Ou)}var mt=wu;const ti=e=>e&&e.__isYupSchema__;class xu{constructor(t,r){if(this.fn=void 0,this.refs=t,this.refs=t,typeof r=="function"){this.fn=r;return}if(!mt(r,"is"))throw new TypeError("`is:` is required for `when()` conditions");if(!r.then&&!r.otherwise)throw new TypeError("either `then:` or `otherwise:` is required for `when()` conditions");let{is:n,then:i,otherwise:v}=r,m=typeof n=="function"?n:(...g)=>g.every(_=>_===n);this.fn=function(...g){let _=g.pop(),u=g.pop(),s=m(...g)?i:v;if(!!s)return typeof s=="function"?s(u):u.concat(s.resolve(_))}}resolve(t,r){let n=this.refs.map(v=>v.getValue(r==null?void 0:r.value,r==null?void 0:r.parent,r==null?void 0:r.context)),i=this.fn.apply(t,n.concat(t,r));if(i===void 0||i===t)return t;if(!ti(i))throw new TypeError("conditions must return a schema object");return i.resolve(r)}}function ri(e){return e==null?[]:[].concat(e)}function tr(){return tr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},tr.apply(this,arguments)}let Au=/\$\{\s*(\w+)\s*\}/g;class Oe extends Error{static formatError(t,r){const n=r.label||r.path||"this";return n!==r.path&&(r=tr({},r,{path:n})),typeof t=="string"?t.replace(Au,(i,v)=>lt(r[v])):typeof t=="function"?t(r):t}static isError(t){return t&&t.name==="ValidationError"}constructor(t,r,n,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=r,this.path=n,this.type=i,this.errors=[],this.inner=[],ri(t).forEach(v=>{Oe.isError(v)?(this.errors.push(...v.errors),this.inner=this.inner.concat(v.inner.length?v.inner:v)):this.errors.push(v)}),this.message=this.errors.length>1?`${this.errors.length} errors occurred`:this.errors[0],Error.captureStackTrace&&Error.captureStackTrace(this,Oe)}}const ku=e=>{let t=!1;return(...r)=>{t||(t=!0,e(...r))}};function rr(e,t){let{endEarly:r,tests:n,args:i,value:v,errors:m,sort:g,path:_}=e,u=ku(t),s=n.length;const l=[];if(m=m||[],!s)return m.length?u(new Oe(m,v,_)):u(null,v);for(let o=0;o<n.length;o++){const a=n[o];a(i,function(c){if(c){if(!Oe.isError(c))return u(c,v);if(r)return c.value=v,u(c,v);l.push(c)}if(--s<=0){if(l.length&&(g&&l.sort(g),m.length&&l.push(...m),m=l),m.length){u(new Oe(m,v,_),v);return}u(null,v)}})}}var Tu=He,Su=function(){try{var e=Tu(Object,"defineProperty");return e({},"",{}),e}catch{}}(),qu=Su,Wr=qu;function Nu(e,t,r){t=="__proto__"&&Wr?Wr(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var ni=Nu;function Pu(e){return function(t,r,n){for(var i=-1,v=Object(t),m=n(t),g=m.length;g--;){var _=m[e?g:++i];if(r(v[_],_,v)===!1)break}return t}}var Fu=Pu,Lu=Fu,Ru=Lu(),$u=Ru;function Du(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var Cu=Du,bt={exports:{}};function Iu(){return!1}var Mu=Iu;(function(e,t){var r=$e,n=Mu,i=t&&!t.nodeType&&t,v=i&&!0&&e&&!e.nodeType&&e,m=v&&v.exports===i,g=m?r.Buffer:void 0,_=g?g.isBuffer:void 0,u=_||n;e.exports=u})(bt,bt.exports);var ju=st,Bu=Or,Uu=ut,zu="[object Arguments]",Vu="[object Array]",Hu="[object Boolean]",Ku="[object Date]",Gu="[object Error]",Wu="[object Function]",Zu="[object Map]",Yu="[object Number]",Xu="[object Object]",Qu="[object RegExp]",Ju="[object Set]",ef="[object String]",tf="[object WeakMap]",rf="[object ArrayBuffer]",nf="[object DataView]",of="[object Float32Array]",af="[object Float64Array]",lf="[object Int8Array]",sf="[object Int16Array]",uf="[object Int32Array]",ff="[object Uint8Array]",cf="[object Uint8ClampedArray]",df="[object Uint16Array]",hf="[object Uint32Array]",fe={};fe[of]=fe[af]=fe[lf]=fe[sf]=fe[uf]=fe[ff]=fe[cf]=fe[df]=fe[hf]=!0;fe[zu]=fe[Vu]=fe[rf]=fe[Hu]=fe[nf]=fe[Ku]=fe[Gu]=fe[Wu]=fe[Zu]=fe[Yu]=fe[Xu]=fe[Qu]=fe[Ju]=fe[ef]=fe[tf]=!1;function pf(e){return Uu(e)&&Bu(e.length)&&!!fe[ju(e)]}var vf=pf;function yf(e){return function(t){return e(t)}}var gf=yf,nr={exports:{}};(function(e,t){var r=zn,n=t&&!t.nodeType&&t,i=n&&!0&&e&&!e.nodeType&&e,v=i&&i.exports===n,m=v&&r.process,g=function(){try{var _=i&&i.require&&i.require("util").types;return _||m&&m.binding&&m.binding("util")}catch{}}();e.exports=g})(nr,nr.exports);var mf=vf,bf=gf,Zr=nr.exports,Yr=Zr&&Zr.isTypedArray,_f=Yr?bf(Yr):mf,ii=_f,Of=Cu,Ef=Qn,wf=Be,xf=bt.exports,Af=Jn,kf=ii,Tf=Object.prototype,Sf=Tf.hasOwnProperty;function qf(e,t){var r=wf(e),n=!r&&Ef(e),i=!r&&!n&&xf(e),v=!r&&!n&&!i&&kf(e),m=r||n||i||v,g=m?Of(e.length,String):[],_=g.length;for(var u in e)(t||Sf.call(e,u))&&!(m&&(u=="length"||i&&(u=="offset"||u=="parent")||v&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||Af(u,_)))&&g.push(u);return g}var Nf=qf,Pf=Object.prototype;function Ff(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||Pf;return e===r}var Lf=Ff;function Rf(e,t){return function(r){return e(t(r))}}var $f=Rf,Df=$f,Cf=Df(Object.keys,Object),If=Cf,Mf=Lf,jf=If,Bf=Object.prototype,Uf=Bf.hasOwnProperty;function zf(e){if(!Mf(e))return jf(e);var t=[];for(var r in Object(e))Uf.call(e,r)&&r!="constructor"&&t.push(r);return t}var Vf=zf,Hf=Hn,Kf=Or;function Gf(e){return e!=null&&Kf(e.length)&&!Hf(e)}var Wf=Gf,Zf=Nf,Yf=Vf,Xf=Wf;function Qf(e){return Xf(e)?Zf(e):Yf(e)}var Er=Qf,Jf=$u,ec=Er;function tc(e,t){return e&&Jf(e,t,ec)}var oi=tc,rc=Lt;function nc(){this.__data__=new rc,this.size=0}var ic=nc;function oc(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}var ac=oc;function lc(e){return this.__data__.get(e)}var sc=lc;function uc(e){return this.__data__.has(e)}var fc=uc,cc=Lt,dc=mr,hc=br,pc=200;function vc(e,t){var r=this.__data__;if(r instanceof cc){var n=r.__data__;if(!dc||n.length<pc-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new hc(n)}return r.set(e,t),this.size=r.size,this}var yc=vc,gc=Lt,mc=ic,bc=ac,_c=sc,Oc=fc,Ec=yc;function tt(e){var t=this.__data__=new gc(e);this.size=t.size}tt.prototype.clear=mc;tt.prototype.delete=bc;tt.prototype.get=_c;tt.prototype.has=Oc;tt.prototype.set=Ec;var ai=tt,wc="__lodash_hash_undefined__";function xc(e){return this.__data__.set(e,wc),this}var Ac=xc;function kc(e){return this.__data__.has(e)}var Tc=kc,Sc=br,qc=Ac,Nc=Tc;function _t(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new Sc;++t<r;)this.add(e[t])}_t.prototype.add=_t.prototype.push=qc;_t.prototype.has=Nc;var Pc=_t;function Fc(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}var Lc=Fc;function Rc(e,t){return e.has(t)}var $c=Rc,Dc=Pc,Cc=Lc,Ic=$c,Mc=1,jc=2;function Bc(e,t,r,n,i,v){var m=r&Mc,g=e.length,_=t.length;if(g!=_&&!(m&&_>g))return!1;var u=v.get(e),s=v.get(t);if(u&&s)return u==t&&s==e;var l=-1,o=!0,a=r&jc?new Dc:void 0;for(v.set(e,t),v.set(t,e);++l<g;){var p=e[l],c=t[l];if(n)var y=m?n(c,p,l,t,e,v):n(p,c,l,e,t,v);if(y!==void 0){if(y)continue;o=!1;break}if(a){if(!Cc(t,function(d,h){if(!Ic(a,h)&&(p===d||i(p,d,r,n,v)))return a.push(h)})){o=!1;break}}else if(!(p===c||i(p,c,r,n,v))){o=!1;break}}return v.delete(e),v.delete(t),o}var li=Bc,Uc=$e,zc=Uc.Uint8Array,Vc=zc;function Hc(e){var t=-1,r=Array(e.size);return e.forEach(function(n,i){r[++t]=[i,n]}),r}var Kc=Hc;function Gc(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var Wc=Gc,Xr=Nt,Qr=Vc,Zc=Gn,Yc=li,Xc=Kc,Qc=Wc,Jc=1,ed=2,td="[object Boolean]",rd="[object Date]",nd="[object Error]",id="[object Map]",od="[object Number]",ad="[object RegExp]",ld="[object Set]",sd="[object String]",ud="[object Symbol]",fd="[object ArrayBuffer]",cd="[object DataView]",Jr=Xr?Xr.prototype:void 0,zt=Jr?Jr.valueOf:void 0;function dd(e,t,r,n,i,v,m){switch(r){case cd:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case fd:return!(e.byteLength!=t.byteLength||!v(new Qr(e),new Qr(t)));case td:case rd:case od:return Zc(+e,+t);case nd:return e.name==t.name&&e.message==t.message;case ad:case sd:return e==t+"";case id:var g=Xc;case ld:var _=n&Jc;if(g||(g=Qc),e.size!=t.size&&!_)return!1;var u=m.get(e);if(u)return u==t;n|=ed,m.set(e,t);var s=Yc(g(e),g(t),n,i,v,m);return m.delete(e),s;case ud:if(zt)return zt.call(e)==zt.call(t)}return!1}var hd=dd;function pd(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}var vd=pd,yd=vd,gd=Be;function md(e,t,r){var n=t(e);return gd(e)?n:yd(n,r(e))}var bd=md;function _d(e,t){for(var r=-1,n=e==null?0:e.length,i=0,v=[];++r<n;){var m=e[r];t(m,r,e)&&(v[i++]=m)}return v}var Od=_d;function Ed(){return[]}var wd=Ed,xd=Od,Ad=wd,kd=Object.prototype,Td=kd.propertyIsEnumerable,en=Object.getOwnPropertySymbols,Sd=en?function(e){return e==null?[]:(e=Object(e),xd(en(e),function(t){return Td.call(e,t)}))}:Ad,qd=Sd,Nd=bd,Pd=qd,Fd=Er;function Ld(e){return Nd(e,Fd,Pd)}var Rd=Ld,tn=Rd,$d=1,Dd=Object.prototype,Cd=Dd.hasOwnProperty;function Id(e,t,r,n,i,v){var m=r&$d,g=tn(e),_=g.length,u=tn(t),s=u.length;if(_!=s&&!m)return!1;for(var l=_;l--;){var o=g[l];if(!(m?o in t:Cd.call(t,o)))return!1}var a=v.get(e),p=v.get(t);if(a&&p)return a==t&&p==e;var c=!0;v.set(e,t),v.set(t,e);for(var y=m;++l<_;){o=g[l];var d=e[o],h=t[o];if(n)var b=m?n(h,d,o,t,e,v):n(d,h,o,e,t,v);if(!(b===void 0?d===h||i(d,h,r,n,v):b)){c=!1;break}y||(y=o=="constructor")}if(c&&!y){var f=e.constructor,O=t.constructor;f!=O&&"constructor"in e&&"constructor"in t&&!(typeof f=="function"&&f instanceof f&&typeof O=="function"&&O instanceof O)&&(c=!1)}return v.delete(e),v.delete(t),c}var Md=Id,jd=He,Bd=$e,Ud=jd(Bd,"DataView"),zd=Ud,Vd=He,Hd=$e,Kd=Vd(Hd,"Promise"),Gd=Kd,Wd=He,Zd=$e,Yd=Wd(Zd,"Set"),Xd=Yd,Qd=He,Jd=$e,eh=Qd(Jd,"WeakMap"),th=eh,ir=zd,or=mr,ar=Gd,lr=Xd,sr=th,si=st,rt=Kn,rn="[object Map]",rh="[object Object]",nn="[object Promise]",on="[object Set]",an="[object WeakMap]",ln="[object DataView]",nh=rt(ir),ih=rt(or),oh=rt(ar),ah=rt(lr),lh=rt(sr),ze=si;(ir&&ze(new ir(new ArrayBuffer(1)))!=ln||or&&ze(new or)!=rn||ar&&ze(ar.resolve())!=nn||lr&&ze(new lr)!=on||sr&&ze(new sr)!=an)&&(ze=function(e){var t=si(e),r=t==rh?e.constructor:void 0,n=r?rt(r):"";if(n)switch(n){case nh:return ln;case ih:return rn;case oh:return nn;case ah:return on;case lh:return an}return t});var sh=ze,Vt=ai,uh=li,fh=hd,ch=Md,sn=sh,un=Be,fn=bt.exports,dh=ii,hh=1,cn="[object Arguments]",dn="[object Array]",ht="[object Object]",ph=Object.prototype,hn=ph.hasOwnProperty;function vh(e,t,r,n,i,v){var m=un(e),g=un(t),_=m?dn:sn(e),u=g?dn:sn(t);_=_==cn?ht:_,u=u==cn?ht:u;var s=_==ht,l=u==ht,o=_==u;if(o&&fn(e)){if(!fn(t))return!1;m=!0,s=!1}if(o&&!s)return v||(v=new Vt),m||dh(e)?uh(e,t,r,n,i,v):fh(e,t,_,r,n,i,v);if(!(r&hh)){var a=s&&hn.call(e,"__wrapped__"),p=l&&hn.call(t,"__wrapped__");if(a||p){var c=a?e.value():e,y=p?t.value():t;return v||(v=new Vt),i(c,y,r,n,v)}}return o?(v||(v=new Vt),ch(e,t,r,n,i,v)):!1}var yh=vh,gh=yh,pn=ut;function ui(e,t,r,n,i){return e===t?!0:e==null||t==null||!pn(e)&&!pn(t)?e!==e&&t!==t:gh(e,t,r,n,ui,i)}var wr=ui,mh=ai,bh=wr,_h=1,Oh=2;function Eh(e,t,r,n){var i=r.length,v=i,m=!n;if(e==null)return!v;for(e=Object(e);i--;){var g=r[i];if(m&&g[2]?g[1]!==e[g[0]]:!(g[0]in e))return!1}for(;++i<v;){g=r[i];var _=g[0],u=e[_],s=g[1];if(m&&g[2]){if(u===void 0&&!(_ in e))return!1}else{var l=new mh;if(n)var o=n(u,s,_,e,t,l);if(!(o===void 0?bh(s,u,_h|Oh,n,l):o))return!1}}return!0}var wh=Eh,xh=gr;function Ah(e){return e===e&&!xh(e)}var fi=Ah,kh=fi,Th=Er;function Sh(e){for(var t=Th(e),r=t.length;r--;){var n=t[r],i=e[n];t[r]=[n,i,kh(i)]}return t}var qh=Sh;function Nh(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}var ci=Nh,Ph=wh,Fh=qh,Lh=ci;function Rh(e){var t=Fh(e);return t.length==1&&t[0][2]?Lh(t[0][0],t[0][1]):function(r){return r===e||Ph(r,e,t)}}var $h=Rh,Dh=Yn,Ch=$t;function Ih(e,t){t=Dh(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[Ch(t[r++])];return r&&r==n?e:void 0}var di=Ih,Mh=di;function jh(e,t,r){var n=e==null?void 0:Mh(e,t);return n===void 0?r:n}var Bh=jh;function Uh(e,t){return e!=null&&t in Object(e)}var zh=Uh,Vh=zh,Hh=ei;function Kh(e,t){return e!=null&&Hh(e,t,Vh)}var Gh=Kh,Wh=wr,Zh=Bh,Yh=Gh,Xh=yr,Qh=fi,Jh=ci,ep=$t,tp=1,rp=2;function np(e,t){return Xh(e)&&Qh(t)?Jh(ep(e),t):function(r){var n=Zh(r,e);return n===void 0&&n===t?Yh(r,e):Wh(t,n,tp|rp)}}var ip=np;function op(e){return e}var ap=op;function lp(e){return function(t){return t==null?void 0:t[e]}}var sp=lp,up=di;function fp(e){return function(t){return up(t,e)}}var cp=fp,dp=sp,hp=cp,pp=yr,vp=$t;function yp(e){return pp(e)?dp(vp(e)):hp(e)}var gp=yp,mp=$h,bp=ip,_p=ap,Op=Be,Ep=gp;function wp(e){return typeof e=="function"?e:e==null?_p:typeof e=="object"?Op(e)?bp(e[0],e[1]):mp(e):Ep(e)}var hi=wp,xp=ni,Ap=oi,kp=hi;function Tp(e,t){var r={};return t=kp(t),Ap(e,function(n,i,v){xp(r,i,t(n,i,v))}),r}var pi=Tp;function Ke(e){this._maxSize=e,this.clear()}Ke.prototype.clear=function(){this._size=0,this._values=Object.create(null)};Ke.prototype.get=function(e){return this._values[e]};Ke.prototype.set=function(e,t){return this._size>=this._maxSize&&this.clear(),e in this._values||this._size++,this._values[e]=t};var Sp=/[^.^\]^[]+|(?=\[\]|\.\.)/g,vi=/^\d+$/,qp=/^\d/,Np=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,Pp=/^\s*(['"]?)(.*?)(\1)\s*$/,xr=512,vn=new Ke(xr),yn=new Ke(xr),gn=new Ke(xr),Dt={Cache:Ke,split:ur,normalizePath:Ht,setter:function(e){var t=Ht(e);return yn.get(e)||yn.set(e,function(n,i){for(var v=0,m=t.length,g=n;v<m-1;){var _=t[v];if(_==="__proto__"||_==="constructor"||_==="prototype")return n;g=g[t[v++]]}g[t[v]]=i})},getter:function(e,t){var r=Ht(e);return gn.get(e)||gn.set(e,function(i){for(var v=0,m=r.length;v<m;)if(i!=null||!t)i=i[r[v++]];else return;return i})},join:function(e){return e.reduce(function(t,r){return t+(Ar(r)||vi.test(r)?"["+r+"]":(t?".":"")+r)},"")},forEach:function(e,t,r){Fp(Array.isArray(e)?e:ur(e),t,r)}};function Ht(e){return vn.get(e)||vn.set(e,ur(e).map(function(t){return t.replace(Pp,"$2")}))}function ur(e){return e.match(Sp)||[""]}function Fp(e,t,r){var n=e.length,i,v,m,g;for(v=0;v<n;v++)i=e[v],i&&($p(i)&&(i='"'+i+'"'),g=Ar(i),m=!g&&/^\d+$/.test(i),t.call(r,i,g,m,v,e))}function Ar(e){return typeof e=="string"&&e&&["'",'"'].indexOf(e.charAt(0))!==-1}function Lp(e){return e.match(qp)&&!e.match(vi)}function Rp(e){return Np.test(e)}function $p(e){return!Ar(e)&&(Lp(e)||Rp(e))}const pt={context:"$",value:"."};class je{constructor(t,r={}){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 t!="string")throw new TypeError("ref must be a string, got: "+t);if(this.key=t.trim(),t==="")throw new TypeError("ref must be a non-empty string");this.isContext=this.key[0]===pt.context,this.isValue=this.key[0]===pt.value,this.isSibling=!this.isContext&&!this.isValue;let n=this.isContext?pt.context:this.isValue?pt.value:"";this.path=this.key.slice(n.length),this.getter=this.path&&Dt.getter(this.path,!0),this.map=r.map}getValue(t,r,n){let i=this.isContext?n:this.isValue?t:r;return this.getter&&(i=this.getter(i||{})),this.map&&(i=this.map(i)),i}cast(t,r){return this.getValue(t,r==null?void 0:r.parent,r==null?void 0:r.context)}resolve(){return this}describe(){return{type:"ref",key:this.key}}toString(){return`Ref(${this.key})`}static isRef(t){return t&&t.__isYupRef}}je.prototype.__isYupRef=!0;function Ot(){return Ot=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ot.apply(this,arguments)}function Dp(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,v;for(v=0;v<n.length;v++)i=n[v],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}function vt(e){function t(r,n){let{value:i,path:v="",label:m,options:g,originalValue:_,sync:u}=r,s=Dp(r,["value","path","label","options","originalValue","sync"]);const{name:l,test:o,params:a,message:p}=e;let{parent:c,context:y}=g;function d(S){return je.isRef(S)?S.getValue(i,c,y):S}function h(S={}){const A=pi(Ot({value:i,originalValue:_,label:m,path:S.path||v},a,S.params),d),k=new Oe(Oe.formatError(S.message||p,A),i,A.path,S.type||l);return k.params=A,k}let b=Ot({path:v,parent:c,type:l,createError:h,resolve:d,options:g,originalValue:_},s);if(!u){try{Promise.resolve(o.call(b,i,b)).then(S=>{Oe.isError(S)?n(S):S?n(null,S):n(h())}).catch(n)}catch(S){n(S)}return}let f;try{var O;if(f=o.call(b,i,b),typeof((O=f)==null?void 0:O.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(S){n(S);return}Oe.isError(f)?n(f):f?n(null,f):n(h())}return t.OPTIONS=e,t}let Cp=e=>e.substr(0,e.length-1).substr(1);function Ip(e,t,r,n=r){let i,v,m;return t?(Dt.forEach(t,(g,_,u)=>{let s=_?Cp(g):g;if(e=e.resolve({context:n,parent:i,value:r}),e.innerType){let l=u?parseInt(s,10):0;if(r&&l>=r.length)throw new Error(`Yup.reach cannot resolve an array item at index: ${g}, in the path: ${t}. because there is no value at that index. `);i=r,r=r&&r[l],e=e.innerType}if(!u){if(!e.fields||!e.fields[s])throw new Error(`The schema does not contain the path: ${t}. (failed at: ${m} which is a type: "${e._type}")`);i=r,r=r&&r[s],e=e.fields[s]}v=s,m=_?"["+g+"]":"."+g}),{schema:e,parent:i,parentPath:v}):{parent:i,parentPath:t,schema:e}}class Et{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 t=[];for(const r of this.list)t.push(r);for(const[,r]of this.refs)t.push(r.describe());return t}toArray(){return Array.from(this.list).concat(Array.from(this.refs.values()))}resolveAll(t){return this.toArray().reduce((r,n)=>r.concat(je.isRef(n)?t(n):n),[])}add(t){je.isRef(t)?this.refs.set(t.key,t):this.list.add(t)}delete(t){je.isRef(t)?this.refs.delete(t.key):this.list.delete(t)}clone(){const t=new Et;return t.list=new Set(this.list),t.refs=new Map(this.refs),t}merge(t,r){const n=this.clone();return t.list.forEach(i=>n.add(i)),t.refs.forEach(i=>n.add(i)),r.list.forEach(i=>n.delete(i)),r.refs.forEach(i=>n.delete(i)),n}}function we(){return we=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},we.apply(this,arguments)}class be{constructor(t){this.deps=[],this.tests=void 0,this.transforms=void 0,this.conditions=[],this._mutate=void 0,this._typeError=void 0,this._whitelist=new Et,this._blacklist=new Et,this.exclusiveTests=Object.create(null),this.spec=void 0,this.tests=[],this.transforms=[],this.withMutation(()=>{this.typeError(Ue.notType)}),this.type=(t==null?void 0:t.type)||"mixed",this.spec=we({strip:!1,strict:!1,abortEarly:!0,recursive:!0,nullable:!1,presence:"optional"},t==null?void 0:t.spec)}get _type(){return this.type}_typeCheck(t){return!0}clone(t){if(this._mutate)return t&&Object.assign(this.spec,t),this;const r=Object.create(Object.getPrototypeOf(this));return r.type=this.type,r._typeError=this._typeError,r._whitelistError=this._whitelistError,r._blacklistError=this._blacklistError,r._whitelist=this._whitelist.clone(),r._blacklist=this._blacklist.clone(),r.exclusiveTests=we({},this.exclusiveTests),r.deps=[...this.deps],r.conditions=[...this.conditions],r.tests=[...this.tests],r.transforms=[...this.transforms],r.spec=Qt(we({},this.spec,t)),r}label(t){let r=this.clone();return r.spec.label=t,r}meta(...t){if(t.length===0)return this.spec.meta;let r=this.clone();return r.spec.meta=Object.assign(r.spec.meta||{},t[0]),r}withMutation(t){let r=this._mutate;this._mutate=!0;let n=t(this);return this._mutate=r,n}concat(t){if(!t||t===this)return this;if(t.type!==this.type&&this.type!=="mixed")throw new TypeError(`You cannot \`concat()\` schema's of different types: ${this.type} and ${t.type}`);let r=this,n=t.clone();const i=we({},r.spec,n.spec);return n.spec=i,n._typeError||(n._typeError=r._typeError),n._whitelistError||(n._whitelistError=r._whitelistError),n._blacklistError||(n._blacklistError=r._blacklistError),n._whitelist=r._whitelist.merge(t._whitelist,t._blacklist),n._blacklist=r._blacklist.merge(t._blacklist,t._whitelist),n.tests=r.tests,n.exclusiveTests=r.exclusiveTests,n.withMutation(v=>{t.tests.forEach(m=>{v.test(m.OPTIONS)})}),n.transforms=[...r.transforms,...n.transforms],n}isType(t){return this.spec.nullable&&t===null?!0:this._typeCheck(t)}resolve(t){let r=this;if(r.conditions.length){let n=r.conditions;r=r.clone(),r.conditions=[],r=n.reduce((i,v)=>v.resolve(i,t),r),r=r.resolve(t)}return r}cast(t,r={}){let n=this.resolve(we({value:t},r)),i=n._cast(t,r);if(t!==void 0&&r.assert!==!1&&n.isType(i)!==!0){let v=lt(t),m=lt(i);throw new TypeError(`The value of ${r.path||"field"} could not be cast to a value that satisfies the schema type: "${n._type}".
attempted value: ${v}
`+(m!==v?`result of cast: ${m}`:""))}return i}_cast(t,r){let n=t===void 0?t:this.transforms.reduce((i,v)=>v.call(this,i,t,this),t);return n===void 0&&(n=this.getDefault()),n}_validate(t,r={},n){let{sync:i,path:v,from:m=[],originalValue:g=t,strict:_=this.spec.strict,abortEarly:u=this.spec.abortEarly}=r,s=t;_||(s=this._cast(s,we({assert:!1},r)));let l={value:s,path:v,options:r,originalValue:g,schema:this,label:this.spec.label,sync:i,from:m},o=[];this._typeError&&o.push(this._typeError);let a=[];this._whitelistError&&a.push(this._whitelistError),this._blacklistError&&a.push(this._blacklistError),rr({args:l,value:s,path:v,sync:i,tests:o,endEarly:u},p=>{if(p)return void n(p,s);rr({tests:this.tests.concat(a),args:l,path:v,sync:i,value:s,endEarly:u},n)})}validate(t,r,n){let i=this.resolve(we({},r,{value:t}));return typeof n=="function"?i._validate(t,r,n):new Promise((v,m)=>i._validate(t,r,(g,_)=>{g?m(g):v(_)}))}validateSync(t,r){let n=this.resolve(we({},r,{value:t})),i;return n._validate(t,we({},r,{sync:!0}),(v,m)=>{if(v)throw v;i=m}),i}isValid(t,r){return this.validate(t,r).then(()=>!0,n=>{if(Oe.isError(n))return!1;throw n})}isValidSync(t,r){try{return this.validateSync(t,r),!0}catch(n){if(Oe.isError(n))return!1;throw n}}_getDefault(){let t=this.spec.default;return t==null?t:typeof t=="function"?t.call(this):Qt(t)}getDefault(t){return this.resolve(t||{})._getDefault()}default(t){return arguments.length===0?this._getDefault():this.clone({default:t})}strict(t=!0){let r=this.clone();return r.spec.strict=t,r}_isPresent(t){return t!=null}defined(t=Ue.defined){return this.test({message:t,name:"defined",exclusive:!0,test(r){return r!==void 0}})}required(t=Ue.required){return this.clone({presence:"required"}).withMutation(r=>r.test({message:t,name:"required",exclusive:!0,test(n){return this.schema._isPresent(n)}}))}notRequired(){let t=this.clone({presence:"optional"});return t.tests=t.tests.filter(r=>r.OPTIONS.name!=="required"),t}nullable(t=!0){return this.clone({nullable:t!==!1})}transform(t){let r=this.clone();return r.transforms.push(t),r}test(...t){let r;if(t.length===1?typeof t[0]=="function"?r={test:t[0]}:r=t[0]:t.length===2?r={name:t[0],test:t[1]}:r={name:t[0],message:t[1],test:t[2]},r.message===void 0&&(r.message=Ue.default),typeof r.test!="function")throw new TypeError("`test` is a required parameters");let n=this.clone(),i=vt(r),v=r.exclusive||r.name&&n.exclusiveTests[r.name]===!0;if(r.exclusive&&!r.name)throw new TypeError("Exclusive tests must provide a unique `name` identifying the test");return r.name&&(n.exclusiveTests[r.name]=!!r.exclusive),n.tests=n.tests.filter(m=>!(m.OPTIONS.name===r.name&&(v||m.OPTIONS.test===i.OPTIONS.test))),n.tests.push(i),n}when(t,r){!Array.isArray(t)&&typeof t!="string"&&(r=t,t=".");let n=this.clone(),i=ri(t).map(v=>new je(v));return i.forEach(v=>{v.isSibling&&n.deps.push(v.key)}),n.conditions.push(new xu(i,r)),n}typeError(t){let r=this.clone();return r._typeError=vt({message:t,name:"typeError",test(n){return n!==void 0&&!this.schema.isType(n)?this.createError({params:{type:this.schema._type}}):!0}}),r}oneOf(t,r=Ue.oneOf){let n=this.clone();return t.forEach(i=>{n._whitelist.add(i),n._blacklist.delete(i)}),n._whitelistError=vt({message:r,name:"oneOf",test(i){if(i===void 0)return!0;let v=this.schema._whitelist,m=v.resolveAll(this.resolve);return m.includes(i)?!0:this.createError({params:{values:v.toArray().join(", "),resolved:m}})}}),n}notOneOf(t,r=Ue.notOneOf){let n=this.clone();return t.forEach(i=>{n._blacklist.add(i),n._whitelist.delete(i)}),n._blacklistError=vt({message:r,name:"notOneOf",test(i){let v=this.schema._blacklist,m=v.resolveAll(this.resolve);return m.includes(i)?this.createError({params:{values:v.toArray().join(", "),resolved:m}}):!0}}),n}strip(t=!0){let r=this.clone();return r.spec.strip=t,r}describe(){const t=this.clone(),{label:r,meta:n}=t.spec;return{meta:n,label:r,type:t.type,oneOf:t._whitelist.describe(),notOneOf:t._blacklist.describe(),tests:t.tests.map(v=>({name:v.OPTIONS.name,params:v.OPTIONS.params})).filter((v,m,g)=>g.findIndex(_=>_.name===v.name)===m)}}}be.prototype.__isYupSchema__=!0;for(const e of["validate","validateSync"])be.prototype[`${e}At`]=function(t,r,n={}){const{parent:i,parentPath:v,schema:m}=Ip(this,t,r,n.context);return m[e](i&&i[v],we({},n,{parent:i,path:t}))};for(const e of["equals","is"])be.prototype[e]=be.prototype.oneOf;for(const e of["not","nope"])be.prototype[e]=be.prototype.notOneOf;be.prototype.optional=be.prototype.notRequired;const yi=be;function Mp(){return new yi}Mp.prototype=yi.prototype;const ve=e=>e==null;let jp=/^((([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,Bp=/^((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,Up=/^(?:[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,zp=e=>ve(e)||e===e.trim(),Vp={}.toString();function Hp(){return new gi}class gi extends be{constructor(){super({type:"string"}),this.withMutation(()=>{this.transform(function(t){if(this.isType(t)||Array.isArray(t))return t;const r=t!=null&&t.toString?t.toString():t;return r===Vp?t:r})})}_typeCheck(t){return t instanceof String&&(t=t.valueOf()),typeof t=="string"}_isPresent(t){return super._isPresent(t)&&!!t.length}length(t,r=ke.length){return this.test({message:r,name:"length",exclusive:!0,params:{length:t},test(n){return ve(n)||n.length===this.resolve(t)}})}min(t,r=ke.min){return this.test({message:r,name:"min",exclusive:!0,params:{min:t},test(n){return ve(n)||n.length>=this.resolve(t)}})}max(t,r=ke.max){return this.test({name:"max",exclusive:!0,message:r,params:{max:t},test(n){return ve(n)||n.length<=this.resolve(t)}})}matches(t,r){let n=!1,i,v;return r&&(typeof r=="object"?{excludeEmptyString:n=!1,message:i,name:v}=r:i=r),this.test({name:v||"matches",message:i||ke.matches,params:{regex:t},test:m=>ve(m)||m===""&&n||m.search(t)!==-1})}email(t=ke.email){return this.matches(jp,{name:"email",message:t,excludeEmptyString:!0})}url(t=ke.url){return this.matches(Bp,{name:"url",message:t,excludeEmptyString:!0})}uuid(t=ke.uuid){return this.matches(Up,{name:"uuid",message:t,excludeEmptyString:!1})}ensure(){return this.default("").transform(t=>t===null?"":t)}trim(t=ke.trim){return this.transform(r=>r!=null?r.trim():r).test({message:t,name:"trim",test:zp})}lowercase(t=ke.lowercase){return this.transform(r=>ve(r)?r:r.toLowerCase()).test({message:t,name:"string_case",exclusive:!0,test:r=>ve(r)||r===r.toLowerCase()})}uppercase(t=ke.uppercase){return this.transform(r=>ve(r)?r:r.toUpperCase()).test({message:t,name:"string_case",exclusive:!0,test:r=>ve(r)||r===r.toUpperCase()})}}Hp.prototype=gi.prototype;let Kp=e=>e!=+e;function Gp(){return new mi}class mi extends be{constructor(){super({type:"number"}),this.withMutation(()=>{this.transform(function(t){let r=t;if(typeof r=="string"){if(r=r.replace(/\s/g,""),r==="")return NaN;r=+r}return this.isType(r)?r:parseFloat(r)})})}_typeCheck(t){return t instanceof Number&&(t=t.valueOf()),typeof t=="number"&&!Kp(t)}min(t,r=Ie.min){return this.test({message:r,name:"min",exclusive:!0,params:{min:t},test(n){return ve(n)||n>=this.resolve(t)}})}max(t,r=Ie.max){return this.test({message:r,name:"max",exclusive:!0,params:{max:t},test(n){return ve(n)||n<=this.resolve(t)}})}lessThan(t,r=Ie.lessThan){return this.test({message:r,name:"max",exclusive:!0,params:{less:t},test(n){return ve(n)||n<this.resolve(t)}})}moreThan(t,r=Ie.moreThan){return this.test({message:r,name:"min",exclusive:!0,params:{more:t},test(n){return ve(n)||n>this.resolve(t)}})}positive(t=Ie.positive){return this.moreThan(0,t)}negative(t=Ie.negative){return this.lessThan(0,t)}integer(t=Ie.integer){return this.test({name:"integer",message:t,test:r=>ve(r)||Number.isInteger(r)})}truncate(){return this.transform(t=>ve(t)?t:t|0)}round(t){var r;let n=["ceil","floor","round","trunc"];if(t=((r=t)==null?void 0:r.toLowerCase())||"round",t==="trunc")return this.truncate();if(n.indexOf(t.toLowerCase())===-1)throw new TypeError("Only valid options for round() are: "+n.join(", "));return this.transform(i=>ve(i)?i:Math[t](i))}}Gp.prototype=mi.prototype;var Wp=/^(\d{4}|[+\-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,\.](\d{1,}))?)?(?:(Z)|([+\-])(\d{2})(?::?(\d{2}))?)?)?$/;function Zp(e){var t=[1,4,5,6,7,10,11],r=0,n,i;if(i=Wp.exec(e)){for(var v=0,m;m=t[v];++v)i[m]=+i[m]||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]==="")?n=+new Date(i[1],i[2],i[3],i[4],i[5],i[6],i[7]):(i[8]!=="Z"&&i[9]!==void 0&&(r=i[10]*60+i[11],i[9]==="+"&&(r=0-r)),n=Date.UTC(i[1],i[2],i[3],i[4],i[5]+r,i[6],i[7]))}else n=Date.parse?Date.parse(e):NaN;return n}let bi=new Date(""),Yp=e=>Object.prototype.toString.call(e)==="[object Date]";class _i extends be{constructor(){super({type:"date"}),this.withMutation(()=>{this.transform(function(t){return this.isType(t)?t:(t=Zp(t),isNaN(t)?bi:new Date(t))})})}_typeCheck(t){return Yp(t)&&!isNaN(t.getTime())}prepareParam(t,r){let n;if(je.isRef(t))n=t;else{let i=this.cast(t);if(!this._typeCheck(i))throw new TypeError(`\`${r}\` must be a Date or a value that can be \`cast()\` to a Date`);n=i}return n}min(t,r=Jt.min){let n=this.prepareParam(t,"min");return this.test({message:r,name:"min",exclusive:!0,params:{min:t},test(i){return ve(i)||i>=this.resolve(n)}})}max(t,r=Jt.max){let n=this.prepareParam(t,"max");return this.test({message:r,name:"max",exclusive:!0,params:{max:t},test(i){return ve(i)||i<=this.resolve(n)}})}}_i.INVALID_DATE=bi;_i.prototype;function Xp(e,t,r,n){var i=-1,v=e==null?0:e.length;for(n&&v&&(r=e[++i]);++i<v;)r=t(r,e[i],i,e);return r}var Qp=Xp;function Jp(e){return function(t){return e==null?void 0:e[t]}}var ev=Jp,tv=ev,rv={\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"},nv=tv(rv),iv=nv,ov=iv,av=ft,lv=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,sv="\\u0300-\\u036f",uv="\\ufe20-\\ufe2f",fv="\\u20d0-\\u20ff",cv=sv+uv+fv,dv="["+cv+"]",hv=RegExp(dv,"g");function pv(e){return e=av(e),e&&e.replace(lv,ov).replace(hv,"")}var vv=pv,yv=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function gv(e){return e.match(yv)||[]}var mv=gv,bv=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function _v(e){return bv.test(e)}var Ov=_v,Oi="\\ud800-\\udfff",Ev="\\u0300-\\u036f",wv="\\ufe20-\\ufe2f",xv="\\u20d0-\\u20ff",Av=Ev+wv+xv,Ei="\\u2700-\\u27bf",wi="a-z\\xdf-\\xf6\\xf8-\\xff",kv="\\xac\\xb1\\xd7\\xf7",Tv="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Sv="\\u2000-\\u206f",qv=" \\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",xi="A-Z\\xc0-\\xd6\\xd8-\\xde",Nv="\\ufe0e\\ufe0f",Ai=kv+Tv+Sv+qv,ki="['\u2019]",mn="["+Ai+"]",Pv="["+Av+"]",Ti="\\d+",Fv="["+Ei+"]",Si="["+wi+"]",qi="[^"+Oi+Ai+Ti+Ei+wi+xi+"]",Lv="\\ud83c[\\udffb-\\udfff]",Rv="(?:"+Pv+"|"+Lv+")",$v="[^"+Oi+"]",Ni="(?:\\ud83c[\\udde6-\\uddff]){2}",Pi="[\\ud800-\\udbff][\\udc00-\\udfff]",We="["+xi+"]",Dv="\\u200d",bn="(?:"+Si+"|"+qi+")",Cv="(?:"+We+"|"+qi+")",_n="(?:"+ki+"(?:d|ll|m|re|s|t|ve))?",On="(?:"+ki+"(?:D|LL|M|RE|S|T|VE))?",Fi=Rv+"?",Li="["+Nv+"]?",Iv="(?:"+Dv+"(?:"+[$v,Ni,Pi].join("|")+")"+Li+Fi+")*",Mv="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",jv="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Bv=Li+Fi+Iv,Uv="(?:"+[Fv,Ni,Pi].join("|")+")"+Bv,zv=RegExp([We+"?"+Si+"+"+_n+"(?="+[mn,We,"$"].join("|")+")",Cv+"+"+On+"(?="+[mn,We+bn,"$"].join("|")+")",We+"?"+bn+"+"+_n,We+"+"+On,jv,Mv,Ti,Uv].join("|"),"g");function Vv(e){return e.match(zv)||[]}var Hv=Vv,Kv=mv,Gv=Ov,Wv=ft,Zv=Hv;function Yv(e,t,r){return e=Wv(e),t=r?void 0:t,t===void 0?Gv(e)?Zv(e):Kv(e):e.match(t)||[]}var Xv=Yv,Qv=Qp,Jv=vv,ey=Xv,ty="['\u2019]",ry=RegExp(ty,"g");function ny(e){return function(t){return Qv(ey(Jv(t).replace(ry,"")),e,"")}}var Ri=ny,iy=Ri,oy=iy(function(e,t,r){return e+(r?"_":"")+t.toLowerCase()}),En=oy;function ay(e,t,r){var n=-1,i=e.length;t<0&&(t=-t>i?0:i+t),r=r>i?i:r,r<0&&(r+=i),i=t>r?0:r-t>>>0,t>>>=0;for(var v=Array(i);++n<i;)v[n]=e[n+t];return v}var ly=ay,sy=ly;function uy(e,t,r){var n=e.length;return r=r===void 0?n:r,!t&&r>=n?e:sy(e,t,r)}var fy=uy,cy="\\ud800-\\udfff",dy="\\u0300-\\u036f",hy="\\ufe20-\\ufe2f",py="\\u20d0-\\u20ff",vy=dy+hy+py,yy="\\ufe0e\\ufe0f",gy="\\u200d",my=RegExp("["+gy+cy+vy+yy+"]");function by(e){return my.test(e)}var $i=by;function _y(e){return e.split("")}var Oy=_y,Di="\\ud800-\\udfff",Ey="\\u0300-\\u036f",wy="\\ufe20-\\ufe2f",xy="\\u20d0-\\u20ff",Ay=Ey+wy+xy,ky="\\ufe0e\\ufe0f",Ty="["+Di+"]",fr="["+Ay+"]",cr="\\ud83c[\\udffb-\\udfff]",Sy="(?:"+fr+"|"+cr+")",Ci="[^"+Di+"]",Ii="(?:\\ud83c[\\udde6-\\uddff]){2}",Mi="[\\ud800-\\udbff][\\udc00-\\udfff]",qy="\\u200d",ji=Sy+"?",Bi="["+ky+"]?",Ny="(?:"+qy+"(?:"+[Ci,Ii,Mi].join("|")+")"+Bi+ji+")*",Py=Bi+ji+Ny,Fy="(?:"+[Ci+fr+"?",fr,Ii,Mi,Ty].join("|")+")",Ly=RegExp(cr+"(?="+cr+")|"+Fy+Py,"g");function Ry(e){return e.match(Ly)||[]}var $y=Ry,Dy=Oy,Cy=$i,Iy=$y;function My(e){return Cy(e)?Iy(e):Dy(e)}var jy=My,By=fy,Uy=$i,zy=jy,Vy=ft;function Hy(e){return function(t){t=Vy(t);var r=Uy(t)?zy(t):void 0,n=r?r[0]:t.charAt(0),i=r?By(r,1).join(""):t.slice(1);return n[e]()+i}}var Ky=Hy,Gy=Ky,Wy=Gy("toUpperCase"),Zy=Wy,Yy=ft,Xy=Zy;function Qy(e){return Xy(Yy(e).toLowerCase())}var Jy=Qy,eg=Jy,tg=Ri,rg=tg(function(e,t,r){return t=t.toLowerCase(),e+(r?eg(t):t)}),ng=rg,ig=ni,og=oi,ag=hi;function lg(e,t){var r={};return t=ag(t),og(e,function(n,i,v){ig(r,t(n,i,v),n)}),r}var sg=lg,kr={exports:{}};kr.exports=function(e){return Ui(ug(e),e)};kr.exports.array=Ui;function Ui(e,t){var r=e.length,n=new Array(r),i={},v=r,m=fg(t),g=cg(e);for(t.forEach(function(u){if(!g.has(u[0])||!g.has(u[1]))throw new Error("Unknown node. There is an unknown node in the supplied edges.")});v--;)i[v]||_(e[v],v,new Set);return n;function _(u,s,l){if(l.has(u)){var o;try{o=", node was:"+JSON.stringify(u)}catch{o=""}throw new Error("Cyclic dependency"+o)}if(!g.has(u))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(u));if(!i[s]){i[s]=!0;var a=m.get(u)||new Set;if(a=Array.from(a),s=a.length){l.add(u);do{var p=a[--s];_(p,g.get(p),l)}while(s);l.delete(u)}n[--r]=u}}}function ug(e){for(var t=new Set,r=0,n=e.length;r<n;r++){var i=e[r];t.add(i[0]),t.add(i[1])}return Array.from(t)}function fg(e){for(var t=new Map,r=0,n=e.length;r<n;r++){var i=e[r];t.has(i[0])||t.set(i[0],new Set),t.has(i[1])||t.set(i[1],new Set),t.get(i[0]).add(i[1])}return t}function cg(e){for(var t=new Map,r=0,n=e.length;r<n;r++)t.set(e[r],r);return t}function dg(e,t=[]){let r=[],n=new Set,i=new Set(t.map(([m,g])=>`${m}-${g}`));function v(m,g){let _=Dt.split(m)[0];n.add(_),i.has(`${g}-${_}`)||r.push([g,_])}for(const m in e)if(mt(e,m)){let g=e[m];n.add(m),je.isRef(g)&&g.isSibling?v(g.path,m):ti(g)&&"deps"in g&&g.deps.forEach(_=>v(_,m))}return kr.exports.array(Array.from(n),r).reverse()}function wn(e,t){let r=1/0;return e.some((n,i)=>{var v;if(((v=t.path)==null?void 0:v.indexOf(n))!==-1)return r=i,!0}),r}function zi(e){return(t,r)=>wn(e,t)-wn(e,r)}function Ze(){return Ze=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ze.apply(this,arguments)}let xn=e=>Object.prototype.toString.call(e)==="[object Object]";function hg(e,t){let r=Object.keys(e.fields);return Object.keys(t).filter(n=>r.indexOf(n)===-1)}const pg=zi([]);class Vi extends be{constructor(t){super({type:"object"}),this.fields=Object.create(null),this._sortErrors=pg,this._nodes=[],this._excludedEdges=[],this.withMutation(()=>{this.transform(function(n){if(typeof n=="string")try{n=JSON.parse(n)}catch{n=null}return this.isType(n)?n:null}),t&&this.shape(t)})}_typeCheck(t){return xn(t)||typeof t=="function"}_cast(t,r={}){var n;let i=super._cast(t,r);if(i===void 0)return this.getDefault();if(!this._typeCheck(i))return i;let v=this.fields,m=(n=r.stripUnknown)!=null?n:this.spec.noUnknown,g=this._nodes.concat(Object.keys(i).filter(l=>this._nodes.indexOf(l)===-1)),_={},u=Ze({},r,{parent:_,__validating:r.__validating||!1}),s=!1;for(const l of g){let o=v[l],a=mt(i,l);if(o){let p,c=i[l];u.path=(r.path?`${r.path}.`:"")+l,o=o.resolve({value:c,context:r.context,parent:_});let y="spec"in o?o.spec:void 0,d=y==null?void 0:y.strict;if(y!=null&&y.strip){s=s||l in i;continue}p=!r.__validating||!d?o.cast(i[l],u):i[l],p!==void 0&&(_[l]=p)}else a&&!m&&(_[l]=i[l]);_[l]!==i[l]&&(s=!0)}return s?_:i}_validate(t,r={},n){let i=[],{sync:v,from:m=[],originalValue:g=t,abortEarly:_=this.spec.abortEarly,recursive:u=this.spec.recursive}=r;m=[{schema:this,value:g},...m],r.__validating=!0,r.originalValue=g,r.from=m,super._validate(t,r,(s,l)=>{if(s){if(!Oe.isError(s)||_)return void n(s,l);i.push(s)}if(!u||!xn(l)){n(i[0]||null,l);return}g=g||l;let o=this._nodes.map(a=>(p,c)=>{let y=a.indexOf(".")===-1?(r.path?`${r.path}.`:"")+a:`${r.path||""}["${a}"]`,d=this.fields[a];if(d&&"validate"in d){d.validate(l[a],Ze({},r,{path:y,from:m,strict:!0,parent:l,originalValue:g[a]}),c);return}c(null)});rr({sync:v,tests:o,value:l,errors:i,endEarly:_,sort:this._sortErrors,path:r.path},n)})}clone(t){const r=super.clone(t);return r.fields=Ze({},this.fields),r._nodes=this._nodes,r._excludedEdges=this._excludedEdges,r._sortErrors=this._sortErrors,r}concat(t){let r=super.concat(t),n=r.fields;for(let[i,v]of Object.entries(this.fields)){const m=n[i];m===void 0?n[i]=v:m instanceof be&&v instanceof be&&(n[i]=v.concat(m))}return r.withMutation(()=>r.shape(n,this._excludedEdges))}getDefaultFromShape(){let t={};return this._nodes.forEach(r=>{const n=this.fields[r];t[r]="default"in n?n.getDefault():void 0}),t}_getDefault(){if("default"in this.spec)return super._getDefault();if(!!this._nodes.length)return this.getDefaultFromShape()}shape(t,r=[]){let n=this.clone(),i=Object.assign(n.fields,t);return n.fields=i,n._sortErrors=zi(Object.keys(i)),r.length&&(Array.isArray(r[0])||(r=[r]),n._excludedEdges=[...n._excludedEdges,...r]),n._nodes=dg(i,n._excludedEdges),n}pick(t){const r={};for(const n of t)this.fields[n]&&(r[n]=this.fields[n]);return this.clone().withMutation(n=>(n.fields={},n.shape(r)))}omit(t){const r=this.clone(),n=r.fields;r.fields={};for(const i of t)delete n[i];return r.withMutation(()=>r.shape(n))}from(t,r,n){let i=Dt.getter(t,!0);return this.transform(v=>{if(v==null)return v;let m=v;return mt(v,t)&&(m=Ze({},v),n||delete m[t],m[r]=i(v)),m})}noUnknown(t=!0,r=er.noUnknown){typeof t=="string"&&(r=t,t=!0);let n=this.test({name:"noUnknown",exclusive:!0,message:r,test(i){if(i==null)return!0;const v=hg(this.schema,i);return!t||v.length===0||this.createError({params:{unknown:v.join(", ")}})}});return n.spec.noUnknown=t,n}unknown(t=!0,r=er.noUnknown){return this.noUnknown(!t,r)}transformKeys(t){return this.transform(r=>r&&sg(r,(n,i)=>t(i)))}camelCase(){return this.transformKeys(ng)}snakeCase(){return this.transformKeys(En)}constantCase(){return this.transformKeys(t=>En(t).toUpperCase())}describe(){let t=super.describe();return t.fields=pi(this.fields,r=>r.describe()),t}}function vg(e){return new Vi(e)}vg.prototype=Vi.prototype;var ct=e=>e.type==="checkbox",Ye=e=>e instanceof Date,ge=e=>e==null;const Hi=e=>typeof e=="object";var ye=e=>!ge(e)&&!Array.isArray(e)&&Hi(e)&&!Ye(e),Ki=e=>ye(e)&&e.target?ct(e.target)?e.target.checked:e.target.value:e,yg=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,Gi=(e,t)=>e.has(yg(t)),dt=e=>Array.isArray(e)?e.filter(Boolean):[],he=e=>e===void 0,re=(e,t,r)=>{if(!t||!ye(e))return r;const n=dt(t.split(/[,[\].]+?/)).reduce((i,v)=>ge(i)?i:i[v],e);return he(n)||n===e?he(e[t])?r:e[t]:n};const wt={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},Te={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},Le={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},Wi=ce.createContext(null),Ct=()=>ce.useContext(Wi),gg=e=>{const{children:t,...r}=e;return ce.createElement(Wi.Provider,{value:r},t)};var Zi=(e,t,r,n=!0)=>{const i={};for(const v in e)Object.defineProperty(i,v,{get:()=>{const m=v;return t[m]!==Te.all&&(t[m]=!n||Te.all),r&&(r[m]=!0),e[m]}});return i},xe=e=>ye(e)&&!Object.keys(e).length,Yi=(e,t,r)=>{const{name:n,...i}=e;return xe(i)||Object.keys(i).length>=Object.keys(t).length||Object.keys(i).find(v=>t[v]===(!r||Te.all))},yt=e=>Array.isArray(e)?e:[e],Xi=(e,t,r)=>r&&t?e===t:!e||!t||e===t||yt(e).some(n=>n&&(n.startsWith(t)||t.startsWith(n)));function Tr(e){const t=ce.useRef(e);t.current=e,ce.useEffect(()=>{const r=i=>{i&&i.unsubscribe()},n=!e.disabled&&t.current.subject.subscribe({next:t.current.callback});return()=>r(n)},[e.disabled])}function mg(e){const t=Ct(),{control:r=t.control,disabled:n,name:i,exact:v}=e||{},[m,g]=ce.useState(r._formState),_=ce.useRef({isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1}),u=ce.useRef(i),s=ce.useRef(!0);u.current=i;const l=ce.useCallback(o=>s.current&&Xi(u.current,o.name,v)&&Yi(o,_.current)&&g({...r._formState,...o}),[r,v]);return Tr({disabled:n,callback:l,subject:r._subjects.state}),ce.useEffect(()=>(s.current=!0,()=>{s.current=!1}),[]),Zi(m,r._proxyFormState,_.current,!1)}var Ne=e=>typeof e=="string",Qi=(e,t,r,n)=>{const i=Array.isArray(e);return Ne(e)?(n&&t.watch.add(e),re(r,e)):i?e.map(v=>(n&&t.watch.add(v),re(r,v))):(n&&(t.watchAll=!0),r)},It=e=>typeof e=="function",Sr=e=>{for(const t in e)if(It(e[t]))return!0;return!1};function bg(e){const t=Ct(),{control:r=t.control,name:n,defaultValue:i,disabled:v,exact:m}=e||{},g=ce.useRef(n);g.current=n;const _=ce.useCallback(l=>{if(Xi(g.current,l.name,m)){const o=Qi(g.current,r._names,l.values||r._formValues);s(he(g.current)||ye(o)&&!Sr(o)?{...o}:Array.isArray(o)?[...o]:he(o)?i:o)}},[r,m,i]);Tr({disabled:v,subject:r._subjects.watch,callback:_});const[u,s]=ce.useState(he(i)?r._getWatch(n):i);return ce.useEffect(()=>{r._removeUnmounted()}),u}function _g(e){const t=Ct(),{name:r,control:n=t.control,shouldUnregister:i}=e,v=Gi(n._names.array,r),m=bg({control:n,name:r,defaultValue:re(n._formValues,r,re(n._defaultValues,r,e.defaultValue)),exact:!0}),g=mg({control:n,name:r}),_=ce.useRef(n.register(r,{...e.rules,value:m}));return ce.useEffect(()=>{const u=(s,l)=>{const o=re(n._fields,s);o&&(o._f.mount=l)};return u(r,!0),()=>{const s=n._options.shouldUnregister||i;(v?s&&!n._stateFlags.action:s)?n.unregister(r):u(r,!1)}},[r,n,v,i]),{field:{name:r,value:m,onChange:ce.useCallback(u=>{_.current.onChange({target:{value:Ki(u),name:r},type:wt.CHANGE})},[r]),onBlur:ce.useCallback(()=>{_.current.onBlur({target:{value:re(n._formValues,r),name:r},type:wt.BLUR})},[r,n]),ref:ce.useCallback(u=>{const s=re(n._fields,r);u&&s&&u.focus&&(s._f.ref={focus:()=>u.focus(),select:()=>u.select(),setCustomValidity:l=>u.setCustomValidity(l),reportValidity:()=>u.reportValidity()})},[r,n._fields])},formState:g,fieldState:Object.defineProperties({},{invalid:{get:()=>!!re(g.errors,r)},isDirty:{get:()=>!!re(g.dirtyFields,r)},isTouched:{get:()=>!!re(g.touchedFields,r)},error:{get:()=>re(g.errors,r)}})}}const Og=e=>e.render(_g(e));var Ji=(e,t,r,n,i)=>t?{...r[e],types:{...r[e]&&r[e].types?r[e].types:{},[n]:i||!0}}:{},qr=e=>/^\w*$/.test(e),eo=e=>dt(e.replace(/["|']|\]/g,"").split(/\.|\[/));function ue(e,t,r){let n=-1;const i=qr(t)?[t]:eo(t),v=i.length,m=v-1;for(;++n<v;){const g=i[n];let _=r;if(n!==m){const u=e[g];_=ye(u)||Array.isArray(u)?u:isNaN(+i[n+1])?{}:[]}e[g]=_,e=e[g]}return e}const dr=(e,t,r)=>{for(const n of r||Object.keys(e)){const i=re(e,n);if(i){const{_f:v,...m}=i;if(v&&t(v.name)){if(v.ref.focus&&he(v.ref.focus()))break;if(v.refs){v.refs[0].focus();break}}else ye(m)&&dr(m,t)}}};var An=(e,t,r)=>!r&&(t.watchAll||t.watch.has(e)||[...t.watch].some(n=>e.startsWith(n)&&/^\.\w+/.test(e.slice(n.length)))),Eg=(e,t,r)=>{const n=dt(re(e,r));return ue(n,"root",t[r]),ue(e,r,n),e},xt=e=>typeof e=="boolean",Nr=e=>e.type==="file",gt=e=>Ne(e)||ce.isValidElement(e),Pr=e=>e.type==="radio",At=e=>e instanceof RegExp;const kn={value:!1,isValid:!1},Tn={value:!0,isValid:!0};var to=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(r=>r&&r.checked&&!r.disabled).map(r=>r.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!he(e[0].attributes.value)?he(e[0].value)||e[0].value===""?Tn:{value:e[0].value,isValid:!0}:Tn:kn}return kn};const Sn={isValid:!1,value:null};var ro=e=>Array.isArray(e)?e.reduce((t,r)=>r&&r.checked&&!r.disabled?{isValid:!0,value:r.value}:t,Sn):Sn;function qn(e,t,r="validate"){if(gt(e)||Array.isArray(e)&&e.every(gt)||xt(e)&&!e)return{type:r,message:gt(e)?e:"",ref:t}}var Ge=e=>ye(e)&&!At(e)?e:{value:e,message:""},Nn=async(e,t,r,n,i)=>{const{ref:v,refs:m,required:g,maxLength:_,minLength:u,min:s,max:l,pattern:o,validate:a,name:p,valueAsNumber:c,mount:y,disabled:d}=e._f;if(!y||d)return{};const h=m?m[0]:v,b=E=>{n&&h.reportValidity&&(h.setCustomValidity(xt(E)?"":E||" "),h.reportValidity())},f={},O=Pr(v),S=ct(v),A=O||S,k=(c||Nr(v))&&!v.value||t===""||Array.isArray(t)&&!t.length,N=Ji.bind(null,p,r,f),x=(E,w,T,P=Le.maxLength,$=Le.minLength)=>{const B=E?w:T;f[p]={type:E?P:$,message:B,ref:v,...N(E?P:$,B)}};if(i?!Array.isArray(t)||!t.length:g&&(!A&&(k||ge(t))||xt(t)&&!t||S&&!to(m).isValid||O&&!ro(m).isValid)){const{value:E,message:w}=gt(g)?{value:!!g,message:g}:Ge(g);if(E&&(f[p]={type:Le.required,message:w,ref:h,...N(Le.required,w)},!r))return b(w),f}if(!k&&(!ge(s)||!ge(l))){let E,w;const T=Ge(l),P=Ge(s);if(!ge(t)&&!isNaN(t)){const $=v.valueAsNumber||+t;ge(T.value)||(E=$>T.value),ge(P.value)||(w=$<P.value)}else{const $=v.valueAsDate||new Date(t);Ne(T.value)&&(E=$>new Date(T.value)),Ne(P.value)&&(w=$<new Date(P.value))}if((E||w)&&(x(!!E,T.message,P.message,Le.max,Le.min),!r))return b(f[p].message),f}if((_||u)&&!k&&(Ne(t)||i&&Array.isArray(t))){const E=Ge(_),w=Ge(u),T=!ge(E.value)&&t.length>E.value,P=!ge(w.value)&&t.length<w.value;if((T||P)&&(x(T,E.message,w.message),!r))return b(f[p].message),f}if(o&&!k&&Ne(t)){const{value:E,message:w}=Ge(o);if(At(E)&&!t.match(E)&&(f[p]={type:Le.pattern,message:w,ref:v,...N(Le.pattern,w)},!r))return b(w),f}if(a){if(It(a)){const E=await a(t),w=qn(E,h);if(w&&(f[p]={...w,...N(Le.validate,w.message)},!r))return b(w.message),f}else if(ye(a)){let E={};for(const w in a){if(!xe(E)&&!r)break;const T=qn(await a[w](t),h,w);T&&(E={...T,...N(w,T.message)},b(T.message),r&&(f[p]=E))}if(!xe(E)&&(f[p]={ref:h,...E},!r))return f}}return b(!0),f},hr=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Ve(e){let t;const r=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!(hr&&(e instanceof Blob||e instanceof FileList))&&(r||ye(e))){t=r?[]:{};for(const n in e){if(It(e[n])){t=e;break}t[n]=Ve(e[n])}}else return e;return t}var Pn=e=>({isOnSubmit:!e||e===Te.onSubmit,isOnBlur:e===Te.onBlur,isOnChange:e===Te.onChange,isOnAll:e===Te.all,isOnTouch:e===Te.onTouched});function wg(e,t){const r=t.slice(0,-1).length;let n=0;for(;n<r;)e=he(e)?n++:e[t[n++]];return e}function xg(e){for(const t in e)if(!he(e[t]))return!1;return!0}function me(e,t){const r=qr(t)?[t]:eo(t),n=r.length==1?e:wg(e,r),i=r[r.length-1];let v;n&&delete n[i];for(let m=0;m<r.slice(0,-1).length;m++){let g=-1,_;const u=r.slice(0,-(m+1)),s=u.length-1;for(m>0&&(v=e);++g<u.length;){const l=u[g];_=_?_[l]:e[l],s===g&&(ye(_)&&xe(_)||Array.isArray(_)&&xg(_))&&(v?delete v[l]:delete e[l]),v=_}}return e}function Kt(){let e=[];return{get observers(){return e},next:i=>{for(const v of e)v.next(i)},subscribe:i=>(e.push(i),{unsubscribe:()=>{e=e.filter(v=>v!==i)}}),unsubscribe:()=>{e=[]}}}var kt=e=>ge(e)||!Hi(e);function Xe(e,t){if(kt(e)||kt(t))return e===t;if(Ye(e)&&Ye(t))return e.getTime()===t.getTime();const r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(const i of r){const v=e[i];if(!n.includes(i))return!1;if(i!=="ref"){const m=t[i];if(Ye(v)&&Ye(m)||ye(v)&&ye(m)||Array.isArray(v)&&Array.isArray(m)?!Xe(v,m):v!==m)return!1}}return!0}var pr=e=>{const t=e?e.ownerDocument:0,r=t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement;return e instanceof r},no=e=>e.type==="select-multiple",Ag=e=>Pr(e)||ct(e),Gt=e=>pr(e)&&e.isConnected;function Tt(e,t={}){const r=Array.isArray(e);if(ye(e)||r)for(const n in e)Array.isArray(e[n])||ye(e[n])&&!Sr(e[n])?(t[n]=Array.isArray(e[n])?[]:{},Tt(e[n],t[n])):ge(e[n])||(t[n]=!0);return t}function io(e,t,r){const n=Array.isArray(e);if(ye(e)||n)for(const i in e)Array.isArray(e[i])||ye(e[i])&&!Sr(e[i])?he(t)||kt(r[i])?r[i]=Array.isArray(e[i])?Tt(e[i],[]):{...Tt(e[i])}:io(e[i],ge(t)?{}:t[i],r[i]):r[i]=!Xe(e[i],t[i]);return r}var Wt=(e,t)=>io(e,t,Tt(t)),oo=(e,{valueAsNumber:t,valueAsDate:r,setValueAs:n})=>he(e)?e:t?e===""||ge(e)?NaN:+e:r&&Ne(e)?new Date(e):n?n(e):e;function Zt(e){const t=e.ref;if(!(e.refs?e.refs.every(r=>r.disabled):t.disabled))return Nr(t)?t.files:Pr(t)?ro(e.refs).value:no(t)?[...t.selectedOptions].map(({value:r})=>r):ct(t)?to(e.refs).value:oo(he(t.value)?e.ref.value:t.value,e)}var kg=(e,t,r,n)=>{const i={};for(const v of e){const m=re(t,v);m&&ue(i,v,m._f)}return{criteriaMode:r,names:[...e],fields:i,shouldUseNativeValidation:n}},it=e=>he(e)?void 0:At(e)?e.source:ye(e)?At(e.value)?e.value.source:e.value:e,Tg=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function Fn(e,t,r){const n=re(e,r);if(n||qr(r))return{error:n,name:r};const i=r.split(".");for(;i.length;){const v=i.join("."),m=re(t,v),g=re(e,v);if(m&&!Array.isArray(m)&&r!==v)return{name:r};if(g&&g.type)return{name:v,error:g};i.pop()}return{name:r}}var Sg=(e,t,r,n,i)=>i.isOnAll?!1:!r&&i.isOnTouch?!(t||e):(r?n.isOnBlur:i.isOnBlur)?!e:(r?n.isOnChange:i.isOnChange)?e:!0,qg=(e,t)=>!dt(re(e,t)).length&&me(e,t);const Ng={mode:Te.onSubmit,reValidateMode:Te.onChange,shouldFocusError:!0};function Pg(e={}){let t={...Ng,...e},r={isDirty:!1,isValidating:!1,dirtyFields:{},isSubmitted:!1,submitCount:0,touchedFields:{},isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,errors:{}},n={},i=Ve(t.defaultValues)||{},v=t.shouldUnregister?{}:Ve(i),m={action:!1,mount:!1,watch:!1},g={mount:new Set,unMount:new Set,array:new Set,watch:new Set},_,u=0,s={};const l={isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},o={watch:Kt(),array:Kt(),state:Kt()},a=Pn(t.mode),p=Pn(t.reValidateMode),c=t.criteriaMode===Te.all,y=F=>M=>{clearTimeout(u),u=window.setTimeout(F,M)},d=async F=>{let M=!1;return l.isValid&&(M=t.resolver?xe((await A()).errors):await N(n,!0),!F&&M!==r.isValid&&(r.isValid=M,o.state.next({isValid:M}))),M},h=(F,M=[],H,X,ee=!0,Z=!0)=>{if(X&&H){if(m.action=!0,Z&&Array.isArray(re(n,F))){const ne=H(re(n,F),X.argA,X.argB);ee&&ue(n,F,ne)}if(l.errors&&Z&&Array.isArray(re(r.errors,F))){const ne=H(re(r.errors,F),X.argA,X.argB);ee&&ue(r.errors,F,ne),qg(r.errors,F)}if(l.touchedFields&&Z&&Array.isArray(re(r.touchedFields,F))){const ne=H(re(r.touchedFields,F),X.argA,X.argB);ee&&ue(r.touchedFields,F,ne)}l.dirtyFields&&(r.dirtyFields=Wt(i,v)),o.state.next({isDirty:E(F,M),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else ue(v,F,M)},b=(F,M)=>{ue(r.errors,F,M),o.state.next({errors:r.errors})},f=(F,M,H,X)=>{const ee=re(n,F);if(ee){const Z=re(v,F,he(H)?re(i,F):H);he(Z)||X&&X.defaultChecked||M?ue(v,F,M?Z:Zt(ee._f)):P(F,Z),m.mount&&d()}},O=(F,M,H,X,ee)=>{let Z=!1;const ne={name:F},ae=re(r.touchedFields,F);if(l.isDirty){const W=r.isDirty;r.isDirty=ne.isDirty=E(),Z=W!==ne.isDirty}if(l.dirtyFields&&(!H||X)){const W=re(r.dirtyFields,F);Xe(re(i,F),M)?me(r.dirtyFields,F):ue(r.dirtyFields,F,!0),ne.dirtyFields=r.dirtyFields,Z=Z||W!==re(r.dirtyFields,F)}return H&&!ae&&(ue(r.touchedFields,F,H),ne.touchedFields=r.touchedFields,Z=Z||l.touchedFields&&ae!==H),Z&&ee&&o.state.next(ne),Z?ne:{}},S=async(F,M,H,X)=>{const ee=re(r.errors,F),Z=l.isValid&&r.isValid!==M;if(e.delayError&&H?(_=y(()=>b(F,H)),_(e.delayError)):(clearTimeout(u),_=null,H?ue(r.errors,F,H):me(r.errors,F)),(H?!Xe(ee,H):ee)||!xe(X)||Z){const ne={...X,...Z?{isValid:M}:{},errors:r.errors,name:F};r={...r,...ne},o.state.next(ne)}s[F]--,l.isValidating&&!Object.values(s).some(ne=>ne)&&(o.state.next({isValidating:!1}),s={})},A=async F=>t.resolver?await t.resolver({...v},t.context,kg(F||g.mount,n,t.criteriaMode,t.shouldUseNativeValidation)):{},k=async F=>{const{errors:M}=await A();if(F)for(const H of F){const X=re(M,H);X?ue(r.errors,H,X):me(r.errors,H)}else r.errors=M;return M},N=async(F,M,H={valid:!0})=>{for(const X in F){const ee=F[X];if(ee){const{_f:Z,...ne}=ee;if(Z){const ae=g.array.has(Z.name),W=await Nn(ee,re(v,Z.name),c,t.shouldUseNativeValidation,ae);if(W[Z.name]&&(H.valid=!1,M))break;!M&&(re(W,Z.name)?ae?Eg(r.errors,W,Z.name):ue(r.errors,Z.name,W[Z.name]):me(r.errors,Z.name))}ne&&await N(ne,M,H)}}return H.valid},x=()=>{for(const F of g.unMount){const M=re(n,F);M&&(M._f.refs?M._f.refs.every(H=>!Gt(H)):!Gt(M._f.ref))&&z(F)}g.unMount=new Set},E=(F,M)=>(F&&M&&ue(v,F,M),!Xe(j(),i)),w=(F,M,H)=>{const X={...m.mount?v:he(M)?i:Ne(F)?{[F]:M}:M};return Qi(F,g,X,H)},T=F=>dt(re(m.mount?v:i,F,e.shouldUnregister?re(i,F,[]):[])),P=(F,M,H={})=>{const X=re(n,F);let ee=M;if(X){const Z=X._f;Z&&(!Z.disabled&&ue(v,F,oo(M,Z)),ee=hr&&pr(Z.ref)&&ge(M)?"":M,no(Z.ref)?[...Z.ref.options].forEach(ne=>ne.selected=ee.includes(ne.value)):Z.refs?ct(Z.ref)?Z.refs.length>1?Z.refs.forEach(ne=>!ne.disabled&&(ne.checked=Array.isArray(ee)?!!ee.find(ae=>ae===ne.value):ee===ne.value)):Z.refs[0]&&(Z.refs[0].checked=!!ee):Z.refs.forEach(ne=>ne.checked=ne.value===ee):Nr(Z.ref)?Z.ref.value="":(Z.ref.value=ee,Z.ref.type||o.watch.next({name:F})))}(H.shouldDirty||H.shouldTouch)&&O(F,ee,H.shouldTouch,H.shouldDirty,!0),H.shouldValidate&&Q(F)},$=(F,M,H)=>{for(const X in M){const ee=M[X],Z=`${F}.${X}`,ne=re(n,Z);(g.array.has(F)||!kt(ee)||ne&&!ne._f)&&!Ye(ee)?$(Z,ee,H):P(Z,ee,H)}},B=(F,M,H={})=>{const X=re(n,F),ee=g.array.has(F),Z=Ve(M);ue(v,F,Z),ee?(o.array.next({name:F,values:v}),(l.isDirty||l.dirtyFields)&&H.shouldDirty&&(r.dirtyFields=Wt(i,v),o.state.next({name:F,dirtyFields:r.dirtyFields,isDirty:E(F,Z)}))):X&&!X._f&&!ge(Z)?$(F,Z,H):P(F,Z,H),An(F,g)&&o.state.next({}),o.watch.next({name:F})},V=async F=>{const M=F.target;let H=M.name;const X=re(n,H);if(X){let ee,Z;const ne=M.type?Zt(X._f):Ki(F),ae=F.type===wt.BLUR||F.type===wt.FOCUS_OUT,W=!Tg(X._f)&&!t.resolver&&!re(r.errors,H)&&!X._f.deps||Sg(ae,re(r.touchedFields,H),r.isSubmitted,p,a),Y=An(H,g,ae);ue(v,H,ne),ae?(X._f.onBlur&&X._f.onBlur(F),_&&_(0)):X._f.onChange&&X._f.onChange(F);const te=O(H,ne,ae,!1),ie=!xe(te)||Y;if(!ae&&o.watch.next({name:H,type:F.type}),W)return ie&&o.state.next({name:H,...Y?{}:te});if(!ae&&Y&&o.state.next({}),s[H]=(s[H],1),o.state.next({isValidating:!0}),t.resolver){const{errors:J}=await A([H]),le=Fn(r.errors,n,H),oe=Fn(J,n,le.name||H);ee=oe.error,H=oe.name,Z=xe(J)}else ee=(await Nn(X,re(v,H),c,t.shouldUseNativeValidation))[H],Z=await d(!0);X._f.deps&&Q(X._f.deps),S(H,Z,ee,te)}},Q=async(F,M={})=>{let H,X;const ee=yt(F);if(o.state.next({isValidating:!0}),t.resolver){const Z=await k(he(F)?F:ee);H=xe(Z),X=F?!ee.some(ne=>re(Z,ne)):H}else F?(X=(await Promise.all(ee.map(async Z=>{const ne=re(n,Z);return await N(ne&&ne._f?{[Z]:ne}:ne)}))).every(Boolean),!(!X&&!r.isValid)&&d()):X=H=await N(n);return o.state.next({...!Ne(F)||l.isValid&&H!==r.isValid?{}:{name:F},...t.resolver?{isValid:H}:{},errors:r.errors,isValidating:!1}),M.shouldFocus&&!X&&dr(n,Z=>re(r.errors,Z),F?ee:g.mount),X},j=F=>{const M={...i,...m.mount?v:{}};return he(F)?M:Ne(F)?re(M,F):F.map(H=>re(M,H))},C=(F,M)=>({invalid:!!re((M||r).errors,F),isDirty:!!re((M||r).dirtyFields,F),isTouched:!!re((M||r).touchedFields,F),error:re((M||r).errors,F)}),q=F=>{F?yt(F).forEach(M=>me(r.errors,M)):r.errors={},o.state.next({errors:r.errors})},R=(F,M,H)=>{const X=(re(n,F,{_f:{}})._f||{}).ref;ue(r.errors,F,{...M,ref:X}),o.state.next({name:F,errors:r.errors,isValid:!1}),H&&H.shouldFocus&&X&&X.focus&&X.focus()},D=(F,M)=>It(F)?o.watch.subscribe({next:H=>F(w(void 0,M),H)}):w(F,M,!0),z=(F,M={})=>{for(const H of F?yt(F):g.mount)g.mount.delete(H),g.array.delete(H),re(n,H)&&(M.keepValue||(me(n,H),me(v,H)),!M.keepError&&me(r.errors,H),!M.keepDirty&&me(r.dirtyFields,H),!M.keepTouched&&me(r.touchedFields,H),!t.shouldUnregister&&!M.keepDefaultValue&&me(i,H));o.watch.next({}),o.state.next({...r,...M.keepDirty?{isDirty:E()}:{}}),!M.keepIsValid&&d()},U=(F,M={})=>{let H=re(n,F);const X=xt(M.disabled);return ue(n,F,{_f:{...H&&H._f?H._f:{ref:{name:F}},name:F,mount:!0,...M}}),g.mount.add(F),H?X&&ue(v,F,M.disabled?void 0:re(v,F,Zt(H._f))):f(F,!0,M.value),{...X?{disabled:M.disabled}:{},...t.shouldUseNativeValidation?{required:!!M.required,min:it(M.min),max:it(M.max),minLength:it(M.minLength),maxLength:it(M.maxLength),pattern:it(M.pattern)}:{},name:F,onChange:V,onBlur:V,ref:ee=>{if(ee){U(F,M),H=re(n,F);const Z=he(ee.value)&&ee.querySelectorAll&&ee.querySelectorAll("input,select,textarea")[0]||ee,ne=Ag(Z),ae=H._f.refs||[];if(ne?ae.find(W=>W===Z):Z===H._f.ref)return;ue(n,F,{_f:{...H._f,...ne?{refs:[...ae.filter(Gt),Z,...Array.isArray(re(i,F))?[{}]:[]],ref:{type:Z.type,name:F}}:{ref:Z}}}),f(F,!1,void 0,Z)}else H=re(n,F,{}),H._f&&(H._f.mount=!1),(t.shouldUnregister||M.shouldUnregister)&&!(Gi(g.array,F)&&m.action)&&g.unMount.add(F)}}};return{control:{register:U,unregister:z,getFieldState:C,_executeSchema:A,_getWatch:w,_getDirty:E,_updateValid:d,_removeUnmounted:x,_updateFieldArray:h,_getFieldArray:T,_subjects:o,_proxyFormState:l,get _fields(){return n},get _formValues(){return v},get _stateFlags(){return m},set _stateFlags(F){m=F},get _defaultValues(){return i},get _names(){return g},set _names(F){g=F},get _formState(){return r},set _formState(F){r=F},get _options(){return t},set _options(F){t={...t,...F}}},trigger:Q,register:U,handleSubmit:(F,M)=>async H=>{H&&(H.preventDefault&&H.preventDefault(),H.persist&&H.persist());let X=!0,ee=Ve(v);o.state.next({isSubmitting:!0});try{if(t.resolver){const{errors:Z,values:ne}=await A();r.errors=Z,ee=ne}else await N(n);xe(r.errors)?(o.state.next({errors:{},isSubmitting:!0}),await F(ee,H)):(M&&await M({...r.errors},H),t.shouldFocusError&&dr(n,Z=>re(r.errors,Z),g.mount))}catch(Z){throw X=!1,Z}finally{r.isSubmitted=!0,o.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:xe(r.errors)&&X,submitCount:r.submitCount+1,errors:r.errors})}},watch:D,setValue:B,getValues:j,reset:(F,M={})=>{const H=F||i,X=Ve(H),ee=F&&!xe(F)?X:i;if(M.keepDefaultValues||(i=H),!M.keepValues){if(M.keepDirtyValues)for(const Z of g.mount)re(r.dirtyFields,Z)?ue(ee,Z,re(v,Z)):B(Z,re(ee,Z));else{if(hr&&he(F))for(const Z of g.mount){const ne=re(n,Z);if(ne&&ne._f){const ae=Array.isArray(ne._f.refs)?ne._f.refs[0]:ne._f.ref;try{if(pr(ae)){ae.closest("form").reset();break}}catch{}}}n={}}v=e.shouldUnregister?M.keepDefaultValues?Ve(i):{}:X,o.array.next({values:ee}),o.watch.next({values:ee})}g={mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},m.mount=!l.isValid||!!M.keepIsValid,m.watch=!!e.shouldUnregister,o.state.next({submitCount:M.keepSubmitCount?r.submitCount:0,isDirty:M.keepDirty||M.keepDirtyValues?r.isDirty:!!(M.keepDefaultValues&&!Xe(F,i)),isSubmitted:M.keepIsSubmitted?r.isSubmitted:!1,dirtyFields:M.keepDirty||M.keepDirtyValues?r.dirtyFields:M.keepDefaultValues&&F?Wt(i,F):{},touchedFields:M.keepTouched?r.touchedFields:{},errors:M.keepErrors?r.errors:{},isSubmitting:!1,isSubmitSuccessful:!1})},resetField:(F,M={})=>{re(n,F)&&(he(M.defaultValue)?B(F,re(i,F)):(B(F,M.defaultValue),ue(i,F,M.defaultValue)),M.keepTouched||me(r.touchedFields,F),M.keepDirty||(me(r.dirtyFields,F),r.isDirty=M.defaultValue?E(F,re(i,F)):E()),M.keepError||(me(r.errors,F),l.isValid&&d()),o.state.next({...r}))},clearErrors:q,unregister:z,setError:R,setFocus:(F,M={})=>{const H=re(n,F)._f,X=H.refs?H.refs[0]:H.ref;X.focus(),M.shouldSelect&&X.select()},getFieldState:C}}function nm(e={}){const t=ce.useRef(),[r,n]=ce.useState({isDirty:!1,isValidating:!1,dirtyFields:{},isSubmitted:!1,submitCount:0,touchedFields:{},isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,errors:{}});t.current?t.current.control._options=e:t.current={...Pg(e),formState:r};const i=t.current.control,v=ce.useCallback(m=>{Yi(m,i._proxyFormState,!0)&&(i._formState={...i._formState,...m},n({...i._formState}))},[i]);return Tr({subject:i._subjects.state,callback:v}),ce.useEffect(()=>{i._stateFlags.mount||(i._proxyFormState.isValid&&i._updateValid(),i._stateFlags.mount=!0),i._stateFlags.watch&&(i._stateFlags.watch=!1,i._subjects.state.next({})),i._removeUnmounted()}),t.current.formState=Zi(r,i._proxyFormState),t.current}var Ln=function(e,t,r){if(e&&"reportValidity"in e){var n=re(r,t);e.setCustomValidity(n&&n.message||""),e.reportValidity()}},ao=function(e,t){var r=function(i){var v=t.fields[i];v&&v.ref&&"reportValidity"in v.ref?Ln(v.ref,i,e):v.refs&&v.refs.forEach(function(m){return Ln(m,i,e)})};for(var n in t.fields)r(n)},Fg=function(e,t){t.shouldUseNativeValidation&&ao(e,t);var r={};for(var n in e){var i=re(t.fields,n);ue(r,n,Object.assign(e[n],{ref:i&&i.ref}))}return r},im=function(e,t,r){return t===void 0&&(t={}),r===void 0&&(r={}),function(n,i,v){try{return Promise.resolve(function(m,g){try{var _=(t.context,Promise.resolve(e[r.mode==="sync"?"validateSync":"validate"](n,Object.assign({abortEarly:!1},t,{context:i}))).then(function(u){return v.shouldUseNativeValidation&&ao({},v),{values:r.rawValues?n:u,errors:{}}}))}catch(u){return g(u)}return _&&_.then?_.then(void 0,g):_}(0,function(m){if(!m.inner)throw m;return{values:{},errors:Fg((g=m,_=!v.shouldUseNativeValidation&&v.criteriaMode==="all",(g.inner||[]).reduce(function(u,s){if(u[s.path]||(u[s.path]={message:s.message,type:s.type}),_){var l=u[s.path].types,o=l&&l[s.type];u[s.path]=Ji(s.path,_,u,s.type,o?[].concat(o,s.message):s.message)}return u},{})),v)};var g,_}))}catch(m){return Promise.reject(m)}}};function Lg(e,t,r){const n={};return Object.keys(e).forEach(i=>{n[i]=e[i].reduce((v,m)=>(m&&(r&&r[m]&&v.push(r[m]),v.push(t(m))),v),[]).join(" ")}),n}const Rn=e=>e,Rg=()=>{let e=Rn;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Rn}}},$g=Rg(),Dg=$g,Cg={active:"Mui-active",checked:"Mui-checked",completed:"Mui-completed",disabled:"Mui-disabled",error:"Mui-error",expanded:"Mui-expanded",focused:"Mui-focused",focusVisible:"Mui-focusVisible",required:"Mui-required",selected:"Mui-selected"};function lo(e,t){return Cg[t]||`${Dg.generate(e)}-${t}`}function Ig(e,t){const r={};return t.forEach(n=>{r[n]=lo(e,n)}),r}function Mg(e){return lo("MuiLoadingButton",e)}const jg=Ig("MuiLoadingButton",["root","loading","loadingIndicator","loadingIndicatorCenter","loadingIndicatorStart","loadingIndicatorEnd","endIconLoadingEnd","startIconLoadingStart"]),Re=jg,Bg=["children","disabled","id","loading","loadingIndicator","loadingPosition","variant"],Ug=e=>{const{loading:t,loadingPosition:r,classes:n}=e,i={root:["root",t&&"loading"],startIcon:[t&&`startIconLoading${Me(r)}`],endIcon:[t&&`endIconLoading${Me(r)}`],loadingIndicator:["loadingIndicator",t&&`loadingIndicator${Me(r)}`]},v=Lg(i,Mg,n);return Pe({},n,v)},zg=e=>e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"&&e!=="classes",Vg=Ae(mo,{shouldForwardProp:e=>zg(e)||e==="classes",name:"MuiLoadingButton",slot:"Root",overridesResolver:(e,t)=>[t.root,t.startIconLoadingStart&&{[`& .${Re.startIconLoadingStart}`]:t.startIconLoadingStart},t.endIconLoadingEnd&&{[`& .${Re.endIconLoadingEnd}`]:t.endIconLoadingEnd}]})(({ownerState:e,theme:t})=>Pe({[`& .${Re.startIconLoadingStart}, & .${Re.endIconLoadingEnd}`]:{transition:t.transitions.create(["opacity"],{duration:t.transitions.duration.short}),opacity:0}},e.loadingPosition==="center"&&{transition:t.transitions.create(["background-color","box-shadow","border-color"],{duration:t.transitions.duration.short}),[`&.${Re.loading}`]:{color:"transparent"}},e.loadingPosition==="start"&&e.fullWidth&&{[`& .${Re.startIconLoadingStart}, & .${Re.endIconLoadingEnd}`]:{transition:t.transitions.create(["opacity"],{duration:t.transitions.duration.short}),opacity:0,marginRight:-8}},e.loadingPosition==="end"&&e.fullWidth&&{[`& .${Re.startIconLoadingStart}, & .${Re.endIconLoadingEnd}`]:{transition:t.transitions.create(["opacity"],{duration:t.transitions.duration.short}),opacity:0,marginLeft:-8}})),$n=Ae("div",{name:"MuiLoadingButton",slot:"LoadingIndicator",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.loadingIndicator,t[`loadingIndicator${Me(r.loadingPosition)}`]]}})(({theme:e,ownerState:t})=>Pe({position:"absolute",visibility:"visible",display:"flex"},t.loadingPosition==="start"&&(t.variant==="outlined"||t.variant==="contained")&&{left:t.size==="small"?10:14},t.loadingPosition==="start"&&t.variant==="text"&&{left:6},t.loadingPosition==="center"&&{left:"50%",transform:"translate(-50%)",color:e.palette.action.disabled},t.loadingPosition==="end"&&(t.variant==="outlined"||t.variant==="contained")&&{right:t.size==="small"?10:14},t.loadingPosition==="end"&&t.variant==="text"&&{right:6},t.loadingPosition==="start"&&t.fullWidth&&{position:"relative",left:-10},t.loadingPosition==="end"&&t.fullWidth&&{position:"relative",right:-10})),Hg=at.exports.forwardRef(function(t,r){const n=jn({props:t,name:"MuiLoadingButton"}),{children:i,disabled:v=!1,id:m,loading:g=!1,loadingIndicator:_,loadingPosition:u="center",variant:s="text"}=n,l=Bn(n,Bg),o=bo(m),a=_!=null?_:Se(Fo,{"aria-labelledby":o,color:"inherit",size:16}),p=Pe({},n,{disabled:v,loading:g,loadingIndicator:a,loadingPosition:u,variant:s}),c=Ug(p);return Se(Vg,Pe({disabled:v||g,id:o,ref:r},l,{variant:s,classes:c,ownerState:p,children:p.loadingPosition==="end"?Fr(at.exports.Fragment,{children:[i,g&&Se($n,{className:c.loadingIndicator,ownerState:p,children:a})]}):Fr(at.exports.Fragment,{children:[g&&Se($n,{className:c.loadingIndicator,ownerState:p,children:a}),i]})}))}),om=Hg;var so={exports:{}};/*! @preserve
* numeral.js
* version : 2.0.6
* author : Adam Draper
* license : MIT
* http://adamwdraper.github.com/Numeral-js/
*/(function(e){(function(t,r){e.exports?e.exports=r():t.numeral=r()})(_e,function(){var t,r,n="2.0.6",i={},v={},m={currentLocale:"en",zeroFormat:null,nullFormat:null,defaultFormat:"0,0",scalePercentBy100:!0},g={currentLocale:m.currentLocale,zeroFormat:m.zeroFormat,nullFormat:m.nullFormat,defaultFormat:m.defaultFormat,scalePercentBy100:m.scalePercentBy100};function _(u,s){this._input=u,this._value=s}return t=function(u){var s,l,o,a;if(t.isNumeral(u))s=u.value();else if(u===0||typeof u>"u")s=0;else if(u===null||r.isNaN(u))s=null;else if(typeof u=="string")if(g.zeroFormat&&u===g.zeroFormat)s=0;else if(g.nullFormat&&u===g.nullFormat||!u.replace(/[^0-9]+/g,"").length)s=null;else{for(l in i)if(a=typeof i[l].regexps.unformat=="function"?i[l].regexps.unformat():i[l].regexps.unformat,a&&u.match(a)){o=i[l].unformat;break}o=o||t._.stringToNumber,s=o(u)}else s=Number(u)||null;return new _(u,s)},t.version=n,t.isNumeral=function(u){return u instanceof _},t._=r={numberToFormat:function(u,s,l){var o=v[t.options.currentLocale],a=!1,p=!1,c=0,y="",d=1e12,h=1e9,b=1e6,f=1e3,O="",S=!1,A,k,N,x,E,w,T;if(u=u||0,k=Math.abs(u),t._.includes(s,"(")?(a=!0,s=s.replace(/[\(|\)]/g,"")):(t._.includes(s,"+")||t._.includes(s,"-"))&&(E=t._.includes(s,"+")?s.indexOf("+"):u<0?s.indexOf("-"):-1,s=s.replace(/[\+|\-]/g,"")),t._.includes(s,"a")&&(A=s.match(/a(k|m|b|t)?/),A=A?A[1]:!1,t._.includes(s," a")&&(y=" "),s=s.replace(new RegExp(y+"a[kmbt]?"),""),k>=d&&!A||A==="t"?(y+=o.abbreviations.trillion,u=u/d):k<d&&k>=h&&!A||A==="b"?(y+=o.abbreviations.billion,u=u/h):k<h&&k>=b&&!A||A==="m"?(y+=o.abbreviations.million,u=u/b):(k<b&&k>=f&&!A||A==="k")&&(y+=o.abbreviations.thousand,u=u/f)),t._.includes(s,"[.]")&&(p=!0,s=s.replace("[.]",".")),N=u.toString().split(".")[0],x=s.split(".")[1],w=s.indexOf(","),c=(s.split(".")[0].split(",")[0].match(/0/g)||[]).length,x?(t._.includes(x,"[")?(x=x.replace("]",""),x=x.split("["),O=t._.toFixed(u,x[0].length+x[1].length,l,x[1].length)):O=t._.toFixed(u,x.length,l),N=O.split(".")[0],t._.includes(O,".")?O=o.delimiters.decimal+O.split(".")[1]:O="",p&&Number(O.slice(1))===0&&(O="")):N=t._.toFixed(u,0,l),y&&!A&&Number(N)>=1e3&&y!==o.abbreviations.trillion)switch(N=String(Number(N)/1e3),y){case o.abbreviations.thousand:y=o.abbreviations.million;break;case o.abbreviations.million:y=o.abbreviations.billion;break;case o.abbreviations.billion:y=o.abbreviations.trillion;break}if(t._.includes(N,"-")&&(N=N.slice(1),S=!0),N.length<c)for(var P=c-N.length;P>0;P--)N="0"+N;return w>-1&&(N=N.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+o.delimiters.thousands)),s.indexOf(".")===0&&(N=""),T=N+O+(y||""),a?T=(a&&S?"(":"")+T+(a&&S?")":""):E>=0?T=E===0?(S?"-":"+")+T:T+(S?"-":"+"):S&&(T="-"+T),T},stringToNumber:function(u){var s=v[g.currentLocale],l=u,o={thousand:3,million:6,billion:9,trillion:12},a,p,c;if(g.zeroFormat&&u===g.zeroFormat)p=0;else if(g.nullFormat&&u===g.nullFormat||!u.replace(/[^0-9]+/g,"").length)p=null;else{p=1,s.delimiters.decimal!=="."&&(u=u.replace(/\./g,"").replace(s.delimiters.decimal,"."));for(a in o)if(c=new RegExp("[^a-zA-Z]"+s.abbreviations[a]+"(?:\\)|(\\"+s.currency.symbol+")?(?:\\))?)?$"),l.match(c)){p*=Math.pow(10,o[a]);break}p*=(u.split("-").length+Math.min(u.split("(").length-1,u.split(")").length-1))%2?1:-1,u=u.replace(/[^0-9\.]+/g,""),p*=Number(u)}return p},isNaN:function(u){return typeof u=="number"&&isNaN(u)},includes:function(u,s){return u.indexOf(s)!==-1},insert:function(u,s,l){return u.slice(0,l)+s+u.slice(l)},reduce:function(u,s){if(this===null)throw new TypeError("Array.prototype.reduce called on null or undefined");if(typeof s!="function")throw new TypeError(s+" is not a function");var l=Object(u),o=l.length>>>0,a=0,p;if(arguments.length===3)p=arguments[2];else{for(;a<o&&!(a in l);)a++;if(a>=o)throw new TypeError("Reduce of empty array with no initial value");p=l[a++]}for(;a<o;a++)a in l&&(p=s(p,l[a],a,l));return p},multiplier:function(u){var s=u.toString().split(".");return s.length<2?1:Math.pow(10,s[1].length)},correctionFactor:function(){var u=Array.prototype.slice.call(arguments);return u.reduce(function(s,l){var o=r.multiplier(l);return s>o?s:o},1)},toFixed:function(u,s,l,o){var a=u.toString().split("."),p=s-(o||0),c,y,d,h;return a.length===2?c=Math.min(Math.max(a[1].length,p),s):c=p,d=Math.pow(10,c),h=(l(u+"e+"+c)/d).toFixed(c),o>s-c&&(y=new RegExp("\\.?0{1,"+(o-(s-c))+"}$"),h=h.replace(y,"")),h}},t.options=g,t.formats=i,t.locales=v,t.locale=function(u){return u&&(g.currentLocale=u.toLowerCase()),g.currentLocale},t.localeData=function(u){if(!u)return v[g.currentLocale];if(u=u.toLowerCase(),!v[u])throw new Error("Unknown locale : "+u);return v[u]},t.reset=function(){for(var u in m)g[u]=m[u]},t.zeroFormat=function(u){g.zeroFormat=typeof u=="string"?u:null},t.nullFormat=function(u){g.nullFormat=typeof u=="string"?u:null},t.defaultFormat=function(u){g.defaultFormat=typeof u=="string"?u:"0.0"},t.register=function(u,s,l){if(s=s.toLowerCase(),this[u+"s"][s])throw new TypeError(s+" "+u+" already registered.");return this[u+"s"][s]=l,l},t.validate=function(u,s){var l,o,a,p,c,y,d,h;if(typeof u!="string"&&(u+="",console.warn&&console.warn("Numeral.js: Value is not string. It has been co-erced to: ",u)),u=u.trim(),u.match(/^\d+$/))return!0;if(u==="")return!1;try{d=t.localeData(s)}catch{d=t.localeData(t.locale())}return a=d.currency.symbol,c=d.abbreviations,l=d.delimiters.decimal,d.delimiters.thousands==="."?o="\\.":o=d.delimiters.thousands,h=u.match(/^[^\d]+/),h!==null&&(u=u.substr(1),h[0]!==a)||(h=u.match(/[^\d]+$/),h!==null&&(u=u.slice(0,-1),h[0]!==c.thousand&&h[0]!==c.million&&h[0]!==c.billion&&h[0]!==c.trillion))?!1:(y=new RegExp(o+"{2}"),u.match(/[^\d.,]/g)?!1:(p=u.split(l),p.length>2?!1:p.length<2?!!p[0].match(/^\d+.*\d$/)&&!p[0].match(y):p[0].length===1?!!p[0].match(/^\d+$/)&&!p[0].match(y)&&!!p[1].match(/^\d+$/):!!p[0].match(/^\d+.*\d$/)&&!p[0].match(y)&&!!p[1].match(/^\d+$/)))},t.fn=_.prototype={clone:function(){return t(this)},format:function(u,s){var l=this._value,o=u||g.defaultFormat,a,p,c;if(s=s||Math.round,l===0&&g.zeroFormat!==null)p=g.zeroFormat;else if(l===null&&g.nullFormat!==null)p=g.nullFormat;else{for(a in i)if(o.match(i[a].regexps.format)){c=i[a].format;break}c=c||t._.numberToFormat,p=c(l,o,s)}return p},value:function(){return this._value},input:function(){return this._input},set:function(u){return this._value=Number(u),this},add:function(u){var s=r.correctionFactor.call(null,this._value,u);function l(o,a,p,c){return o+Math.round(s*a)}return this._value=r.reduce([this._value,u],l,0)/s,this},subtract:function(u){var s=r.correctionFactor.call(null,this._value,u);function l(o,a,p,c){return o-Math.round(s*a)}return this._value=r.reduce([u],l,Math.round(this._value*s))/s,this},multiply:function(u){function s(l,o,a,p){var c=r.correctionFactor(l,o);return Math.round(l*c)*Math.round(o*c)/Math.round(c*c)}return this._value=r.reduce([this._value,u],s,1),this},divide:function(u){function s(l,o,a,p){var c=r.correctionFactor(l,o);return Math.round(l*c)/Math.round(o*c)}return this._value=r.reduce([this._value,u],s),this},difference:function(u){return Math.abs(t(this._value).subtract(u).value())}},t.register("locale","en",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(u){var s=u%10;return~~(u%100/10)===1?"th":s===1?"st":s===2?"nd":s===3?"rd":"th"},currency:{symbol:"$"}}),function(){t.register("format","bps",{regexps:{format:/(BPS)/,unformat:/(BPS)/},format:function(u,s,l){var o=t._.includes(s," BPS")?" ":"",a;return u=u*1e4,s=s.replace(/\s?BPS/,""),a=t._.numberToFormat(u,s,l),t._.includes(a,")")?(a=a.split(""),a.splice(-1,0,o+"BPS"),a=a.join("")):a=a+o+"BPS",a},unformat:function(u){return+(t._.stringToNumber(u)*1e-4).toFixed(15)}})}(),function(){var u={base:1e3,suffixes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]},s={base:1024,suffixes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},l=u.suffixes.concat(s.suffixes.filter(function(a){return u.suffixes.indexOf(a)<0})),o=l.join("|");o="("+o.replace("B","B(?!PS)")+")",t.register("format","bytes",{regexps:{format:/([0\s]i?b)/,unformat:new RegExp(o)},format:function(a,p,c){var y,d=t._.includes(p,"ib")?s:u,h=t._.includes(p," b")||t._.includes(p," ib")?" ":"",b,f,O;for(p=p.replace(/\s?i?b/,""),b=0;b<=d.suffixes.length;b++)if(f=Math.pow(d.base,b),O=Math.pow(d.base,b+1),a===null||a===0||a>=f&&a<O){h+=d.suffixes[b],f>0&&(a=a/f);break}return y=t._.numberToFormat(a,p,c),y+h},unformat:function(a){var p=t._.stringToNumber(a),c,y;if(p){for(c=u.suffixes.length-1;c>=0;c--){if(t._.includes(a,u.suffixes[c])){y=Math.pow(u.base,c);break}if(t._.includes(a,s.suffixes[c])){y=Math.pow(s.base,c);break}}p*=y||1}return p}})}(),function(){t.register("format","currency",{regexps:{format:/(\$)/},format:function(u,s,l){var o=t.locales[t.options.currentLocale],a={before:s.match(/^([\+|\-|\(|\s|\$]*)/)[0],after:s.match(/([\+|\-|\)|\s|\$]*)$/)[0]},p,c,y;for(s=s.replace(/\s?\$\s?/,""),p=t._.numberToFormat(u,s,l),u>=0?(a.before=a.before.replace(/[\-\(]/,""),a.after=a.after.replace(/[\-\)]/,"")):u<0&&!t._.includes(a.before,"-")&&!t._.includes(a.before,"(")&&(a.before="-"+a.before),y=0;y<a.before.length;y++)switch(c=a.before[y],c){case"$":p=t._.insert(p,o.currency.symbol,y);break;case" ":p=t._.insert(p," ",y+o.currency.symbol.length-1);break}for(y=a.after.length-1;y>=0;y--)switch(c=a.after[y],c){case"$":p=y===a.after.length-1?p+o.currency.symbol:t._.insert(p,o.currency.symbol,-(a.after.length-(1+y)));break;case" ":p=y===a.after.length-1?p+" ":t._.insert(p," ",-(a.after.length-(1+y)+o.currency.symbol.length-1));break}return p}})}(),function(){t.register("format","exponential",{regexps:{format:/(e\+|e-)/,unformat:/(e\+|e-)/},format:function(u,s,l){var o,a=typeof u=="number"&&!t._.isNaN(u)?u.toExponential():"0e+0",p=a.split("e");return s=s.replace(/e[\+|\-]{1}0/,""),o=t._.numberToFormat(Number(p[0]),s,l),o+"e"+p[1]},unformat:function(u){var s=t._.includes(u,"e+")?u.split("e+"):u.split("e-"),l=Number(s[0]),o=Number(s[1]);o=t._.includes(u,"e-")?o*=-1:o;function a(p,c,y,d){var h=t._.correctionFactor(p,c),b=p*h*(c*h)/(h*h);return b}return t._.reduce([l,Math.pow(10,o)],a,1)}})}(),function(){t.register("format","ordinal",{regexps:{format:/(o)/},format:function(u,s,l){var o=t.locales[t.options.currentLocale],a,p=t._.includes(s," o")?" ":"";return s=s.replace(/\s?o/,""),p+=o.ordinal(u),a=t._.numberToFormat(u,s,l),a+p}})}(),function(){t.register("format","percentage",{regexps:{format:/(%)/,unformat:/(%)/},format:function(u,s,l){var o=t._.includes(s," %")?" ":"",a;return t.options.scalePercentBy100&&(u=u*100),s=s.replace(/\s?\%/,""),a=t._.numberToFormat(u,s,l),t._.includes(a,")")?(a=a.split(""),a.splice(-1,0,o+"%"),a=a.join("")):a=a+o+"%",a},unformat:function(u){var s=t._.stringToNumber(u);return t.options.scalePercentBy100?s*.01:s}})}(),function(){t.register("format","time",{regexps:{format:/(:)/,unformat:/(:)/},format:function(u,s,l){var o=Math.floor(u/60/60),a=Math.floor((u-o*60*60)/60),p=Math.round(u-o*60*60-a*60);return o+":"+(a<10?"0"+a:a)+":"+(p<10?"0"+p:p)},unformat:function(u){var s=u.split(":"),l=0;return s.length===3?(l=l+Number(s[0])*60*60,l=l+Number(s[1])*60,l=l+Number(s[2])):s.length===2&&(l=l+Number(s[0])*60,l=l+Number(s[1])),Number(l)}})}(),t})})(so);const Mt=so.exports;Mt.register("locale","id",{delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(e){return e===1?"er":"\xE8me"},currency:{symbol:"Rp "}});Mt.locale("id");function am(e){return Mt(e).format("$0,0")}function lm(e){return Mt(e).format("0,0")}Ae("div")(({theme:e})=>({width:144,height:144,margin:"auto",borderRadius:"50%",padding:e.spacing(1),border:`1px dashed ${e.palette.grey[50032]}`}));Ae("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}}});Ae("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}}));Ae("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"}}));Ae("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 sm({children:e,onSubmit:t,methods:r,encType:n}){return Se(gg,{...r,children:Se("form",{onSubmit:t,encType:n,children:e})})}var Kg=wr;function Gg(e,t){return Kg(e,t)}var Wg=Gg,uo={exports:{}};/*!
* Quill Editor v1.3.7
* https://quilljs.com/
* Copyright (c) 2014, Jason Chen
* Copyright (c) 2013, salesforce.com
*/(function(e,t){(function(n,i){e.exports=i()})(typeof self<"u"?self:_e,function(){return function(r){var n={};function i(v){if(n[v])return n[v].exports;var m=n[v]={i:v,l:!1,exports:{}};return r[v].call(m.exports,m,m.exports,i),m.l=!0,m.exports}return i.m=r,i.c=n,i.d=function(v,m,g){i.o(v,m)||Object.defineProperty(v,m,{configurable:!1,enumerable:!0,get:g})},i.n=function(v){var m=v&&v.__esModule?function(){return v.default}:function(){return v};return i.d(m,"a",m),m},i.o=function(v,m){return Object.prototype.hasOwnProperty.call(v,m)},i.p="",i(i.s=109)}([function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var v=i(17),m=i(18),g=i(19),_=i(45),u=i(46),s=i(47),l=i(48),o=i(49),a=i(12),p=i(32),c=i(33),y=i(31),d=i(1),h={Scope:d.Scope,create:d.create,find:d.find,query:d.query,register:d.register,Container:v.default,Format:m.default,Leaf:g.default,Embed:l.default,Scroll:_.default,Block:s.default,Inline:u.default,Text:o.default,Attributor:{Attribute:a.default,Class:p.default,Style:c.default,Store:y.default}};n.default=h},function(r,n,i){var v=this&&this.__extends||function(){var y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,h){d.__proto__=h}||function(d,h){for(var b in h)h.hasOwnProperty(b)&&(d[b]=h[b])};return function(d,h){y(d,h);function b(){this.constructor=d}d.prototype=h===null?Object.create(h):(b.prototype=h.prototype,new b)}}();Object.defineProperty(n,"__esModule",{value:!0});var m=function(y){v(d,y);function d(h){var b=this;return h="[Parchment] "+h,b=y.call(this,h)||this,b.message=h,b.name=b.constructor.name,b}return d}(Error);n.ParchmentError=m;var g={},_={},u={},s={};n.DATA_KEY="__blot";var l;(function(y){y[y.TYPE=3]="TYPE",y[y.LEVEL=12]="LEVEL",y[y.ATTRIBUTE=13]="ATTRIBUTE",y[y.BLOT=14]="BLOT",y[y.INLINE=7]="INLINE",y[y.BLOCK=11]="BLOCK",y[y.BLOCK_BLOT=10]="BLOCK_BLOT",y[y.INLINE_BLOT=6]="INLINE_BLOT",y[y.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",y[y.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",y[y.ANY=15]="ANY"})(l=n.Scope||(n.Scope={}));function o(y,d){var h=p(y);if(h==null)throw new m("Unable to create "+y+" blot");var b=h,f=y instanceof Node||y.nodeType===Node.TEXT_NODE?y:b.create(d);return new b(f,d)}n.create=o;function a(y,d){return d===void 0&&(d=!1),y==null?null:y[n.DATA_KEY]!=null?y[n.DATA_KEY].blot:d?a(y.parentNode,d):null}n.find=a;function p(y,d){d===void 0&&(d=l.ANY);var h;if(typeof y=="string")h=s[y]||g[y];else if(y instanceof Text||y.nodeType===Node.TEXT_NODE)h=s.text;else if(typeof y=="number")y&l.LEVEL&l.BLOCK?h=s.block:y&l.LEVEL&l.INLINE&&(h=s.inline);else if(y instanceof HTMLElement){var b=(y.getAttribute("class")||"").split(/\s+/);for(var f in b)if(h=_[b[f]],h)break;h=h||u[y.tagName]}return h==null?null:d&l.LEVEL&h.scope&&d&l.TYPE&h.scope?h:null}n.query=p;function c(){for(var y=[],d=0;d<arguments.length;d++)y[d]=arguments[d];if(y.length>1)return y.map(function(f){return c(f)});var h=y[0];if(typeof h.blotName!="string"&&typeof h.attrName!="string")throw new m("Invalid definition");if(h.blotName==="abstract")throw new m("Cannot register abstract class");if(s[h.blotName||h.attrName]=h,typeof h.keyName=="string")g[h.keyName]=h;else if(h.className!=null&&(_[h.className]=h),h.tagName!=null){Array.isArray(h.tagName)?h.tagName=h.tagName.map(function(f){return f.toUpperCase()}):h.tagName=h.tagName.toUpperCase();var b=Array.isArray(h.tagName)?h.tagName:[h.tagName];b.forEach(function(f){(u[f]==null||h.className==null)&&(u[f]=h)})}return h}n.register=c},function(r,n,i){var v=i(51),m=i(11),g=i(3),_=i(20),u=String.fromCharCode(0),s=function(l){Array.isArray(l)?this.ops=l:l!=null&&Array.isArray(l.ops)?this.ops=l.ops:this.ops=[]};s.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))},s.prototype.delete=function(l){return l<=0?this:this.push({delete:l})},s.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)},s.prototype.push=function(l){var o=this.ops.length,a=this.ops[o-1];if(l=g(!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(m(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},s.prototype.chop=function(){var l=this.ops[this.ops.length-1];return l&&l.retain&&!l.attributes&&this.ops.pop(),this},s.prototype.filter=function(l){return this.ops.filter(l)},s.prototype.forEach=function(l){this.ops.forEach(l)},s.prototype.map=function(l){return this.ops.map(l)},s.prototype.partition=function(l){var o=[],a=[];return this.forEach(function(p){var c=l(p)?o:a;c.push(p)}),[o,a]},s.prototype.reduce=function(l,o){return this.ops.reduce(l,o)},s.prototype.changeLength=function(){return this.reduce(function(l,o){return o.insert?l+_.length(o):o.delete?l-o.delete:l},0)},s.prototype.length=function(){return this.reduce(function(l,o){return l+_.length(o)},0)},s.prototype.slice=function(l,o){l=l||0,typeof o!="number"&&(o=1/0);for(var a=[],p=_.iterator(this.ops),c=0;c<o&&p.hasNext();){var y;c<l?y=p.next(l-c):(y=p.next(o-c),a.push(y)),c+=_.length(y)}return new s(a)},s.prototype.compose=function(l){var o=_.iterator(this.ops),a=_.iterator(l.ops),p=[],c=a.peek();if(c!=null&&typeof c.retain=="number"&&c.attributes==null){for(var y=c.retain;o.peekType()==="insert"&&o.peekLength()<=y;)y-=o.peekLength(),p.push(o.next());c.retain-y>0&&a.next(c.retain-y)}for(var d=new s(p);o.hasNext()||a.hasNext();)if(a.peekType()==="insert")d.push(a.next());else if(o.peekType()==="delete")d.push(o.next());else{var h=Math.min(o.peekLength(),a.peekLength()),b=o.next(h),f=a.next(h);if(typeof f.retain=="number"){var O={};typeof b.retain=="number"?O.retain=h:O.insert=b.insert;var S=_.attributes.compose(b.attributes,f.attributes,typeof b.retain=="number");if(S&&(O.attributes=S),d.push(O),!a.hasNext()&&m(d.ops[d.ops.length-1],O)){var A=new s(o.rest());return d.concat(A).chop()}}else typeof f.delete=="number"&&typeof b.retain=="number"&&d.push(f)}return d.chop()},s.prototype.concat=function(l){var o=new s(this.ops.slice());return l.ops.length>0&&(o.push(l.ops[0]),o.ops=o.ops.concat(l.ops.slice(1))),o},s.prototype.diff=function(l,o){if(this.ops===l.ops)return new s;var a=[this,l].map(function(h){return h.map(function(b){if(b.insert!=null)return typeof b.insert=="string"?b.insert:u;var f=h===l?"on":"with";throw new Error("diff() called "+f+" non-document")}).join("")}),p=new s,c=v(a[0],a[1],o),y=_.iterator(this.ops),d=_.iterator(l.ops);return c.forEach(function(h){for(var b=h[1].length;b>0;){var f=0;switch(h[0]){case v.INSERT:f=Math.min(d.peekLength(),b),p.push(d.next(f));break;case v.DELETE:f=Math.min(b,y.peekLength()),y.next(f),p.delete(f);break;case v.EQUAL:f=Math.min(y.peekLength(),d.peekLength(),b);var O=y.next(f),S=d.next(f);m(O.insert,S.insert)?p.retain(f,_.attributes.diff(O.attributes,S.attributes)):p.push(S).delete(f);break}b-=f}}),p.chop()},s.prototype.eachLine=function(l,o){o=o||`
`;for(var a=_.iterator(this.ops),p=new s,c=0;a.hasNext();){if(a.peekType()!=="insert")return;var y=a.peek(),d=_.length(y)-a.peekLength(),h=typeof y.insert=="string"?y.insert.indexOf(o,d)-d:-1;if(h<0)p.push(a.next());else if(h>0)p.push(a.next(h));else{if(l(p,a.next(1).attributes||{},c)===!1)return;c+=1,p=new s}}p.length()>0&&l(p,{},c)},s.prototype.transform=function(l,o){if(o=!!o,typeof l=="number")return this.transformPosition(l,o);for(var a=_.iterator(this.ops),p=_.iterator(l.ops),c=new s;a.hasNext()||p.hasNext();)if(a.peekType()==="insert"&&(o||p.peekType()!=="insert"))c.retain(_.length(a.next()));else if(p.peekType()==="insert")c.push(p.next());else{var y=Math.min(a.peekLength(),p.peekLength()),d=a.next(y),h=p.next(y);if(d.delete)continue;h.delete?c.push(h):c.retain(y,_.attributes.transform(d.attributes,h.attributes,o))}return c.chop()},s.prototype.transformPosition=function(l,o){o=!!o;for(var a=_.iterator(this.ops),p=0;a.hasNext()&&p<=l;){var c=a.peekLength(),y=a.peekType();if(a.next(),y==="delete"){l-=Math.min(c,l-p);continue}else y==="insert"&&(p<l||!o)&&(l+=c);p+=c}return l},r.exports=s},function(r,n){var i=Object.prototype.hasOwnProperty,v=Object.prototype.toString,m=Object.defineProperty,g=Object.getOwnPropertyDescriptor,_=function(a){return typeof Array.isArray=="function"?Array.isArray(a):v.call(a)==="[object Array]"},u=function(a){if(!a||v.call(a)!=="[object Object]")return!1;var p=i.call(a,"constructor"),c=a.constructor&&a.constructor.prototype&&i.call(a.constructor.prototype,"isPrototypeOf");if(a.constructor&&!p&&!c)return!1;var y;for(y in a);return typeof y>"u"||i.call(a,y)},s=function(a,p){m&&p.name==="__proto__"?m(a,p.name,{enumerable:!0,configurable:!0,value:p.newValue,writable:!0}):a[p.name]=p.newValue},l=function(a,p){if(p==="__proto__")if(i.call(a,p)){if(g)return g(a,p).value}else return;return a[p]};r.exports=function o(){var a,p,c,y,d,h,b=arguments[0],f=1,O=arguments.length,S=!1;for(typeof b=="boolean"&&(S=b,b=arguments[1]||{},f=2),(b==null||typeof b!="object"&&typeof b!="function")&&(b={});f<O;++f)if(a=arguments[f],a!=null)for(p in a)c=l(b,p),y=l(a,p),b!==y&&(S&&y&&(u(y)||(d=_(y)))?(d?(d=!1,h=c&&_(c)?c:[]):h=c&&u(c)?c:{},s(b,{name:p,newValue:o(S,h,y)})):typeof y<"u"&&s(b,{name:p,newValue:y}));return b}},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.default=n.BlockEmbed=n.bubbleFormats=void 0;var v=function(){function E(w,T){for(var P=0;P<T.length;P++){var $=T[P];$.enumerable=$.enumerable||!1,$.configurable=!0,"value"in $&&($.writable=!0),Object.defineProperty(w,$.key,$)}}return function(w,T,P){return T&&E(w.prototype,T),P&&E(w,P),w}}(),m=function E(w,T,P){w===null&&(w=Function.prototype);var $=Object.getOwnPropertyDescriptor(w,T);if($===void 0){var B=Object.getPrototypeOf(w);return B===null?void 0:E(B,T,P)}else{if("value"in $)return $.value;var V=$.get;return V===void 0?void 0:V.call(P)}},g=i(3),_=b(g),u=i(2),s=b(u),l=i(0),o=b(l),a=i(16),p=b(a),c=i(6),y=b(c),d=i(7),h=b(d);function b(E){return E&&E.__esModule?E:{default:E}}function f(E,w){if(!(E instanceof w))throw new TypeError("Cannot call a class as a function")}function O(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 S(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){S(w,E);function w(){return f(this,w),O(this,(w.__proto__||Object.getPrototypeOf(w)).apply(this,arguments))}return v(w,[{key:"attach",value:function(){m(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 s.default().insert(this.value(),(0,_.default)(this.formats(),this.attributes.values()))}},{key:"format",value:function(P,$){var B=o.default.query(P,o.default.Scope.BLOCK_ATTRIBUTE);B!=null&&this.attributes.attribute(B,$)}},{key:"formatAt",value:function(P,$,B,V){this.format(B,V)}},{key:"insertAt",value:function(P,$,B){if(typeof $=="string"&&$.endsWith(`
`)){var V=o.default.create(N.blotName);this.parent.insertBefore(V,P===0?this:this.next),V.insertAt(0,$.slice(0,-1))}else m(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"insertAt",this).call(this,P,$,B)}}]),w}(o.default.Embed);k.scope=o.default.Scope.BLOCK_BLOT;var N=function(E){S(w,E);function w(T){f(this,w);var P=O(this,(w.__proto__||Object.getPrototypeOf(w)).call(this,T));return P.cache={},P}return v(w,[{key:"delta",value:function(){return this.cache.delta==null&&(this.cache.delta=this.descendants(o.default.Leaf).reduce(function(P,$){return $.length()===0?P:P.insert($.value(),x($))},new s.default).insert(`
`,x(this))),this.cache.delta}},{key:"deleteAt",value:function(P,$){m(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"deleteAt",this).call(this,P,$),this.cache={}}},{key:"formatAt",value:function(P,$,B,V){$<=0||(o.default.query(B,o.default.Scope.BLOCK)?P+$===this.length()&&this.format(B,V):m(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"formatAt",this).call(this,P,Math.min($,this.length()-P-1),B,V),this.cache={})}},{key:"insertAt",value:function(P,$,B){if(B!=null)return m(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"insertAt",this).call(this,P,$,B);if($.length!==0){var V=$.split(`
`),Q=V.shift();Q.length>0&&(P<this.length()-1||this.children.tail==null?m(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 j=this;V.reduce(function(C,q){return j=j.split(C,!0),j.insertAt(0,q),q.length},P+Q.length)}}},{key:"insertBefore",value:function(P,$){var B=this.children.head;m(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"insertBefore",this).call(this,P,$),B instanceof p.default&&B.remove(),this.cache={}}},{key:"length",value:function(){return this.cache.length==null&&(this.cache.length=m(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"length",this).call(this)+A),this.cache.length}},{key:"moveChildren",value:function(P,$){m(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"moveChildren",this).call(this,P,$),this.cache={}}},{key:"optimize",value:function(P){m(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"optimize",this).call(this,P),this.cache={}}},{key:"path",value:function(P){return m(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"path",this).call(this,P,!0)}},{key:"removeChild",value:function(P){m(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"removeChild",this).call(this,P),this.cache={}}},{key:"split",value:function(P){var $=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if($&&(P===0||P>=this.length()-A)){var B=this.clone();return P===0?(this.parent.insertBefore(B,this),this):(this.parent.insertBefore(B,this.next),B)}else{var V=m(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"split",this).call(this,P,$);return this.cache={},V}}}]),w}(o.default.Block);N.blotName="block",N.tagName="P",N.defaultChild="break",N.allowedChildren=[y.default,o.default.Embed,h.default];function x(E){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return E==null||(typeof E.formats=="function"&&(w=(0,_.default)(w,E.formats())),E.parent==null||E.parent.blotName=="scroll"||E.parent.statics.scope!==E.statics.scope)?w:x(E.parent,w)}n.bubbleFormats=x,n.BlockEmbed=k,n.default=N},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.default=n.overload=n.expandConfig=void 0;var v=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(j){return typeof j}:function(j){return j&&typeof Symbol=="function"&&j.constructor===Symbol&&j!==Symbol.prototype?"symbol":typeof j},m=function(){function j(C,q){var R=[],D=!0,z=!1,U=void 0;try{for(var L=C[Symbol.iterator](),I;!(D=(I=L.next()).done)&&(R.push(I.value),!(q&&R.length===q));D=!0);}catch(K){z=!0,U=K}finally{try{!D&&L.return&&L.return()}finally{if(z)throw U}}return R}return function(C,q){if(Array.isArray(C))return C;if(Symbol.iterator in Object(C))return j(C,q);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),g=function(){function j(C,q){for(var R=0;R<q.length;R++){var D=q[R];D.enumerable=D.enumerable||!1,D.configurable=!0,"value"in D&&(D.writable=!0),Object.defineProperty(C,D.key,D)}}return function(C,q,R){return q&&j(C.prototype,q),R&&j(C,R),C}}();i(50);var _=i(2),u=x(_),s=i(14),l=x(s),o=i(8),a=x(o),p=i(9),c=x(p),y=i(0),d=x(y),h=i(15),b=x(h),f=i(3),O=x(f),S=i(10),A=x(S),k=i(34),N=x(k);function x(j){return j&&j.__esModule?j:{default:j}}function E(j,C,q){return C in j?Object.defineProperty(j,C,{value:q,enumerable:!0,configurable:!0,writable:!0}):j[C]=q,j}function w(j,C){if(!(j instanceof C))throw new TypeError("Cannot call a class as a function")}var T=(0,A.default)("quill"),P=function(){g(j,null,[{key:"debug",value:function(q){q===!0&&(q="log"),A.default.level(q)}},{key:"find",value:function(q){return q.__quill||d.default.find(q)}},{key:"import",value:function(q){return this.imports[q]==null&&T.error("Cannot import "+q+". Are you sure it was registered?"),this.imports[q]}},{key:"register",value:function(q,R){var D=this,z=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(typeof q!="string"){var U=q.attrName||q.blotName;typeof U=="string"?this.register("formats/"+U,q,R):Object.keys(q).forEach(function(L){D.register(L,q[L],R)})}else this.imports[q]!=null&&!z&&T.warn("Overwriting "+q+" with",R),this.imports[q]=R,(q.startsWith("blots/")||q.startsWith("formats/"))&&R.blotName!=="abstract"?d.default.register(R):q.startsWith("modules")&&typeof R.register=="function"&&R.register()}}]);function j(C){var q=this,R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(w(this,j),this.options=$(C,R),this.container=this.options.container,this.container==null)return T.error("Invalid Quill container",C);this.options.debug&&j.debug(this.options.debug);var D=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=d.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(U){U===a.default.events.TEXT_CHANGE&&q.root.classList.toggle("ql-blank",q.editor.isBlank())}),this.emitter.on(a.default.events.SCROLL_UPDATE,function(U,L){var I=q.selection.lastRange,K=I&&I.length===0?I.index:void 0;B.call(q,function(){return q.editor.update(null,L,K)},U)});var z=this.clipboard.convert(`<div class='ql-editor' style="white-space: normal;">`+D+"<p><br></p></div>");this.setContents(z),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}return g(j,[{key:"addContainer",value:function(q){var R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(typeof q=="string"){var D=q;q=document.createElement("div"),q.classList.add(D)}return this.container.insertBefore(q,R),q}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(q,R,D){var z=this,U=V(q,R,D),L=m(U,4);return q=L[0],R=L[1],D=L[3],B.call(this,function(){return z.editor.deleteText(q,R)},D,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 D=this,z=arguments.length>2&&arguments[2]!==void 0?arguments[2]:a.default.sources.API;return B.call(this,function(){var U=D.getSelection(!0),L=new u.default;if(U==null)return L;if(d.default.query(q,d.default.Scope.BLOCK))L=D.editor.formatLine(U.index,U.length,E({},q,R));else{if(U.length===0)return D.selection.format(q,R),L;L=D.editor.formatText(U.index,U.length,E({},q,R))}return D.setSelection(U,a.default.sources.SILENT),L},z)}},{key:"formatLine",value:function(q,R,D,z,U){var L=this,I=void 0,K=V(q,R,D,z,U),G=m(K,4);return q=G[0],R=G[1],I=G[2],U=G[3],B.call(this,function(){return L.editor.formatLine(q,R,I)},U,q,0)}},{key:"formatText",value:function(q,R,D,z,U){var L=this,I=void 0,K=V(q,R,D,z,U),G=m(K,4);return q=G[0],R=G[1],I=G[2],U=G[3],B.call(this,function(){return L.editor.formatText(q,R,I)},U,q,0)}},{key:"getBounds",value:function(q){var R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,D=void 0;typeof q=="number"?D=this.selection.getBounds(q,R):D=this.selection.getBounds(q.index,q.length);var z=this.container.getBoundingClientRect();return{bottom:D.bottom-z.top,height:D.height,left:D.left-z.left,right:D.right-z.left,top:D.top-z.top,width:D.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,D=V(q,R),z=m(D,2);return q=z[0],R=z[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,D=V(q,R),z=m(D,2);return q=z[0],R=z[1],this.editor.getText(q,R)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(q,R,D){var z=this,U=arguments.length>3&&arguments[3]!==void 0?arguments[3]:j.sources.API;return B.call(this,function(){return z.editor.insertEmbed(q,R,D)},U,q)}},{key:"insertText",value:function(q,R,D,z,U){var L=this,I=void 0,K=V(q,0,D,z,U),G=m(K,4);return q=G[0],I=G[2],U=G[3],B.call(this,function(){return L.editor.insertText(q,R,I)},U,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,D){this.clipboard.dangerouslyPasteHTML(q,R,D)}},{key:"removeFormat",value:function(q,R,D){var z=this,U=V(q,R,D),L=m(U,4);return q=L[0],R=L[1],D=L[3],B.call(this,function(){return z.editor.removeFormat(q,R)},D,q)}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(q){var R=this,D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:a.default.sources.API;return B.call(this,function(){q=new u.default(q);var z=R.getLength(),U=R.editor.deleteText(0,z),L=R.editor.applyDelta(q),I=L.ops[L.ops.length-1];I!=null&&typeof I.insert=="string"&&I.insert[I.insert.length-1]===`
`&&(R.editor.deleteText(R.getLength()-1,1),L.delete(1));var K=U.compose(L);return K},D)}},{key:"setSelection",value:function(q,R,D){if(q==null)this.selection.setRange(null,R||j.sources.API);else{var z=V(q,R,D),U=m(z,4);q=U[0],R=U[1],D=U[3],this.selection.setRange(new h.Range(q,R),D),D!==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,D=new u.default().insert(q);return this.setContents(D,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,D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:a.default.sources.API;return B.call(this,function(){return q=new u.default(q),R.editor.applyDelta(q,D)},D,!0)}}]),j}();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:u.default,parchment:d.default,"core/module":c.default,"core/theme":N.default};function $(j,C){if(C=(0,O.default)(!0,{container:j,modules:{clipboard:!0,keyboard:!0,history:!0}},C),!C.theme||C.theme===P.DEFAULTS.theme)C.theme=N.default;else if(C.theme=P.import("themes/"+C.theme),C.theme==null)throw new Error("Invalid theme "+C.theme+". Did you register it?");var q=(0,O.default)(!0,{},C.theme.DEFAULTS);[q,C].forEach(function(z){z.modules=z.modules||{},Object.keys(z.modules).forEach(function(U){z.modules[U]===!0&&(z.modules[U]={})})});var R=Object.keys(q.modules).concat(Object.keys(C.modules)),D=R.reduce(function(z,U){var L=P.import("modules/"+U);return L==null?T.error("Cannot load "+U+" module. Are you sure you registered it?"):z[U]=L.DEFAULTS||{},z},{});return C.modules!=null&&C.modules.toolbar&&C.modules.toolbar.constructor!==Object&&(C.modules.toolbar={container:C.modules.toolbar}),C=(0,O.default)(!0,{},P.DEFAULTS,{modules:D},q,C),["bounds","container","scrollingContainer"].forEach(function(z){typeof C[z]=="string"&&(C[z]=document.querySelector(C[z]))}),C.modules=Object.keys(C.modules).reduce(function(z,U){return C.modules[U]&&(z[U]=C.modules[U]),z},{}),C}function B(j,C,q,R){if(this.options.strict&&!this.isEnabled()&&C===a.default.sources.USER)return new u.default;var D=q==null?null:this.getSelection(),z=this.editor.delta,U=j();if(D!=null&&(q===!0&&(q=D.index),R==null?D=Q(D,U,C):R!==0&&(D=Q(D,q,R,C)),this.setSelection(D,a.default.sources.SILENT)),U.length()>0){var L,I=[a.default.events.TEXT_CHANGE,U,z,C];if((L=this.emitter).emit.apply(L,[a.default.events.EDITOR_CHANGE].concat(I)),C!==a.default.sources.SILENT){var K;(K=this.emitter).emit.apply(K,I)}}return U}function V(j,C,q,R,D){var z={};return typeof j.index=="number"&&typeof j.length=="number"?typeof C!="number"?(D=R,R=q,q=C,C=j.length,j=j.index):(C=j.length,j=j.index):typeof C!="number"&&(D=R,R=q,q=C,C=0),(typeof q>"u"?"undefined":v(q))==="object"?(z=q,D=R):typeof q=="string"&&(R!=null?z[q]=R:D=q),D=D||a.default.sources.API,[j,C,z,D]}function Q(j,C,q,R){if(j==null)return null;var D=void 0,z=void 0;if(C instanceof u.default){var U=[j.index,j.index+j.length].map(function(G){return C.transformPosition(G,R!==a.default.sources.USER)}),L=m(U,2);D=L[0],z=L[1]}else{var I=[j.index,j.index+j.length].map(function(G){return G<C||G===C&&R===a.default.sources.USER?G:q>=0?G+q:Math.max(C,G+q)}),K=m(I,2);D=K[0],z=K[1]}return new h.Range(D,z-D)}n.expandConfig=$,n.overload=V,n.default=P},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var v=function(){function y(d,h){for(var b=0;b<h.length;b++){var f=h[b];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(d,f.key,f)}}return function(d,h,b){return h&&y(d.prototype,h),b&&y(d,b),d}}(),m=function y(d,h,b){d===null&&(d=Function.prototype);var f=Object.getOwnPropertyDescriptor(d,h);if(f===void 0){var O=Object.getPrototypeOf(d);return O===null?void 0:y(O,h,b)}else{if("value"in f)return f.value;var S=f.get;return S===void 0?void 0:S.call(b)}},g=i(7),_=l(g),u=i(0),s=l(u);function l(y){return y&&y.__esModule?y:{default:y}}function o(y,d){if(!(y instanceof d))throw new TypeError("Cannot call a class as a function")}function a(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 p(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 c=function(y){p(d,y);function d(){return o(this,d),a(this,(d.__proto__||Object.getPrototypeOf(d)).apply(this,arguments))}return v(d,[{key:"formatAt",value:function(b,f,O,S){if(d.compare(this.statics.blotName,O)<0&&s.default.query(O,s.default.Scope.BLOT)){var A=this.isolate(b,f);S&&A.wrap(O,S)}else m(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"formatAt",this).call(this,b,f,O,S)}},{key:"optimize",value:function(b){if(m(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"optimize",this).call(this,b),this.parent instanceof d&&d.compare(this.statics.blotName,this.parent.statics.blotName)>0){var f=this.parent.isolate(this.offset(),this.length());this.moveChildren(f),f.wrap(this)}}}],[{key:"compare",value:function(b,f){var O=d.order.indexOf(b),S=d.order.indexOf(f);return O>=0||S>=0?O-S:b===f?0:b<f?-1:1}}]),d}(s.default.Inline);c.allowedChildren=[c,s.default.Embed,_.default],c.order=["cursor","inline","underline","strike","italic","bold","script","link","code"],n.default=c},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var v=i(0),m=g(v);function g(o){return o&&o.__esModule?o:{default:o}}function _(o,a){if(!(o instanceof a))throw new TypeError("Cannot call a class as a function")}function u(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 s(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){s(a,o);function a(){return _(this,a),u(this,(a.__proto__||Object.getPrototypeOf(a)).apply(this,arguments))}return a}(m.default.Text);n.default=l},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var v=function(){function h(b,f){for(var O=0;O<f.length;O++){var S=f[O];S.enumerable=S.enumerable||!1,S.configurable=!0,"value"in S&&(S.writable=!0),Object.defineProperty(b,S.key,S)}}return function(b,f,O){return f&&h(b.prototype,f),O&&h(b,O),b}}(),m=function h(b,f,O){b===null&&(b=Function.prototype);var S=Object.getOwnPropertyDescriptor(b,f);if(S===void 0){var A=Object.getPrototypeOf(b);return A===null?void 0:h(A,f,O)}else{if("value"in S)return S.value;var k=S.get;return k===void 0?void 0:k.call(O)}},g=i(54),_=l(g),u=i(10),s=l(u);function l(h){return h&&h.__esModule?h:{default:h}}function o(h,b){if(!(h instanceof b))throw new TypeError("Cannot call a class as a function")}function a(h,b){if(!h)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return b&&(typeof b=="object"||typeof b=="function")?b:h}function p(h,b){if(typeof b!="function"&&b!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof b);h.prototype=Object.create(b&&b.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(h,b):h.__proto__=b)}var c=(0,s.default)("quill:events"),y=["selectionchange","mousedown","mouseup","click"];y.forEach(function(h){document.addEventListener(h,function(){for(var b=arguments.length,f=Array(b),O=0;O<b;O++)f[O]=arguments[O];[].slice.call(document.querySelectorAll(".ql-container")).forEach(function(S){if(S.__quill&&S.__quill.emitter){var A;(A=S.__quill.emitter).handleDOM.apply(A,f)}})})});var d=function(h){p(b,h);function b(){o(this,b);var f=a(this,(b.__proto__||Object.getPrototypeOf(b)).call(this));return f.listeners={},f.on("error",c.error),f}return v(b,[{key:"emit",value:function(){c.log.apply(c,arguments),m(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"emit",this).apply(this,arguments)}},{key:"handleDOM",value:function(O){for(var S=arguments.length,A=Array(S>1?S-1:0),k=1;k<S;k++)A[k-1]=arguments[k];(this.listeners[O.type]||[]).forEach(function(N){var x=N.node,E=N.handler;(O.target===x||x.contains(O.target))&&E.apply(void 0,[O].concat(A))})}},{key:"listenDOM",value:function(O,S,A){this.listeners[O]||(this.listeners[O]=[]),this.listeners[O].push({node:S,handler:A})}}]),b}(_.default);d.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"},d.sources={API:"api",SILENT:"silent",USER:"user"},n.default=d},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});function v(g,_){if(!(g instanceof _))throw new TypeError("Cannot call a class as a function")}var m=function g(_){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};v(this,g),this.quill=_,this.options=u};m.DEFAULTS={},n.default=m},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var v=["error","warn","log","info"],m="warn";function g(u){if(v.indexOf(u)<=v.indexOf(m)){for(var s,l=arguments.length,o=Array(l>1?l-1:0),a=1;a<l;a++)o[a-1]=arguments[a];(s=console)[u].apply(s,o)}}function _(u){return v.reduce(function(s,l){return s[l]=g.bind(console,l,u),s},{})}g.level=_.level=function(u){m=u},n.default=_},function(r,n,i){var v=Array.prototype.slice,m=i(52),g=i(53),_=r.exports=function(o,a,p){return p||(p={}),o===a?!0:o instanceof Date&&a instanceof Date?o.getTime()===a.getTime():!o||!a||typeof o!="object"&&typeof a!="object"?p.strict?o===a:o==a:l(o,a,p)};function u(o){return o==null}function s(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,p){var c,y;if(u(o)||u(a)||o.prototype!==a.prototype)return!1;if(g(o))return g(a)?(o=v.call(o),a=v.call(a),_(o,a,p)):!1;if(s(o)){if(!s(a)||o.length!==a.length)return!1;for(c=0;c<o.length;c++)if(o[c]!==a[c])return!1;return!0}try{var d=m(o),h=m(a)}catch{return!1}if(d.length!=h.length)return!1;for(d.sort(),h.sort(),c=d.length-1;c>=0;c--)if(d[c]!=h[c])return!1;for(c=d.length-1;c>=0;c--)if(y=d[c],!_(o[y],a[y],p))return!1;return typeof o==typeof a}},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var v=i(1),m=function(){function g(_,u,s){s===void 0&&(s={}),this.attrName=_,this.keyName=u;var l=v.Scope.TYPE&v.Scope.ATTRIBUTE;s.scope!=null?this.scope=s.scope&v.Scope.LEVEL|l:this.scope=v.Scope.ATTRIBUTE,s.whitelist!=null&&(this.whitelist=s.whitelist)}return g.keys=function(_){return[].map.call(_.attributes,function(u){return u.name})},g.prototype.add=function(_,u){return this.canAdd(_,u)?(_.setAttribute(this.keyName,u),!0):!1},g.prototype.canAdd=function(_,u){var s=v.query(_,v.Scope.BLOT&(this.scope|v.Scope.TYPE));return s==null?!1:this.whitelist==null?!0:typeof u=="string"?this.whitelist.indexOf(u.replace(/["']/g,""))>-1:this.whitelist.indexOf(u)>-1},g.prototype.remove=function(_){_.removeAttribute(this.keyName)},g.prototype.value=function(_){var u=_.getAttribute(this.keyName);return this.canAdd(_,u)&&u?u:""},g}();n.default=m},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.default=n.Code=void 0;var v=function(){function k(N,x){var E=[],w=!0,T=!1,P=void 0;try{for(var $=N[Symbol.iterator](),B;!(w=(B=$.next()).done)&&(E.push(B.value),!(x&&E.length===x));w=!0);}catch(V){T=!0,P=V}finally{try{!w&&$.return&&$.return()}finally{if(T)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")}}(),m=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}}(),g=function k(N,x,E){N===null&&(N=Function.prototype);var w=Object.getOwnPropertyDescriptor(N,x);if(w===void 0){var T=Object.getPrototypeOf(N);return T===null?void 0:k(T,x,E)}else{if("value"in w)return w.value;var P=w.get;return P===void 0?void 0:P.call(E)}},_=i(2),u=h(_),s=i(0),l=h(s),o=i(4),a=h(o),p=i(6),c=h(p),y=i(7),d=h(y);function h(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 f(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 O(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 S=function(k){O(N,k);function N(){return b(this,N),f(this,(N.__proto__||Object.getPrototypeOf(N)).apply(this,arguments))}return N}(c.default);S.blotName="code",S.tagName="CODE";var A=function(k){O(N,k);function N(){return b(this,N),f(this,(N.__proto__||Object.getPrototypeOf(N)).apply(this,arguments))}return m(N,[{key:"delta",value:function(){var E=this,w=this.domNode.textContent;return w.endsWith(`
`)&&(w=w.slice(0,-1)),w.split(`
`).reduce(function(T,P){return T.insert(P).insert(`
`,E.formats())},new u.default)}},{key:"format",value:function(E,w){if(!(E===this.statics.blotName&&w)){var T=this.descendant(d.default,this.length()-1),P=v(T,1),$=P[0];$!=null&&$.deleteAt($.length()-1,1),g(N.prototype.__proto__||Object.getPrototypeOf(N.prototype),"format",this).call(this,E,w)}}},{key:"formatAt",value:function(E,w,T,P){if(w!==0&&!(l.default.query(T,l.default.Scope.BLOCK)==null||T===this.statics.blotName&&P===this.statics.formats(this.domNode))){var $=this.newlineIndex(E);if(!($<0||$>=E+w)){var B=this.newlineIndex(E,!0)+1,V=$-B+1,Q=this.isolate(B,V),j=Q.next;Q.format(T,P),j instanceof N&&j.formatAt(0,E-B+w-V,T,P)}}}},{key:"insertAt",value:function(E,w,T){if(T==null){var P=this.descendant(d.default,E),$=v(P,2),B=$[0],V=$[1];B.insertAt(V,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 T=this.domNode.textContent.slice(E).indexOf(`
`);return T>-1?E+T:-1}},{key:"optimize",value:function(E){this.domNode.textContent.endsWith(`
`)||this.appendChild(l.default.create("text",`
`)),g(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){g(N.prototype.__proto__||Object.getPrototypeOf(N.prototype),"replace",this).call(this,E),[].slice.call(this.domNode.querySelectorAll("*")).forEach(function(w){var T=l.default.find(w);T==null?w.parentNode.removeChild(w):T instanceof l.default.Embed?T.remove():T.unwrap()})}}],[{key:"create",value:function(E){var w=g(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=" ",n.Code=S,n.default=A},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var v=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(j){return typeof j}:function(j){return j&&typeof Symbol=="function"&&j.constructor===Symbol&&j!==Symbol.prototype?"symbol":typeof j},m=function(){function j(C,q){var R=[],D=!0,z=!1,U=void 0;try{for(var L=C[Symbol.iterator](),I;!(D=(I=L.next()).done)&&(R.push(I.value),!(q&&R.length===q));D=!0);}catch(K){z=!0,U=K}finally{try{!D&&L.return&&L.return()}finally{if(z)throw U}}return R}return function(C,q){if(Array.isArray(C))return C;if(Symbol.iterator in Object(C))return j(C,q);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),g=function(){function j(C,q){for(var R=0;R<q.length;R++){var D=q[R];D.enumerable=D.enumerable||!1,D.configurable=!0,"value"in D&&(D.writable=!0),Object.defineProperty(C,D.key,D)}}return function(C,q,R){return q&&j(C.prototype,q),R&&j(C,R),C}}(),_=i(2),u=w(_),s=i(20),l=w(s),o=i(0),a=w(o),p=i(13),c=w(p),y=i(24),d=w(y),h=i(4),b=w(h),f=i(16),O=w(f),S=i(21),A=w(S),k=i(11),N=w(k),x=i(3),E=w(x);function w(j){return j&&j.__esModule?j:{default:j}}function T(j,C,q){return C in j?Object.defineProperty(j,C,{value:q,enumerable:!0,configurable:!0,writable:!0}):j[C]=q,j}function P(j,C){if(!(j instanceof C))throw new TypeError("Cannot call a class as a function")}var $=/^[ -~]*$/,B=function(){function j(C){P(this,j),this.scroll=C,this.delta=this.getDelta()}return g(j,[{key:"applyDelta",value:function(q){var R=this,D=!1;this.scroll.update();var z=this.scroll.length();return this.scroll.batchStart(),q=Q(q),q.reduce(function(U,L){var I=L.retain||L.delete||L.insert.length||1,K=L.attributes||{};if(L.insert!=null){if(typeof L.insert=="string"){var G=L.insert;G.endsWith(`
`)&&D&&(D=!1,G=G.slice(0,-1)),U>=z&&!G.endsWith(`
`)&&(D=!0),R.scroll.insertAt(U,G);var F=R.scroll.line(U),M=m(F,2),H=M[0],X=M[1],ee=(0,E.default)({},(0,h.bubbleFormats)(H));if(H instanceof b.default){var Z=H.descendant(a.default.Leaf,X),ne=m(Z,1),ae=ne[0];ee=(0,E.default)(ee,(0,h.bubbleFormats)(ae))}K=l.default.attributes.diff(ee,K)||{}}else if(v(L.insert)==="object"){var W=Object.keys(L.insert)[0];if(W==null)return U;R.scroll.insertAt(U,W,L.insert[W])}z+=I}return Object.keys(K).forEach(function(Y){R.scroll.formatAt(U,I,Y,K[Y])}),U+I},0),q.reduce(function(U,L){return typeof L.delete=="number"?(R.scroll.deleteAt(U,L.delete),U):U+(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 u.default().retain(q).delete(R))}},{key:"formatLine",value:function(q,R){var D=this,z=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.scroll.update(),Object.keys(z).forEach(function(U){if(!(D.scroll.whitelist!=null&&!D.scroll.whitelist[U])){var L=D.scroll.lines(q,Math.max(R,1)),I=R;L.forEach(function(K){var G=K.length();if(!(K instanceof c.default))K.format(U,z[U]);else{var F=q-K.offset(D.scroll),M=K.newlineIndex(F+I)-F+1;K.formatAt(F,M,U,z[U])}I-=G})}}),this.scroll.optimize(),this.update(new u.default().retain(q).retain(R,(0,A.default)(z)))}},{key:"formatText",value:function(q,R){var D=this,z=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Object.keys(z).forEach(function(U){D.scroll.formatAt(q,R,U,z[U])}),this.update(new u.default().retain(q).retain(R,(0,A.default)(z)))}},{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 u.default)}},{key:"getFormat",value:function(q){var R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,D=[],z=[];R===0?this.scroll.path(q).forEach(function(L){var I=m(L,1),K=I[0];K instanceof b.default?D.push(K):K instanceof a.default.Leaf&&z.push(K)}):(D=this.scroll.lines(q,R),z=this.scroll.descendants(a.default.Leaf,q,R));var U=[D,z].map(function(L){if(L.length===0)return{};for(var I=(0,h.bubbleFormats)(L.shift());Object.keys(I).length>0;){var K=L.shift();if(K==null)return I;I=V((0,h.bubbleFormats)(K),I)}return I});return E.default.apply(E.default,U)}},{key:"getText",value:function(q,R){return this.getContents(q,R).filter(function(D){return typeof D.insert=="string"}).map(function(D){return D.insert}).join("")}},{key:"insertEmbed",value:function(q,R,D){return this.scroll.insertAt(q,R,D),this.update(new u.default().retain(q).insert(T({},R,D)))}},{key:"insertText",value:function(q,R){var D=this,z=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(z).forEach(function(U){D.scroll.formatAt(q,R.length,U,z[U])}),this.update(new u.default().retain(q).insert(R,(0,A.default)(z)))}},{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 O.default}},{key:"removeFormat",value:function(q,R){var D=this.getText(q,R),z=this.scroll.line(q+R),U=m(z,2),L=U[0],I=U[1],K=0,G=new u.default;L!=null&&(L instanceof c.default?K=L.newlineIndex(I)-I+1:K=L.length()-I,G=L.delta().slice(I,I+K-1).insert(`
`));var F=this.getContents(q,R+K),M=F.diff(new u.default().insert(D).concat(G)),H=new u.default().retain(q).concat(M);return this.applyDelta(H)}},{key:"update",value:function(q){var R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],D=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0,z=this.delta;if(R.length===1&&R[0].type==="characterData"&&R[0].target.data.match($)&&a.default.find(R[0].target)){var U=a.default.find(R[0].target),L=(0,h.bubbleFormats)(U),I=U.offset(this.scroll),K=R[0].oldValue.replace(d.default.CONTENTS,""),G=new u.default().insert(K),F=new u.default().insert(U.value()),M=new u.default().retain(I).concat(G.diff(F,D));q=M.reduce(function(H,X){return X.insert?H.insert(X.insert,L):H.push(X)},new u.default),this.delta=z.compose(q)}else this.delta=this.getDelta(),(!q||!(0,N.default)(z.compose(q),this.delta))&&(q=z.diff(this.delta,D));return q}}]),j}();function V(j,C){return Object.keys(C).reduce(function(q,R){return j[R]==null||(C[R]===j[R]?q[R]=C[R]:Array.isArray(C[R])?C[R].indexOf(j[R])<0&&(q[R]=C[R].concat([j[R]])):q[R]=[C[R],j[R]]),q},{})}function Q(j){return j.reduce(function(C,q){if(q.insert===1){var R=(0,A.default)(q.attributes);return delete R.image,C.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 D=q.insert.replace(/\r\n/g,`
`).replace(/\r/g,`
`);return C.insert(D,q.attributes)}return C.push(q)},new u.default)}n.default=B},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.default=n.Range=void 0;var v=function(){function k(N,x){var E=[],w=!0,T=!1,P=void 0;try{for(var $=N[Symbol.iterator](),B;!(w=(B=$.next()).done)&&(E.push(B.value),!(x&&E.length===x));w=!0);}catch(V){T=!0,P=V}finally{try{!w&&$.return&&$.return()}finally{if(T)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")}}(),m=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}}(),g=i(0),_=d(g),u=i(21),s=d(u),l=i(11),o=d(l),a=i(8),p=d(a),c=i(10),y=d(c);function d(k){return k&&k.__esModule?k:{default:k}}function h(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 f=(0,y.default)("quill:selection"),O=function k(N){var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;b(this,k),this.index=N,this.length=x},S=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=_.default.create("cursor",this),this.lastRange=this.savedRange=new O(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,function(){E.mouseDown||setTimeout(E.update.bind(E,p.default.sources.USER),1)}),this.emitter.on(p.default.events.EDITOR_CHANGE,function(w,T){w===p.default.events.TEXT_CHANGE&&T.length()>0&&E.update(p.default.sources.SILENT)}),this.emitter.on(p.default.events.SCROLL_BEFORE_UPDATE,function(){if(!!E.hasFocus()){var w=E.getNativeRange();w!=null&&w.start.node!==E.cursor.textNode&&E.emitter.once(p.default.events.SCROLL_UPDATE,function(){try{E.setNativeRange(w.start.node,w.start.offset,w.end.node,w.end.offset)}catch{}})}}),this.emitter.on(p.default.events.SCROLL_OPTIMIZE,function(w,T){if(T.range){var P=T.range,$=P.startNode,B=P.startOffset,V=P.endNode,Q=P.endOffset;E.setNativeRange($,B,V,Q)}}),this.update(p.default.sources.SILENT)}return m(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(p.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||_.default.query(x,_.default.Scope.BLOCK))){if(w.start.node!==this.cursor.textNode){var T=_.default.find(w.start.node,!1);if(T==null)return;if(T instanceof _.default.Leaf){var P=T.split(w.start.offset);T.parent.insertBefore(this.cursor,P)}else T.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 T=void 0,P=this.scroll.leaf(x),$=v(P,2),B=$[0],V=$[1];if(B==null)return null;var Q=B.position(V,!0),j=v(Q,2);T=j[0],V=j[1];var C=document.createRange();if(E>0){C.setStart(T,V);var q=this.scroll.leaf(x+E),R=v(q,2);if(B=R[0],V=R[1],B==null)return null;var D=B.position(V,!0),z=v(D,2);return T=z[0],V=z[1],C.setEnd(T,V),C.getBoundingClientRect()}else{var U="left",L=void 0;return T instanceof Text?(V<T.data.length?(C.setStart(T,V),C.setEnd(T,V+1)):(C.setStart(T,V-1),C.setEnd(T,V),U="right"),L=C.getBoundingClientRect()):(L=B.domNode.getBoundingClientRect(),V>0&&(U="right")),{bottom:L.top+L.height,height:L.height,left:L[U],right:L[U],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 f.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 T=w.map(function(B){var V=v(B,2),Q=V[0],j=V[1],C=_.default.find(Q,!0),q=C.offset(E.scroll);return j===0?q:C instanceof _.default.Container?q+C.length():q+C.index(Q,j)}),P=Math.min(Math.max.apply(Math,h(T)),this.scroll.length()-1),$=Math.min.apply(Math,[P].concat(h(T)));return new O($,P-$)}},{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 T=w.node,P=w.offset;!(T instanceof Text)&&T.childNodes.length>0;)if(T.childNodes.length>P)T=T.childNodes[P],P=0;else if(T.childNodes.length===P)T=T.lastChild,P=T instanceof Text?T.data.length:T.childNodes.length+1;else break;w.node=T,w.offset=P}),E}},{key:"rangeToNative",value:function(x){var E=this,w=x.collapsed?[x.index]:[x.index,x.index+x.length],T=[],P=this.scroll.length();return w.forEach(function($,B){$=Math.min(P-1,$);var V=void 0,Q=E.scroll.leaf($),j=v(Q,2),C=j[0],q=j[1],R=C.position(q,B!==0),D=v(R,2);V=D[0],q=D[1],T.push(V,q)}),T.length<2&&(T=T.concat(T)),T}},{key:"scrollIntoView",value:function(x){var E=this.lastRange;if(E!=null){var w=this.getBounds(E.index,E.length);if(w!=null){var T=this.scroll.length()-1,P=this.scroll.line(Math.min(E.index,T)),$=v(P,1),B=$[0],V=B;if(E.length>0){var Q=this.scroll.line(Math.min(E.index+E.length,T)),j=v(Q,1);V=j[0]}if(!(B==null||V==null)){var C=x.getBoundingClientRect();w.top<C.top?x.scrollTop-=C.top-w.top:w.bottom>C.bottom&&(x.scrollTop+=w.bottom-C.bottom)}}}}},{key:"setNativeRange",value:function(x,E){var w=arguments.length>2&&arguments[2]!==void 0?arguments[2]:x,T=arguments.length>3&&arguments[3]!==void 0?arguments[3]:E,P=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(f.info("setNativeRange",x,E,w,T),!(x!=null&&(this.root.parentNode==null||x.parentNode==null||w.parentNode==null))){var $=document.getSelection();if($!=null)if(x!=null){this.hasFocus()||this.root.focus();var B=(this.getNativeRange()||{}).native;if(B==null||P||x!==B.startContainer||E!==B.startOffset||w!==B.endContainer||T!==B.endOffset){x.tagName=="BR"&&(E=[].indexOf.call(x.parentNode.childNodes,x),x=x.parentNode),w.tagName=="BR"&&(T=[].indexOf.call(w.parentNode.childNodes,w),w=w.parentNode);var V=document.createRange();V.setStart(x,E),V.setEnd(w,T),$.removeAllRanges(),$.addRange(V)}}else $.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]:p.default.sources.API;if(typeof E=="string"&&(w=E,E=!1),f.info("setRange",x),x!=null){var T=this.rangeToNative(x);this.setNativeRange.apply(this,h(T).concat([E]))}else this.setNativeRange(null);this.update(w)}},{key:"update",value:function(){var x=arguments.length>0&&arguments[0]!==void 0?arguments[0]:p.default.sources.USER,E=this.lastRange,w=this.getRange(),T=v(w,2),P=T[0],$=T[1];if(this.lastRange=P,this.lastRange!=null&&(this.savedRange=this.lastRange),!(0,o.default)(E,this.lastRange)){var B;!this.composing&&$!=null&&$.native.collapsed&&$.start.node!==this.cursor.textNode&&this.cursor.restore();var V=[p.default.events.SELECTION_CHANGE,(0,s.default)(this.lastRange),(0,s.default)(E),x];if((B=this.emitter).emit.apply(B,[p.default.events.EDITOR_CHANGE].concat(V)),x!==p.default.sources.SILENT){var Q;(Q=this.emitter).emit.apply(Q,V)}}}}]),k}();function A(k,N){try{N.parentNode}catch{return!1}return N instanceof Text&&(N=N.parentNode),k.contains(N)}n.Range=O,n.default=S},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var v=function(){function p(c,y){for(var d=0;d<y.length;d++){var h=y[d];h.enumerable=h.enumerable||!1,h.configurable=!0,"value"in h&&(h.writable=!0),Object.defineProperty(c,h.key,h)}}return function(c,y,d){return y&&p(c.prototype,y),d&&p(c,d),c}}(),m=function p(c,y,d){c===null&&(c=Function.prototype);var h=Object.getOwnPropertyDescriptor(c,y);if(h===void 0){var b=Object.getPrototypeOf(c);return b===null?void 0:p(b,y,d)}else{if("value"in h)return h.value;var f=h.get;return f===void 0?void 0:f.call(d)}},g=i(0),_=u(g);function u(p){return p&&p.__esModule?p:{default:p}}function s(p,c){if(!(p instanceof c))throw new TypeError("Cannot call a class as a function")}function l(p,c){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return c&&(typeof c=="object"||typeof c=="function")?c:p}function o(p,c){if(typeof c!="function"&&c!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof c);p.prototype=Object.create(c&&c.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),c&&(Object.setPrototypeOf?Object.setPrototypeOf(p,c):p.__proto__=c)}var a=function(p){o(c,p);function c(){return s(this,c),l(this,(c.__proto__||Object.getPrototypeOf(c)).apply(this,arguments))}return v(c,[{key:"insertInto",value:function(d,h){d.children.length===0?m(c.prototype.__proto__||Object.getPrototypeOf(c.prototype),"insertInto",this).call(this,d,h):this.remove()}},{key:"length",value:function(){return 0}},{key:"value",value:function(){return""}}],[{key:"value",value:function(){}}]),c}(_.default.Embed);a.blotName="break",a.tagName="BR",n.default=a},function(r,n,i){var v=this&&this.__extends||function(){var l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,a){o.__proto__=a}||function(o,a){for(var p in a)a.hasOwnProperty(p)&&(o[p]=a[p])};return function(o,a){l(o,a);function p(){this.constructor=o}o.prototype=a===null?Object.create(a):(p.prototype=a.prototype,new p)}}();Object.defineProperty(n,"__esModule",{value:!0});var m=i(44),g=i(30),_=i(1),u=function(l){v(o,l);function o(a){var p=l.call(this,a)||this;return p.build(),p}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 m.default,[].slice.call(this.domNode.childNodes).reverse().forEach(function(p){try{var c=s(p);a.insertBefore(c,a.children.head||void 0)}catch(y){if(y instanceof _.ParchmentError)return;throw y}})},o.prototype.deleteAt=function(a,p){if(a===0&&p===this.length())return this.remove();this.children.forEachAt(a,p,function(c,y,d){c.deleteAt(y,d)})},o.prototype.descendant=function(a,p){var c=this.children.find(p),y=c[0],d=c[1];return a.blotName==null&&a(y)||a.blotName!=null&&y instanceof a?[y,d]:y instanceof o?y.descendant(a,d):[null,-1]},o.prototype.descendants=function(a,p,c){p===void 0&&(p=0),c===void 0&&(c=Number.MAX_VALUE);var y=[],d=c;return this.children.forEachAt(p,c,function(h,b,f){(a.blotName==null&&a(h)||a.blotName!=null&&h instanceof a)&&y.push(h),h instanceof o&&(y=y.concat(h.descendants(a,b,d))),d-=f}),y},o.prototype.detach=function(){this.children.forEach(function(a){a.detach()}),l.prototype.detach.call(this)},o.prototype.formatAt=function(a,p,c,y){this.children.forEachAt(a,p,function(d,h,b){d.formatAt(h,b,c,y)})},o.prototype.insertAt=function(a,p,c){var y=this.children.find(a),d=y[0],h=y[1];if(d)d.insertAt(h,p,c);else{var b=c==null?_.create("text",p):_.create(p,c);this.appendChild(b)}},o.prototype.insertBefore=function(a,p){if(this.statics.allowedChildren!=null&&!this.statics.allowedChildren.some(function(c){return a instanceof c}))throw new _.ParchmentError("Cannot insert "+a.statics.blotName+" into "+this.statics.blotName);a.insertInto(this,p)},o.prototype.length=function(){return this.children.reduce(function(a,p){return a+p.length()},0)},o.prototype.moveChildren=function(a,p){this.children.forEach(function(c){a.insertBefore(c,p)})},o.prototype.optimize=function(a){if(l.prototype.optimize.call(this,a),this.children.length===0)if(this.statics.defaultChild!=null){var p=_.create(this.statics.defaultChild);this.appendChild(p),p.optimize(a)}else this.remove()},o.prototype.path=function(a,p){p===void 0&&(p=!1);var c=this.children.find(a,p),y=c[0],d=c[1],h=[[this,a]];return y instanceof o?h.concat(y.path(d,p)):(y!=null&&h.push([y,d]),h)},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,p){if(p===void 0&&(p=!1),!p){if(a===0)return this;if(a===this.length())return this.next}var c=this.clone();return this.parent.insertBefore(c,this.next),this.children.forEachAt(a,this.length(),function(y,d,h){y=y.split(d,p),c.appendChild(y)}),c},o.prototype.unwrap=function(){this.moveChildren(this.parent,this.next),this.remove()},o.prototype.update=function(a,p){var c=this,y=[],d=[];a.forEach(function(h){h.target===c.domNode&&h.type==="childList"&&(y.push.apply(y,h.addedNodes),d.push.apply(d,h.removedNodes))}),d.forEach(function(h){if(!(h.parentNode!=null&&h.tagName!=="IFRAME"&&document.body.compareDocumentPosition(h)&Node.DOCUMENT_POSITION_CONTAINED_BY)){var b=_.find(h);b!=null&&(b.domNode.parentNode==null||b.domNode.parentNode===c.domNode)&&b.detach()}}),y.filter(function(h){return h.parentNode==c.domNode}).sort(function(h,b){return h===b?0:h.compareDocumentPosition(b)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1}).forEach(function(h){var b=null;h.nextSibling!=null&&(b=_.find(h.nextSibling));var f=s(h);(f.next!=b||f.next==null)&&(f.parent!=null&&f.parent.removeChild(c),c.insertBefore(f,b||void 0))})},o}(g.default);function s(l){var o=_.find(l);if(o==null)try{o=_.create(l)}catch{o=_.create(_.Scope.INLINE),[].slice.call(l.childNodes).forEach(function(p){o.domNode.appendChild(p)}),l.parentNode&&l.parentNode.replaceChild(o.domNode,l),o.attach()}return o}n.default=u},function(r,n,i){var v=this&&this.__extends||function(){var l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,a){o.__proto__=a}||function(o,a){for(var p in a)a.hasOwnProperty(p)&&(o[p]=a[p])};return function(o,a){l(o,a);function p(){this.constructor=o}o.prototype=a===null?Object.create(a):(p.prototype=a.prototype,new p)}}();Object.defineProperty(n,"__esModule",{value:!0});var m=i(12),g=i(31),_=i(17),u=i(1),s=function(l){v(o,l);function o(a){var p=l.call(this,a)||this;return p.attributes=new g.default(p.domNode),p}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,p){var c=u.query(a);c instanceof m.default?this.attributes.attribute(c,p):p&&c!=null&&(a!==this.statics.blotName||this.formats()[a]!==p)&&this.replaceWith(a,p)},o.prototype.formats=function(){var a=this.attributes.values(),p=this.statics.formats(this.domNode);return p!=null&&(a[this.statics.blotName]=p),a},o.prototype.replaceWith=function(a,p){var c=l.prototype.replaceWith.call(this,a,p);return this.attributes.copy(c),c},o.prototype.update=function(a,p){var c=this;l.prototype.update.call(this,a,p),a.some(function(y){return y.target===c.domNode&&y.type==="attributes"})&&this.attributes.build()},o.prototype.wrap=function(a,p){var c=l.prototype.wrap.call(this,a,p);return c instanceof o&&c.statics.scope===this.statics.scope&&this.attributes.move(c),c},o}(_.default);n.default=s},function(r,n,i){var v=this&&this.__extends||function(){var u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,l){s.__proto__=l}||function(s,l){for(var o in l)l.hasOwnProperty(o)&&(s[o]=l[o])};return function(s,l){u(s,l);function o(){this.constructor=s}s.prototype=l===null?Object.create(l):(o.prototype=l.prototype,new o)}}();Object.defineProperty(n,"__esModule",{value:!0});var m=i(30),g=i(1),_=function(u){v(s,u);function s(){return u!==null&&u.apply(this,arguments)||this}return s.value=function(l){return!0},s.prototype.index=function(l,o){return this.domNode===l||this.domNode.compareDocumentPosition(l)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(o,1):-1},s.prototype.position=function(l,o){var a=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);return l>0&&(a+=1),[this.parent.domNode,a]},s.prototype.value=function(){var l;return l={},l[this.statics.blotName]=this.statics.value(this.domNode)||!0,l},s.scope=g.Scope.INLINE_BLOT,s}(m.default);n.default=_},function(r,n,i){var v=i(11),m=i(3),g={attributes:{compose:function(u,s,l){typeof u!="object"&&(u={}),typeof s!="object"&&(s={});var o=m(!0,{},s);l||(o=Object.keys(o).reduce(function(p,c){return o[c]!=null&&(p[c]=o[c]),p},{}));for(var a in u)u[a]!==void 0&&s[a]===void 0&&(o[a]=u[a]);return Object.keys(o).length>0?o:void 0},diff:function(u,s){typeof u!="object"&&(u={}),typeof s!="object"&&(s={});var l=Object.keys(u).concat(Object.keys(s)).reduce(function(o,a){return v(u[a],s[a])||(o[a]=s[a]===void 0?null:s[a]),o},{});return Object.keys(l).length>0?l:void 0},transform:function(u,s,l){if(typeof u!="object")return s;if(typeof s=="object"){if(!l)return s;var o=Object.keys(s).reduce(function(a,p){return u[p]===void 0&&(a[p]=s[p]),a},{});return Object.keys(o).length>0?o:void 0}}},iterator:function(u){return new _(u)},length:function(u){return typeof u.delete=="number"?u.delete:typeof u.retain=="number"?u.retain:typeof u.insert=="string"?u.insert.length:1}};function _(u){this.ops=u,this.index=0,this.offset=0}_.prototype.hasNext=function(){return this.peekLength()<1/0},_.prototype.next=function(u){u||(u=1/0);var s=this.ops[this.index];if(s){var l=this.offset,o=g.length(s);if(u>=o-l?(u=o-l,this.index+=1,this.offset=0):this.offset+=u,typeof s.delete=="number")return{delete:u};var a={};return s.attributes&&(a.attributes=s.attributes),typeof s.retain=="number"?a.retain=u:typeof s.insert=="string"?a.insert=s.insert.substr(l,u):a.insert=s.insert,a}else return{retain:1/0}},_.prototype.peek=function(){return this.ops[this.index]},_.prototype.peekLength=function(){return this.ops[this.index]?g.length(this.ops[this.index])-this.offset:1/0},_.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"},_.prototype.rest=function(){if(this.hasNext()){if(this.offset===0)return this.ops.slice(this.index);var u=this.offset,s=this.index,l=this.next(),o=this.ops.slice(this.index);return this.offset=u,this.index=s,[l].concat(o)}else return[]},r.exports=g},function(r,n){var i=function(){function v(c,y){return y!=null&&c instanceof y}var m;try{m=Map}catch{m=function(){}}var g;try{g=Set}catch{g=function(){}}var _;try{_=Promise}catch{_=function(){}}function u(c,y,d,h,b){typeof y=="object"&&(d=y.depth,h=y.prototype,b=y.includeNonEnumerable,y=y.circular);var f=[],O=[],S=typeof Buffer<"u";typeof y>"u"&&(y=!0),typeof d>"u"&&(d=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(v(k,m))x=new m;else if(v(k,g))x=new g;else if(v(k,_))x=new _(function(C,q){k.then(function(R){C(A(R,N-1))},function(R){q(A(R,N-1))})});else if(u.__isArray(k))x=[];else if(u.__isRegExp(k))x=new RegExp(k.source,p(k)),k.lastIndex&&(x.lastIndex=k.lastIndex);else if(u.__isDate(k))x=new Date(k.getTime());else{if(S&&Buffer.isBuffer(k))return Buffer.allocUnsafe?x=Buffer.allocUnsafe(k.length):x=new Buffer(k.length),k.copy(x),x;v(k,Error)?x=Object.create(k):typeof h>"u"?(E=Object.getPrototypeOf(k),x=Object.create(E)):(x=Object.create(h),E=h)}if(y){var w=f.indexOf(k);if(w!=-1)return O[w];f.push(k),O.push(x)}v(k,m)&&k.forEach(function(C,q){var R=A(q,N-1),D=A(C,N-1);x.set(R,D)}),v(k,g)&&k.forEach(function(C){var q=A(C,N-1);x.add(q)});for(var T in k){var P;E&&(P=Object.getOwnPropertyDescriptor(E,T)),!(P&&P.set==null)&&(x[T]=A(k[T],N-1))}if(Object.getOwnPropertySymbols)for(var $=Object.getOwnPropertySymbols(k),T=0;T<$.length;T++){var B=$[T],V=Object.getOwnPropertyDescriptor(k,B);V&&!V.enumerable&&!b||(x[B]=A(k[B],N-1),V.enumerable||Object.defineProperty(x,B,{enumerable:!1}))}if(b)for(var Q=Object.getOwnPropertyNames(k),T=0;T<Q.length;T++){var j=Q[T],V=Object.getOwnPropertyDescriptor(k,j);V&&V.enumerable||(x[j]=A(k[j],N-1),Object.defineProperty(x,j,{enumerable:!1}))}return x}return A(c,d)}u.clonePrototype=function(y){if(y===null)return null;var d=function(){};return d.prototype=y,new d};function s(c){return Object.prototype.toString.call(c)}u.__objToStr=s;function l(c){return typeof c=="object"&&s(c)==="[object Date]"}u.__isDate=l;function o(c){return typeof c=="object"&&s(c)==="[object Array]"}u.__isArray=o;function a(c){return typeof c=="object"&&s(c)==="[object RegExp]"}u.__isRegExp=a;function p(c){var y="";return c.global&&(y+="g"),c.ignoreCase&&(y+="i"),c.multiline&&(y+="m"),y}return u.__getRegExpFlags=p,u}();typeof r=="object"&&r.exports&&(r.exports=i)},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var v=function(){function x(E,w){var T=[],P=!0,$=!1,B=void 0;try{for(var V=E[Symbol.iterator](),Q;!(P=(Q=V.next()).done)&&(T.push(Q.value),!(w&&T.length===w));P=!0);}catch(j){$=!0,B=j}finally{try{!P&&V.return&&V.return()}finally{if($)throw B}}return T}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")}}(),m=function(){function x(E,w){for(var T=0;T<w.length;T++){var P=w[T];P.enumerable=P.enumerable||!1,P.configurable=!0,"value"in P&&(P.writable=!0),Object.defineProperty(E,P.key,P)}}return function(E,w,T){return w&&x(E.prototype,w),T&&x(E,T),E}}(),g=function x(E,w,T){E===null&&(E=Function.prototype);var P=Object.getOwnPropertyDescriptor(E,w);if(P===void 0){var $=Object.getPrototypeOf(E);return $===null?void 0:x($,w,T)}else{if("value"in P)return P.value;var B=P.get;return B===void 0?void 0:B.call(T)}},_=i(0),u=f(_),s=i(8),l=f(s),o=i(4),a=f(o),p=i(16),c=f(p),y=i(13),d=f(y),h=i(25),b=f(h);function f(x){return x&&x.__esModule?x:{default:x}}function O(x,E){if(!(x instanceof E))throw new TypeError("Cannot call a class as a function")}function S(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,T){O(this,E);var P=S(this,(E.__proto__||Object.getPrototypeOf(E)).call(this,w));return P.emitter=T.emitter,Array.isArray(T.whitelist)&&(P.whitelist=T.whitelist.reduce(function($,B){return $[B]=!0,$},{})),P.domNode.addEventListener("DOMNodeInserted",function(){}),P.optimize(),P.enable(),P}return m(E,[{key:"batchStart",value:function(){this.batch=!0}},{key:"batchEnd",value:function(){this.batch=!1,this.optimize()}},{key:"deleteAt",value:function(T,P){var $=this.line(T),B=v($,2),V=B[0],Q=B[1],j=this.line(T+P),C=v(j,1),q=C[0];if(g(E.prototype.__proto__||Object.getPrototypeOf(E.prototype),"deleteAt",this).call(this,T,P),q!=null&&V!==q&&Q>0){if(V instanceof o.BlockEmbed||q instanceof o.BlockEmbed){this.optimize();return}if(V instanceof d.default){var R=V.newlineIndex(V.length(),!0);if(R>-1&&(V=V.split(R+1),V===q)){this.optimize();return}}else if(q instanceof d.default){var D=q.newlineIndex(0);D>-1&&q.split(D+1)}var z=q.children.head instanceof c.default?null:q.children.head;V.moveChildren(q,z),V.remove()}this.optimize()}},{key:"enable",value:function(){var T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.domNode.setAttribute("contenteditable",T)}},{key:"formatAt",value:function(T,P,$,B){this.whitelist!=null&&!this.whitelist[$]||(g(E.prototype.__proto__||Object.getPrototypeOf(E.prototype),"formatAt",this).call(this,T,P,$,B),this.optimize())}},{key:"insertAt",value:function(T,P,$){if(!($!=null&&this.whitelist!=null&&!this.whitelist[P])){if(T>=this.length())if($==null||u.default.query(P,u.default.Scope.BLOCK)==null){var B=u.default.create(this.statics.defaultChild);this.appendChild(B),$==null&&P.endsWith(`
`)&&(P=P.slice(0,-1)),B.insertAt(0,P,$)}else{var V=u.default.create(P,$);this.appendChild(V)}else g(E.prototype.__proto__||Object.getPrototypeOf(E.prototype),"insertAt",this).call(this,T,P,$);this.optimize()}}},{key:"insertBefore",value:function(T,P){if(T.statics.scope===u.default.Scope.INLINE_BLOT){var $=u.default.create(this.statics.defaultChild);$.appendChild(T),T=$}g(E.prototype.__proto__||Object.getPrototypeOf(E.prototype),"insertBefore",this).call(this,T,P)}},{key:"leaf",value:function(T){return this.path(T).pop()||[null,-1]}},{key:"line",value:function(T){return T===this.length()?this.line(T-1):this.descendant(k,T)}},{key:"lines",value:function(){var T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE,$=function B(V,Q,j){var C=[],q=j;return V.children.forEachAt(Q,j,function(R,D,z){k(R)?C.push(R):R instanceof u.default.Container&&(C=C.concat(B(R,D,q))),q-=z}),C};return $(this,T,P)}},{key:"optimize",value:function(){var T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.batch!==!0&&(g(E.prototype.__proto__||Object.getPrototypeOf(E.prototype),"optimize",this).call(this,T,P),T.length>0&&this.emitter.emit(l.default.events.SCROLL_OPTIMIZE,T,P))}},{key:"path",value:function(T){return g(E.prototype.__proto__||Object.getPrototypeOf(E.prototype),"path",this).call(this,T).slice(1)}},{key:"update",value:function(T){if(this.batch!==!0){var P=l.default.sources.USER;typeof T=="string"&&(P=T),Array.isArray(T)||(T=this.observer.takeRecords()),T.length>0&&this.emitter.emit(l.default.events.SCROLL_BEFORE_UPDATE,P,T),g(E.prototype.__proto__||Object.getPrototypeOf(E.prototype),"update",this).call(this,T.concat([])),T.length>0&&this.emitter.emit(l.default.events.SCROLL_UPDATE,P,T)}}}]),E}(u.default.Scroll);N.blotName="scroll",N.className="ql-editor",N.tagName="DIV",N.defaultChild="block",N.allowedChildren=[a.default,o.BlockEmbed,b.default],n.default=N},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.SHORTKEY=n.default=void 0;var v=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},m=function(){function L(I,K){var G=[],F=!0,M=!1,H=void 0;try{for(var X=I[Symbol.iterator](),ee;!(F=(ee=X.next()).done)&&(G.push(ee.value),!(K&&G.length===K));F=!0);}catch(Z){M=!0,H=Z}finally{try{!F&&X.return&&X.return()}finally{if(M)throw H}}return G}return function(I,K){if(Array.isArray(I))return I;if(Symbol.iterator in Object(I))return L(I,K);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),g=function(){function L(I,K){for(var G=0;G<K.length;G++){var F=K[G];F.enumerable=F.enumerable||!1,F.configurable=!0,"value"in F&&(F.writable=!0),Object.defineProperty(I,F.key,F)}}return function(I,K,G){return K&&L(I.prototype,K),G&&L(I,G),I}}(),_=i(21),u=x(_),s=i(11),l=x(s),o=i(3),a=x(o),p=i(2),c=x(p),y=i(20),d=x(y),h=i(0),b=x(h),f=i(5),O=x(f),S=i(10),A=x(S),k=i(9),N=x(k);function x(L){return L&&L.__esModule?L:{default:L}}function E(L,I,K){return I in L?Object.defineProperty(L,I,{value:K,enumerable:!0,configurable:!0,writable:!0}):L[I]=K,L}function w(L,I){if(!(L instanceof I))throw new TypeError("Cannot call a class as a function")}function T(L,I){if(!L)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return I&&(typeof I=="object"||typeof I=="function")?I:L}function P(L,I){if(typeof I!="function"&&I!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof I);L.prototype=Object.create(I&&I.prototype,{constructor:{value:L,enumerable:!1,writable:!0,configurable:!0}}),I&&(Object.setPrototypeOf?Object.setPrototypeOf(L,I):L.__proto__=I)}var $=(0,A.default)("quill:keyboard"),B=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",V=function(L){P(I,L),g(I,null,[{key:"match",value:function(G,F){return F=U(F),["altKey","ctrlKey","metaKey","shiftKey"].some(function(M){return!!F[M]!==G[M]&&F[M]!==null})?!1:F.key===(G.which||G.keyCode)}}]);function I(K,G){w(this,I);var F=T(this,(I.__proto__||Object.getPrototypeOf(I)).call(this,K,G));return F.bindings={},Object.keys(F.options.bindings).forEach(function(M){M==="list autofill"&&K.scroll.whitelist!=null&&!K.scroll.whitelist.list||F.options.bindings[M]&&F.addBinding(F.options.bindings[M])}),F.addBinding({key:I.keys.ENTER,shiftKey:null},R),F.addBinding({key:I.keys.ENTER,metaKey:null,ctrlKey:null,altKey:null},function(){}),/Firefox/i.test(navigator.userAgent)?(F.addBinding({key:I.keys.BACKSPACE},{collapsed:!0},j),F.addBinding({key:I.keys.DELETE},{collapsed:!0},C)):(F.addBinding({key:I.keys.BACKSPACE},{collapsed:!0,prefix:/^.?$/},j),F.addBinding({key:I.keys.DELETE},{collapsed:!0,suffix:/^.?$/},C)),F.addBinding({key:I.keys.BACKSPACE},{collapsed:!1},q),F.addBinding({key:I.keys.DELETE},{collapsed:!1},q),F.addBinding({key:I.keys.BACKSPACE,altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},j),F.listen(),F}return g(I,[{key:"addBinding",value:function(G){var F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},M=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},H=U(G);if(H==null||H.key==null)return $.warn("Attempted to add invalid keyboard binding",H);typeof F=="function"&&(F={handler:F}),typeof M=="function"&&(M={handler:M}),H=(0,a.default)(H,F,M),this.bindings[H.key]=this.bindings[H.key]||[],this.bindings[H.key].push(H)}},{key:"listen",value:function(){var G=this;this.quill.root.addEventListener("keydown",function(F){if(!F.defaultPrevented){var M=F.which||F.keyCode,H=(G.bindings[M]||[]).filter(function(pe){return I.match(F,pe)});if(H.length!==0){var X=G.quill.getSelection();if(!(X==null||!G.quill.hasFocus())){var ee=G.quill.getLine(X.index),Z=m(ee,2),ne=Z[0],ae=Z[1],W=G.quill.getLeaf(X.index),Y=m(W,2),te=Y[0],ie=Y[1],J=X.length===0?[te,ie]:G.quill.getLeaf(X.index+X.length),le=m(J,2),oe=le[0],se=le[1],Ee=te instanceof b.default.Text?te.value().slice(0,ie):"",Fe=oe instanceof b.default.Text?oe.value().slice(se):"",de={collapsed:X.length===0,empty:X.length===0&&ne.length()<=1,format:G.quill.getFormat(X),offset:ae,prefix:Ee,suffix:Fe},ho=H.some(function(pe){if(pe.collapsed!=null&&pe.collapsed!==de.collapsed||pe.empty!=null&&pe.empty!==de.empty||pe.offset!=null&&pe.offset!==de.offset)return!1;if(Array.isArray(pe.format)){if(pe.format.every(function(De){return de.format[De]==null}))return!1}else if(v(pe.format)==="object"&&!Object.keys(pe.format).every(function(De){return pe.format[De]===!0?de.format[De]!=null:pe.format[De]===!1?de.format[De]==null:(0,l.default)(pe.format[De],de.format[De])}))return!1;return pe.prefix!=null&&!pe.prefix.test(de.prefix)||pe.suffix!=null&&!pe.suffix.test(de.suffix)?!1:pe.handler.call(G,X,de)!==!0});ho&&F.preventDefault()}}}})}}]),I}(N.default);V.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},V.DEFAULTS={bindings:{bold:z("bold"),italic:z("italic"),underline:z("underline"),indent:{key:V.keys.TAB,format:["blockquote","indent","list"],handler:function(I,K){if(K.collapsed&&K.offset!==0)return!0;this.quill.format("indent","+1",O.default.sources.USER)}},outdent:{key:V.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function(I,K){if(K.collapsed&&K.offset!==0)return!0;this.quill.format("indent","-1",O.default.sources.USER)}},"outdent backspace":{key:V.keys.BACKSPACE,collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function(I,K){K.format.indent!=null?this.quill.format("indent","-1",O.default.sources.USER):K.format.list!=null&&this.quill.format("list",!1,O.default.sources.USER)}},"indent code-block":D(!0),"outdent code-block":D(!1),"remove tab":{key:V.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(I){this.quill.deleteText(I.index-1,1,O.default.sources.USER)}},tab:{key:V.keys.TAB,handler:function(I){this.quill.history.cutoff();var K=new c.default().retain(I.index).delete(I.length).insert(" ");this.quill.updateContents(K,O.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(I.index+1,O.default.sources.SILENT)}},"list empty enter":{key:V.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(I,K){this.quill.format("list",!1,O.default.sources.USER),K.format.indent&&this.quill.format("indent",!1,O.default.sources.USER)}},"checklist enter":{key:V.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(I){var K=this.quill.getLine(I.index),G=m(K,2),F=G[0],M=G[1],H=(0,a.default)({},F.formats(),{list:"checked"}),X=new c.default().retain(I.index).insert(`
`,H).retain(F.length()-M-1).retain(1,{list:"unchecked"});this.quill.updateContents(X,O.default.sources.USER),this.quill.setSelection(I.index+1,O.default.sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:V.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(I,K){var G=this.quill.getLine(I.index),F=m(G,2),M=F[0],H=F[1],X=new c.default().retain(I.index).insert(`
`,K.format).retain(M.length()-H-1).retain(1,{header:null});this.quill.updateContents(X,O.default.sources.USER),this.quill.setSelection(I.index+1,O.default.sources.SILENT),this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(I,K){var G=K.prefix.length,F=this.quill.getLine(I.index),M=m(F,2),H=M[0],X=M[1];if(X>G)return!0;var ee=void 0;switch(K.prefix.trim()){case"[]":case"[ ]":ee="unchecked";break;case"[x]":ee="checked";break;case"-":case"*":ee="bullet";break;default:ee="ordered"}this.quill.insertText(I.index," ",O.default.sources.USER),this.quill.history.cutoff();var Z=new c.default().retain(I.index-X).delete(G+1).retain(H.length()-2-X).retain(1,{list:ee});this.quill.updateContents(Z,O.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(I.index-G,O.default.sources.SILENT)}},"code exit":{key:V.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(I){var K=this.quill.getLine(I.index),G=m(K,2),F=G[0],M=G[1],H=new c.default().retain(I.index+F.length()-M-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(H,O.default.sources.USER)}},"embed left":Q(V.keys.LEFT,!1),"embed left shift":Q(V.keys.LEFT,!0),"embed right":Q(V.keys.RIGHT,!1),"embed right shift":Q(V.keys.RIGHT,!0)}};function Q(L,I){var K,G=L===V.keys.LEFT?"prefix":"suffix";return K={key:L,shiftKey:I,altKey:null},E(K,G,/^$/),E(K,"handler",function(M){var H=M.index;L===V.keys.RIGHT&&(H+=M.length+1);var X=this.quill.getLeaf(H),ee=m(X,1),Z=ee[0];return Z instanceof b.default.Embed?(L===V.keys.LEFT?I?this.quill.setSelection(M.index-1,M.length+1,O.default.sources.USER):this.quill.setSelection(M.index-1,O.default.sources.USER):I?this.quill.setSelection(M.index,M.length+1,O.default.sources.USER):this.quill.setSelection(M.index+M.length+1,O.default.sources.USER),!1):!0}),K}function j(L,I){if(!(L.index===0||this.quill.getLength()<=1)){var K=this.quill.getLine(L.index),G=m(K,1),F=G[0],M={};if(I.offset===0){var H=this.quill.getLine(L.index-1),X=m(H,1),ee=X[0];if(ee!=null&&ee.length()>1){var Z=F.formats(),ne=this.quill.getFormat(L.index-1,1);M=d.default.attributes.diff(Z,ne)||{}}}var ae=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(I.prefix)?2:1;this.quill.deleteText(L.index-ae,ae,O.default.sources.USER),Object.keys(M).length>0&&this.quill.formatLine(L.index-ae,ae,M,O.default.sources.USER),this.quill.focus()}}function C(L,I){var K=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(I.suffix)?2:1;if(!(L.index>=this.quill.getLength()-K)){var G={},F=0,M=this.quill.getLine(L.index),H=m(M,1),X=H[0];if(I.offset>=X.length()-1){var ee=this.quill.getLine(L.index+1),Z=m(ee,1),ne=Z[0];if(ne){var ae=X.formats(),W=this.quill.getFormat(L.index,1);G=d.default.attributes.diff(ae,W)||{},F=ne.length()}}this.quill.deleteText(L.index,K,O.default.sources.USER),Object.keys(G).length>0&&this.quill.formatLine(L.index+F-1,K,G,O.default.sources.USER)}}function q(L){var I=this.quill.getLines(L),K={};if(I.length>1){var G=I[0].formats(),F=I[I.length-1].formats();K=d.default.attributes.diff(F,G)||{}}this.quill.deleteText(L,O.default.sources.USER),Object.keys(K).length>0&&this.quill.formatLine(L.index,1,K,O.default.sources.USER),this.quill.setSelection(L.index,O.default.sources.SILENT),this.quill.focus()}function R(L,I){var K=this;L.length>0&&this.quill.scroll.deleteAt(L.index,L.length);var G=Object.keys(I.format).reduce(function(F,M){return b.default.query(M,b.default.Scope.BLOCK)&&!Array.isArray(I.format[M])&&(F[M]=I.format[M]),F},{});this.quill.insertText(L.index,`
`,G,O.default.sources.USER),this.quill.setSelection(L.index+1,O.default.sources.SILENT),this.quill.focus(),Object.keys(I.format).forEach(function(F){G[F]==null&&(Array.isArray(I.format[F])||F!=="link"&&K.quill.format(F,I.format[F],O.default.sources.USER))})}function D(L){return{key:V.keys.TAB,shiftKey:!L,format:{"code-block":!0},handler:function(K){var G=b.default.query("code-block"),F=K.index,M=K.length,H=this.quill.scroll.descendant(G,F),X=m(H,2),ee=X[0],Z=X[1];if(ee!=null){var ne=this.quill.getIndex(ee),ae=ee.newlineIndex(Z,!0)+1,W=ee.newlineIndex(ne+Z+M),Y=ee.domNode.textContent.slice(ae,W).split(`
`);Z=0,Y.forEach(function(te,ie){L?(ee.insertAt(ae+Z,G.TAB),Z+=G.TAB.length,ie===0?F+=G.TAB.length:M+=G.TAB.length):te.startsWith(G.TAB)&&(ee.deleteAt(ae+Z,G.TAB.length),Z-=G.TAB.length,ie===0?F-=G.TAB.length:M-=G.TAB.length),Z+=te.length+1}),this.quill.update(O.default.sources.USER),this.quill.setSelection(F,M,O.default.sources.SILENT)}}}}function z(L){return{key:L[0].toUpperCase(),shortKey:!0,handler:function(K,G){this.quill.format(L,!G.format[L],O.default.sources.USER)}}}function U(L){if(typeof L=="string"||typeof L=="number")return U({key:L});if((typeof L>"u"?"undefined":v(L))==="object"&&(L=(0,u.default)(L,!1)),typeof L.key=="string")if(V.keys[L.key.toUpperCase()]!=null)L.key=V.keys[L.key.toUpperCase()];else if(L.key.length===1)L.key=L.key.toUpperCase().charCodeAt(0);else return null;return L.shortKey&&(L[B]=L.shortKey,delete L.shortKey),L}n.default=V,n.SHORTKEY=B},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var v=function(){function d(h,b){var f=[],O=!0,S=!1,A=void 0;try{for(var k=h[Symbol.iterator](),N;!(O=(N=k.next()).done)&&(f.push(N.value),!(b&&f.length===b));O=!0);}catch(x){S=!0,A=x}finally{try{!O&&k.return&&k.return()}finally{if(S)throw A}}return f}return function(h,b){if(Array.isArray(h))return h;if(Symbol.iterator in Object(h))return d(h,b);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),m=function d(h,b,f){h===null&&(h=Function.prototype);var O=Object.getOwnPropertyDescriptor(h,b);if(O===void 0){var S=Object.getPrototypeOf(h);return S===null?void 0:d(S,b,f)}else{if("value"in O)return O.value;var A=O.get;return A===void 0?void 0:A.call(f)}},g=function(){function d(h,b){for(var f=0;f<b.length;f++){var O=b[f];O.enumerable=O.enumerable||!1,O.configurable=!0,"value"in O&&(O.writable=!0),Object.defineProperty(h,O.key,O)}}return function(h,b,f){return b&&d(h.prototype,b),f&&d(h,f),h}}(),_=i(0),u=o(_),s=i(7),l=o(s);function o(d){return d&&d.__esModule?d:{default:d}}function a(d,h){if(!(d instanceof h))throw new TypeError("Cannot call a class as a function")}function p(d,h){if(!d)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h&&(typeof h=="object"||typeof h=="function")?h:d}function c(d,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof h);d.prototype=Object.create(h&&h.prototype,{constructor:{value:d,enumerable:!1,writable:!0,configurable:!0}}),h&&(Object.setPrototypeOf?Object.setPrototypeOf(d,h):d.__proto__=h)}var y=function(d){c(h,d),g(h,null,[{key:"value",value:function(){}}]);function h(b,f){a(this,h);var O=p(this,(h.__proto__||Object.getPrototypeOf(h)).call(this,b));return O.selection=f,O.textNode=document.createTextNode(h.CONTENTS),O.domNode.appendChild(O.textNode),O._length=0,O}return g(h,[{key:"detach",value:function(){this.parent!=null&&this.parent.removeChild(this)}},{key:"format",value:function(f,O){if(this._length!==0)return m(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"format",this).call(this,f,O);for(var S=this,A=0;S!=null&&S.statics.scope!==u.default.Scope.BLOCK_BLOT;)A+=S.offset(S.parent),S=S.parent;S!=null&&(this._length=h.CONTENTS.length,S.optimize(),S.formatAt(A,h.CONTENTS.length,f,O),this._length=0)}},{key:"index",value:function(f,O){return f===this.textNode?0:m(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"index",this).call(this,f,O)}},{key:"length",value:function(){return this._length}},{key:"position",value:function(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function(){m(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"remove",this).call(this),this.parent=null}},{key:"restore",value:function(){if(!(this.selection.composing||this.parent==null)){var f=this.textNode,O=this.selection.getNativeRange(),S=void 0,A=void 0,k=void 0;if(O!=null&&O.start.node===f&&O.end.node===f){var N=[f,O.start.offset,O.end.offset];S=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!==h.CONTENTS){var x=this.textNode.data.split(h.CONTENTS).join("");this.next instanceof l.default?(S=this.next.domNode,this.next.insertAt(0,x),this.textNode.data=h.CONTENTS):(this.textNode.data=x,this.parent.insertBefore(u.default.create(this.textNode),this),this.textNode=document.createTextNode(h.CONTENTS),this.domNode.appendChild(this.textNode))}if(this.remove(),A!=null){var E=[A,k].map(function(T){return Math.max(0,Math.min(S.data.length,T-1))}),w=v(E,2);return A=w[0],k=w[1],{startNode:S,startOffset:A,endNode:S,endOffset:k}}}}},{key:"update",value:function(f,O){var S=this;if(f.some(function(k){return k.type==="characterData"&&k.target===S.textNode})){var A=this.restore();A&&(O.range=A)}}},{key:"value",value:function(){return""}}]),h}(u.default.Embed);y.blotName="cursor",y.className="ql-cursor",y.tagName="span",y.CONTENTS="\uFEFF",n.default=y},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var v=i(0),m=u(v),g=i(4),_=u(g);function u(p){return p&&p.__esModule?p:{default:p}}function s(p,c){if(!(p instanceof c))throw new TypeError("Cannot call a class as a function")}function l(p,c){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return c&&(typeof c=="object"||typeof c=="function")?c:p}function o(p,c){if(typeof c!="function"&&c!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof c);p.prototype=Object.create(c&&c.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),c&&(Object.setPrototypeOf?Object.setPrototypeOf(p,c):p.__proto__=c)}var a=function(p){o(c,p);function c(){return s(this,c),l(this,(c.__proto__||Object.getPrototypeOf(c)).apply(this,arguments))}return c}(m.default.Container);a.allowedChildren=[_.default,g.BlockEmbed,a],n.default=a},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.ColorStyle=n.ColorClass=n.ColorAttributor=void 0;var v=function(){function y(d,h){for(var b=0;b<h.length;b++){var f=h[b];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(d,f.key,f)}}return function(d,h,b){return h&&y(d.prototype,h),b&&y(d,b),d}}(),m=function y(d,h,b){d===null&&(d=Function.prototype);var f=Object.getOwnPropertyDescriptor(d,h);if(f===void 0){var O=Object.getPrototypeOf(d);return O===null?void 0:y(O,h,b)}else{if("value"in f)return f.value;var S=f.get;return S===void 0?void 0:S.call(b)}},g=i(0),_=u(g);function u(y){return y&&y.__esModule?y:{default:y}}function s(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 s(this,d),l(this,(d.__proto__||Object.getPrototypeOf(d)).apply(this,arguments))}return v(d,[{key:"value",value:function(b){var f=m(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"value",this).call(this,b);return f.startsWith("rgb(")?(f=f.replace(/^[^\d]+/,"").replace(/[^\d]+$/,""),"#"+f.split(",").map(function(O){return("00"+parseInt(O).toString(16)).slice(-2)}).join("")):f}}]),d}(_.default.Attributor.Style),p=new _.default.Attributor.Class("color","ql-color",{scope:_.default.Scope.INLINE}),c=new a("color","color",{scope:_.default.Scope.INLINE});n.ColorAttributor=a,n.ColorClass=p,n.ColorStyle=c},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.sanitize=n.default=void 0;var v=function(){function c(y,d){for(var h=0;h<d.length;h++){var b=d[h];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(y,b.key,b)}}return function(y,d,h){return d&&c(y.prototype,d),h&&c(y,h),y}}(),m=function c(y,d,h){y===null&&(y=Function.prototype);var b=Object.getOwnPropertyDescriptor(y,d);if(b===void 0){var f=Object.getPrototypeOf(y);return f===null?void 0:c(f,d,h)}else{if("value"in b)return b.value;var O=b.get;return O===void 0?void 0:O.call(h)}},g=i(6),_=u(g);function u(c){return c&&c.__esModule?c:{default:c}}function s(c,y){if(!(c instanceof y))throw new TypeError("Cannot call a class as a function")}function l(c,y){if(!c)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y&&(typeof y=="object"||typeof y=="function")?y:c}function o(c,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof y);c.prototype=Object.create(y&&y.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(c,y):c.__proto__=y)}var a=function(c){o(y,c);function y(){return s(this,y),l(this,(y.__proto__||Object.getPrototypeOf(y)).apply(this,arguments))}return v(y,[{key:"format",value:function(h,b){if(h!==this.statics.blotName||!b)return m(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"format",this).call(this,h,b);b=this.constructor.sanitize(b),this.domNode.setAttribute("href",b)}}],[{key:"create",value:function(h){var b=m(y.__proto__||Object.getPrototypeOf(y),"create",this).call(this,h);return h=this.sanitize(h),b.setAttribute("href",h),b.setAttribute("rel","noopener noreferrer"),b.setAttribute("target","_blank"),b}},{key:"formats",value:function(h){return h.getAttribute("href")}},{key:"sanitize",value:function(h){return p(h,this.PROTOCOL_WHITELIST)?h:this.SANITIZED_URL}}]),y}(_.default);a.blotName="link",a.tagName="A",a.SANITIZED_URL="about:blank",a.PROTOCOL_WHITELIST=["http","https","mailto","tel"];function p(c,y){var d=document.createElement("a");d.href=c;var h=d.href.slice(0,d.href.indexOf(":"));return y.indexOf(h)>-1}n.default=a,n.sanitize=p},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var v=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(y){return typeof y}:function(y){return y&&typeof Symbol=="function"&&y.constructor===Symbol&&y!==Symbol.prototype?"symbol":typeof y},m=function(){function y(d,h){for(var b=0;b<h.length;b++){var f=h[b];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(d,f.key,f)}}return function(d,h,b){return h&&y(d.prototype,h),b&&y(d,b),d}}(),g=i(23),_=l(g),u=i(107),s=l(u);function l(y){return y&&y.__esModule?y:{default:y}}function o(y,d){if(!(y instanceof d))throw new TypeError("Cannot call a class as a function")}var a=0;function p(y,d){y.setAttribute(d,y.getAttribute(d)!=="true")}var c=function(){function y(d){var h=this;o(this,y),this.select=d,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(){h.togglePicker()}),this.label.addEventListener("keydown",function(b){switch(b.keyCode){case _.default.keys.ENTER:h.togglePicker();break;case _.default.keys.ESCAPE:h.escape(),b.preventDefault();break}}),this.select.addEventListener("change",this.update.bind(this))}return m(y,[{key:"togglePicker",value:function(){this.container.classList.toggle("ql-expanded"),p(this.label,"aria-expanded"),p(this.options,"aria-hidden")}},{key:"buildItem",value:function(h){var b=this,f=document.createElement("span");return f.tabIndex="0",f.setAttribute("role","button"),f.classList.add("ql-picker-item"),h.hasAttribute("value")&&f.setAttribute("data-value",h.getAttribute("value")),h.textContent&&f.setAttribute("data-label",h.textContent),f.addEventListener("click",function(){b.selectItem(f,!0)}),f.addEventListener("keydown",function(O){switch(O.keyCode){case _.default.keys.ENTER:b.selectItem(f,!0),O.preventDefault();break;case _.default.keys.ESCAPE:b.escape(),O.preventDefault();break}}),f}},{key:"buildLabel",value:function(){var h=document.createElement("span");return h.classList.add("ql-picker-label"),h.innerHTML=s.default,h.tabIndex="0",h.setAttribute("role","button"),h.setAttribute("aria-expanded","false"),this.container.appendChild(h),h}},{key:"buildOptions",value:function(){var h=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(f){var O=h.buildItem(f);b.appendChild(O),f.selected===!0&&h.selectItem(O)}),this.container.appendChild(b)}},{key:"buildPicker",value:function(){var h=this;[].slice.call(this.select.attributes).forEach(function(b){h.container.setAttribute(b.name,b.value)}),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}},{key:"escape",value:function(){var h=this;this.close(),setTimeout(function(){return h.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(h){var b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,f=this.container.querySelector(".ql-selected");if(h!==f&&(f!=null&&f.classList.remove("ql-selected"),h!=null&&(h.classList.add("ql-selected"),this.select.selectedIndex=[].indexOf.call(h.parentNode.children,h),h.hasAttribute("data-value")?this.label.setAttribute("data-value",h.getAttribute("data-value")):this.label.removeAttribute("data-value"),h.hasAttribute("data-label")?this.label.setAttribute("data-label",h.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":v(Event))==="object"){var O=document.createEvent("Event");O.initEvent("change",!0,!0),this.select.dispatchEvent(O)}this.close()}}},{key:"update",value:function(){var h=void 0;if(this.select.selectedIndex>-1){var b=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];h=this.select.options[this.select.selectedIndex],this.selectItem(b)}else this.selectItem(null);var f=h!=null&&h!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",f)}}]),y}();n.default=c},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var v=i(0),m=$(v),g=i(5),_=$(g),u=i(4),s=$(u),l=i(16),o=$(l),a=i(25),p=$(a),c=i(24),y=$(c),d=i(35),h=$(d),b=i(6),f=$(b),O=i(22),S=$(O),A=i(7),k=$(A),N=i(55),x=$(N),E=i(42),w=$(E),T=i(23),P=$(T);function $(B){return B&&B.__esModule?B:{default:B}}_.default.register({"blots/block":s.default,"blots/block/embed":u.BlockEmbed,"blots/break":o.default,"blots/container":p.default,"blots/cursor":y.default,"blots/embed":h.default,"blots/inline":f.default,"blots/scroll":S.default,"blots/text":k.default,"modules/clipboard":x.default,"modules/history":w.default,"modules/keyboard":P.default}),m.default.register(s.default,o.default,y.default,f.default,S.default,k.default),n.default=_.default},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var v=i(1),m=function(){function g(_){this.domNode=_,this.domNode[v.DATA_KEY]={blot:this}}return Object.defineProperty(g.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),g.create=function(_){if(this.tagName==null)throw new v.ParchmentError("Blot definition missing tagName");var u;return Array.isArray(this.tagName)?(typeof _=="string"&&(_=_.toUpperCase(),parseInt(_).toString()===_&&(_=parseInt(_))),typeof _=="number"?u=document.createElement(this.tagName[_-1]):this.tagName.indexOf(_)>-1?u=document.createElement(_):u=document.createElement(this.tagName[0])):u=document.createElement(this.tagName),this.className&&u.classList.add(this.className),u},g.prototype.attach=function(){this.parent!=null&&(this.scroll=this.parent.scroll)},g.prototype.clone=function(){var _=this.domNode.cloneNode(!1);return v.create(_)},g.prototype.detach=function(){this.parent!=null&&this.parent.removeChild(this),delete this.domNode[v.DATA_KEY]},g.prototype.deleteAt=function(_,u){var s=this.isolate(_,u);s.remove()},g.prototype.formatAt=function(_,u,s,l){var o=this.isolate(_,u);if(v.query(s,v.Scope.BLOT)!=null&&l)o.wrap(s,l);else if(v.query(s,v.Scope.ATTRIBUTE)!=null){var a=v.create(this.statics.scope);o.wrap(a),a.format(s,l)}},g.prototype.insertAt=function(_,u,s){var l=s==null?v.create("text",u):v.create(u,s),o=this.split(_);this.parent.insertBefore(l,o)},g.prototype.insertInto=function(_,u){u===void 0&&(u=null),this.parent!=null&&this.parent.children.remove(this);var s=null;_.children.insertBefore(this,u),u!=null&&(s=u.domNode),(this.domNode.parentNode!=_.domNode||this.domNode.nextSibling!=s)&&_.domNode.insertBefore(this.domNode,s),this.parent=_,this.attach()},g.prototype.isolate=function(_,u){var s=this.split(_);return s.split(u),s},g.prototype.length=function(){return 1},g.prototype.offset=function(_){return _===void 0&&(_=this.parent),this.parent==null||this==_?0:this.parent.children.offset(this)+this.parent.offset(_)},g.prototype.optimize=function(_){this.domNode[v.DATA_KEY]!=null&&delete this.domNode[v.DATA_KEY].mutations},g.prototype.remove=function(){this.domNode.parentNode!=null&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},g.prototype.replace=function(_){_.parent!=null&&(_.parent.insertBefore(this,_.next),_.remove())},g.prototype.replaceWith=function(_,u){var s=typeof _=="string"?v.create(_,u):_;return s.replace(this),s},g.prototype.split=function(_,u){return _===0?this:this.next},g.prototype.update=function(_,u){},g.prototype.wrap=function(_,u){var s=typeof _=="string"?v.create(_,u):_;return this.parent!=null&&this.parent.insertBefore(s,this.next),s.appendChild(this),s},g.blotName="abstract",g}();n.default=m},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var v=i(12),m=i(32),g=i(33),_=i(1),u=function(){function s(l){this.attributes={},this.domNode=l,this.build()}return s.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])},s.prototype.build=function(){var l=this;this.attributes={};var o=v.default.keys(this.domNode),a=m.default.keys(this.domNode),p=g.default.keys(this.domNode);o.concat(a).concat(p).forEach(function(c){var y=_.query(c,_.Scope.ATTRIBUTE);y instanceof v.default&&(l.attributes[y.attrName]=y)})},s.prototype.copy=function(l){var o=this;Object.keys(this.attributes).forEach(function(a){var p=o.attributes[a].value(o.domNode);l.format(a,p)})},s.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={}},s.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},{})},s}();n.default=u},function(r,n,i){var v=this&&this.__extends||function(){var u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,l){s.__proto__=l}||function(s,l){for(var o in l)l.hasOwnProperty(o)&&(s[o]=l[o])};return function(s,l){u(s,l);function o(){this.constructor=s}s.prototype=l===null?Object.create(l):(o.prototype=l.prototype,new o)}}();Object.defineProperty(n,"__esModule",{value:!0});var m=i(12);function g(u,s){var l=u.getAttribute("class")||"";return l.split(/\s+/).filter(function(o){return o.indexOf(s+"-")===0})}var _=function(u){v(s,u);function s(){return u!==null&&u.apply(this,arguments)||this}return s.keys=function(l){return(l.getAttribute("class")||"").split(/\s+/).map(function(o){return o.split("-").slice(0,-1).join("-")})},s.prototype.add=function(l,o){return this.canAdd(l,o)?(this.remove(l),l.classList.add(this.keyName+"-"+o),!0):!1},s.prototype.remove=function(l){var o=g(l,this.keyName);o.forEach(function(a){l.classList.remove(a)}),l.classList.length===0&&l.removeAttribute("class")},s.prototype.value=function(l){var o=g(l,this.keyName)[0]||"",a=o.slice(this.keyName.length+1);return this.canAdd(l,a)?a:""},s}(m.default);n.default=_},function(r,n,i){var v=this&&this.__extends||function(){var u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,l){s.__proto__=l}||function(s,l){for(var o in l)l.hasOwnProperty(o)&&(s[o]=l[o])};return function(s,l){u(s,l);function o(){this.constructor=s}s.prototype=l===null?Object.create(l):(o.prototype=l.prototype,new o)}}();Object.defineProperty(n,"__esModule",{value:!0});var m=i(12);function g(u){var s=u.split("-"),l=s.slice(1).map(function(o){return o[0].toUpperCase()+o.slice(1)}).join("");return s[0]+l}var _=function(u){v(s,u);function s(){return u!==null&&u.apply(this,arguments)||this}return s.keys=function(l){return(l.getAttribute("style")||"").split(";").map(function(o){var a=o.split(":");return a[0].trim()})},s.prototype.add=function(l,o){return this.canAdd(l,o)?(l.style[g(this.keyName)]=o,!0):!1},s.prototype.remove=function(l){l.style[g(this.keyName)]="",l.getAttribute("style")||l.removeAttribute("style")},s.prototype.value=function(l){var o=l.style[g(this.keyName)];return this.canAdd(l,o)?o:""},s}(m.default);n.default=_},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var v=function(){function _(u,s){for(var l=0;l<s.length;l++){var o=s[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(u,o.key,o)}}return function(u,s,l){return s&&_(u.prototype,s),l&&_(u,l),u}}();function m(_,u){if(!(_ instanceof u))throw new TypeError("Cannot call a class as a function")}var g=function(){function _(u,s){m(this,_),this.quill=u,this.options=s,this.modules={}}return v(_,[{key:"init",value:function(){var s=this;Object.keys(this.options.modules).forEach(function(l){s.modules[l]==null&&s.addModule(l)})}},{key:"addModule",value:function(s){var l=this.quill.constructor.import("modules/"+s);return this.modules[s]=new l(this.quill,this.options.modules[s]||{}),this.modules[s]}}]),_}();g.DEFAULTS={modules:{}},g.themes={default:g},n.default=g},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var v=function(){function d(h,b){for(var f=0;f<b.length;f++){var O=b[f];O.enumerable=O.enumerable||!1,O.configurable=!0,"value"in O&&(O.writable=!0),Object.defineProperty(h,O.key,O)}}return function(h,b,f){return b&&d(h.prototype,b),f&&d(h,f),h}}(),m=function d(h,b,f){h===null&&(h=Function.prototype);var O=Object.getOwnPropertyDescriptor(h,b);if(O===void 0){var S=Object.getPrototypeOf(h);return S===null?void 0:d(S,b,f)}else{if("value"in O)return O.value;var A=O.get;return A===void 0?void 0:A.call(f)}},g=i(0),_=l(g),u=i(7),s=l(u);function l(d){return d&&d.__esModule?d:{default:d}}function o(d,h){if(!(d instanceof h))throw new TypeError("Cannot call a class as a function")}function a(d,h){if(!d)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h&&(typeof h=="object"||typeof h=="function")?h:d}function p(d,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof h);d.prototype=Object.create(h&&h.prototype,{constructor:{value:d,enumerable:!1,writable:!0,configurable:!0}}),h&&(Object.setPrototypeOf?Object.setPrototypeOf(d,h):d.__proto__=h)}var c="\uFEFF",y=function(d){p(h,d);function h(b){o(this,h);var f=a(this,(h.__proto__||Object.getPrototypeOf(h)).call(this,b));return f.contentNode=document.createElement("span"),f.contentNode.setAttribute("contenteditable",!1),[].slice.call(f.domNode.childNodes).forEach(function(O){f.contentNode.appendChild(O)}),f.leftGuard=document.createTextNode(c),f.rightGuard=document.createTextNode(c),f.domNode.appendChild(f.leftGuard),f.domNode.appendChild(f.contentNode),f.domNode.appendChild(f.rightGuard),f}return v(h,[{key:"index",value:function(f,O){return f===this.leftGuard?0:f===this.rightGuard?1:m(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"index",this).call(this,f,O)}},{key:"restore",value:function(f){var O=void 0,S=void 0,A=f.data.split(c).join("");if(f===this.leftGuard)if(this.prev instanceof s.default){var k=this.prev.length();this.prev.insertAt(k,A),O={startNode:this.prev.domNode,startOffset:k+A.length}}else S=document.createTextNode(A),this.parent.insertBefore(_.default.create(S),this),O={startNode:S,startOffset:A.length};else f===this.rightGuard&&(this.next instanceof s.default?(this.next.insertAt(0,A),O={startNode:this.next.domNode,startOffset:A.length}):(S=document.createTextNode(A),this.parent.insertBefore(_.default.create(S),this.next),O={startNode:S,startOffset:A.length}));return f.data=c,O}},{key:"update",value:function(f,O){var S=this;f.forEach(function(A){if(A.type==="characterData"&&(A.target===S.leftGuard||A.target===S.rightGuard)){var k=S.restore(A.target);k&&(O.range=k)}})}}]),h}(_.default.Embed);n.default=y},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.AlignStyle=n.AlignClass=n.AlignAttribute=void 0;var v=i(0),m=g(v);function g(o){return o&&o.__esModule?o:{default:o}}var _={scope:m.default.Scope.BLOCK,whitelist:["right","center","justify"]},u=new m.default.Attributor.Attribute("align","align",_),s=new m.default.Attributor.Class("align","ql-align",_),l=new m.default.Attributor.Style("align","text-align",_);n.AlignAttribute=u,n.AlignClass=s,n.AlignStyle=l},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.BackgroundStyle=n.BackgroundClass=void 0;var v=i(0),m=_(v),g=i(26);function _(l){return l&&l.__esModule?l:{default:l}}var u=new m.default.Attributor.Class("background","ql-bg",{scope:m.default.Scope.INLINE}),s=new g.ColorAttributor("background","background-color",{scope:m.default.Scope.INLINE});n.BackgroundClass=u,n.BackgroundStyle=s},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.DirectionStyle=n.DirectionClass=n.DirectionAttribute=void 0;var v=i(0),m=g(v);function g(o){return o&&o.__esModule?o:{default:o}}var _={scope:m.default.Scope.BLOCK,whitelist:["rtl"]},u=new m.default.Attributor.Attribute("direction","dir",_),s=new m.default.Attributor.Class("direction","ql-direction",_),l=new m.default.Attributor.Style("direction","direction",_);n.DirectionAttribute=u,n.DirectionClass=s,n.DirectionStyle=l},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.FontClass=n.FontStyle=void 0;var v=function(){function d(h,b){for(var f=0;f<b.length;f++){var O=b[f];O.enumerable=O.enumerable||!1,O.configurable=!0,"value"in O&&(O.writable=!0),Object.defineProperty(h,O.key,O)}}return function(h,b,f){return b&&d(h.prototype,b),f&&d(h,f),h}}(),m=function d(h,b,f){h===null&&(h=Function.prototype);var O=Object.getOwnPropertyDescriptor(h,b);if(O===void 0){var S=Object.getPrototypeOf(h);return S===null?void 0:d(S,b,f)}else{if("value"in O)return O.value;var A=O.get;return A===void 0?void 0:A.call(f)}},g=i(0),_=u(g);function u(d){return d&&d.__esModule?d:{default:d}}function s(d,h){if(!(d instanceof h))throw new TypeError("Cannot call a class as a function")}function l(d,h){if(!d)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h&&(typeof h=="object"||typeof h=="function")?h:d}function o(d,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof h);d.prototype=Object.create(h&&h.prototype,{constructor:{value:d,enumerable:!1,writable:!0,configurable:!0}}),h&&(Object.setPrototypeOf?Object.setPrototypeOf(d,h):d.__proto__=h)}var a={scope:_.default.Scope.INLINE,whitelist:["serif","monospace"]},p=new _.default.Attributor.Class("font","ql-font",a),c=function(d){o(h,d);function h(){return s(this,h),l(this,(h.__proto__||Object.getPrototypeOf(h)).apply(this,arguments))}return v(h,[{key:"value",value:function(f){return m(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"value",this).call(this,f).replace(/["']/g,"")}}]),h}(_.default.Attributor.Style),y=new c("font","font-family",a);n.FontStyle=y,n.FontClass=p},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.SizeStyle=n.SizeClass=void 0;var v=i(0),m=g(v);function g(s){return s&&s.__esModule?s:{default:s}}var _=new m.default.Attributor.Class("size","ql-size",{scope:m.default.Scope.INLINE,whitelist:["small","large","huge"]}),u=new m.default.Attributor.Style("size","font-size",{scope:m.default.Scope.INLINE,whitelist:["10px","18px","32px"]});n.SizeClass=_,n.SizeStyle=u},function(r,n,i){r.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(r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.getLastChangeIndex=n.default=void 0;var v=function(){function b(f,O){for(var S=0;S<O.length;S++){var A=O[S];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(f,A.key,A)}}return function(f,O,S){return O&&b(f.prototype,O),S&&b(f,S),f}}(),m=i(0),g=o(m),_=i(5),u=o(_),s=i(9),l=o(s);function o(b){return b&&b.__esModule?b:{default:b}}function a(b,f){if(!(b instanceof f))throw new TypeError("Cannot call a class as a function")}function p(b,f){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f&&(typeof f=="object"||typeof f=="function")?f:b}function c(b,f){if(typeof f!="function"&&f!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof f);b.prototype=Object.create(f&&f.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),f&&(Object.setPrototypeOf?Object.setPrototypeOf(b,f):b.__proto__=f)}var y=function(b){c(f,b);function f(O,S){a(this,f);var A=p(this,(f.__proto__||Object.getPrototypeOf(f)).call(this,O,S));return A.lastRecorded=0,A.ignoreChange=!1,A.clear(),A.quill.on(u.default.events.EDITOR_CHANGE,function(k,N,x,E){k!==u.default.events.TEXT_CHANGE||A.ignoreChange||(!A.options.userOnly||E===u.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 v(f,[{key:"change",value:function(S,A){if(this.stack[S].length!==0){var k=this.stack[S].pop();this.stack[A].push(k),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(k[S],u.default.sources.USER),this.ignoreChange=!1;var N=h(k[S]);this.quill.setSelection(N)}}},{key:"clear",value:function(){this.stack={undo:[],redo:[]}}},{key:"cutoff",value:function(){this.lastRecorded=0}},{key:"record",value:function(S,A){if(S.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),S=x.redo.compose(S)}else this.lastRecorded=N;this.stack.undo.push({redo:S,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(S){this.stack.undo.forEach(function(A){A.undo=S.transform(A.undo,!0),A.redo=S.transform(A.redo,!0)}),this.stack.redo.forEach(function(A){A.undo=S.transform(A.undo,!0),A.redo=S.transform(A.redo,!0)})}},{key:"undo",value:function(){this.change("undo","redo")}}]),f}(l.default);y.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1};function d(b){var f=b.ops[b.ops.length-1];return f==null?!1:f.insert!=null?typeof f.insert=="string"&&f.insert.endsWith(`
`):f.attributes!=null?Object.keys(f.attributes).some(function(O){return g.default.query(O,g.default.Scope.BLOCK)!=null}):!1}function h(b){var f=b.reduce(function(S,A){return S+=A.delete||0,S},0),O=b.length()-f;return d(b)&&(O-=1),O}n.default=y,n.getLastChangeIndex=h},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.default=n.BaseTooltip=void 0;var v=function(){function R(D,z){for(var U=0;U<z.length;U++){var L=z[U];L.enumerable=L.enumerable||!1,L.configurable=!0,"value"in L&&(L.writable=!0),Object.defineProperty(D,L.key,L)}}return function(D,z,U){return z&&R(D.prototype,z),U&&R(D,U),D}}(),m=function R(D,z,U){D===null&&(D=Function.prototype);var L=Object.getOwnPropertyDescriptor(D,z);if(L===void 0){var I=Object.getPrototypeOf(D);return I===null?void 0:R(I,z,U)}else{if("value"in L)return L.value;var K=L.get;return K===void 0?void 0:K.call(U)}},g=i(3),_=N(g),u=i(2),s=N(u),l=i(8),o=N(l),a=i(23),p=N(a),c=i(34),y=N(c),d=i(59),h=N(d),b=i(60),f=N(b),O=i(28),S=N(O),A=i(61),k=N(A);function N(R){return R&&R.__esModule?R:{default:R}}function x(R,D){if(!(R instanceof D))throw new TypeError("Cannot call a class as a function")}function E(R,D){if(!R)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return D&&(typeof D=="object"||typeof D=="function")?D:R}function w(R,D){if(typeof D!="function"&&D!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof D);R.prototype=Object.create(D&&D.prototype,{constructor:{value:R,enumerable:!1,writable:!0,configurable:!0}}),D&&(Object.setPrototypeOf?Object.setPrototypeOf(R,D):R.__proto__=D)}var T=[!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"],$=[!1,"serif","monospace"],B=["1","2","3",!1],V=["small",!1,"large","huge"],Q=function(R){w(D,R);function D(z,U){x(this,D);var L=E(this,(D.__proto__||Object.getPrototypeOf(D)).call(this,z,U)),I=function K(G){if(!document.body.contains(z.root))return document.body.removeEventListener("click",K);L.tooltip!=null&&!L.tooltip.root.contains(G.target)&&document.activeElement!==L.tooltip.textbox&&!L.quill.hasFocus()&&L.tooltip.hide(),L.pickers!=null&&L.pickers.forEach(function(F){F.container.contains(G.target)||F.close()})};return z.emitter.listenDOM("click",document.body,I),L}return v(D,[{key:"addModule",value:function(U){var L=m(D.prototype.__proto__||Object.getPrototypeOf(D.prototype),"addModule",this).call(this,U);return U==="toolbar"&&this.extendToolbar(L),L}},{key:"buildButtons",value:function(U,L){U.forEach(function(I){var K=I.getAttribute("class")||"";K.split(/\s+/).forEach(function(G){if(!!G.startsWith("ql-")&&(G=G.slice(3),L[G]!=null))if(G==="direction")I.innerHTML=L[G][""]+L[G].rtl;else if(typeof L[G]=="string")I.innerHTML=L[G];else{var F=I.value||"";F!=null&&L[G][F]&&(I.innerHTML=L[G][F])}})})}},{key:"buildPickers",value:function(U,L){var I=this;this.pickers=U.map(function(G){if(G.classList.contains("ql-align"))return G.querySelector("option")==null&&q(G,T),new f.default(G,L.align);if(G.classList.contains("ql-background")||G.classList.contains("ql-color")){var F=G.classList.contains("ql-background")?"background":"color";return G.querySelector("option")==null&&q(G,P,F==="background"?"#ffffff":"#000000"),new h.default(G,L[F])}else return G.querySelector("option")==null&&(G.classList.contains("ql-font")?q(G,$):G.classList.contains("ql-header")?q(G,B):G.classList.contains("ql-size")&&q(G,V)),new S.default(G)});var K=function(){I.pickers.forEach(function(F){F.update()})};this.quill.on(o.default.events.EDITOR_CHANGE,K)}}]),D}(y.default);Q.DEFAULTS=(0,_.default)(!0,{},y.default.DEFAULTS,{modules:{toolbar:{handlers:{formula:function(){this.quill.theme.tooltip.edit("formula")},image:function(){var D=this,z=this.container.querySelector("input.ql-image[type=file]");z==null&&(z=document.createElement("input"),z.setAttribute("type","file"),z.setAttribute("accept","image/png, image/gif, image/jpeg, image/bmp, image/x-icon"),z.classList.add("ql-image"),z.addEventListener("change",function(){if(z.files!=null&&z.files[0]!=null){var U=new FileReader;U.onload=function(L){var I=D.quill.getSelection(!0);D.quill.updateContents(new s.default().retain(I.index).delete(I.length).insert({image:L.target.result}),o.default.sources.USER),D.quill.setSelection(I.index+1,o.default.sources.SILENT),z.value=""},U.readAsDataURL(z.files[0])}}),this.container.appendChild(z)),z.click()},video:function(){this.quill.theme.tooltip.edit("video")}}}}});var j=function(R){w(D,R);function D(z,U){x(this,D);var L=E(this,(D.__proto__||Object.getPrototypeOf(D)).call(this,z,U));return L.textbox=L.root.querySelector('input[type="text"]'),L.listen(),L}return v(D,[{key:"listen",value:function(){var U=this;this.textbox.addEventListener("keydown",function(L){p.default.match(L,"enter")?(U.save(),L.preventDefault()):p.default.match(L,"escape")&&(U.cancel(),L.preventDefault())})}},{key:"cancel",value:function(){this.hide()}},{key:"edit",value:function(){var U=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:U!==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-"+U)||""),this.root.setAttribute("data-mode",U)}},{key:"restoreFocus",value:function(){var U=this.quill.scrollingContainer.scrollTop;this.quill.focus(),this.quill.scrollingContainer.scrollTop=U}},{key:"save",value:function(){var U=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",U,o.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",U,o.default.sources.USER)),this.quill.root.scrollTop=L;break}case"video":U=C(U);case"formula":{if(!U)break;var I=this.quill.getSelection(!0);if(I!=null){var K=I.index+I.length;this.quill.insertEmbed(K,this.root.getAttribute("data-mode"),U,o.default.sources.USER),this.root.getAttribute("data-mode")==="formula"&&this.quill.insertText(K+1," ",o.default.sources.USER),this.quill.setSelection(K+2,o.default.sources.USER)}break}}this.textbox.value="",this.hide()}}]),D}(k.default);function C(R){var D=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 D?(D[1]||"https")+"://www.youtube.com/embed/"+D[2]+"?showinfo=0":(D=R.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?(D[1]||"https")+"://player.vimeo.com/video/"+D[2]+"/":R}function q(R,D){var z=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;D.forEach(function(U){var L=document.createElement("option");U===z?L.setAttribute("selected","selected"):L.setAttribute("value",U),R.appendChild(L)})}n.BaseTooltip=j,n.default=Q},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var v=function(){function m(){this.head=this.tail=null,this.length=0}return m.prototype.append=function(){for(var g=[],_=0;_<arguments.length;_++)g[_]=arguments[_];this.insertBefore(g[0],null),g.length>1&&this.append.apply(this,g.slice(1))},m.prototype.contains=function(g){for(var _,u=this.iterator();_=u();)if(_===g)return!0;return!1},m.prototype.insertBefore=function(g,_){!g||(g.next=_,_!=null?(g.prev=_.prev,_.prev!=null&&(_.prev.next=g),_.prev=g,_===this.head&&(this.head=g)):this.tail!=null?(this.tail.next=g,g.prev=this.tail,this.tail=g):(g.prev=null,this.head=this.tail=g),this.length+=1)},m.prototype.offset=function(g){for(var _=0,u=this.head;u!=null;){if(u===g)return _;_+=u.length(),u=u.next}return-1},m.prototype.remove=function(g){!this.contains(g)||(g.prev!=null&&(g.prev.next=g.next),g.next!=null&&(g.next.prev=g.prev),g===this.head&&(this.head=g.next),g===this.tail&&(this.tail=g.prev),this.length-=1)},m.prototype.iterator=function(g){return g===void 0&&(g=this.head),function(){var _=g;return g!=null&&(g=g.next),_}},m.prototype.find=function(g,_){_===void 0&&(_=!1);for(var u,s=this.iterator();u=s();){var l=u.length();if(g<l||_&&g===l&&(u.next==null||u.next.length()!==0))return[u,g];g-=l}return[null,0]},m.prototype.forEach=function(g){for(var _,u=this.iterator();_=u();)g(_)},m.prototype.forEachAt=function(g,_,u){if(!(_<=0))for(var s=this.find(g),l=s[0],o=s[1],a,p=g-o,c=this.iterator(l);(a=c())&&p<g+_;){var y=a.length();g>p?u(a,g-p,Math.min(_,p+y-g)):u(a,0,Math.min(y,g+_-p)),p+=y}},m.prototype.map=function(g){return this.reduce(function(_,u){return _.push(g(u)),_},[])},m.prototype.reduce=function(g,_){for(var u,s=this.iterator();u=s();)_=g(_,u);return _},m}();n.default=v},function(r,n,i){var v=this&&this.__extends||function(){var l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,a){o.__proto__=a}||function(o,a){for(var p in a)a.hasOwnProperty(p)&&(o[p]=a[p])};return function(o,a){l(o,a);function p(){this.constructor=o}o.prototype=a===null?Object.create(a):(p.prototype=a.prototype,new p)}}();Object.defineProperty(n,"__esModule",{value:!0});var m=i(17),g=i(1),_={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},u=100,s=function(l){v(o,l);function o(a){var p=l.call(this,a)||this;return p.scroll=p,p.observer=new MutationObserver(function(c){p.update(c)}),p.observer.observe(p.domNode,_),p.attach(),p}return o.prototype.detach=function(){l.prototype.detach.call(this),this.observer.disconnect()},o.prototype.deleteAt=function(a,p){this.update(),a===0&&p===this.length()?this.children.forEach(function(c){c.remove()}):l.prototype.deleteAt.call(this,a,p)},o.prototype.formatAt=function(a,p,c,y){this.update(),l.prototype.formatAt.call(this,a,p,c,y)},o.prototype.insertAt=function(a,p,c){this.update(),l.prototype.insertAt.call(this,a,p,c)},o.prototype.optimize=function(a,p){var c=this;a===void 0&&(a=[]),p===void 0&&(p={}),l.prototype.optimize.call(this,p);for(var y=[].slice.call(this.observer.takeRecords());y.length>0;)a.push(y.pop());for(var d=function(O,S){S===void 0&&(S=!0),!(O==null||O===c)&&O.domNode.parentNode!=null&&(O.domNode[g.DATA_KEY].mutations==null&&(O.domNode[g.DATA_KEY].mutations=[]),S&&d(O.parent))},h=function(O){O.domNode[g.DATA_KEY]==null||O.domNode[g.DATA_KEY].mutations==null||(O instanceof m.default&&O.children.forEach(h),O.optimize(p))},b=a,f=0;b.length>0;f+=1){if(f>=u)throw new Error("[Parchment] Maximum optimize iterations reached");for(b.forEach(function(O){var S=g.find(O.target,!0);S!=null&&(S.domNode===O.target&&(O.type==="childList"?(d(g.find(O.previousSibling,!1)),[].forEach.call(O.addedNodes,function(A){var k=g.find(A,!1);d(k,!1),k instanceof m.default&&k.children.forEach(function(N){d(N,!1)})})):O.type==="attributes"&&d(S.prev)),d(S))}),this.children.forEach(h),b=[].slice.call(this.observer.takeRecords()),y=b.slice();y.length>0;)a.push(y.pop())}},o.prototype.update=function(a,p){var c=this;p===void 0&&(p={}),a=a||this.observer.takeRecords(),a.map(function(y){var d=g.find(y.target,!0);return d==null?null:d.domNode[g.DATA_KEY].mutations==null?(d.domNode[g.DATA_KEY].mutations=[y],d):(d.domNode[g.DATA_KEY].mutations.push(y),null)}).forEach(function(y){y==null||y===c||y.domNode[g.DATA_KEY]==null||y.update(y.domNode[g.DATA_KEY].mutations||[],p)}),this.domNode[g.DATA_KEY].mutations!=null&&l.prototype.update.call(this,this.domNode[g.DATA_KEY].mutations,p),this.optimize(a,p)},o.blotName="scroll",o.defaultChild="block",o.scope=g.Scope.BLOCK_BLOT,o.tagName="DIV",o}(m.default);n.default=s},function(r,n,i){var v=this&&this.__extends||function(){var s=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){s(l,o);function a(){this.constructor=l}l.prototype=o===null?Object.create(o):(a.prototype=o.prototype,new a)}}();Object.defineProperty(n,"__esModule",{value:!0});var m=i(18),g=i(1);function _(s,l){if(Object.keys(s).length!==Object.keys(l).length)return!1;for(var o in s)if(s[o]!==l[o])return!1;return!0}var u=function(s){v(l,s);function l(){return s!==null&&s.apply(this,arguments)||this}return l.formats=function(o){if(o.tagName!==l.tagName)return s.formats.call(this,o)},l.prototype.format=function(o,a){var p=this;o===this.statics.blotName&&!a?(this.children.forEach(function(c){c instanceof m.default||(c=c.wrap(l.blotName,!0)),p.attributes.copy(c)}),this.unwrap()):s.prototype.format.call(this,o,a)},l.prototype.formatAt=function(o,a,p,c){if(this.formats()[p]!=null||g.query(p,g.Scope.ATTRIBUTE)){var y=this.isolate(o,a);y.format(p,c)}else s.prototype.formatAt.call(this,o,a,p,c)},l.prototype.optimize=function(o){s.prototype.optimize.call(this,o);var a=this.formats();if(Object.keys(a).length===0)return this.unwrap();var p=this.next;p instanceof l&&p.prev===this&&_(a,p.formats())&&(p.moveChildren(this),p.remove())},l.blotName="inline",l.scope=g.Scope.INLINE_BLOT,l.tagName="SPAN",l}(m.default);n.default=u},function(r,n,i){var v=this&&this.__extends||function(){var u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,l){s.__proto__=l}||function(s,l){for(var o in l)l.hasOwnProperty(o)&&(s[o]=l[o])};return function(s,l){u(s,l);function o(){this.constructor=s}s.prototype=l===null?Object.create(l):(o.prototype=l.prototype,new o)}}();Object.defineProperty(n,"__esModule",{value:!0});var m=i(18),g=i(1),_=function(u){v(s,u);function s(){return u!==null&&u.apply(this,arguments)||this}return s.formats=function(l){var o=g.query(s.blotName).tagName;if(l.tagName!==o)return u.formats.call(this,l)},s.prototype.format=function(l,o){g.query(l,g.Scope.BLOCK)!=null&&(l===this.statics.blotName&&!o?this.replaceWith(s.blotName):u.prototype.format.call(this,l,o))},s.prototype.formatAt=function(l,o,a,p){g.query(a,g.Scope.BLOCK)!=null?this.format(a,p):u.prototype.formatAt.call(this,l,o,a,p)},s.prototype.insertAt=function(l,o,a){if(a==null||g.query(o,g.Scope.INLINE)!=null)u.prototype.insertAt.call(this,l,o,a);else{var p=this.split(l),c=g.create(o,a);p.parent.insertBefore(c,p)}},s.prototype.update=function(l,o){navigator.userAgent.match(/Trident/)?this.build():u.prototype.update.call(this,l,o)},s.blotName="block",s.scope=g.Scope.BLOCK_BLOT,s.tagName="P",s}(m.default);n.default=_},function(r,n,i){var v=this&&this.__extends||function(){var _=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,s){u.__proto__=s}||function(u,s){for(var l in s)s.hasOwnProperty(l)&&(u[l]=s[l])};return function(u,s){_(u,s);function l(){this.constructor=u}u.prototype=s===null?Object.create(s):(l.prototype=s.prototype,new l)}}();Object.defineProperty(n,"__esModule",{value:!0});var m=i(19),g=function(_){v(u,_);function u(){return _!==null&&_.apply(this,arguments)||this}return u.formats=function(s){},u.prototype.format=function(s,l){_.prototype.formatAt.call(this,0,this.length(),s,l)},u.prototype.formatAt=function(s,l,o,a){s===0&&l===this.length()?this.format(o,a):_.prototype.formatAt.call(this,s,l,o,a)},u.prototype.formats=function(){return this.statics.formats(this.domNode)},u}(m.default);n.default=g},function(r,n,i){var v=this&&this.__extends||function(){var u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,l){s.__proto__=l}||function(s,l){for(var o in l)l.hasOwnProperty(o)&&(s[o]=l[o])};return function(s,l){u(s,l);function o(){this.constructor=s}s.prototype=l===null?Object.create(l):(o.prototype=l.prototype,new o)}}();Object.defineProperty(n,"__esModule",{value:!0});var m=i(19),g=i(1),_=function(u){v(s,u);function s(l){var o=u.call(this,l)||this;return o.text=o.statics.value(o.domNode),o}return s.create=function(l){return document.createTextNode(l)},s.value=function(l){var o=l.data;return o.normalize&&(o=o.normalize()),o},s.prototype.deleteAt=function(l,o){this.domNode.data=this.text=this.text.slice(0,l)+this.text.slice(l+o)},s.prototype.index=function(l,o){return this.domNode===l?o:-1},s.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):u.prototype.insertAt.call(this,l,o,a)},s.prototype.length=function(){return this.text.length},s.prototype.optimize=function(l){u.prototype.optimize.call(this,l),this.text=this.statics.value(this.domNode),this.text.length===0?this.remove():this.next instanceof s&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},s.prototype.position=function(l,o){return[this.domNode,l]},s.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=g.create(this.domNode.splitText(l));return this.parent.insertBefore(a,this.next),this.text=this.statics.value(this.domNode),a},s.prototype.update=function(l,o){var a=this;l.some(function(p){return p.type==="characterData"&&p.target===a.domNode})&&(this.text=this.statics.value(this.domNode))},s.prototype.value=function(){return this.text},s.blotName="text",s.scope=g.Scope.INLINE_BLOT,s}(m.default);n.default=_},function(r,n,i){var v=document.createElement("div");if(v.classList.toggle("test-class",!1),v.classList.contains("test-class")){var m=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(g,_){return arguments.length>1&&!this.contains(g)==!_?_:m.call(this,g)}}String.prototype.startsWith||(String.prototype.startsWith=function(g,_){return _=_||0,this.substr(_,g.length)===g}),String.prototype.endsWith||(String.prototype.endsWith=function(g,_){var u=this.toString();(typeof _!="number"||!isFinite(_)||Math.floor(_)!==_||_>u.length)&&(_=u.length),_-=g.length;var s=u.indexOf(g,_);return s!==-1&&s===_}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(_){if(this===null)throw new TypeError("Array.prototype.find called on null or undefined");if(typeof _!="function")throw new TypeError("predicate must be a function");for(var u=Object(this),s=u.length>>>0,l=arguments[1],o,a=0;a<s;a++)if(o=u[a],_.call(l,o,a,u))return o}}),document.addEventListener("DOMContentLoaded",function(){document.execCommand("enableObjectResizing",!1,!1),document.execCommand("autoUrlDetect",!1,!1)})},function(r,n){var i=-1,v=1,m=0;function g(f,O,S){if(f==O)return f?[[m,f]]:[];(S<0||f.length<S)&&(S=null);var A=l(f,O),k=f.substring(0,A);f=f.substring(A),O=O.substring(A),A=o(f,O);var N=f.substring(f.length-A);f=f.substring(0,f.length-A),O=O.substring(0,O.length-A);var x=_(f,O);return k&&x.unshift([m,k]),N&&x.push([m,N]),p(x),S!=null&&(x=d(x,S)),x=h(x),x}function _(f,O){var S;if(!f)return[[v,O]];if(!O)return[[i,f]];var A=f.length>O.length?f:O,k=f.length>O.length?O:f,N=A.indexOf(k);if(N!=-1)return S=[[v,A.substring(0,N)],[m,k],[v,A.substring(N+k.length)]],f.length>O.length&&(S[0][0]=S[2][0]=i),S;if(k.length==1)return[[i,f],[v,O]];var x=a(f,O);if(x){var E=x[0],w=x[1],T=x[2],P=x[3],$=x[4],B=g(E,T),V=g(w,P);return B.concat([[m,$]],V)}return u(f,O)}function u(f,O){for(var S=f.length,A=O.length,k=Math.ceil((S+A)/2),N=k,x=2*k,E=new Array(x),w=new Array(x),T=0;T<x;T++)E[T]=-1,w[T]=-1;E[N+1]=0,w[N+1]=0;for(var P=S-A,$=P%2!=0,B=0,V=0,Q=0,j=0,C=0;C<k;C++){for(var q=-C+B;q<=C-V;q+=2){var R=N+q,D;q==-C||q!=C&&E[R-1]<E[R+1]?D=E[R+1]:D=E[R-1]+1;for(var z=D-q;D<S&&z<A&&f.charAt(D)==O.charAt(z);)D++,z++;if(E[R]=D,D>S)V+=2;else if(z>A)B+=2;else if($){var U=N+P-q;if(U>=0&&U<x&&w[U]!=-1){var L=S-w[U];if(D>=L)return s(f,O,D,z)}}}for(var I=-C+Q;I<=C-j;I+=2){var U=N+I,L;I==-C||I!=C&&w[U-1]<w[U+1]?L=w[U+1]:L=w[U-1]+1;for(var K=L-I;L<S&&K<A&&f.charAt(S-L-1)==O.charAt(A-K-1);)L++,K++;if(w[U]=L,L>S)j+=2;else if(K>A)Q+=2;else if(!$){var R=N+P-I;if(R>=0&&R<x&&E[R]!=-1){var D=E[R],z=N+D-R;if(L=S-L,D>=L)return s(f,O,D,z)}}}}return[[i,f],[v,O]]}function s(f,O,S,A){var k=f.substring(0,S),N=O.substring(0,A),x=f.substring(S),E=O.substring(A),w=g(k,N),T=g(x,E);return w.concat(T)}function l(f,O){if(!f||!O||f.charAt(0)!=O.charAt(0))return 0;for(var S=0,A=Math.min(f.length,O.length),k=A,N=0;S<k;)f.substring(N,k)==O.substring(N,k)?(S=k,N=S):A=k,k=Math.floor((A-S)/2+S);return k}function o(f,O){if(!f||!O||f.charAt(f.length-1)!=O.charAt(O.length-1))return 0;for(var S=0,A=Math.min(f.length,O.length),k=A,N=0;S<k;)f.substring(f.length-k,f.length-N)==O.substring(O.length-k,O.length-N)?(S=k,N=S):A=k,k=Math.floor((A-S)/2+S);return k}function a(f,O){var S=f.length>O.length?f:O,A=f.length>O.length?O:f;if(S.length<4||A.length*2<S.length)return null;function k(V,Q,j){for(var C=V.substring(j,j+Math.floor(V.length/4)),q=-1,R="",D,z,U,L;(q=Q.indexOf(C,q+1))!=-1;){var I=l(V.substring(j),Q.substring(q)),K=o(V.substring(0,j),Q.substring(0,q));R.length<K+I&&(R=Q.substring(q-K,q)+Q.substring(q,q+I),D=V.substring(0,j-K),z=V.substring(j+I),U=Q.substring(0,q-K),L=Q.substring(q+I))}return R.length*2>=V.length?[D,z,U,L,R]:null}var N=k(S,A,Math.ceil(S.length/4)),x=k(S,A,Math.ceil(S.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,T,P,$;f.length>O.length?(w=E[0],T=E[1],P=E[2],$=E[3]):(P=E[0],$=E[1],w=E[2],T=E[3]);var B=E[4];return[w,T,P,$,B]}function p(f){f.push([m,""]);for(var O=0,S=0,A=0,k="",N="",x;O<f.length;)switch(f[O][0]){case v:A++,N+=f[O][1],O++;break;case i:S++,k+=f[O][1],O++;break;case m:S+A>1?(S!==0&&A!==0&&(x=l(N,k),x!==0&&(O-S-A>0&&f[O-S-A-1][0]==m?f[O-S-A-1][1]+=N.substring(0,x):(f.splice(0,0,[m,N.substring(0,x)]),O++),N=N.substring(x),k=k.substring(x)),x=o(N,k),x!==0&&(f[O][1]=N.substring(N.length-x)+f[O][1],N=N.substring(0,N.length-x),k=k.substring(0,k.length-x))),S===0?f.splice(O-A,S+A,[v,N]):A===0?f.splice(O-S,S+A,[i,k]):f.splice(O-S-A,S+A,[i,k],[v,N]),O=O-S-A+(S?1:0)+(A?1:0)+1):O!==0&&f[O-1][0]==m?(f[O-1][1]+=f[O][1],f.splice(O,1)):O++,A=0,S=0,k="",N="";break}f[f.length-1][1]===""&&f.pop();var E=!1;for(O=1;O<f.length-1;)f[O-1][0]==m&&f[O+1][0]==m&&(f[O][1].substring(f[O][1].length-f[O-1][1].length)==f[O-1][1]?(f[O][1]=f[O-1][1]+f[O][1].substring(0,f[O][1].length-f[O-1][1].length),f[O+1][1]=f[O-1][1]+f[O+1][1],f.splice(O-1,1),E=!0):f[O][1].substring(0,f[O+1][1].length)==f[O+1][1]&&(f[O-1][1]+=f[O+1][1],f[O][1]=f[O][1].substring(f[O+1][1].length)+f[O+1][1],f.splice(O+1,1),E=!0)),O++;E&&p(f)}var c=g;c.INSERT=v,c.DELETE=i,c.EQUAL=m,r.exports=c;function y(f,O){if(O===0)return[m,f];for(var S=0,A=0;A<f.length;A++){var k=f[A];if(k[0]===i||k[0]===m){var N=S+k[1].length;if(O===N)return[A+1,f];if(O<N){f=f.slice();var x=O-S,E=[k[0],k[1].slice(0,x)],w=[k[0],k[1].slice(x)];return f.splice(A,1,E,w),[A+1,f]}else S=N}}throw new Error("cursor_pos is out of bounds!")}function d(f,O){var S=y(f,O),A=S[1],k=S[0],N=A[k],x=A[k+1];if(N==null)return f;if(N[0]!==m)return f;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 f}function h(f){for(var O=!1,S=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<f.length;k+=1)f[k-2][0]===m&&A(f[k-2][1])&&f[k-1][0]===i&&S(f[k-1][1])&&f[k][0]===v&&S(f[k][1])&&(O=!0,f[k-1][1]=f[k-2][1].slice(-1)+f[k-1][1],f[k][1]=f[k-2][1].slice(-1)+f[k][1],f[k-2][1]=f[k-2][1].slice(0,-1));if(!O)return f;for(var N=[],k=0;k<f.length;k+=1)f[k][1].length>0&&N.push(f[k]);return N}function b(f,O,S){for(var A=O+S-1;A>=0&&A>=O-1;A--)if(A+1<f.length){var k=f[A],N=f[A+1];k[0]===N[1]&&f.splice(A,2,[k[0],k[1]+N[1]])}return f}},function(r,n){n=r.exports=typeof Object.keys=="function"?Object.keys:i,n.shim=i;function i(v){var m=[];for(var g in v)m.push(g);return m}},function(r,n){var i=function(){return Object.prototype.toString.call(arguments)}()=="[object Arguments]";n=r.exports=i?v:m,n.supported=v;function v(g){return Object.prototype.toString.call(g)=="[object Arguments]"}n.unsupported=m;function m(g){return g&&typeof g=="object"&&typeof g.length=="number"&&Object.prototype.hasOwnProperty.call(g,"callee")&&!Object.prototype.propertyIsEnumerable.call(g,"callee")||!1}},function(r,n){var i=Object.prototype.hasOwnProperty,v="~";function m(){}Object.create&&(m.prototype=Object.create(null),new m().__proto__||(v=!1));function g(u,s,l){this.fn=u,this.context=s,this.once=l||!1}function _(){this._events=new m,this._eventsCount=0}_.prototype.eventNames=function(){var s=[],l,o;if(this._eventsCount===0)return s;for(o in l=this._events)i.call(l,o)&&s.push(v?o.slice(1):o);return Object.getOwnPropertySymbols?s.concat(Object.getOwnPropertySymbols(l)):s},_.prototype.listeners=function(s,l){var o=v?v+s:s,a=this._events[o];if(l)return!!a;if(!a)return[];if(a.fn)return[a.fn];for(var p=0,c=a.length,y=new Array(c);p<c;p++)y[p]=a[p].fn;return y},_.prototype.emit=function(s,l,o,a,p,c){var y=v?v+s:s;if(!this._events[y])return!1;var d=this._events[y],h=arguments.length,b,f;if(d.fn){switch(d.once&&this.removeListener(s,d.fn,void 0,!0),h){case 1:return d.fn.call(d.context),!0;case 2:return d.fn.call(d.context,l),!0;case 3:return d.fn.call(d.context,l,o),!0;case 4:return d.fn.call(d.context,l,o,a),!0;case 5:return d.fn.call(d.context,l,o,a,p),!0;case 6:return d.fn.call(d.context,l,o,a,p,c),!0}for(f=1,b=new Array(h-1);f<h;f++)b[f-1]=arguments[f];d.fn.apply(d.context,b)}else{var O=d.length,S;for(f=0;f<O;f++)switch(d[f].once&&this.removeListener(s,d[f].fn,void 0,!0),h){case 1:d[f].fn.call(d[f].context);break;case 2:d[f].fn.call(d[f].context,l);break;case 3:d[f].fn.call(d[f].context,l,o);break;case 4:d[f].fn.call(d[f].context,l,o,a);break;default:if(!b)for(S=1,b=new Array(h-1);S<h;S++)b[S-1]=arguments[S];d[f].fn.apply(d[f].context,b)}}return!0},_.prototype.on=function(s,l,o){var a=new g(l,o||this),p=v?v+s:s;return this._events[p]?this._events[p].fn?this._events[p]=[this._events[p],a]:this._events[p].push(a):(this._events[p]=a,this._eventsCount++),this},_.prototype.once=function(s,l,o){var a=new g(l,o||this,!0),p=v?v+s:s;return this._events[p]?this._events[p].fn?this._events[p]=[this._events[p],a]:this._events[p].push(a):(this._events[p]=a,this._eventsCount++),this},_.prototype.removeListener=function(s,l,o,a){var p=v?v+s:s;if(!this._events[p])return this;if(!l)return--this._eventsCount===0?this._events=new m:delete this._events[p],this;var c=this._events[p];if(c.fn)c.fn===l&&(!a||c.once)&&(!o||c.context===o)&&(--this._eventsCount===0?this._events=new m:delete this._events[p]);else{for(var y=0,d=[],h=c.length;y<h;y++)(c[y].fn!==l||a&&!c[y].once||o&&c[y].context!==o)&&d.push(c[y]);d.length?this._events[p]=d.length===1?d[0]:d:--this._eventsCount===0?this._events=new m:delete this._events[p]}return this},_.prototype.removeAllListeners=function(s){var l;return s?(l=v?v+s:s,this._events[l]&&(--this._eventsCount===0?this._events=new m:delete this._events[l])):(this._events=new m,this._eventsCount=0),this},_.prototype.off=_.prototype.removeListener,_.prototype.addListener=_.prototype.on,_.prototype.setMaxListeners=function(){return this},_.prefixed=v,_.EventEmitter=_,typeof r<"u"&&(r.exports=_)},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.matchText=n.matchSpacing=n.matchNewline=n.matchBlot=n.matchAttributor=n.default=void 0;var v=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(W){return typeof W}:function(W){return W&&typeof Symbol=="function"&&W.constructor===Symbol&&W!==Symbol.prototype?"symbol":typeof W},m=function(){function W(Y,te){var ie=[],J=!0,le=!1,oe=void 0;try{for(var se=Y[Symbol.iterator](),Ee;!(J=(Ee=se.next()).done)&&(ie.push(Ee.value),!(te&&ie.length===te));J=!0);}catch(Fe){le=!0,oe=Fe}finally{try{!J&&se.return&&se.return()}finally{if(le)throw oe}}return ie}return function(Y,te){if(Array.isArray(Y))return Y;if(Symbol.iterator in Object(Y))return W(Y,te);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),g=function(){function W(Y,te){for(var ie=0;ie<te.length;ie++){var J=te[ie];J.enumerable=J.enumerable||!1,J.configurable=!0,"value"in J&&(J.writable=!0),Object.defineProperty(Y,J.key,J)}}return function(Y,te,ie){return te&&W(Y.prototype,te),ie&&W(Y,ie),Y}}(),_=i(3),u=w(_),s=i(2),l=w(s),o=i(0),a=w(o),p=i(5),c=w(p),y=i(10),d=w(y),h=i(9),b=w(h),f=i(36),O=i(37),S=i(13),A=w(S),k=i(26),N=i(38),x=i(39),E=i(40);function w(W){return W&&W.__esModule?W:{default:W}}function T(W,Y,te){return Y in W?Object.defineProperty(W,Y,{value:te,enumerable:!0,configurable:!0,writable:!0}):W[Y]=te,W}function P(W,Y){if(!(W instanceof Y))throw new TypeError("Cannot call a class as a function")}function $(W,Y){if(!W)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Y&&(typeof Y=="object"||typeof Y=="function")?Y:W}function B(W,Y){if(typeof Y!="function"&&Y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof Y);W.prototype=Object.create(Y&&Y.prototype,{constructor:{value:W,enumerable:!1,writable:!0,configurable:!0}}),Y&&(Object.setPrototypeOf?Object.setPrototypeOf(W,Y):W.__proto__=Y)}var V=(0,d.default)("quill:clipboard"),Q="__ql-matcher",j=[[Node.TEXT_NODE,ae],[Node.TEXT_NODE,ee],["br",M],[Node.ELEMENT_NODE,ee],[Node.ELEMENT_NODE,F],[Node.ELEMENT_NODE,Z],[Node.ELEMENT_NODE,G],[Node.ELEMENT_NODE,ne],["li",X],["b",K.bind(K,"bold")],["i",K.bind(K,"italic")],["style",H]],C=[f.AlignAttribute,N.DirectionAttribute].reduce(function(W,Y){return W[Y.keyName]=Y,W},{}),q=[f.AlignStyle,O.BackgroundStyle,k.ColorStyle,N.DirectionStyle,x.FontStyle,E.SizeStyle].reduce(function(W,Y){return W[Y.keyName]=Y,W},{}),R=function(W){B(Y,W);function Y(te,ie){P(this,Y);var J=$(this,(Y.__proto__||Object.getPrototypeOf(Y)).call(this,te,ie));return J.quill.root.addEventListener("paste",J.onPaste.bind(J)),J.container=J.quill.addContainer("ql-clipboard"),J.container.setAttribute("contenteditable",!0),J.container.setAttribute("tabindex",-1),J.matchers=[],j.concat(J.options.matchers).forEach(function(le){var oe=m(le,2),se=oe[0],Ee=oe[1];!ie.matchVisual&&Ee===Z||J.addMatcher(se,Ee)}),J}return g(Y,[{key:"addMatcher",value:function(ie,J){this.matchers.push([ie,J])}},{key:"convert",value:function(ie){if(typeof ie=="string")return this.container.innerHTML=ie.replace(/\>\r?\n +\</g,"><"),this.convert();var J=this.quill.getFormat(this.quill.selection.savedRange.index);if(J[A.default.blotName]){var le=this.container.innerText;return this.container.innerHTML="",new l.default().insert(le,T({},A.default.blotName,J[A.default.blotName]))}var oe=this.prepareMatching(),se=m(oe,2),Ee=se[0],Fe=se[1],de=I(this.container,Ee,Fe);return U(de,`
`)&&de.ops[de.ops.length-1].attributes==null&&(de=de.compose(new l.default().retain(de.length()-1).delete(1))),V.log("convert",this.container.innerHTML,de),this.container.innerHTML="",de}},{key:"dangerouslyPasteHTML",value:function(ie,J){var le=arguments.length>2&&arguments[2]!==void 0?arguments[2]:c.default.sources.API;if(typeof ie=="string")this.quill.setContents(this.convert(ie),J),this.quill.setSelection(0,c.default.sources.SILENT);else{var oe=this.convert(J);this.quill.updateContents(new l.default().retain(ie).concat(oe),le),this.quill.setSelection(ie+oe.length(),c.default.sources.SILENT)}}},{key:"onPaste",value:function(ie){var J=this;if(!(ie.defaultPrevented||!this.quill.isEnabled())){var le=this.quill.getSelection(),oe=new l.default().retain(le.index),se=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(c.default.sources.SILENT),setTimeout(function(){oe=oe.concat(J.convert()).delete(le.length),J.quill.updateContents(oe,c.default.sources.USER),J.quill.setSelection(oe.length()-le.length,c.default.sources.SILENT),J.quill.scrollingContainer.scrollTop=se,J.quill.focus()},1)}}},{key:"prepareMatching",value:function(){var ie=this,J=[],le=[];return this.matchers.forEach(function(oe){var se=m(oe,2),Ee=se[0],Fe=se[1];switch(Ee){case Node.TEXT_NODE:le.push(Fe);break;case Node.ELEMENT_NODE:J.push(Fe);break;default:[].forEach.call(ie.container.querySelectorAll(Ee),function(de){de[Q]=de[Q]||[],de[Q].push(Fe)});break}}),[J,le]}}]),Y}(b.default);R.DEFAULTS={matchers:[],matchVisual:!0};function D(W,Y,te){return(typeof Y>"u"?"undefined":v(Y))==="object"?Object.keys(Y).reduce(function(ie,J){return D(ie,J,Y[J])},W):W.reduce(function(ie,J){return J.attributes&&J.attributes[Y]?ie.push(J):ie.insert(J.insert,(0,u.default)({},T({},Y,te),J.attributes))},new l.default)}function z(W){if(W.nodeType!==Node.ELEMENT_NODE)return{};var Y="__ql-computed-style";return W[Y]||(W[Y]=window.getComputedStyle(W))}function U(W,Y){for(var te="",ie=W.ops.length-1;ie>=0&&te.length<Y.length;--ie){var J=W.ops[ie];if(typeof J.insert!="string")break;te=J.insert+te}return te.slice(-1*Y.length)===Y}function L(W){if(W.childNodes.length===0)return!1;var Y=z(W);return["block","list-item"].indexOf(Y.display)>-1}function I(W,Y,te){return W.nodeType===W.TEXT_NODE?te.reduce(function(ie,J){return J(W,ie)},new l.default):W.nodeType===W.ELEMENT_NODE?[].reduce.call(W.childNodes||[],function(ie,J){var le=I(J,Y,te);return J.nodeType===W.ELEMENT_NODE&&(le=Y.reduce(function(oe,se){return se(J,oe)},le),le=(J[Q]||[]).reduce(function(oe,se){return se(J,oe)},le)),ie.concat(le)},new l.default):new l.default}function K(W,Y,te){return D(te,W,!0)}function G(W,Y){var te=a.default.Attributor.Attribute.keys(W),ie=a.default.Attributor.Class.keys(W),J=a.default.Attributor.Style.keys(W),le={};return te.concat(ie).concat(J).forEach(function(oe){var se=a.default.query(oe,a.default.Scope.ATTRIBUTE);se!=null&&(le[se.attrName]=se.value(W),le[se.attrName])||(se=C[oe],se!=null&&(se.attrName===oe||se.keyName===oe)&&(le[se.attrName]=se.value(W)||void 0),se=q[oe],se!=null&&(se.attrName===oe||se.keyName===oe)&&(se=q[oe],le[se.attrName]=se.value(W)||void 0))}),Object.keys(le).length>0&&(Y=D(Y,le)),Y}function F(W,Y){var te=a.default.query(W);if(te==null)return Y;if(te.prototype instanceof a.default.Embed){var ie={},J=te.value(W);J!=null&&(ie[te.blotName]=J,Y=new l.default().insert(ie,te.formats(W)))}else typeof te.formats=="function"&&(Y=D(Y,te.blotName,te.formats(W)));return Y}function M(W,Y){return U(Y,`
`)||Y.insert(`
`),Y}function H(){return new l.default}function X(W,Y){var te=a.default.query(W);if(te==null||te.blotName!=="list-item"||!U(Y,`
`))return Y;for(var ie=-1,J=W.parentNode;!J.classList.contains("ql-clipboard");)(a.default.query(J)||{}).blotName==="list"&&(ie+=1),J=J.parentNode;return ie<=0?Y:Y.compose(new l.default().retain(Y.length()-1).retain(1,{indent:ie}))}function ee(W,Y){return U(Y,`
`)||(L(W)||Y.length()>0&&W.nextSibling&&L(W.nextSibling))&&Y.insert(`
`),Y}function Z(W,Y){if(L(W)&&W.nextElementSibling!=null&&!U(Y,`
`)){var te=W.offsetHeight+parseFloat(z(W).marginTop)+parseFloat(z(W).marginBottom);W.nextElementSibling.offsetTop>W.offsetTop+te*1.5&&Y.insert(`
`)}return Y}function ne(W,Y){var te={},ie=W.style||{};return ie.fontStyle&&z(W).fontStyle==="italic"&&(te.italic=!0),ie.fontWeight&&(z(W).fontWeight.startsWith("bold")||parseInt(z(W).fontWeight)>=700)&&(te.bold=!0),Object.keys(te).length>0&&(Y=D(Y,te)),parseFloat(ie.textIndent||0)>0&&(Y=new l.default().insert(" ").concat(Y)),Y}function ae(W,Y){var te=W.data;if(W.parentNode.tagName==="O:P")return Y.insert(te.trim());if(te.trim().length===0&&W.parentNode.classList.contains("ql-clipboard"))return Y;if(!z(W.parentNode).whiteSpace.startsWith("pre")){var ie=function(le,oe){return oe=oe.replace(/[^\u00a0]/g,""),oe.length<1&&le?" ":oe};te=te.replace(/\r\n/g," ").replace(/\n/g," "),te=te.replace(/\s\s+/g,ie.bind(ie,!0)),(W.previousSibling==null&&L(W.parentNode)||W.previousSibling!=null&&L(W.previousSibling))&&(te=te.replace(/^\s+/,ie.bind(ie,!1))),(W.nextSibling==null&&L(W.parentNode)||W.nextSibling!=null&&L(W.nextSibling))&&(te=te.replace(/\s+$/,ie.bind(ie,!1)))}return Y.insert(te)}n.default=R,n.matchAttributor=G,n.matchBlot=F,n.matchNewline=ee,n.matchSpacing=Z,n.matchText=ae},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var v=function(){function p(c,y){for(var d=0;d<y.length;d++){var h=y[d];h.enumerable=h.enumerable||!1,h.configurable=!0,"value"in h&&(h.writable=!0),Object.defineProperty(c,h.key,h)}}return function(c,y,d){return y&&p(c.prototype,y),d&&p(c,d),c}}(),m=function p(c,y,d){c===null&&(c=Function.prototype);var h=Object.getOwnPropertyDescriptor(c,y);if(h===void 0){var b=Object.getPrototypeOf(c);return b===null?void 0:p(b,y,d)}else{if("value"in h)return h.value;var f=h.get;return f===void 0?void 0:f.call(d)}},g=i(6),_=u(g);function u(p){return p&&p.__esModule?p:{default:p}}function s(p,c){if(!(p instanceof c))throw new TypeError("Cannot call a class as a function")}function l(p,c){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return c&&(typeof c=="object"||typeof c=="function")?c:p}function o(p,c){if(typeof c!="function"&&c!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof c);p.prototype=Object.create(c&&c.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),c&&(Object.setPrototypeOf?Object.setPrototypeOf(p,c):p.__proto__=c)}var a=function(p){o(c,p);function c(){return s(this,c),l(this,(c.__proto__||Object.getPrototypeOf(c)).apply(this,arguments))}return v(c,[{key:"optimize",value:function(d){m(c.prototype.__proto__||Object.getPrototypeOf(c.prototype),"optimize",this).call(this,d),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return m(c.__proto__||Object.getPrototypeOf(c),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),c}(_.default);a.blotName="bold",a.tagName=["STRONG","B"],n.default=a},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.addControls=n.default=void 0;var v=function(){function E(w,T){var P=[],$=!0,B=!1,V=void 0;try{for(var Q=w[Symbol.iterator](),j;!($=(j=Q.next()).done)&&(P.push(j.value),!(T&&P.length===T));$=!0);}catch(C){B=!0,V=C}finally{try{!$&&Q.return&&Q.return()}finally{if(B)throw V}}return P}return function(w,T){if(Array.isArray(w))return w;if(Symbol.iterator in Object(w))return E(w,T);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),m=function(){function E(w,T){for(var P=0;P<T.length;P++){var $=T[P];$.enumerable=$.enumerable||!1,$.configurable=!0,"value"in $&&($.writable=!0),Object.defineProperty(w,$.key,$)}}return function(w,T,P){return T&&E(w.prototype,T),P&&E(w,P),w}}(),g=i(2),_=d(g),u=i(0),s=d(u),l=i(5),o=d(l),a=i(10),p=d(a),c=i(9),y=d(c);function d(E){return E&&E.__esModule?E:{default:E}}function h(E,w,T){return w in E?Object.defineProperty(E,w,{value:T,enumerable:!0,configurable:!0,writable:!0}):E[w]=T,E}function b(E,w){if(!(E instanceof w))throw new TypeError("Cannot call a class as a function")}function f(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 O(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 S=(0,p.default)("quill:toolbar"),A=function(E){O(w,E);function w(T,P){b(this,w);var $=f(this,(w.__proto__||Object.getPrototypeOf(w)).call(this,T,P));if(Array.isArray($.options.container)){var B=document.createElement("div");N(B,$.options.container),T.container.parentNode.insertBefore(B,T.container),$.container=B}else typeof $.options.container=="string"?$.container=document.querySelector($.options.container):$.container=$.options.container;if(!($.container instanceof HTMLElement)){var V;return V=S.error("Container required for toolbar",$.options),f($,V)}return $.container.classList.add("ql-toolbar"),$.controls=[],$.handlers={},Object.keys($.options.handlers).forEach(function(Q){$.addHandler(Q,$.options.handlers[Q])}),[].forEach.call($.container.querySelectorAll("button, select"),function(Q){$.attach(Q)}),$.quill.on(o.default.events.EDITOR_CHANGE,function(Q,j){Q===o.default.events.SELECTION_CHANGE&&$.update(j)}),$.quill.on(o.default.events.SCROLL_OPTIMIZE,function(){var Q=$.quill.selection.getRange(),j=v(Q,1),C=j[0];$.update(C)}),$}return m(w,[{key:"addHandler",value:function(P,$){this.handlers[P]=$}},{key:"attach",value:function(P){var $=this,B=[].find.call(P.classList,function(Q){return Q.indexOf("ql-")===0});if(!!B){if(B=B.slice(3),P.tagName==="BUTTON"&&P.setAttribute("type","button"),this.handlers[B]==null){if(this.quill.scroll.whitelist!=null&&this.quill.scroll.whitelist[B]==null){S.warn("ignoring attaching to disabled format",B,P);return}if(s.default.query(B)==null){S.warn("ignoring attaching to nonexistent format",B,P);return}}var V=P.tagName==="SELECT"?"change":"click";P.addEventListener(V,function(Q){var j=void 0;if(P.tagName==="SELECT"){if(P.selectedIndex<0)return;var C=P.options[P.selectedIndex];C.hasAttribute("selected")?j=!1:j=C.value||!1}else P.classList.contains("ql-active")?j=!1:j=P.value||!P.hasAttribute("value"),Q.preventDefault();$.quill.focus();var q=$.quill.selection.getRange(),R=v(q,1),D=R[0];if($.handlers[B]!=null)$.handlers[B].call($,j);else if(s.default.query(B).prototype instanceof s.default.Embed){if(j=prompt("Enter "+B),!j)return;$.quill.updateContents(new _.default().retain(D.index).delete(D.length).insert(h({},B,j)),o.default.sources.USER)}else $.quill.format(B,j,o.default.sources.USER);$.update(D)}),this.controls.push([B,P])}}},{key:"update",value:function(P){var $=P==null?{}:this.quill.getFormat(P);this.controls.forEach(function(B){var V=v(B,2),Q=V[0],j=V[1];if(j.tagName==="SELECT"){var C=void 0;if(P==null)C=null;else if($[Q]==null)C=j.querySelector("option[selected]");else if(!Array.isArray($[Q])){var q=$[Q];typeof q=="string"&&(q=q.replace(/\"/g,'\\"')),C=j.querySelector('option[value="'+q+'"]')}C==null?(j.value="",j.selectedIndex=-1):C.selected=!0}else if(P==null)j.classList.remove("ql-active");else if(j.hasAttribute("value")){var R=$[Q]===j.getAttribute("value")||$[Q]!=null&&$[Q].toString()===j.getAttribute("value")||$[Q]==null&&!j.getAttribute("value");j.classList.toggle("ql-active",R)}else j.classList.toggle("ql-active",$[Q]!=null)})}}]),w}(y.default);A.DEFAULTS={};function k(E,w,T){var P=document.createElement("button");P.setAttribute("type","button"),P.classList.add("ql-"+w),T!=null&&(P.value=T),E.appendChild(P)}function N(E,w){Array.isArray(w[0])||(w=[w]),w.forEach(function(T){var P=document.createElement("span");P.classList.add("ql-formats"),T.forEach(function($){if(typeof $=="string")k(P,$);else{var B=Object.keys($)[0],V=$[B];Array.isArray(V)?x(P,B,V):k(P,B,V)}}),E.appendChild(P)})}function x(E,w,T){var P=document.createElement("select");P.classList.add("ql-"+w),T.forEach(function($){var B=document.createElement("option");$!==!1?B.setAttribute("value",$):B.setAttribute("selected","selected"),P.appendChild(B)}),E.appendChild(P)}A.DEFAULTS={container:null,handlers:{clean:function(){var w=this,T=this.quill.getSelection();if(T!=null)if(T.length==0){var P=this.quill.getFormat();Object.keys(P).forEach(function($){s.default.query($,s.default.Scope.INLINE)!=null&&w.quill.format($,!1)})}else this.quill.removeFormat(T,o.default.sources.USER)},direction:function(w){var T=this.quill.getFormat().align;w==="rtl"&&T==null?this.quill.format("align","right",o.default.sources.USER):!w&&T==="right"&&this.quill.format("align",!1,o.default.sources.USER),this.quill.format("direction",w,o.default.sources.USER)},indent:function(w){var T=this.quill.getSelection(),P=this.quill.getFormat(T),$=parseInt(P.indent||0);if(w==="+1"||w==="-1"){var B=w==="+1"?1:-1;P.direction==="rtl"&&(B*=-1),this.quill.format("indent",$+B,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 T=this.quill.getSelection(),P=this.quill.getFormat(T);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)}}},n.default=A,n.addControls=N},function(r,n){r.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(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var v=function(){function p(c,y){for(var d=0;d<y.length;d++){var h=y[d];h.enumerable=h.enumerable||!1,h.configurable=!0,"value"in h&&(h.writable=!0),Object.defineProperty(c,h.key,h)}}return function(c,y,d){return y&&p(c.prototype,y),d&&p(c,d),c}}(),m=function p(c,y,d){c===null&&(c=Function.prototype);var h=Object.getOwnPropertyDescriptor(c,y);if(h===void 0){var b=Object.getPrototypeOf(c);return b===null?void 0:p(b,y,d)}else{if("value"in h)return h.value;var f=h.get;return f===void 0?void 0:f.call(d)}},g=i(28),_=u(g);function u(p){return p&&p.__esModule?p:{default:p}}function s(p,c){if(!(p instanceof c))throw new TypeError("Cannot call a class as a function")}function l(p,c){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return c&&(typeof c=="object"||typeof c=="function")?c:p}function o(p,c){if(typeof c!="function"&&c!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof c);p.prototype=Object.create(c&&c.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),c&&(Object.setPrototypeOf?Object.setPrototypeOf(p,c):p.__proto__=c)}var a=function(p){o(c,p);function c(y,d){s(this,c);var h=l(this,(c.__proto__||Object.getPrototypeOf(c)).call(this,y));return h.label.innerHTML=d,h.container.classList.add("ql-color-picker"),[].slice.call(h.container.querySelectorAll(".ql-picker-item"),0,7).forEach(function(b){b.classList.add("ql-primary")}),h}return v(c,[{key:"buildItem",value:function(d){var h=m(c.prototype.__proto__||Object.getPrototypeOf(c.prototype),"buildItem",this).call(this,d);return h.style.backgroundColor=d.getAttribute("value")||"",h}},{key:"selectItem",value:function(d,h){m(c.prototype.__proto__||Object.getPrototypeOf(c.prototype),"selectItem",this).call(this,d,h);var b=this.label.querySelector(".ql-color-label"),f=d&&d.getAttribute("data-value")||"";b&&(b.tagName==="line"?b.style.stroke=f:b.style.fill=f)}}]),c}(_.default);n.default=a},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var v=function(){function p(c,y){for(var d=0;d<y.length;d++){var h=y[d];h.enumerable=h.enumerable||!1,h.configurable=!0,"value"in h&&(h.writable=!0),Object.defineProperty(c,h.key,h)}}return function(c,y,d){return y&&p(c.prototype,y),d&&p(c,d),c}}(),m=function p(c,y,d){c===null&&(c=Function.prototype);var h=Object.getOwnPropertyDescriptor(c,y);if(h===void 0){var b=Object.getPrototypeOf(c);return b===null?void 0:p(b,y,d)}else{if("value"in h)return h.value;var f=h.get;return f===void 0?void 0:f.call(d)}},g=i(28),_=u(g);function u(p){return p&&p.__esModule?p:{default:p}}function s(p,c){if(!(p instanceof c))throw new TypeError("Cannot call a class as a function")}function l(p,c){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return c&&(typeof c=="object"||typeof c=="function")?c:p}function o(p,c){if(typeof c!="function"&&c!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof c);p.prototype=Object.create(c&&c.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),c&&(Object.setPrototypeOf?Object.setPrototypeOf(p,c):p.__proto__=c)}var a=function(p){o(c,p);function c(y,d){s(this,c);var h=l(this,(c.__proto__||Object.getPrototypeOf(c)).call(this,y));return h.container.classList.add("ql-icon-picker"),[].forEach.call(h.container.querySelectorAll(".ql-picker-item"),function(b){b.innerHTML=d[b.getAttribute("data-value")||""]}),h.defaultItem=h.container.querySelector(".ql-selected"),h.selectItem(h.defaultItem),h}return v(c,[{key:"selectItem",value:function(d,h){m(c.prototype.__proto__||Object.getPrototypeOf(c.prototype),"selectItem",this).call(this,d,h),d=d||this.defaultItem,this.label.innerHTML=d.innerHTML}}]),c}(_.default);n.default=a},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var v=function(){function _(u,s){for(var l=0;l<s.length;l++){var o=s[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(u,o.key,o)}}return function(u,s,l){return s&&_(u.prototype,s),l&&_(u,l),u}}();function m(_,u){if(!(_ instanceof u))throw new TypeError("Cannot call a class as a function")}var g=function(){function _(u,s){var l=this;m(this,_),this.quill=u,this.boundsContainer=s||document.body,this.root=u.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 v(_,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(s){var l=s.left+s.width/2-this.root.offsetWidth/2,o=s.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(),p=this.root.getBoundingClientRect(),c=0;if(p.right>a.right&&(c=a.right-p.right,this.root.style.left=l+c+"px"),p.left<a.left&&(c=a.left-p.left,this.root.style.left=l+c+"px"),p.bottom>a.bottom){var y=p.bottom-p.top,d=s.bottom-s.top+y;this.root.style.top=o-d+"px",this.root.classList.add("ql-flip")}return c}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),_}();n.default=g},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var v=function(){function x(E,w){var T=[],P=!0,$=!1,B=void 0;try{for(var V=E[Symbol.iterator](),Q;!(P=(Q=V.next()).done)&&(T.push(Q.value),!(w&&T.length===w));P=!0);}catch(j){$=!0,B=j}finally{try{!P&&V.return&&V.return()}finally{if($)throw B}}return T}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")}}(),m=function x(E,w,T){E===null&&(E=Function.prototype);var P=Object.getOwnPropertyDescriptor(E,w);if(P===void 0){var $=Object.getPrototypeOf(E);return $===null?void 0:x($,w,T)}else{if("value"in P)return P.value;var B=P.get;return B===void 0?void 0:B.call(T)}},g=function(){function x(E,w){for(var T=0;T<w.length;T++){var P=w[T];P.enumerable=P.enumerable||!1,P.configurable=!0,"value"in P&&(P.writable=!0),Object.defineProperty(E,P.key,P)}}return function(E,w,T){return w&&x(E.prototype,w),T&&x(E,T),E}}(),_=i(3),u=b(_),s=i(8),l=b(s),o=i(43),a=b(o),p=i(27),c=b(p),y=i(15),d=i(41),h=b(d);function b(x){return x&&x.__esModule?x:{default:x}}function f(x,E){if(!(x instanceof E))throw new TypeError("Cannot call a class as a function")}function O(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 S(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){S(E,x);function E(w,T){f(this,E),T.modules.toolbar!=null&&T.modules.toolbar.container==null&&(T.modules.toolbar.container=A);var P=O(this,(E.__proto__||Object.getPrototypeOf(E)).call(this,w,T));return P.quill.container.classList.add("ql-snow"),P}return g(E,[{key:"extendToolbar",value:function(T){T.container.classList.add("ql-snow"),this.buildButtons([].slice.call(T.container.querySelectorAll("button")),h.default),this.buildPickers([].slice.call(T.container.querySelectorAll("select")),h.default),this.tooltip=new N(this.quill,this.options.bounds),T.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},function(P,$){T.handlers.link.call(T,!$.format.link)})}}]),E}(a.default);k.DEFAULTS=(0,u.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 T=this.quill.getText(w);/^\S+@\S+\.\S+$/.test(T)&&T.indexOf("mailto:")!==0&&(T="mailto:"+T);var P=this.quill.theme.tooltip;P.edit("link",T)}else this.quill.format("link",!1)}}}}});var N=function(x){S(E,x);function E(w,T){f(this,E);var P=O(this,(E.__proto__||Object.getPrototypeOf(E)).call(this,w,T));return P.preview=P.root.querySelector("a.ql-preview"),P}return g(E,[{key:"listen",value:function(){var T=this;m(E.prototype.__proto__||Object.getPrototypeOf(E.prototype),"listen",this).call(this),this.root.querySelector("a.ql-action").addEventListener("click",function(P){T.root.classList.contains("ql-editing")?T.save():T.edit("link",T.preview.textContent),P.preventDefault()}),this.root.querySelector("a.ql-remove").addEventListener("click",function(P){if(T.linkRange!=null){var $=T.linkRange;T.restoreFocus(),T.quill.formatText($,"link",!1,l.default.sources.USER),delete T.linkRange}P.preventDefault(),T.hide()}),this.quill.on(l.default.events.SELECTION_CHANGE,function(P,$,B){if(P!=null){if(P.length===0&&B===l.default.sources.USER){var V=T.quill.scroll.descendant(c.default,P.index),Q=v(V,2),j=Q[0],C=Q[1];if(j!=null){T.linkRange=new y.Range(P.index-C,j.length());var q=c.default.formats(j.domNode);T.preview.textContent=q,T.preview.setAttribute("href",q),T.show(),T.position(T.quill.getBounds(T.linkRange));return}}else delete T.linkRange;T.hide()}})}},{key:"show",value:function(){m(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(""),n.default=k},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var v=i(29),m=J(v),g=i(36),_=i(38),u=i(64),s=i(65),l=J(s),o=i(66),a=J(o),p=i(67),c=J(p),y=i(37),d=i(26),h=i(39),b=i(40),f=i(56),O=J(f),S=i(68),A=J(S),k=i(27),N=J(k),x=i(69),E=J(x),w=i(70),T=J(w),P=i(71),$=J(P),B=i(72),V=J(B),Q=i(73),j=J(Q),C=i(13),q=J(C),R=i(74),D=J(R),z=i(75),U=J(z),L=i(57),I=J(L),K=i(41),G=J(K),F=i(28),M=J(F),H=i(59),X=J(H),ee=i(60),Z=J(ee),ne=i(61),ae=J(ne),W=i(108),Y=J(W),te=i(62),ie=J(te);function J(le){return le&&le.__esModule?le:{default:le}}m.default.register({"attributors/attribute/direction":_.DirectionAttribute,"attributors/class/align":g.AlignClass,"attributors/class/background":y.BackgroundClass,"attributors/class/color":d.ColorClass,"attributors/class/direction":_.DirectionClass,"attributors/class/font":h.FontClass,"attributors/class/size":b.SizeClass,"attributors/style/align":g.AlignStyle,"attributors/style/background":y.BackgroundStyle,"attributors/style/color":d.ColorStyle,"attributors/style/direction":_.DirectionStyle,"attributors/style/font":h.FontStyle,"attributors/style/size":b.SizeStyle},!0),m.default.register({"formats/align":g.AlignClass,"formats/direction":_.DirectionClass,"formats/indent":u.IndentClass,"formats/background":y.BackgroundStyle,"formats/color":d.ColorStyle,"formats/font":h.FontClass,"formats/size":b.SizeClass,"formats/blockquote":l.default,"formats/code-block":q.default,"formats/header":a.default,"formats/list":c.default,"formats/bold":O.default,"formats/code":C.Code,"formats/italic":A.default,"formats/link":N.default,"formats/script":E.default,"formats/strike":T.default,"formats/underline":$.default,"formats/image":V.default,"formats/video":j.default,"formats/list/item":p.ListItem,"modules/formula":D.default,"modules/syntax":U.default,"modules/toolbar":I.default,"themes/bubble":Y.default,"themes/snow":ie.default,"ui/icons":G.default,"ui/picker":M.default,"ui/icon-picker":Z.default,"ui/color-picker":X.default,"ui/tooltip":ae.default},!0),n.default=m.default},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.IndentClass=void 0;var v=function(){function c(y,d){for(var h=0;h<d.length;h++){var b=d[h];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(y,b.key,b)}}return function(y,d,h){return d&&c(y.prototype,d),h&&c(y,h),y}}(),m=function c(y,d,h){y===null&&(y=Function.prototype);var b=Object.getOwnPropertyDescriptor(y,d);if(b===void 0){var f=Object.getPrototypeOf(y);return f===null?void 0:c(f,d,h)}else{if("value"in b)return b.value;var O=b.get;return O===void 0?void 0:O.call(h)}},g=i(0),_=u(g);function u(c){return c&&c.__esModule?c:{default:c}}function s(c,y){if(!(c instanceof y))throw new TypeError("Cannot call a class as a function")}function l(c,y){if(!c)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y&&(typeof y=="object"||typeof y=="function")?y:c}function o(c,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof y);c.prototype=Object.create(y&&y.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(c,y):c.__proto__=y)}var a=function(c){o(y,c);function y(){return s(this,y),l(this,(y.__proto__||Object.getPrototypeOf(y)).apply(this,arguments))}return v(y,[{key:"add",value:function(h,b){if(b==="+1"||b==="-1"){var f=this.value(h)||0;b=b==="+1"?f+1:f-1}return b===0?(this.remove(h),!0):m(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"add",this).call(this,h,b)}},{key:"canAdd",value:function(h,b){return m(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"canAdd",this).call(this,h,b)||m(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"canAdd",this).call(this,h,parseInt(b))}},{key:"value",value:function(h){return parseInt(m(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"value",this).call(this,h))||void 0}}]),y}(_.default.Attributor.Class),p=new a("indent","ql-indent",{scope:_.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});n.IndentClass=p},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var v=i(4),m=g(v);function g(o){return o&&o.__esModule?o:{default:o}}function _(o,a){if(!(o instanceof a))throw new TypeError("Cannot call a class as a function")}function u(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 s(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){s(a,o);function a(){return _(this,a),u(this,(a.__proto__||Object.getPrototypeOf(a)).apply(this,arguments))}return a}(m.default);l.blotName="blockquote",l.tagName="blockquote",n.default=l},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var v=function(){function a(p,c){for(var y=0;y<c.length;y++){var d=c[y];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(p,d.key,d)}}return function(p,c,y){return c&&a(p.prototype,c),y&&a(p,y),p}}(),m=i(4),g=_(m);function _(a){return a&&a.__esModule?a:{default:a}}function u(a,p){if(!(a instanceof p))throw new TypeError("Cannot call a class as a function")}function s(a,p){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p&&(typeof p=="object"||typeof p=="function")?p:a}function l(a,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof p);a.prototype=Object.create(p&&p.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(a,p):a.__proto__=p)}var o=function(a){l(p,a);function p(){return u(this,p),s(this,(p.__proto__||Object.getPrototypeOf(p)).apply(this,arguments))}return v(p,null,[{key:"formats",value:function(y){return this.tagName.indexOf(y.tagName)+1}}]),p}(g.default);o.blotName="header",o.tagName=["H1","H2","H3","H4","H5","H6"],n.default=o},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.default=n.ListItem=void 0;var v=function(){function f(O,S){for(var A=0;A<S.length;A++){var k=S[A];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(O,k.key,k)}}return function(O,S,A){return S&&f(O.prototype,S),A&&f(O,A),O}}(),m=function f(O,S,A){O===null&&(O=Function.prototype);var k=Object.getOwnPropertyDescriptor(O,S);if(k===void 0){var N=Object.getPrototypeOf(O);return N===null?void 0:f(N,S,A)}else{if("value"in k)return k.value;var x=k.get;return x===void 0?void 0:x.call(A)}},g=i(0),_=a(g),u=i(4),s=a(u),l=i(25),o=a(l);function a(f){return f&&f.__esModule?f:{default:f}}function p(f,O,S){return O in f?Object.defineProperty(f,O,{value:S,enumerable:!0,configurable:!0,writable:!0}):f[O]=S,f}function c(f,O){if(!(f instanceof O))throw new TypeError("Cannot call a class as a function")}function y(f,O){if(!f)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return O&&(typeof O=="object"||typeof O=="function")?O:f}function d(f,O){if(typeof O!="function"&&O!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof O);f.prototype=Object.create(O&&O.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}}),O&&(Object.setPrototypeOf?Object.setPrototypeOf(f,O):f.__proto__=O)}var h=function(f){d(O,f);function O(){return c(this,O),y(this,(O.__proto__||Object.getPrototypeOf(O)).apply(this,arguments))}return v(O,[{key:"format",value:function(A,k){A===b.blotName&&!k?this.replaceWith(_.default.create(this.statics.scope)):m(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"format",this).call(this,A,k)}},{key:"remove",value:function(){this.prev==null&&this.next==null?this.parent.remove():m(O.prototype.__proto__||Object.getPrototypeOf(O.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(),m(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"replaceWith",this).call(this,A,k))}}],[{key:"formats",value:function(A){return A.tagName===this.tagName?void 0:m(O.__proto__||Object.getPrototypeOf(O),"formats",this).call(this,A)}}]),O}(s.default);h.blotName="list-item",h.tagName="LI";var b=function(f){d(O,f),v(O,null,[{key:"create",value:function(A){var k=A==="ordered"?"OL":"UL",N=m(O.__proto__||Object.getPrototypeOf(O),"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 O(S){c(this,O);var A=y(this,(O.__proto__||Object.getPrototypeOf(O)).call(this,S)),k=function(x){if(x.target.parentNode===S){var E=A.statics.formats(S),w=_.default.find(x.target);E==="checked"?w.format("list","unchecked"):E==="unchecked"&&w.format("list","checked")}};return S.addEventListener("touchstart",k),S.addEventListener("mousedown",k),A}return v(O,[{key:"format",value:function(A,k){this.children.length>0&&this.children.tail.format(A,k)}},{key:"formats",value:function(){return p({},this.statics.blotName,this.statics.formats(this.domNode))}},{key:"insertBefore",value:function(A,k){if(A instanceof h)m(O.prototype.__proto__||Object.getPrototypeOf(O.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){m(O.prototype.__proto__||Object.getPrototypeOf(O.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=_.default.create(this.statics.defaultChild);A.moveChildren(k),this.appendChild(k)}m(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"replace",this).call(this,A)}}]),O}(o.default);b.blotName="list",b.scope=_.default.Scope.BLOCK_BLOT,b.tagName=["OL","UL"],b.defaultChild="list-item",b.allowedChildren=[h],n.ListItem=h,n.default=b},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var v=i(56),m=g(v);function g(o){return o&&o.__esModule?o:{default:o}}function _(o,a){if(!(o instanceof a))throw new TypeError("Cannot call a class as a function")}function u(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 s(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){s(a,o);function a(){return _(this,a),u(this,(a.__proto__||Object.getPrototypeOf(a)).apply(this,arguments))}return a}(m.default);l.blotName="italic",l.tagName=["EM","I"],n.default=l},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var v=function(){function p(c,y){for(var d=0;d<y.length;d++){var h=y[d];h.enumerable=h.enumerable||!1,h.configurable=!0,"value"in h&&(h.writable=!0),Object.defineProperty(c,h.key,h)}}return function(c,y,d){return y&&p(c.prototype,y),d&&p(c,d),c}}(),m=function p(c,y,d){c===null&&(c=Function.prototype);var h=Object.getOwnPropertyDescriptor(c,y);if(h===void 0){var b=Object.getPrototypeOf(c);return b===null?void 0:p(b,y,d)}else{if("value"in h)return h.value;var f=h.get;return f===void 0?void 0:f.call(d)}},g=i(6),_=u(g);function u(p){return p&&p.__esModule?p:{default:p}}function s(p,c){if(!(p instanceof c))throw new TypeError("Cannot call a class as a function")}function l(p,c){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return c&&(typeof c=="object"||typeof c=="function")?c:p}function o(p,c){if(typeof c!="function"&&c!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof c);p.prototype=Object.create(c&&c.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),c&&(Object.setPrototypeOf?Object.setPrototypeOf(p,c):p.__proto__=c)}var a=function(p){o(c,p);function c(){return s(this,c),l(this,(c.__proto__||Object.getPrototypeOf(c)).apply(this,arguments))}return v(c,null,[{key:"create",value:function(d){return d==="super"?document.createElement("sup"):d==="sub"?document.createElement("sub"):m(c.__proto__||Object.getPrototypeOf(c),"create",this).call(this,d)}},{key:"formats",value:function(d){if(d.tagName==="SUB")return"sub";if(d.tagName==="SUP")return"super"}}]),c}(_.default);a.blotName="script",a.tagName=["SUB","SUP"],n.default=a},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var v=i(6),m=g(v);function g(o){return o&&o.__esModule?o:{default:o}}function _(o,a){if(!(o instanceof a))throw new TypeError("Cannot call a class as a function")}function u(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 s(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){s(a,o);function a(){return _(this,a),u(this,(a.__proto__||Object.getPrototypeOf(a)).apply(this,arguments))}return a}(m.default);l.blotName="strike",l.tagName="S",n.default=l},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var v=i(6),m=g(v);function g(o){return o&&o.__esModule?o:{default:o}}function _(o,a){if(!(o instanceof a))throw new TypeError("Cannot call a class as a function")}function u(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 s(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){s(a,o);function a(){return _(this,a),u(this,(a.__proto__||Object.getPrototypeOf(a)).apply(this,arguments))}return a}(m.default);l.blotName="underline",l.tagName="U",n.default=l},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var v=function(){function y(d,h){for(var b=0;b<h.length;b++){var f=h[b];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(d,f.key,f)}}return function(d,h,b){return h&&y(d.prototype,h),b&&y(d,b),d}}(),m=function y(d,h,b){d===null&&(d=Function.prototype);var f=Object.getOwnPropertyDescriptor(d,h);if(f===void 0){var O=Object.getPrototypeOf(d);return O===null?void 0:y(O,h,b)}else{if("value"in f)return f.value;var S=f.get;return S===void 0?void 0:S.call(b)}},g=i(0),_=s(g),u=i(27);function s(y){return y&&y.__esModule?y:{default:y}}function l(y,d){if(!(y instanceof d))throw new TypeError("Cannot call a class as a function")}function o(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 a(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 p=["alt","height","width"],c=function(y){a(d,y);function d(){return l(this,d),o(this,(d.__proto__||Object.getPrototypeOf(d)).apply(this,arguments))}return v(d,[{key:"format",value:function(b,f){p.indexOf(b)>-1?f?this.domNode.setAttribute(b,f):this.domNode.removeAttribute(b):m(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"format",this).call(this,b,f)}}],[{key:"create",value:function(b){var f=m(d.__proto__||Object.getPrototypeOf(d),"create",this).call(this,b);return typeof b=="string"&&f.setAttribute("src",this.sanitize(b)),f}},{key:"formats",value:function(b){return p.reduce(function(f,O){return b.hasAttribute(O)&&(f[O]=b.getAttribute(O)),f},{})}},{key:"match",value:function(b){return/\.(jpe?g|gif|png)$/.test(b)||/^data:image\/.+;base64/.test(b)}},{key:"sanitize",value:function(b){return(0,u.sanitize)(b,["http","https","data"])?b:"//:0"}},{key:"value",value:function(b){return b.getAttribute("src")}}]),d}(_.default.Embed);c.blotName="image",c.tagName="IMG",n.default=c},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var v=function(){function y(d,h){for(var b=0;b<h.length;b++){var f=h[b];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(d,f.key,f)}}return function(d,h,b){return h&&y(d.prototype,h),b&&y(d,b),d}}(),m=function y(d,h,b){d===null&&(d=Function.prototype);var f=Object.getOwnPropertyDescriptor(d,h);if(f===void 0){var O=Object.getPrototypeOf(d);return O===null?void 0:y(O,h,b)}else{if("value"in f)return f.value;var S=f.get;return S===void 0?void 0:S.call(b)}},g=i(4),_=i(27),u=s(_);function s(y){return y&&y.__esModule?y:{default:y}}function l(y,d){if(!(y instanceof d))throw new TypeError("Cannot call a class as a function")}function o(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 a(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 p=["height","width"],c=function(y){a(d,y);function d(){return l(this,d),o(this,(d.__proto__||Object.getPrototypeOf(d)).apply(this,arguments))}return v(d,[{key:"format",value:function(b,f){p.indexOf(b)>-1?f?this.domNode.setAttribute(b,f):this.domNode.removeAttribute(b):m(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"format",this).call(this,b,f)}}],[{key:"create",value:function(b){var f=m(d.__proto__||Object.getPrototypeOf(d),"create",this).call(this,b);return f.setAttribute("frameborder","0"),f.setAttribute("allowfullscreen",!0),f.setAttribute("src",this.sanitize(b)),f}},{key:"formats",value:function(b){return p.reduce(function(f,O){return b.hasAttribute(O)&&(f[O]=b.getAttribute(O)),f},{})}},{key:"sanitize",value:function(b){return u.default.sanitize(b)}},{key:"value",value:function(b){return b.getAttribute("src")}}]),d}(g.BlockEmbed);c.blotName="video",c.className="ql-video",c.tagName="IFRAME",n.default=c},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.default=n.FormulaBlot=void 0;var v=function(){function b(f,O){for(var S=0;S<O.length;S++){var A=O[S];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(f,A.key,A)}}return function(f,O,S){return O&&b(f.prototype,O),S&&b(f,S),f}}(),m=function b(f,O,S){f===null&&(f=Function.prototype);var A=Object.getOwnPropertyDescriptor(f,O);if(A===void 0){var k=Object.getPrototypeOf(f);return k===null?void 0:b(k,O,S)}else{if("value"in A)return A.value;var N=A.get;return N===void 0?void 0:N.call(S)}},g=i(35),_=a(g),u=i(5),s=a(u),l=i(9),o=a(l);function a(b){return b&&b.__esModule?b:{default:b}}function p(b,f){if(!(b instanceof f))throw new TypeError("Cannot call a class as a function")}function c(b,f){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f&&(typeof f=="object"||typeof f=="function")?f:b}function y(b,f){if(typeof f!="function"&&f!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof f);b.prototype=Object.create(f&&f.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),f&&(Object.setPrototypeOf?Object.setPrototypeOf(b,f):b.__proto__=f)}var d=function(b){y(f,b);function f(){return p(this,f),c(this,(f.__proto__||Object.getPrototypeOf(f)).apply(this,arguments))}return v(f,null,[{key:"create",value:function(S){var A=m(f.__proto__||Object.getPrototypeOf(f),"create",this).call(this,S);return typeof S=="string"&&(window.katex.render(S,A,{throwOnError:!1,errorColor:"#f00"}),A.setAttribute("data-value",S)),A}},{key:"value",value:function(S){return S.getAttribute("data-value")}}]),f}(_.default);d.blotName="formula",d.className="ql-formula",d.tagName="SPAN";var h=function(b){y(f,b),v(f,null,[{key:"register",value:function(){s.default.register(d,!0)}}]);function f(){p(this,f);var O=c(this,(f.__proto__||Object.getPrototypeOf(f)).call(this));if(window.katex==null)throw new Error("Formula module requires KaTeX.");return O}return f}(o.default);n.FormulaBlot=d,n.default=h},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.default=n.CodeToken=n.CodeBlock=void 0;var v=function(){function S(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&&S(A.prototype,k),N&&S(A,N),A}}(),m=function S(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:S(E,k,N)}else{if("value"in x)return x.value;var w=x.get;return w===void 0?void 0:w.call(N)}},g=i(0),_=c(g),u=i(5),s=c(u),l=i(9),o=c(l),a=i(13),p=c(a);function c(S){return S&&S.__esModule?S:{default:S}}function y(S,A){if(!(S instanceof A))throw new TypeError("Cannot call a class as a function")}function d(S,A){if(!S)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return A&&(typeof A=="object"||typeof A=="function")?A:S}function h(S,A){if(typeof A!="function"&&A!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof A);S.prototype=Object.create(A&&A.prototype,{constructor:{value:S,enumerable:!1,writable:!0,configurable:!0}}),A&&(Object.setPrototypeOf?Object.setPrototypeOf(S,A):S.__proto__=A)}var b=function(S){h(A,S);function A(){return y(this,A),d(this,(A.__proto__||Object.getPrototypeOf(A)).apply(this,arguments))}return v(A,[{key:"replaceWith",value:function(N){this.domNode.textContent=this.domNode.textContent,this.attach(),m(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}(p.default);b.className="ql-syntax";var f=new _.default.Attributor.Class("token","hljs",{scope:_.default.Scope.INLINE}),O=function(S){h(A,S),v(A,null,[{key:"register",value:function(){s.default.register(f,!0),s.default.register(b,!0)}}]);function A(k,N){y(this,A);var x=d(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(s.default.events.SCROLL_OPTIMIZE,function(){clearTimeout(E),E=setTimeout(function(){x.highlight(),E=null},x.options.interval)}),x.highlight(),x}return v(A,[{key:"highlight",value:function(){var N=this;if(!this.quill.selection.composing){this.quill.update(s.default.sources.USER);var x=this.quill.getSelection();this.quill.scroll.descendants(b).forEach(function(E){E.highlight(N.options.highlight)}),this.quill.update(s.default.sources.SILENT),x!=null&&this.quill.setSelection(x,s.default.sources.SILENT)}}}]),A}(o.default);O.DEFAULTS={highlight:function(){return window.hljs==null?null:function(S){var A=window.hljs.highlightAuto(S);return A.value}}(),interval:1e3},n.CodeBlock=b,n.CodeToken=f,n.default=O},function(r,n){r.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(r,n){r.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(r,n){r.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(r,n){r.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(r,n){r.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(r,n){r.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(r,n){r.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(r,n){r.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(r,n){r.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(r,n){r.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(r,n){r.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(r,n){r.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(r,n){r.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(r,n){r.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(r,n){r.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(r,n){r.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(r,n){r.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(r,n){r.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(r,n){r.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(r,n){r.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(r,n){r.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(r,n){r.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(r,n){r.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(r,n){r.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(r,n){r.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(r,n){r.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(r,n){r.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(r,n){r.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(r,n){r.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(r,n){r.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(r,n){r.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(r,n){r.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(r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.default=n.BubbleTooltip=void 0;var v=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 T=E.get;return T===void 0?void 0:T.call(x)}},m=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}}(),g=i(3),_=y(g),u=i(8),s=y(u),l=i(43),o=y(l),a=i(15),p=i(41),c=y(p);function y(A){return A&&A.__esModule?A:{default:A}}function d(A,k){if(!(A instanceof k))throw new TypeError("Cannot call a class as a function")}function h(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 f=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],O=function(A){b(k,A);function k(N,x){d(this,k),x.modules.toolbar!=null&&x.modules.toolbar.container==null&&(x.modules.toolbar.container=f);var E=h(this,(k.__proto__||Object.getPrototypeOf(k)).call(this,N,x));return E.quill.container.classList.add("ql-bubble"),E}return m(k,[{key:"extendToolbar",value:function(x){this.tooltip=new S(this.quill,this.options.bounds),this.tooltip.root.appendChild(x.container),this.buildButtons([].slice.call(x.container.querySelectorAll("button")),c.default),this.buildPickers([].slice.call(x.container.querySelectorAll("select")),c.default)}}]),k}(o.default);O.DEFAULTS=(0,_.default)(!0,{},o.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(k){k?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var S=function(A){b(k,A);function k(N,x){d(this,k);var E=h(this,(k.__proto__||Object.getPrototypeOf(k)).call(this,N,x));return E.quill.on(s.default.events.EDITOR_CHANGE,function(w,T,P,$){if(w===s.default.events.SELECTION_CHANGE)if(T!=null&&T.length>0&&$===s.default.sources.USER){E.show(),E.root.style.left="0px",E.root.style.width="",E.root.style.width=E.root.offsetWidth+"px";var B=E.quill.getLines(T.index,T.length);if(B.length===1)E.position(E.quill.getBounds(T));else{var V=B[B.length-1],Q=E.quill.getIndex(V),j=Math.min(V.length()-1,T.index+T.length-Q),C=E.quill.getBounds(new a.Range(Q,j));E.position(C)}}else document.activeElement!==E.textbox&&E.quill.hasFocus()&&E.hide()}),E}return m(k,[{key:"listen",value:function(){var x=this;v(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(s.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=v(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);S.TEMPLATE=['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].join(""),n.BubbleTooltip=S,n.default=O},function(r,n,i){r.exports=i(63)}]).default})})(uo);var Zg=_e&&_e.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var v in i)i.hasOwnProperty(v)&&(n[v]=i[v])},e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),St=_e&&_e.__assign||function(){return St=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},St.apply(this,arguments)},Yg=_e&&_e.__spreadArrays||function(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;for(var n=Array(e),i=0,t=0;t<r;t++)for(var v=arguments[t],m=0,g=v.length;m<g;m++,i++)n[i]=v[m];return n},jt=_e&&_e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},qe=jt(at.exports),Xg=jt(_o.exports),ot=jt(Wg),Dn=jt(uo.exports),Qg=function(e){Zg(t,e);function t(r){var n=e.call(this,r)||this;n.dirtyProps=["modules","formats","bounds","theme","children"],n.cleanProps=["id","className","style","placeholder","tabIndex","onChange","onChangeSelection","onFocus","onBlur","onKeyPress","onKeyDown","onKeyUp"],n.state={generation:0},n.selection=null,n.onEditorChange=function(v,m,g,_){var u,s,l,o;v==="text-change"?(s=(u=n).onEditorChangeText)===null||s===void 0||s.call(u,n.editor.root.innerHTML,m,_,n.unprivilegedEditor):v==="selection-change"&&((o=(l=n).onEditorChangeSelection)===null||o===void 0||o.call(l,m,_,n.unprivilegedEditor))};var i=n.isControlled()?r.value:r.defaultValue;return n.value=i!=null?i:"",n}return t.prototype.validateProps=function(r){var n;if(qe.default.Children.count(r.children)>1)throw new Error("The Quill editing area can only be composed of a single React element.");if(qe.default.Children.count(r.children)){var i=qe.default.Children.only(r.children);if(((n=i)===null||n===void 0?void 0:n.type)==="textarea")throw new Error("Quill does not support editing on a <textarea>. Use a <div> instead.")}if(this.lastDeltaChangeSet&&r.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")},t.prototype.shouldComponentUpdate=function(r,n){var i=this,v;if(this.validateProps(r),!this.editor||this.state.generation!==n.generation)return!0;if("value"in r){var m=this.getEditorContents(),g=(v=r.value,v!=null?v:"");this.isEqualValue(g,m)||this.setEditorContents(this.editor,g)}return r.readOnly!==this.props.readOnly&&this.setEditorReadOnly(this.editor,r.readOnly),Yg(this.cleanProps,this.dirtyProps).some(function(_){return!ot.default(r[_],i.props[_])})},t.prototype.shouldComponentRegenerate=function(r){var n=this;return this.dirtyProps.some(function(i){return!ot.default(r[i],n.props[i])})},t.prototype.componentDidMount=function(){this.instantiateEditor(),this.setEditorContents(this.editor,this.getEditorContents())},t.prototype.componentWillUnmount=function(){this.destroyEditor()},t.prototype.componentDidUpdate=function(r,n){var i=this;if(this.editor&&this.shouldComponentRegenerate(r)){var v=this.editor.getContents(),m=this.editor.getSelection();this.regenerationSnapshot={delta:v,selection:m},this.setState({generation:this.state.generation+1}),this.destroyEditor()}if(this.state.generation!==n.generation){var g=this.regenerationSnapshot,v=g.delta,_=g.selection;delete this.regenerationSnapshot,this.instantiateEditor();var u=this.editor;u.setContents(v),Cn(function(){return i.setEditorSelection(u,_)})}},t.prototype.instantiateEditor=function(){this.editor||(this.editor=this.createEditor(this.getEditingArea(),this.getEditorConfig()))},t.prototype.destroyEditor=function(){!this.editor||(this.unhookEditor(this.editor),delete this.editor)},t.prototype.isControlled=function(){return"value"in this.props},t.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}},t.prototype.getEditor=function(){if(!this.editor)throw new Error("Accessing non-instantiated editor");return this.editor},t.prototype.createEditor=function(r,n){var i=new Dn.default(r,n);return n.tabIndex!=null&&this.setEditorTabIndex(i,n.tabIndex),this.hookEditor(i),i},t.prototype.hookEditor=function(r){this.unprivilegedEditor=this.makeUnprivilegedEditor(r),r.on("editor-change",this.onEditorChange)},t.prototype.unhookEditor=function(r){r.off("editor-change",this.onEditorChange)},t.prototype.getEditorContents=function(){return this.value},t.prototype.getEditorSelection=function(){return this.selection},t.prototype.isDelta=function(r){return r&&r.ops},t.prototype.isEqualValue=function(r,n){return this.isDelta(r)&&this.isDelta(n)?ot.default(r.ops,n.ops):ot.default(r,n)},t.prototype.setEditorContents=function(r,n){var i=this;this.value=n;var v=this.getEditorSelection();typeof n=="string"?r.setContents(r.clipboard.convert(n)):r.setContents(n),Cn(function(){return i.setEditorSelection(r,v)})},t.prototype.setEditorSelection=function(r,n){if(this.selection=n,n){var i=r.getLength();n.index=Math.max(0,Math.min(n.index,i-1)),n.length=Math.max(0,Math.min(n.length,i-1-n.index)),r.setSelection(n)}},t.prototype.setEditorTabIndex=function(r,n){var i,v;!((v=(i=r)===null||i===void 0?void 0:i.scroll)===null||v===void 0)&&v.domNode&&(r.scroll.domNode.tabIndex=n)},t.prototype.setEditorReadOnly=function(r,n){n?r.disable():r.enable()},t.prototype.makeUnprivilegedEditor=function(r){var n=r;return{getHTML:function(){return n.root.innerHTML},getLength:n.getLength.bind(n),getText:n.getText.bind(n),getContents:n.getContents.bind(n),getSelection:n.getSelection.bind(n),getBounds:n.getBounds.bind(n)}},t.prototype.getEditingArea=function(){if(!this.editingArea)throw new Error("Instantiating on missing editing area");var r=Xg.default.findDOMNode(this.editingArea);if(!r)throw new Error("Cannot find element for editing area");if(r.nodeType===3)throw new Error("Editing area cannot be a text node");return r},t.prototype.renderEditingArea=function(){var r=this,n=this.props,i=n.children,v=n.preserveWhitespace,m=this.state.generation,g={key:m,ref:function(_){r.editingArea=_}};return qe.default.Children.count(i)?qe.default.cloneElement(qe.default.Children.only(i),g):v?qe.default.createElement("pre",St({},g)):qe.default.createElement("div",St({},g))},t.prototype.render=function(){var r;return qe.default.createElement("div",{id:this.props.id,style:this.props.style,key:this.state.generation,className:"quill "+(r=this.props.className,r!=null?r:""),onKeyPress:this.props.onKeyPress,onKeyDown:this.props.onKeyDown,onKeyUp:this.props.onKeyUp},this.renderEditingArea())},t.prototype.onEditorChangeText=function(r,n,i,v){var m,g;if(!!this.editor){var _=this.isDelta(this.value)?v.getContents():v.getHTML();_!==this.getEditorContents()&&(this.lastDeltaChangeSet=n,this.value=_,(g=(m=this.props).onChange)===null||g===void 0||g.call(m,r,n,i,v))}},t.prototype.onEditorChangeSelection=function(r,n,i){var v,m,g,_,u,s;if(!!this.editor){var l=this.getEditorSelection(),o=!l&&r,a=l&&!r;ot.default(r,l)||(this.selection=r,(m=(v=this.props).onChangeSelection)===null||m===void 0||m.call(v,r,n,i),o?(_=(g=this.props).onFocus)===null||_===void 0||_.call(g,r,n,i):a&&((s=(u=this.props).onBlur)===null||s===void 0||s.call(u,l,n,i)))}},t.prototype.focus=function(){!this.editor||this.editor.focus()},t.prototype.blur=function(){!this.editor||(this.selection=null,this.editor.blur())},t.displayName="React Quill",t.Quill=Dn.default,t.defaultProps={theme:"snow",modules:{},readOnly:!1},t}(qe.default.Component);function Cn(e){Promise.resolve().then(e)}var Bt=Qg;Ae("div")(({theme:e})=>{const t=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":{...t&&{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)}}}}}});const Jg=["Arial","Tahoma","Georgia","Impact","Verdana"],em=["8px","9px","10px","12px","14px","16px","20px","24px","32px","42px","54px","68px","84px","98px"],fo=Bt.Quill.import("attributors/style/size");fo.whitelist=em;Bt.Quill.register(fo,!0);const co=Bt.Quill.import("attributors/style/font");co.whitelist=Jg;Bt.Quill.register(co,!0);Ae(Oo)(({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 um({name:e,...t}){const{control:r}=Ct();return Se(Og,{name:e,control:r,render:({field:n,fieldState:{error:i}})=>Se(Eo,{...n,fullWidth:!0,error:!!i,helperText:i==null?void 0:i.message,...t})})}export{Og as C,sm as F,om as L,um as R,Hp as a,Gp as b,vg as c,Mp as d,lm as e,am as f,im as o,nm as u};