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-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-1&&e%1==0&&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;++ne&&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;tlt(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;og))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=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=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{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)||nthis.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]);++ii?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=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`${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;tObject.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{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=$new Date(T.value)),Ne(P.value)&&(w=$E.value,P=!ge(w.value)&&t.length({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(;n0&&(v=e);++g{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=h&&!A||A==="b"?(y+=o.abbreviations.billion,u=u/h):k=b&&!A||A==="m"?(y+=o.abbreviations.million,u=u/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.length0;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)throw new TypeError("Reduce of empty array with no initial value");p=l[a++]}for(;ao?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&&a0&&(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=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;d1)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;c0&&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"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={});f0&&(P1&&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;R2&&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(`
`+D+"


");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=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;b0){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:b1?S-1:0),k=1;k1&&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;a0&&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=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=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=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;E1&&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?(V0&&(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.topC.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;d0&&(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;T0){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;G1&&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-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;b1&&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;lN&&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;U0&&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;_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(gp?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;aO.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;TS)V+=2;else if(z>A)B+=2;else if($){var U=N+P-q;if(U>=0&&U=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]S)j+=2;else if(K>A)Q+=2;else if(!$){var R=N+P-I;if(R>=0&&R=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;SO.length?f:O,A=f.length>O.length?O:f;if(S.length<4||A.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;O1?(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;O0&&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;k0&&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\r?\n +\<"),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-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 '},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var v=function(){function p(c,y){for(var d=0;da.right&&(c=a.right-p.right,this.root.style.left=l+c+"px"),p.lefta.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','','',''].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;h0&&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-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-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;S0||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=' '},function(r,n){r.exports=' '},function(r,n){r.exports=' '},function(r,n){r.exports=' '},function(r,n){r.exports=' '},function(r,n){r.exports=' '},function(r,n){r.exports=' '},function(r,n){r.exports=' '},function(r,n){r.exports=' '},function(r,n){r.exports=' '},function(r,n){r.exports=' '},function(r,n){r.exports=' '},function(r,n){r.exports=' '},function(r,n){r.exports=' '},function(r,n){r.exports=' '},function(r,n){r.exports=' '},function(r,n){r.exports=' '},function(r,n){r.exports=' '},function(r,n){r.exports=' '},function(r,n){r.exports=' '},function(r,n){r.exports=' '},function(r,n){r.exports=' '},function(r,n){r.exports=' '},function(r,n){r.exports=' '},function(r,n){r.exports=' '},function(r,n){r.exports=' '},function(r,n){r.exports=' '},function(r,n){r.exports=' '},function(r,n){r.exports=' '},function(r,n){r.exports=' '},function(r,n){r.exports=' '},function(r,n){r.exports=' '},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;x0&&$===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=['','
','','',"
"].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;r1)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