ablok-components 0.1.185 → 0.1.187

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,20 +1,42 @@
1
- (function(Ce,h){typeof exports=="object"&&typeof module<"u"?h(exports,require("vue"),require("@popperjs/core")):typeof define=="function"&&define.amd?define(["exports","vue","@popperjs/core"],h):(Ce=typeof globalThis<"u"?globalThis:Ce||self,h(Ce.AblokComponents={},Ce.Vue,Ce.core))})(this,function(Ce,h,fh){"use strict";const dE={class:"icon",preserveAspectRatio:"xMaxYMin"},hE=["xlink:href"],pE=h.defineComponent({__name:"svg-icon",props:{basePath:{type:String,default:"/symbol-defs.svg"},prefix:{type:String,default:"icon-"},symbol:{type:String,default:""},size:{type:String,default:"default"}},setup(t){return(e,A)=>(h.openBlock(),h.createElementBlock("i",{class:h.normalizeClass(["svg-icon",{[`svg-icon--${t.size}`]:t.size}])},[(h.openBlock(),h.createElementBlock("svg",dE,[h.createElementVNode("use",{"xlink:href":`${t.basePath}#${t.prefix}${t.symbol}`,"xmlns:xlink":"http://www.w3.org/1999/xlink",x:"0",y:"0"},null,8,hE)]))],2))}}),a$="",gE={class:"loading-spinner d-block"},mE=h.createElementVNode("span",{class:"loading-spinner__animation"},[h.createElementVNode("svg",{version:"1.1",x:"0px",y:"0px",viewBox:"0 0 100 100"},[h.createElementVNode("path",{d:"M73,50c0-12.7-10.3-23-23-23S27,37.3,27,50 M30.9,50c0-10.5,8.5-19.1,19.1-19.1S69.1,39.5,69.1,50"},[h.createElementVNode("animateTransform",{attributeName:"transform",attributeType:"XML",type:"rotate",dur:"1s",from:"0 50 50",to:"360 50 50",repeatCount:"indefinite"})])])],-1),BE=h.defineComponent({__name:"loading-spinner",props:{color:{type:String,default:"#fff"}},setup(t){return(e,A)=>(h.openBlock(),h.createElementBlock("span",gE,[mE,h.renderSlot(e.$slots,"default")]))}}),l$="",wE=["src","alt"],CE=h.defineComponent({__name:"base-image",props:{src:{type:String,default:'data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg"/>',required:!0},alt:{type:String,default:""},spinner:{type:Boolean,default:!1},zoom:{type:Boolean,default:!1}},setup(t){const e=h.ref(!1);return(A,n)=>{const r=h.resolveComponent("loading-spinner");return t.src?(h.openBlock(),h.createElementBlock("div",{key:0,class:h.normalizeClass(["base-image",{"base-image--zoom":t.zoom}])},[t.spinner&&!e.value?(h.openBlock(),h.createBlock(r,{key:0})):h.createCommentVNode("",!0),h.createElementVNode("img",{class:h.normalizeClass(["",{"opacity-0":!e.value,"opacity-1":e.value}]),src:t.src,alt:t.alt,onLoad:n[0]||(n[0]=()=>e.value=!0)},null,42,wE)],2)):h.createCommentVNode("",!0)}}}),c$="",yE=["innerHTML"],EE=h.defineComponent({__name:"base-headline",props:{tag:{},size:{},variant:{},text:{},className:{}},setup(t){const e=t,A=h.computed(()=>e.tag||"p");return(n,r)=>(h.openBlock(),h.createBlock(h.resolveDynamicComponent(A.value),{class:h.normalizeClass(["headline",`${n.size} headline--${n.size}${n.className||""}`])},{default:h.withCtx(()=>[h.renderSlot(n.$slots,"default",{},()=>[h.createElementVNode("span",{class:"headline__text",innerHTML:n.text},null,8,yE)])]),_:3},8,["class"]))}}),QE=["innerHTML"],FE=h.defineComponent({__name:"base-paragraph",props:{size:{},variant:{},text:{},className:{}},setup(t){return(e,A)=>(h.openBlock(),h.createElementBlock("p",{class:h.normalizeClass(["base-paragraph",`${e.size||""} ${e.className||""}`]),innerHTML:e.text},null,10,QE))}});function $e(){return(new Date().valueOf()+Math.random()).toString(36).replace(".","")}const bE={class:"accordion-item"},UE=["id"],vE=["data-bs-target","aria-controls"],IE={class:"flex-grow-1"},SE=["id","aria-labelledby","data-bs-parent"],TE={class:"accordion-body"},_E=["innerHTML"],xE=h.defineComponent({__name:"accordion-item",props:{id:{type:String,default:()=>$e()},modelValue:{type:Boolean,default:!1},title:{type:String,default:"Accordion Title"},body:{type:String,default:"<p>Lorem ipsum dolor sit amet consectetur, adipisicing elit. Nisi aut, nobis inventore repudiandae quo laboriosam. Dicta placeat ullam harum optio expedita. Harum fugiat suscipit sapiente quos, molestias neque eaque omnis?</p>"},parent:{type:String,default:""}},emits:["update:modelValue"],setup(t,{emit:e}){const A=t,n=e;function r(){n("update:modelValue",!A.modelValue)}return(i,s)=>(h.openBlock(),h.createElementBlock("div",bE,[h.createElementVNode("div",{class:"accordion-header",id:`heading${t.id}`},[h.createElementVNode("button",{class:h.normalizeClass(["accordion-button",!t.modelValue&&"collapsed"]),type:"button","data-bs-toggle":"collapse","data-bs-target":`#target${t.id}`,"aria-expanded":"true","aria-controls":`target${t.id}`,onClick:r},[h.renderSlot(i.$slots,"toggle",{},()=>[h.createElementVNode("span",IE,h.toDisplayString(t.title),1)])],10,vE)],8,UE),h.createElementVNode("div",{class:h.normalizeClass(["accordion-collapse collapse",t.modelValue&&"show"]),id:`target${t.id}`,"aria-labelledby":`heading${t.id}`,"data-bs-parent":t.parent},[h.createElementVNode("div",TE,[h.renderSlot(i.$slots,"body",{},()=>[h.createElementVNode("article",{innerHTML:t.body},null,8,_E)])])],10,SE)]))}}),u$="",OE=(t,e)=>{const A=t.__vccOpts||t;for(const[n,r]of e)A[n]=r;return A},LE={},kE={class:"accordion"};function HE(t,e){return h.openBlock(),h.createElementBlock("div",kE,[h.renderSlot(t.$slots,"default")])}const NE=OE(LE,[["render",HE]]),DE=["type","disabled"],ME=h.defineComponent({__name:"base-button",props:{type:{type:null},caption:{type:String},variant:{type:String},color:{type:String,default:"primary"},size:{type:String},icon:{type:String},disabled:{type:Boolean,default:!1},pending:{type:Boolean,default:!1},success:{type:Boolean,default:!1},error:{type:Boolean,default:!1},outlined:{type:Boolean,default:!1},rounded:{type:Boolean,default:!1},circle:{type:Boolean,default:!1}},setup(t){const e=t,A=h.computed(()=>e.caption&&!e.circle);return(n,r)=>{const i=h.resolveComponent("loading-spinner"),s=h.resolveComponent("svg-icon");return h.openBlock(),h.createElementBlock("button",{type:t.type,disabled:t.disabled,class:h.normalizeClass(["btn",{disabled:t.disabled,pending:t.pending,rounded:t.rounded,"rounded-circle":t.circle,[`btn-${t.color}`]:!t.outlined,[`btn-outline-${t.color}`]:t.outlined,"x-large":t.size==="x-large",large:t.size==="large",small:t.size==="small","x-small":t.size==="x-small"}])},[t.pending?h.renderSlot(n.$slots,"pending-icon",{key:0},()=>[h.createVNode(i)]):h.createCommentVNode("",!0),h.renderSlot(n.$slots,"default",{},()=>[t.icon?(h.openBlock(),h.createBlock(s,{key:0,symbol:t.icon,class:"base-button__caption"},null,8,["symbol"])):h.createCommentVNode("",!0),A.value?(h.openBlock(),h.createElementBlock("span",{key:1,class:h.normalizeClass(["base-button__caption",{"icon-padding":t.icon}])},h.toDisplayString(t.caption),3)):h.createCommentVNode("",!0)])],10,DE)}}}),f$="",RE={class:"input-group input__input-group"},KE=["type","id","name","placeholder","pattern","disabled","readonly","required","maxlength","true-value","false-value","aria-label","role","autocomplete"],VE=["for","innerHTML"],PE=h.defineComponent({__name:"base-input",props:{modelValue:{type:[String,Number,Boolean,Date],default:""},type:{type:String,default:"text"},name:{type:String,default:()=>$e()},id:{type:String,default:()=>$e()},label:{type:String,default:""},placeholder:{type:String,default:""},variant:{type:String,default:""},disabled:{type:Boolean,default:!1},readOnly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},maxlength:{type:Number},pattern:{type:String,default:null},trueValue:{type:null,default:!0},falseValue:{type:null,default:!1},role:{type:String,default:"presentation"},autocomplete:{type:String,default:"off"}},emits:["update:modelValue"],setup(t,{emit:e}){const A=t,n=e,r=h.ref(),i=h.computed({get(){return A.modelValue},set(s){n("update:modelValue",s)}});return h.onMounted(()=>{let s=a=>{console.log("focussedHandler",a),i.value=typeof a.detail=="string"||typeof a.detail=="number"?`${a.detail}`:""};r.value.addEventListener("focusin",a=>{console.log("focusin",r.value),window.addEventListener("update-focussed-input",s)}),r.value.addEventListener("focusout",a=>{console.log("focusout",r.value),window.removeEventListener("update-focussed-input",s)})}),(s,a)=>(h.openBlock(),h.createElementBlock("div",{class:h.normalizeClass(["input",`input--${t.type}`])},[h.createElementVNode("div",RE,[h.renderSlot(s.$slots,"input-prepend",{slotScope:"props"}),h.withDirectives(h.createElementVNode("input",{ref_key:"input",ref:r,"onUpdate:modelValue":a[0]||(a[0]=c=>i.value=c),type:t.type==="color"?"text":t.type,id:t.id,name:t.name,placeholder:t.placeholder,pattern:t.pattern,disabled:t.disabled,readonly:t.readOnly,required:t.required,maxlength:t.maxlength,"true-value":t.trueValue,"false-value":t.falseValue,class:h.normalizeClass(["form-control",{"form-check-input":t.type==="checkbox"}]),"aria-label":t.label,role:t.role,autocomplete:t.autocomplete},null,10,KE),[[h.vModelDynamic,i.value]]),h.renderSlot(s.$slots,"input-append",{slotScope:"props"})]),h.renderSlot(s.$slots,"label",{},()=>[t.label?(h.openBlock(),h.createElementBlock("label",{key:0,for:t.id,class:h.normalizeClass(["input__label",{"form-check-label":t.type==="checkbox"}]),innerHTML:`${t.label}${t.required?" *":""}`},null,10,VE)):h.createCommentVNode("",!0)])],2))}}),d$="",GE={class:"input input--textarea"},$E=["type","id","name","placeholder","pattern","disabled","read-only","required","maxlength","aria-label"],WE=["for","innerHTML"],JE=h.defineComponent({__name:"input-textarea",props:{modelValue:{type:String,default:""},type:{type:String,default:"text"},name:{type:String,default:()=>$e()},id:{type:String,default:()=>$e()},label:{type:String,default:""},placeholder:{type:String,default:""},variant:{type:String,default:""},disabled:{type:Boolean,default:!1},readOnly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},maxlength:{type:Number},pattern:{type:String,default:null},checked:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(t,{emit:e}){const A=t,n=e,r=h.computed({get(){return A.modelValue},set(i){n("update:modelValue",i)}});return(i,s)=>(h.openBlock(),h.createElementBlock("div",GE,[h.renderSlot(i.$slots,"input-prepend"),h.withDirectives(h.createElementVNode("textarea",{"onUpdate:modelValue":s[0]||(s[0]=a=>r.value=a),type:t.type,id:t.id,name:t.name,placeholder:t.placeholder,pattern:t.pattern,disabled:t.disabled,"read-only":t.readOnly,required:t.required,maxlength:t.maxlength,class:h.normalizeClass(["form-control",{}]),"aria-label":t.label},null,8,$E),[[h.vModelText,r.value]]),h.renderSlot(i.$slots,"input-append"),h.renderSlot(i.$slots,"label",{},()=>[h.createElementVNode("label",{for:t.id,class:h.normalizeClass(["input__label",{"form-check-label":t.type==="checkbox"}]),innerHTML:`${t.label}${t.required?" *":""}`},null,10,WE)])]))}}),XE=["value","id","name","required","disabled","true-value","false-value"],YE=["for","innerHTML"],zE=h.createElementVNode("span",{class:"input__error"},"error",-1),qE=h.defineComponent({__name:"input-checkbox",props:{id:{type:String},name:{type:String},label:{type:String},error:{type:String},disabled:{type:Boolean,default:!1},readOnly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},modelValue:{type:[Boolean,Array]},value:{type:[String,Object]},checked:{type:Boolean},trueValue:{type:null,default:!0},falseValue:{type:null,default:!1}},emits:["update:modelValue","update:checked"],setup(t,{emit:e}){const A=t,n=e,r=h.computed({get(){return A.modelValue||A.checked},set(i){n("update:checked",i),n("update:modelValue",i)}});return(i,s)=>(h.openBlock(),h.createElementBlock("div",{class:"form-check input input--checkbox",onClick:s[1]||(s[1]=h.withModifiers(a=>i.void,["stop"]))},[h.withDirectives(h.createElementVNode("input",{ref:"input","onUpdate:modelValue":s[0]||(s[0]=a=>r.value=a),value:t.value,id:t.id,name:t.name,type:"checkbox",required:t.required,disabled:t.disabled,class:"form-check-input","true-value":t.trueValue,"false-value":t.falseValue},null,8,XE),[[h.vModelCheckbox,r.value]]),h.createElementVNode("label",{class:"input__label form-check-label",for:t.id,innerHTML:t.label},null,8,YE),zE]))}}),h$=`:root,*:before,*:after{--border-color: #ced4da;--border-radius: .25rem}.input--checkbox{flex-flow:row;gap:.5rem}.input--checkbox input{order:0}
2
- `,ZE={class:"input-group input__input-group"},jE=["id","name","placeholder","pattern","disabled","read-only","required","aria-label"],eQ=["for","innerHTML"],AQ=h.defineComponent({__name:"input-datetime",props:{modelValue:{type:[String,Number,Boolean,Date],default:""},type:{type:String,default:"text"},name:{type:String,default:()=>$e()},id:{type:String,default:()=>$e()},label:{type:String,default:""},placeholder:{type:String,default:""},variant:{type:String,default:""},disabled:{type:Boolean,default:!1},readOnly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},pattern:{type:String,default:null}},emits:["update:modelValue"],setup(t,{emit:e}){const A=t,n=e,r=h.computed({get(){const i=A.modelValue&&new Date(`${A.modelValue}Z`),s=i&&new Date(i.getTime()+new Date().getTimezoneOffset()*-60*1e3).toISOString();return s&&s.replace("Z","")},set(i){const s=i&&new Date(i);i=s&&s.toISOString(),n("update:modelValue",i&&i.replace("Z",""))}});return(i,s)=>(h.openBlock(),h.createElementBlock("div",{class:h.normalizeClass(["input",`input--${t.type}`])},[h.createElementVNode("div",ZE,[h.renderSlot(i.$slots,"input-prepend",{slotScope:"props"}),h.withDirectives(h.createElementVNode("input",{"onUpdate:modelValue":s[0]||(s[0]=a=>r.value=a),type:"datetime-local",id:t.id,name:t.name,placeholder:t.placeholder,pattern:t.pattern,disabled:t.disabled,"read-only":t.readOnly,required:t.required,class:"form-control","aria-label":t.label},null,8,jE),[[h.vModelText,r.value]]),h.renderSlot(i.$slots,"input-append",{slotScope:"props"})]),h.renderSlot(i.$slots,"label",{},()=>[t.label?(h.openBlock(),h.createElementBlock("label",{key:0,for:t.id,class:"input__label",innerHTML:`${t.label}${t.required?" *":""}`},null,8,eQ)):h.createCommentVNode("",!0)])],2))}}),tQ={class:"input-group input__input-group"},nQ=h.defineComponent({__name:"input-password",props:{modelValue:{type:[String,Number,Boolean,Date],default:""},type:{type:String,default:"text"},name:{type:String,default:()=>$e()},id:{type:String,default:()=>$e()},label:{type:String,default:""},placeholder:{type:String,default:""},variant:{type:String,default:""},disabled:{type:Boolean,default:!1},readOnly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},maxlength:{type:Number},pattern:{type:String,default:null},role:{type:String,default:"presentation"},autocomplete:{type:String,default:"off"},password:{type:String,default:""},confirm:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(t,{emit:e}){const A=t,n=e,r=h.computed({get(){return A.modelValue},set(i){(A.password===i||!A.password)&&n("update:modelValue",i)}});return(i,s)=>{const a=h.resolveComponent("svg-icon"),c=h.resolveComponent("base-input");return h.openBlock(),h.createElementBlock("div",{class:h.normalizeClass(["input","input-password"])},[h.createElementVNode("div",tQ,[h.createVNode(c,{modelValue:r.value,"onUpdate:modelValue":s[0]||(s[0]=u=>r.value=u),type:"password",placeholder:t.placeholder,disabled:t.disabled,readonly:t.readOnly,required:t.required,label:t.label},{"input-prepend":h.withCtx(u=>[h.renderSlot(i.$slots,"input-prepend",{slotScope:"props"})]),"input-append":h.withCtx(u=>[h.renderSlot(i.$slots,"input-append",{slotScope:"props"},()=>[t.confirm&&t.modelValue===t.password?(h.openBlock(),h.createBlock(a,{key:0,symbol:"check",class:"ms-2"})):h.createCommentVNode("",!0)])]),_:3},8,["modelValue","placeholder","disabled","readonly","required","label"])])])}}}),rQ={class:"check-group"},iQ=["id","name","value","disabled","read-only","required"],sQ=["for","innerHTML"],oQ=h.defineComponent({__name:"check-group",props:{modelValue:{type:null,default:()=>[]},options:{type:Array,required:!0},name:{type:String,default:()=>$e()},id:{type:String,default:()=>$e()},label:{type:String,default:""},disabled:{type:Boolean,default:!1},readOnly:{type:Boolean,default:!1},required:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(t,{emit:e}){const A=t,n=e;h.ref([]);const r=h.computed({get(){return A.modelValue},set(s){n("update:modelValue",s)}}),i=h.computed(()=>A.options&&A.options.map(s=>(s=typeof s=="string"?{text:s,value:s}:s,{...s,active:A.modelValue&&A.modelValue.includes(s.value)})));return(s,a)=>(h.openBlock(),h.createElementBlock("div",rQ,[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(i.value,(c,u)=>(h.openBlock(),h.createElementBlock("div",{key:u,class:"form-check"},[h.withDirectives(h.createElementVNode("input",{type:"checkbox","onUpdate:modelValue":a[0]||(a[0]=f=>r.value=f),id:`${t.id}-${u}`,name:t.name,class:"form-check-input",value:c.value||c,disabled:t.disabled,"read-only":t.readOnly,required:t.required},null,8,iQ),[[h.vModelCheckbox,r.value]]),h.createElementVNode("label",{class:"form-check-label",for:`${t.id}-${u}`,innerHTML:c.text},null,8,sQ)]))),128))]))}}),p$="",aQ={class:"input radio-group"},lQ=["id","name","value","checked","disabled","read-only","required","onChange"],cQ=["for","innerHTML"],uQ=["for"],Ho=h.defineComponent({__name:"radio-group",props:{modelValue:{type:null},options:{type:Array,default:[]},name:{type:String,default:()=>$e()},id:{type:String,default:()=>$e()},label:{type:String,default:""},variant:{type:String,default:""},disabled:{type:Boolean,default:!1},readOnly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},keyOption:{type:null},itemClass:{type:String,default:""}},emits:["change","update:modelValue"],setup(t,{emit:e}){const A=e;function n(r){A("update:modelValue",r)}return(r,i)=>(h.openBlock(),h.createElementBlock("div",aQ,[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(t.options,(s,a)=>{var c,u;return h.openBlock(),h.createElementBlock("div",{key:a,class:h.normalizeClass(["form-check",t.itemClass])},[h.createElementVNode("input",{type:"radio",id:`${t.id}-${a}`,name:t.name,class:h.normalizeClass(["form-check-input",`
3
- ${a===t.keyOption||s.key?"form-check-input--key":""}
4
- ${(a===t.keyOption||s.key)&&s.value===((c=t.modelValue)==null?void 0:c.value)?"form-check-input--match":""}
5
- `]),value:s.value||s,checked:s.value?s.value===((u=t.modelValue)==null?void 0:u.value):s===t.modelValue,disabled:t.disabled,"read-only":t.readOnly,required:t.required,onChange:f=>n(s)},null,42,lQ),h.renderSlot(r.$slots,"option-label",{option:s,index:a},()=>[h.createElementVNode("label",{class:"form-check-label",for:`${t.id}-${a}`,innerHTML:s.text},null,8,cQ)])],2)}),128)),h.renderSlot(r.$slots,"label",{},()=>[t.label?(h.openBlock(),h.createElementBlock("label",{key:0,for:t.id},h.toDisplayString(t.label),9,uQ)):h.createCommentVNode("",!0)])]))}}),g$="",fQ={class:"radio-buttons"},dQ=["for"],hQ=h.defineComponent({__name:"radio-buttons",props:{modelValue:{type:null,default:""},options:{type:Array,default:[]},name:{type:String,default:()=>$e()},id:{type:String,default:()=>$e()},label:{type:String},disabled:{type:Boolean,default:!1},required:{type:Boolean,default:!1},keyOption:{type:null},itemClass:{type:String,default:""}},emits:["update:modelValue","update:selection"],setup(t,{emit:e}){const A=t,n=e,r=h.computed({get(){return A.modelValue},set(i){n("update:modelValue",i)}});return(i,s)=>(h.openBlock(),h.createElementBlock("div",fQ,[h.createVNode(Ho,{modelValue:r.value,"onUpdate:modelValue":s[0]||(s[0]=a=>r.value=a),options:t.options,name:t.name,id:t.id,disabled:t.disabled,required:t.required,class:"d-flex flex-column gap-3 justify-content-center"},{"option-label":h.withCtx(a=>[h.createElementVNode("label",{for:`${t.id}-${a.index}`,class:"d-block btn btn-outline-primary p-3 fw-bold",role:"button"},h.toDisplayString(a.option.text),9,dQ)]),_:1},8,["modelValue","options","name","id","disabled","required"])]))}}),m$="",pQ=["id","name","multiple","accept","disabled"],gQ={class:"input__input-group input-group"},mQ=["value","id","name","disabled"],BQ=["for","disabled"],wQ=h.createElementVNode("span",{class:"btn btn-outline-dark"},"Select File",-1),CQ=["for"],yQ=["innerHTML"],EQ=h.defineComponent({__name:"input-file",props:{modelValue:{type:Array,default:[]},name:{type:String,default:()=>$e()},id:{type:String,default:()=>$e()},label:{type:String,default:""},placeholder:{type:String,default:""},variant:{type:String,default:""},disabled:{type:Boolean,default:!1},readOnly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},pattern:{type:String,default:null},multiple:{type:Boolean,default:!1},accept:{type:String}},emits:["update:modelValue"],setup(t,{emit:e}){const A=t,n=e;function r(c){const u=c.target&&c.target.files;u&&(s.splice(0,s.length),Array.from(u).forEach(f=>{s.push(f)}))}const i=h.ref(),s=h.reactive([]),a=h.computed(()=>s&&s.map(c=>c.name));return h.computed(()=>s.map(c=>URL.createObjectURL(c))),h.watch(()=>A.modelValue,(c,u)=>{c.length===0&&(i.value.value=null)},{deep:!0}),h.watch(()=>s,(c,u)=>{n("update:modelValue",c)},{deep:!0}),(c,u)=>(h.openBlock(),h.createElementBlock("div",{class:h.normalizeClass(["input input-file","input-file--primary"])},[h.createElementVNode("input",{ref_key:"input",ref:i,type:"file",id:t.id,name:t.name,class:"d-none",onChange:r,multiple:t.multiple,accept:t.accept,disabled:t.disabled},null,40,pQ),h.createElementVNode("div",gQ,[h.renderSlot(c.$slots,"input-prepend"),h.createElementVNode("input",{type:"text",value:a.value,id:t.id,name:t.name,class:"form-control",disabled:t.disabled},null,8,mQ),h.renderSlot(c.$slots,"input-append",{},()=>[h.createElementVNode("label",{for:t.id,disabled:t.disabled},[h.renderSlot(c.$slots,"button",{},()=>[wQ])],8,BQ)])]),h.createElementVNode("label",{for:t.id},[h.renderSlot(c.$slots,"label",{},()=>[h.createElementVNode("span",{class:"input__label",innerHTML:`${t.label}${t.required?" *":""}`},null,8,yQ)])],8,CQ)]))}}),QQ={class:"select-media"},FQ=["for"],bQ=h.defineComponent({__name:"select-media",props:{modelValue:{type:null,default:""},assets:{type:Array,default:[]},name:{type:String,default:()=>$e()},id:{type:String,default:()=>$e()},label:{type:String},disabled:{type:Boolean,default:!1},required:{type:Boolean,default:!1},emitKey:{type:String,default:"src"}},emits:["update:modelValue","update:selection"],setup(t,{emit:e}){const A=t,n=e,r=h.computed({get(){return A.modelValue},set(i){const s=A.assets.find(a=>a.id===i);n("update:modelValue",A.emitKey?s[A.emitKey]:s),A.emitKey&&A.emitKey!=="id"&&n("update:selection",s.id)}});return(i,s)=>{const a=h.resolveComponent("base-image");return h.openBlock(),h.createElementBlock("div",QQ,[h.createVNode(Ho,{modelValue:r.value,"onUpdate:modelValue":s[0]||(s[0]=c=>r.value=c),options:t.assets.map(c=>c.id),name:t.name,id:t.id,disabled:t.disabled,required:t.required,class:"d-flex flex-wrap flex-row justify-content-center",itemClass:"col-6 p-2"},{"option-label":h.withCtx(c=>[h.createElementVNode("label",{for:`${t.id}-${c.index}`,class:h.normalizeClass(["w-100",{"is-active":t.assets[c.index].id===r.value}]),role:"button"},[t.assets[c.index].thumbnail?(h.openBlock(),h.createBlock(a,{key:0,src:t.assets[c.index].thumbnail,alt:t.assets[c.index].id},null,8,["src","alt"])):h.createCommentVNode("",!0)],10,FQ)]),_:1},8,["modelValue","options","name","id","disabled","required"])])}}}),B$="";function MA(t){this.content=t}MA.prototype={constructor:MA,find:function(t){for(var e=0;e<this.content.length;e+=2)if(this.content[e]===t)return e;return-1},get:function(t){var e=this.find(t);return e==-1?void 0:this.content[e+1]},update:function(t,e,A){var n=A&&A!=t?this.remove(A):this,r=n.find(t),i=n.content.slice();return r==-1?i.push(A||t,e):(i[r+1]=e,A&&(i[r]=A)),new MA(i)},remove:function(t){var e=this.find(t);if(e==-1)return this;var A=this.content.slice();return A.splice(e,2),new MA(A)},addToStart:function(t,e){return new MA([t,e].concat(this.remove(t).content))},addToEnd:function(t,e){var A=this.remove(t).content.slice();return A.push(t,e),new MA(A)},addBefore:function(t,e,A){var n=this.remove(e),r=n.content.slice(),i=n.find(t);return r.splice(i==-1?r.length:i,0,e,A),new MA(r)},forEach:function(t){for(var e=0;e<this.content.length;e+=2)t(this.content[e],this.content[e+1])},prepend:function(t){return t=MA.from(t),t.size?new MA(t.content.concat(this.subtract(t).content)):this},append:function(t){return t=MA.from(t),t.size?new MA(this.subtract(t).content.concat(t.content)):this},subtract:function(t){var e=this;t=MA.from(t);for(var A=0;A<t.content.length;A+=2)e=e.remove(t.content[A]);return e},toObject:function(){var t={};return this.forEach(function(e,A){t[e]=A}),t},get size(){return this.content.length>>1}},MA.from=function(t){if(t instanceof MA)return t;var e=[];if(t)for(var A in t)e.push(A,t[A]);return new MA(e)};function dh(t,e,A){for(let n=0;;n++){if(n==t.childCount||n==e.childCount)return t.childCount==e.childCount?null:A;let r=t.child(n),i=e.child(n);if(r==i){A+=r.nodeSize;continue}if(!r.sameMarkup(i))return A;if(r.isText&&r.text!=i.text){for(let s=0;r.text[s]==i.text[s];s++)A++;return A}if(r.content.size||i.content.size){let s=dh(r.content,i.content,A+1);if(s!=null)return s}A+=r.nodeSize}}function hh(t,e,A,n){for(let r=t.childCount,i=e.childCount;;){if(r==0||i==0)return r==i?null:{a:A,b:n};let s=t.child(--r),a=e.child(--i),c=s.nodeSize;if(s==a){A-=c,n-=c;continue}if(!s.sameMarkup(a))return{a:A,b:n};if(s.isText&&s.text!=a.text){let u=0,f=Math.min(s.text.length,a.text.length);for(;u<f&&s.text[s.text.length-u-1]==a.text[a.text.length-u-1];)u++,A--,n--;return{a:A,b:n}}if(s.content.size||a.content.size){let u=hh(s.content,a.content,A-1,n-1);if(u)return u}A-=c,n-=c}}class Y{constructor(e,A){if(this.content=e,this.size=A||0,A==null)for(let n=0;n<e.length;n++)this.size+=e[n].nodeSize}nodesBetween(e,A,n,r=0,i){for(let s=0,a=0;a<A;s++){let c=this.content[s],u=a+c.nodeSize;if(u>e&&n(c,r+a,i||null,s)!==!1&&c.content.size){let f=a+1;c.nodesBetween(Math.max(0,e-f),Math.min(c.content.size,A-f),n,r+f)}a=u}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,A,n,r){let i="",s=!0;return this.nodesBetween(e,A,(a,c)=>{let u=a.isText?a.text.slice(Math.max(e,c)-c,A-c):a.isLeaf?r?typeof r=="function"?r(a):r:a.type.spec.leafText?a.type.spec.leafText(a):"":"";a.isBlock&&(a.isLeaf&&u||a.isTextblock)&&n&&(s?s=!1:i+=n),i+=u},0),i}append(e){if(!e.size)return this;if(!this.size)return e;let A=this.lastChild,n=e.firstChild,r=this.content.slice(),i=0;for(A.isText&&A.sameMarkup(n)&&(r[r.length-1]=A.withText(A.text+n.text),i=1);i<e.content.length;i++)r.push(e.content[i]);return new Y(r,this.size+e.size)}cut(e,A=this.size){if(e==0&&A==this.size)return this;let n=[],r=0;if(A>e)for(let i=0,s=0;s<A;i++){let a=this.content[i],c=s+a.nodeSize;c>e&&((s<e||c>A)&&(a.isText?a=a.cut(Math.max(0,e-s),Math.min(a.text.length,A-s)):a=a.cut(Math.max(0,e-s-1),Math.min(a.content.size,A-s-1))),n.push(a),r+=a.nodeSize),s=c}return new Y(n,r)}cutByIndex(e,A){return e==A?Y.empty:e==0&&A==this.content.length?this:new Y(this.content.slice(e,A))}replaceChild(e,A){let n=this.content[e];if(n==A)return this;let r=this.content.slice(),i=this.size+A.nodeSize-n.nodeSize;return r[e]=A,new Y(r,i)}addToStart(e){return new Y([e].concat(this.content),this.size+e.nodeSize)}addToEnd(e){return new Y(this.content.concat(e),this.size+e.nodeSize)}eq(e){if(this.content.length!=e.content.length)return!1;for(let A=0;A<this.content.length;A++)if(!this.content[A].eq(e.content[A]))return!1;return!0}get firstChild(){return this.content.length?this.content[0]:null}get lastChild(){return this.content.length?this.content[this.content.length-1]:null}get childCount(){return this.content.length}child(e){let A=this.content[e];if(!A)throw new RangeError("Index "+e+" out of range for "+this);return A}maybeChild(e){return this.content[e]||null}forEach(e){for(let A=0,n=0;A<this.content.length;A++){let r=this.content[A];e(r,n,A),n+=r.nodeSize}}findDiffStart(e,A=0){return dh(this,e,A)}findDiffEnd(e,A=this.size,n=e.size){return hh(this,e,A,n)}findIndex(e,A=-1){if(e==0)return No(0,e);if(e==this.size)return No(this.content.length,e);if(e>this.size||e<0)throw new RangeError(`Position ${e} outside of fragment (${this})`);for(let n=0,r=0;;n++){let i=this.child(n),s=r+i.nodeSize;if(s>=e)return s==e||A>0?No(n+1,s):No(n,r);r=s}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map(e=>e.toJSON()):null}static fromJSON(e,A){if(!A)return Y.empty;if(!Array.isArray(A))throw new RangeError("Invalid input for Fragment.fromJSON");return new Y(A.map(e.nodeFromJSON))}static fromArray(e){if(!e.length)return Y.empty;let A,n=0;for(let r=0;r<e.length;r++){let i=e[r];n+=i.nodeSize,r&&i.isText&&e[r-1].sameMarkup(i)?(A||(A=e.slice(0,r)),A[A.length-1]=i.withText(A[A.length-1].text+i.text)):A&&A.push(i)}return new Y(A||e,n)}static from(e){if(!e)return Y.empty;if(e instanceof Y)return e;if(Array.isArray(e))return this.fromArray(e);if(e.attrs)return new Y([e],e.nodeSize);throw new RangeError("Can not convert "+e+" to a Fragment"+(e.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))}}Y.empty=new Y([],0);const mc={index:0,offset:0};function No(t,e){return mc.index=t,mc.offset=e,mc}function Do(t,e){if(t===e)return!0;if(!(t&&typeof t=="object")||!(e&&typeof e=="object"))return!1;let A=Array.isArray(t);if(Array.isArray(e)!=A)return!1;if(A){if(t.length!=e.length)return!1;for(let n=0;n<t.length;n++)if(!Do(t[n],e[n]))return!1}else{for(let n in t)if(!(n in e)||!Do(t[n],e[n]))return!1;for(let n in e)if(!(n in t))return!1}return!0}let je=class lh{constructor(e,A){this.type=e,this.attrs=A}addToSet(e){let A,n=!1;for(let r=0;r<e.length;r++){let i=e[r];if(this.eq(i))return e;if(this.type.excludes(i.type))A||(A=e.slice(0,r));else{if(i.type.excludes(this.type))return e;!n&&i.type.rank>this.type.rank&&(A||(A=e.slice(0,r)),A.push(this),n=!0),A&&A.push(i)}}return A||(A=e.slice()),n||A.push(this),A}removeFromSet(e){for(let A=0;A<e.length;A++)if(this.eq(e[A]))return e.slice(0,A).concat(e.slice(A+1));return e}isInSet(e){for(let A=0;A<e.length;A++)if(this.eq(e[A]))return!0;return!1}eq(e){return this==e||this.type==e.type&&Do(this.attrs,e.attrs)}toJSON(){let e={type:this.type.name};for(let A in this.attrs){e.attrs=this.attrs;break}return e}static fromJSON(e,A){if(!A)throw new RangeError("Invalid input for Mark.fromJSON");let n=e.marks[A.type];if(!n)throw new RangeError(`There is no mark type ${A.type} in this schema`);return n.create(A.attrs)}static sameSet(e,A){if(e==A)return!0;if(e.length!=A.length)return!1;for(let n=0;n<e.length;n++)if(!e[n].eq(A[n]))return!1;return!0}static setFrom(e){if(!e||Array.isArray(e)&&e.length==0)return lh.none;if(e instanceof lh)return[e];let A=e.slice();return A.sort((n,r)=>n.type.rank-r.type.rank),A}};je.none=[];class Mo extends Error{}class j{constructor(e,A,n){this.content=e,this.openStart=A,this.openEnd=n}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(e,A){let n=gh(this.content,e+this.openStart,A);return n&&new j(n,this.openStart,this.openEnd)}removeBetween(e,A){return new j(ph(this.content,e+this.openStart,A+this.openStart),this.openStart,this.openEnd)}eq(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let e={content:this.content.toJSON()};return this.openStart>0&&(e.openStart=this.openStart),this.openEnd>0&&(e.openEnd=this.openEnd),e}static fromJSON(e,A){if(!A)return j.empty;let n=A.openStart||0,r=A.openEnd||0;if(typeof n!="number"||typeof r!="number")throw new RangeError("Invalid input for Slice.fromJSON");return new j(Y.fromJSON(e,A.content),n,r)}static maxOpen(e,A=!0){let n=0,r=0;for(let i=e.firstChild;i&&!i.isLeaf&&(A||!i.type.spec.isolating);i=i.firstChild)n++;for(let i=e.lastChild;i&&!i.isLeaf&&(A||!i.type.spec.isolating);i=i.lastChild)r++;return new j(e,n,r)}}j.empty=new j(Y.empty,0,0);function ph(t,e,A){let{index:n,offset:r}=t.findIndex(e),i=t.maybeChild(n),{index:s,offset:a}=t.findIndex(A);if(r==e||i.isText){if(a!=A&&!t.child(s).isText)throw new RangeError("Removing non-flat range");return t.cut(0,e).append(t.cut(A))}if(n!=s)throw new RangeError("Removing non-flat range");return t.replaceChild(n,i.copy(ph(i.content,e-r-1,A-r-1)))}function gh(t,e,A,n){let{index:r,offset:i}=t.findIndex(e),s=t.maybeChild(r);if(i==e||s.isText)return n&&!n.canReplace(r,r,A)?null:t.cut(0,e).append(A).append(t.cut(e));let a=gh(s.content,e-i-1,A);return a&&t.replaceChild(r,s.copy(a))}function UQ(t,e,A){if(A.openStart>t.depth)throw new Mo("Inserted content deeper than insertion position");if(t.depth-A.openStart!=e.depth-A.openEnd)throw new Mo("Inconsistent open depths");return mh(t,e,A,0)}function mh(t,e,A,n){let r=t.index(n),i=t.node(n);if(r==e.index(n)&&n<t.depth-A.openStart){let s=mh(t,e,A,n+1);return i.copy(i.content.replaceChild(r,s))}else if(A.content.size)if(!A.openStart&&!A.openEnd&&t.depth==n&&e.depth==n){let s=t.parent,a=s.content;return Gr(s,a.cut(0,t.parentOffset).append(A.content).append(a.cut(e.parentOffset)))}else{let{start:s,end:a}=vQ(A,t);return Gr(i,wh(t,s,a,e,n))}else return Gr(i,Ro(t,e,n))}function Bh(t,e){if(!e.type.compatibleContent(t.type))throw new Mo("Cannot join "+e.type.name+" onto "+t.type.name)}function Bc(t,e,A){let n=t.node(A);return Bh(n,e.node(A)),n}function Pr(t,e){let A=e.length-1;A>=0&&t.isText&&t.sameMarkup(e[A])?e[A]=t.withText(e[A].text+t.text):e.push(t)}function Qs(t,e,A,n){let r=(e||t).node(A),i=0,s=e?e.index(A):r.childCount;t&&(i=t.index(A),t.depth>A?i++:t.textOffset&&(Pr(t.nodeAfter,n),i++));for(let a=i;a<s;a++)Pr(r.child(a),n);e&&e.depth==A&&e.textOffset&&Pr(e.nodeBefore,n)}function Gr(t,e){return t.type.checkContent(e),t.copy(e)}function wh(t,e,A,n,r){let i=t.depth>r&&Bc(t,e,r+1),s=n.depth>r&&Bc(A,n,r+1),a=[];return Qs(null,t,r,a),i&&s&&e.index(r)==A.index(r)?(Bh(i,s),Pr(Gr(i,wh(t,e,A,n,r+1)),a)):(i&&Pr(Gr(i,Ro(t,e,r+1)),a),Qs(e,A,r,a),s&&Pr(Gr(s,Ro(A,n,r+1)),a)),Qs(n,null,r,a),new Y(a)}function Ro(t,e,A){let n=[];if(Qs(null,t,A,n),t.depth>A){let r=Bc(t,e,A+1);Pr(Gr(r,Ro(t,e,A+1)),n)}return Qs(e,null,A,n),new Y(n)}function vQ(t,e){let A=e.depth-t.openStart,r=e.node(A).copy(t.content);for(let i=A-1;i>=0;i--)r=e.node(i).copy(Y.from(r));return{start:r.resolveNoCache(t.openStart+A),end:r.resolveNoCache(r.content.size-t.openEnd-A)}}class Fs{constructor(e,A,n){this.pos=e,this.path=A,this.parentOffset=n,this.depth=A.length/3-1}resolveDepth(e){return e==null?this.depth:e<0?this.depth+e:e}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(e){return this.path[this.resolveDepth(e)*3]}index(e){return this.path[this.resolveDepth(e)*3+1]}indexAfter(e){return e=this.resolveDepth(e),this.index(e)+(e==this.depth&&!this.textOffset?0:1)}start(e){return e=this.resolveDepth(e),e==0?0:this.path[e*3-1]+1}end(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size}before(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position before the top-level node");return e==this.depth+1?this.pos:this.path[e*3-1]}after(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position after the top-level node");return e==this.depth+1?this.pos:this.path[e*3-1]+this.path[e*3].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let e=this.parent,A=this.index(this.depth);if(A==e.childCount)return null;let n=this.pos-this.path[this.path.length-1],r=e.child(A);return n?e.child(A).cut(n):r}get nodeBefore(){let e=this.index(this.depth),A=this.pos-this.path[this.path.length-1];return A?this.parent.child(e).cut(0,A):e==0?null:this.parent.child(e-1)}posAtIndex(e,A){A=this.resolveDepth(A);let n=this.path[A*3],r=A==0?0:this.path[A*3-1]+1;for(let i=0;i<e;i++)r+=n.child(i).nodeSize;return r}marks(){let e=this.parent,A=this.index();if(e.content.size==0)return je.none;if(this.textOffset)return e.child(A).marks;let n=e.maybeChild(A-1),r=e.maybeChild(A);if(!n){let a=n;n=r,r=a}let i=n.marks;for(var s=0;s<i.length;s++)i[s].type.spec.inclusive===!1&&(!r||!i[s].isInSet(r.marks))&&(i=i[s--].removeFromSet(i));return i}marksAcross(e){let A=this.parent.maybeChild(this.index());if(!A||!A.isInline)return null;let n=A.marks,r=e.parent.maybeChild(e.index());for(var i=0;i<n.length;i++)n[i].type.spec.inclusive===!1&&(!r||!n[i].isInSet(r.marks))&&(n=n[i--].removeFromSet(n));return n}sharedDepth(e){for(let A=this.depth;A>0;A--)if(this.start(A)<=e&&this.end(A)>=e)return A;return 0}blockRange(e=this,A){if(e.pos<this.pos)return e.blockRange(this);for(let n=this.depth-(this.parent.inlineContent||this.pos==e.pos?1:0);n>=0;n--)if(e.pos<=this.end(n)&&(!A||A(this.node(n))))return new Ko(this,e,n);return null}sameParent(e){return this.pos-this.parentOffset==e.pos-e.parentOffset}max(e){return e.pos>this.pos?e:this}min(e){return e.pos<this.pos?e:this}toString(){let e="";for(let A=1;A<=this.depth;A++)e+=(e?"/":"")+this.node(A).type.name+"_"+this.index(A-1);return e+":"+this.parentOffset}static resolve(e,A){if(!(A>=0&&A<=e.content.size))throw new RangeError("Position "+A+" out of range");let n=[],r=0,i=A;for(let s=e;;){let{index:a,offset:c}=s.content.findIndex(i),u=i-c;if(n.push(s,a,r+c),!u||(s=s.child(a),s.isText))break;i=u-1,r+=c+1}return new Fs(A,n,i)}static resolveCached(e,A){for(let r=0;r<wc.length;r++){let i=wc[r];if(i.pos==A&&i.doc==e)return i}let n=wc[Cc]=Fs.resolve(e,A);return Cc=(Cc+1)%IQ,n}}let wc=[],Cc=0,IQ=12;class Ko{constructor(e,A,n){this.$from=e,this.$to=A,this.depth=n}get start(){return this.$from.before(this.depth+1)}get end(){return this.$to.after(this.depth+1)}get parent(){return this.$from.node(this.depth)}get startIndex(){return this.$from.index(this.depth)}get endIndex(){return this.$to.indexAfter(this.depth)}}const SQ=Object.create(null);let $r=class ch{constructor(e,A,n,r=je.none){this.type=e,this.attrs=A,this.marks=r,this.content=n||Y.empty}get nodeSize(){return this.isLeaf?1:2+this.content.size}get childCount(){return this.content.childCount}child(e){return this.content.child(e)}maybeChild(e){return this.content.maybeChild(e)}forEach(e){this.content.forEach(e)}nodesBetween(e,A,n,r=0){this.content.nodesBetween(e,A,n,r,this)}descendants(e){this.nodesBetween(0,this.content.size,e)}get textContent(){return this.isLeaf&&this.type.spec.leafText?this.type.spec.leafText(this):this.textBetween(0,this.content.size,"")}textBetween(e,A,n,r){return this.content.textBetween(e,A,n,r)}get firstChild(){return this.content.firstChild}get lastChild(){return this.content.lastChild}eq(e){return this==e||this.sameMarkup(e)&&this.content.eq(e.content)}sameMarkup(e){return this.hasMarkup(e.type,e.attrs,e.marks)}hasMarkup(e,A,n){return this.type==e&&Do(this.attrs,A||e.defaultAttrs||SQ)&&je.sameSet(this.marks,n||je.none)}copy(e=null){return e==this.content?this:new ch(this.type,this.attrs,e,this.marks)}mark(e){return e==this.marks?this:new ch(this.type,this.attrs,this.content,e)}cut(e,A=this.content.size){return e==0&&A==this.content.size?this:this.copy(this.content.cut(e,A))}slice(e,A=this.content.size,n=!1){if(e==A)return j.empty;let r=this.resolve(e),i=this.resolve(A),s=n?0:r.sharedDepth(A),a=r.start(s),u=r.node(s).content.cut(r.pos-a,i.pos-a);return new j(u,r.depth-s,i.depth-s)}replace(e,A,n){return UQ(this.resolve(e),this.resolve(A),n)}nodeAt(e){for(let A=this;;){let{index:n,offset:r}=A.content.findIndex(e);if(A=A.maybeChild(n),!A)return null;if(r==e||A.isText)return A;e-=r+1}}childAfter(e){let{index:A,offset:n}=this.content.findIndex(e);return{node:this.content.maybeChild(A),index:A,offset:n}}childBefore(e){if(e==0)return{node:null,index:0,offset:0};let{index:A,offset:n}=this.content.findIndex(e);if(n<e)return{node:this.content.child(A),index:A,offset:n};let r=this.content.child(A-1);return{node:r,index:A-1,offset:n-r.nodeSize}}resolve(e){return Fs.resolveCached(this,e)}resolveNoCache(e){return Fs.resolve(this,e)}rangeHasMark(e,A,n){let r=!1;return A>e&&this.nodesBetween(e,A,i=>(n.isInSet(i.marks)&&(r=!0),!r)),r}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let e=this.type.name;return this.content.size&&(e+="("+this.content.toStringInner()+")"),Ch(this.marks,e)}contentMatchAt(e){let A=this.type.contentMatch.matchFragment(this.content,0,e);if(!A)throw new Error("Called contentMatchAt on a node with invalid content");return A}canReplace(e,A,n=Y.empty,r=0,i=n.childCount){let s=this.contentMatchAt(e).matchFragment(n,r,i),a=s&&s.matchFragment(this.content,A);if(!a||!a.validEnd)return!1;for(let c=r;c<i;c++)if(!this.type.allowsMarks(n.child(c).marks))return!1;return!0}canReplaceWith(e,A,n,r){if(r&&!this.type.allowsMarks(r))return!1;let i=this.contentMatchAt(e).matchType(n),s=i&&i.matchFragment(this.content,A);return s?s.validEnd:!1}canAppend(e){return e.content.size?this.canReplace(this.childCount,this.childCount,e.content):this.type.compatibleContent(e.type)}check(){this.type.checkContent(this.content);let e=je.none;for(let A=0;A<this.marks.length;A++)e=this.marks[A].addToSet(e);if(!je.sameSet(e,this.marks))throw new RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map(A=>A.type.name)}`);this.content.forEach(A=>A.check())}toJSON(){let e={type:this.type.name};for(let A in this.attrs){e.attrs=this.attrs;break}return this.content.size&&(e.content=this.content.toJSON()),this.marks.length&&(e.marks=this.marks.map(A=>A.toJSON())),e}static fromJSON(e,A){if(!A)throw new RangeError("Invalid input for Node.fromJSON");let n=null;if(A.marks){if(!Array.isArray(A.marks))throw new RangeError("Invalid mark data for Node.fromJSON");n=A.marks.map(e.markFromJSON)}if(A.type=="text"){if(typeof A.text!="string")throw new RangeError("Invalid text node in JSON");return e.text(A.text,n)}let r=Y.fromJSON(e,A.content);return e.nodeType(A.type).create(A.attrs,r,n)}};$r.prototype.text=void 0;class Vo extends $r{constructor(e,A,n,r){if(super(e,A,null,r),!n)throw new RangeError("Empty text nodes are not allowed");this.text=n}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):Ch(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(e,A){return this.text.slice(e,A)}get nodeSize(){return this.text.length}mark(e){return e==this.marks?this:new Vo(this.type,this.attrs,this.text,e)}withText(e){return e==this.text?this:new Vo(this.type,this.attrs,e,this.marks)}cut(e=0,A=this.text.length){return e==0&&A==this.text.length?this:this.withText(this.text.slice(e,A))}eq(e){return this.sameMarkup(e)&&this.text==e.text}toJSON(){let e=super.toJSON();return e.text=this.text,e}}function Ch(t,e){for(let A=t.length-1;A>=0;A--)e=t[A].type.name+"("+e+")";return e}class Wr{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(e,A){let n=new TQ(e,A);if(n.next==null)return Wr.empty;let r=yh(n);n.next&&n.err("Unexpected trailing text");let i=NQ(HQ(r));return DQ(i,n),i}matchType(e){for(let A=0;A<this.next.length;A++)if(this.next[A].type==e)return this.next[A].next;return null}matchFragment(e,A=0,n=e.childCount){let r=this;for(let i=A;r&&i<n;i++)r=r.matchType(e.child(i).type);return r}get inlineContent(){return this.next.length!=0&&this.next[0].type.isInline}get defaultType(){for(let e=0;e<this.next.length;e++){let{type:A}=this.next[e];if(!(A.isText||A.hasRequiredAttrs()))return A}return null}compatible(e){for(let A=0;A<this.next.length;A++)for(let n=0;n<e.next.length;n++)if(this.next[A].type==e.next[n].type)return!0;return!1}fillBefore(e,A=!1,n=0){let r=[this];function i(s,a){let c=s.matchFragment(e,n);if(c&&(!A||c.validEnd))return Y.from(a.map(u=>u.createAndFill()));for(let u=0;u<s.next.length;u++){let{type:f,next:p}=s.next[u];if(!(f.isText||f.hasRequiredAttrs())&&r.indexOf(p)==-1){r.push(p);let g=i(p,a.concat(f));if(g)return g}}return null}return i(this,[])}findWrapping(e){for(let n=0;n<this.wrapCache.length;n+=2)if(this.wrapCache[n]==e)return this.wrapCache[n+1];let A=this.computeWrapping(e);return this.wrapCache.push(e,A),A}computeWrapping(e){let A=Object.create(null),n=[{match:this,type:null,via:null}];for(;n.length;){let r=n.shift(),i=r.match;if(i.matchType(e)){let s=[];for(let a=r;a.type;a=a.via)s.push(a.type);return s.reverse()}for(let s=0;s<i.next.length;s++){let{type:a,next:c}=i.next[s];!a.isLeaf&&!a.hasRequiredAttrs()&&!(a.name in A)&&(!r.type||c.validEnd)&&(n.push({match:a.contentMatch,type:a,via:r}),A[a.name]=!0)}}return null}get edgeCount(){return this.next.length}edge(e){if(e>=this.next.length)throw new RangeError(`There's no ${e}th edge in this content match`);return this.next[e]}toString(){let e=[];function A(n){e.push(n);for(let r=0;r<n.next.length;r++)e.indexOf(n.next[r].next)==-1&&A(n.next[r].next)}return A(this),e.map((n,r)=>{let i=r+(n.validEnd?"*":" ")+" ";for(let s=0;s<n.next.length;s++)i+=(s?", ":"")+n.next[s].type.name+"->"+e.indexOf(n.next[s].next);return i}).join(`
6
- `)}}Wr.empty=new Wr(!0);class TQ{constructor(e,A){this.string=e,this.nodeTypes=A,this.inline=null,this.pos=0,this.tokens=e.split(/\s*(?=\b|\W|$)/),this.tokens[this.tokens.length-1]==""&&this.tokens.pop(),this.tokens[0]==""&&this.tokens.shift()}get next(){return this.tokens[this.pos]}eat(e){return this.next==e&&(this.pos++||!0)}err(e){throw new SyntaxError(e+" (in content expression '"+this.string+"')")}}function yh(t){let e=[];do e.push(_Q(t));while(t.eat("|"));return e.length==1?e[0]:{type:"choice",exprs:e}}function _Q(t){let e=[];do e.push(xQ(t));while(t.next&&t.next!=")"&&t.next!="|");return e.length==1?e[0]:{type:"seq",exprs:e}}function xQ(t){let e=kQ(t);for(;;)if(t.eat("+"))e={type:"plus",expr:e};else if(t.eat("*"))e={type:"star",expr:e};else if(t.eat("?"))e={type:"opt",expr:e};else if(t.eat("{"))e=OQ(t,e);else break;return e}function Eh(t){/\D/.test(t.next)&&t.err("Expected number, got '"+t.next+"'");let e=Number(t.next);return t.pos++,e}function OQ(t,e){let A=Eh(t),n=A;return t.eat(",")&&(t.next!="}"?n=Eh(t):n=-1),t.eat("}")||t.err("Unclosed braced range"),{type:"range",min:A,max:n,expr:e}}function LQ(t,e){let A=t.nodeTypes,n=A[e];if(n)return[n];let r=[];for(let i in A){let s=A[i];s.groups.indexOf(e)>-1&&r.push(s)}return r.length==0&&t.err("No node type or group '"+e+"' found"),r}function kQ(t){if(t.eat("(")){let e=yh(t);return t.eat(")")||t.err("Missing closing paren"),e}else if(/\W/.test(t.next))t.err("Unexpected token '"+t.next+"'");else{let e=LQ(t,t.next).map(A=>(t.inline==null?t.inline=A.isInline:t.inline!=A.isInline&&t.err("Mixing inline and block content"),{type:"name",value:A}));return t.pos++,e.length==1?e[0]:{type:"choice",exprs:e}}}function HQ(t){let e=[[]];return r(i(t,0),A()),e;function A(){return e.push([])-1}function n(s,a,c){let u={term:c,to:a};return e[s].push(u),u}function r(s,a){s.forEach(c=>c.to=a)}function i(s,a){if(s.type=="choice")return s.exprs.reduce((c,u)=>c.concat(i(u,a)),[]);if(s.type=="seq")for(let c=0;;c++){let u=i(s.exprs[c],a);if(c==s.exprs.length-1)return u;r(u,a=A())}else if(s.type=="star"){let c=A();return n(a,c),r(i(s.expr,c),c),[n(c)]}else if(s.type=="plus"){let c=A();return r(i(s.expr,a),c),r(i(s.expr,c),c),[n(c)]}else{if(s.type=="opt")return[n(a)].concat(i(s.expr,a));if(s.type=="range"){let c=a;for(let u=0;u<s.min;u++){let f=A();r(i(s.expr,c),f),c=f}if(s.max==-1)r(i(s.expr,c),c);else for(let u=s.min;u<s.max;u++){let f=A();n(c,f),r(i(s.expr,c),f),c=f}return[n(c)]}else{if(s.type=="name")return[n(a,void 0,s.value)];throw new Error("Unknown expr type")}}}}function Qh(t,e){return e-t}function Fh(t,e){let A=[];return n(e),A.sort(Qh);function n(r){let i=t[r];if(i.length==1&&!i[0].term)return n(i[0].to);A.push(r);for(let s=0;s<i.length;s++){let{term:a,to:c}=i[s];!a&&A.indexOf(c)==-1&&n(c)}}}function NQ(t){let e=Object.create(null);return A(Fh(t,0));function A(n){let r=[];n.forEach(s=>{t[s].forEach(({term:a,to:c})=>{if(!a)return;let u;for(let f=0;f<r.length;f++)r[f][0]==a&&(u=r[f][1]);Fh(t,c).forEach(f=>{u||r.push([a,u=[]]),u.indexOf(f)==-1&&u.push(f)})})});let i=e[n.join(",")]=new Wr(n.indexOf(t.length-1)>-1);for(let s=0;s<r.length;s++){let a=r[s][1].sort(Qh);i.next.push({type:r[s][0],next:e[a.join(",")]||A(a)})}return i}}function DQ(t,e){for(let A=0,n=[t];A<n.length;A++){let r=n[A],i=!r.validEnd,s=[];for(let a=0;a<r.next.length;a++){let{type:c,next:u}=r.next[a];s.push(c.name),i&&!(c.isText||c.hasRequiredAttrs())&&(i=!1),n.indexOf(u)==-1&&n.push(u)}i&&e.err("Only non-generatable nodes ("+s.join(", ")+") in a required position (see https://prosemirror.net/docs/guide/#generatable)")}}function bh(t){let e=Object.create(null);for(let A in t){let n=t[A];if(!n.hasDefault)return null;e[A]=n.default}return e}function Uh(t,e){let A=Object.create(null);for(let n in t){let r=e&&e[n];if(r===void 0){let i=t[n];if(i.hasDefault)r=i.default;else throw new RangeError("No value supplied for attribute "+n)}A[n]=r}return A}function vh(t){let e=Object.create(null);if(t)for(let A in t)e[A]=new MQ(t[A]);return e}let Ih=class fE{constructor(e,A,n){this.name=e,this.schema=A,this.spec=n,this.markSet=null,this.groups=n.group?n.group.split(" "):[],this.attrs=vh(n.attrs),this.defaultAttrs=bh(this.attrs),this.contentMatch=null,this.inlineContent=null,this.isBlock=!(n.inline||e=="text"),this.isText=e=="text"}get isInline(){return!this.isBlock}get isTextblock(){return this.isBlock&&this.inlineContent}get isLeaf(){return this.contentMatch==Wr.empty}get isAtom(){return this.isLeaf||!!this.spec.atom}get whitespace(){return this.spec.whitespace||(this.spec.code?"pre":"normal")}hasRequiredAttrs(){for(let e in this.attrs)if(this.attrs[e].isRequired)return!0;return!1}compatibleContent(e){return this==e||this.contentMatch.compatible(e.contentMatch)}computeAttrs(e){return!e&&this.defaultAttrs?this.defaultAttrs:Uh(this.attrs,e)}create(e=null,A,n){if(this.isText)throw new Error("NodeType.create can't construct text nodes");return new $r(this,this.computeAttrs(e),Y.from(A),je.setFrom(n))}createChecked(e=null,A,n){return A=Y.from(A),this.checkContent(A),new $r(this,this.computeAttrs(e),A,je.setFrom(n))}createAndFill(e=null,A,n){if(e=this.computeAttrs(e),A=Y.from(A),A.size){let s=this.contentMatch.fillBefore(A);if(!s)return null;A=s.append(A)}let r=this.contentMatch.matchFragment(A),i=r&&r.fillBefore(Y.empty,!0);return i?new $r(this,e,A.append(i),je.setFrom(n)):null}validContent(e){let A=this.contentMatch.matchFragment(e);if(!A||!A.validEnd)return!1;for(let n=0;n<e.childCount;n++)if(!this.allowsMarks(e.child(n).marks))return!1;return!0}checkContent(e){if(!this.validContent(e))throw new RangeError(`Invalid content for node ${this.name}: ${e.toString().slice(0,50)}`)}allowsMarkType(e){return this.markSet==null||this.markSet.indexOf(e)>-1}allowsMarks(e){if(this.markSet==null)return!0;for(let A=0;A<e.length;A++)if(!this.allowsMarkType(e[A].type))return!1;return!0}allowedMarks(e){if(this.markSet==null)return e;let A;for(let n=0;n<e.length;n++)this.allowsMarkType(e[n].type)?A&&A.push(e[n]):A||(A=e.slice(0,n));return A?A.length?A:je.none:e}static compile(e,A){let n=Object.create(null);e.forEach((i,s)=>n[i]=new fE(i,A,s));let r=A.spec.topNode||"doc";if(!n[r])throw new RangeError("Schema is missing its top node type ('"+r+"')");if(!n.text)throw new RangeError("Every schema needs a 'text' type");for(let i in n.text.attrs)throw new RangeError("The text node type should not have attributes");return n}};class MQ{constructor(e){this.hasDefault=Object.prototype.hasOwnProperty.call(e,"default"),this.default=e.default}get isRequired(){return!this.hasDefault}}class Po{constructor(e,A,n,r){this.name=e,this.rank=A,this.schema=n,this.spec=r,this.attrs=vh(r.attrs),this.excluded=null;let i=bh(this.attrs);this.instance=i?new je(this,i):null}create(e=null){return!e&&this.instance?this.instance:new je(this,Uh(this.attrs,e))}static compile(e,A){let n=Object.create(null),r=0;return e.forEach((i,s)=>n[i]=new Po(i,r++,A,s)),n}removeFromSet(e){for(var A=0;A<e.length;A++)e[A].type==this&&(e=e.slice(0,A).concat(e.slice(A+1)),A--);return e}isInSet(e){for(let A=0;A<e.length;A++)if(e[A].type==this)return e[A]}excludes(e){return this.excluded.indexOf(e)>-1}}class RQ{constructor(e){this.linebreakReplacement=null,this.cached=Object.create(null);let A=this.spec={};for(let r in e)A[r]=e[r];A.nodes=MA.from(e.nodes),A.marks=MA.from(e.marks||{}),this.nodes=Ih.compile(this.spec.nodes,this),this.marks=Po.compile(this.spec.marks,this);let n=Object.create(null);for(let r in this.nodes){if(r in this.marks)throw new RangeError(r+" can not be both a node and a mark");let i=this.nodes[r],s=i.spec.content||"",a=i.spec.marks;if(i.contentMatch=n[s]||(n[s]=Wr.parse(s,this.nodes)),i.inlineContent=i.contentMatch.inlineContent,i.spec.linebreakReplacement){if(this.linebreakReplacement)throw new RangeError("Multiple linebreak nodes defined");if(!i.isInline||!i.isLeaf)throw new RangeError("Linebreak replacement nodes must be inline leaf nodes");this.linebreakReplacement=i}i.markSet=a=="_"?null:a?Sh(this,a.split(" ")):a==""||!i.inlineContent?[]:null}for(let r in this.marks){let i=this.marks[r],s=i.spec.excludes;i.excluded=s==null?[i]:s==""?[]:Sh(this,s.split(" "))}this.nodeFromJSON=this.nodeFromJSON.bind(this),this.markFromJSON=this.markFromJSON.bind(this),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached.wrappings=Object.create(null)}node(e,A=null,n,r){if(typeof e=="string")e=this.nodeType(e);else if(e instanceof Ih){if(e.schema!=this)throw new RangeError("Node type from different schema used ("+e.name+")")}else throw new RangeError("Invalid node type: "+e);return e.createChecked(A,n,r)}text(e,A){let n=this.nodes.text;return new Vo(n,n.defaultAttrs,e,je.setFrom(A))}mark(e,A){return typeof e=="string"&&(e=this.marks[e]),e.create(A)}nodeFromJSON(e){return $r.fromJSON(this,e)}markFromJSON(e){return je.fromJSON(this,e)}nodeType(e){let A=this.nodes[e];if(!A)throw new RangeError("Unknown node type: "+e);return A}}function Sh(t,e){let A=[];for(let n=0;n<e.length;n++){let r=e[n],i=t.marks[r],s=i;if(i)A.push(i);else for(let a in t.marks){let c=t.marks[a];(r=="_"||c.spec.group&&c.spec.group.split(" ").indexOf(r)>-1)&&A.push(s=c)}if(!s)throw new SyntaxError("Unknown mark type: '"+e[n]+"'")}return A}function KQ(t){return t.tag!=null}function VQ(t){return t.style!=null}class Fi{constructor(e,A){this.schema=e,this.rules=A,this.tags=[],this.styles=[],A.forEach(n=>{KQ(n)?this.tags.push(n):VQ(n)&&this.styles.push(n)}),this.normalizeLists=!this.tags.some(n=>{if(!/^(ul|ol)\b/.test(n.tag)||!n.node)return!1;let r=e.nodes[n.node];return r.contentMatch.matchType(r)})}parse(e,A={}){let n=new Oh(this,A,!1);return n.addAll(e,A.from,A.to),n.finish()}parseSlice(e,A={}){let n=new Oh(this,A,!0);return n.addAll(e,A.from,A.to),j.maxOpen(n.finish())}matchTag(e,A,n){for(let r=n?this.tags.indexOf(n)+1:0;r<this.tags.length;r++){let i=this.tags[r];if($Q(e,i.tag)&&(i.namespace===void 0||e.namespaceURI==i.namespace)&&(!i.context||A.matchesContext(i.context))){if(i.getAttrs){let s=i.getAttrs(e);if(s===!1)continue;i.attrs=s||void 0}return i}}}matchStyle(e,A,n,r){for(let i=r?this.styles.indexOf(r)+1:0;i<this.styles.length;i++){let s=this.styles[i],a=s.style;if(!(a.indexOf(e)!=0||s.context&&!n.matchesContext(s.context)||a.length>e.length&&(a.charCodeAt(e.length)!=61||a.slice(e.length+1)!=A))){if(s.getAttrs){let c=s.getAttrs(A);if(c===!1)continue;s.attrs=c||void 0}return s}}}static schemaRules(e){let A=[];function n(r){let i=r.priority==null?50:r.priority,s=0;for(;s<A.length;s++){let a=A[s];if((a.priority==null?50:a.priority)<i)break}A.splice(s,0,r)}for(let r in e.marks){let i=e.marks[r].spec.parseDOM;i&&i.forEach(s=>{n(s=Lh(s)),s.mark||s.ignore||s.clearMark||(s.mark=r)})}for(let r in e.nodes){let i=e.nodes[r].spec.parseDOM;i&&i.forEach(s=>{n(s=Lh(s)),s.node||s.ignore||s.mark||(s.node=r)})}return A}static fromSchema(e){return e.cached.domParser||(e.cached.domParser=new Fi(e,Fi.schemaRules(e)))}}const Th={address:!0,article:!0,aside:!0,blockquote:!0,canvas:!0,dd:!0,div:!0,dl:!0,fieldset:!0,figcaption:!0,figure:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,li:!0,noscript:!0,ol:!0,output:!0,p:!0,pre:!0,section:!0,table:!0,tfoot:!0,ul:!0},PQ={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},_h={ol:!0,ul:!0},Go=1,$o=2,bs=4;function xh(t,e,A){return e!=null?(e?Go:0)|(e==="full"?$o:0):t&&t.whitespace=="pre"?Go|$o:A&~bs}class Wo{constructor(e,A,n,r,i,s,a){this.type=e,this.attrs=A,this.marks=n,this.pendingMarks=r,this.solid=i,this.options=a,this.content=[],this.activeMarks=je.none,this.stashMarks=[],this.match=s||(a&bs?null:e.contentMatch)}findWrapping(e){if(!this.match){if(!this.type)return[];let A=this.type.contentMatch.fillBefore(Y.from(e));if(A)this.match=this.type.contentMatch.matchFragment(A);else{let n=this.type.contentMatch,r;return(r=n.findWrapping(e.type))?(this.match=n,r):null}}return this.match.findWrapping(e.type)}finish(e){if(!(this.options&Go)){let n=this.content[this.content.length-1],r;if(n&&n.isText&&(r=/[ \t\r\n\u000c]+$/.exec(n.text))){let i=n;n.text.length==r[0].length?this.content.pop():this.content[this.content.length-1]=i.withText(i.text.slice(0,i.text.length-r[0].length))}}let A=Y.from(this.content);return!e&&this.match&&(A=A.append(this.match.fillBefore(Y.empty,!0))),this.type?this.type.create(this.attrs,A,this.marks):A}popFromStashMark(e){for(let A=this.stashMarks.length-1;A>=0;A--)if(e.eq(this.stashMarks[A]))return this.stashMarks.splice(A,1)[0]}applyPending(e){for(let A=0,n=this.pendingMarks;A<n.length;A++){let r=n[A];(this.type?this.type.allowsMarkType(r.type):WQ(r.type,e))&&!r.isInSet(this.activeMarks)&&(this.activeMarks=r.addToSet(this.activeMarks),this.pendingMarks=r.removeFromSet(this.pendingMarks))}}inlineContext(e){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:e.parentNode&&!Th.hasOwnProperty(e.parentNode.nodeName.toLowerCase())}}class Oh{constructor(e,A,n){this.parser=e,this.options=A,this.isOpen=n,this.open=0;let r=A.topNode,i,s=xh(null,A.preserveWhitespace,0)|(n?bs:0);r?i=new Wo(r.type,r.attrs,je.none,je.none,!0,A.topMatch||r.type.contentMatch,s):n?i=new Wo(null,null,je.none,je.none,!0,null,s):i=new Wo(e.schema.topNodeType,null,je.none,je.none,!0,null,s),this.nodes=[i],this.find=A.findPositions,this.needsBlock=!1}get top(){return this.nodes[this.open]}addDOM(e){e.nodeType==3?this.addTextNode(e):e.nodeType==1&&this.addElement(e)}withStyleRules(e,A){let n=e.style;if(!n||!n.length)return A();let r=this.readStyles(e.style);if(!r)return;let[i,s]=r,a=this.top;for(let c=0;c<s.length;c++)this.removePendingMark(s[c],a);for(let c=0;c<i.length;c++)this.addPendingMark(i[c]);A();for(let c=0;c<i.length;c++)this.removePendingMark(i[c],a);for(let c=0;c<s.length;c++)this.addPendingMark(s[c])}addTextNode(e){let A=e.nodeValue,n=this.top;if(n.options&$o||n.inlineContext(e)||/[^ \t\r\n\u000c]/.test(A)){if(n.options&Go)n.options&$o?A=A.replace(/\r\n?/g,`
7
- `):A=A.replace(/\r?\n|\r/g," ");else if(A=A.replace(/[ \t\r\n\u000c]+/g," "),/^[ \t\r\n\u000c]/.test(A)&&this.open==this.nodes.length-1){let r=n.content[n.content.length-1],i=e.previousSibling;(!r||i&&i.nodeName=="BR"||r.isText&&/[ \t\r\n\u000c]$/.test(r.text))&&(A=A.slice(1))}A&&this.insertNode(this.parser.schema.text(A)),this.findInText(e)}else this.findInside(e)}addElement(e,A){let n=e.nodeName.toLowerCase(),r;_h.hasOwnProperty(n)&&this.parser.normalizeLists&&GQ(e);let i=this.options.ruleFromNode&&this.options.ruleFromNode(e)||(r=this.parser.matchTag(e,this,A));if(i?i.ignore:PQ.hasOwnProperty(n))this.findInside(e),this.ignoreFallback(e);else if(!i||i.skip||i.closeParent){i&&i.closeParent?this.open=Math.max(0,this.open-1):i&&i.skip.nodeType&&(e=i.skip);let s,a=this.top,c=this.needsBlock;if(Th.hasOwnProperty(n))a.content.length&&a.content[0].isInline&&this.open&&(this.open--,a=this.top),s=!0,a.type||(this.needsBlock=!0);else if(!e.firstChild){this.leafFallback(e);return}i&&i.skip?this.addAll(e):this.withStyleRules(e,()=>this.addAll(e)),s&&this.sync(a),this.needsBlock=c}else this.withStyleRules(e,()=>{this.addElementByRule(e,i,i.consuming===!1?r:void 0)})}leafFallback(e){e.nodeName=="BR"&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(e.ownerDocument.createTextNode(`
8
- `))}ignoreFallback(e){e.nodeName=="BR"&&(!this.top.type||!this.top.type.inlineContent)&&this.findPlace(this.parser.schema.text("-"))}readStyles(e){let A=je.none,n=je.none;for(let r=0,i=e.length;r<i;r++){let s=e.item(r);for(let a=void 0;;){let c=this.parser.matchStyle(s,e.getPropertyValue(s),this,a);if(!c)break;if(c.ignore)return null;if(c.clearMark?this.top.pendingMarks.concat(this.top.activeMarks).forEach(u=>{c.clearMark(u)&&(n=u.addToSet(n))}):A=this.parser.schema.marks[c.mark].create(c.attrs).addToSet(A),c.consuming===!1)a=c;else break}}return[A,n]}addElementByRule(e,A,n){let r,i,s;A.node?(i=this.parser.schema.nodes[A.node],i.isLeaf?this.insertNode(i.create(A.attrs))||this.leafFallback(e):r=this.enter(i,A.attrs||null,A.preserveWhitespace)):(s=this.parser.schema.marks[A.mark].create(A.attrs),this.addPendingMark(s));let a=this.top;if(i&&i.isLeaf)this.findInside(e);else if(n)this.addElement(e,n);else if(A.getContent)this.findInside(e),A.getContent(e,this.parser.schema).forEach(c=>this.insertNode(c));else{let c=e;typeof A.contentElement=="string"?c=e.querySelector(A.contentElement):typeof A.contentElement=="function"?c=A.contentElement(e):A.contentElement&&(c=A.contentElement),this.findAround(e,c,!0),this.addAll(c)}r&&this.sync(a)&&this.open--,s&&this.removePendingMark(s,a)}addAll(e,A,n){let r=A||0;for(let i=A?e.childNodes[A]:e.firstChild,s=n==null?null:e.childNodes[n];i!=s;i=i.nextSibling,++r)this.findAtPoint(e,r),this.addDOM(i);this.findAtPoint(e,r)}findPlace(e){let A,n;for(let r=this.open;r>=0;r--){let i=this.nodes[r],s=i.findWrapping(e);if(s&&(!A||A.length>s.length)&&(A=s,n=i,!s.length)||i.solid)break}if(!A)return!1;this.sync(n);for(let r=0;r<A.length;r++)this.enterInner(A[r],null,!1);return!0}insertNode(e){if(e.isInline&&this.needsBlock&&!this.top.type){let A=this.textblockFromContext();A&&this.enterInner(A)}if(this.findPlace(e)){this.closeExtra();let A=this.top;A.applyPending(e.type),A.match&&(A.match=A.match.matchType(e.type));let n=A.activeMarks;for(let r=0;r<e.marks.length;r++)(!A.type||A.type.allowsMarkType(e.marks[r].type))&&(n=e.marks[r].addToSet(n));return A.content.push(e.mark(n)),!0}return!1}enter(e,A,n){let r=this.findPlace(e.create(A));return r&&this.enterInner(e,A,!0,n),r}enterInner(e,A=null,n=!1,r){this.closeExtra();let i=this.top;i.applyPending(e),i.match=i.match&&i.match.matchType(e);let s=xh(e,r,i.options);i.options&bs&&i.content.length==0&&(s|=bs),this.nodes.push(new Wo(e,A,i.activeMarks,i.pendingMarks,n,null,s)),this.open++}closeExtra(e=!1){let A=this.nodes.length-1;if(A>this.open){for(;A>this.open;A--)this.nodes[A-1].content.push(this.nodes[A].finish(e));this.nodes.length=this.open+1}}finish(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(this.isOpen||this.options.topOpen)}sync(e){for(let A=this.open;A>=0;A--)if(this.nodes[A]==e)return this.open=A,!0;return!1}get currentPos(){this.closeExtra();let e=0;for(let A=this.open;A>=0;A--){let n=this.nodes[A].content;for(let r=n.length-1;r>=0;r--)e+=n[r].nodeSize;A&&e++}return e}findAtPoint(e,A){if(this.find)for(let n=0;n<this.find.length;n++)this.find[n].node==e&&this.find[n].offset==A&&(this.find[n].pos=this.currentPos)}findInside(e){if(this.find)for(let A=0;A<this.find.length;A++)this.find[A].pos==null&&e.nodeType==1&&e.contains(this.find[A].node)&&(this.find[A].pos=this.currentPos)}findAround(e,A,n){if(e!=A&&this.find)for(let r=0;r<this.find.length;r++)this.find[r].pos==null&&e.nodeType==1&&e.contains(this.find[r].node)&&A.compareDocumentPosition(this.find[r].node)&(n?2:4)&&(this.find[r].pos=this.currentPos)}findInText(e){if(this.find)for(let A=0;A<this.find.length;A++)this.find[A].node==e&&(this.find[A].pos=this.currentPos-(e.nodeValue.length-this.find[A].offset))}matchesContext(e){if(e.indexOf("|")>-1)return e.split(/\s*\|\s*/).some(this.matchesContext,this);let A=e.split("/"),n=this.options.context,r=!this.isOpen&&(!n||n.parent.type==this.nodes[0].type),i=-(n?n.depth+1:0)+(r?0:1),s=(a,c)=>{for(;a>=0;a--){let u=A[a];if(u==""){if(a==A.length-1||a==0)continue;for(;c>=i;c--)if(s(a-1,c))return!0;return!1}else{let f=c>0||c==0&&r?this.nodes[c].type:n&&c>=i?n.node(c-i).type:null;if(!f||f.name!=u&&f.groups.indexOf(u)==-1)return!1;c--}}return!0};return s(A.length-1,this.open)}textblockFromContext(){let e=this.options.context;if(e)for(let A=e.depth;A>=0;A--){let n=e.node(A).contentMatchAt(e.indexAfter(A)).defaultType;if(n&&n.isTextblock&&n.defaultAttrs)return n}for(let A in this.parser.schema.nodes){let n=this.parser.schema.nodes[A];if(n.isTextblock&&n.defaultAttrs)return n}}addPendingMark(e){let A=JQ(e,this.top.pendingMarks);A&&this.top.stashMarks.push(A),this.top.pendingMarks=e.addToSet(this.top.pendingMarks)}removePendingMark(e,A){for(let n=this.open;n>=0;n--){let r=this.nodes[n];if(r.pendingMarks.lastIndexOf(e)>-1)r.pendingMarks=e.removeFromSet(r.pendingMarks);else{r.activeMarks=e.removeFromSet(r.activeMarks);let s=r.popFromStashMark(e);s&&r.type&&r.type.allowsMarkType(s.type)&&(r.activeMarks=s.addToSet(r.activeMarks))}if(r==A)break}}}function GQ(t){for(let e=t.firstChild,A=null;e;e=e.nextSibling){let n=e.nodeType==1?e.nodeName.toLowerCase():null;n&&_h.hasOwnProperty(n)&&A?(A.appendChild(e),e=A):n=="li"?A=e:n&&(A=null)}}function $Q(t,e){return(t.matches||t.msMatchesSelector||t.webkitMatchesSelector||t.mozMatchesSelector).call(t,e)}function Lh(t){let e={};for(let A in t)e[A]=t[A];return e}function WQ(t,e){let A=e.schema.nodes;for(let n in A){let r=A[n];if(!r.allowsMarkType(t))continue;let i=[],s=a=>{i.push(a);for(let c=0;c<a.edgeCount;c++){let{type:u,next:f}=a.edge(c);if(u==e||i.indexOf(f)<0&&s(f))return!0}};if(s(r.contentMatch))return!0}}function JQ(t,e){for(let A=0;A<e.length;A++)if(t.eq(e[A]))return e[A]}class mn{constructor(e,A){this.nodes=e,this.marks=A}serializeFragment(e,A={},n){n||(n=yc(A).createDocumentFragment());let r=n,i=[];return e.forEach(s=>{if(i.length||s.marks.length){let a=0,c=0;for(;a<i.length&&c<s.marks.length;){let u=s.marks[c];if(!this.marks[u.type.name]){c++;continue}if(!u.eq(i[a][0])||u.type.spec.spanning===!1)break;a++,c++}for(;a<i.length;)r=i.pop()[1];for(;c<s.marks.length;){let u=s.marks[c++],f=this.serializeMark(u,s.isInline,A);f&&(i.push([u,r]),r.appendChild(f.dom),r=f.contentDOM||f.dom)}}r.appendChild(this.serializeNodeInner(s,A))}),n}serializeNodeInner(e,A){let{dom:n,contentDOM:r}=mn.renderSpec(yc(A),this.nodes[e.type.name](e));if(r){if(e.isLeaf)throw new RangeError("Content hole not allowed in a leaf node spec");this.serializeFragment(e.content,A,r)}return n}serializeNode(e,A={}){let n=this.serializeNodeInner(e,A);for(let r=e.marks.length-1;r>=0;r--){let i=this.serializeMark(e.marks[r],e.isInline,A);i&&((i.contentDOM||i.dom).appendChild(n),n=i.dom)}return n}serializeMark(e,A,n={}){let r=this.marks[e.type.name];return r&&mn.renderSpec(yc(n),r(e,A))}static renderSpec(e,A,n=null){if(typeof A=="string")return{dom:e.createTextNode(A)};if(A.nodeType!=null)return{dom:A};if(A.dom&&A.dom.nodeType!=null)return A;let r=A[0],i=r.indexOf(" ");i>0&&(n=r.slice(0,i),r=r.slice(i+1));let s,a=n?e.createElementNS(n,r):e.createElement(r),c=A[1],u=1;if(c&&typeof c=="object"&&c.nodeType==null&&!Array.isArray(c)){u=2;for(let f in c)if(c[f]!=null){let p=f.indexOf(" ");p>0?a.setAttributeNS(f.slice(0,p),f.slice(p+1),c[f]):a.setAttribute(f,c[f])}}for(let f=u;f<A.length;f++){let p=A[f];if(p===0){if(f<A.length-1||f>u)throw new RangeError("Content hole must be the only child of its parent node");return{dom:a,contentDOM:a}}else{let{dom:g,contentDOM:B}=mn.renderSpec(e,p,n);if(a.appendChild(g),B){if(s)throw new RangeError("Multiple content holes");s=B}}}return{dom:a,contentDOM:s}}static fromSchema(e){return e.cached.domSerializer||(e.cached.domSerializer=new mn(this.nodesFromSchema(e),this.marksFromSchema(e)))}static nodesFromSchema(e){let A=kh(e.nodes);return A.text||(A.text=n=>n.text),A}static marksFromSchema(e){return kh(e.marks)}}function kh(t){let e={};for(let A in t){let n=t[A].spec.toDOM;n&&(e[A]=n)}return e}function yc(t){return t.document||window.document}const Hh=65535,Nh=Math.pow(2,16);function XQ(t,e){return t+e*Nh}function Dh(t){return t&Hh}function YQ(t){return(t-(t&Hh))/Nh}const Mh=1,Rh=2,Jo=4,Kh=8;class Ec{constructor(e,A,n){this.pos=e,this.delInfo=A,this.recover=n}get deleted(){return(this.delInfo&Kh)>0}get deletedBefore(){return(this.delInfo&(Mh|Jo))>0}get deletedAfter(){return(this.delInfo&(Rh|Jo))>0}get deletedAcross(){return(this.delInfo&Jo)>0}}class Ut{constructor(e,A=!1){if(this.ranges=e,this.inverted=A,!e.length&&Ut.empty)return Ut.empty}recover(e){let A=0,n=Dh(e);if(!this.inverted)for(let r=0;r<n;r++)A+=this.ranges[r*3+2]-this.ranges[r*3+1];return this.ranges[n*3]+A+YQ(e)}mapResult(e,A=1){return this._map(e,A,!1)}map(e,A=1){return this._map(e,A,!0)}_map(e,A,n){let r=0,i=this.inverted?2:1,s=this.inverted?1:2;for(let a=0;a<this.ranges.length;a+=3){let c=this.ranges[a]-(this.inverted?r:0);if(c>e)break;let u=this.ranges[a+i],f=this.ranges[a+s],p=c+u;if(e<=p){let g=u?e==c?-1:e==p?1:A:A,B=c+r+(g<0?0:f);if(n)return B;let w=e==(A<0?c:p)?null:XQ(a/3,e-c),Q=e==c?Rh:e==p?Mh:Jo;return(A<0?e!=c:e!=p)&&(Q|=Kh),new Ec(B,Q,w)}r+=f-u}return n?e+r:new Ec(e+r,0,null)}touches(e,A){let n=0,r=Dh(A),i=this.inverted?2:1,s=this.inverted?1:2;for(let a=0;a<this.ranges.length;a+=3){let c=this.ranges[a]-(this.inverted?n:0);if(c>e)break;let u=this.ranges[a+i],f=c+u;if(e<=f&&a==r*3)return!0;n+=this.ranges[a+s]-u}return!1}forEach(e){let A=this.inverted?2:1,n=this.inverted?1:2;for(let r=0,i=0;r<this.ranges.length;r+=3){let s=this.ranges[r],a=s-(this.inverted?i:0),c=s+(this.inverted?0:i),u=this.ranges[r+A],f=this.ranges[r+n];e(a,a+u,c,c+f),i+=f-u}}invert(){return new Ut(this.ranges,!this.inverted)}toString(){return(this.inverted?"-":"")+JSON.stringify(this.ranges)}static offset(e){return e==0?Ut.empty:new Ut(e<0?[0,-e,0]:[0,0,e])}}Ut.empty=new Ut([]);class bi{constructor(e=[],A,n=0,r=e.length){this.maps=e,this.mirror=A,this.from=n,this.to=r}slice(e=0,A=this.maps.length){return new bi(this.maps,this.mirror,e,A)}copy(){return new bi(this.maps.slice(),this.mirror&&this.mirror.slice(),this.from,this.to)}appendMap(e,A){this.to=this.maps.push(e),A!=null&&this.setMirror(this.maps.length-1,A)}appendMapping(e){for(let A=0,n=this.maps.length;A<e.maps.length;A++){let r=e.getMirror(A);this.appendMap(e.maps[A],r!=null&&r<A?n+r:void 0)}}getMirror(e){if(this.mirror){for(let A=0;A<this.mirror.length;A++)if(this.mirror[A]==e)return this.mirror[A+(A%2?-1:1)]}}setMirror(e,A){this.mirror||(this.mirror=[]),this.mirror.push(e,A)}appendMappingInverted(e){for(let A=e.maps.length-1,n=this.maps.length+e.maps.length;A>=0;A--){let r=e.getMirror(A);this.appendMap(e.maps[A].invert(),r!=null&&r>A?n-r-1:void 0)}}invert(){let e=new bi;return e.appendMappingInverted(this),e}map(e,A=1){if(this.mirror)return this._map(e,A,!0);for(let n=this.from;n<this.to;n++)e=this.maps[n].map(e,A);return e}mapResult(e,A=1){return this._map(e,A,!1)}_map(e,A,n){let r=0;for(let i=this.from;i<this.to;i++){let s=this.maps[i],a=s.mapResult(e,A);if(a.recover!=null){let c=this.getMirror(i);if(c!=null&&c>i&&c<this.to){i=c,e=this.maps[c].recover(a.recover);continue}}r|=a.delInfo,e=a.pos}return n?e:new Ec(e,r,null)}}const Qc=Object.create(null);class JA{getMap(){return Ut.empty}merge(e){return null}static fromJSON(e,A){if(!A||!A.stepType)throw new RangeError("Invalid input for Step.fromJSON");let n=Qc[A.stepType];if(!n)throw new RangeError(`No step type ${A.stepType} defined`);return n.fromJSON(e,A)}static jsonID(e,A){if(e in Qc)throw new RangeError("Duplicate use of step JSON ID "+e);return Qc[e]=A,A.prototype.jsonID=e,A}}class QA{constructor(e,A){this.doc=e,this.failed=A}static ok(e){return new QA(e,null)}static fail(e){return new QA(null,e)}static fromReplace(e,A,n,r){try{return QA.ok(e.replace(A,n,r))}catch(i){if(i instanceof Mo)return QA.fail(i.message);throw i}}}function Fc(t,e,A){let n=[];for(let r=0;r<t.childCount;r++){let i=t.child(r);i.content.size&&(i=i.copy(Fc(i.content,e,i))),i.isInline&&(i=e(i,A,r)),n.push(i)}return Y.fromArray(n)}class sr extends JA{constructor(e,A,n){super(),this.from=e,this.to=A,this.mark=n}apply(e){let A=e.slice(this.from,this.to),n=e.resolve(this.from),r=n.node(n.sharedDepth(this.to)),i=new j(Fc(A.content,(s,a)=>!s.isAtom||!a.type.allowsMarkType(this.mark.type)?s:s.mark(this.mark.addToSet(s.marks)),r),A.openStart,A.openEnd);return QA.fromReplace(e,this.from,this.to,i)}invert(){return new Bn(this.from,this.to,this.mark)}map(e){let A=e.mapResult(this.from,1),n=e.mapResult(this.to,-1);return A.deleted&&n.deleted||A.pos>=n.pos?null:new sr(A.pos,n.pos,this.mark)}merge(e){return e instanceof sr&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new sr(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,A){if(typeof A.from!="number"||typeof A.to!="number")throw new RangeError("Invalid input for AddMarkStep.fromJSON");return new sr(A.from,A.to,e.markFromJSON(A.mark))}}JA.jsonID("addMark",sr);class Bn extends JA{constructor(e,A,n){super(),this.from=e,this.to=A,this.mark=n}apply(e){let A=e.slice(this.from,this.to),n=new j(Fc(A.content,r=>r.mark(this.mark.removeFromSet(r.marks)),e),A.openStart,A.openEnd);return QA.fromReplace(e,this.from,this.to,n)}invert(){return new sr(this.from,this.to,this.mark)}map(e){let A=e.mapResult(this.from,1),n=e.mapResult(this.to,-1);return A.deleted&&n.deleted||A.pos>=n.pos?null:new Bn(A.pos,n.pos,this.mark)}merge(e){return e instanceof Bn&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new Bn(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,A){if(typeof A.from!="number"||typeof A.to!="number")throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");return new Bn(A.from,A.to,e.markFromJSON(A.mark))}}JA.jsonID("removeMark",Bn);class or extends JA{constructor(e,A){super(),this.pos=e,this.mark=A}apply(e){let A=e.nodeAt(this.pos);if(!A)return QA.fail("No node at mark step's position");let n=A.type.create(A.attrs,null,this.mark.addToSet(A.marks));return QA.fromReplace(e,this.pos,this.pos+1,new j(Y.from(n),0,A.isLeaf?0:1))}invert(e){let A=e.nodeAt(this.pos);if(A){let n=this.mark.addToSet(A.marks);if(n.length==A.marks.length){for(let r=0;r<A.marks.length;r++)if(!A.marks[r].isInSet(n))return new or(this.pos,A.marks[r]);return new or(this.pos,this.mark)}}return new Ui(this.pos,this.mark)}map(e){let A=e.mapResult(this.pos,1);return A.deletedAfter?null:new or(A.pos,this.mark)}toJSON(){return{stepType:"addNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(e,A){if(typeof A.pos!="number")throw new RangeError("Invalid input for AddNodeMarkStep.fromJSON");return new or(A.pos,e.markFromJSON(A.mark))}}JA.jsonID("addNodeMark",or);class Ui extends JA{constructor(e,A){super(),this.pos=e,this.mark=A}apply(e){let A=e.nodeAt(this.pos);if(!A)return QA.fail("No node at mark step's position");let n=A.type.create(A.attrs,null,this.mark.removeFromSet(A.marks));return QA.fromReplace(e,this.pos,this.pos+1,new j(Y.from(n),0,A.isLeaf?0:1))}invert(e){let A=e.nodeAt(this.pos);return!A||!this.mark.isInSet(A.marks)?this:new or(this.pos,this.mark)}map(e){let A=e.mapResult(this.pos,1);return A.deletedAfter?null:new Ui(A.pos,this.mark)}toJSON(){return{stepType:"removeNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(e,A){if(typeof A.pos!="number")throw new RangeError("Invalid input for RemoveNodeMarkStep.fromJSON");return new Ui(A.pos,e.markFromJSON(A.mark))}}JA.jsonID("removeNodeMark",Ui);class xA extends JA{constructor(e,A,n,r=!1){super(),this.from=e,this.to=A,this.slice=n,this.structure=r}apply(e){return this.structure&&bc(e,this.from,this.to)?QA.fail("Structure replace would overwrite content"):QA.fromReplace(e,this.from,this.to,this.slice)}getMap(){return new Ut([this.from,this.to-this.from,this.slice.size])}invert(e){return new xA(this.from,this.from+this.slice.size,e.slice(this.from,this.to))}map(e){let A=e.mapResult(this.from,1),n=e.mapResult(this.to,-1);return A.deletedAcross&&n.deletedAcross?null:new xA(A.pos,Math.max(A.pos,n.pos),this.slice)}merge(e){if(!(e instanceof xA)||e.structure||this.structure)return null;if(this.from+this.slice.size==e.from&&!this.slice.openEnd&&!e.slice.openStart){let A=this.slice.size+e.slice.size==0?j.empty:new j(this.slice.content.append(e.slice.content),this.slice.openStart,e.slice.openEnd);return new xA(this.from,this.to+(e.to-e.from),A,this.structure)}else if(e.to==this.from&&!this.slice.openStart&&!e.slice.openEnd){let A=this.slice.size+e.slice.size==0?j.empty:new j(e.slice.content.append(this.slice.content),e.slice.openStart,this.slice.openEnd);return new xA(e.from,this.to,A,this.structure)}else return null}toJSON(){let e={stepType:"replace",from:this.from,to:this.to};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,A){if(typeof A.from!="number"||typeof A.to!="number")throw new RangeError("Invalid input for ReplaceStep.fromJSON");return new xA(A.from,A.to,j.fromJSON(e,A.slice),!!A.structure)}}JA.jsonID("replace",xA);class OA extends JA{constructor(e,A,n,r,i,s,a=!1){super(),this.from=e,this.to=A,this.gapFrom=n,this.gapTo=r,this.slice=i,this.insert=s,this.structure=a}apply(e){if(this.structure&&(bc(e,this.from,this.gapFrom)||bc(e,this.gapTo,this.to)))return QA.fail("Structure gap-replace would overwrite content");let A=e.slice(this.gapFrom,this.gapTo);if(A.openStart||A.openEnd)return QA.fail("Gap is not a flat range");let n=this.slice.insertAt(this.insert,A.content);return n?QA.fromReplace(e,this.from,this.to,n):QA.fail("Content does not fit in gap")}getMap(){return new Ut([this.from,this.gapFrom-this.from,this.insert,this.gapTo,this.to-this.gapTo,this.slice.size-this.insert])}invert(e){let A=this.gapTo-this.gapFrom;return new OA(this.from,this.from+this.slice.size+A,this.from+this.insert,this.from+this.insert+A,e.slice(this.from,this.to).removeBetween(this.gapFrom-this.from,this.gapTo-this.from),this.gapFrom-this.from,this.structure)}map(e){let A=e.mapResult(this.from,1),n=e.mapResult(this.to,-1),r=this.from==this.gapFrom?A.pos:e.map(this.gapFrom,-1),i=this.to==this.gapTo?n.pos:e.map(this.gapTo,1);return A.deletedAcross&&n.deletedAcross||r<A.pos||i>n.pos?null:new OA(A.pos,n.pos,r,i,this.slice,this.insert,this.structure)}toJSON(){let e={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,A){if(typeof A.from!="number"||typeof A.to!="number"||typeof A.gapFrom!="number"||typeof A.gapTo!="number"||typeof A.insert!="number")throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new OA(A.from,A.to,A.gapFrom,A.gapTo,j.fromJSON(e,A.slice),A.insert,!!A.structure)}}JA.jsonID("replaceAround",OA);function bc(t,e,A){let n=t.resolve(e),r=A-e,i=n.depth;for(;r>0&&i>0&&n.indexAfter(i)==n.node(i).childCount;)i--,r--;if(r>0){let s=n.node(i).maybeChild(n.indexAfter(i));for(;r>0;){if(!s||s.isLeaf)return!0;s=s.firstChild,r--}}return!1}function zQ(t,e,A,n){let r=[],i=[],s,a;t.doc.nodesBetween(e,A,(c,u,f)=>{if(!c.isInline)return;let p=c.marks;if(!n.isInSet(p)&&f.type.allowsMarkType(n.type)){let g=Math.max(u,e),B=Math.min(u+c.nodeSize,A),w=n.addToSet(p);for(let Q=0;Q<p.length;Q++)p[Q].isInSet(w)||(s&&s.to==g&&s.mark.eq(p[Q])?s.to=B:r.push(s=new Bn(g,B,p[Q])));a&&a.to==g?a.to=B:i.push(a=new sr(g,B,n))}}),r.forEach(c=>t.step(c)),i.forEach(c=>t.step(c))}function qQ(t,e,A,n){let r=[],i=0;t.doc.nodesBetween(e,A,(s,a)=>{if(!s.isInline)return;i++;let c=null;if(n instanceof Po){let u=s.marks,f;for(;f=n.isInSet(u);)(c||(c=[])).push(f),u=f.removeFromSet(u)}else n?n.isInSet(s.marks)&&(c=[n]):c=s.marks;if(c&&c.length){let u=Math.min(a+s.nodeSize,A);for(let f=0;f<c.length;f++){let p=c[f],g;for(let B=0;B<r.length;B++){let w=r[B];w.step==i-1&&p.eq(r[B].style)&&(g=w)}g?(g.to=u,g.step=i):r.push({style:p,from:Math.max(a,e),to:u,step:i})}}}),r.forEach(s=>t.step(new Bn(s.from,s.to,s.style)))}function Vh(t,e,A,n=A.contentMatch,r=!0){let i=t.doc.nodeAt(e),s=[],a=e+1;for(let c=0;c<i.childCount;c++){let u=i.child(c),f=a+u.nodeSize,p=n.matchType(u.type);if(!p)s.push(new xA(a,f,j.empty));else{n=p;for(let g=0;g<u.marks.length;g++)A.allowsMarkType(u.marks[g].type)||t.step(new Bn(a,f,u.marks[g]));if(r&&u.isText&&A.whitespace!="pre"){let g,B=/\r?\n|\r/g,w;for(;g=B.exec(u.text);)w||(w=new j(Y.from(A.schema.text(" ",A.allowedMarks(u.marks))),0,0)),s.push(new xA(a+g.index,a+g.index+g[0].length,w))}}a=f}if(!n.validEnd){let c=n.fillBefore(Y.empty,!0);t.replace(a,a,new j(c,0,0))}for(let c=s.length-1;c>=0;c--)t.step(s[c])}function ZQ(t,e,A){return(e==0||t.canReplace(e,t.childCount))&&(A==t.childCount||t.canReplace(0,A))}function vi(t){let A=t.parent.content.cutByIndex(t.startIndex,t.endIndex);for(let n=t.depth;;--n){let r=t.$from.node(n),i=t.$from.index(n),s=t.$to.indexAfter(n);if(n<t.depth&&r.canReplace(i,s,A))return n;if(n==0||r.type.spec.isolating||!ZQ(r,i,s))break}return null}function jQ(t,e,A){let{$from:n,$to:r,depth:i}=e,s=n.before(i+1),a=r.after(i+1),c=s,u=a,f=Y.empty,p=0;for(let w=i,Q=!1;w>A;w--)Q||n.index(w)>0?(Q=!0,f=Y.from(n.node(w).copy(f)),p++):c--;let g=Y.empty,B=0;for(let w=i,Q=!1;w>A;w--)Q||r.after(w+1)<r.end(w)?(Q=!0,g=Y.from(r.node(w).copy(g)),B++):u++;t.step(new OA(c,u,s,a,new j(f.append(g),p,B),f.size-p,!0))}function Uc(t,e,A=null,n=t){let r=eF(t,e),i=r&&AF(n,e);return i?r.map(Ph).concat({type:e,attrs:A}).concat(i.map(Ph)):null}function Ph(t){return{type:t,attrs:null}}function eF(t,e){let{parent:A,startIndex:n,endIndex:r}=t,i=A.contentMatchAt(n).findWrapping(e);if(!i)return null;let s=i.length?i[0]:e;return A.canReplaceWith(n,r,s)?i:null}function AF(t,e){let{parent:A,startIndex:n,endIndex:r}=t,i=A.child(n),s=e.contentMatch.findWrapping(i.type);if(!s)return null;let c=(s.length?s[s.length-1]:e).contentMatch;for(let u=n;c&&u<r;u++)c=c.matchType(A.child(u).type);return!c||!c.validEnd?null:s}function tF(t,e,A){let n=Y.empty;for(let s=A.length-1;s>=0;s--){if(n.size){let a=A[s].type.contentMatch.matchFragment(n);if(!a||!a.validEnd)throw new RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper")}n=Y.from(A[s].type.create(A[s].attrs,n))}let r=e.start,i=e.end;t.step(new OA(r,i,r,i,new j(n,0,0),A.length,!0))}function nF(t,e,A,n,r){if(!n.isTextblock)throw new RangeError("Type given to setBlockType should be a textblock");let i=t.steps.length;t.doc.nodesBetween(e,A,(s,a)=>{if(s.isTextblock&&!s.hasMarkup(n,r)&&sF(t.doc,t.mapping.slice(i).map(a),n)){let c=null;if(n.schema.linebreakReplacement){let g=n.whitespace=="pre",B=!!n.contentMatch.matchType(n.schema.linebreakReplacement);g&&!B?c=!1:!g&&B&&(c=!0)}c===!1&&iF(t,s,a,i),Vh(t,t.mapping.slice(i).map(a,1),n,void 0,c===null);let u=t.mapping.slice(i),f=u.map(a,1),p=u.map(a+s.nodeSize,1);return t.step(new OA(f,p,f+1,p-1,new j(Y.from(n.create(r,null,s.marks)),0,0),1,!0)),c===!0&&rF(t,s,a,i),!1}})}function rF(t,e,A,n){e.forEach((r,i)=>{if(r.isText){let s,a=/\r?\n|\r/g;for(;s=a.exec(r.text);){let c=t.mapping.slice(n).map(A+1+i+s.index);t.replaceWith(c,c+1,e.type.schema.linebreakReplacement.create())}}})}function iF(t,e,A,n){e.forEach((r,i)=>{if(r.type==r.type.schema.linebreakReplacement){let s=t.mapping.slice(n).map(A+1+i);t.replaceWith(s,s+1,e.type.schema.text(`
9
- `))}})}function sF(t,e,A){let n=t.resolve(e),r=n.index();return n.parent.canReplaceWith(r,r+1,A)}function oF(t,e,A,n,r){let i=t.doc.nodeAt(e);if(!i)throw new RangeError("No node at given position");A||(A=i.type);let s=A.create(n,null,r||i.marks);if(i.isLeaf)return t.replaceWith(e,e+i.nodeSize,s);if(!A.validContent(i.content))throw new RangeError("Invalid content for node type "+A.name);t.step(new OA(e,e+i.nodeSize,e+1,e+i.nodeSize-1,new j(Y.from(s),0,0),1,!0))}function Ii(t,e,A=1,n){let r=t.resolve(e),i=r.depth-A,s=n&&n[n.length-1]||r.parent;if(i<0||r.parent.type.spec.isolating||!r.parent.canReplace(r.index(),r.parent.childCount)||!s.type.validContent(r.parent.content.cutByIndex(r.index(),r.parent.childCount)))return!1;for(let u=r.depth-1,f=A-2;u>i;u--,f--){let p=r.node(u),g=r.index(u);if(p.type.spec.isolating)return!1;let B=p.content.cutByIndex(g,p.childCount),w=n&&n[f+1];w&&(B=B.replaceChild(0,w.type.create(w.attrs)));let Q=n&&n[f]||p;if(!p.canReplace(g+1,p.childCount)||!Q.type.validContent(B))return!1}let a=r.indexAfter(i),c=n&&n[0];return r.node(i).canReplaceWith(a,a,c?c.type:r.node(i+1).type)}function aF(t,e,A=1,n){let r=t.doc.resolve(e),i=Y.empty,s=Y.empty;for(let a=r.depth,c=r.depth-A,u=A-1;a>c;a--,u--){i=Y.from(r.node(a).copy(i));let f=n&&n[u];s=Y.from(f?f.type.create(f.attrs,s):r.node(a).copy(s))}t.step(new xA(e,e,new j(i.append(s),A,A),!0))}function ar(t,e){let A=t.resolve(e),n=A.index();return Gh(A.nodeBefore,A.nodeAfter)&&A.parent.canReplace(n,n+1)}function Gh(t,e){return!!(t&&e&&!t.isLeaf&&t.canAppend(e))}function Xo(t,e,A=-1){let n=t.resolve(e);for(let r=n.depth;;r--){let i,s,a=n.index(r);if(r==n.depth?(i=n.nodeBefore,s=n.nodeAfter):A>0?(i=n.node(r+1),a++,s=n.node(r).maybeChild(a)):(i=n.node(r).maybeChild(a-1),s=n.node(r+1)),i&&!i.isTextblock&&Gh(i,s)&&n.node(r).canReplace(a,a+1))return e;if(r==0)break;e=A<0?n.before(r):n.after(r)}}function lF(t,e,A){let n=new xA(e-A,e+A,j.empty,!0);t.step(n)}function cF(t,e,A){let n=t.resolve(e);if(n.parent.canReplaceWith(n.index(),n.index(),A))return e;if(n.parentOffset==0)for(let r=n.depth-1;r>=0;r--){let i=n.index(r);if(n.node(r).canReplaceWith(i,i,A))return n.before(r+1);if(i>0)return null}if(n.parentOffset==n.parent.content.size)for(let r=n.depth-1;r>=0;r--){let i=n.indexAfter(r);if(n.node(r).canReplaceWith(i,i,A))return n.after(r+1);if(i<n.node(r).childCount)return null}return null}function $h(t,e,A){let n=t.resolve(e);if(!A.content.size)return e;let r=A.content;for(let i=0;i<A.openStart;i++)r=r.firstChild.content;for(let i=1;i<=(A.openStart==0&&A.size?2:1);i++)for(let s=n.depth;s>=0;s--){let a=s==n.depth?0:n.pos<=(n.start(s+1)+n.end(s+1))/2?-1:1,c=n.index(s)+(a>0?1:0),u=n.node(s),f=!1;if(i==1)f=u.canReplace(c,c,r);else{let p=u.contentMatchAt(c).findWrapping(r.firstChild.type);f=p&&u.canReplaceWith(c,c,p[0])}if(f)return a==0?n.pos:a<0?n.before(s+1):n.after(s+1)}return null}function Yo(t,e,A=e,n=j.empty){if(e==A&&!n.size)return null;let r=t.resolve(e),i=t.resolve(A);return Wh(r,i,n)?new xA(e,A,n):new uF(r,i,n).fit()}function Wh(t,e,A){return!A.openStart&&!A.openEnd&&t.start()==e.start()&&t.parent.canReplace(t.index(),e.index(),A.content)}class uF{constructor(e,A,n){this.$from=e,this.$to=A,this.unplaced=n,this.frontier=[],this.placed=Y.empty;for(let r=0;r<=e.depth;r++){let i=e.node(r);this.frontier.push({type:i.type,match:i.contentMatchAt(e.indexAfter(r))})}for(let r=e.depth;r>0;r--)this.placed=Y.from(e.node(r).copy(this.placed))}get depth(){return this.frontier.length-1}fit(){for(;this.unplaced.size;){let u=this.findFittable();u?this.placeNodes(u):this.openMore()||this.dropNode()}let e=this.mustMoveInline(),A=this.placed.size-this.depth-this.$from.depth,n=this.$from,r=this.close(e<0?this.$to:n.doc.resolve(e));if(!r)return null;let i=this.placed,s=n.depth,a=r.depth;for(;s&&a&&i.childCount==1;)i=i.firstChild.content,s--,a--;let c=new j(i,s,a);return e>-1?new OA(n.pos,e,this.$to.pos,this.$to.end(),c,A):c.size||n.pos!=this.$to.pos?new xA(n.pos,r.pos,c):null}findFittable(){let e=this.unplaced.openStart;for(let A=this.unplaced.content,n=0,r=this.unplaced.openEnd;n<e;n++){let i=A.firstChild;if(A.childCount>1&&(r=0),i.type.spec.isolating&&r<=n){e=n;break}A=i.content}for(let A=1;A<=2;A++)for(let n=A==1?e:this.unplaced.openStart;n>=0;n--){let r,i=null;n?(i=vc(this.unplaced.content,n-1).firstChild,r=i.content):r=this.unplaced.content;let s=r.firstChild;for(let a=this.depth;a>=0;a--){let{type:c,match:u}=this.frontier[a],f,p=null;if(A==1&&(s?u.matchType(s.type)||(p=u.fillBefore(Y.from(s),!1)):i&&c.compatibleContent(i.type)))return{sliceDepth:n,frontierDepth:a,parent:i,inject:p};if(A==2&&s&&(f=u.findWrapping(s.type)))return{sliceDepth:n,frontierDepth:a,parent:i,wrap:f};if(i&&u.matchType(i.type))break}}}openMore(){let{content:e,openStart:A,openEnd:n}=this.unplaced,r=vc(e,A);return!r.childCount||r.firstChild.isLeaf?!1:(this.unplaced=new j(e,A+1,Math.max(n,r.size+A>=e.size-n?A+1:0)),!0)}dropNode(){let{content:e,openStart:A,openEnd:n}=this.unplaced,r=vc(e,A);if(r.childCount<=1&&A>0){let i=e.size-A<=A+r.size;this.unplaced=new j(Us(e,A-1,1),A-1,i?A-1:n)}else this.unplaced=new j(Us(e,A,1),A,n)}placeNodes({sliceDepth:e,frontierDepth:A,parent:n,inject:r,wrap:i}){for(;this.depth>A;)this.closeFrontierNode();if(i)for(let Q=0;Q<i.length;Q++)this.openFrontierNode(i[Q]);let s=this.unplaced,a=n?n.content:s.content,c=s.openStart-e,u=0,f=[],{match:p,type:g}=this.frontier[A];if(r){for(let Q=0;Q<r.childCount;Q++)f.push(r.child(Q));p=p.matchFragment(r)}let B=a.size+e-(s.content.size-s.openEnd);for(;u<a.childCount;){let Q=a.child(u),b=p.matchType(Q.type);if(!b)break;u++,(u>1||c==0||Q.content.size)&&(p=b,f.push(Jh(Q.mark(g.allowedMarks(Q.marks)),u==1?c:0,u==a.childCount?B:-1)))}let w=u==a.childCount;w||(B=-1),this.placed=vs(this.placed,A,Y.from(f)),this.frontier[A].match=p,w&&B<0&&n&&n.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(let Q=0,b=a;Q<B;Q++){let v=b.lastChild;this.frontier.push({type:v.type,match:v.contentMatchAt(v.childCount)}),b=v.content}this.unplaced=w?e==0?j.empty:new j(Us(s.content,e-1,1),e-1,B<0?s.openEnd:e-1):new j(Us(s.content,e,u),s.openStart,s.openEnd)}mustMoveInline(){if(!this.$to.parent.isTextblock)return-1;let e=this.frontier[this.depth],A;if(!e.type.isTextblock||!Ic(this.$to,this.$to.depth,e.type,e.match,!1)||this.$to.depth==this.depth&&(A=this.findCloseLevel(this.$to))&&A.depth==this.depth)return-1;let{depth:n}=this.$to,r=this.$to.after(n);for(;n>1&&r==this.$to.end(--n);)++r;return r}findCloseLevel(e){e:for(let A=Math.min(this.depth,e.depth);A>=0;A--){let{match:n,type:r}=this.frontier[A],i=A<e.depth&&e.end(A+1)==e.pos+(e.depth-(A+1)),s=Ic(e,A,r,n,i);if(s){for(let a=A-1;a>=0;a--){let{match:c,type:u}=this.frontier[a],f=Ic(e,a,u,c,!0);if(!f||f.childCount)continue e}return{depth:A,fit:s,move:i?e.doc.resolve(e.after(A+1)):e}}}}close(e){let A=this.findCloseLevel(e);if(!A)return null;for(;this.depth>A.depth;)this.closeFrontierNode();A.fit.childCount&&(this.placed=vs(this.placed,A.depth,A.fit)),e=A.move;for(let n=A.depth+1;n<=e.depth;n++){let r=e.node(n),i=r.type.contentMatch.fillBefore(r.content,!0,e.index(n));this.openFrontierNode(r.type,r.attrs,i)}return e}openFrontierNode(e,A=null,n){let r=this.frontier[this.depth];r.match=r.match.matchType(e),this.placed=vs(this.placed,this.depth,Y.from(e.create(A,n))),this.frontier.push({type:e,match:e.contentMatch})}closeFrontierNode(){let A=this.frontier.pop().match.fillBefore(Y.empty,!0);A.childCount&&(this.placed=vs(this.placed,this.frontier.length,A))}}function Us(t,e,A){return e==0?t.cutByIndex(A,t.childCount):t.replaceChild(0,t.firstChild.copy(Us(t.firstChild.content,e-1,A)))}function vs(t,e,A){return e==0?t.append(A):t.replaceChild(t.childCount-1,t.lastChild.copy(vs(t.lastChild.content,e-1,A)))}function vc(t,e){for(let A=0;A<e;A++)t=t.firstChild.content;return t}function Jh(t,e,A){if(e<=0)return t;let n=t.content;return e>1&&(n=n.replaceChild(0,Jh(n.firstChild,e-1,n.childCount==1?A-1:0))),e>0&&(n=t.type.contentMatch.fillBefore(n).append(n),A<=0&&(n=n.append(t.type.contentMatch.matchFragment(n).fillBefore(Y.empty,!0)))),t.copy(n)}function Ic(t,e,A,n,r){let i=t.node(e),s=r?t.indexAfter(e):t.index(e);if(s==i.childCount&&!A.compatibleContent(i.type))return null;let a=n.fillBefore(i.content,!0,s);return a&&!fF(A,i.content,s)?a:null}function fF(t,e,A){for(let n=A;n<e.childCount;n++)if(!t.allowsMarks(e.child(n).marks))return!0;return!1}function dF(t){return t.spec.defining||t.spec.definingForContent}function hF(t,e,A,n){if(!n.size)return t.deleteRange(e,A);let r=t.doc.resolve(e),i=t.doc.resolve(A);if(Wh(r,i,n))return t.step(new xA(e,A,n));let s=Yh(r,t.doc.resolve(A));s[s.length-1]==0&&s.pop();let a=-(r.depth+1);s.unshift(a);for(let g=r.depth,B=r.pos-1;g>0;g--,B--){let w=r.node(g).type.spec;if(w.defining||w.definingAsContext||w.isolating)break;s.indexOf(g)>-1?a=g:r.before(g)==B&&s.splice(1,0,-g)}let c=s.indexOf(a),u=[],f=n.openStart;for(let g=n.content,B=0;;B++){let w=g.firstChild;if(u.push(w),B==n.openStart)break;g=w.content}for(let g=f-1;g>=0;g--){let B=u[g],w=dF(B.type);if(w&&!B.sameMarkup(r.node(Math.abs(a)-1)))f=g;else if(w||!B.type.isTextblock)break}for(let g=n.openStart;g>=0;g--){let B=(g+f+1)%(n.openStart+1),w=u[B];if(w)for(let Q=0;Q<s.length;Q++){let b=s[(Q+c)%s.length],v=!0;b<0&&(v=!1,b=-b);let _=r.node(b-1),S=r.index(b-1);if(_.canReplaceWith(S,S,w.type,w.marks))return t.replace(r.before(b),v?i.after(b):A,new j(Xh(n.content,0,n.openStart,B),B,n.openEnd))}}let p=t.steps.length;for(let g=s.length-1;g>=0&&(t.replace(e,A,n),!(t.steps.length>p));g--){let B=s[g];B<0||(e=r.before(B),A=i.after(B))}}function Xh(t,e,A,n,r){if(e<A){let i=t.firstChild;t=t.replaceChild(0,i.copy(Xh(i.content,e+1,A,n,i)))}if(e>n){let i=r.contentMatchAt(0),s=i.fillBefore(t).append(t);t=s.append(i.matchFragment(s).fillBefore(Y.empty,!0))}return t}function pF(t,e,A,n){if(!n.isInline&&e==A&&t.doc.resolve(e).parent.content.size){let r=cF(t.doc,e,n.type);r!=null&&(e=A=r)}t.replaceRange(e,A,new j(Y.from(n),0,0))}function gF(t,e,A){let n=t.doc.resolve(e),r=t.doc.resolve(A),i=Yh(n,r);for(let s=0;s<i.length;s++){let a=i[s],c=s==i.length-1;if(c&&a==0||n.node(a).type.contentMatch.validEnd)return t.delete(n.start(a),r.end(a));if(a>0&&(c||n.node(a-1).canReplace(n.index(a-1),r.indexAfter(a-1))))return t.delete(n.before(a),r.after(a))}for(let s=1;s<=n.depth&&s<=r.depth;s++)if(e-n.start(s)==n.depth-s&&A>n.end(s)&&r.end(s)-A!=r.depth-s)return t.delete(n.before(s),A);t.delete(e,A)}function Yh(t,e){let A=[],n=Math.min(t.depth,e.depth);for(let r=n;r>=0;r--){let i=t.start(r);if(i<t.pos-(t.depth-r)||e.end(r)>e.pos+(e.depth-r)||t.node(r).type.spec.isolating||e.node(r).type.spec.isolating)break;(i==e.start(r)||r==t.depth&&r==e.depth&&t.parent.inlineContent&&e.parent.inlineContent&&r&&e.start(r-1)==i-1)&&A.push(r)}return A}class Si extends JA{constructor(e,A,n){super(),this.pos=e,this.attr=A,this.value=n}apply(e){let A=e.nodeAt(this.pos);if(!A)return QA.fail("No node at attribute step's position");let n=Object.create(null);for(let i in A.attrs)n[i]=A.attrs[i];n[this.attr]=this.value;let r=A.type.create(n,null,A.marks);return QA.fromReplace(e,this.pos,this.pos+1,new j(Y.from(r),0,A.isLeaf?0:1))}getMap(){return Ut.empty}invert(e){return new Si(this.pos,this.attr,e.nodeAt(this.pos).attrs[this.attr])}map(e){let A=e.mapResult(this.pos,1);return A.deletedAfter?null:new Si(A.pos,this.attr,this.value)}toJSON(){return{stepType:"attr",pos:this.pos,attr:this.attr,value:this.value}}static fromJSON(e,A){if(typeof A.pos!="number"||typeof A.attr!="string")throw new RangeError("Invalid input for AttrStep.fromJSON");return new Si(A.pos,A.attr,A.value)}}JA.jsonID("attr",Si);class Is extends JA{constructor(e,A){super(),this.attr=e,this.value=A}apply(e){let A=Object.create(null);for(let r in e.attrs)A[r]=e.attrs[r];A[this.attr]=this.value;let n=e.type.create(A,e.content,e.marks);return QA.ok(n)}getMap(){return Ut.empty}invert(e){return new Is(this.attr,e.attrs[this.attr])}map(e){return this}toJSON(){return{stepType:"docAttr",attr:this.attr,value:this.value}}static fromJSON(e,A){if(typeof A.attr!="string")throw new RangeError("Invalid input for DocAttrStep.fromJSON");return new Is(A.attr,A.value)}}JA.jsonID("docAttr",Is);let Ti=class extends Error{};Ti=function t(e){let A=Error.call(this,e);return A.__proto__=t.prototype,A},Ti.prototype=Object.create(Error.prototype),Ti.prototype.constructor=Ti,Ti.prototype.name="TransformError";class mF{constructor(e){this.doc=e,this.steps=[],this.docs=[],this.mapping=new bi}get before(){return this.docs.length?this.docs[0]:this.doc}step(e){let A=this.maybeStep(e);if(A.failed)throw new Ti(A.failed);return this}maybeStep(e){let A=e.apply(this.doc);return A.failed||this.addStep(e,A.doc),A}get docChanged(){return this.steps.length>0}addStep(e,A){this.docs.push(this.doc),this.steps.push(e),this.mapping.appendMap(e.getMap()),this.doc=A}replace(e,A=e,n=j.empty){let r=Yo(this.doc,e,A,n);return r&&this.step(r),this}replaceWith(e,A,n){return this.replace(e,A,new j(Y.from(n),0,0))}delete(e,A){return this.replace(e,A,j.empty)}insert(e,A){return this.replaceWith(e,e,A)}replaceRange(e,A,n){return hF(this,e,A,n),this}replaceRangeWith(e,A,n){return pF(this,e,A,n),this}deleteRange(e,A){return gF(this,e,A),this}lift(e,A){return jQ(this,e,A),this}join(e,A=1){return lF(this,e,A),this}wrap(e,A){return tF(this,e,A),this}setBlockType(e,A=e,n,r=null){return nF(this,e,A,n,r),this}setNodeMarkup(e,A,n=null,r){return oF(this,e,A,n,r),this}setNodeAttribute(e,A,n){return this.step(new Si(e,A,n)),this}setDocAttribute(e,A){return this.step(new Is(e,A)),this}addNodeMark(e,A){return this.step(new or(e,A)),this}removeNodeMark(e,A){if(!(A instanceof je)){let n=this.doc.nodeAt(e);if(!n)throw new RangeError("No node at position "+e);if(A=A.isInSet(n.marks),!A)return this}return this.step(new Ui(e,A)),this}split(e,A=1,n){return aF(this,e,A,n),this}addMark(e,A,n){return zQ(this,e,A,n),this}removeMark(e,A,n){return qQ(this,e,A,n),this}clearIncompatible(e,A,n){return Vh(this,e,A,n),this}}const Sc=Object.create(null);class Fe{constructor(e,A,n){this.$anchor=e,this.$head=A,this.ranges=n||[new BF(e.min(A),e.max(A))]}get anchor(){return this.$anchor.pos}get head(){return this.$head.pos}get from(){return this.$from.pos}get to(){return this.$to.pos}get $from(){return this.ranges[0].$from}get $to(){return this.ranges[0].$to}get empty(){let e=this.ranges;for(let A=0;A<e.length;A++)if(e[A].$from.pos!=e[A].$to.pos)return!1;return!0}content(){return this.$from.doc.slice(this.from,this.to,!0)}replace(e,A=j.empty){let n=A.content.lastChild,r=null;for(let a=0;a<A.openEnd;a++)r=n,n=n.lastChild;let i=e.steps.length,s=this.ranges;for(let a=0;a<s.length;a++){let{$from:c,$to:u}=s[a],f=e.mapping.slice(i);e.replaceRange(f.map(c.pos),f.map(u.pos),a?j.empty:A),a==0&&Zh(e,i,(n?n.isInline:r&&r.isTextblock)?-1:1)}}replaceWith(e,A){let n=e.steps.length,r=this.ranges;for(let i=0;i<r.length;i++){let{$from:s,$to:a}=r[i],c=e.mapping.slice(n),u=c.map(s.pos),f=c.map(a.pos);i?e.deleteRange(u,f):(e.replaceRangeWith(u,f,A),Zh(e,n,A.isInline?-1:1))}}static findFrom(e,A,n=!1){let r=e.parent.inlineContent?new ye(e):_i(e.node(0),e.parent,e.pos,e.index(),A,n);if(r)return r;for(let i=e.depth-1;i>=0;i--){let s=A<0?_i(e.node(0),e.node(i),e.before(i+1),e.index(i),A,n):_i(e.node(0),e.node(i),e.after(i+1),e.index(i)+1,A,n);if(s)return s}return null}static near(e,A=1){return this.findFrom(e,A)||this.findFrom(e,-A)||new tn(e.node(0))}static atStart(e){return _i(e,e,0,0,1)||new tn(e)}static atEnd(e){return _i(e,e,e.content.size,e.childCount,-1)||new tn(e)}static fromJSON(e,A){if(!A||!A.type)throw new RangeError("Invalid input for Selection.fromJSON");let n=Sc[A.type];if(!n)throw new RangeError(`No selection type ${A.type} defined`);return n.fromJSON(e,A)}static jsonID(e,A){if(e in Sc)throw new RangeError("Duplicate use of selection JSON ID "+e);return Sc[e]=A,A.prototype.jsonID=e,A}getBookmark(){return ye.between(this.$anchor,this.$head).getBookmark()}}Fe.prototype.visible=!0;class BF{constructor(e,A){this.$from=e,this.$to=A}}let zh=!1;function qh(t){!zh&&!t.parent.inlineContent&&(zh=!0,console.warn("TextSelection endpoint not pointing into a node with inline content ("+t.parent.type.name+")"))}class ye extends Fe{constructor(e,A=e){qh(e),qh(A),super(e,A)}get $cursor(){return this.$anchor.pos==this.$head.pos?this.$head:null}map(e,A){let n=e.resolve(A.map(this.head));if(!n.parent.inlineContent)return Fe.near(n);let r=e.resolve(A.map(this.anchor));return new ye(r.parent.inlineContent?r:n,n)}replace(e,A=j.empty){if(super.replace(e,A),A==j.empty){let n=this.$from.marksAcross(this.$to);n&&e.ensureMarks(n)}}eq(e){return e instanceof ye&&e.anchor==this.anchor&&e.head==this.head}getBookmark(){return new zo(this.anchor,this.head)}toJSON(){return{type:"text",anchor:this.anchor,head:this.head}}static fromJSON(e,A){if(typeof A.anchor!="number"||typeof A.head!="number")throw new RangeError("Invalid input for TextSelection.fromJSON");return new ye(e.resolve(A.anchor),e.resolve(A.head))}static create(e,A,n=A){let r=e.resolve(A);return new this(r,n==A?r:e.resolve(n))}static between(e,A,n){let r=e.pos-A.pos;if((!n||r)&&(n=r>=0?1:-1),!A.parent.inlineContent){let i=Fe.findFrom(A,n,!0)||Fe.findFrom(A,-n,!0);if(i)A=i.$head;else return Fe.near(A,n)}return e.parent.inlineContent||(r==0?e=A:(e=(Fe.findFrom(e,-n,!0)||Fe.findFrom(e,n,!0)).$anchor,e.pos<A.pos!=r<0&&(e=A))),new ye(e,A)}}Fe.jsonID("text",ye);class zo{constructor(e,A){this.anchor=e,this.head=A}map(e){return new zo(e.map(this.anchor),e.map(this.head))}resolve(e){return ye.between(e.resolve(this.anchor),e.resolve(this.head))}}class fe extends Fe{constructor(e){let A=e.nodeAfter,n=e.node(0).resolve(e.pos+A.nodeSize);super(e,n),this.node=A}map(e,A){let{deleted:n,pos:r}=A.mapResult(this.anchor),i=e.resolve(r);return n?Fe.near(i):new fe(i)}content(){return new j(Y.from(this.node),0,0)}eq(e){return e instanceof fe&&e.anchor==this.anchor}toJSON(){return{type:"node",anchor:this.anchor}}getBookmark(){return new Tc(this.anchor)}static fromJSON(e,A){if(typeof A.anchor!="number")throw new RangeError("Invalid input for NodeSelection.fromJSON");return new fe(e.resolve(A.anchor))}static create(e,A){return new fe(e.resolve(A))}static isSelectable(e){return!e.isText&&e.type.spec.selectable!==!1}}fe.prototype.visible=!1,Fe.jsonID("node",fe);class Tc{constructor(e){this.anchor=e}map(e){let{deleted:A,pos:n}=e.mapResult(this.anchor);return A?new zo(n,n):new Tc(n)}resolve(e){let A=e.resolve(this.anchor),n=A.nodeAfter;return n&&fe.isSelectable(n)?new fe(A):Fe.near(A)}}class tn extends Fe{constructor(e){super(e.resolve(0),e.resolve(e.content.size))}replace(e,A=j.empty){if(A==j.empty){e.delete(0,e.doc.content.size);let n=Fe.atStart(e.doc);n.eq(e.selection)||e.setSelection(n)}else super.replace(e,A)}toJSON(){return{type:"all"}}static fromJSON(e){return new tn(e)}map(e){return new tn(e)}eq(e){return e instanceof tn}getBookmark(){return wF}}Fe.jsonID("all",tn);const wF={map(){return this},resolve(t){return new tn(t)}};function _i(t,e,A,n,r,i=!1){if(e.inlineContent)return ye.create(t,A);for(let s=n-(r>0?0:1);r>0?s<e.childCount:s>=0;s+=r){let a=e.child(s);if(a.isAtom){if(!i&&fe.isSelectable(a))return fe.create(t,A-(r<0?a.nodeSize:0))}else{let c=_i(t,a,A+r,r<0?a.childCount:0,r,i);if(c)return c}A+=a.nodeSize*r}return null}function Zh(t,e,A){let n=t.steps.length-1;if(n<e)return;let r=t.steps[n];if(!(r instanceof xA||r instanceof OA))return;let i=t.mapping.maps[n],s;i.forEach((a,c,u,f)=>{s==null&&(s=f)}),t.setSelection(Fe.near(t.doc.resolve(s),A))}const jh=1,qo=2,ep=4;class CF extends mF{constructor(e){super(e.doc),this.curSelectionFor=0,this.updated=0,this.meta=Object.create(null),this.time=Date.now(),this.curSelection=e.selection,this.storedMarks=e.storedMarks}get selection(){return this.curSelectionFor<this.steps.length&&(this.curSelection=this.curSelection.map(this.doc,this.mapping.slice(this.curSelectionFor)),this.curSelectionFor=this.steps.length),this.curSelection}setSelection(e){if(e.$from.doc!=this.doc)throw new RangeError("Selection passed to setSelection must point at the current document");return this.curSelection=e,this.curSelectionFor=this.steps.length,this.updated=(this.updated|jh)&~qo,this.storedMarks=null,this}get selectionSet(){return(this.updated&jh)>0}setStoredMarks(e){return this.storedMarks=e,this.updated|=qo,this}ensureMarks(e){return je.sameSet(this.storedMarks||this.selection.$from.marks(),e)||this.setStoredMarks(e),this}addStoredMark(e){return this.ensureMarks(e.addToSet(this.storedMarks||this.selection.$head.marks()))}removeStoredMark(e){return this.ensureMarks(e.removeFromSet(this.storedMarks||this.selection.$head.marks()))}get storedMarksSet(){return(this.updated&qo)>0}addStep(e,A){super.addStep(e,A),this.updated=this.updated&~qo,this.storedMarks=null}setTime(e){return this.time=e,this}replaceSelection(e){return this.selection.replace(this,e),this}replaceSelectionWith(e,A=!0){let n=this.selection;return A&&(e=e.mark(this.storedMarks||(n.empty?n.$from.marks():n.$from.marksAcross(n.$to)||je.none))),n.replaceWith(this,e),this}deleteSelection(){return this.selection.replace(this),this}insertText(e,A,n){let r=this.doc.type.schema;if(A==null)return e?this.replaceSelectionWith(r.text(e),!0):this.deleteSelection();{if(n==null&&(n=A),n=n??A,!e)return this.deleteRange(A,n);let i=this.storedMarks;if(!i){let s=this.doc.resolve(A);i=n==A?s.marks():s.marksAcross(this.doc.resolve(n))}return this.replaceRangeWith(A,n,r.text(e,i)),this.selection.empty||this.setSelection(Fe.near(this.selection.$to)),this}}setMeta(e,A){return this.meta[typeof e=="string"?e:e.key]=A,this}getMeta(e){return this.meta[typeof e=="string"?e:e.key]}get isGeneric(){for(let e in this.meta)return!1;return!0}scrollIntoView(){return this.updated|=ep,this}get scrolledIntoView(){return(this.updated&ep)>0}}function Ap(t,e){return!e||!t?t:t.bind(e)}class Ss{constructor(e,A,n){this.name=e,this.init=Ap(A.init,n),this.apply=Ap(A.apply,n)}}const yF=[new Ss("doc",{init(t){return t.doc||t.schema.topNodeType.createAndFill()},apply(t){return t.doc}}),new Ss("selection",{init(t,e){return t.selection||Fe.atStart(e.doc)},apply(t){return t.selection}}),new Ss("storedMarks",{init(t){return t.storedMarks||null},apply(t,e,A,n){return n.selection.$cursor?t.storedMarks:null}}),new Ss("scrollToSelection",{init(){return 0},apply(t,e){return t.scrolledIntoView?e+1:e}})];class _c{constructor(e,A){this.schema=e,this.plugins=[],this.pluginsByKey=Object.create(null),this.fields=yF.slice(),A&&A.forEach(n=>{if(this.pluginsByKey[n.key])throw new RangeError("Adding different instances of a keyed plugin ("+n.key+")");this.plugins.push(n),this.pluginsByKey[n.key]=n,n.spec.state&&this.fields.push(new Ss(n.key,n.spec.state,n))})}}class xi{constructor(e){this.config=e}get schema(){return this.config.schema}get plugins(){return this.config.plugins}apply(e){return this.applyTransaction(e).state}filterTransaction(e,A=-1){for(let n=0;n<this.config.plugins.length;n++)if(n!=A){let r=this.config.plugins[n];if(r.spec.filterTransaction&&!r.spec.filterTransaction.call(r,e,this))return!1}return!0}applyTransaction(e){if(!this.filterTransaction(e))return{state:this,transactions:[]};let A=[e],n=this.applyInner(e),r=null;for(;;){let i=!1;for(let s=0;s<this.config.plugins.length;s++){let a=this.config.plugins[s];if(a.spec.appendTransaction){let c=r?r[s].n:0,u=r?r[s].state:this,f=c<A.length&&a.spec.appendTransaction.call(a,c?A.slice(c):A,u,n);if(f&&n.filterTransaction(f,s)){if(f.setMeta("appendedTransaction",e),!r){r=[];for(let p=0;p<this.config.plugins.length;p++)r.push(p<s?{state:n,n:A.length}:{state:this,n:0})}A.push(f),n=n.applyInner(f),i=!0}r&&(r[s]={state:n,n:A.length})}}if(!i)return{state:n,transactions:A}}}applyInner(e){if(!e.before.eq(this.doc))throw new RangeError("Applying a mismatched transaction");let A=new xi(this.config),n=this.config.fields;for(let r=0;r<n.length;r++){let i=n[r];A[i.name]=i.apply(e,this[i.name],this,A)}return A}get tr(){return new CF(this)}static create(e){let A=new _c(e.doc?e.doc.type.schema:e.schema,e.plugins),n=new xi(A);for(let r=0;r<A.fields.length;r++)n[A.fields[r].name]=A.fields[r].init(e,n);return n}reconfigure(e){let A=new _c(this.schema,e.plugins),n=A.fields,r=new xi(A);for(let i=0;i<n.length;i++){let s=n[i].name;r[s]=this.hasOwnProperty(s)?this[s]:n[i].init(e,r)}return r}toJSON(e){let A={doc:this.doc.toJSON(),selection:this.selection.toJSON()};if(this.storedMarks&&(A.storedMarks=this.storedMarks.map(n=>n.toJSON())),e&&typeof e=="object")for(let n in e){if(n=="doc"||n=="selection")throw new RangeError("The JSON fields `doc` and `selection` are reserved");let r=e[n],i=r.spec.state;i&&i.toJSON&&(A[n]=i.toJSON.call(r,this[r.key]))}return A}static fromJSON(e,A,n){if(!A)throw new RangeError("Invalid input for EditorState.fromJSON");if(!e.schema)throw new RangeError("Required config field 'schema' missing");let r=new _c(e.schema,e.plugins),i=new xi(r);return r.fields.forEach(s=>{if(s.name=="doc")i.doc=$r.fromJSON(e.schema,A.doc);else if(s.name=="selection")i.selection=Fe.fromJSON(i.doc,A.selection);else if(s.name=="storedMarks")A.storedMarks&&(i.storedMarks=A.storedMarks.map(e.schema.markFromJSON));else{if(n)for(let a in n){let c=n[a],u=c.spec.state;if(c.key==s.name&&u&&u.fromJSON&&Object.prototype.hasOwnProperty.call(A,a)){i[s.name]=u.fromJSON.call(c,e,A[a],i);return}}i[s.name]=s.init(e,i)}}),i}}function tp(t,e,A){for(let n in t){let r=t[n];r instanceof Function?r=r.bind(e):n=="handleDOMEvents"&&(r=tp(r,e,{})),A[n]=r}return A}class pt{constructor(e){this.spec=e,this.props={},e.props&&tp(e.props,this,this.props),this.key=e.key?e.key.key:np("plugin")}getState(e){return e[this.key]}}const xc=Object.create(null);function np(t){return t in xc?t+"$"+ ++xc[t]:(xc[t]=0,t+"$")}class wn{constructor(e="key"){this.key=np(e)}get(e){return e.config.pluginsByKey[this.key]}getState(e){return e[this.key]}}const RA=function(t){for(var e=0;;e++)if(t=t.previousSibling,!t)return e},Ts=function(t){let e=t.assignedSlot||t.parentNode;return e&&e.nodeType==11?e.host:e};let Oc=null;const Ln=function(t,e,A){let n=Oc||(Oc=document.createRange());return n.setEnd(t,A??t.nodeValue.length),n.setStart(t,e||0),n},EF=function(){Oc=null},Jr=function(t,e,A,n){return A&&(rp(t,e,A,n,-1)||rp(t,e,A,n,1))},QF=/^(img|br|input|textarea|hr)$/i;function rp(t,e,A,n,r){for(;;){if(t==A&&e==n)return!0;if(e==(r<0?0:Cn(t))){let i=t.parentNode;if(!i||i.nodeType!=1||_s(t)||QF.test(t.nodeName)||t.contentEditable=="false")return!1;e=RA(t)+(r<0?0:1),t=i}else if(t.nodeType==1){if(t=t.childNodes[e+(r<0?-1:0)],t.contentEditable=="false")return!1;e=r<0?Cn(t):0}else return!1}}function Cn(t){return t.nodeType==3?t.nodeValue.length:t.childNodes.length}function FF(t,e){for(;;){if(t.nodeType==3&&e)return t;if(t.nodeType==1&&e>0){if(t.contentEditable=="false")return null;t=t.childNodes[e-1],e=Cn(t)}else if(t.parentNode&&!_s(t))e=RA(t),t=t.parentNode;else return null}}function bF(t,e){for(;;){if(t.nodeType==3&&e<t.nodeValue.length)return t;if(t.nodeType==1&&e<t.childNodes.length){if(t.contentEditable=="false")return null;t=t.childNodes[e],e=0}else if(t.parentNode&&!_s(t))e=RA(t)+1,t=t.parentNode;else return null}}function UF(t,e,A){for(let n=e==0,r=e==Cn(t);n||r;){if(t==A)return!0;let i=RA(t);if(t=t.parentNode,!t)return!1;n=n&&i==0,r=r&&i==Cn(t)}}function _s(t){let e;for(let A=t;A&&!(e=A.pmViewDesc);A=A.parentNode);return e&&e.node&&e.node.isBlock&&(e.dom==t||e.contentDOM==t)}const Zo=function(t){return t.focusNode&&Jr(t.focusNode,t.focusOffset,t.anchorNode,t.anchorOffset)};function Xr(t,e){let A=document.createEvent("Event");return A.initEvent("keydown",!0,!0),A.keyCode=t,A.key=A.code=e,A}function vF(t){let e=t.activeElement;for(;e&&e.shadowRoot;)e=e.shadowRoot.activeElement;return e}function IF(t,e,A){if(t.caretPositionFromPoint)try{let n=t.caretPositionFromPoint(e,A);if(n)return{node:n.offsetNode,offset:n.offset}}catch{}if(t.caretRangeFromPoint){let n=t.caretRangeFromPoint(e,A);if(n)return{node:n.startContainer,offset:n.startOffset}}}const yn=typeof navigator<"u"?navigator:null,ip=typeof document<"u"?document:null,lr=yn&&yn.userAgent||"",Lc=/Edge\/(\d+)/.exec(lr),sp=/MSIE \d/.exec(lr),kc=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(lr),gt=!!(sp||kc||Lc),cr=sp?document.documentMode:kc?+kc[1]:Lc?+Lc[1]:0,nn=!gt&&/gecko\/(\d+)/i.test(lr);nn&&+(/Firefox\/(\d+)/.exec(lr)||[0,0])[1];const Hc=!gt&&/Chrome\/(\d+)/.exec(lr),nt=!!Hc,SF=Hc?+Hc[1]:0,rt=!gt&&!!yn&&/Apple Computer/.test(yn.vendor),Oi=rt&&(/Mobile\/\w+/.test(lr)||!!yn&&yn.maxTouchPoints>2),Mt=Oi||(yn?/Mac/.test(yn.platform):!1),TF=yn?/Win/.test(yn.platform):!1,rn=/Android \d/.test(lr),xs=!!ip&&"webkitFontSmoothing"in ip.documentElement.style,_F=xs?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0;function xF(t){let e=t.defaultView&&t.defaultView.visualViewport;return e?{left:0,right:e.width,top:0,bottom:e.height}:{left:0,right:t.documentElement.clientWidth,top:0,bottom:t.documentElement.clientHeight}}function kn(t,e){return typeof t=="number"?t:t[e]}function OF(t){let e=t.getBoundingClientRect(),A=e.width/t.offsetWidth||1,n=e.height/t.offsetHeight||1;return{left:e.left,right:e.left+t.clientWidth*A,top:e.top,bottom:e.top+t.clientHeight*n}}function op(t,e,A){let n=t.someProp("scrollThreshold")||0,r=t.someProp("scrollMargin")||5,i=t.dom.ownerDocument;for(let s=A||t.dom;s;s=Ts(s)){if(s.nodeType!=1)continue;let a=s,c=a==i.body,u=c?xF(i):OF(a),f=0,p=0;if(e.top<u.top+kn(n,"top")?p=-(u.top-e.top+kn(r,"top")):e.bottom>u.bottom-kn(n,"bottom")&&(p=e.bottom-e.top>u.bottom-u.top?e.top+kn(r,"top")-u.top:e.bottom-u.bottom+kn(r,"bottom")),e.left<u.left+kn(n,"left")?f=-(u.left-e.left+kn(r,"left")):e.right>u.right-kn(n,"right")&&(f=e.right-u.right+kn(r,"right")),f||p)if(c)i.defaultView.scrollBy(f,p);else{let g=a.scrollLeft,B=a.scrollTop;p&&(a.scrollTop+=p),f&&(a.scrollLeft+=f);let w=a.scrollLeft-g,Q=a.scrollTop-B;e={left:e.left-w,top:e.top-Q,right:e.right-w,bottom:e.bottom-Q}}if(c||/^(fixed|sticky)$/.test(getComputedStyle(s).position))break}}function LF(t){let e=t.dom.getBoundingClientRect(),A=Math.max(0,e.top),n,r;for(let i=(e.left+e.right)/2,s=A+1;s<Math.min(innerHeight,e.bottom);s+=5){let a=t.root.elementFromPoint(i,s);if(!a||a==t.dom||!t.dom.contains(a))continue;let c=a.getBoundingClientRect();if(c.top>=A-20){n=a,r=c.top;break}}return{refDOM:n,refTop:r,stack:ap(t.dom)}}function ap(t){let e=[],A=t.ownerDocument;for(let n=t;n&&(e.push({dom:n,top:n.scrollTop,left:n.scrollLeft}),t!=A);n=Ts(n));return e}function kF({refDOM:t,refTop:e,stack:A}){let n=t?t.getBoundingClientRect().top:0;lp(A,n==0?0:n-e)}function lp(t,e){for(let A=0;A<t.length;A++){let{dom:n,top:r,left:i}=t[A];n.scrollTop!=r+e&&(n.scrollTop=r+e),n.scrollLeft!=i&&(n.scrollLeft=i)}}let Li=null;function HF(t){if(t.setActive)return t.setActive();if(Li)return t.focus(Li);let e=ap(t);t.focus(Li==null?{get preventScroll(){return Li={preventScroll:!0},!0}}:void 0),Li||(Li=!1,lp(e,0))}function cp(t,e){let A,n=2e8,r,i=0,s=e.top,a=e.top,c,u;for(let f=t.firstChild,p=0;f;f=f.nextSibling,p++){let g;if(f.nodeType==1)g=f.getClientRects();else if(f.nodeType==3)g=Ln(f).getClientRects();else continue;for(let B=0;B<g.length;B++){let w=g[B];if(w.top<=s&&w.bottom>=a){s=Math.max(w.bottom,s),a=Math.min(w.top,a);let Q=w.left>e.left?w.left-e.left:w.right<e.left?e.left-w.right:0;if(Q<n){A=f,n=Q,r=Q&&A.nodeType==3?{left:w.right<e.left?w.right:w.left,top:e.top}:e,f.nodeType==1&&Q&&(i=p+(e.left>=(w.left+w.right)/2?1:0));continue}}else w.top>e.top&&!c&&w.left<=e.left&&w.right>=e.left&&(c=f,u={left:Math.max(w.left,Math.min(w.right,e.left)),top:w.top});!A&&(e.left>=w.right&&e.top>=w.top||e.left>=w.left&&e.top>=w.bottom)&&(i=p+1)}}return!A&&c&&(A=c,r=u,n=0),A&&A.nodeType==3?NF(A,r):!A||n&&A.nodeType==1?{node:t,offset:i}:cp(A,r)}function NF(t,e){let A=t.nodeValue.length,n=document.createRange();for(let r=0;r<A;r++){n.setEnd(t,r+1),n.setStart(t,r);let i=ur(n,1);if(i.top!=i.bottom&&Nc(e,i))return{node:t,offset:r+(e.left>=(i.left+i.right)/2?1:0)}}return{node:t,offset:0}}function Nc(t,e){return t.left>=e.left-1&&t.left<=e.right+1&&t.top>=e.top-1&&t.top<=e.bottom+1}function DF(t,e){let A=t.parentNode;return A&&/^li$/i.test(A.nodeName)&&e.left<t.getBoundingClientRect().left?A:t}function MF(t,e,A){let{node:n,offset:r}=cp(e,A),i=-1;if(n.nodeType==1&&!n.firstChild){let s=n.getBoundingClientRect();i=s.left!=s.right&&A.left>(s.left+s.right)/2?1:-1}return t.docView.posFromDOM(n,r,i)}function RF(t,e,A,n){let r=-1;for(let i=e,s=!1;i!=t.dom;){let a=t.docView.nearestDesc(i,!0);if(!a)return null;if(a.dom.nodeType==1&&(a.node.isBlock&&a.parent||!a.contentDOM)){let c=a.dom.getBoundingClientRect();if(a.node.isBlock&&a.parent&&(!s&&c.left>n.left||c.top>n.top?r=a.posBefore:(!s&&c.right<n.left||c.bottom<n.top)&&(r=a.posAfter),s=!0),!a.contentDOM&&r<0&&!a.node.isText)return(a.node.isBlock?n.top<(c.top+c.bottom)/2:n.left<(c.left+c.right)/2)?a.posBefore:a.posAfter}i=a.dom.parentNode}return r>-1?r:t.docView.posFromDOM(e,A,-1)}function up(t,e,A){let n=t.childNodes.length;if(n&&A.top<A.bottom)for(let r=Math.max(0,Math.min(n-1,Math.floor(n*(e.top-A.top)/(A.bottom-A.top))-2)),i=r;;){let s=t.childNodes[i];if(s.nodeType==1){let a=s.getClientRects();for(let c=0;c<a.length;c++){let u=a[c];if(Nc(e,u))return up(s,e,u)}}if((i=(i+1)%n)==r)break}return t}function KF(t,e){let A=t.dom.ownerDocument,n,r=0,i=IF(A,e.left,e.top);i&&({node:n,offset:r}=i);let s=(t.root.elementFromPoint?t.root:A).elementFromPoint(e.left,e.top),a;if(!s||!t.dom.contains(s.nodeType!=1?s.parentNode:s)){let u=t.dom.getBoundingClientRect();if(!Nc(e,u)||(s=up(t.dom,e,u),!s))return null}if(rt)for(let u=s;n&&u;u=Ts(u))u.draggable&&(n=void 0);if(s=DF(s,e),n){if(nn&&n.nodeType==1&&(r=Math.min(r,n.childNodes.length),r<n.childNodes.length)){let f=n.childNodes[r],p;f.nodeName=="IMG"&&(p=f.getBoundingClientRect()).right<=e.left&&p.bottom>e.top&&r++}let u;xs&&r&&n.nodeType==1&&(u=n.childNodes[r-1]).nodeType==1&&u.contentEditable=="false"&&u.getBoundingClientRect().top>=e.top&&r--,n==t.dom&&r==n.childNodes.length-1&&n.lastChild.nodeType==1&&e.top>n.lastChild.getBoundingClientRect().bottom?a=t.state.doc.content.size:(r==0||n.nodeType!=1||n.childNodes[r-1].nodeName!="BR")&&(a=RF(t,n,r,e))}a==null&&(a=MF(t,s,e));let c=t.docView.nearestDesc(s,!0);return{pos:a,inside:c?c.posAtStart-c.border:-1}}function fp(t){return t.top<t.bottom||t.left<t.right}function ur(t,e){let A=t.getClientRects();if(A.length){let n=A[e<0?0:A.length-1];if(fp(n))return n}return Array.prototype.find.call(A,fp)||t.getBoundingClientRect()}const VF=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;function dp(t,e,A){let{node:n,offset:r,atom:i}=t.docView.domFromPos(e,A<0?-1:1),s=xs||nn;if(n.nodeType==3)if(s&&(VF.test(n.nodeValue)||(A<0?!r:r==n.nodeValue.length))){let c=ur(Ln(n,r,r),A);if(nn&&r&&/\s/.test(n.nodeValue[r-1])&&r<n.nodeValue.length){let u=ur(Ln(n,r-1,r-1),-1);if(u.top==c.top){let f=ur(Ln(n,r,r+1),-1);if(f.top!=c.top)return Os(f,f.left<u.left)}}return c}else{let c=r,u=r,f=A<0?1:-1;return A<0&&!r?(u++,f=-1):A>=0&&r==n.nodeValue.length?(c--,f=1):A<0?c--:u++,Os(ur(Ln(n,c,u),f),f<0)}if(!t.state.doc.resolve(e-(i||0)).parent.inlineContent){if(i==null&&r&&(A<0||r==Cn(n))){let c=n.childNodes[r-1];if(c.nodeType==1)return Dc(c.getBoundingClientRect(),!1)}if(i==null&&r<Cn(n)){let c=n.childNodes[r];if(c.nodeType==1)return Dc(c.getBoundingClientRect(),!0)}return Dc(n.getBoundingClientRect(),A>=0)}if(i==null&&r&&(A<0||r==Cn(n))){let c=n.childNodes[r-1],u=c.nodeType==3?Ln(c,Cn(c)-(s?0:1)):c.nodeType==1&&(c.nodeName!="BR"||!c.nextSibling)?c:null;if(u)return Os(ur(u,1),!1)}if(i==null&&r<Cn(n)){let c=n.childNodes[r];for(;c.pmViewDesc&&c.pmViewDesc.ignoreForCoords;)c=c.nextSibling;let u=c?c.nodeType==3?Ln(c,0,s?0:1):c.nodeType==1?c:null:null;if(u)return Os(ur(u,-1),!0)}return Os(ur(n.nodeType==3?Ln(n):n,-A),A>=0)}function Os(t,e){if(t.width==0)return t;let A=e?t.left:t.right;return{top:t.top,bottom:t.bottom,left:A,right:A}}function Dc(t,e){if(t.height==0)return t;let A=e?t.top:t.bottom;return{top:A,bottom:A,left:t.left,right:t.right}}function hp(t,e,A){let n=t.state,r=t.root.activeElement;n!=e&&t.updateState(e),r!=t.dom&&t.focus();try{return A()}finally{n!=e&&t.updateState(n),r!=t.dom&&r&&r.focus()}}function PF(t,e,A){let n=e.selection,r=A=="up"?n.$from:n.$to;return hp(t,e,()=>{let{node:i}=t.docView.domFromPos(r.pos,A=="up"?-1:1);for(;;){let a=t.docView.nearestDesc(i,!0);if(!a)break;if(a.node.isBlock){i=a.contentDOM||a.dom;break}i=a.dom.parentNode}let s=dp(t,r.pos,1);for(let a=i.firstChild;a;a=a.nextSibling){let c;if(a.nodeType==1)c=a.getClientRects();else if(a.nodeType==3)c=Ln(a,0,a.nodeValue.length).getClientRects();else continue;for(let u=0;u<c.length;u++){let f=c[u];if(f.bottom>f.top+1&&(A=="up"?s.top-f.top>(f.bottom-s.top)*2:f.bottom-s.bottom>(s.bottom-f.top)*2))return!1}}return!0})}const GF=/[\u0590-\u08ac]/;function $F(t,e,A){let{$head:n}=e.selection;if(!n.parent.isTextblock)return!1;let r=n.parentOffset,i=!r,s=r==n.parent.content.size,a=t.domSelection();return!GF.test(n.parent.textContent)||!a.modify?A=="left"||A=="backward"?i:s:hp(t,e,()=>{let{focusNode:c,focusOffset:u,anchorNode:f,anchorOffset:p}=t.domSelectionRange(),g=a.caretBidiLevel;a.modify("move",A,"character");let B=n.depth?t.docView.domAfterPos(n.before()):t.dom,{focusNode:w,focusOffset:Q}=t.domSelectionRange(),b=w&&!B.contains(w.nodeType==1?w:w.parentNode)||c==w&&u==Q;try{a.collapse(f,p),c&&(c!=f||u!=p)&&a.extend&&a.extend(c,u)}catch{}return g!=null&&(a.caretBidiLevel=g),b})}let pp=null,gp=null,mp=!1;function WF(t,e,A){return pp==e&&gp==A?mp:(pp=e,gp=A,mp=A=="up"||A=="down"?PF(t,e,A):$F(t,e,A))}const Rt=0,Bp=1,Yr=2,En=3;class Ls{constructor(e,A,n,r){this.parent=e,this.children=A,this.dom=n,this.contentDOM=r,this.dirty=Rt,n.pmViewDesc=this}matchesWidget(e){return!1}matchesMark(e){return!1}matchesNode(e,A,n){return!1}matchesHack(e){return!1}parseRule(){return null}stopEvent(e){return!1}get size(){let e=0;for(let A=0;A<this.children.length;A++)e+=this.children[A].size;return e}get border(){return 0}destroy(){this.parent=void 0,this.dom.pmViewDesc==this&&(this.dom.pmViewDesc=void 0);for(let e=0;e<this.children.length;e++)this.children[e].destroy()}posBeforeChild(e){for(let A=0,n=this.posAtStart;;A++){let r=this.children[A];if(r==e)return n;n+=r.size}}get posBefore(){return this.parent.posBeforeChild(this)}get posAtStart(){return this.parent?this.parent.posBeforeChild(this)+this.border:0}get posAfter(){return this.posBefore+this.size}get posAtEnd(){return this.posAtStart+this.size-2*this.border}localPosFromDOM(e,A,n){if(this.contentDOM&&this.contentDOM.contains(e.nodeType==1?e:e.parentNode))if(n<0){let i,s;if(e==this.contentDOM)i=e.childNodes[A-1];else{for(;e.parentNode!=this.contentDOM;)e=e.parentNode;i=e.previousSibling}for(;i&&!((s=i.pmViewDesc)&&s.parent==this);)i=i.previousSibling;return i?this.posBeforeChild(s)+s.size:this.posAtStart}else{let i,s;if(e==this.contentDOM)i=e.childNodes[A];else{for(;e.parentNode!=this.contentDOM;)e=e.parentNode;i=e.nextSibling}for(;i&&!((s=i.pmViewDesc)&&s.parent==this);)i=i.nextSibling;return i?this.posBeforeChild(s):this.posAtEnd}let r;if(e==this.dom&&this.contentDOM)r=A>RA(this.contentDOM);else if(this.contentDOM&&this.contentDOM!=this.dom&&this.dom.contains(this.contentDOM))r=e.compareDocumentPosition(this.contentDOM)&2;else if(this.dom.firstChild){if(A==0)for(let i=e;;i=i.parentNode){if(i==this.dom){r=!1;break}if(i.previousSibling)break}if(r==null&&A==e.childNodes.length)for(let i=e;;i=i.parentNode){if(i==this.dom){r=!0;break}if(i.nextSibling)break}}return r??n>0?this.posAtEnd:this.posAtStart}nearestDesc(e,A=!1){for(let n=!0,r=e;r;r=r.parentNode){let i=this.getDesc(r),s;if(i&&(!A||i.node))if(n&&(s=i.nodeDOM)&&!(s.nodeType==1?s.contains(e.nodeType==1?e:e.parentNode):s==e))n=!1;else return i}}getDesc(e){let A=e.pmViewDesc;for(let n=A;n;n=n.parent)if(n==this)return A}posFromDOM(e,A,n){for(let r=e;r;r=r.parentNode){let i=this.getDesc(r);if(i)return i.localPosFromDOM(e,A,n)}return-1}descAt(e){for(let A=0,n=0;A<this.children.length;A++){let r=this.children[A],i=n+r.size;if(n==e&&i!=n){for(;!r.border&&r.children.length;)r=r.children[0];return r}if(e<i)return r.descAt(e-n-r.border);n=i}}domFromPos(e,A){if(!this.contentDOM)return{node:this.dom,offset:0,atom:e+1};let n=0,r=0;for(let i=0;n<this.children.length;n++){let s=this.children[n],a=i+s.size;if(a>e||s instanceof yp){r=e-i;break}i=a}if(r)return this.children[n].domFromPos(r-this.children[n].border,A);for(let i;n&&!(i=this.children[n-1]).size&&i instanceof wp&&i.side>=0;n--);if(A<=0){let i,s=!0;for(;i=n?this.children[n-1]:null,!(!i||i.dom.parentNode==this.contentDOM);n--,s=!1);return i&&A&&s&&!i.border&&!i.domAtom?i.domFromPos(i.size,A):{node:this.contentDOM,offset:i?RA(i.dom)+1:0}}else{let i,s=!0;for(;i=n<this.children.length?this.children[n]:null,!(!i||i.dom.parentNode==this.contentDOM);n++,s=!1);return i&&s&&!i.border&&!i.domAtom?i.domFromPos(0,A):{node:this.contentDOM,offset:i?RA(i.dom):this.contentDOM.childNodes.length}}}parseRange(e,A,n=0){if(this.children.length==0)return{node:this.contentDOM,from:e,to:A,fromOffset:0,toOffset:this.contentDOM.childNodes.length};let r=-1,i=-1;for(let s=n,a=0;;a++){let c=this.children[a],u=s+c.size;if(r==-1&&e<=u){let f=s+c.border;if(e>=f&&A<=u-c.border&&c.node&&c.contentDOM&&this.contentDOM.contains(c.contentDOM))return c.parseRange(e,A,f);e=s;for(let p=a;p>0;p--){let g=this.children[p-1];if(g.size&&g.dom.parentNode==this.contentDOM&&!g.emptyChildAt(1)){r=RA(g.dom)+1;break}e-=g.size}r==-1&&(r=0)}if(r>-1&&(u>A||a==this.children.length-1)){A=u;for(let f=a+1;f<this.children.length;f++){let p=this.children[f];if(p.size&&p.dom.parentNode==this.contentDOM&&!p.emptyChildAt(-1)){i=RA(p.dom);break}A+=p.size}i==-1&&(i=this.contentDOM.childNodes.length);break}s=u}return{node:this.contentDOM,from:e,to:A,fromOffset:r,toOffset:i}}emptyChildAt(e){if(this.border||!this.contentDOM||!this.children.length)return!1;let A=this.children[e<0?0:this.children.length-1];return A.size==0||A.emptyChildAt(e)}domAfterPos(e){let{node:A,offset:n}=this.domFromPos(e,0);if(A.nodeType!=1||n==A.childNodes.length)throw new RangeError("No node after pos "+e);return A.childNodes[n]}setSelection(e,A,n,r=!1){let i=Math.min(e,A),s=Math.max(e,A);for(let g=0,B=0;g<this.children.length;g++){let w=this.children[g],Q=B+w.size;if(i>B&&s<Q)return w.setSelection(e-B-w.border,A-B-w.border,n,r);B=Q}let a=this.domFromPos(e,e?-1:1),c=A==e?a:this.domFromPos(A,A?-1:1),u=n.getSelection(),f=!1;if((nn||rt)&&e==A){let{node:g,offset:B}=a;if(g.nodeType==3){if(f=!!(B&&g.nodeValue[B-1]==`
10
- `),f&&B==g.nodeValue.length)for(let w=g,Q;w;w=w.parentNode){if(Q=w.nextSibling){Q.nodeName=="BR"&&(a=c={node:Q.parentNode,offset:RA(Q)+1});break}let b=w.pmViewDesc;if(b&&b.node&&b.node.isBlock)break}}else{let w=g.childNodes[B-1];f=w&&(w.nodeName=="BR"||w.contentEditable=="false")}}if(nn&&u.focusNode&&u.focusNode!=c.node&&u.focusNode.nodeType==1){let g=u.focusNode.childNodes[u.focusOffset];g&&g.contentEditable=="false"&&(r=!0)}if(!(r||f&&rt)&&Jr(a.node,a.offset,u.anchorNode,u.anchorOffset)&&Jr(c.node,c.offset,u.focusNode,u.focusOffset))return;let p=!1;if((u.extend||e==A)&&!f){u.collapse(a.node,a.offset);try{e!=A&&u.extend(c.node,c.offset),p=!0}catch{}}if(!p){if(e>A){let B=a;a=c,c=B}let g=document.createRange();g.setEnd(c.node,c.offset),g.setStart(a.node,a.offset),u.removeAllRanges(),u.addRange(g)}}ignoreMutation(e){return!this.contentDOM&&e.type!="selection"}get contentLost(){return this.contentDOM&&this.contentDOM!=this.dom&&!this.dom.contains(this.contentDOM)}markDirty(e,A){for(let n=0,r=0;r<this.children.length;r++){let i=this.children[r],s=n+i.size;if(n==s?e<=s&&A>=n:e<s&&A>n){let a=n+i.border,c=s-i.border;if(e>=a&&A<=c){this.dirty=e==n||A==s?Yr:Bp,e==a&&A==c&&(i.contentLost||i.dom.parentNode!=this.contentDOM)?i.dirty=En:i.markDirty(e-a,A-a);return}else i.dirty=i.dom==i.contentDOM&&i.dom.parentNode==this.contentDOM&&!i.children.length?Yr:En}n=s}this.dirty=Yr}markParentsDirty(){let e=1;for(let A=this.parent;A;A=A.parent,e++){let n=e==1?Yr:Bp;A.dirty<n&&(A.dirty=n)}}get domAtom(){return!1}get ignoreForCoords(){return!1}isText(e){return!1}}class wp extends Ls{constructor(e,A,n,r){let i,s=A.type.toDOM;if(typeof s=="function"&&(s=s(n,()=>{if(!i)return r;if(i.parent)return i.parent.posBeforeChild(i)})),!A.type.spec.raw){if(s.nodeType!=1){let a=document.createElement("span");a.appendChild(s),s=a}s.contentEditable="false",s.classList.add("ProseMirror-widget")}super(e,[],s,null),this.widget=A,this.widget=A,i=this}matchesWidget(e){return this.dirty==Rt&&e.type.eq(this.widget.type)}parseRule(){return{ignore:!0}}stopEvent(e){let A=this.widget.spec.stopEvent;return A?A(e):!1}ignoreMutation(e){return e.type!="selection"||this.widget.spec.ignoreSelection}destroy(){this.widget.type.destroy(this.dom),super.destroy()}get domAtom(){return!0}get side(){return this.widget.type.side}}class JF extends Ls{constructor(e,A,n,r){super(e,[],A,null),this.textDOM=n,this.text=r}get size(){return this.text.length}localPosFromDOM(e,A){return e!=this.textDOM?this.posAtStart+(A?this.size:0):this.posAtStart+A}domFromPos(e){return{node:this.textDOM,offset:e}}ignoreMutation(e){return e.type==="characterData"&&e.target.nodeValue==e.oldValue}}class zr extends Ls{constructor(e,A,n,r){super(e,[],n,r),this.mark=A}static create(e,A,n,r){let i=r.nodeViews[A.type.name],s=i&&i(A,r,n);return(!s||!s.dom)&&(s=mn.renderSpec(document,A.type.spec.toDOM(A,n))),new zr(e,A,s.dom,s.contentDOM||s.dom)}parseRule(){return this.dirty&En||this.mark.type.spec.reparseInView?null:{mark:this.mark.type.name,attrs:this.mark.attrs,contentElement:this.contentDOM}}matchesMark(e){return this.dirty!=En&&this.mark.eq(e)}markDirty(e,A){if(super.markDirty(e,A),this.dirty!=Rt){let n=this.parent;for(;!n.node;)n=n.parent;n.dirty<this.dirty&&(n.dirty=this.dirty),this.dirty=Rt}}slice(e,A,n){let r=zr.create(this.parent,this.mark,!0,n),i=this.children,s=this.size;A<s&&(i=Kc(i,A,s,n)),e>0&&(i=Kc(i,0,e,n));for(let a=0;a<i.length;a++)i[a].parent=r;return r.children=i,r}}class fr extends Ls{constructor(e,A,n,r,i,s,a,c,u){super(e,[],i,s),this.node=A,this.outerDeco=n,this.innerDeco=r,this.nodeDOM=a}static create(e,A,n,r,i,s){let a=i.nodeViews[A.type.name],c,u=a&&a(A,i,()=>{if(!c)return s;if(c.parent)return c.parent.posBeforeChild(c)},n,r),f=u&&u.dom,p=u&&u.contentDOM;if(A.isText){if(!f)f=document.createTextNode(A.text);else if(f.nodeType!=3)throw new RangeError("Text must be rendered as a DOM text node")}else f||({dom:f,contentDOM:p}=mn.renderSpec(document,A.type.spec.toDOM(A)));!p&&!A.isText&&f.nodeName!="BR"&&(f.hasAttribute("contenteditable")||(f.contentEditable="false"),A.type.spec.draggable&&(f.draggable=!0));let g=f;return f=Fp(f,n,A),u?c=new XF(e,A,n,r,f,p||null,g,u,i,s+1):A.isText?new jo(e,A,n,r,f,g,i):new fr(e,A,n,r,f,p||null,g,i,s+1)}parseRule(){if(this.node.type.spec.reparseInView)return null;let e={node:this.node.type.name,attrs:this.node.attrs};if(this.node.type.whitespace=="pre"&&(e.preserveWhitespace="full"),!this.contentDOM)e.getContent=()=>this.node.content;else if(!this.contentLost)e.contentElement=this.contentDOM;else{for(let A=this.children.length-1;A>=0;A--){let n=this.children[A];if(this.dom.contains(n.dom.parentNode)){e.contentElement=n.dom.parentNode;break}}e.contentElement||(e.getContent=()=>Y.empty)}return e}matchesNode(e,A,n){return this.dirty==Rt&&e.eq(this.node)&&Rc(A,this.outerDeco)&&n.eq(this.innerDeco)}get size(){return this.node.nodeSize}get border(){return this.node.isLeaf?0:1}updateChildren(e,A){let n=this.node.inlineContent,r=A,i=e.composing?this.localCompositionInfo(e,A):null,s=i&&i.pos>-1?i:null,a=i&&i.pos<0,c=new zF(this,s&&s.node,e);jF(this.node,this.innerDeco,(u,f,p)=>{u.spec.marks?c.syncToMarks(u.spec.marks,n,e):u.type.side>=0&&!p&&c.syncToMarks(f==this.node.childCount?je.none:this.node.child(f).marks,n,e),c.placeWidget(u,e,r)},(u,f,p,g)=>{c.syncToMarks(u.marks,n,e);let B;c.findNodeMatch(u,f,p,g)||a&&e.state.selection.from>r&&e.state.selection.to<r+u.nodeSize&&(B=c.findIndexWithChild(i.node))>-1&&c.updateNodeAt(u,f,p,B,e)||c.updateNextNode(u,f,p,e,g,r)||c.addNode(u,f,p,e,r),r+=u.nodeSize}),c.syncToMarks([],n,e),this.node.isTextblock&&c.addTextblockHacks(),c.destroyRest(),(c.changed||this.dirty==Yr)&&(s&&this.protectLocalComposition(e,s),Ep(this.contentDOM,this.children,e),Oi&&eb(this.dom))}localCompositionInfo(e,A){let{from:n,to:r}=e.state.selection;if(!(e.state.selection instanceof ye)||n<A||r>A+this.node.content.size)return null;let i=e.input.compositionNode;if(!i||!this.dom.contains(i.parentNode))return null;if(this.node.inlineContent){let s=i.nodeValue,a=Ab(this.node.content,s,n-A,r-A);return a<0?null:{node:i,pos:a,text:s}}else return{node:i,pos:-1,text:""}}protectLocalComposition(e,{node:A,pos:n,text:r}){if(this.getDesc(A))return;let i=A;for(;i.parentNode!=this.contentDOM;i=i.parentNode){for(;i.previousSibling;)i.parentNode.removeChild(i.previousSibling);for(;i.nextSibling;)i.parentNode.removeChild(i.nextSibling);i.pmViewDesc&&(i.pmViewDesc=void 0)}let s=new JF(this,i,A,r);e.input.compositionNodes.push(s),this.children=Kc(this.children,n,n+r.length,e,s)}update(e,A,n,r){return this.dirty==En||!e.sameMarkup(this.node)?!1:(this.updateInner(e,A,n,r),!0)}updateInner(e,A,n,r){this.updateOuterDeco(A),this.node=e,this.innerDeco=n,this.contentDOM&&this.updateChildren(r,this.posAtStart),this.dirty=Rt}updateOuterDeco(e){if(Rc(e,this.outerDeco))return;let A=this.nodeDOM.nodeType!=1,n=this.dom;this.dom=Qp(this.dom,this.nodeDOM,Mc(this.outerDeco,this.node,A),Mc(e,this.node,A)),this.dom!=n&&(n.pmViewDesc=void 0,this.dom.pmViewDesc=this),this.outerDeco=e}selectNode(){this.nodeDOM.nodeType==1&&this.nodeDOM.classList.add("ProseMirror-selectednode"),(this.contentDOM||!this.node.type.spec.draggable)&&(this.dom.draggable=!0)}deselectNode(){this.nodeDOM.nodeType==1&&(this.nodeDOM.classList.remove("ProseMirror-selectednode"),(this.contentDOM||!this.node.type.spec.draggable)&&this.dom.removeAttribute("draggable"))}get domAtom(){return this.node.isAtom}}function Cp(t,e,A,n,r){Fp(n,e,t);let i=new fr(void 0,t,e,A,n,n,n,r,0);return i.contentDOM&&i.updateChildren(r,0),i}class jo extends fr{constructor(e,A,n,r,i,s,a){super(e,A,n,r,i,null,s,a,0)}parseRule(){let e=this.nodeDOM.parentNode;for(;e&&e!=this.dom&&!e.pmIsDeco;)e=e.parentNode;return{skip:e||!0}}update(e,A,n,r){return this.dirty==En||this.dirty!=Rt&&!this.inParent()||!e.sameMarkup(this.node)?!1:(this.updateOuterDeco(A),(this.dirty!=Rt||e.text!=this.node.text)&&e.text!=this.nodeDOM.nodeValue&&(this.nodeDOM.nodeValue=e.text,r.trackWrites==this.nodeDOM&&(r.trackWrites=null)),this.node=e,this.dirty=Rt,!0)}inParent(){let e=this.parent.contentDOM;for(let A=this.nodeDOM;A;A=A.parentNode)if(A==e)return!0;return!1}domFromPos(e){return{node:this.nodeDOM,offset:e}}localPosFromDOM(e,A,n){return e==this.nodeDOM?this.posAtStart+Math.min(A,this.node.text.length):super.localPosFromDOM(e,A,n)}ignoreMutation(e){return e.type!="characterData"&&e.type!="selection"}slice(e,A,n){let r=this.node.cut(e,A),i=document.createTextNode(r.text);return new jo(this.parent,r,this.outerDeco,this.innerDeco,i,i,n)}markDirty(e,A){super.markDirty(e,A),this.dom!=this.nodeDOM&&(e==0||A==this.nodeDOM.nodeValue.length)&&(this.dirty=En)}get domAtom(){return!1}isText(e){return this.node.text==e}}class yp extends Ls{parseRule(){return{ignore:!0}}matchesHack(e){return this.dirty==Rt&&this.dom.nodeName==e}get domAtom(){return!0}get ignoreForCoords(){return this.dom.nodeName=="IMG"}}class XF extends fr{constructor(e,A,n,r,i,s,a,c,u,f){super(e,A,n,r,i,s,a,u,f),this.spec=c}update(e,A,n,r){if(this.dirty==En)return!1;if(this.spec.update){let i=this.spec.update(e,A,n);return i&&this.updateInner(e,A,n,r),i}else return!this.contentDOM&&!e.isLeaf?!1:super.update(e,A,n,r)}selectNode(){this.spec.selectNode?this.spec.selectNode():super.selectNode()}deselectNode(){this.spec.deselectNode?this.spec.deselectNode():super.deselectNode()}setSelection(e,A,n,r){this.spec.setSelection?this.spec.setSelection(e,A,n):super.setSelection(e,A,n,r)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}stopEvent(e){return this.spec.stopEvent?this.spec.stopEvent(e):!1}ignoreMutation(e){return this.spec.ignoreMutation?this.spec.ignoreMutation(e):super.ignoreMutation(e)}}function Ep(t,e,A){let n=t.firstChild,r=!1;for(let i=0;i<e.length;i++){let s=e[i],a=s.dom;if(a.parentNode==t){for(;a!=n;)n=bp(n),r=!0;n=n.nextSibling}else r=!0,t.insertBefore(a,n);if(s instanceof zr){let c=n?n.previousSibling:t.lastChild;Ep(s.contentDOM,s.children,A),n=c?c.nextSibling:t.firstChild}}for(;n;)n=bp(n),r=!0;r&&A.trackWrites==t&&(A.trackWrites=null)}const ks=function(t){t&&(this.nodeName=t)};ks.prototype=Object.create(null);const qr=[new ks];function Mc(t,e,A){if(t.length==0)return qr;let n=A?qr[0]:new ks,r=[n];for(let i=0;i<t.length;i++){let s=t[i].type.attrs;if(s){s.nodeName&&r.push(n=new ks(s.nodeName));for(let a in s){let c=s[a];c!=null&&(A&&r.length==1&&r.push(n=new ks(e.isInline?"span":"div")),a=="class"?n.class=(n.class?n.class+" ":"")+c:a=="style"?n.style=(n.style?n.style+";":"")+c:a!="nodeName"&&(n[a]=c))}}}return r}function Qp(t,e,A,n){if(A==qr&&n==qr)return e;let r=e;for(let i=0;i<n.length;i++){let s=n[i],a=A[i];if(i){let c;a&&a.nodeName==s.nodeName&&r!=t&&(c=r.parentNode)&&c.nodeName.toLowerCase()==s.nodeName||(c=document.createElement(s.nodeName),c.pmIsDeco=!0,c.appendChild(r),a=qr[0]),r=c}YF(r,a||qr[0],s)}return r}function YF(t,e,A){for(let n in e)n!="class"&&n!="style"&&n!="nodeName"&&!(n in A)&&t.removeAttribute(n);for(let n in A)n!="class"&&n!="style"&&n!="nodeName"&&A[n]!=e[n]&&t.setAttribute(n,A[n]);if(e.class!=A.class){let n=e.class?e.class.split(" ").filter(Boolean):[],r=A.class?A.class.split(" ").filter(Boolean):[];for(let i=0;i<n.length;i++)r.indexOf(n[i])==-1&&t.classList.remove(n[i]);for(let i=0;i<r.length;i++)n.indexOf(r[i])==-1&&t.classList.add(r[i]);t.classList.length==0&&t.removeAttribute("class")}if(e.style!=A.style){if(e.style){let n=/\s*([\w\-\xa1-\uffff]+)\s*:(?:"(?:\\.|[^"])*"|'(?:\\.|[^'])*'|\(.*?\)|[^;])*/g,r;for(;r=n.exec(e.style);)t.style.removeProperty(r[1])}A.style&&(t.style.cssText+=A.style)}}function Fp(t,e,A){return Qp(t,t,qr,Mc(e,A,t.nodeType!=1))}function Rc(t,e){if(t.length!=e.length)return!1;for(let A=0;A<t.length;A++)if(!t[A].type.eq(e[A].type))return!1;return!0}function bp(t){let e=t.nextSibling;return t.parentNode.removeChild(t),e}class zF{constructor(e,A,n){this.lock=A,this.view=n,this.index=0,this.stack=[],this.changed=!1,this.top=e,this.preMatch=qF(e.node.content,e)}destroyBetween(e,A){if(e!=A){for(let n=e;n<A;n++)this.top.children[n].destroy();this.top.children.splice(e,A-e),this.changed=!0}}destroyRest(){this.destroyBetween(this.index,this.top.children.length)}syncToMarks(e,A,n){let r=0,i=this.stack.length>>1,s=Math.min(i,e.length);for(;r<s&&(r==i-1?this.top:this.stack[r+1<<1]).matchesMark(e[r])&&e[r].type.spec.spanning!==!1;)r++;for(;r<i;)this.destroyRest(),this.top.dirty=Rt,this.index=this.stack.pop(),this.top=this.stack.pop(),i--;for(;i<e.length;){this.stack.push(this.top,this.index+1);let a=-1;for(let c=this.index;c<Math.min(this.index+3,this.top.children.length);c++){let u=this.top.children[c];if(u.matchesMark(e[i])&&!this.isLocked(u.dom)){a=c;break}}if(a>-1)a>this.index&&(this.changed=!0,this.destroyBetween(this.index,a)),this.top=this.top.children[this.index];else{let c=zr.create(this.top,e[i],A,n);this.top.children.splice(this.index,0,c),this.top=c,this.changed=!0}this.index=0,i++}}findNodeMatch(e,A,n,r){let i=-1,s;if(r>=this.preMatch.index&&(s=this.preMatch.matches[r-this.preMatch.index]).parent==this.top&&s.matchesNode(e,A,n))i=this.top.children.indexOf(s,this.index);else for(let a=this.index,c=Math.min(this.top.children.length,a+5);a<c;a++){let u=this.top.children[a];if(u.matchesNode(e,A,n)&&!this.preMatch.matched.has(u)){i=a;break}}return i<0?!1:(this.destroyBetween(this.index,i),this.index++,!0)}updateNodeAt(e,A,n,r,i){let s=this.top.children[r];return s.dirty==En&&s.dom==s.contentDOM&&(s.dirty=Yr),s.update(e,A,n,i)?(this.destroyBetween(this.index,r),this.index++,!0):!1}findIndexWithChild(e){for(;;){let A=e.parentNode;if(!A)return-1;if(A==this.top.contentDOM){let n=e.pmViewDesc;if(n){for(let r=this.index;r<this.top.children.length;r++)if(this.top.children[r]==n)return r}return-1}e=A}}updateNextNode(e,A,n,r,i,s){for(let a=this.index;a<this.top.children.length;a++){let c=this.top.children[a];if(c instanceof fr){let u=this.preMatch.matched.get(c);if(u!=null&&u!=i)return!1;let f=c.dom,p,g=this.isLocked(f)&&!(e.isText&&c.node&&c.node.isText&&c.nodeDOM.nodeValue==e.text&&c.dirty!=En&&Rc(A,c.outerDeco));if(!g&&c.update(e,A,n,r))return this.destroyBetween(this.index,a),c.dom!=f&&(this.changed=!0),this.index++,!0;if(!g&&(p=this.recreateWrapper(c,e,A,n,r,s)))return this.top.children[this.index]=p,p.contentDOM&&(p.dirty=Yr,p.updateChildren(r,s+1),p.dirty=Rt),this.changed=!0,this.index++,!0;break}}return!1}recreateWrapper(e,A,n,r,i,s){if(e.dirty||A.isAtom||!e.children.length||!e.node.content.eq(A.content))return null;let a=fr.create(this.top,A,n,r,i,s);if(a.contentDOM){a.children=e.children,e.children=[];for(let c of a.children)c.parent=a}return e.destroy(),a}addNode(e,A,n,r,i){let s=fr.create(this.top,e,A,n,r,i);s.contentDOM&&s.updateChildren(r,i+1),this.top.children.splice(this.index++,0,s),this.changed=!0}placeWidget(e,A,n){let r=this.index<this.top.children.length?this.top.children[this.index]:null;if(r&&r.matchesWidget(e)&&(e==r.widget||!r.widget.type.toDOM.parentNode))this.index++;else{let i=new wp(this.top,e,A,n);this.top.children.splice(this.index++,0,i),this.changed=!0}}addTextblockHacks(){let e=this.top.children[this.index-1],A=this.top;for(;e instanceof zr;)A=e,e=A.children[A.children.length-1];(!e||!(e instanceof jo)||/\n$/.test(e.node.text)||this.view.requiresGeckoHackNode&&/\s$/.test(e.node.text))&&((rt||nt)&&e&&e.dom.contentEditable=="false"&&this.addHackNode("IMG",A),this.addHackNode("BR",this.top))}addHackNode(e,A){if(A==this.top&&this.index<A.children.length&&A.children[this.index].matchesHack(e))this.index++;else{let n=document.createElement(e);e=="IMG"&&(n.className="ProseMirror-separator",n.alt=""),e=="BR"&&(n.className="ProseMirror-trailingBreak");let r=new yp(this.top,[],n,null);A!=this.top?A.children.push(r):A.children.splice(this.index++,0,r),this.changed=!0}}isLocked(e){return this.lock&&(e==this.lock||e.nodeType==1&&e.contains(this.lock.parentNode))}}function qF(t,e){let A=e,n=A.children.length,r=t.childCount,i=new Map,s=[];e:for(;r>0;){let a;for(;;)if(n){let u=A.children[n-1];if(u instanceof zr)A=u,n=u.children.length;else{a=u,n--;break}}else{if(A==e)break e;n=A.parent.children.indexOf(A),A=A.parent}let c=a.node;if(c){if(c!=t.child(r-1))break;--r,i.set(a,r),s.push(a)}}return{index:r,matched:i,matches:s.reverse()}}function ZF(t,e){return t.type.side-e.type.side}function jF(t,e,A,n){let r=e.locals(t),i=0;if(r.length==0){for(let u=0;u<t.childCount;u++){let f=t.child(u);n(f,r,e.forChild(i,f),u),i+=f.nodeSize}return}let s=0,a=[],c=null;for(let u=0;;){let f,p;for(;s<r.length&&r[s].to==i;){let b=r[s++];b.widget&&(f?(p||(p=[f])).push(b):f=b)}if(f)if(p){p.sort(ZF);for(let b=0;b<p.length;b++)A(p[b],u,!!c)}else A(f,u,!!c);let g,B;if(c)B=-1,g=c,c=null;else if(u<t.childCount)B=u,g=t.child(u++);else break;for(let b=0;b<a.length;b++)a[b].to<=i&&a.splice(b--,1);for(;s<r.length&&r[s].from<=i&&r[s].to>i;)a.push(r[s++]);let w=i+g.nodeSize;if(g.isText){let b=w;s<r.length&&r[s].from<b&&(b=r[s].from);for(let v=0;v<a.length;v++)a[v].to<b&&(b=a[v].to);b<w&&(c=g.cut(b-i),g=g.cut(0,b-i),w=b,B=-1)}else for(;s<r.length&&r[s].to<w;)s++;let Q=g.isInline&&!g.isLeaf?a.filter(b=>!b.inline):a.slice();n(g,Q,e.forChild(i,g),B),i=w}}function eb(t){if(t.nodeName=="UL"||t.nodeName=="OL"){let e=t.style.cssText;t.style.cssText=e+"; list-style: square !important",window.getComputedStyle(t).listStyle,t.style.cssText=e}}function Ab(t,e,A,n){for(let r=0,i=0;r<t.childCount&&i<=n;){let s=t.child(r++),a=i;if(i+=s.nodeSize,!s.isText)continue;let c=s.text;for(;r<t.childCount;){let u=t.child(r++);if(i+=u.nodeSize,!u.isText)break;c+=u.text}if(i>=A){if(i>=n&&c.slice(n-e.length-a,n-a)==e)return n-e.length;let u=a<n?c.lastIndexOf(e,n-a-1):-1;if(u>=0&&u+e.length+a>=A)return a+u;if(A==n&&c.length>=n+e.length-a&&c.slice(n-a,n-a+e.length)==e)return n}}return-1}function Kc(t,e,A,n,r){let i=[];for(let s=0,a=0;s<t.length;s++){let c=t[s],u=a,f=a+=c.size;u>=A||f<=e?i.push(c):(u<e&&i.push(c.slice(0,e-u,n)),r&&(i.push(r),r=void 0),f>A&&i.push(c.slice(A-u,c.size,n)))}return i}function Vc(t,e=null){let A=t.domSelectionRange(),n=t.state.doc;if(!A.focusNode)return null;let r=t.docView.nearestDesc(A.focusNode),i=r&&r.size==0,s=t.docView.posFromDOM(A.focusNode,A.focusOffset,1);if(s<0)return null;let a=n.resolve(s),c,u;if(Zo(A)){for(c=a;r&&!r.node;)r=r.parent;let f=r.node;if(r&&f.isAtom&&fe.isSelectable(f)&&r.parent&&!(f.isInline&&UF(A.focusNode,A.focusOffset,r.dom))){let p=r.posBefore;u=new fe(s==p?a:n.resolve(p))}}else{let f=t.docView.posFromDOM(A.anchorNode,A.anchorOffset,1);if(f<0)return null;c=n.resolve(f)}if(!u){let f=e=="pointer"||t.state.selection.head<a.pos&&!i?1:-1;u=Gc(t,c,a,f)}return u}function Up(t){return t.editable?t.hasFocus():Op(t)&&document.activeElement&&document.activeElement.contains(t.dom)}function Hn(t,e=!1){let A=t.state.selection;if(Tp(t,A),!!Up(t)){if(!e&&t.input.mouseDown&&t.input.mouseDown.allowDefault&&nt){let n=t.domSelectionRange(),r=t.domObserver.currentSelection;if(n.anchorNode&&r.anchorNode&&Jr(n.anchorNode,n.anchorOffset,r.anchorNode,r.anchorOffset)){t.input.mouseDown.delayedSelectionSync=!0,t.domObserver.setCurSelection();return}}if(t.domObserver.disconnectSelection(),t.cursorWrapper)nb(t);else{let{anchor:n,head:r}=A,i,s;vp&&!(A instanceof ye)&&(A.$from.parent.inlineContent||(i=Ip(t,A.from)),!A.empty&&!A.$from.parent.inlineContent&&(s=Ip(t,A.to))),t.docView.setSelection(n,r,t.root,e),vp&&(i&&Sp(i),s&&Sp(s)),A.visible?t.dom.classList.remove("ProseMirror-hideselection"):(t.dom.classList.add("ProseMirror-hideselection"),"onselectionchange"in document&&tb(t))}t.domObserver.setCurSelection(),t.domObserver.connectSelection()}}const vp=rt||nt&&SF<63;function Ip(t,e){let{node:A,offset:n}=t.docView.domFromPos(e,0),r=n<A.childNodes.length?A.childNodes[n]:null,i=n?A.childNodes[n-1]:null;if(rt&&r&&r.contentEditable=="false")return Pc(r);if((!r||r.contentEditable=="false")&&(!i||i.contentEditable=="false")){if(r)return Pc(r);if(i)return Pc(i)}}function Pc(t){return t.contentEditable="true",rt&&t.draggable&&(t.draggable=!1,t.wasDraggable=!0),t}function Sp(t){t.contentEditable="false",t.wasDraggable&&(t.draggable=!0,t.wasDraggable=null)}function tb(t){let e=t.dom.ownerDocument;e.removeEventListener("selectionchange",t.input.hideSelectionGuard);let A=t.domSelectionRange(),n=A.anchorNode,r=A.anchorOffset;e.addEventListener("selectionchange",t.input.hideSelectionGuard=()=>{(A.anchorNode!=n||A.anchorOffset!=r)&&(e.removeEventListener("selectionchange",t.input.hideSelectionGuard),setTimeout(()=>{(!Up(t)||t.state.selection.visible)&&t.dom.classList.remove("ProseMirror-hideselection")},20))})}function nb(t){let e=t.domSelection(),A=document.createRange(),n=t.cursorWrapper.dom,r=n.nodeName=="IMG";r?A.setEnd(n.parentNode,RA(n)+1):A.setEnd(n,0),A.collapse(!1),e.removeAllRanges(),e.addRange(A),!r&&!t.state.selection.visible&&gt&&cr<=11&&(n.disabled=!0,n.disabled=!1)}function Tp(t,e){if(e instanceof fe){let A=t.docView.descAt(e.from);A!=t.lastSelectedViewDesc&&(_p(t),A&&A.selectNode(),t.lastSelectedViewDesc=A)}else _p(t)}function _p(t){t.lastSelectedViewDesc&&(t.lastSelectedViewDesc.parent&&t.lastSelectedViewDesc.deselectNode(),t.lastSelectedViewDesc=void 0)}function Gc(t,e,A,n){return t.someProp("createSelectionBetween",r=>r(t,e,A))||ye.between(e,A,n)}function xp(t){return t.editable&&!t.hasFocus()?!1:Op(t)}function Op(t){let e=t.domSelectionRange();if(!e.anchorNode)return!1;try{return t.dom.contains(e.anchorNode.nodeType==3?e.anchorNode.parentNode:e.anchorNode)&&(t.editable||t.dom.contains(e.focusNode.nodeType==3?e.focusNode.parentNode:e.focusNode))}catch{return!1}}function rb(t){let e=t.docView.domFromPos(t.state.selection.anchor,0),A=t.domSelectionRange();return Jr(e.node,e.offset,A.anchorNode,A.anchorOffset)}function $c(t,e){let{$anchor:A,$head:n}=t.selection,r=e>0?A.max(n):A.min(n),i=r.parent.inlineContent?r.depth?t.doc.resolve(e>0?r.after():r.before()):null:r;return i&&Fe.findFrom(i,e)}function dr(t,e){return t.dispatch(t.state.tr.setSelection(e).scrollIntoView()),!0}function Lp(t,e,A){let n=t.state.selection;if(n instanceof ye)if(A.indexOf("s")>-1){let{$head:r}=n,i=r.textOffset?null:e<0?r.nodeBefore:r.nodeAfter;if(!i||i.isText||!i.isLeaf)return!1;let s=t.state.doc.resolve(r.pos+i.nodeSize*(e<0?-1:1));return dr(t,new ye(n.$anchor,s))}else if(n.empty){if(t.endOfTextblock(e>0?"forward":"backward")){let r=$c(t.state,e);return r&&r instanceof fe?dr(t,r):!1}else if(!(Mt&&A.indexOf("m")>-1)){let r=n.$head,i=r.textOffset?null:e<0?r.nodeBefore:r.nodeAfter,s;if(!i||i.isText)return!1;let a=e<0?r.pos-i.nodeSize:r.pos;return i.isAtom||(s=t.docView.descAt(a))&&!s.contentDOM?fe.isSelectable(i)?dr(t,new fe(e<0?t.state.doc.resolve(r.pos-i.nodeSize):r)):xs?dr(t,new ye(t.state.doc.resolve(e<0?a:a+i.nodeSize))):!1:!1}}else return!1;else{if(n instanceof fe&&n.node.isInline)return dr(t,new ye(e>0?n.$to:n.$from));{let r=$c(t.state,e);return r?dr(t,r):!1}}}function ea(t){return t.nodeType==3?t.nodeValue.length:t.childNodes.length}function Hs(t,e){let A=t.pmViewDesc;return A&&A.size==0&&(e<0||t.nextSibling||t.nodeName!="BR")}function ki(t,e){return e<0?ib(t):sb(t)}function ib(t){let e=t.domSelectionRange(),A=e.focusNode,n=e.focusOffset;if(!A)return;let r,i,s=!1;for(nn&&A.nodeType==1&&n<ea(A)&&Hs(A.childNodes[n],-1)&&(s=!0);;)if(n>0){if(A.nodeType!=1)break;{let a=A.childNodes[n-1];if(Hs(a,-1))r=A,i=--n;else if(a.nodeType==3)A=a,n=A.nodeValue.length;else break}}else{if(kp(A))break;{let a=A.previousSibling;for(;a&&Hs(a,-1);)r=A.parentNode,i=RA(a),a=a.previousSibling;if(a)A=a,n=ea(A);else{if(A=A.parentNode,A==t.dom)break;n=0}}}s?Wc(t,A,n):r&&Wc(t,r,i)}function sb(t){let e=t.domSelectionRange(),A=e.focusNode,n=e.focusOffset;if(!A)return;let r=ea(A),i,s;for(;;)if(n<r){if(A.nodeType!=1)break;let a=A.childNodes[n];if(Hs(a,1))i=A,s=++n;else break}else{if(kp(A))break;{let a=A.nextSibling;for(;a&&Hs(a,1);)i=a.parentNode,s=RA(a)+1,a=a.nextSibling;if(a)A=a,n=0,r=ea(A);else{if(A=A.parentNode,A==t.dom)break;n=r=0}}}i&&Wc(t,i,s)}function kp(t){let e=t.pmViewDesc;return e&&e.node&&e.node.isBlock}function ob(t,e){for(;t&&e==t.childNodes.length&&!_s(t);)e=RA(t)+1,t=t.parentNode;for(;t&&e<t.childNodes.length;){let A=t.childNodes[e];if(A.nodeType==3)return A;if(A.nodeType==1&&A.contentEditable=="false")break;t=A,e=0}}function ab(t,e){for(;t&&!e&&!_s(t);)e=RA(t),t=t.parentNode;for(;t&&e;){let A=t.childNodes[e-1];if(A.nodeType==3)return A;if(A.nodeType==1&&A.contentEditable=="false")break;t=A,e=t.childNodes.length}}function Wc(t,e,A){if(e.nodeType!=3){let i,s;(s=ob(e,A))?(e=s,A=0):(i=ab(e,A))&&(e=i,A=i.nodeValue.length)}let n=t.domSelection();if(Zo(n)){let i=document.createRange();i.setEnd(e,A),i.setStart(e,A),n.removeAllRanges(),n.addRange(i)}else n.extend&&n.extend(e,A);t.domObserver.setCurSelection();let{state:r}=t;setTimeout(()=>{t.state==r&&Hn(t)},50)}function Hp(t,e){let A=t.state.doc.resolve(e);if(!(nt||TF)&&A.parent.inlineContent){let r=t.coordsAtPos(e);if(e>A.start()){let i=t.coordsAtPos(e-1),s=(i.top+i.bottom)/2;if(s>r.top&&s<r.bottom&&Math.abs(i.left-r.left)>1)return i.left<r.left?"ltr":"rtl"}if(e<A.end()){let i=t.coordsAtPos(e+1),s=(i.top+i.bottom)/2;if(s>r.top&&s<r.bottom&&Math.abs(i.left-r.left)>1)return i.left>r.left?"ltr":"rtl"}}return getComputedStyle(t.dom).direction=="rtl"?"rtl":"ltr"}function Np(t,e,A){let n=t.state.selection;if(n instanceof ye&&!n.empty||A.indexOf("s")>-1||Mt&&A.indexOf("m")>-1)return!1;let{$from:r,$to:i}=n;if(!r.parent.inlineContent||t.endOfTextblock(e<0?"up":"down")){let s=$c(t.state,e);if(s&&s instanceof fe)return dr(t,s)}if(!r.parent.inlineContent){let s=e<0?r:i,a=n instanceof tn?Fe.near(s,e):Fe.findFrom(s,e);return a?dr(t,a):!1}return!1}function Dp(t,e){if(!(t.state.selection instanceof ye))return!0;let{$head:A,$anchor:n,empty:r}=t.state.selection;if(!A.sameParent(n))return!0;if(!r)return!1;if(t.endOfTextblock(e>0?"forward":"backward"))return!0;let i=!A.textOffset&&(e<0?A.nodeBefore:A.nodeAfter);if(i&&!i.isText){let s=t.state.tr;return e<0?s.delete(A.pos-i.nodeSize,A.pos):s.delete(A.pos,A.pos+i.nodeSize),t.dispatch(s),!0}return!1}function Mp(t,e,A){t.domObserver.stop(),e.contentEditable=A,t.domObserver.start()}function lb(t){if(!rt||t.state.selection.$head.parentOffset>0)return!1;let{focusNode:e,focusOffset:A}=t.domSelectionRange();if(e&&e.nodeType==1&&A==0&&e.firstChild&&e.firstChild.contentEditable=="false"){let n=e.firstChild;Mp(t,n,"true"),setTimeout(()=>Mp(t,n,"false"),20)}return!1}function cb(t){let e="";return t.ctrlKey&&(e+="c"),t.metaKey&&(e+="m"),t.altKey&&(e+="a"),t.shiftKey&&(e+="s"),e}function ub(t,e){let A=e.keyCode,n=cb(e);if(A==8||Mt&&A==72&&n=="c")return Dp(t,-1)||ki(t,-1);if(A==46&&!e.shiftKey||Mt&&A==68&&n=="c")return Dp(t,1)||ki(t,1);if(A==13||A==27)return!0;if(A==37||Mt&&A==66&&n=="c"){let r=A==37?Hp(t,t.state.selection.from)=="ltr"?-1:1:-1;return Lp(t,r,n)||ki(t,r)}else if(A==39||Mt&&A==70&&n=="c"){let r=A==39?Hp(t,t.state.selection.from)=="ltr"?1:-1:1;return Lp(t,r,n)||ki(t,r)}else{if(A==38||Mt&&A==80&&n=="c")return Np(t,-1,n)||ki(t,-1);if(A==40||Mt&&A==78&&n=="c")return lb(t)||Np(t,1,n)||ki(t,1);if(n==(Mt?"m":"c")&&(A==66||A==73||A==89||A==90))return!0}return!1}function Rp(t,e){t.someProp("transformCopied",B=>{e=B(e,t)});let A=[],{content:n,openStart:r,openEnd:i}=e;for(;r>1&&i>1&&n.childCount==1&&n.firstChild.childCount==1;){r--,i--;let B=n.firstChild;A.push(B.type.name,B.attrs!=B.type.defaultAttrs?B.attrs:null),n=B.content}let s=t.someProp("clipboardSerializer")||mn.fromSchema(t.state.schema),a=Xp(),c=a.createElement("div");c.appendChild(s.serializeFragment(n,{document:a}));let u=c.firstChild,f,p=0;for(;u&&u.nodeType==1&&(f=Wp[u.nodeName.toLowerCase()]);){for(let B=f.length-1;B>=0;B--){let w=a.createElement(f[B]);for(;c.firstChild;)w.appendChild(c.firstChild);c.appendChild(w),p++}u=c.firstChild}u&&u.nodeType==1&&u.setAttribute("data-pm-slice",`${r} ${i}${p?` -${p}`:""} ${JSON.stringify(A)}`);let g=t.someProp("clipboardTextSerializer",B=>B(e,t))||e.content.textBetween(0,e.content.size,`
11
-
12
- `);return{dom:c,text:g,slice:e}}function Kp(t,e,A,n,r){let i=r.parent.type.spec.code,s,a;if(!A&&!e)return null;let c=e&&(n||i||!A);if(c){if(t.someProp("transformPastedText",g=>{e=g(e,i||n,t)}),i)return e?new j(Y.from(t.state.schema.text(e.replace(/\r\n?/g,`
13
- `))),0,0):j.empty;let p=t.someProp("clipboardTextParser",g=>g(e,r,n,t));if(p)a=p;else{let g=r.marks(),{schema:B}=t.state,w=mn.fromSchema(B);s=document.createElement("div"),e.split(/(?:\r\n?|\n)+/).forEach(Q=>{let b=s.appendChild(document.createElement("p"));Q&&b.appendChild(w.serializeNode(B.text(Q,g)))})}}else t.someProp("transformPastedHTML",p=>{A=p(A,t)}),s=hb(A),xs&&pb(s);let u=s&&s.querySelector("[data-pm-slice]"),f=u&&/^(\d+) (\d+)(?: -(\d+))? (.*)/.exec(u.getAttribute("data-pm-slice")||"");if(f&&f[3])for(let p=+f[3];p>0;p--){let g=s.firstChild;for(;g&&g.nodeType!=1;)g=g.nextSibling;if(!g)break;s=g}if(a||(a=(t.someProp("clipboardParser")||t.someProp("domParser")||Fi.fromSchema(t.state.schema)).parseSlice(s,{preserveWhitespace:!!(c||f),context:r,ruleFromNode(g){return g.nodeName=="BR"&&!g.nextSibling&&g.parentNode&&!fb.test(g.parentNode.nodeName)?{ignore:!0}:null}})),f)a=gb($p(a,+f[1],+f[2]),f[4]);else if(a=j.maxOpen(db(a.content,r),!0),a.openStart||a.openEnd){let p=0,g=0;for(let B=a.content.firstChild;p<a.openStart&&!B.type.spec.isolating;p++,B=B.firstChild);for(let B=a.content.lastChild;g<a.openEnd&&!B.type.spec.isolating;g++,B=B.lastChild);a=$p(a,p,g)}return t.someProp("transformPasted",p=>{a=p(a,t)}),a}const fb=/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var)$/i;function db(t,e){if(t.childCount<2)return t;for(let A=e.depth;A>=0;A--){let r=e.node(A).contentMatchAt(e.index(A)),i,s=[];if(t.forEach(a=>{if(!s)return;let c=r.findWrapping(a.type),u;if(!c)return s=null;if(u=s.length&&i.length&&Pp(c,i,a,s[s.length-1],0))s[s.length-1]=u;else{s.length&&(s[s.length-1]=Gp(s[s.length-1],i.length));let f=Vp(a,c);s.push(f),r=r.matchType(f.type),i=c}}),s)return Y.from(s)}return t}function Vp(t,e,A=0){for(let n=e.length-1;n>=A;n--)t=e[n].create(null,Y.from(t));return t}function Pp(t,e,A,n,r){if(r<t.length&&r<e.length&&t[r]==e[r]){let i=Pp(t,e,A,n.lastChild,r+1);if(i)return n.copy(n.content.replaceChild(n.childCount-1,i));if(n.contentMatchAt(n.childCount).matchType(r==t.length-1?A.type:t[r+1]))return n.copy(n.content.append(Y.from(Vp(A,t,r+1))))}}function Gp(t,e){if(e==0)return t;let A=t.content.replaceChild(t.childCount-1,Gp(t.lastChild,e-1)),n=t.contentMatchAt(t.childCount).fillBefore(Y.empty,!0);return t.copy(A.append(n))}function Jc(t,e,A,n,r,i){let s=e<0?t.firstChild:t.lastChild,a=s.content;return t.childCount>1&&(i=0),r<n-1&&(a=Jc(a,e,A,n,r+1,i)),r>=A&&(a=e<0?s.contentMatchAt(0).fillBefore(a,i<=r).append(a):a.append(s.contentMatchAt(s.childCount).fillBefore(Y.empty,!0))),t.replaceChild(e<0?0:t.childCount-1,s.copy(a))}function $p(t,e,A){return e<t.openStart&&(t=new j(Jc(t.content,-1,e,t.openStart,0,t.openEnd),e,t.openEnd)),A<t.openEnd&&(t=new j(Jc(t.content,1,A,t.openEnd,0,0),t.openStart,A)),t}const Wp={thead:["table"],tbody:["table"],tfoot:["table"],caption:["table"],colgroup:["table"],col:["table","colgroup"],tr:["table","tbody"],td:["table","tbody","tr"],th:["table","tbody","tr"]};let Jp=null;function Xp(){return Jp||(Jp=document.implementation.createHTMLDocument("title"))}function hb(t){let e=/^(\s*<meta [^>]*>)*/.exec(t);e&&(t=t.slice(e[0].length));let A=Xp().createElement("div"),n=/<([a-z][^>\s]+)/i.exec(t),r;if((r=n&&Wp[n[1].toLowerCase()])&&(t=r.map(i=>"<"+i+">").join("")+t+r.map(i=>"</"+i+">").reverse().join("")),A.innerHTML=t,r)for(let i=0;i<r.length;i++)A=A.querySelector(r[i])||A;return A}function pb(t){let e=t.querySelectorAll(nt?"span:not([class]):not([style])":"span.Apple-converted-space");for(let A=0;A<e.length;A++){let n=e[A];n.childNodes.length==1&&n.textContent==" "&&n.parentNode&&n.parentNode.replaceChild(t.ownerDocument.createTextNode(" "),n)}}function gb(t,e){if(!t.size)return t;let A=t.content.firstChild.type.schema,n;try{n=JSON.parse(e)}catch{return t}let{content:r,openStart:i,openEnd:s}=t;for(let a=n.length-2;a>=0;a-=2){let c=A.nodes[n[a]];if(!c||c.hasRequiredAttrs())break;r=Y.from(c.create(n[a+1],r)),i++,s++}return new j(r,i,s)}const it={},st={},mb={touchstart:!0,touchmove:!0};class Bb{constructor(){this.shiftKey=!1,this.mouseDown=null,this.lastKeyCode=null,this.lastKeyCodeTime=0,this.lastClick={time:0,x:0,y:0,type:""},this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastIOSEnter=0,this.lastIOSEnterFallbackTimeout=-1,this.lastFocus=0,this.lastTouch=0,this.lastAndroidDelete=0,this.composing=!1,this.compositionNode=null,this.composingTimeout=-1,this.compositionNodes=[],this.compositionEndedAt=-2e8,this.compositionID=1,this.compositionPendingChanges=0,this.domChangeCount=0,this.eventHandlers=Object.create(null),this.hideSelectionGuard=null}}function wb(t){for(let e in it){let A=it[e];t.dom.addEventListener(e,t.input.eventHandlers[e]=n=>{yb(t,n)&&!Yc(t,n)&&(t.editable||!(n.type in st))&&A(t,n)},mb[e]?{passive:!0}:void 0)}rt&&t.dom.addEventListener("input",()=>null),Xc(t)}function hr(t,e){t.input.lastSelectionOrigin=e,t.input.lastSelectionTime=Date.now()}function Cb(t){t.domObserver.stop();for(let e in t.input.eventHandlers)t.dom.removeEventListener(e,t.input.eventHandlers[e]);clearTimeout(t.input.composingTimeout),clearTimeout(t.input.lastIOSEnterFallbackTimeout)}function Xc(t){t.someProp("handleDOMEvents",e=>{for(let A in e)t.input.eventHandlers[A]||t.dom.addEventListener(A,t.input.eventHandlers[A]=n=>Yc(t,n))})}function Yc(t,e){return t.someProp("handleDOMEvents",A=>{let n=A[e.type];return n?n(t,e)||e.defaultPrevented:!1})}function yb(t,e){if(!e.bubbles)return!0;if(e.defaultPrevented)return!1;for(let A=e.target;A!=t.dom;A=A.parentNode)if(!A||A.nodeType==11||A.pmViewDesc&&A.pmViewDesc.stopEvent(e))return!1;return!0}function Eb(t,e){!Yc(t,e)&&it[e.type]&&(t.editable||!(e.type in st))&&it[e.type](t,e)}st.keydown=(t,e)=>{let A=e;if(t.input.shiftKey=A.keyCode==16||A.shiftKey,!zp(t,A)&&(t.input.lastKeyCode=A.keyCode,t.input.lastKeyCodeTime=Date.now(),!(rn&&nt&&A.keyCode==13)))if(A.keyCode!=229&&t.domObserver.forceFlush(),Oi&&A.keyCode==13&&!A.ctrlKey&&!A.altKey&&!A.metaKey){let n=Date.now();t.input.lastIOSEnter=n,t.input.lastIOSEnterFallbackTimeout=setTimeout(()=>{t.input.lastIOSEnter==n&&(t.someProp("handleKeyDown",r=>r(t,Xr(13,"Enter"))),t.input.lastIOSEnter=0)},200)}else t.someProp("handleKeyDown",n=>n(t,A))||ub(t,A)?A.preventDefault():hr(t,"key")},st.keyup=(t,e)=>{e.keyCode==16&&(t.input.shiftKey=!1)},st.keypress=(t,e)=>{let A=e;if(zp(t,A)||!A.charCode||A.ctrlKey&&!A.altKey||Mt&&A.metaKey)return;if(t.someProp("handleKeyPress",r=>r(t,A))){A.preventDefault();return}let n=t.state.selection;if(!(n instanceof ye)||!n.$from.sameParent(n.$to)){let r=String.fromCharCode(A.charCode);!/[\r\n]/.test(r)&&!t.someProp("handleTextInput",i=>i(t,n.$from.pos,n.$to.pos,r))&&t.dispatch(t.state.tr.insertText(r).scrollIntoView()),A.preventDefault()}};function Aa(t){return{left:t.clientX,top:t.clientY}}function Qb(t,e){let A=e.x-t.clientX,n=e.y-t.clientY;return A*A+n*n<100}function zc(t,e,A,n,r){if(n==-1)return!1;let i=t.state.doc.resolve(n);for(let s=i.depth+1;s>0;s--)if(t.someProp(e,a=>s>i.depth?a(t,A,i.nodeAfter,i.before(s),r,!0):a(t,A,i.node(s),i.before(s),r,!1)))return!0;return!1}function Hi(t,e,A){t.focused||t.focus();let n=t.state.tr.setSelection(e);A=="pointer"&&n.setMeta("pointer",!0),t.dispatch(n)}function Fb(t,e){if(e==-1)return!1;let A=t.state.doc.resolve(e),n=A.nodeAfter;return n&&n.isAtom&&fe.isSelectable(n)?(Hi(t,new fe(A),"pointer"),!0):!1}function bb(t,e){if(e==-1)return!1;let A=t.state.selection,n,r;A instanceof fe&&(n=A.node);let i=t.state.doc.resolve(e);for(let s=i.depth+1;s>0;s--){let a=s>i.depth?i.nodeAfter:i.node(s);if(fe.isSelectable(a)){n&&A.$from.depth>0&&s>=A.$from.depth&&i.before(A.$from.depth+1)==A.$from.pos?r=i.before(A.$from.depth):r=i.before(s);break}}return r!=null?(Hi(t,fe.create(t.state.doc,r),"pointer"),!0):!1}function Ub(t,e,A,n,r){return zc(t,"handleClickOn",e,A,n)||t.someProp("handleClick",i=>i(t,e,n))||(r?bb(t,A):Fb(t,A))}function vb(t,e,A,n){return zc(t,"handleDoubleClickOn",e,A,n)||t.someProp("handleDoubleClick",r=>r(t,e,n))}function Ib(t,e,A,n){return zc(t,"handleTripleClickOn",e,A,n)||t.someProp("handleTripleClick",r=>r(t,e,n))||Sb(t,A,n)}function Sb(t,e,A){if(A.button!=0)return!1;let n=t.state.doc;if(e==-1)return n.inlineContent?(Hi(t,ye.create(n,0,n.content.size),"pointer"),!0):!1;let r=n.resolve(e);for(let i=r.depth+1;i>0;i--){let s=i>r.depth?r.nodeAfter:r.node(i),a=r.before(i);if(s.inlineContent)Hi(t,ye.create(n,a+1,a+1+s.content.size),"pointer");else if(fe.isSelectable(s))Hi(t,fe.create(n,a),"pointer");else continue;return!0}}function qc(t){return ta(t)}const Yp=Mt?"metaKey":"ctrlKey";it.mousedown=(t,e)=>{let A=e;t.input.shiftKey=A.shiftKey;let n=qc(t),r=Date.now(),i="singleClick";r-t.input.lastClick.time<500&&Qb(A,t.input.lastClick)&&!A[Yp]&&(t.input.lastClick.type=="singleClick"?i="doubleClick":t.input.lastClick.type=="doubleClick"&&(i="tripleClick")),t.input.lastClick={time:r,x:A.clientX,y:A.clientY,type:i};let s=t.posAtCoords(Aa(A));s&&(i=="singleClick"?(t.input.mouseDown&&t.input.mouseDown.done(),t.input.mouseDown=new Tb(t,s,A,!!n)):(i=="doubleClick"?vb:Ib)(t,s.pos,s.inside,A)?A.preventDefault():hr(t,"pointer"))};class Tb{constructor(e,A,n,r){this.view=e,this.pos=A,this.event=n,this.flushed=r,this.delayedSelectionSync=!1,this.mightDrag=null,this.startDoc=e.state.doc,this.selectNode=!!n[Yp],this.allowDefault=n.shiftKey;let i,s;if(A.inside>-1)i=e.state.doc.nodeAt(A.inside),s=A.inside;else{let f=e.state.doc.resolve(A.pos);i=f.parent,s=f.depth?f.before():0}const a=r?null:n.target,c=a?e.docView.nearestDesc(a,!0):null;this.target=c&&c.dom.nodeType==1?c.dom:null;let{selection:u}=e.state;(n.button==0&&i.type.spec.draggable&&i.type.spec.selectable!==!1||u instanceof fe&&u.from<=s&&u.to>s)&&(this.mightDrag={node:i,pos:s,addAttr:!!(this.target&&!this.target.draggable),setUneditable:!!(this.target&&nn&&!this.target.hasAttribute("contentEditable"))}),this.target&&this.mightDrag&&(this.mightDrag.addAttr||this.mightDrag.setUneditable)&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&(this.target.draggable=!0),this.mightDrag.setUneditable&&setTimeout(()=>{this.view.input.mouseDown==this&&this.target.setAttribute("contentEditable","false")},20),this.view.domObserver.start()),e.root.addEventListener("mouseup",this.up=this.up.bind(this)),e.root.addEventListener("mousemove",this.move=this.move.bind(this)),hr(e,"pointer")}done(){this.view.root.removeEventListener("mouseup",this.up),this.view.root.removeEventListener("mousemove",this.move),this.mightDrag&&this.target&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&this.target.removeAttribute("draggable"),this.mightDrag.setUneditable&&this.target.removeAttribute("contentEditable"),this.view.domObserver.start()),this.delayedSelectionSync&&setTimeout(()=>Hn(this.view)),this.view.input.mouseDown=null}up(e){if(this.done(),!this.view.dom.contains(e.target))return;let A=this.pos;this.view.state.doc!=this.startDoc&&(A=this.view.posAtCoords(Aa(e))),this.updateAllowDefault(e),this.allowDefault||!A?hr(this.view,"pointer"):Ub(this.view,A.pos,A.inside,e,this.selectNode)?e.preventDefault():e.button==0&&(this.flushed||rt&&this.mightDrag&&!this.mightDrag.node.isAtom||nt&&!this.view.state.selection.visible&&Math.min(Math.abs(A.pos-this.view.state.selection.from),Math.abs(A.pos-this.view.state.selection.to))<=2)?(Hi(this.view,Fe.near(this.view.state.doc.resolve(A.pos)),"pointer"),e.preventDefault()):hr(this.view,"pointer")}move(e){this.updateAllowDefault(e),hr(this.view,"pointer"),e.buttons==0&&this.done()}updateAllowDefault(e){!this.allowDefault&&(Math.abs(this.event.x-e.clientX)>4||Math.abs(this.event.y-e.clientY)>4)&&(this.allowDefault=!0)}}it.touchstart=t=>{t.input.lastTouch=Date.now(),qc(t),hr(t,"pointer")},it.touchmove=t=>{t.input.lastTouch=Date.now(),hr(t,"pointer")},it.contextmenu=t=>qc(t);function zp(t,e){return t.composing?!0:rt&&Math.abs(e.timeStamp-t.input.compositionEndedAt)<500?(t.input.compositionEndedAt=-2e8,!0):!1}const _b=rn?5e3:-1;st.compositionstart=st.compositionupdate=t=>{if(!t.composing){t.domObserver.flush();let{state:e}=t,A=e.selection.$from;if(e.selection.empty&&(e.storedMarks||!A.textOffset&&A.parentOffset&&A.nodeBefore.marks.some(n=>n.type.spec.inclusive===!1)))t.markCursor=t.state.storedMarks||A.marks(),ta(t,!0),t.markCursor=null;else if(ta(t),nn&&e.selection.empty&&A.parentOffset&&!A.textOffset&&A.nodeBefore.marks.length){let n=t.domSelectionRange();for(let r=n.focusNode,i=n.focusOffset;r&&r.nodeType==1&&i!=0;){let s=i<0?r.lastChild:r.childNodes[i-1];if(!s)break;if(s.nodeType==3){t.domSelection().collapse(s,s.nodeValue.length);break}else r=s,i=-1}}t.input.composing=!0}qp(t,_b)},st.compositionend=(t,e)=>{t.composing&&(t.input.composing=!1,t.input.compositionEndedAt=e.timeStamp,t.input.compositionPendingChanges=t.domObserver.pendingRecords().length?t.input.compositionID:0,t.input.compositionNode=null,t.input.compositionPendingChanges&&Promise.resolve().then(()=>t.domObserver.flush()),t.input.compositionID++,qp(t,20))};function qp(t,e){clearTimeout(t.input.composingTimeout),e>-1&&(t.input.composingTimeout=setTimeout(()=>ta(t),e))}function Zp(t){for(t.composing&&(t.input.composing=!1,t.input.compositionEndedAt=Ob());t.input.compositionNodes.length>0;)t.input.compositionNodes.pop().markParentsDirty()}function xb(t){let e=t.domSelectionRange();if(!e.focusNode)return null;let A=FF(e.focusNode,e.focusOffset),n=bF(e.focusNode,e.focusOffset);if(A&&n&&A!=n){let r=n.pmViewDesc;if(!r||!r.isText(n.nodeValue))return n;if(t.input.compositionNode==n){let i=A.pmViewDesc;if(!(!i||!i.isText(A.nodeValue)))return n}}return A||n}function Ob(){let t=document.createEvent("Event");return t.initEvent("event",!0,!0),t.timeStamp}function ta(t,e=!1){if(!(rn&&t.domObserver.flushingSoon>=0)){if(t.domObserver.forceFlush(),Zp(t),e||t.docView&&t.docView.dirty){let A=Vc(t);return A&&!A.eq(t.state.selection)?t.dispatch(t.state.tr.setSelection(A)):t.updateState(t.state),!0}return!1}}function Lb(t,e){if(!t.dom.parentNode)return;let A=t.dom.parentNode.appendChild(document.createElement("div"));A.appendChild(e),A.style.cssText="position: fixed; left: -10000px; top: 10px";let n=getSelection(),r=document.createRange();r.selectNodeContents(e),t.dom.blur(),n.removeAllRanges(),n.addRange(r),setTimeout(()=>{A.parentNode&&A.parentNode.removeChild(A),t.focus()},50)}const Ns=gt&&cr<15||Oi&&_F<604;it.copy=st.cut=(t,e)=>{let A=e,n=t.state.selection,r=A.type=="cut";if(n.empty)return;let i=Ns?null:A.clipboardData,s=n.content(),{dom:a,text:c}=Rp(t,s);i?(A.preventDefault(),i.clearData(),i.setData("text/html",a.innerHTML),i.setData("text/plain",c)):Lb(t,a),r&&t.dispatch(t.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent","cut"))};function kb(t){return t.openStart==0&&t.openEnd==0&&t.content.childCount==1?t.content.firstChild:null}function Hb(t,e){if(!t.dom.parentNode)return;let A=t.input.shiftKey||t.state.selection.$from.parent.type.spec.code,n=t.dom.parentNode.appendChild(document.createElement(A?"textarea":"div"));A||(n.contentEditable="true"),n.style.cssText="position: fixed; left: -10000px; top: 10px",n.focus();let r=t.input.shiftKey&&t.input.lastKeyCode!=45;setTimeout(()=>{t.focus(),n.parentNode&&n.parentNode.removeChild(n),A?Ds(t,n.value,null,r,e):Ds(t,n.textContent,n.innerHTML,r,e)},50)}function Ds(t,e,A,n,r){let i=Kp(t,e,A,n,t.state.selection.$from);if(t.someProp("handlePaste",c=>c(t,r,i||j.empty)))return!0;if(!i)return!1;let s=kb(i),a=s?t.state.tr.replaceSelectionWith(s,n):t.state.tr.replaceSelection(i);return t.dispatch(a.scrollIntoView().setMeta("paste",!0).setMeta("uiEvent","paste")),!0}function jp(t){let e=t.getData("text/plain")||t.getData("Text");if(e)return e;let A=t.getData("text/uri-list");return A?A.replace(/\r?\n/g," "):""}st.paste=(t,e)=>{let A=e;if(t.composing&&!rn)return;let n=Ns?null:A.clipboardData,r=t.input.shiftKey&&t.input.lastKeyCode!=45;n&&Ds(t,jp(n),n.getData("text/html"),r,A)?A.preventDefault():Hb(t,A)};class eg{constructor(e,A,n){this.slice=e,this.move=A,this.node=n}}const Ag=Mt?"altKey":"ctrlKey";it.dragstart=(t,e)=>{let A=e,n=t.input.mouseDown;if(n&&n.done(),!A.dataTransfer)return;let r=t.state.selection,i=r.empty?null:t.posAtCoords(Aa(A)),s;if(!(i&&i.pos>=r.from&&i.pos<=(r instanceof fe?r.to-1:r.to))){if(n&&n.mightDrag)s=fe.create(t.state.doc,n.mightDrag.pos);else if(A.target&&A.target.nodeType==1){let p=t.docView.nearestDesc(A.target,!0);p&&p.node.type.spec.draggable&&p!=t.docView&&(s=fe.create(t.state.doc,p.posBefore))}}let a=(s||t.state.selection).content(),{dom:c,text:u,slice:f}=Rp(t,a);A.dataTransfer.clearData(),A.dataTransfer.setData(Ns?"Text":"text/html",c.innerHTML),A.dataTransfer.effectAllowed="copyMove",Ns||A.dataTransfer.setData("text/plain",u),t.dragging=new eg(f,!A[Ag],s)},it.dragend=t=>{let e=t.dragging;window.setTimeout(()=>{t.dragging==e&&(t.dragging=null)},50)},st.dragover=st.dragenter=(t,e)=>e.preventDefault(),st.drop=(t,e)=>{let A=e,n=t.dragging;if(t.dragging=null,!A.dataTransfer)return;let r=t.posAtCoords(Aa(A));if(!r)return;let i=t.state.doc.resolve(r.pos),s=n&&n.slice;s?t.someProp("transformPasted",w=>{s=w(s,t)}):s=Kp(t,jp(A.dataTransfer),Ns?null:A.dataTransfer.getData("text/html"),!1,i);let a=!!(n&&!A[Ag]);if(t.someProp("handleDrop",w=>w(t,A,s||j.empty,a))){A.preventDefault();return}if(!s)return;A.preventDefault();let c=s?$h(t.state.doc,i.pos,s):i.pos;c==null&&(c=i.pos);let u=t.state.tr;if(a){let{node:w}=n;w?w.replace(u):u.deleteSelection()}let f=u.mapping.map(c),p=s.openStart==0&&s.openEnd==0&&s.content.childCount==1,g=u.doc;if(p?u.replaceRangeWith(f,f,s.content.firstChild):u.replaceRange(f,f,s),u.doc.eq(g))return;let B=u.doc.resolve(f);if(p&&fe.isSelectable(s.content.firstChild)&&B.nodeAfter&&B.nodeAfter.sameMarkup(s.content.firstChild))u.setSelection(new fe(B));else{let w=u.mapping.map(c);u.mapping.maps[u.mapping.maps.length-1].forEach((Q,b,v,_)=>w=_),u.setSelection(Gc(t,B,u.doc.resolve(w)))}t.focus(),t.dispatch(u.setMeta("uiEvent","drop"))},it.focus=t=>{t.input.lastFocus=Date.now(),t.focused||(t.domObserver.stop(),t.dom.classList.add("ProseMirror-focused"),t.domObserver.start(),t.focused=!0,setTimeout(()=>{t.docView&&t.hasFocus()&&!t.domObserver.currentSelection.eq(t.domSelectionRange())&&Hn(t)},20))},it.blur=(t,e)=>{let A=e;t.focused&&(t.domObserver.stop(),t.dom.classList.remove("ProseMirror-focused"),t.domObserver.start(),A.relatedTarget&&t.dom.contains(A.relatedTarget)&&t.domObserver.currentSelection.clear(),t.focused=!1)},it.beforeinput=(t,e)=>{if(nt&&rn&&e.inputType=="deleteContentBackward"){t.domObserver.flushSoon();let{domChangeCount:n}=t.input;setTimeout(()=>{if(t.input.domChangeCount!=n||(t.dom.blur(),t.focus(),t.someProp("handleKeyDown",i=>i(t,Xr(8,"Backspace")))))return;let{$cursor:r}=t.state.selection;r&&r.pos>0&&t.dispatch(t.state.tr.delete(r.pos-1,r.pos).scrollIntoView())},50)}};for(let t in st)it[t]=st[t];function Ms(t,e){if(t==e)return!0;for(let A in t)if(t[A]!==e[A])return!1;for(let A in e)if(!(A in t))return!1;return!0}class na{constructor(e,A){this.toDOM=e,this.spec=A||Zr,this.side=this.spec.side||0}map(e,A,n,r){let{pos:i,deleted:s}=e.mapResult(A.from+r,this.side<0?-1:1);return s?null:new Kt(i-n,i-n,this)}valid(){return!0}eq(e){return this==e||e instanceof na&&(this.spec.key&&this.spec.key==e.spec.key||this.toDOM==e.toDOM&&Ms(this.spec,e.spec))}destroy(e){this.spec.destroy&&this.spec.destroy(e)}}class pr{constructor(e,A){this.attrs=e,this.spec=A||Zr}map(e,A,n,r){let i=e.map(A.from+r,this.spec.inclusiveStart?-1:1)-n,s=e.map(A.to+r,this.spec.inclusiveEnd?1:-1)-n;return i>=s?null:new Kt(i,s,this)}valid(e,A){return A.from<A.to}eq(e){return this==e||e instanceof pr&&Ms(this.attrs,e.attrs)&&Ms(this.spec,e.spec)}static is(e){return e.type instanceof pr}destroy(){}}class Zc{constructor(e,A){this.attrs=e,this.spec=A||Zr}map(e,A,n,r){let i=e.mapResult(A.from+r,1);if(i.deleted)return null;let s=e.mapResult(A.to+r,-1);return s.deleted||s.pos<=i.pos?null:new Kt(i.pos-n,s.pos-n,this)}valid(e,A){let{index:n,offset:r}=e.content.findIndex(A.from),i;return r==A.from&&!(i=e.child(n)).isText&&r+i.nodeSize==A.to}eq(e){return this==e||e instanceof Zc&&Ms(this.attrs,e.attrs)&&Ms(this.spec,e.spec)}destroy(){}}class Kt{constructor(e,A,n){this.from=e,this.to=A,this.type=n}copy(e,A){return new Kt(e,A,this.type)}eq(e,A=0){return this.type.eq(e.type)&&this.from+A==e.from&&this.to+A==e.to}map(e,A,n){return this.type.map(e,this,A,n)}static widget(e,A,n){return new Kt(e,e,new na(A,n))}static inline(e,A,n,r){return new Kt(e,A,new pr(n,r))}static node(e,A,n,r){return new Kt(e,A,new Zc(n,r))}get spec(){return this.type.spec}get inline(){return this.type instanceof pr}get widget(){return this.type instanceof na}}const Ni=[],Zr={};class IA{constructor(e,A){this.local=e.length?e:Ni,this.children=A.length?A:Ni}static create(e,A){return A.length?ra(A,e,0,Zr):XA}find(e,A,n){let r=[];return this.findInner(e??0,A??1e9,r,0,n),r}findInner(e,A,n,r,i){for(let s=0;s<this.local.length;s++){let a=this.local[s];a.from<=A&&a.to>=e&&(!i||i(a.spec))&&n.push(a.copy(a.from+r,a.to+r))}for(let s=0;s<this.children.length;s+=3)if(this.children[s]<A&&this.children[s+1]>e){let a=this.children[s]+1;this.children[s+2].findInner(e-a,A-a,n,r+a,i)}}map(e,A,n){return this==XA||e.maps.length==0?this:this.mapInner(e,A,0,0,n||Zr)}mapInner(e,A,n,r,i){let s;for(let a=0;a<this.local.length;a++){let c=this.local[a].map(e,n,r);c&&c.type.valid(A,c)?(s||(s=[])).push(c):i.onRemove&&i.onRemove(this.local[a].spec)}return this.children.length?Nb(this.children,s||[],e,A,n,r,i):s?new IA(s.sort(jr),Ni):XA}add(e,A){return A.length?this==XA?IA.create(e,A):this.addInner(e,A,0):this}addInner(e,A,n){let r,i=0;e.forEach((a,c)=>{let u=c+n,f;if(f=ng(A,a,u)){for(r||(r=this.children.slice());i<r.length&&r[i]<c;)i+=3;r[i]==c?r[i+2]=r[i+2].addInner(a,f,u+1):r.splice(i,0,c,c+a.nodeSize,ra(f,a,u+1,Zr)),i+=3}});let s=tg(i?rg(A):A,-n);for(let a=0;a<s.length;a++)s[a].type.valid(e,s[a])||s.splice(a--,1);return new IA(s.length?this.local.concat(s).sort(jr):this.local,r||this.children)}remove(e){return e.length==0||this==XA?this:this.removeInner(e,0)}removeInner(e,A){let n=this.children,r=this.local;for(let i=0;i<n.length;i+=3){let s,a=n[i]+A,c=n[i+1]+A;for(let f=0,p;f<e.length;f++)(p=e[f])&&p.from>a&&p.to<c&&(e[f]=null,(s||(s=[])).push(p));if(!s)continue;n==this.children&&(n=this.children.slice());let u=n[i+2].removeInner(s,a+1);u!=XA?n[i+2]=u:(n.splice(i,3),i-=3)}if(r.length){for(let i=0,s;i<e.length;i++)if(s=e[i])for(let a=0;a<r.length;a++)r[a].eq(s,A)&&(r==this.local&&(r=this.local.slice()),r.splice(a--,1))}return n==this.children&&r==this.local?this:r.length||n.length?new IA(r,n):XA}forChild(e,A){if(this==XA)return this;if(A.isLeaf)return IA.empty;let n,r;for(let a=0;a<this.children.length;a+=3)if(this.children[a]>=e){this.children[a]==e&&(n=this.children[a+2]);break}let i=e+1,s=i+A.content.size;for(let a=0;a<this.local.length;a++){let c=this.local[a];if(c.from<s&&c.to>i&&c.type instanceof pr){let u=Math.max(i,c.from)-i,f=Math.min(s,c.to)-i;u<f&&(r||(r=[])).push(c.copy(u,f))}}if(r){let a=new IA(r.sort(jr),Ni);return n?new gr([a,n]):a}return n||XA}eq(e){if(this==e)return!0;if(!(e instanceof IA)||this.local.length!=e.local.length||this.children.length!=e.children.length)return!1;for(let A=0;A<this.local.length;A++)if(!this.local[A].eq(e.local[A]))return!1;for(let A=0;A<this.children.length;A+=3)if(this.children[A]!=e.children[A]||this.children[A+1]!=e.children[A+1]||!this.children[A+2].eq(e.children[A+2]))return!1;return!0}locals(e){return jc(this.localsInner(e))}localsInner(e){if(this==XA)return Ni;if(e.inlineContent||!this.local.some(pr.is))return this.local;let A=[];for(let n=0;n<this.local.length;n++)this.local[n].type instanceof pr||A.push(this.local[n]);return A}}IA.empty=new IA([],[]),IA.removeOverlap=jc;const XA=IA.empty;class gr{constructor(e){this.members=e}map(e,A){const n=this.members.map(r=>r.map(e,A,Zr));return gr.from(n)}forChild(e,A){if(A.isLeaf)return IA.empty;let n=[];for(let r=0;r<this.members.length;r++){let i=this.members[r].forChild(e,A);i!=XA&&(i instanceof gr?n=n.concat(i.members):n.push(i))}return gr.from(n)}eq(e){if(!(e instanceof gr)||e.members.length!=this.members.length)return!1;for(let A=0;A<this.members.length;A++)if(!this.members[A].eq(e.members[A]))return!1;return!0}locals(e){let A,n=!0;for(let r=0;r<this.members.length;r++){let i=this.members[r].localsInner(e);if(i.length)if(!A)A=i;else{n&&(A=A.slice(),n=!1);for(let s=0;s<i.length;s++)A.push(i[s])}}return A?jc(n?A:A.sort(jr)):Ni}static from(e){switch(e.length){case 0:return XA;case 1:return e[0];default:return new gr(e.every(A=>A instanceof IA)?e:e.reduce((A,n)=>A.concat(n instanceof IA?n:n.members),[]))}}}function Nb(t,e,A,n,r,i,s){let a=t.slice();for(let u=0,f=i;u<A.maps.length;u++){let p=0;A.maps[u].forEach((g,B,w,Q)=>{let b=Q-w-(B-g);for(let v=0;v<a.length;v+=3){let _=a[v+1];if(_<0||g>_+f-p)continue;let S=a[v]+f-p;B>=S?a[v+1]=g<=S?-2:-1:g>=f&&b&&(a[v]+=b,a[v+1]+=b)}p+=b}),f=A.maps[u].map(f,-1)}let c=!1;for(let u=0;u<a.length;u+=3)if(a[u+1]<0){if(a[u+1]==-2){c=!0,a[u+1]=-1;continue}let f=A.map(t[u]+i),p=f-r;if(p<0||p>=n.content.size){c=!0;continue}let g=A.map(t[u+1]+i,-1),B=g-r,{index:w,offset:Q}=n.content.findIndex(p),b=n.maybeChild(w);if(b&&Q==p&&Q+b.nodeSize==B){let v=a[u+2].mapInner(A,b,f+1,t[u]+i+1,s);v!=XA?(a[u]=p,a[u+1]=B,a[u+2]=v):(a[u+1]=-2,c=!0)}else c=!0}if(c){let u=Db(a,t,e,A,r,i,s),f=ra(u,n,0,s);e=f.local;for(let p=0;p<a.length;p+=3)a[p+1]<0&&(a.splice(p,3),p-=3);for(let p=0,g=0;p<f.children.length;p+=3){let B=f.children[p];for(;g<a.length&&a[g]<B;)g+=3;a.splice(g,0,f.children[p],f.children[p+1],f.children[p+2])}}return new IA(e.sort(jr),a)}function tg(t,e){if(!e||!t.length)return t;let A=[];for(let n=0;n<t.length;n++){let r=t[n];A.push(new Kt(r.from+e,r.to+e,r.type))}return A}function Db(t,e,A,n,r,i,s){function a(c,u){for(let f=0;f<c.local.length;f++){let p=c.local[f].map(n,r,u);p?A.push(p):s.onRemove&&s.onRemove(c.local[f].spec)}for(let f=0;f<c.children.length;f+=3)a(c.children[f+2],c.children[f]+u+1)}for(let c=0;c<t.length;c+=3)t[c+1]==-1&&a(t[c+2],e[c]+i+1);return A}function ng(t,e,A){if(e.isLeaf)return null;let n=A+e.nodeSize,r=null;for(let i=0,s;i<t.length;i++)(s=t[i])&&s.from>A&&s.to<n&&((r||(r=[])).push(s),t[i]=null);return r}function rg(t){let e=[];for(let A=0;A<t.length;A++)t[A]!=null&&e.push(t[A]);return e}function ra(t,e,A,n){let r=[],i=!1;e.forEach((a,c)=>{let u=ng(t,a,c+A);if(u){i=!0;let f=ra(u,a,A+c+1,n);f!=XA&&r.push(c,c+a.nodeSize,f)}});let s=tg(i?rg(t):t,-A).sort(jr);for(let a=0;a<s.length;a++)s[a].type.valid(e,s[a])||(n.onRemove&&n.onRemove(s[a].spec),s.splice(a--,1));return s.length||r.length?new IA(s,r):XA}function jr(t,e){return t.from-e.from||t.to-e.to}function jc(t){let e=t;for(let A=0;A<e.length-1;A++){let n=e[A];if(n.from!=n.to)for(let r=A+1;r<e.length;r++){let i=e[r];if(i.from==n.from){i.to!=n.to&&(e==t&&(e=t.slice()),e[r]=i.copy(i.from,n.to),ig(e,r+1,i.copy(n.to,i.to)));continue}else{i.from<n.to&&(e==t&&(e=t.slice()),e[A]=n.copy(n.from,i.from),ig(e,r,n.copy(i.from,n.to)));break}}}return e}function ig(t,e,A){for(;e<t.length&&jr(A,t[e])>0;)e++;t.splice(e,0,A)}function eu(t){let e=[];return t.someProp("decorations",A=>{let n=A(t.state);n&&n!=XA&&e.push(n)}),t.cursorWrapper&&e.push(IA.create(t.state.doc,[t.cursorWrapper.deco])),gr.from(e)}const Mb={childList:!0,characterData:!0,characterDataOldValue:!0,attributes:!0,attributeOldValue:!0,subtree:!0},Rb=gt&&cr<=11;class Kb{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}set(e){this.anchorNode=e.anchorNode,this.anchorOffset=e.anchorOffset,this.focusNode=e.focusNode,this.focusOffset=e.focusOffset}clear(){this.anchorNode=this.focusNode=null}eq(e){return e.anchorNode==this.anchorNode&&e.anchorOffset==this.anchorOffset&&e.focusNode==this.focusNode&&e.focusOffset==this.focusOffset}}class Vb{constructor(e,A){this.view=e,this.handleDOMChange=A,this.queue=[],this.flushingSoon=-1,this.observer=null,this.currentSelection=new Kb,this.onCharData=null,this.suppressingSelectionUpdates=!1,this.observer=window.MutationObserver&&new window.MutationObserver(n=>{for(let r=0;r<n.length;r++)this.queue.push(n[r]);gt&&cr<=11&&n.some(r=>r.type=="childList"&&r.removedNodes.length||r.type=="characterData"&&r.oldValue.length>r.target.nodeValue.length)?this.flushSoon():this.flush()}),Rb&&(this.onCharData=n=>{this.queue.push({target:n.target,type:"characterData",oldValue:n.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this)}flushSoon(){this.flushingSoon<0&&(this.flushingSoon=window.setTimeout(()=>{this.flushingSoon=-1,this.flush()},20))}forceFlush(){this.flushingSoon>-1&&(window.clearTimeout(this.flushingSoon),this.flushingSoon=-1,this.flush())}start(){this.observer&&(this.observer.takeRecords(),this.observer.observe(this.view.dom,Mb)),this.onCharData&&this.view.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.connectSelection()}stop(){if(this.observer){let e=this.observer.takeRecords();if(e.length){for(let A=0;A<e.length;A++)this.queue.push(e[A]);window.setTimeout(()=>this.flush(),20)}this.observer.disconnect()}this.onCharData&&this.view.dom.removeEventListener("DOMCharacterDataModified",this.onCharData),this.disconnectSelection()}connectSelection(){this.view.dom.ownerDocument.addEventListener("selectionchange",this.onSelectionChange)}disconnectSelection(){this.view.dom.ownerDocument.removeEventListener("selectionchange",this.onSelectionChange)}suppressSelectionUpdates(){this.suppressingSelectionUpdates=!0,setTimeout(()=>this.suppressingSelectionUpdates=!1,50)}onSelectionChange(){if(xp(this.view)){if(this.suppressingSelectionUpdates)return Hn(this.view);if(gt&&cr<=11&&!this.view.state.selection.empty){let e=this.view.domSelectionRange();if(e.focusNode&&Jr(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset))return this.flushSoon()}this.flush()}}setCurSelection(){this.currentSelection.set(this.view.domSelectionRange())}ignoreSelectionChange(e){if(!e.focusNode)return!0;let A=new Set,n;for(let i=e.focusNode;i;i=Ts(i))A.add(i);for(let i=e.anchorNode;i;i=Ts(i))if(A.has(i)){n=i;break}let r=n&&this.view.docView.nearestDesc(n);if(r&&r.ignoreMutation({type:"selection",target:n.nodeType==3?n.parentNode:n}))return this.setCurSelection(),!0}pendingRecords(){if(this.observer)for(let e of this.observer.takeRecords())this.queue.push(e);return this.queue}flush(){let{view:e}=this;if(!e.docView||this.flushingSoon>-1)return;let A=this.pendingRecords();A.length&&(this.queue=[]);let n=e.domSelectionRange(),r=!this.suppressingSelectionUpdates&&!this.currentSelection.eq(n)&&xp(e)&&!this.ignoreSelectionChange(n),i=-1,s=-1,a=!1,c=[];if(e.editable)for(let f=0;f<A.length;f++){let p=this.registerMutation(A[f],c);p&&(i=i<0?p.from:Math.min(p.from,i),s=s<0?p.to:Math.max(p.to,s),p.typeOver&&(a=!0))}if(nn&&c.length){let f=c.filter(p=>p.nodeName=="BR");if(f.length==2){let[p,g]=f;p.parentNode&&p.parentNode.parentNode==g.parentNode?g.remove():p.remove()}else{let{focusNode:p}=this.currentSelection;for(let g of f){let B=g.parentNode;B&&B.nodeName=="LI"&&(!p||$b(e,p)!=B)&&g.remove()}}}let u=null;i<0&&r&&e.input.lastFocus>Date.now()-200&&Math.max(e.input.lastTouch,e.input.lastClick.time)<Date.now()-300&&Zo(n)&&(u=Vc(e))&&u.eq(Fe.near(e.state.doc.resolve(0),1))?(e.input.lastFocus=0,Hn(e),this.currentSelection.set(n),e.scrollToSelection()):(i>-1||r)&&(i>-1&&(e.docView.markDirty(i,s),Pb(e)),this.handleDOMChange(i,s,a,c),e.docView&&e.docView.dirty?e.updateState(e.state):this.currentSelection.eq(n)||Hn(e),this.currentSelection.set(n))}registerMutation(e,A){if(A.indexOf(e.target)>-1)return null;let n=this.view.docView.nearestDesc(e.target);if(e.type=="attributes"&&(n==this.view.docView||e.attributeName=="contenteditable"||e.attributeName=="style"&&!e.oldValue&&!e.target.getAttribute("style"))||!n||n.ignoreMutation(e))return null;if(e.type=="childList"){for(let f=0;f<e.addedNodes.length;f++)A.push(e.addedNodes[f]);if(n.contentDOM&&n.contentDOM!=n.dom&&!n.contentDOM.contains(e.target))return{from:n.posBefore,to:n.posAfter};let r=e.previousSibling,i=e.nextSibling;if(gt&&cr<=11&&e.addedNodes.length)for(let f=0;f<e.addedNodes.length;f++){let{previousSibling:p,nextSibling:g}=e.addedNodes[f];(!p||Array.prototype.indexOf.call(e.addedNodes,p)<0)&&(r=p),(!g||Array.prototype.indexOf.call(e.addedNodes,g)<0)&&(i=g)}let s=r&&r.parentNode==e.target?RA(r)+1:0,a=n.localPosFromDOM(e.target,s,-1),c=i&&i.parentNode==e.target?RA(i):e.target.childNodes.length,u=n.localPosFromDOM(e.target,c,1);return{from:a,to:u}}else return e.type=="attributes"?{from:n.posAtStart-n.border,to:n.posAtEnd+n.border}:{from:n.posAtStart,to:n.posAtEnd,typeOver:e.target.nodeValue==e.oldValue}}}let sg=new WeakMap,og=!1;function Pb(t){if(!sg.has(t)&&(sg.set(t,null),["normal","nowrap","pre-line"].indexOf(getComputedStyle(t.dom).whiteSpace)!==-1)){if(t.requiresGeckoHackNode=nn,og)return;console.warn("ProseMirror expects the CSS white-space property to be set, preferably to 'pre-wrap'. It is recommended to load style/prosemirror.css from the prosemirror-view package."),og=!0}}function ag(t,e){let A=e.startContainer,n=e.startOffset,r=e.endContainer,i=e.endOffset,s=t.domAtPos(t.state.selection.anchor);return Jr(s.node,s.offset,r,i)&&([A,n,r,i]=[r,i,A,n]),{anchorNode:A,anchorOffset:n,focusNode:r,focusOffset:i}}function Gb(t,e){if(e.getComposedRanges){let r=e.getComposedRanges(t.root)[0];if(r)return ag(t,r)}let A;function n(r){r.preventDefault(),r.stopImmediatePropagation(),A=r.getTargetRanges()[0]}return t.dom.addEventListener("beforeinput",n,!0),document.execCommand("indent"),t.dom.removeEventListener("beforeinput",n,!0),A?ag(t,A):null}function $b(t,e){for(let A=e.parentNode;A&&A!=t.dom;A=A.parentNode){let n=t.docView.nearestDesc(A,!0);if(n&&n.node.isBlock)return A}return null}function Wb(t,e,A){let{node:n,fromOffset:r,toOffset:i,from:s,to:a}=t.docView.parseRange(e,A),c=t.domSelectionRange(),u,f=c.anchorNode;if(f&&t.dom.contains(f.nodeType==1?f:f.parentNode)&&(u=[{node:f,offset:c.anchorOffset}],Zo(c)||u.push({node:c.focusNode,offset:c.focusOffset})),nt&&t.input.lastKeyCode===8)for(let b=i;b>r;b--){let v=n.childNodes[b-1],_=v.pmViewDesc;if(v.nodeName=="BR"&&!_){i=b;break}if(!_||_.size)break}let p=t.state.doc,g=t.someProp("domParser")||Fi.fromSchema(t.state.schema),B=p.resolve(s),w=null,Q=g.parse(n,{topNode:B.parent,topMatch:B.parent.contentMatchAt(B.index()),topOpen:!0,from:r,to:i,preserveWhitespace:B.parent.type.whitespace=="pre"?"full":!0,findPositions:u,ruleFromNode:Jb,context:B});if(u&&u[0].pos!=null){let b=u[0].pos,v=u[1]&&u[1].pos;v==null&&(v=b),w={anchor:b+s,head:v+s}}return{doc:Q,sel:w,from:s,to:a}}function Jb(t){let e=t.pmViewDesc;if(e)return e.parseRule();if(t.nodeName=="BR"&&t.parentNode){if(rt&&/^(ul|ol)$/i.test(t.parentNode.nodeName)){let A=document.createElement("div");return A.appendChild(document.createElement("li")),{skip:A}}else if(t.parentNode.lastChild==t||rt&&/^(tr|table)$/i.test(t.parentNode.nodeName))return{ignore:!0}}else if(t.nodeName=="IMG"&&t.getAttribute("mark-placeholder"))return{ignore:!0};return null}const Xb=/^(a|abbr|acronym|b|bd[io]|big|br|button|cite|code|data(list)?|del|dfn|em|i|ins|kbd|label|map|mark|meter|output|q|ruby|s|samp|small|span|strong|su[bp]|time|u|tt|var)$/i;function Yb(t,e,A,n,r){let i=t.input.compositionPendingChanges||(t.composing?t.input.compositionID:0);if(t.input.compositionPendingChanges=0,e<0){let D=t.input.lastSelectionTime>Date.now()-50?t.input.lastSelectionOrigin:null,se=Vc(t,D);if(se&&!t.state.selection.eq(se)){if(nt&&rn&&t.input.lastKeyCode===13&&Date.now()-100<t.input.lastKeyCodeTime&&t.someProp("handleKeyDown",ne=>ne(t,Xr(13,"Enter"))))return;let Be=t.state.tr.setSelection(se);D=="pointer"?Be.setMeta("pointer",!0):D=="key"&&Be.scrollIntoView(),i&&Be.setMeta("composition",i),t.dispatch(Be)}return}let s=t.state.doc.resolve(e),a=s.sharedDepth(A);e=s.before(a+1),A=t.state.doc.resolve(A).after(a+1);let c=t.state.selection,u=Wb(t,e,A),f=t.state.doc,p=f.slice(u.from,u.to),g,B;t.input.lastKeyCode===8&&Date.now()-100<t.input.lastKeyCodeTime?(g=t.state.selection.to,B="end"):(g=t.state.selection.from,B="start"),t.input.lastKeyCode=null;let w=Zb(p.content,u.doc.content,u.from,g,B);if((Oi&&t.input.lastIOSEnter>Date.now()-225||rn)&&r.some(D=>D.nodeType==1&&!Xb.test(D.nodeName))&&(!w||w.endA>=w.endB)&&t.someProp("handleKeyDown",D=>D(t,Xr(13,"Enter")))){t.input.lastIOSEnter=0;return}if(!w)if(n&&c instanceof ye&&!c.empty&&c.$head.sameParent(c.$anchor)&&!t.composing&&!(u.sel&&u.sel.anchor!=u.sel.head))w={start:c.from,endA:c.to,endB:c.to};else{if(u.sel){let D=lg(t,t.state.doc,u.sel);if(D&&!D.eq(t.state.selection)){let se=t.state.tr.setSelection(D);i&&se.setMeta("composition",i),t.dispatch(se)}}return}t.input.domChangeCount++,t.state.selection.from<t.state.selection.to&&w.start==w.endB&&t.state.selection instanceof ye&&(w.start>t.state.selection.from&&w.start<=t.state.selection.from+2&&t.state.selection.from>=u.from?w.start=t.state.selection.from:w.endA<t.state.selection.to&&w.endA>=t.state.selection.to-2&&t.state.selection.to<=u.to&&(w.endB+=t.state.selection.to-w.endA,w.endA=t.state.selection.to)),gt&&cr<=11&&w.endB==w.start+1&&w.endA==w.start&&w.start>u.from&&u.doc.textBetween(w.start-u.from-1,w.start-u.from+1)=="  "&&(w.start--,w.endA--,w.endB--);let Q=u.doc.resolveNoCache(w.start-u.from),b=u.doc.resolveNoCache(w.endB-u.from),v=f.resolve(w.start),_=Q.sameParent(b)&&Q.parent.inlineContent&&v.end()>=w.endA,S;if((Oi&&t.input.lastIOSEnter>Date.now()-225&&(!_||r.some(D=>D.nodeName=="DIV"||D.nodeName=="P"))||!_&&Q.pos<u.doc.content.size&&!Q.sameParent(b)&&(S=Fe.findFrom(u.doc.resolve(Q.pos+1),1,!0))&&S.head==b.pos)&&t.someProp("handleKeyDown",D=>D(t,Xr(13,"Enter")))){t.input.lastIOSEnter=0;return}if(t.state.selection.anchor>w.start&&qb(f,w.start,w.endA,Q,b)&&t.someProp("handleKeyDown",D=>D(t,Xr(8,"Backspace")))){rn&&nt&&t.domObserver.suppressSelectionUpdates();return}nt&&rn&&w.endB==w.start&&(t.input.lastAndroidDelete=Date.now()),rn&&!_&&Q.start()!=b.start()&&b.parentOffset==0&&Q.depth==b.depth&&u.sel&&u.sel.anchor==u.sel.head&&u.sel.head==w.endA&&(w.endB-=2,b=u.doc.resolveNoCache(w.endB-u.from),setTimeout(()=>{t.someProp("handleKeyDown",function(D){return D(t,Xr(13,"Enter"))})},20));let E=w.start,L=w.endA,U,N,V;if(_){if(Q.pos==b.pos)gt&&cr<=11&&Q.parentOffset==0&&(t.domObserver.suppressSelectionUpdates(),setTimeout(()=>Hn(t),20)),U=t.state.tr.delete(E,L),N=f.resolve(w.start).marksAcross(f.resolve(w.endA));else if(w.endA==w.endB&&(V=zb(Q.parent.content.cut(Q.parentOffset,b.parentOffset),v.parent.content.cut(v.parentOffset,w.endA-v.start()))))U=t.state.tr,V.type=="add"?U.addMark(E,L,V.mark):U.removeMark(E,L,V.mark);else if(Q.parent.child(Q.index()).isText&&Q.index()==b.index()-(b.textOffset?0:1)){let D=Q.parent.textBetween(Q.parentOffset,b.parentOffset);if(t.someProp("handleTextInput",se=>se(t,E,L,D)))return;U=t.state.tr.insertText(D,E,L)}}if(U||(U=t.state.tr.replace(E,L,u.doc.slice(w.start-u.from,w.endB-u.from))),u.sel){let D=lg(t,U.doc,u.sel);D&&!(nt&&rn&&t.composing&&D.empty&&(w.start!=w.endB||t.input.lastAndroidDelete<Date.now()-100)&&(D.head==E||D.head==U.mapping.map(L)-1)||gt&&D.empty&&D.head==E)&&U.setSelection(D)}N&&U.ensureMarks(N),i&&U.setMeta("composition",i),t.dispatch(U.scrollIntoView())}function lg(t,e,A){return Math.max(A.anchor,A.head)>e.content.size?null:Gc(t,e.resolve(A.anchor),e.resolve(A.head))}function zb(t,e){let A=t.firstChild.marks,n=e.firstChild.marks,r=A,i=n,s,a,c;for(let f=0;f<n.length;f++)r=n[f].removeFromSet(r);for(let f=0;f<A.length;f++)i=A[f].removeFromSet(i);if(r.length==1&&i.length==0)a=r[0],s="add",c=f=>f.mark(a.addToSet(f.marks));else if(r.length==0&&i.length==1)a=i[0],s="remove",c=f=>f.mark(a.removeFromSet(f.marks));else return null;let u=[];for(let f=0;f<e.childCount;f++)u.push(c(e.child(f)));if(Y.from(u).eq(t))return{mark:a,type:s}}function qb(t,e,A,n,r){if(A-e<=r.pos-n.pos||Au(n,!0,!1)<r.pos)return!1;let i=t.resolve(e);if(!n.parent.isTextblock){let a=i.nodeAfter;return a!=null&&A==e+a.nodeSize}if(i.parentOffset<i.parent.content.size||!i.parent.isTextblock)return!1;let s=t.resolve(Au(i,!0,!0));return!s.parent.isTextblock||s.pos>A||Au(s,!0,!1)<A?!1:n.parent.content.cut(n.parentOffset).eq(s.parent.content)}function Au(t,e,A){let n=t.depth,r=e?t.end():t.pos;for(;n>0&&(e||t.indexAfter(n)==t.node(n).childCount);)n--,r++,e=!1;if(A){let i=t.node(n).maybeChild(t.indexAfter(n));for(;i&&!i.isLeaf;)i=i.firstChild,r++}return r}function Zb(t,e,A,n,r){let i=t.findDiffStart(e,A);if(i==null)return null;let{a:s,b:a}=t.findDiffEnd(e,A+t.size,A+e.size);if(r=="end"){let c=Math.max(0,i-Math.min(s,a));n-=s+c-i}if(s<i&&t.size<e.size){let c=n<=i&&n>=s?i-n:0;i-=c,i&&i<e.size&&cg(e.textBetween(i-1,i+1))&&(i+=c?1:-1),a=i+(a-s),s=i}else if(a<i){let c=n<=i&&n>=a?i-n:0;i-=c,i&&i<t.size&&cg(t.textBetween(i-1,i+1))&&(i+=c?1:-1),s=i+(s-a),a=i}return{start:i,endA:s,endB:a}}function cg(t){if(t.length!=2)return!1;let e=t.charCodeAt(0),A=t.charCodeAt(1);return e>=56320&&e<=57343&&A>=55296&&A<=56319}class jb{constructor(e,A){this._root=null,this.focused=!1,this.trackWrites=null,this.mounted=!1,this.markCursor=null,this.cursorWrapper=null,this.lastSelectedViewDesc=void 0,this.input=new Bb,this.prevDirectPlugins=[],this.pluginViews=[],this.requiresGeckoHackNode=!1,this.dragging=null,this._props=A,this.state=A.state,this.directPlugins=A.plugins||[],this.directPlugins.forEach(pg),this.dispatch=this.dispatch.bind(this),this.dom=e&&e.mount||document.createElement("div"),e&&(e.appendChild?e.appendChild(this.dom):typeof e=="function"?e(this.dom):e.mount&&(this.mounted=!0)),this.editable=dg(this),fg(this),this.nodeViews=hg(this),this.docView=Cp(this.state.doc,ug(this),eu(this),this.dom,this),this.domObserver=new Vb(this,(n,r,i,s)=>Yb(this,n,r,i,s)),this.domObserver.start(),wb(this),this.updatePluginViews()}get composing(){return this.input.composing}get props(){if(this._props.state!=this.state){let e=this._props;this._props={};for(let A in e)this._props[A]=e[A];this._props.state=this.state}return this._props}update(e){e.handleDOMEvents!=this._props.handleDOMEvents&&Xc(this);let A=this._props;this._props=e,e.plugins&&(e.plugins.forEach(pg),this.directPlugins=e.plugins),this.updateStateInner(e.state,A)}setProps(e){let A={};for(let n in this._props)A[n]=this._props[n];A.state=this.state;for(let n in e)A[n]=e[n];this.update(A)}updateState(e){this.updateStateInner(e,this._props)}updateStateInner(e,A){var n;let r=this.state,i=!1,s=!1;e.storedMarks&&this.composing&&(Zp(this),s=!0),this.state=e;let a=r.plugins!=e.plugins||this._props.plugins!=A.plugins;if(a||this._props.plugins!=A.plugins||this._props.nodeViews!=A.nodeViews){let B=hg(this);AU(B,this.nodeViews)&&(this.nodeViews=B,i=!0)}(a||A.handleDOMEvents!=this._props.handleDOMEvents)&&Xc(this),this.editable=dg(this),fg(this);let c=eu(this),u=ug(this),f=r.plugins!=e.plugins&&!r.doc.eq(e.doc)?"reset":e.scrollToSelection>r.scrollToSelection?"to selection":"preserve",p=i||!this.docView.matchesNode(e.doc,u,c);(p||!e.selection.eq(r.selection))&&(s=!0);let g=f=="preserve"&&s&&this.dom.style.overflowAnchor==null&&LF(this);if(s){this.domObserver.stop();let B=p&&(gt||nt)&&!this.composing&&!r.selection.empty&&!e.selection.empty&&eU(r.selection,e.selection);if(p){let w=nt?this.trackWrites=this.domSelectionRange().focusNode:null;this.composing&&(this.input.compositionNode=xb(this)),(i||!this.docView.update(e.doc,u,c,this))&&(this.docView.updateOuterDeco(u),this.docView.destroy(),this.docView=Cp(e.doc,u,c,this.dom,this)),w&&!this.trackWrites&&(B=!0)}B||!(this.input.mouseDown&&this.domObserver.currentSelection.eq(this.domSelectionRange())&&rb(this))?Hn(this,B):(Tp(this,e.selection),this.domObserver.setCurSelection()),this.domObserver.start()}this.updatePluginViews(r),!((n=this.dragging)===null||n===void 0)&&n.node&&!r.doc.eq(e.doc)&&this.updateDraggedNode(this.dragging,r),f=="reset"?this.dom.scrollTop=0:f=="to selection"?this.scrollToSelection():g&&kF(g)}scrollToSelection(){let e=this.domSelectionRange().focusNode;if(!this.someProp("handleScrollToSelection",A=>A(this)))if(this.state.selection instanceof fe){let A=this.docView.domAfterPos(this.state.selection.from);A.nodeType==1&&op(this,A.getBoundingClientRect(),e)}else op(this,this.coordsAtPos(this.state.selection.head,1),e)}destroyPluginViews(){let e;for(;e=this.pluginViews.pop();)e.destroy&&e.destroy()}updatePluginViews(e){if(!e||e.plugins!=this.state.plugins||this.directPlugins!=this.prevDirectPlugins){this.prevDirectPlugins=this.directPlugins,this.destroyPluginViews();for(let A=0;A<this.directPlugins.length;A++){let n=this.directPlugins[A];n.spec.view&&this.pluginViews.push(n.spec.view(this))}for(let A=0;A<this.state.plugins.length;A++){let n=this.state.plugins[A];n.spec.view&&this.pluginViews.push(n.spec.view(this))}}else for(let A=0;A<this.pluginViews.length;A++){let n=this.pluginViews[A];n.update&&n.update(this,e)}}updateDraggedNode(e,A){let n=e.node,r=-1;if(this.state.doc.nodeAt(n.from)==n.node)r=n.from;else{let i=n.from+(this.state.doc.content.size-A.doc.content.size);(i>0&&this.state.doc.nodeAt(i))==n.node&&(r=i)}this.dragging=new eg(e.slice,e.move,r<0?void 0:fe.create(this.state.doc,r))}someProp(e,A){let n=this._props&&this._props[e],r;if(n!=null&&(r=A?A(n):n))return r;for(let s=0;s<this.directPlugins.length;s++){let a=this.directPlugins[s].props[e];if(a!=null&&(r=A?A(a):a))return r}let i=this.state.plugins;if(i)for(let s=0;s<i.length;s++){let a=i[s].props[e];if(a!=null&&(r=A?A(a):a))return r}}hasFocus(){if(gt){let e=this.root.activeElement;if(e==this.dom)return!0;if(!e||!this.dom.contains(e))return!1;for(;e&&this.dom!=e&&this.dom.contains(e);){if(e.contentEditable=="false")return!1;e=e.parentElement}return!0}return this.root.activeElement==this.dom}focus(){this.domObserver.stop(),this.editable&&HF(this.dom),Hn(this),this.domObserver.start()}get root(){let e=this._root;if(e==null){for(let A=this.dom.parentNode;A;A=A.parentNode)if(A.nodeType==9||A.nodeType==11&&A.host)return A.getSelection||(Object.getPrototypeOf(A).getSelection=()=>A.ownerDocument.getSelection()),this._root=A}return e||document}updateRoot(){this._root=null}posAtCoords(e){return KF(this,e)}coordsAtPos(e,A=1){return dp(this,e,A)}domAtPos(e,A=0){return this.docView.domFromPos(e,A)}nodeDOM(e){let A=this.docView.descAt(e);return A?A.nodeDOM:null}posAtDOM(e,A,n=-1){let r=this.docView.posFromDOM(e,A,n);if(r==null)throw new RangeError("DOM position not inside the editor");return r}endOfTextblock(e,A){return WF(this,A||this.state,e)}pasteHTML(e,A){return Ds(this,"",e,!1,A||new ClipboardEvent("paste"))}pasteText(e,A){return Ds(this,e,null,!0,A||new ClipboardEvent("paste"))}destroy(){this.docView&&(Cb(this),this.destroyPluginViews(),this.mounted?(this.docView.update(this.state.doc,[],eu(this),this),this.dom.textContent=""):this.dom.parentNode&&this.dom.parentNode.removeChild(this.dom),this.docView.destroy(),this.docView=null,EF())}get isDestroyed(){return this.docView==null}dispatchEvent(e){return Eb(this,e)}dispatch(e){let A=this._props.dispatchTransaction;A?A.call(this,e):this.updateState(this.state.apply(e))}domSelectionRange(){let e=this.domSelection();return rt&&this.root.nodeType===11&&vF(this.dom.ownerDocument)==this.dom&&Gb(this,e)||e}domSelection(){return this.root.getSelection()}}function ug(t){let e=Object.create(null);return e.class="ProseMirror",e.contenteditable=String(t.editable),t.someProp("attributes",A=>{if(typeof A=="function"&&(A=A(t.state)),A)for(let n in A)n=="class"?e.class+=" "+A[n]:n=="style"?e.style=(e.style?e.style+";":"")+A[n]:!e[n]&&n!="contenteditable"&&n!="nodeName"&&(e[n]=String(A[n]))}),e.translate||(e.translate="no"),[Kt.node(0,t.state.doc.content.size,e)]}function fg(t){if(t.markCursor){let e=document.createElement("img");e.className="ProseMirror-separator",e.setAttribute("mark-placeholder","true"),e.setAttribute("alt",""),t.cursorWrapper={dom:e,deco:Kt.widget(t.state.selection.head,e,{raw:!0,marks:t.markCursor})}}else t.cursorWrapper=null}function dg(t){return!t.someProp("editable",e=>e(t.state)===!1)}function eU(t,e){let A=Math.min(t.$anchor.sharedDepth(t.head),e.$anchor.sharedDepth(e.head));return t.$anchor.start(A)!=e.$anchor.start(A)}function hg(t){let e=Object.create(null);function A(n){for(let r in n)Object.prototype.hasOwnProperty.call(e,r)||(e[r]=n[r])}return t.someProp("nodeViews",A),t.someProp("markViews",A),e}function AU(t,e){let A=0,n=0;for(let r in t){if(t[r]!=e[r])return!0;A++}for(let r in e)n++;return A!=n}function pg(t){if(t.spec.state||t.spec.filterTransaction||t.spec.appendTransaction)throw new RangeError("Plugins passed directly to the view must not have a state component")}for(var mr={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},ia={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},tU=typeof navigator<"u"&&/Mac/.test(navigator.platform),nU=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),KA=0;KA<10;KA++)mr[48+KA]=mr[96+KA]=String(KA);for(var KA=1;KA<=24;KA++)mr[KA+111]="F"+KA;for(var KA=65;KA<=90;KA++)mr[KA]=String.fromCharCode(KA+32),ia[KA]=String.fromCharCode(KA);for(var tu in mr)ia.hasOwnProperty(tu)||(ia[tu]=mr[tu]);function rU(t){var e=tU&&t.metaKey&&t.shiftKey&&!t.ctrlKey&&!t.altKey||nU&&t.shiftKey&&t.key&&t.key.length==1||t.key=="Unidentified",A=!e&&t.key||(t.shiftKey?ia:mr)[t.keyCode]||t.key||"Unidentified";return A=="Esc"&&(A="Escape"),A=="Del"&&(A="Delete"),A=="Left"&&(A="ArrowLeft"),A=="Up"&&(A="ArrowUp"),A=="Right"&&(A="ArrowRight"),A=="Down"&&(A="ArrowDown"),A}const iU=typeof navigator<"u"?/Mac|iP(hone|[oa]d)/.test(navigator.platform):!1;function sU(t){let e=t.split(/-(?!$)/),A=e[e.length-1];A=="Space"&&(A=" ");let n,r,i,s;for(let a=0;a<e.length-1;a++){let c=e[a];if(/^(cmd|meta|m)$/i.test(c))s=!0;else if(/^a(lt)?$/i.test(c))n=!0;else if(/^(c|ctrl|control)$/i.test(c))r=!0;else if(/^s(hift)?$/i.test(c))i=!0;else if(/^mod$/i.test(c))iU?s=!0:r=!0;else throw new Error("Unrecognized modifier name: "+c)}return n&&(A="Alt-"+A),r&&(A="Ctrl-"+A),s&&(A="Meta-"+A),i&&(A="Shift-"+A),A}function oU(t){let e=Object.create(null);for(let A in t)e[sU(A)]=t[A];return e}function nu(t,e,A=!0){return e.altKey&&(t="Alt-"+t),e.ctrlKey&&(t="Ctrl-"+t),e.metaKey&&(t="Meta-"+t),A&&e.shiftKey&&(t="Shift-"+t),t}function aU(t){return new pt({props:{handleKeyDown:gg(t)}})}function gg(t){let e=oU(t);return function(A,n){let r=rU(n),i,s=e[nu(r,n)];if(s&&s(A.state,A.dispatch,A))return!0;if(r.length==1&&r!=" "){if(n.shiftKey){let a=e[nu(r,n,!1)];if(a&&a(A.state,A.dispatch,A))return!0}if((n.shiftKey||n.altKey||n.metaKey||r.charCodeAt(0)>127)&&(i=mr[n.keyCode])&&i!=r){let a=e[nu(i,n)];if(a&&a(A.state,A.dispatch,A))return!0}}return!1}}const lU=(t,e)=>t.selection.empty?!1:(e&&e(t.tr.deleteSelection().scrollIntoView()),!0);function mg(t,e){let{$cursor:A}=t.selection;return!A||(e?!e.endOfTextblock("backward",t):A.parentOffset>0)?null:A}const cU=(t,e,A)=>{let n=mg(t,A);if(!n)return!1;let r=ru(n);if(!r){let s=n.blockRange(),a=s&&vi(s);return a==null?!1:(e&&e(t.tr.lift(s,a).scrollIntoView()),!0)}let i=r.nodeBefore;if(!i.type.spec.isolating&&yg(t,r,e))return!0;if(n.parent.content.size==0&&(Di(i,"end")||fe.isSelectable(i))){let s=Yo(t.doc,n.before(),n.after(),j.empty);if(s&&s.slice.size<s.to-s.from){if(e){let a=t.tr.step(s);a.setSelection(Di(i,"end")?Fe.findFrom(a.doc.resolve(a.mapping.map(r.pos,-1)),-1):fe.create(a.doc,r.pos-i.nodeSize)),e(a.scrollIntoView())}return!0}}return i.isAtom&&r.depth==n.depth-1?(e&&e(t.tr.delete(r.pos-i.nodeSize,r.pos).scrollIntoView()),!0):!1},uU=(t,e,A)=>{let n=mg(t,A);if(!n)return!1;let r=ru(n);return r?Bg(t,r,e):!1},fU=(t,e,A)=>{let n=wg(t,A);if(!n)return!1;let r=iu(n);return r?Bg(t,r,e):!1};function Bg(t,e,A){let n=e.nodeBefore,r=n,i=e.pos-1;for(;!r.isTextblock;i--){if(r.type.spec.isolating)return!1;let f=r.lastChild;if(!f)return!1;r=f}let s=e.nodeAfter,a=s,c=e.pos+1;for(;!a.isTextblock;c++){if(a.type.spec.isolating)return!1;let f=a.firstChild;if(!f)return!1;a=f}let u=Yo(t.doc,i,c,j.empty);if(!u||u.from!=i||u instanceof xA&&u.slice.size>=c-i)return!1;if(A){let f=t.tr.step(u);f.setSelection(ye.create(f.doc,i)),A(f.scrollIntoView())}return!0}function Di(t,e,A=!1){for(let n=t;n;n=e=="start"?n.firstChild:n.lastChild){if(n.isTextblock)return!0;if(A&&n.childCount!=1)return!1}return!1}const dU=(t,e,A)=>{let{$head:n,empty:r}=t.selection,i=n;if(!r)return!1;if(n.parent.isTextblock){if(A?!A.endOfTextblock("backward",t):n.parentOffset>0)return!1;i=ru(n)}let s=i&&i.nodeBefore;return!s||!fe.isSelectable(s)?!1:(e&&e(t.tr.setSelection(fe.create(t.doc,i.pos-s.nodeSize)).scrollIntoView()),!0)};function ru(t){if(!t.parent.type.spec.isolating)for(let e=t.depth-1;e>=0;e--){if(t.index(e)>0)return t.doc.resolve(t.before(e+1));if(t.node(e).type.spec.isolating)break}return null}function wg(t,e){let{$cursor:A}=t.selection;return!A||(e?!e.endOfTextblock("forward",t):A.parentOffset<A.parent.content.size)?null:A}const hU=(t,e,A)=>{let n=wg(t,A);if(!n)return!1;let r=iu(n);if(!r)return!1;let i=r.nodeAfter;if(yg(t,r,e))return!0;if(n.parent.content.size==0&&(Di(i,"start")||fe.isSelectable(i))){let s=Yo(t.doc,n.before(),n.after(),j.empty);if(s&&s.slice.size<s.to-s.from){if(e){let a=t.tr.step(s);a.setSelection(Di(i,"start")?Fe.findFrom(a.doc.resolve(a.mapping.map(r.pos)),1):fe.create(a.doc,a.mapping.map(r.pos))),e(a.scrollIntoView())}return!0}}return i.isAtom&&r.depth==n.depth-1?(e&&e(t.tr.delete(r.pos,r.pos+i.nodeSize).scrollIntoView()),!0):!1},pU=(t,e,A)=>{let{$head:n,empty:r}=t.selection,i=n;if(!r)return!1;if(n.parent.isTextblock){if(A?!A.endOfTextblock("forward",t):n.parentOffset<n.parent.content.size)return!1;i=iu(n)}let s=i&&i.nodeAfter;return!s||!fe.isSelectable(s)?!1:(e&&e(t.tr.setSelection(fe.create(t.doc,i.pos)).scrollIntoView()),!0)};function iu(t){if(!t.parent.type.spec.isolating)for(let e=t.depth-1;e>=0;e--){let A=t.node(e);if(t.index(e)+1<A.childCount)return t.doc.resolve(t.after(e+1));if(A.type.spec.isolating)break}return null}const gU=(t,e)=>{let A=t.selection,n=A instanceof fe,r;if(n){if(A.node.isTextblock||!ar(t.doc,A.from))return!1;r=A.from}else if(r=Xo(t.doc,A.from,-1),r==null)return!1;if(e){let i=t.tr.join(r);n&&i.setSelection(fe.create(i.doc,r-t.doc.resolve(r).nodeBefore.nodeSize)),e(i.scrollIntoView())}return!0},mU=(t,e)=>{let A=t.selection,n;if(A instanceof fe){if(A.node.isTextblock||!ar(t.doc,A.to))return!1;n=A.to}else if(n=Xo(t.doc,A.to,1),n==null)return!1;return e&&e(t.tr.join(n).scrollIntoView()),!0},BU=(t,e)=>{let{$from:A,$to:n}=t.selection,r=A.blockRange(n),i=r&&vi(r);return i==null?!1:(e&&e(t.tr.lift(r,i).scrollIntoView()),!0)},wU=(t,e)=>{let{$head:A,$anchor:n}=t.selection;return!A.parent.type.spec.code||!A.sameParent(n)?!1:(e&&e(t.tr.insertText(`
14
- `).scrollIntoView()),!0)};function Cg(t){for(let e=0;e<t.edgeCount;e++){let{type:A}=t.edge(e);if(A.isTextblock&&!A.hasRequiredAttrs())return A}return null}const CU=(t,e)=>{let{$head:A,$anchor:n}=t.selection;if(!A.parent.type.spec.code||!A.sameParent(n))return!1;let r=A.node(-1),i=A.indexAfter(-1),s=Cg(r.contentMatchAt(i));if(!s||!r.canReplaceWith(i,i,s))return!1;if(e){let a=A.after(),c=t.tr.replaceWith(a,a,s.createAndFill());c.setSelection(Fe.near(c.doc.resolve(a),1)),e(c.scrollIntoView())}return!0},yU=(t,e)=>{let A=t.selection,{$from:n,$to:r}=A;if(A instanceof tn||n.parent.inlineContent||r.parent.inlineContent)return!1;let i=Cg(r.parent.contentMatchAt(r.indexAfter()));if(!i||!i.isTextblock)return!1;if(e){let s=(!n.parentOffset&&r.index()<r.parent.childCount?n:r).pos,a=t.tr.insert(s,i.createAndFill());a.setSelection(ye.create(a.doc,s+1)),e(a.scrollIntoView())}return!0},EU=(t,e)=>{let{$cursor:A}=t.selection;if(!A||A.parent.content.size)return!1;if(A.depth>1&&A.after()!=A.end(-1)){let i=A.before();if(Ii(t.doc,i))return e&&e(t.tr.split(i).scrollIntoView()),!0}let n=A.blockRange(),r=n&&vi(n);return r==null?!1:(e&&e(t.tr.lift(n,r).scrollIntoView()),!0)},QU=(t,e)=>{let{$from:A,to:n}=t.selection,r,i=A.sharedDepth(n);return i==0?!1:(r=A.before(i),e&&e(t.tr.setSelection(fe.create(t.doc,r))),!0)};function FU(t,e,A){let n=e.nodeBefore,r=e.nodeAfter,i=e.index();return!n||!r||!n.type.compatibleContent(r.type)?!1:!n.content.size&&e.parent.canReplace(i-1,i)?(A&&A(t.tr.delete(e.pos-n.nodeSize,e.pos).scrollIntoView()),!0):!e.parent.canReplace(i,i+1)||!(r.isTextblock||ar(t.doc,e.pos))?!1:(A&&A(t.tr.clearIncompatible(e.pos,n.type,n.contentMatchAt(n.childCount)).join(e.pos).scrollIntoView()),!0)}function yg(t,e,A){let n=e.nodeBefore,r=e.nodeAfter,i,s;if(n.type.spec.isolating||r.type.spec.isolating)return!1;if(FU(t,e,A))return!0;let a=e.parent.canReplace(e.index(),e.index()+1);if(a&&(i=(s=n.contentMatchAt(n.childCount)).findWrapping(r.type))&&s.matchType(i[0]||r.type).validEnd){if(A){let p=e.pos+r.nodeSize,g=Y.empty;for(let Q=i.length-1;Q>=0;Q--)g=Y.from(i[Q].create(null,g));g=Y.from(n.copy(g));let B=t.tr.step(new OA(e.pos-1,p,e.pos,p,new j(g,1,0),i.length,!0)),w=p+2*i.length;ar(B.doc,w)&&B.join(w),A(B.scrollIntoView())}return!0}let c=Fe.findFrom(e,1),u=c&&c.$from.blockRange(c.$to),f=u&&vi(u);if(f!=null&&f>=e.depth)return A&&A(t.tr.lift(u,f).scrollIntoView()),!0;if(a&&Di(r,"start",!0)&&Di(n,"end")){let p=n,g=[];for(;g.push(p),!p.isTextblock;)p=p.lastChild;let B=r,w=1;for(;!B.isTextblock;B=B.firstChild)w++;if(p.canReplace(p.childCount,p.childCount,B.content)){if(A){let Q=Y.empty;for(let v=g.length-1;v>=0;v--)Q=Y.from(g[v].copy(Q));let b=t.tr.step(new OA(e.pos-g.length,e.pos+r.nodeSize,e.pos+w,e.pos+r.nodeSize-w,new j(Q,g.length,0),0,!0));A(b.scrollIntoView())}return!0}}return!1}function Eg(t){return function(e,A){let n=e.selection,r=t<0?n.$from:n.$to,i=r.depth;for(;r.node(i).isInline;){if(!i)return!1;i--}return r.node(i).isTextblock?(A&&A(e.tr.setSelection(ye.create(e.doc,t<0?r.start(i):r.end(i)))),!0):!1}}const bU=Eg(-1),UU=Eg(1);function vU(t,e=null){return function(A,n){let{$from:r,$to:i}=A.selection,s=r.blockRange(i),a=s&&Uc(s,t,e);return a?(n&&n(A.tr.wrap(s,a).scrollIntoView()),!0):!1}}function Qg(t,e=null){return function(A,n){let r=!1;for(let i=0;i<A.selection.ranges.length&&!r;i++){let{$from:{pos:s},$to:{pos:a}}=A.selection.ranges[i];A.doc.nodesBetween(s,a,(c,u)=>{if(r)return!1;if(!(!c.isTextblock||c.hasMarkup(t,e)))if(c.type==t)r=!0;else{let f=A.doc.resolve(u),p=f.index();r=f.parent.canReplaceWith(p,p+1,t)}})}if(!r)return!1;if(n){let i=A.tr;for(let s=0;s<A.selection.ranges.length;s++){let{$from:{pos:a},$to:{pos:c}}=A.selection.ranges[s];i.setBlockType(a,c,t,e)}n(i.scrollIntoView())}return!0}}typeof navigator<"u"?/Mac|iP(hone|[oa]d)/.test(navigator.platform):typeof os<"u"&&os.platform&&os.platform()=="darwin";function IU(t,e=null){return function(A,n){let{$from:r,$to:i}=A.selection,s=r.blockRange(i),a=!1,c=s;if(!s)return!1;if(s.depth>=2&&r.node(s.depth-1).type.compatibleContent(t)&&s.startIndex==0){if(r.index(s.depth-1)==0)return!1;let f=A.doc.resolve(s.start-2);c=new Ko(f,f,s.depth),s.endIndex<s.parent.childCount&&(s=new Ko(r,A.doc.resolve(i.end(s.depth)),s.depth)),a=!0}let u=Uc(c,t,e,s);return u?(n&&n(SU(A.tr,s,u,a,t).scrollIntoView()),!0):!1}}function SU(t,e,A,n,r){let i=Y.empty;for(let f=A.length-1;f>=0;f--)i=Y.from(A[f].type.create(A[f].attrs,i));t.step(new OA(e.start-(n?2:0),e.end,e.start,e.end,new j(i,0,0),A.length,!0));let s=0;for(let f=0;f<A.length;f++)A[f].type==r&&(s=f+1);let a=A.length-s,c=e.start+A.length-(n?2:0),u=e.parent;for(let f=e.startIndex,p=e.endIndex,g=!0;f<p;f++,g=!1)!g&&Ii(t.doc,c,a)&&(t.split(c,a),c+=2*a),c+=u.child(f).nodeSize;return t}function TU(t){return function(e,A){let{$from:n,$to:r}=e.selection,i=n.blockRange(r,s=>s.childCount>0&&s.firstChild.type==t);return i?A?n.node(i.depth-1).type==t?_U(e,A,t,i):xU(e,A,i):!0:!1}}function _U(t,e,A,n){let r=t.tr,i=n.end,s=n.$to.end(n.depth);i<s&&(r.step(new OA(i-1,s,i,s,new j(Y.from(A.create(null,n.parent.copy())),1,0),1,!0)),n=new Ko(r.doc.resolve(n.$from.pos),r.doc.resolve(s),n.depth));const a=vi(n);if(a==null)return!1;r.lift(n,a);let c=r.mapping.map(i,-1)-1;return ar(r.doc,c)&&r.join(c),e(r.scrollIntoView()),!0}function xU(t,e,A){let n=t.tr,r=A.parent;for(let B=A.end,w=A.endIndex-1,Q=A.startIndex;w>Q;w--)B-=r.child(w).nodeSize,n.delete(B-1,B+1);let i=n.doc.resolve(A.start),s=i.nodeAfter;if(n.mapping.map(A.end)!=A.start+i.nodeAfter.nodeSize)return!1;let a=A.startIndex==0,c=A.endIndex==r.childCount,u=i.node(-1),f=i.index(-1);if(!u.canReplace(f+(a?0:1),f+1,s.content.append(c?Y.empty:Y.from(r))))return!1;let p=i.pos,g=p+s.nodeSize;return n.step(new OA(p-(a?1:0),g+(c?1:0),p+1,g-1,new j((a?Y.empty:Y.from(r.copy(Y.empty))).append(c?Y.empty:Y.from(r.copy(Y.empty))),a?0:1,c?0:1),a?0:1)),e(n.scrollIntoView()),!0}function OU(t){return function(e,A){let{$from:n,$to:r}=e.selection,i=n.blockRange(r,u=>u.childCount>0&&u.firstChild.type==t);if(!i)return!1;let s=i.startIndex;if(s==0)return!1;let a=i.parent,c=a.child(s-1);if(c.type!=t)return!1;if(A){let u=c.lastChild&&c.lastChild.type==a.type,f=Y.from(u?t.create():null),p=new j(Y.from(t.create(null,Y.from(a.type.create(null,f)))),u?3:1,0),g=i.start,B=i.end;A(e.tr.step(new OA(g-(u?3:1),B,g,B,p,1,!0)).scrollIntoView())}return!0}}function sa(t){const{state:e,transaction:A}=t;let{selection:n}=A,{doc:r}=A,{storedMarks:i}=A;return{...e,apply:e.apply.bind(e),applyTransaction:e.applyTransaction.bind(e),plugins:e.plugins,schema:e.schema,reconfigure:e.reconfigure.bind(e),toJSON:e.toJSON.bind(e),get storedMarks(){return i},get selection(){return n},get doc(){return r},get tr(){return n=A.selection,r=A.doc,i=A.storedMarks,A}}}class oa{constructor(e){this.editor=e.editor,this.rawCommands=this.editor.extensionManager.commands,this.customState=e.state}get hasCustomState(){return!!this.customState}get state(){return this.customState||this.editor.state}get commands(){const{rawCommands:e,editor:A,state:n}=this,{view:r}=A,{tr:i}=n,s=this.buildProps(i);return Object.fromEntries(Object.entries(e).map(([a,c])=>[a,(...f)=>{const p=c(...f)(s);return!i.getMeta("preventDispatch")&&!this.hasCustomState&&r.dispatch(i),p}]))}get chain(){return()=>this.createChain()}get can(){return()=>this.createCan()}createChain(e,A=!0){const{rawCommands:n,editor:r,state:i}=this,{view:s}=r,a=[],c=!!e,u=e||i.tr,f=()=>(!c&&A&&!u.getMeta("preventDispatch")&&!this.hasCustomState&&s.dispatch(u),a.every(g=>g===!0)),p={...Object.fromEntries(Object.entries(n).map(([g,B])=>[g,(...Q)=>{const b=this.buildProps(u,A),v=B(...Q)(b);return a.push(v),p}])),run:f};return p}createCan(e){const{rawCommands:A,state:n}=this,r=!1,i=e||n.tr,s=this.buildProps(i,r);return{...Object.fromEntries(Object.entries(A).map(([c,u])=>[c,(...f)=>u(...f)({...s,dispatch:void 0})])),chain:()=>this.createChain(i,r)}}buildProps(e,A=!0){const{rawCommands:n,editor:r,state:i}=this,{view:s}=r,a={tr:e,editor:r,view:s,state:sa({state:i,transaction:e}),dispatch:A?()=>{}:void 0,chain:()=>this.createChain(e,A),can:()=>this.createCan(e),get commands(){return Object.fromEntries(Object.entries(n).map(([c,u])=>[c,(...f)=>u(...f)(a)]))}};return a}}class LU{constructor(){this.callbacks={}}on(e,A){return this.callbacks[e]||(this.callbacks[e]=[]),this.callbacks[e].push(A),this}emit(e,...A){const n=this.callbacks[e];return n&&n.forEach(r=>r.apply(this,A)),this}off(e,A){const n=this.callbacks[e];return n&&(A?this.callbacks[e]=n.filter(r=>r!==A):delete this.callbacks[e]),this}removeAllListeners(){this.callbacks={}}}function ae(t,e,A){return t.config[e]===void 0&&t.parent?ae(t.parent,e,A):typeof t.config[e]=="function"?t.config[e].bind({...A,parent:t.parent?ae(t.parent,e,A):null}):t.config[e]}function aa(t){const e=t.filter(r=>r.type==="extension"),A=t.filter(r=>r.type==="node"),n=t.filter(r=>r.type==="mark");return{baseExtensions:e,nodeExtensions:A,markExtensions:n}}function Fg(t){const e=[],{nodeExtensions:A,markExtensions:n}=aa(t),r=[...A,...n],i={default:null,rendered:!0,renderHTML:null,parseHTML:null,keepOnSplit:!0,isRequired:!1};return t.forEach(s=>{const a={name:s.name,options:s.options,storage:s.storage},c=ae(s,"addGlobalAttributes",a);if(!c)return;c().forEach(f=>{f.types.forEach(p=>{Object.entries(f.attributes).forEach(([g,B])=>{e.push({type:p,name:g,attribute:{...i,...B}})})})})}),r.forEach(s=>{const a={name:s.name,options:s.options,storage:s.storage},c=ae(s,"addAttributes",a);if(!c)return;const u=c();Object.entries(u).forEach(([f,p])=>{const g={...i,...p};typeof(g==null?void 0:g.default)=="function"&&(g.default=g.default()),g!=null&&g.isRequired&&(g==null?void 0:g.default)===void 0&&delete g.default,e.push({type:s.name,name:f,attribute:g})})}),e}function LA(t,e){if(typeof t=="string"){if(!e.nodes[t])throw Error(`There is no node type named '${t}'. Maybe you forgot to add the extension?`);return e.nodes[t]}return t}function FA(...t){return t.filter(e=>!!e).reduce((e,A)=>{const n={...e};return Object.entries(A).forEach(([r,i])=>{if(!n[r]){n[r]=i;return}if(r==="class"){const a=i?i.split(" "):[],c=n[r]?n[r].split(" "):[],u=a.filter(f=>!c.includes(f));n[r]=[...c,...u].join(" ")}else r==="style"?n[r]=[n[r],i].join("; "):n[r]=i}),n},{})}function su(t,e){return e.filter(A=>A.attribute.rendered).map(A=>A.attribute.renderHTML?A.attribute.renderHTML(t.attrs)||{}:{[A.name]:t.attrs[A.name]}).reduce((A,n)=>FA(A,n),{})}function bg(t){return typeof t=="function"}function be(t,e=void 0,...A){return bg(t)?e?t.bind(e)(...A):t(...A):t}function kU(t={}){return Object.keys(t).length===0&&t.constructor===Object}function HU(t){return typeof t!="string"?t:t.match(/^[+-]?(?:\d*\.)?\d+$/)?Number(t):t==="true"?!0:t==="false"?!1:t}function Ug(t,e){return t.style?t:{...t,getAttrs:A=>{const n=t.getAttrs?t.getAttrs(A):t.attrs;if(n===!1)return!1;const r=e.reduce((i,s)=>{const a=s.attribute.parseHTML?s.attribute.parseHTML(A):HU(A.getAttribute(s.name));return a==null?i:{...i,[s.name]:a}},{});return{...n,...r}}}}function vg(t){return Object.fromEntries(Object.entries(t).filter(([e,A])=>e==="attrs"&&kU(A)?!1:A!=null))}function NU(t,e){var A;const n=Fg(t),{nodeExtensions:r,markExtensions:i}=aa(t),s=(A=r.find(u=>ae(u,"topNode")))===null||A===void 0?void 0:A.name,a=Object.fromEntries(r.map(u=>{const f=n.filter(v=>v.type===u.name),p={name:u.name,options:u.options,storage:u.storage,editor:e},g=t.reduce((v,_)=>{const S=ae(_,"extendNodeSchema",p);return{...v,...S?S(u):{}}},{}),B=vg({...g,content:be(ae(u,"content",p)),marks:be(ae(u,"marks",p)),group:be(ae(u,"group",p)),inline:be(ae(u,"inline",p)),atom:be(ae(u,"atom",p)),selectable:be(ae(u,"selectable",p)),draggable:be(ae(u,"draggable",p)),code:be(ae(u,"code",p)),defining:be(ae(u,"defining",p)),isolating:be(ae(u,"isolating",p)),attrs:Object.fromEntries(f.map(v=>{var _;return[v.name,{default:(_=v==null?void 0:v.attribute)===null||_===void 0?void 0:_.default}]}))}),w=be(ae(u,"parseHTML",p));w&&(B.parseDOM=w.map(v=>Ug(v,f)));const Q=ae(u,"renderHTML",p);Q&&(B.toDOM=v=>Q({node:v,HTMLAttributes:su(v,f)}));const b=ae(u,"renderText",p);return b&&(B.toText=b),[u.name,B]})),c=Object.fromEntries(i.map(u=>{const f=n.filter(b=>b.type===u.name),p={name:u.name,options:u.options,storage:u.storage,editor:e},g=t.reduce((b,v)=>{const _=ae(v,"extendMarkSchema",p);return{...b,..._?_(u):{}}},{}),B=vg({...g,inclusive:be(ae(u,"inclusive",p)),excludes:be(ae(u,"excludes",p)),group:be(ae(u,"group",p)),spanning:be(ae(u,"spanning",p)),code:be(ae(u,"code",p)),attrs:Object.fromEntries(f.map(b=>{var v;return[b.name,{default:(v=b==null?void 0:b.attribute)===null||v===void 0?void 0:v.default}]}))}),w=be(ae(u,"parseHTML",p));w&&(B.parseDOM=w.map(b=>Ug(b,f)));const Q=ae(u,"renderHTML",p);return Q&&(B.toDOM=b=>Q({mark:b,HTMLAttributes:su(b,f)})),[u.name,B]}));return new RQ({topNode:s,nodes:a,marks:c})}function ou(t,e){return e.nodes[t]||e.marks[t]||null}function Ig(t,e){return Array.isArray(e)?e.some(A=>(typeof A=="string"?A:A.name)===t.name):e}const DU=(t,e=500)=>{let A="";const n=t.parentOffset;return t.parent.nodesBetween(Math.max(0,n-e),n,(r,i,s,a)=>{var c,u;const f=((u=(c=r.type.spec).toText)===null||u===void 0?void 0:u.call(c,{node:r,pos:i,parent:s,index:a}))||r.textContent||"%leaf%";A+=f.slice(0,Math.max(0,n-i))}),A};function au(t){return Object.prototype.toString.call(t)==="[object RegExp]"}class la{constructor(e){this.find=e.find,this.handler=e.handler}}const MU=(t,e)=>{if(au(e))return e.exec(t);const A=e(t);if(!A)return null;const n=[A.text];return n.index=A.index,n.input=t,n.data=A.data,A.replaceWith&&(A.text.includes(A.replaceWith)||console.warn('[tiptap warn]: "inputRuleMatch.replaceWith" must be part of "inputRuleMatch.text".'),n.push(A.replaceWith)),n};function ca(t){var e;const{editor:A,from:n,to:r,text:i,rules:s,plugin:a}=t,{view:c}=A;if(c.composing)return!1;const u=c.state.doc.resolve(n);if(u.parent.type.spec.code||!((e=u.nodeBefore||u.nodeAfter)===null||e===void 0)&&e.marks.find(g=>g.type.spec.code))return!1;let f=!1;const p=DU(u)+i;return s.forEach(g=>{if(f)return;const B=MU(p,g.find);if(!B)return;const w=c.state.tr,Q=sa({state:c.state,transaction:w}),b={from:n-(B[0].length-i.length),to:r},{commands:v,chain:_,can:S}=new oa({editor:A,state:Q});g.handler({state:Q,range:b,match:B,commands:v,chain:_,can:S})===null||!w.steps.length||(w.setMeta(a,{transform:w,from:n,to:r,text:i}),c.dispatch(w),f=!0)}),f}function RU(t){const{editor:e,rules:A}=t,n=new pt({state:{init(){return null},apply(r,i){const s=r.getMeta(n);if(s)return s;const a=r.getMeta("applyInputRules");return!!a&&setTimeout(()=>{const{from:u,text:f}=a,p=u+f.length;ca({editor:e,from:u,to:p,text:f,rules:A,plugin:n})}),r.selectionSet||r.docChanged?null:i}},props:{handleTextInput(r,i,s,a){return ca({editor:e,from:i,to:s,text:a,rules:A,plugin:n})},handleDOMEvents:{compositionend:r=>(setTimeout(()=>{const{$cursor:i}=r.state.selection;i&&ca({editor:e,from:i.pos,to:i.pos,text:"",rules:A,plugin:n})}),!1)},handleKeyDown(r,i){if(i.key!=="Enter")return!1;const{$cursor:s}=r.state.selection;return s?ca({editor:e,from:s.pos,to:s.pos,text:`
15
- `,rules:A,plugin:n}):!1}},isInputRules:!0});return n}function KU(t){return typeof t=="number"}class VU{constructor(e){this.find=e.find,this.handler=e.handler}}const PU=(t,e,A)=>{if(au(e))return[...t.matchAll(e)];const n=e(t,A);return n?n.map(r=>{const i=[r.text];return i.index=r.index,i.input=t,i.data=r.data,r.replaceWith&&(r.text.includes(r.replaceWith)||console.warn('[tiptap warn]: "pasteRuleMatch.replaceWith" must be part of "pasteRuleMatch.text".'),i.push(r.replaceWith)),i}):[]};function GU(t){const{editor:e,state:A,from:n,to:r,rule:i,pasteEvent:s,dropEvent:a}=t,{commands:c,chain:u,can:f}=new oa({editor:e,state:A}),p=[];return A.doc.nodesBetween(n,r,(B,w)=>{if(!B.isTextblock||B.type.spec.code)return;const Q=Math.max(n,w),b=Math.min(r,w+B.content.size),v=B.textBetween(Q-w,b-w,void 0,"");PU(v,i.find,s).forEach(S=>{if(S.index===void 0)return;const E=Q+S.index+1,L=E+S[0].length,U={from:A.tr.mapping.map(E),to:A.tr.mapping.map(L)},N=i.handler({state:A,range:U,match:S,commands:c,chain:u,can:f,pasteEvent:s,dropEvent:a});p.push(N)})}),p.every(B=>B!==null)}const $U=t=>{var e;const A=new ClipboardEvent("paste",{clipboardData:new DataTransfer});return(e=A.clipboardData)===null||e===void 0||e.setData("text/html",t),A};function WU(t){const{editor:e,rules:A}=t;let n=null,r=!1,i=!1,s=typeof ClipboardEvent<"u"?new ClipboardEvent("paste"):null,a=typeof DragEvent<"u"?new DragEvent("drop"):null;const c=({state:f,from:p,to:g,rule:B,pasteEvt:w})=>{const Q=f.tr,b=sa({state:f,transaction:Q});if(!(!GU({editor:e,state:b,from:Math.max(p-1,0),to:g.b-1,rule:B,pasteEvent:w,dropEvent:a})||!Q.steps.length))return a=typeof DragEvent<"u"?new DragEvent("drop"):null,s=typeof ClipboardEvent<"u"?new ClipboardEvent("paste"):null,Q};return A.map(f=>new pt({view(p){const g=B=>{var w;n=!((w=p.dom.parentElement)===null||w===void 0)&&w.contains(B.target)?p.dom.parentElement:null};return window.addEventListener("dragstart",g),{destroy(){window.removeEventListener("dragstart",g)}}},props:{handleDOMEvents:{drop:(p,g)=>(i=n===p.dom.parentElement,a=g,!1),paste:(p,g)=>{var B;const w=(B=g.clipboardData)===null||B===void 0?void 0:B.getData("text/html");return s=g,r=!!(w!=null&&w.includes("data-pm-slice")),!1}}},appendTransaction:(p,g,B)=>{const w=p[0],Q=w.getMeta("uiEvent")==="paste"&&!r,b=w.getMeta("uiEvent")==="drop"&&!i,v=w.getMeta("applyPasteRules"),_=!!v;if(!Q&&!b&&!_)return;if(_){const{from:L,text:U}=v,N=L+U.length,V=$U(U);return c({rule:f,state:B,from:L,to:{b:N},pasteEvt:V})}const S=g.doc.content.findDiffStart(B.doc.content),E=g.doc.content.findDiffEnd(B.doc.content);if(!(!KU(S)||!E||S===E.b))return c({rule:f,state:B,from:S,to:E,pasteEvt:s})}}))}function JU(t){const e=t.filter((A,n)=>t.indexOf(A)!==n);return[...new Set(e)]}class Mi{constructor(e,A){this.splittableMarks=[],this.editor=A,this.extensions=Mi.resolve(e),this.schema=NU(this.extensions,A),this.setupExtensions()}static resolve(e){const A=Mi.sort(Mi.flatten(e)),n=JU(A.map(r=>r.name));return n.length&&console.warn(`[tiptap warn]: Duplicate extension names found: [${n.map(r=>`'${r}'`).join(", ")}]. This can lead to issues.`),A}static flatten(e){return e.map(A=>{const n={name:A.name,options:A.options,storage:A.storage},r=ae(A,"addExtensions",n);return r?[A,...this.flatten(r())]:A}).flat(10)}static sort(e){return e.sort((n,r)=>{const i=ae(n,"priority")||100,s=ae(r,"priority")||100;return i>s?-1:i<s?1:0})}get commands(){return this.extensions.reduce((e,A)=>{const n={name:A.name,options:A.options,storage:A.storage,editor:this.editor,type:ou(A.name,this.schema)},r=ae(A,"addCommands",n);return r?{...e,...r()}:e},{})}get plugins(){const{editor:e}=this,A=Mi.sort([...this.extensions].reverse()),n=[],r=[],i=A.map(s=>{const a={name:s.name,options:s.options,storage:s.storage,editor:e,type:ou(s.name,this.schema)},c=[],u=ae(s,"addKeyboardShortcuts",a);let f={};if(s.type==="mark"&&s.config.exitable&&(f.ArrowRight=()=>sn.handleExit({editor:e,mark:s})),u){const Q=Object.fromEntries(Object.entries(u()).map(([b,v])=>[b,()=>v({editor:e})]));f={...f,...Q}}const p=aU(f);c.push(p);const g=ae(s,"addInputRules",a);Ig(s,e.options.enableInputRules)&&g&&n.push(...g());const B=ae(s,"addPasteRules",a);Ig(s,e.options.enablePasteRules)&&B&&r.push(...B());const w=ae(s,"addProseMirrorPlugins",a);if(w){const Q=w();c.push(...Q)}return c}).flat();return[RU({editor:e,rules:n}),...WU({editor:e,rules:r}),...i]}get attributes(){return Fg(this.extensions)}get nodeViews(){const{editor:e}=this,{nodeExtensions:A}=aa(this.extensions);return Object.fromEntries(A.filter(n=>!!ae(n,"addNodeView")).map(n=>{const r=this.attributes.filter(c=>c.type===n.name),i={name:n.name,options:n.options,storage:n.storage,editor:e,type:LA(n.name,this.schema)},s=ae(n,"addNodeView",i);if(!s)return[];const a=(c,u,f,p)=>{const g=su(c,r);return s()({editor:e,node:c,getPos:f,decorations:p,HTMLAttributes:g,extension:n})};return[n.name,a]}))}setupExtensions(){this.extensions.forEach(e=>{var A;this.editor.extensionStorage[e.name]=e.storage;const n={name:e.name,options:e.options,storage:e.storage,editor:this.editor,type:ou(e.name,this.schema)};e.type==="mark"&&(!((A=be(ae(e,"keepOnSplit",n)))!==null&&A!==void 0)||A)&&this.splittableMarks.push(e.name);const r=ae(e,"onBeforeCreate",n),i=ae(e,"onCreate",n),s=ae(e,"onUpdate",n),a=ae(e,"onSelectionUpdate",n),c=ae(e,"onTransaction",n),u=ae(e,"onFocus",n),f=ae(e,"onBlur",n),p=ae(e,"onDestroy",n);r&&this.editor.on("beforeCreate",r),i&&this.editor.on("create",i),s&&this.editor.on("update",s),a&&this.editor.on("selectionUpdate",a),c&&this.editor.on("transaction",c),u&&this.editor.on("focus",u),f&&this.editor.on("blur",f),p&&this.editor.on("destroy",p)})}}function XU(t){return Object.prototype.toString.call(t).slice(8,-1)}function lu(t){return XU(t)!=="Object"?!1:t.constructor===Object&&Object.getPrototypeOf(t)===Object.prototype}function ua(t,e){const A={...t};return lu(t)&&lu(e)&&Object.keys(e).forEach(n=>{lu(e[n])?n in t?A[n]=ua(t[n],e[n]):Object.assign(A,{[n]:e[n]}):Object.assign(A,{[n]:e[n]})}),A}class YA{constructor(e={}){this.type="extension",this.name="extension",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...e},this.name=this.config.name,e.defaultOptions&&Object.keys(e.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=be(ae(this,"addOptions",{name:this.name}))),this.storage=be(ae(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(e={}){return new YA(e)}configure(e={}){const A=this.extend();return A.parent=this.parent,A.options=ua(this.options,e),A.storage=be(ae(A,"addStorage",{name:A.name,options:A.options})),A}extend(e={}){const A=new YA({...this.config,...e});return A.parent=this,this.child=A,A.name=e.name?e.name:A.parent.name,e.defaultOptions&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${A.name}".`),A.options=be(ae(A,"addOptions",{name:A.name})),A.storage=be(ae(A,"addStorage",{name:A.name,options:A.options})),A}}function Sg(t,e,A){const{from:n,to:r}=e,{blockSeparator:i=`
16
-
17
- `,textSerializers:s={}}=A||{};let a="";return t.nodesBetween(n,r,(c,u,f,p)=>{var g;c.isBlock&&u>n&&(a+=i);const B=s==null?void 0:s[c.type.name];if(B)return f&&(a+=B({node:c,pos:u,parent:f,index:p,range:e})),!1;c.isText&&(a+=(g=c==null?void 0:c.text)===null||g===void 0?void 0:g.slice(Math.max(n,u)-u,r-u))}),a}function Tg(t){return Object.fromEntries(Object.entries(t.nodes).filter(([,e])=>e.spec.toText).map(([e,A])=>[e,A.spec.toText]))}const YU=YA.create({name:"clipboardTextSerializer",addOptions(){return{blockSeparator:void 0}},addProseMirrorPlugins(){return[new pt({key:new wn("clipboardTextSerializer"),props:{clipboardTextSerializer:()=>{const{editor:t}=this,{state:e,schema:A}=t,{doc:n,selection:r}=e,{ranges:i}=r,s=Math.min(...i.map(f=>f.$from.pos)),a=Math.max(...i.map(f=>f.$to.pos)),c=Tg(A);return Sg(n,{from:s,to:a},{...this.options.blockSeparator!==void 0?{blockSeparator:this.options.blockSeparator}:{},textSerializers:c})}}})]}}),zU=()=>({editor:t,view:e})=>(requestAnimationFrame(()=>{var A;t.isDestroyed||(e.dom.blur(),(A=window==null?void 0:window.getSelection())===null||A===void 0||A.removeAllRanges())}),!0),qU=(t=!1)=>({commands:e})=>e.setContent("",t),ZU=()=>({state:t,tr:e,dispatch:A})=>{const{selection:n}=e,{ranges:r}=n;return A&&r.forEach(({$from:i,$to:s})=>{t.doc.nodesBetween(i.pos,s.pos,(a,c)=>{if(a.type.isText)return;const{doc:u,mapping:f}=e,p=u.resolve(f.map(c)),g=u.resolve(f.map(c+a.nodeSize)),B=p.blockRange(g);if(!B)return;const w=vi(B);if(a.type.isTextblock){const{defaultType:Q}=p.parent.contentMatchAt(p.index());e.setNodeMarkup(B.start,Q)}(w||w===0)&&e.lift(B,w)})}),!0},jU=t=>e=>t(e),ev=()=>({state:t,dispatch:e})=>yU(t,e),Av=(t,e)=>({editor:A,tr:n})=>{const{state:r}=A,i=r.doc.slice(t.from,t.to);n.deleteRange(t.from,t.to);const s=n.mapping.map(e);return n.insert(s,i.content),n.setSelection(new ye(n.doc.resolve(s-1))),!0},tv=()=>({tr:t,dispatch:e})=>{const{selection:A}=t,n=A.$anchor.node();if(n.content.size>0)return!1;const r=t.selection.$anchor;for(let i=r.depth;i>0;i-=1)if(r.node(i).type===n.type){if(e){const a=r.before(i),c=r.after(i);t.delete(a,c).scrollIntoView()}return!0}return!1},nv=t=>({tr:e,state:A,dispatch:n})=>{const r=LA(t,A.schema),i=e.selection.$anchor;for(let s=i.depth;s>0;s-=1)if(i.node(s).type===r){if(n){const c=i.before(s),u=i.after(s);e.delete(c,u).scrollIntoView()}return!0}return!1},rv=t=>({tr:e,dispatch:A})=>{const{from:n,to:r}=t;return A&&e.delete(n,r),!0},iv=()=>({state:t,dispatch:e})=>lU(t,e),sv=()=>({commands:t})=>t.keyboardShortcut("Enter"),ov=()=>({state:t,dispatch:e})=>CU(t,e);function fa(t,e,A={strict:!0}){const n=Object.keys(e);return n.length?n.every(r=>A.strict?e[r]===t[r]:au(e[r])?e[r].test(t[r]):e[r]===t[r]):!0}function cu(t,e,A={}){return t.find(n=>n.type===e&&fa(n.attrs,A))}function av(t,e,A={}){return!!cu(t,e,A)}function uu(t,e,A={}){if(!t||!e)return;let n=t.parent.childAfter(t.parentOffset);if(t.parentOffset===n.offset&&n.offset!==0&&(n=t.parent.childBefore(t.parentOffset)),!n.node)return;const r=cu([...n.node.marks],e,A);if(!r)return;let i=n.index,s=t.start()+n.offset,a=i+1,c=s+n.node.nodeSize;for(cu([...n.node.marks],e,A);i>0&&r.isInSet(t.parent.child(i-1).marks);)i-=1,s-=t.parent.child(i).nodeSize;for(;a<t.parent.childCount&&av([...t.parent.child(a).marks],e,A);)c+=t.parent.child(a).nodeSize,a+=1;return{from:s,to:c}}function Br(t,e){if(typeof t=="string"){if(!e.marks[t])throw Error(`There is no mark type named '${t}'. Maybe you forgot to add the extension?`);return e.marks[t]}return t}const lv=(t,e={})=>({tr:A,state:n,dispatch:r})=>{const i=Br(t,n.schema),{doc:s,selection:a}=A,{$from:c,from:u,to:f}=a;if(r){const p=uu(c,i,e);if(p&&p.from<=u&&p.to>=f){const g=ye.create(s,p.from,p.to);A.setSelection(g)}}return!0},cv=t=>e=>{const A=typeof t=="function"?t(e):t;for(let n=0;n<A.length;n+=1)if(A[n](e))return!0;return!1};function fu(t){return t instanceof ye}function Nn(t=0,e=0,A=0){return Math.min(Math.max(t,e),A)}function _g(t,e=null){if(!e)return null;const A=Fe.atStart(t),n=Fe.atEnd(t);if(e==="start"||e===!0)return A;if(e==="end")return n;const r=A.from,i=n.to;return e==="all"?ye.create(t,Nn(0,r,i),Nn(t.content.size,r,i)):ye.create(t,Nn(e,r,i),Nn(e,r,i))}function du(){return["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document}const uv=(t=null,e={})=>({editor:A,view:n,tr:r,dispatch:i})=>{e={scrollIntoView:!0,...e};const s=()=>{du()&&n.dom.focus(),requestAnimationFrame(()=>{A.isDestroyed||(n.focus(),e!=null&&e.scrollIntoView&&A.commands.scrollIntoView())})};if(n.hasFocus()&&t===null||t===!1)return!0;if(i&&t===null&&!fu(A.state.selection))return s(),!0;const a=_g(r.doc,t)||A.state.selection,c=A.state.selection.eq(a);return i&&(c||r.setSelection(a),c&&r.storedMarks&&r.setStoredMarks(r.storedMarks),s()),!0},fv=(t,e)=>A=>t.every((n,r)=>e(n,{...A,index:r})),dv=(t,e)=>({tr:A,commands:n})=>n.insertContentAt({from:A.selection.from,to:A.selection.to},t,e),xg=t=>{const e=t.childNodes;for(let A=e.length-1;A>=0;A-=1){const n=e[A];n.nodeType===3&&n.nodeValue&&/^(\n\s\s|\n)$/.test(n.nodeValue)?t.removeChild(n):n.nodeType===1&&xg(n)}return t};function Og(t){const e=`<body>${t}</body>`,A=new window.DOMParser().parseFromString(e,"text/html").body;return xg(A)}function da(t,e,A){A={slice:!0,parseOptions:{},...A};const n=typeof t=="object"&&t!==null,r=typeof t=="string";if(n)try{return Array.isArray(t)&&t.length>0?Y.fromArray(t.map(s=>e.nodeFromJSON(s))):e.nodeFromJSON(t)}catch(i){return console.warn("[tiptap warn]: Invalid content.","Passed value:",t,"Error:",i),da("",e,A)}if(r){const i=Fi.fromSchema(e);return A.slice?i.parseSlice(Og(t),A.parseOptions).content:i.parse(Og(t),A.parseOptions)}return da("",e,A)}function hv(t,e,A){const n=t.steps.length-1;if(n<e)return;const r=t.steps[n];if(!(r instanceof xA||r instanceof OA))return;const i=t.mapping.maps[n];let s=0;i.forEach((a,c,u,f)=>{s===0&&(s=f)}),t.setSelection(Fe.near(t.doc.resolve(s),A))}const pv=t=>t.toString().startsWith("<"),gv=(t,e,A)=>({tr:n,dispatch:r,editor:i})=>{if(r){A={parseOptions:{},updateSelection:!0,applyInputRules:!1,applyPasteRules:!1,...A};const s=da(e,i.schema,{parseOptions:{preserveWhitespace:"full",...A.parseOptions}});if(s.toString()==="<>")return!0;let{from:a,to:c}=typeof t=="number"?{from:t,to:t}:{from:t.from,to:t.to},u=!0,f=!0;if((pv(s)?s:[s]).forEach(B=>{B.check(),u=u?B.isText&&B.marks.length===0:!1,f=f?B.isBlock:!1}),a===c&&f){const{parent:B}=n.doc.resolve(a);B.isTextblock&&!B.type.spec.code&&!B.childCount&&(a-=1,c+=1)}let g;u?(Array.isArray(e)?g=e.map(B=>B.text||"").join(""):typeof e=="object"&&e&&e.text?g=e.text:g=e,n.insertText(g,a,c)):(g=s,n.replaceWith(a,c,g)),A.updateSelection&&hv(n,n.steps.length-1,-1),A.applyInputRules&&n.setMeta("applyInputRules",{from:a,text:g}),A.applyPasteRules&&n.setMeta("applyPasteRules",{from:a,text:g})}return!0},mv=()=>({state:t,dispatch:e})=>gU(t,e),Bv=()=>({state:t,dispatch:e})=>mU(t,e),wv=()=>({state:t,dispatch:e})=>cU(t,e),Cv=()=>({state:t,dispatch:e})=>hU(t,e),yv=()=>({tr:t,state:e,dispatch:A})=>{try{const n=Xo(e.doc,e.selection.$from.pos,-1);return n==null?!1:(t.join(n,2),A&&A(t),!0)}catch{return!1}},Ev=()=>({state:t,dispatch:e,tr:A})=>{try{const n=Xo(t.doc,t.selection.$from.pos,1);return n==null?!1:(A.join(n,2),e&&e(A),!0)}catch{return!1}},Qv=()=>({state:t,dispatch:e})=>uU(t,e),Fv=()=>({state:t,dispatch:e})=>fU(t,e);function Lg(){return typeof navigator<"u"?/Mac/.test(navigator.platform):!1}function bv(t){const e=t.split(/-(?!$)/);let A=e[e.length-1];A==="Space"&&(A=" ");let n,r,i,s;for(let a=0;a<e.length-1;a+=1){const c=e[a];if(/^(cmd|meta|m)$/i.test(c))s=!0;else if(/^a(lt)?$/i.test(c))n=!0;else if(/^(c|ctrl|control)$/i.test(c))r=!0;else if(/^s(hift)?$/i.test(c))i=!0;else if(/^mod$/i.test(c))du()||Lg()?s=!0:r=!0;else throw new Error(`Unrecognized modifier name: ${c}`)}return n&&(A=`Alt-${A}`),r&&(A=`Ctrl-${A}`),s&&(A=`Meta-${A}`),i&&(A=`Shift-${A}`),A}const Uv=t=>({editor:e,view:A,tr:n,dispatch:r})=>{const i=bv(t).split(/-(?!$)/),s=i.find(u=>!["Alt","Ctrl","Meta","Shift"].includes(u)),a=new KeyboardEvent("keydown",{key:s==="Space"?" ":s,altKey:i.includes("Alt"),ctrlKey:i.includes("Ctrl"),metaKey:i.includes("Meta"),shiftKey:i.includes("Shift"),bubbles:!0,cancelable:!0}),c=e.captureTransaction(()=>{A.someProp("handleKeyDown",u=>u(A,a))});return c==null||c.steps.forEach(u=>{const f=u.map(n.mapping);f&&r&&n.maybeStep(f)}),!0};function Rs(t,e,A={}){const{from:n,to:r,empty:i}=t.selection,s=e?LA(e,t.schema):null,a=[];t.doc.nodesBetween(n,r,(p,g)=>{if(p.isText)return;const B=Math.max(n,g),w=Math.min(r,g+p.nodeSize);a.push({node:p,from:B,to:w})});const c=r-n,u=a.filter(p=>s?s.name===p.node.type.name:!0).filter(p=>fa(p.node.attrs,A,{strict:!1}));return i?!!u.length:u.reduce((p,g)=>p+g.to-g.from,0)>=c}const vv=(t,e={})=>({state:A,dispatch:n})=>{const r=LA(t,A.schema);return Rs(A,r,e)?BU(A,n):!1},Iv=()=>({state:t,dispatch:e})=>EU(t,e),Sv=t=>({state:e,dispatch:A})=>{const n=LA(t,e.schema);return TU(n)(e,A)},Tv=()=>({state:t,dispatch:e})=>wU(t,e);function ha(t,e){return e.nodes[t]?"node":e.marks[t]?"mark":null}function kg(t,e){const A=typeof e=="string"?[e]:e;return Object.keys(t).reduce((n,r)=>(A.includes(r)||(n[r]=t[r]),n),{})}const _v=(t,e)=>({tr:A,state:n,dispatch:r})=>{let i=null,s=null;const a=ha(typeof t=="string"?t:t.name,n.schema);return a?(a==="node"&&(i=LA(t,n.schema)),a==="mark"&&(s=Br(t,n.schema)),r&&A.selection.ranges.forEach(c=>{n.doc.nodesBetween(c.$from.pos,c.$to.pos,(u,f)=>{i&&i===u.type&&A.setNodeMarkup(f,void 0,kg(u.attrs,e)),s&&u.marks.length&&u.marks.forEach(p=>{s===p.type&&A.addMark(f,f+u.nodeSize,s.create(kg(p.attrs,e)))})})}),!0):!1},xv=()=>({tr:t,dispatch:e})=>(e&&t.scrollIntoView(),!0),Ov=()=>({tr:t,commands:e})=>e.setTextSelection({from:0,to:t.doc.content.size}),Lv=()=>({state:t,dispatch:e})=>dU(t,e),kv=()=>({state:t,dispatch:e})=>pU(t,e),Hv=()=>({state:t,dispatch:e})=>QU(t,e),Nv=()=>({state:t,dispatch:e})=>UU(t,e),Dv=()=>({state:t,dispatch:e})=>bU(t,e);function Hg(t,e,A={}){return da(t,e,{slice:!1,parseOptions:A})}const Mv=(t,e=!1,A={})=>({tr:n,editor:r,dispatch:i})=>{const{doc:s}=n,a=Hg(t,r.schema,A);return i&&n.replaceWith(0,s.content.size,a).setMeta("preventUpdate",!e),!0};function pa(t,e){const A=Br(e,t.schema),{from:n,to:r,empty:i}=t.selection,s=[];i?(t.storedMarks&&s.push(...t.storedMarks),s.push(...t.selection.$head.marks())):t.doc.nodesBetween(n,r,c=>{s.push(...c.marks)});const a=s.find(c=>c.type.name===A.name);return a?{...a.attrs}:{}}function Rv(t){for(let e=0;e<t.edgeCount;e+=1){const{type:A}=t.edge(e);if(A.isTextblock&&!A.hasRequiredAttrs())return A}return null}function Kv(t,e){for(let A=t.depth;A>0;A-=1){const n=t.node(A);if(e(n))return{pos:A>0?t.before(A):0,start:t.start(A),depth:A,node:n}}}function hu(t){return e=>Kv(e.$from,t)}function Vv(t,e){const A=mn.fromSchema(e).serializeFragment(t),r=document.implementation.createHTMLDocument().createElement("div");return r.appendChild(A),r.innerHTML}function Pv(t,e){const A={from:0,to:t.content.size};return Sg(t,A,e)}function Gv(t,e){const A=LA(e,t.schema),{from:n,to:r}=t.selection,i=[];t.doc.nodesBetween(n,r,a=>{i.push(a)});const s=i.reverse().find(a=>a.type.name===A.name);return s?{...s.attrs}:{}}function $v(t,e){const A=ha(typeof e=="string"?e:e.name,t.schema);return A==="node"?Gv(t,e):A==="mark"?pa(t,e):{}}function Ng(t,e,A){const n=[];return t===e?A.resolve(t).marks().forEach(r=>{const i=A.resolve(t-1),s=uu(i,r.type);s&&n.push({mark:r,...s})}):A.nodesBetween(t,e,(r,i)=>{!r||(r==null?void 0:r.nodeSize)===void 0||n.push(...r.marks.map(s=>({from:i,to:i+r.nodeSize,mark:s})))}),n}function ga(t,e,A){return Object.fromEntries(Object.entries(A).filter(([n])=>{const r=t.find(i=>i.type===e&&i.name===n);return r?r.attribute.keepOnSplit:!1}))}function pu(t,e,A={}){const{empty:n,ranges:r}=t.selection,i=e?Br(e,t.schema):null;if(n)return!!(t.storedMarks||t.selection.$from.marks()).filter(p=>i?i.name===p.type.name:!0).find(p=>fa(p.attrs,A,{strict:!1}));let s=0;const a=[];if(r.forEach(({$from:p,$to:g})=>{const B=p.pos,w=g.pos;t.doc.nodesBetween(B,w,(Q,b)=>{if(!Q.isText&&!Q.marks.length)return;const v=Math.max(B,b),_=Math.min(w,b+Q.nodeSize),S=_-v;s+=S,a.push(...Q.marks.map(E=>({mark:E,from:v,to:_})))})}),s===0)return!1;const c=a.filter(p=>i?i.name===p.mark.type.name:!0).filter(p=>fa(p.mark.attrs,A,{strict:!1})).reduce((p,g)=>p+g.to-g.from,0),u=a.filter(p=>i?p.mark.type!==i&&p.mark.type.excludes(i):!0).reduce((p,g)=>p+g.to-g.from,0);return(c>0?c+u:c)>=s}function Wv(t,e,A={}){if(!e)return Rs(t,null,A)||pu(t,null,A);const n=ha(e,t.schema);return n==="node"?Rs(t,e,A):n==="mark"?pu(t,e,A):!1}function Dg(t,e){const{nodeExtensions:A}=aa(e),n=A.find(s=>s.name===t);if(!n)return!1;const r={name:n.name,options:n.options,storage:n.storage},i=be(ae(n,"group",r));return typeof i!="string"?!1:i.split(" ").includes("list")}function Jv(t){var e;const A=(e=t.type.createAndFill())===null||e===void 0?void 0:e.toJSON(),n=t.toJSON();return JSON.stringify(A)===JSON.stringify(n)}function Xv(t){return t instanceof fe}function Mg(t,e,A){const r=t.state.doc.content.size,i=Nn(e,0,r),s=Nn(A,0,r),a=t.coordsAtPos(i),c=t.coordsAtPos(s,-1),u=Math.min(a.top,c.top),f=Math.max(a.bottom,c.bottom),p=Math.min(a.left,c.left),g=Math.max(a.right,c.right),B=g-p,w=f-u,v={top:u,bottom:f,left:p,right:g,width:B,height:w,x:p,y:u};return{...v,toJSON:()=>v}}function Yv(t,e,A){var n;const{selection:r}=e;let i=null;if(fu(r)&&(i=r.$cursor),i){const a=(n=t.storedMarks)!==null&&n!==void 0?n:i.marks();return!!A.isInSet(a)||!a.some(c=>c.type.excludes(A))}const{ranges:s}=r;return s.some(({$from:a,$to:c})=>{let u=a.depth===0?t.doc.inlineContent&&t.doc.type.allowsMarkType(A):!1;return t.doc.nodesBetween(a.pos,c.pos,(f,p,g)=>{if(u)return!1;if(f.isInline){const B=!g||g.type.allowsMarkType(A),w=!!A.isInSet(f.marks)||!f.marks.some(Q=>Q.type.excludes(A));u=B&&w}return!u}),u})}const zv=(t,e={})=>({tr:A,state:n,dispatch:r})=>{const{selection:i}=A,{empty:s,ranges:a}=i,c=Br(t,n.schema);if(r)if(s){const u=pa(n,c);A.addStoredMark(c.create({...u,...e}))}else a.forEach(u=>{const f=u.$from.pos,p=u.$to.pos;n.doc.nodesBetween(f,p,(g,B)=>{const w=Math.max(B,f),Q=Math.min(B+g.nodeSize,p);g.marks.find(v=>v.type===c)?g.marks.forEach(v=>{c===v.type&&A.addMark(w,Q,c.create({...v.attrs,...e}))}):A.addMark(w,Q,c.create(e))})});return Yv(n,A,c)},qv=(t,e)=>({tr:A})=>(A.setMeta(t,e),!0),Zv=(t,e={})=>({state:A,dispatch:n,chain:r})=>{const i=LA(t,A.schema);return i.isTextblock?r().command(({commands:s})=>Qg(i,e)(A)?!0:s.clearNodes()).command(({state:s})=>Qg(i,e)(s,n)).run():(console.warn('[tiptap warn]: Currently "setNode()" only supports text block nodes.'),!1)},jv=t=>({tr:e,dispatch:A})=>{if(A){const{doc:n}=e,r=Nn(t,0,n.content.size),i=fe.create(n,r);e.setSelection(i)}return!0},eI=t=>({tr:e,dispatch:A})=>{if(A){const{doc:n}=e,{from:r,to:i}=typeof t=="number"?{from:t,to:t}:t,s=ye.atStart(n).from,a=ye.atEnd(n).to,c=Nn(r,s,a),u=Nn(i,s,a),f=ye.create(n,c,u);e.setSelection(f)}return!0},AI=t=>({state:e,dispatch:A})=>{const n=LA(t,e.schema);return OU(n)(e,A)};function Rg(t,e){const A=t.storedMarks||t.selection.$to.parentOffset&&t.selection.$from.marks();if(A){const n=A.filter(r=>e==null?void 0:e.includes(r.type.name));t.tr.ensureMarks(n)}}const tI=({keepMarks:t=!0}={})=>({tr:e,state:A,dispatch:n,editor:r})=>{const{selection:i,doc:s}=e,{$from:a,$to:c}=i,u=r.extensionManager.attributes,f=ga(u,a.node().type.name,a.node().attrs);if(i instanceof fe&&i.node.isBlock)return!a.parentOffset||!Ii(s,a.pos)?!1:(n&&(t&&Rg(A,r.extensionManager.splittableMarks),e.split(a.pos).scrollIntoView()),!0);if(!a.parent.isBlock)return!1;if(n){const p=c.parentOffset===c.parent.content.size;i instanceof ye&&e.deleteSelection();const g=a.depth===0?void 0:Rv(a.node(-1).contentMatchAt(a.indexAfter(-1)));let B=p&&g?[{type:g,attrs:f}]:void 0,w=Ii(e.doc,e.mapping.map(a.pos),1,B);if(!B&&!w&&Ii(e.doc,e.mapping.map(a.pos),1,g?[{type:g}]:void 0)&&(w=!0,B=g?[{type:g,attrs:f}]:void 0),w&&(e.split(e.mapping.map(a.pos),1,B),g&&!p&&!a.parentOffset&&a.parent.type!==g)){const Q=e.mapping.map(a.before()),b=e.doc.resolve(Q);a.node(-1).canReplaceWith(b.index(),b.index()+1,g)&&e.setNodeMarkup(e.mapping.map(a.before()),g)}t&&Rg(A,r.extensionManager.splittableMarks),e.scrollIntoView()}return!0},nI=t=>({tr:e,state:A,dispatch:n,editor:r})=>{var i;const s=LA(t,A.schema),{$from:a,$to:c}=A.selection,u=A.selection.node;if(u&&u.isBlock||a.depth<2||!a.sameParent(c))return!1;const f=a.node(-1);if(f.type!==s)return!1;const p=r.extensionManager.attributes;if(a.parent.content.size===0&&a.node(-1).childCount===a.indexAfter(-1)){if(a.depth===2||a.node(-3).type!==s||a.index(-2)!==a.node(-2).childCount-1)return!1;if(n){let b=Y.empty;const v=a.index(-1)?1:a.index(-2)?2:3;for(let N=a.depth-v;N>=a.depth-3;N-=1)b=Y.from(a.node(N).copy(b));const _=a.indexAfter(-1)<a.node(-2).childCount?1:a.indexAfter(-2)<a.node(-3).childCount?2:3,S=ga(p,a.node().type.name,a.node().attrs),E=((i=s.contentMatch.defaultType)===null||i===void 0?void 0:i.createAndFill(S))||void 0;b=b.append(Y.from(s.createAndFill(null,E)||void 0));const L=a.before(a.depth-(v-1));e.replace(L,a.after(-_),new j(b,4-v,0));let U=-1;e.doc.nodesBetween(L,e.doc.content.size,(N,V)=>{if(U>-1)return!1;N.isTextblock&&N.content.size===0&&(U=V+1)}),U>-1&&e.setSelection(ye.near(e.doc.resolve(U))),e.scrollIntoView()}return!0}const g=c.pos===a.end()?f.contentMatchAt(0).defaultType:null,B=ga(p,f.type.name,f.attrs),w=ga(p,a.node().type.name,a.node().attrs);e.delete(a.pos,c.pos);const Q=g?[{type:s,attrs:B},{type:g,attrs:w}]:[{type:s,attrs:B}];if(!Ii(e.doc,a.pos,2))return!1;if(n){const{selection:b,storedMarks:v}=A,{splittableMarks:_}=r.extensionManager,S=v||b.$to.parentOffset&&b.$from.marks();if(e.split(a.pos,2,Q).scrollIntoView(),!S||!n)return!0;const E=S.filter(L=>_.includes(L.type.name));e.ensureMarks(E)}return!0},gu=(t,e)=>{const A=hu(s=>s.type===e)(t.selection);if(!A)return!0;const n=t.doc.resolve(Math.max(0,A.pos-1)).before(A.depth);if(n===void 0)return!0;const r=t.doc.nodeAt(n);return A.node.type===(r==null?void 0:r.type)&&ar(t.doc,A.pos)&&t.join(A.pos),!0},mu=(t,e)=>{const A=hu(s=>s.type===e)(t.selection);if(!A)return!0;const n=t.doc.resolve(A.start).after(A.depth);if(n===void 0)return!0;const r=t.doc.nodeAt(n);return A.node.type===(r==null?void 0:r.type)&&ar(t.doc,n)&&t.join(n),!0};var rI=Object.freeze({__proto__:null,blur:zU,clearContent:qU,clearNodes:ZU,command:jU,createParagraphNear:ev,cut:Av,deleteCurrentNode:tv,deleteNode:nv,deleteRange:rv,deleteSelection:iv,enter:sv,exitCode:ov,extendMarkRange:lv,first:cv,focus:uv,forEach:fv,insertContent:dv,insertContentAt:gv,joinUp:mv,joinDown:Bv,joinBackward:wv,joinForward:Cv,joinItemBackward:yv,joinItemForward:Ev,joinTextblockBackward:Qv,joinTextblockForward:Fv,keyboardShortcut:Uv,lift:vv,liftEmptyBlock:Iv,liftListItem:Sv,newlineInCode:Tv,resetAttributes:_v,scrollIntoView:xv,selectAll:Ov,selectNodeBackward:Lv,selectNodeForward:kv,selectParentNode:Hv,selectTextblockEnd:Nv,selectTextblockStart:Dv,setContent:Mv,setMark:zv,setMeta:qv,setNode:Zv,setNodeSelection:jv,setTextSelection:eI,sinkListItem:AI,splitBlock:tI,splitListItem:nI,toggleList:(t,e,A,n={})=>({editor:r,tr:i,state:s,dispatch:a,chain:c,commands:u,can:f})=>{const{extensions:p,splittableMarks:g}=r.extensionManager,B=LA(t,s.schema),w=LA(e,s.schema),{selection:Q,storedMarks:b}=s,{$from:v,$to:_}=Q,S=v.blockRange(_),E=b||Q.$to.parentOffset&&Q.$from.marks();if(!S)return!1;const L=hu(U=>Dg(U.type.name,p))(Q);if(S.depth>=1&&L&&S.depth-L.depth<=1){if(L.node.type===B)return u.liftListItem(w);if(Dg(L.node.type.name,p)&&B.validContent(L.node.content)&&a)return c().command(()=>(i.setNodeMarkup(L.pos,B),!0)).command(()=>gu(i,B)).command(()=>mu(i,B)).run()}return!A||!E||!a?c().command(()=>f().wrapInList(B,n)?!0:u.clearNodes()).wrapInList(B,n).command(()=>gu(i,B)).command(()=>mu(i,B)).run():c().command(()=>{const U=f().wrapInList(B,n),N=E.filter(V=>g.includes(V.type.name));return i.ensureMarks(N),U?!0:u.clearNodes()}).wrapInList(B,n).command(()=>gu(i,B)).command(()=>mu(i,B)).run()},toggleMark:(t,e={},A={})=>({state:n,commands:r})=>{const{extendEmptyMarkRange:i=!1}=A,s=Br(t,n.schema);return pu(n,s,e)?r.unsetMark(s,{extendEmptyMarkRange:i}):r.setMark(s,e)},toggleNode:(t,e,A={})=>({state:n,commands:r})=>{const i=LA(t,n.schema),s=LA(e,n.schema);return Rs(n,i,A)?r.setNode(s):r.setNode(i,A)},toggleWrap:(t,e={})=>({state:A,commands:n})=>{const r=LA(t,A.schema);return Rs(A,r,e)?n.lift(r):n.wrapIn(r,e)},undoInputRule:()=>({state:t,dispatch:e})=>{const A=t.plugins;for(let n=0;n<A.length;n+=1){const r=A[n];let i;if(r.spec.isInputRules&&(i=r.getState(t))){if(e){const s=t.tr,a=i.transform;for(let c=a.steps.length-1;c>=0;c-=1)s.step(a.steps[c].invert(a.docs[c]));if(i.text){const c=s.doc.resolve(i.from).marks();s.replaceWith(i.from,i.to,t.schema.text(i.text,c))}else s.delete(i.from,i.to)}return!0}}return!1},unsetAllMarks:()=>({tr:t,dispatch:e})=>{const{selection:A}=t,{empty:n,ranges:r}=A;return n||e&&r.forEach(i=>{t.removeMark(i.$from.pos,i.$to.pos)}),!0},unsetMark:(t,e={})=>({tr:A,state:n,dispatch:r})=>{var i;const{extendEmptyMarkRange:s=!1}=e,{selection:a}=A,c=Br(t,n.schema),{$from:u,empty:f,ranges:p}=a;if(!r)return!0;if(f&&s){let{from:g,to:B}=a;const w=(i=u.marks().find(b=>b.type===c))===null||i===void 0?void 0:i.attrs,Q=uu(u,c,w);Q&&(g=Q.from,B=Q.to),A.removeMark(g,B,c)}else p.forEach(g=>{A.removeMark(g.$from.pos,g.$to.pos,c)});return A.removeStoredMark(c),!0},updateAttributes:(t,e={})=>({tr:A,state:n,dispatch:r})=>{let i=null,s=null;const a=ha(typeof t=="string"?t:t.name,n.schema);return a?(a==="node"&&(i=LA(t,n.schema)),a==="mark"&&(s=Br(t,n.schema)),r&&A.selection.ranges.forEach(c=>{const u=c.$from.pos,f=c.$to.pos;n.doc.nodesBetween(u,f,(p,g)=>{i&&i===p.type&&A.setNodeMarkup(g,void 0,{...p.attrs,...e}),s&&p.marks.length&&p.marks.forEach(B=>{if(s===B.type){const w=Math.max(g,u),Q=Math.min(g+p.nodeSize,f);A.addMark(w,Q,s.create({...B.attrs,...e}))}})})}),!0):!1},wrapIn:(t,e={})=>({state:A,dispatch:n})=>{const r=LA(t,A.schema);return vU(r,e)(A,n)},wrapInList:(t,e={})=>({state:A,dispatch:n})=>{const r=LA(t,A.schema);return IU(r,e)(A,n)}});const iI=YA.create({name:"commands",addCommands(){return{...rI}}}),sI=YA.create({name:"editable",addProseMirrorPlugins(){return[new pt({key:new wn("editable"),props:{editable:()=>this.editor.options.editable}})]}}),oI=YA.create({name:"focusEvents",addProseMirrorPlugins(){const{editor:t}=this;return[new pt({key:new wn("focusEvents"),props:{handleDOMEvents:{focus:(e,A)=>{t.isFocused=!0;const n=t.state.tr.setMeta("focus",{event:A}).setMeta("addToHistory",!1);return e.dispatch(n),!1},blur:(e,A)=>{t.isFocused=!1;const n=t.state.tr.setMeta("blur",{event:A}).setMeta("addToHistory",!1);return e.dispatch(n),!1}}}})]}}),aI=YA.create({name:"keymap",addKeyboardShortcuts(){const t=()=>this.editor.commands.first(({commands:s})=>[()=>s.undoInputRule(),()=>s.command(({tr:a})=>{const{selection:c,doc:u}=a,{empty:f,$anchor:p}=c,{pos:g,parent:B}=p,w=p.parent.isTextblock&&g>0?a.doc.resolve(g-1):p,Q=w.parent.type.spec.isolating,b=p.pos-p.parentOffset,v=Q&&w.parent.childCount===1?b===p.pos:Fe.atStart(u).from===g;return!f||!B.type.isTextblock||B.textContent.length||!v||v&&p.parent.type.name==="paragraph"?!1:s.clearNodes()}),()=>s.deleteSelection(),()=>s.joinBackward(),()=>s.selectNodeBackward()]),e=()=>this.editor.commands.first(({commands:s})=>[()=>s.deleteSelection(),()=>s.deleteCurrentNode(),()=>s.joinForward(),()=>s.selectNodeForward()]),n={Enter:()=>this.editor.commands.first(({commands:s})=>[()=>s.newlineInCode(),()=>s.createParagraphNear(),()=>s.liftEmptyBlock(),()=>s.splitBlock()]),"Mod-Enter":()=>this.editor.commands.exitCode(),Backspace:t,"Mod-Backspace":t,"Shift-Backspace":t,Delete:e,"Mod-Delete":e,"Mod-a":()=>this.editor.commands.selectAll()},r={...n},i={...n,"Ctrl-h":t,"Alt-Backspace":t,"Ctrl-d":e,"Ctrl-Alt-Backspace":e,"Alt-Delete":e,"Alt-d":e,"Ctrl-a":()=>this.editor.commands.selectTextblockStart(),"Ctrl-e":()=>this.editor.commands.selectTextblockEnd()};return du()||Lg()?i:r},addProseMirrorPlugins(){return[new pt({key:new wn("clearDocument"),appendTransaction:(t,e,A)=>{if(!(t.some(w=>w.docChanged)&&!e.doc.eq(A.doc)))return;const{empty:r,from:i,to:s}=e.selection,a=Fe.atStart(e.doc).from,c=Fe.atEnd(e.doc).to;if(r||!(i===a&&s===c)||!(A.doc.textBetween(0,A.doc.content.size," "," ").length===0))return;const p=A.tr,g=sa({state:A,transaction:p}),{commands:B}=new oa({editor:this.editor,state:g});if(B.clearNodes(),!!p.steps.length)return p}})]}}),lI=YA.create({name:"tabindex",addProseMirrorPlugins(){return[new pt({key:new wn("tabindex"),props:{attributes:this.editor.isEditable?{tabindex:"0"}:{}}})]}});class ei{constructor(e,A,n=!1,r=null){this.currentNode=null,this.actualDepth=null,this.isBlock=n,this.resolvedPos=e,this.editor=A,this.currentNode=r}get name(){return this.node.type.name}get node(){return this.currentNode||this.resolvedPos.node()}get element(){return this.editor.view.domAtPos(this.pos).node}get depth(){var e;return(e=this.actualDepth)!==null&&e!==void 0?e:this.resolvedPos.depth}get pos(){return this.resolvedPos.pos}get content(){return this.node.content}set content(e){let A=this.from,n=this.to;if(this.isBlock){if(this.content.size===0){console.error(`You can’t set content on a block node. Tried to set content on ${this.name} at ${this.pos}`);return}A=this.from+1,n=this.to-1}this.editor.commands.insertContentAt({from:A,to:n},e)}get attributes(){return this.node.attrs}get textContent(){return this.node.textContent}get size(){return this.node.nodeSize}get from(){return this.isBlock?this.pos:this.resolvedPos.start(this.resolvedPos.depth)}get range(){return{from:this.from,to:this.to}}get to(){return this.isBlock?this.pos+this.size:this.resolvedPos.end(this.resolvedPos.depth)+(this.node.isText?0:1)}get parent(){if(this.depth===0)return null;const e=this.resolvedPos.start(this.resolvedPos.depth-1),A=this.resolvedPos.doc.resolve(e);return new ei(A,this.editor)}get before(){let e=this.resolvedPos.doc.resolve(this.from-(this.isBlock?1:2));return e.depth!==this.depth&&(e=this.resolvedPos.doc.resolve(this.from-3)),new ei(e,this.editor)}get after(){let e=this.resolvedPos.doc.resolve(this.to+(this.isBlock?2:1));return e.depth!==this.depth&&(e=this.resolvedPos.doc.resolve(this.to+3)),new ei(e,this.editor)}get children(){const e=[];return this.node.content.forEach((A,n)=>{const r=A.isBlock&&!A.isTextblock,i=this.pos+n+1,s=this.resolvedPos.doc.resolve(i);if(!r&&s.depth<=this.depth)return;const a=new ei(s,this.editor,r,r?A:null);r&&(a.actualDepth=this.depth+1),e.push(new ei(s,this.editor,r,r?A:null))}),e}get firstChild(){return this.children[0]||null}get lastChild(){const e=this.children;return e[e.length-1]||null}closest(e,A={}){let n=null,r=this.parent;for(;r&&!n;){if(r.node.type.name===e)if(Object.keys(A).length>0){const i=r.node.attrs,s=Object.keys(A);for(let a=0;a<s.length;a+=1){const c=s[a];if(i[c]!==A[c])break}}else n=r;r=r.parent}return n}querySelector(e,A={}){return this.querySelectorAll(e,A,!0)[0]||null}querySelectorAll(e,A={},n=!1){let r=[];if(!this.children||this.children.length===0)return r;const i=Object.keys(A);return this.children.forEach(s=>{n&&r.length>0||(s.node.type.name===e&&i.every(c=>A[c]===s.node.attrs[c])&&r.push(s),!(n&&r.length>0)&&(r=r.concat(s.querySelectorAll(e,A,n))))}),r}setAttribute(e){const A=this.editor.state.selection;this.editor.chain().setTextSelection(this.from).updateAttributes(this.node.type.name,e).setTextSelection(A.from).run()}}const cI=`.ProseMirror {
1
+ (function(Xe,o){typeof exports=="object"&&typeof module<"u"?o(exports,require("vue"),require("@popperjs/core")):typeof define=="function"&&define.amd?define(["exports","vue","@popperjs/core"],o):(Xe=typeof globalThis<"u"?globalThis:Xe||self,o(Xe.AblokComponents={},Xe.Vue,Xe.core))})(this,function(Xe,o,ni){"use strict";var X6=Object.defineProperty;var q6=(Xe,o,ni)=>o in Xe?X6(Xe,o,{enumerable:!0,configurable:!0,writable:!0,value:ni}):Xe[o]=ni;var Oe=(Xe,o,ni)=>(q6(Xe,typeof o!="symbol"?o+"":o,ni),ni);const G1={class:"icon",preserveAspectRatio:"xMaxYMin"},W1=["xlink:href"],Y1=o.defineComponent({__name:"svg-icon",props:{basePath:{type:String,default:"/symbol-defs.svg"},prefix:{type:String,default:"icon-"},symbol:{type:String,default:""},size:{type:String,default:"default"}},setup(t){return(e,A)=>(o.openBlock(),o.createElementBlock("i",{class:o.normalizeClass(["svg-icon",{[`svg-icon--${t.size}`]:t.size}])},[(o.openBlock(),o.createElementBlock("svg",G1,[o.createElementVNode("use",{"xlink:href":`${t.basePath}#${t.prefix}${t.symbol}`,"xmlns:xlink":"http://www.w3.org/1999/xlink",x:"0",y:"0"},null,8,W1)]))],2))}}),j6="",z1={class:"loading-spinner d-block"},J1=o.createElementVNode("span",{class:"loading-spinner__animation"},[o.createElementVNode("svg",{version:"1.1",x:"0px",y:"0px",viewBox:"0 0 100 100"},[o.createElementVNode("path",{d:"M73,50c0-12.7-10.3-23-23-23S27,37.3,27,50 M30.9,50c0-10.5,8.5-19.1,19.1-19.1S69.1,39.5,69.1,50"},[o.createElementVNode("animateTransform",{attributeName:"transform",attributeType:"XML",type:"rotate",dur:"1s",from:"0 50 50",to:"360 50 50",repeatCount:"indefinite"})])])],-1),X1=o.defineComponent({__name:"loading-spinner",props:{color:{type:String,default:"#fff"}},setup(t){return(e,A)=>(o.openBlock(),o.createElementBlock("span",z1,[J1,o.renderSlot(e.$slots,"default")]))}}),Z6="",q1=["src","alt"],j1=o.defineComponent({__name:"base-image",props:{src:{type:String,default:'data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg"/>',required:!0},alt:{type:String,default:""},spinner:{type:Boolean,default:!1},zoom:{type:Boolean,default:!1}},setup(t){const e=o.ref(!1);return(A,n)=>{const r=o.resolveComponent("loading-spinner");return t.src?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(["base-image",{"base-image--zoom":t.zoom}])},[t.spinner&&!e.value?(o.openBlock(),o.createBlock(r,{key:0})):o.createCommentVNode("",!0),o.createElementVNode("img",{class:o.normalizeClass(["",{"opacity-0":!e.value,"opacity-1":e.value}]),src:t.src,alt:t.alt,onLoad:n[0]||(n[0]=()=>e.value=!0)},null,42,q1)],2)):o.createCommentVNode("",!0)}}}),eJ="",Z1=["innerHTML"],eQ=o.defineComponent({__name:"base-headline",props:{tag:{},size:{},variant:{},text:{},className:{}},setup(t){const e=t,A=o.computed(()=>e.tag||"p");return(n,r)=>(o.openBlock(),o.createBlock(o.resolveDynamicComponent(A.value),{class:o.normalizeClass(["headline",`${n.size} headline--${n.size}${n.className||""}`])},{default:o.withCtx(()=>[o.renderSlot(n.$slots,"default",{},()=>[o.createElementVNode("span",{class:"headline__text",innerHTML:n.text},null,8,Z1)])]),_:3},8,["class"]))}}),tQ=["innerHTML"],AQ=o.defineComponent({__name:"base-paragraph",props:{size:{},variant:{},text:{},className:{}},setup(t){return(e,A)=>(o.openBlock(),o.createElementBlock("p",{class:o.normalizeClass(["base-paragraph",`${e.size||""} ${e.className||""}`]),innerHTML:e.text},null,10,tQ))}});function Ct(){return(new Date().valueOf()+Math.random()).toString(36).replace(".","")}const nQ={class:"accordion-item"},rQ=["id"],iQ=["data-bs-target","aria-controls"],aQ={class:"flex-grow-1"},oQ=["id","aria-labelledby","data-bs-parent"],sQ={class:"accordion-body"},lQ=["innerHTML"],cQ=o.defineComponent({__name:"accordion-item",props:{id:{type:String,default:()=>Ct()},modelValue:{type:Boolean,default:!1},title:{type:String,default:"Accordion Title"},body:{type:String,default:"<p>Lorem ipsum dolor sit amet consectetur, adipisicing elit. Nisi aut, nobis inventore repudiandae quo laboriosam. Dicta placeat ullam harum optio expedita. Harum fugiat suscipit sapiente quos, molestias neque eaque omnis?</p>"},parent:{type:String,default:""}},emits:["update:modelValue"],setup(t,{emit:e}){const A=t,n=e;function r(){n("update:modelValue",!A.modelValue)}return(i,a)=>(o.openBlock(),o.createElementBlock("div",nQ,[o.createElementVNode("div",{class:"accordion-header",id:`heading${t.id}`},[o.createElementVNode("button",{class:o.normalizeClass(["accordion-button",!t.modelValue&&"collapsed"]),type:"button","data-bs-toggle":"collapse","data-bs-target":`#target${t.id}`,"aria-expanded":"true","aria-controls":`target${t.id}`,onClick:r},[o.renderSlot(i.$slots,"toggle",{},()=>[o.createElementVNode("span",aQ,o.toDisplayString(t.title),1)])],10,iQ)],8,rQ),o.createElementVNode("div",{class:o.normalizeClass(["accordion-collapse collapse",t.modelValue&&"show"]),id:`target${t.id}`,"aria-labelledby":`heading${t.id}`,"data-bs-parent":t.parent},[o.createElementVNode("div",sQ,[o.renderSlot(i.$slots,"body",{},()=>[o.createElementVNode("article",{innerHTML:t.body},null,8,lQ)])])],10,oQ)]))}}),tJ="",uQ=(t,e)=>{const A=t.__vccOpts||t;for(const[n,r]of e)A[n]=r;return A},dQ={},fQ={class:"accordion"};function hQ(t,e){return o.openBlock(),o.createElementBlock("div",fQ,[o.renderSlot(t.$slots,"default")])}const pQ=uQ(dQ,[["render",hQ]]),mQ=["type","disabled"],gQ=o.defineComponent({__name:"base-button",props:{type:{type:null},caption:{type:String},variant:{type:String},color:{type:String,default:"primary"},size:{type:String},icon:{type:String},disabled:{type:Boolean,default:!1},pending:{type:Boolean,default:!1},success:{type:Boolean,default:!1},error:{type:Boolean,default:!1},outlined:{type:Boolean,default:!1},rounded:{type:Boolean,default:!1},circle:{type:Boolean,default:!1}},setup(t){const e=t,A=o.computed(()=>e.caption&&!e.circle);return(n,r)=>{const i=o.resolveComponent("loading-spinner"),a=o.resolveComponent("svg-icon");return o.openBlock(),o.createElementBlock("button",{type:t.type,disabled:t.disabled,class:o.normalizeClass(["btn",{disabled:t.disabled,pending:t.pending,rounded:t.rounded,"rounded-circle":t.circle,[`btn-${t.color}`]:!t.outlined,[`btn-outline-${t.color}`]:t.outlined,"x-large":t.size==="x-large",large:t.size==="large",small:t.size==="small","x-small":t.size==="x-small"}])},[t.pending?o.renderSlot(n.$slots,"pending-icon",{key:0},()=>[o.createVNode(i)]):o.createCommentVNode("",!0),o.renderSlot(n.$slots,"default",{},()=>[t.icon?(o.openBlock(),o.createBlock(a,{key:0,symbol:t.icon,class:"base-button__caption"},null,8,["symbol"])):o.createCommentVNode("",!0),A.value?(o.openBlock(),o.createElementBlock("span",{key:1,class:o.normalizeClass(["base-button__caption",{"icon-padding":t.icon}])},o.toDisplayString(t.caption),3)):o.createCommentVNode("",!0)])],10,mQ)}}}),AJ="",BQ={class:"input-group input__input-group"},wQ=["type","id","name","placeholder","pattern","disabled","readonly","required","maxlength","true-value","false-value","aria-label","role","autocomplete"],yQ=["for","innerHTML"],CQ=o.defineComponent({__name:"base-input",props:{modelValue:{type:[String,Number,Boolean,Date],default:""},type:{type:String,default:"text"},name:{type:String,default:()=>Ct()},id:{type:String,default:()=>Ct()},label:{type:String,default:""},placeholder:{type:String,default:""},variant:{type:String,default:""},disabled:{type:Boolean,default:!1},readOnly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},maxlength:{type:Number},pattern:{type:String,default:null},trueValue:{type:null,default:!0},falseValue:{type:null,default:!1},role:{type:String,default:"presentation"},autocomplete:{type:String,default:"off"}},emits:["update:modelValue"],setup(t,{emit:e}){const A=t,n=e,r=o.ref(),i=o.computed({get(){return A.modelValue},set(a){n("update:modelValue",a)}});return o.onMounted(()=>{let a=s=>{console.log("focussedHandler",s),i.value=typeof s.detail=="string"||typeof s.detail=="number"?`${s.detail}`:""};r.value.addEventListener("focusin",s=>{console.log("focusin",r.value),window.addEventListener("update-focussed-input",a)}),r.value.addEventListener("focusout",s=>{console.log("focusout",r.value),window.removeEventListener("update-focussed-input",a)})}),(a,s)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["input",`input--${t.type}`])},[o.createElementVNode("div",BQ,[o.renderSlot(a.$slots,"input-prepend",{slotScope:"props"}),o.withDirectives(o.createElementVNode("input",{ref_key:"input",ref:r,"onUpdate:modelValue":s[0]||(s[0]=c=>i.value=c),type:t.type==="color"?"text":t.type,id:t.id,name:t.name,placeholder:t.placeholder,pattern:t.pattern,disabled:t.disabled,readonly:t.readOnly,required:t.required,maxlength:t.maxlength,"true-value":t.trueValue,"false-value":t.falseValue,class:o.normalizeClass(["form-control",{"form-check-input":t.type==="checkbox"}]),"aria-label":t.label,role:t.role,autocomplete:t.autocomplete},null,10,wQ),[[o.vModelDynamic,i.value]]),o.renderSlot(a.$slots,"input-append",{slotScope:"props"})]),o.renderSlot(a.$slots,"label",{},()=>[t.label?(o.openBlock(),o.createElementBlock("label",{key:0,for:t.id,class:o.normalizeClass(["input__label",{"form-check-label":t.type==="checkbox"}]),innerHTML:`${t.label}${t.required?" *":""}`},null,10,yQ)):o.createCommentVNode("",!0)])],2))}}),nJ="",bQ={class:"input input--textarea"},vQ=["type","id","name","placeholder","pattern","disabled","read-only","required","maxlength","aria-label"],EQ=["for","innerHTML"],QQ=o.defineComponent({__name:"input-textarea",props:{modelValue:{type:String,default:""},type:{type:String,default:"text"},name:{type:String,default:()=>Ct()},id:{type:String,default:()=>Ct()},label:{type:String,default:""},placeholder:{type:String,default:""},variant:{type:String,default:""},disabled:{type:Boolean,default:!1},readOnly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},maxlength:{type:Number},pattern:{type:String,default:null},checked:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(t,{emit:e}){const A=t,n=e,r=o.computed({get(){return A.modelValue},set(i){n("update:modelValue",i)}});return(i,a)=>(o.openBlock(),o.createElementBlock("div",bQ,[o.renderSlot(i.$slots,"input-prepend"),o.withDirectives(o.createElementVNode("textarea",{"onUpdate:modelValue":a[0]||(a[0]=s=>r.value=s),type:t.type,id:t.id,name:t.name,placeholder:t.placeholder,pattern:t.pattern,disabled:t.disabled,"read-only":t.readOnly,required:t.required,maxlength:t.maxlength,class:o.normalizeClass(["form-control",{}]),"aria-label":t.label},null,8,vQ),[[o.vModelText,r.value]]),o.renderSlot(i.$slots,"input-append"),o.renderSlot(i.$slots,"label",{},()=>[o.createElementVNode("label",{for:t.id,class:o.normalizeClass(["input__label",{"form-check-label":t.type==="checkbox"}]),innerHTML:`${t.label}${t.required?" *":""}`},null,10,EQ)])]))}}),FQ=["value","id","name","required","disabled","true-value","false-value"],UQ=["for","innerHTML"],kQ=o.createElementVNode("span",{class:"input__error"},"error",-1),_Q=o.defineComponent({__name:"input-checkbox",props:{id:{type:String},name:{type:String},label:{type:String},error:{type:String},disabled:{type:Boolean,default:!1},readOnly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},modelValue:{type:[Boolean,Array]},value:{type:[String,Object]},checked:{type:Boolean},trueValue:{type:null,default:!0},falseValue:{type:null,default:!1}},emits:["update:modelValue","update:checked"],setup(t,{emit:e}){const A=t,n=e,r=o.computed({get(){return A.modelValue||A.checked},set(i){n("update:checked",i),n("update:modelValue",i)}});return(i,a)=>(o.openBlock(),o.createElementBlock("div",{class:"form-check input input--checkbox",onClick:a[1]||(a[1]=o.withModifiers(s=>i.void,["stop"]))},[o.withDirectives(o.createElementVNode("input",{ref:"input","onUpdate:modelValue":a[0]||(a[0]=s=>r.value=s),value:t.value,id:t.id,name:t.name,type:"checkbox",required:t.required,disabled:t.disabled,class:"form-check-input","true-value":t.trueValue,"false-value":t.falseValue},null,8,FQ),[[o.vModelCheckbox,r.value]]),o.createElementVNode("label",{class:"input__label form-check-label",for:t.id,innerHTML:t.label},null,8,UQ),kQ]))}}),rJ=`:root,*:before,*:after{--border-color: #ced4da;--border-radius: .25rem}.input--checkbox{flex-flow:row;gap:.5rem}.input--checkbox input{order:0}
2
+ `,IQ={class:"input-group input__input-group"},SQ=["id","name","placeholder","pattern","disabled","read-only","required","aria-label"],TQ=["for","innerHTML"],xQ=o.defineComponent({__name:"input-datetime",props:{modelValue:{type:[String,Number,Boolean,Date],default:""},type:{type:String,default:"text"},name:{type:String,default:()=>Ct()},id:{type:String,default:()=>Ct()},label:{type:String,default:""},placeholder:{type:String,default:""},variant:{type:String,default:""},disabled:{type:Boolean,default:!1},readOnly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},pattern:{type:String,default:null}},emits:["update:modelValue"],setup(t,{emit:e}){const A=t,n=e,r=o.computed({get(){const i=A.modelValue&&new Date(`${A.modelValue}Z`),a=i&&new Date(i.getTime()+new Date().getTimezoneOffset()*-60*1e3).toISOString();return a&&a.replace("Z","")},set(i){const a=i&&new Date(i);i=a&&a.toISOString(),n("update:modelValue",i&&i.replace("Z",""))}});return(i,a)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["input",`input--${t.type}`])},[o.createElementVNode("div",IQ,[o.renderSlot(i.$slots,"input-prepend",{slotScope:"props"}),o.withDirectives(o.createElementVNode("input",{"onUpdate:modelValue":a[0]||(a[0]=s=>r.value=s),type:"datetime-local",id:t.id,name:t.name,placeholder:t.placeholder,pattern:t.pattern,disabled:t.disabled,"read-only":t.readOnly,required:t.required,class:"form-control","aria-label":t.label},null,8,SQ),[[o.vModelText,r.value]]),o.renderSlot(i.$slots,"input-append",{slotScope:"props"})]),o.renderSlot(i.$slots,"label",{},()=>[t.label?(o.openBlock(),o.createElementBlock("label",{key:0,for:t.id,class:"input__label",innerHTML:`${t.label}${t.required?" *":""}`},null,8,TQ)):o.createCommentVNode("",!0)])],2))}}),Dm=6048e5,DQ=864e5,MQ=6e4,Mm=36e5,OQ=1e3,Om=Symbol.for("constructDateFrom");function Ut(t,e){return typeof t=="function"?t(e):t&&typeof t=="object"&&Om in t?t[Om](e):t instanceof Date?new t.constructor(e):new Date(e)}function ze(t,e){return Ut(e||t,t)}function kn(t,e,A){const n=ze(t,A==null?void 0:A.in);return isNaN(e)?Ut((A==null?void 0:A.in)||t,NaN):(e&&n.setDate(n.getDate()+e),n)}function Wn(t,e,A){const n=ze(t,A==null?void 0:A.in);if(isNaN(e))return Ut((A==null?void 0:A.in)||t,NaN);if(!e)return n;const r=n.getDate(),i=Ut((A==null?void 0:A.in)||t,n.getTime());i.setMonth(n.getMonth()+e+1,0);const a=i.getDate();return r>=a?i:(n.setFullYear(i.getFullYear(),i.getMonth(),r),n)}function Nm(t,e,A){const{years:n=0,months:r=0,weeks:i=0,days:a=0,hours:s=0,minutes:c=0,seconds:d=0}=e,f=ze(t,A==null?void 0:A.in),h=r||n?Wn(f,r+n*12):f,m=a||i?kn(h,a+i*7):h,g=c+s*60,y=(d+g*60)*1e3;return Ut((A==null?void 0:A.in)||t,+m+y)}function NQ(t,e,A){return Ut((A==null?void 0:A.in)||t,+ze(t)+e)}function LQ(t,e,A){return NQ(t,e*Mm,A)}let HQ={};function Yi(){return HQ}function Yn(t,e){var s,c,d,f;const A=Yi(),n=(e==null?void 0:e.weekStartsOn)??((c=(s=e==null?void 0:e.locale)==null?void 0:s.options)==null?void 0:c.weekStartsOn)??A.weekStartsOn??((f=(d=A.locale)==null?void 0:d.options)==null?void 0:f.weekStartsOn)??0,r=ze(t,e==null?void 0:e.in),i=r.getDay(),a=(i<n?7:0)+i-n;return r.setDate(r.getDate()-a),r.setHours(0,0,0,0),r}function Da(t,e){return Yn(t,{...e,weekStartsOn:1})}function Lm(t,e){const A=ze(t,e==null?void 0:e.in),n=A.getFullYear(),r=Ut(A,0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);const i=Da(r),a=Ut(A,0);a.setFullYear(n,0,4),a.setHours(0,0,0,0);const s=Da(a);return A.getTime()>=i.getTime()?n+1:A.getTime()>=s.getTime()?n:n-1}function fl(t){const e=ze(t),A=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return A.setUTCFullYear(e.getFullYear()),+t-+A}function $o(t,...e){const A=Ut.bind(null,t||e.find(n=>typeof n=="object"));return e.map(A)}function Hm(t,e){const A=ze(t,e==null?void 0:e.in);return A.setHours(0,0,0,0),A}function Rm(t,e,A){const[n,r]=$o(A==null?void 0:A.in,t,e),i=Hm(n),a=Hm(r),s=+i-fl(i),c=+a-fl(a);return Math.round((s-c)/DQ)}function RQ(t,e){const A=Lm(t,e),n=Ut((e==null?void 0:e.in)||t,0);return n.setFullYear(A,0,4),n.setHours(0,0,0,0),Da(n)}function PQ(t,e,A){return Wn(t,e*3,A)}function td(t,e,A){return Wn(t,e*12,A)}function Pm(t,e){const A=+ze(t)-+ze(e);return A<0?-1:A>0?1:A}function Vm(t){return t instanceof Date||typeof t=="object"&&Object.prototype.toString.call(t)==="[object Date]"}function Go(t){return!(!Vm(t)&&typeof t!="number"||isNaN(+ze(t)))}function Km(t,e){const A=ze(t,e==null?void 0:e.in);return Math.trunc(A.getMonth()/3)+1}function VQ(t,e,A){const[n,r]=$o(A==null?void 0:A.in,t,e);return n.getFullYear()-r.getFullYear()}function KQ(t,e,A){const[n,r]=$o(A==null?void 0:A.in,t,e),i=Pm(n,r),a=Math.abs(VQ(n,r));n.setFullYear(1584),r.setFullYear(1584);const s=Pm(n,r)===-i,c=i*(a-+s);return c===0?0:c}function $m(t,e){const[A,n]=$o(t,e.start,e.end);return{start:A,end:n}}function Gm(t,e){const{start:A,end:n}=$m(e==null?void 0:e.in,t);let r=+A>+n;const i=r?+A:+n,a=r?n:A;a.setHours(0,0,0,0);let s=(e==null?void 0:e.step)??1;if(!s)return[];s<0&&(s=-s,r=!r);const c=[];for(;+a<=i;)c.push(Ut(A,a)),a.setDate(a.getDate()+s),a.setHours(0,0,0,0);return r?c.reverse():c}function zi(t,e){const A=ze(t,e==null?void 0:e.in),n=A.getMonth(),r=n-n%3;return A.setMonth(r,1),A.setHours(0,0,0,0),A}function $Q(t,e){const{start:A,end:n}=$m(e==null?void 0:e.in,t);let r=+A>+n;const i=r?+zi(A):+zi(n);let a=zi(r?n:A),s=(e==null?void 0:e.step)??1;if(!s)return[];s<0&&(s=-s,r=!r);const c=[];for(;+a<=i;)c.push(Ut(A,a)),a=PQ(a,s);return r?c.reverse():c}function GQ(t,e){const A=ze(t,e==null?void 0:e.in);return A.setDate(1),A.setHours(0,0,0,0),A}function Wm(t,e){const A=ze(t,e==null?void 0:e.in),n=A.getFullYear();return A.setFullYear(n+1,0,0),A.setHours(23,59,59,999),A}function Wo(t,e){const A=ze(t,e==null?void 0:e.in);return A.setFullYear(A.getFullYear(),0,1),A.setHours(0,0,0,0),A}function Ym(t,e){var s,c,d,f;const A=Yi(),n=(e==null?void 0:e.weekStartsOn)??((c=(s=e==null?void 0:e.locale)==null?void 0:s.options)==null?void 0:c.weekStartsOn)??A.weekStartsOn??((f=(d=A.locale)==null?void 0:d.options)==null?void 0:f.weekStartsOn)??0,r=ze(t,e==null?void 0:e.in),i=r.getDay(),a=(i<n?-7:0)+6-(i-n);return r.setDate(r.getDate()+a),r.setHours(23,59,59,999),r}function zm(t,e){const A=ze(t,e==null?void 0:e.in),n=A.getMonth(),r=n-n%3+3;return A.setMonth(r,0),A.setHours(23,59,59,999),A}const WQ={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},YQ=(t,e,A)=>{let n;const r=WQ[t];return typeof r=="string"?n=r:e===1?n=r.one:n=r.other.replace("{{count}}",e.toString()),A!=null&&A.addSuffix?A.comparison&&A.comparison>0?"in "+n:n+" ago":n};function Ad(t){return(e={})=>{const A=e.width?String(e.width):t.defaultWidth;return t.formats[A]||t.formats[t.defaultWidth]}}const zQ={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},JQ={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},XQ={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},qQ={date:Ad({formats:zQ,defaultWidth:"full"}),time:Ad({formats:JQ,defaultWidth:"full"}),dateTime:Ad({formats:XQ,defaultWidth:"full"})},jQ={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},ZQ=(t,e,A,n)=>jQ[t];function Yo(t){return(e,A)=>{const n=A!=null&&A.context?String(A.context):"standalone";let r;if(n==="formatting"&&t.formattingValues){const a=t.defaultFormattingWidth||t.defaultWidth,s=A!=null&&A.width?String(A.width):a;r=t.formattingValues[s]||t.formattingValues[a]}else{const a=t.defaultWidth,s=A!=null&&A.width?String(A.width):t.defaultWidth;r=t.values[s]||t.values[a]}const i=t.argumentCallback?t.argumentCallback(e):e;return r[i]}}const eF={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},tF={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},AF={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},nF={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},rF={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},iF={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},aF={ordinalNumber:(t,e)=>{const A=Number(t),n=A%100;if(n>20||n<10)switch(n%10){case 1:return A+"st";case 2:return A+"nd";case 3:return A+"rd"}return A+"th"},era:Yo({values:eF,defaultWidth:"wide"}),quarter:Yo({values:tF,defaultWidth:"wide",argumentCallback:t=>t-1}),month:Yo({values:AF,defaultWidth:"wide"}),day:Yo({values:nF,defaultWidth:"wide"}),dayPeriod:Yo({values:rF,defaultWidth:"wide",formattingValues:iF,defaultFormattingWidth:"wide"})};function zo(t){return(e,A={})=>{const n=A.width,r=n&&t.matchPatterns[n]||t.matchPatterns[t.defaultMatchWidth],i=e.match(r);if(!i)return null;const a=i[0],s=n&&t.parsePatterns[n]||t.parsePatterns[t.defaultParseWidth],c=Array.isArray(s)?sF(s,h=>h.test(a)):oF(s,h=>h.test(a));let d;d=t.valueCallback?t.valueCallback(c):c,d=A.valueCallback?A.valueCallback(d):d;const f=e.slice(a.length);return{value:d,rest:f}}}function oF(t,e){for(const A in t)if(Object.prototype.hasOwnProperty.call(t,A)&&e(t[A]))return A}function sF(t,e){for(let A=0;A<t.length;A++)if(e(t[A]))return A}function lF(t){return(e,A={})=>{const n=e.match(t.matchPattern);if(!n)return null;const r=n[0],i=e.match(t.parsePattern);if(!i)return null;let a=t.valueCallback?t.valueCallback(i[0]):i[0];a=A.valueCallback?A.valueCallback(a):a;const s=e.slice(r.length);return{value:a,rest:s}}}const cF=/^(\d+)(th|st|nd|rd)?/i,uF=/\d+/i,dF={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},fF={any:[/^b/i,/^(a|c)/i]},hF={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},pF={any:[/1/i,/2/i,/3/i,/4/i]},mF={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},gF={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},BF={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},wF={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},yF={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},CF={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},bF={ordinalNumber:lF({matchPattern:cF,parsePattern:uF,valueCallback:t=>parseInt(t,10)}),era:zo({matchPatterns:dF,defaultMatchWidth:"wide",parsePatterns:fF,defaultParseWidth:"any"}),quarter:zo({matchPatterns:hF,defaultMatchWidth:"wide",parsePatterns:pF,defaultParseWidth:"any",valueCallback:t=>t+1}),month:zo({matchPatterns:mF,defaultMatchWidth:"wide",parsePatterns:gF,defaultParseWidth:"any"}),day:zo({matchPatterns:BF,defaultMatchWidth:"wide",parsePatterns:wF,defaultParseWidth:"any"}),dayPeriod:zo({matchPatterns:yF,defaultMatchWidth:"any",parsePatterns:CF,defaultParseWidth:"any"})},Jm={code:"en-US",formatDistance:YQ,formatLong:qQ,formatRelative:ZQ,localize:aF,match:bF,options:{weekStartsOn:0,firstWeekContainsDate:1}};function vF(t,e){const A=ze(t,e==null?void 0:e.in);return Rm(A,Wo(A))+1}function nd(t,e){const A=ze(t,e==null?void 0:e.in),n=+Da(A)-+RQ(A);return Math.round(n/Dm)+1}function rd(t,e){var f,h,m,g;const A=ze(t,e==null?void 0:e.in),n=A.getFullYear(),r=Yi(),i=(e==null?void 0:e.firstWeekContainsDate)??((h=(f=e==null?void 0:e.locale)==null?void 0:f.options)==null?void 0:h.firstWeekContainsDate)??r.firstWeekContainsDate??((g=(m=r.locale)==null?void 0:m.options)==null?void 0:g.firstWeekContainsDate)??1,a=Ut((e==null?void 0:e.in)||t,0);a.setFullYear(n+1,0,i),a.setHours(0,0,0,0);const s=Yn(a,e),c=Ut((e==null?void 0:e.in)||t,0);c.setFullYear(n,0,i),c.setHours(0,0,0,0);const d=Yn(c,e);return+A>=+s?n+1:+A>=+d?n:n-1}function EF(t,e){var s,c,d,f;const A=Yi(),n=(e==null?void 0:e.firstWeekContainsDate)??((c=(s=e==null?void 0:e.locale)==null?void 0:s.options)==null?void 0:c.firstWeekContainsDate)??A.firstWeekContainsDate??((f=(d=A.locale)==null?void 0:d.options)==null?void 0:f.firstWeekContainsDate)??1,r=rd(t,e),i=Ut((e==null?void 0:e.in)||t,0);return i.setFullYear(r,0,n),i.setHours(0,0,0,0),Yn(i,e)}function id(t,e){const A=ze(t,e==null?void 0:e.in),n=+Yn(A,e)-+EF(A,e);return Math.round(n/Dm)+1}function kt(t,e){const A=t<0?"-":"",n=Math.abs(t).toString().padStart(e,"0");return A+n}const ri={y(t,e){const A=t.getFullYear(),n=A>0?A:1-A;return kt(e==="yy"?n%100:n,e.length)},M(t,e){const A=t.getMonth();return e==="M"?String(A+1):kt(A+1,2)},d(t,e){return kt(t.getDate(),e.length)},a(t,e){const A=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return A.toUpperCase();case"aaa":return A;case"aaaaa":return A[0];case"aaaa":default:return A==="am"?"a.m.":"p.m."}},h(t,e){return kt(t.getHours()%12||12,e.length)},H(t,e){return kt(t.getHours(),e.length)},m(t,e){return kt(t.getMinutes(),e.length)},s(t,e){return kt(t.getSeconds(),e.length)},S(t,e){const A=e.length,n=t.getMilliseconds(),r=Math.trunc(n*Math.pow(10,A-3));return kt(r,e.length)}},Ma={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Xm={G:function(t,e,A){const n=t.getFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return A.era(n,{width:"abbreviated"});case"GGGGG":return A.era(n,{width:"narrow"});case"GGGG":default:return A.era(n,{width:"wide"})}},y:function(t,e,A){if(e==="yo"){const n=t.getFullYear(),r=n>0?n:1-n;return A.ordinalNumber(r,{unit:"year"})}return ri.y(t,e)},Y:function(t,e,A,n){const r=rd(t,n),i=r>0?r:1-r;if(e==="YY"){const a=i%100;return kt(a,2)}return e==="Yo"?A.ordinalNumber(i,{unit:"year"}):kt(i,e.length)},R:function(t,e){const A=Lm(t);return kt(A,e.length)},u:function(t,e){const A=t.getFullYear();return kt(A,e.length)},Q:function(t,e,A){const n=Math.ceil((t.getMonth()+1)/3);switch(e){case"Q":return String(n);case"QQ":return kt(n,2);case"Qo":return A.ordinalNumber(n,{unit:"quarter"});case"QQQ":return A.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return A.quarter(n,{width:"narrow",context:"formatting"});case"QQQQ":default:return A.quarter(n,{width:"wide",context:"formatting"})}},q:function(t,e,A){const n=Math.ceil((t.getMonth()+1)/3);switch(e){case"q":return String(n);case"qq":return kt(n,2);case"qo":return A.ordinalNumber(n,{unit:"quarter"});case"qqq":return A.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return A.quarter(n,{width:"narrow",context:"standalone"});case"qqqq":default:return A.quarter(n,{width:"wide",context:"standalone"})}},M:function(t,e,A){const n=t.getMonth();switch(e){case"M":case"MM":return ri.M(t,e);case"Mo":return A.ordinalNumber(n+1,{unit:"month"});case"MMM":return A.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return A.month(n,{width:"narrow",context:"formatting"});case"MMMM":default:return A.month(n,{width:"wide",context:"formatting"})}},L:function(t,e,A){const n=t.getMonth();switch(e){case"L":return String(n+1);case"LL":return kt(n+1,2);case"Lo":return A.ordinalNumber(n+1,{unit:"month"});case"LLL":return A.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return A.month(n,{width:"narrow",context:"standalone"});case"LLLL":default:return A.month(n,{width:"wide",context:"standalone"})}},w:function(t,e,A,n){const r=id(t,n);return e==="wo"?A.ordinalNumber(r,{unit:"week"}):kt(r,e.length)},I:function(t,e,A){const n=nd(t);return e==="Io"?A.ordinalNumber(n,{unit:"week"}):kt(n,e.length)},d:function(t,e,A){return e==="do"?A.ordinalNumber(t.getDate(),{unit:"date"}):ri.d(t,e)},D:function(t,e,A){const n=vF(t);return e==="Do"?A.ordinalNumber(n,{unit:"dayOfYear"}):kt(n,e.length)},E:function(t,e,A){const n=t.getDay();switch(e){case"E":case"EE":case"EEE":return A.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return A.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return A.day(n,{width:"short",context:"formatting"});case"EEEE":default:return A.day(n,{width:"wide",context:"formatting"})}},e:function(t,e,A,n){const r=t.getDay(),i=(r-n.weekStartsOn+8)%7||7;switch(e){case"e":return String(i);case"ee":return kt(i,2);case"eo":return A.ordinalNumber(i,{unit:"day"});case"eee":return A.day(r,{width:"abbreviated",context:"formatting"});case"eeeee":return A.day(r,{width:"narrow",context:"formatting"});case"eeeeee":return A.day(r,{width:"short",context:"formatting"});case"eeee":default:return A.day(r,{width:"wide",context:"formatting"})}},c:function(t,e,A,n){const r=t.getDay(),i=(r-n.weekStartsOn+8)%7||7;switch(e){case"c":return String(i);case"cc":return kt(i,e.length);case"co":return A.ordinalNumber(i,{unit:"day"});case"ccc":return A.day(r,{width:"abbreviated",context:"standalone"});case"ccccc":return A.day(r,{width:"narrow",context:"standalone"});case"cccccc":return A.day(r,{width:"short",context:"standalone"});case"cccc":default:return A.day(r,{width:"wide",context:"standalone"})}},i:function(t,e,A){const n=t.getDay(),r=n===0?7:n;switch(e){case"i":return String(r);case"ii":return kt(r,e.length);case"io":return A.ordinalNumber(r,{unit:"day"});case"iii":return A.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return A.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return A.day(n,{width:"short",context:"formatting"});case"iiii":default:return A.day(n,{width:"wide",context:"formatting"})}},a:function(t,e,A){const r=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return A.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return A.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return A.dayPeriod(r,{width:"narrow",context:"formatting"});case"aaaa":default:return A.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(t,e,A){const n=t.getHours();let r;switch(n===12?r=Ma.noon:n===0?r=Ma.midnight:r=n/12>=1?"pm":"am",e){case"b":case"bb":return A.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return A.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return A.dayPeriod(r,{width:"narrow",context:"formatting"});case"bbbb":default:return A.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(t,e,A){const n=t.getHours();let r;switch(n>=17?r=Ma.evening:n>=12?r=Ma.afternoon:n>=4?r=Ma.morning:r=Ma.night,e){case"B":case"BB":case"BBB":return A.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return A.dayPeriod(r,{width:"narrow",context:"formatting"});case"BBBB":default:return A.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(t,e,A){if(e==="ho"){let n=t.getHours()%12;return n===0&&(n=12),A.ordinalNumber(n,{unit:"hour"})}return ri.h(t,e)},H:function(t,e,A){return e==="Ho"?A.ordinalNumber(t.getHours(),{unit:"hour"}):ri.H(t,e)},K:function(t,e,A){const n=t.getHours()%12;return e==="Ko"?A.ordinalNumber(n,{unit:"hour"}):kt(n,e.length)},k:function(t,e,A){let n=t.getHours();return n===0&&(n=24),e==="ko"?A.ordinalNumber(n,{unit:"hour"}):kt(n,e.length)},m:function(t,e,A){return e==="mo"?A.ordinalNumber(t.getMinutes(),{unit:"minute"}):ri.m(t,e)},s:function(t,e,A){return e==="so"?A.ordinalNumber(t.getSeconds(),{unit:"second"}):ri.s(t,e)},S:function(t,e){return ri.S(t,e)},X:function(t,e,A){const n=t.getTimezoneOffset();if(n===0)return"Z";switch(e){case"X":return jm(n);case"XXXX":case"XX":return Ji(n);case"XXXXX":case"XXX":default:return Ji(n,":")}},x:function(t,e,A){const n=t.getTimezoneOffset();switch(e){case"x":return jm(n);case"xxxx":case"xx":return Ji(n);case"xxxxx":case"xxx":default:return Ji(n,":")}},O:function(t,e,A){const n=t.getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+qm(n,":");case"OOOO":default:return"GMT"+Ji(n,":")}},z:function(t,e,A){const n=t.getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+qm(n,":");case"zzzz":default:return"GMT"+Ji(n,":")}},t:function(t,e,A){const n=Math.trunc(+t/1e3);return kt(n,e.length)},T:function(t,e,A){return kt(+t,e.length)}};function qm(t,e=""){const A=t>0?"-":"+",n=Math.abs(t),r=Math.trunc(n/60),i=n%60;return i===0?A+String(r):A+String(r)+e+kt(i,2)}function jm(t,e){return t%60===0?(t>0?"-":"+")+kt(Math.abs(t)/60,2):Ji(t,e)}function Ji(t,e=""){const A=t>0?"-":"+",n=Math.abs(t),r=kt(Math.trunc(n/60),2),i=kt(n%60,2);return A+r+e+i}const Zm=(t,e)=>{switch(t){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});case"PPPP":default:return e.date({width:"full"})}},eg=(t,e)=>{switch(t){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});case"pppp":default:return e.time({width:"full"})}},ad={p:eg,P:(t,e)=>{const A=t.match(/(P+)(p+)?/)||[],n=A[1],r=A[2];if(!r)return Zm(t,e);let i;switch(n){case"P":i=e.dateTime({width:"short"});break;case"PP":i=e.dateTime({width:"medium"});break;case"PPP":i=e.dateTime({width:"long"});break;case"PPPP":default:i=e.dateTime({width:"full"});break}return i.replace("{{date}}",Zm(n,e)).replace("{{time}}",eg(r,e))}},QF=/^D+$/,FF=/^Y+$/,UF=["D","DD","YY","YYYY"];function tg(t){return QF.test(t)}function Ag(t){return FF.test(t)}function od(t,e,A){const n=kF(t,e,A);if(console.warn(n),UF.includes(t))throw new RangeError(n)}function kF(t,e,A){const n=t[0]==="Y"?"years":"days of the month";return`Use \`${t.toLowerCase()}\` instead of \`${t}\` (in \`${e}\`) for formatting ${n} to the input \`${A}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const _F=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,IF=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,SF=/^'([^]*?)'?$/,TF=/''/g,xF=/[a-zA-Z]/;function cr(t,e,A){var f,h,m,g,B,y,v,Q;const n=Yi(),r=(A==null?void 0:A.locale)??n.locale??Jm,i=(A==null?void 0:A.firstWeekContainsDate)??((h=(f=A==null?void 0:A.locale)==null?void 0:f.options)==null?void 0:h.firstWeekContainsDate)??n.firstWeekContainsDate??((g=(m=n.locale)==null?void 0:m.options)==null?void 0:g.firstWeekContainsDate)??1,a=(A==null?void 0:A.weekStartsOn)??((y=(B=A==null?void 0:A.locale)==null?void 0:B.options)==null?void 0:y.weekStartsOn)??n.weekStartsOn??((Q=(v=n.locale)==null?void 0:v.options)==null?void 0:Q.weekStartsOn)??0,s=ze(t,A==null?void 0:A.in);if(!Go(s))throw new RangeError("Invalid time value");let c=e.match(IF).map(k=>{const F=k[0];if(F==="p"||F==="P"){const C=ad[F];return C(k,r.formatLong)}return k}).join("").match(_F).map(k=>{if(k==="''")return{isToken:!1,value:"'"};const F=k[0];if(F==="'")return{isToken:!1,value:DF(k)};if(Xm[F])return{isToken:!0,value:k};if(F.match(xF))throw new RangeError("Format string contains an unescaped latin alphabet character `"+F+"`");return{isToken:!1,value:k}});r.localize.preprocessor&&(c=r.localize.preprocessor(s,c));const d={firstWeekContainsDate:i,weekStartsOn:a,locale:r};return c.map(k=>{if(!k.isToken)return k.value;const F=k.value;(!(A!=null&&A.useAdditionalWeekYearTokens)&&Ag(F)||!(A!=null&&A.useAdditionalDayOfYearTokens)&&tg(F))&&od(F,e,String(t));const C=Xm[F[0]];return C(s,F,r.localize,d)}).join("")}function DF(t){const e=t.match(SF);return e?e[1].replace(TF,"'"):t}function MF(t,e){return ze(t,e==null?void 0:e.in).getDay()}function OF(t,e){const A=ze(t,e==null?void 0:e.in),n=A.getFullYear(),r=A.getMonth(),i=Ut(A,0);return i.setFullYear(n,r+1,0),i.setHours(0,0,0,0),i.getDate()}function NF(){return Object.assign({},Yi())}function Ir(t,e){return ze(t,e==null?void 0:e.in).getHours()}function LF(t,e){const A=ze(t,e==null?void 0:e.in).getDay();return A===0?7:A}function ii(t,e){return ze(t,e==null?void 0:e.in).getMinutes()}function pt(t,e){return ze(t,e==null?void 0:e.in).getMonth()}function Oa(t){return ze(t).getSeconds()}function tt(t,e){return ze(t,e==null?void 0:e.in).getFullYear()}function Xi(t,e){return+ze(t)>+ze(e)}function Na(t,e){return+ze(t)<+ze(e)}function La(t,e){return+ze(t)==+ze(e)}function HF(t,e){const A=RF(e)?new e(0):Ut(e,0);return A.setFullYear(t.getFullYear(),t.getMonth(),t.getDate()),A.setHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),A}function RF(t){var e;return typeof t=="function"&&((e=t.prototype)==null?void 0:e.constructor)===t}const PF=10;class ng{constructor(){Oe(this,"subPriority",0)}validate(e,A){return!0}}class VF extends ng{constructor(e,A,n,r,i){super(),this.value=e,this.validateValue=A,this.setValue=n,this.priority=r,i&&(this.subPriority=i)}validate(e,A){return this.validateValue(e,this.value,A)}set(e,A,n){return this.setValue(e,A,this.value,n)}}class KF extends ng{constructor(A,n){super();Oe(this,"priority",PF);Oe(this,"subPriority",-1);this.context=A||(r=>Ut(n,r))}set(A,n){return n.timestampIsSet?A:Ut(A,HF(A,this.context))}}let bt=class{run(e,A,n,r){const i=this.parse(e,A,n,r);return i?{setter:new VF(i.value,this.validate,this.set,this.priority,this.subPriority),rest:i.rest}:null}validate(e,A,n){return!0}};class $F extends bt{constructor(){super(...arguments);Oe(this,"priority",140);Oe(this,"incompatibleTokens",["R","u","t","T"])}parse(A,n,r){switch(n){case"G":case"GG":case"GGG":return r.era(A,{width:"abbreviated"})||r.era(A,{width:"narrow"});case"GGGGG":return r.era(A,{width:"narrow"});case"GGGG":default:return r.era(A,{width:"wide"})||r.era(A,{width:"abbreviated"})||r.era(A,{width:"narrow"})}}set(A,n,r){return n.era=r,A.setFullYear(r,0,1),A.setHours(0,0,0,0),A}}const qt={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},ur={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function jt(t,e){return t&&{value:e(t.value),rest:t.rest}}function $t(t,e){const A=e.match(t);return A?{value:parseInt(A[0],10),rest:e.slice(A[0].length)}:null}function dr(t,e){const A=e.match(t);if(!A)return null;if(A[0]==="Z")return{value:0,rest:e.slice(1)};const n=A[1]==="+"?1:-1,r=A[2]?parseInt(A[2],10):0,i=A[3]?parseInt(A[3],10):0,a=A[5]?parseInt(A[5],10):0;return{value:n*(r*Mm+i*MQ+a*OQ),rest:e.slice(A[0].length)}}function rg(t){return $t(qt.anyDigitsSigned,t)}function Yt(t,e){switch(t){case 1:return $t(qt.singleDigit,e);case 2:return $t(qt.twoDigits,e);case 3:return $t(qt.threeDigits,e);case 4:return $t(qt.fourDigits,e);default:return $t(new RegExp("^\\d{1,"+t+"}"),e)}}function hl(t,e){switch(t){case 1:return $t(qt.singleDigitSigned,e);case 2:return $t(qt.twoDigitsSigned,e);case 3:return $t(qt.threeDigitsSigned,e);case 4:return $t(qt.fourDigitsSigned,e);default:return $t(new RegExp("^-?\\d{1,"+t+"}"),e)}}function sd(t){switch(t){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function ig(t,e){const A=e>0,n=A?e:1-e;let r;if(n<=50)r=t||100;else{const i=n+50,a=Math.trunc(i/100)*100,s=t>=i%100;r=t+a-(s?100:0)}return A?r:1-r}function ag(t){return t%400===0||t%4===0&&t%100!==0}class GF extends bt{constructor(){super(...arguments);Oe(this,"priority",130);Oe(this,"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"])}parse(A,n,r){const i=a=>({year:a,isTwoDigitYear:n==="yy"});switch(n){case"y":return jt(Yt(4,A),i);case"yo":return jt(r.ordinalNumber(A,{unit:"year"}),i);default:return jt(Yt(n.length,A),i)}}validate(A,n){return n.isTwoDigitYear||n.year>0}set(A,n,r){const i=A.getFullYear();if(r.isTwoDigitYear){const s=ig(r.year,i);return A.setFullYear(s,0,1),A.setHours(0,0,0,0),A}const a=!("era"in n)||n.era===1?r.year:1-r.year;return A.setFullYear(a,0,1),A.setHours(0,0,0,0),A}}class WF extends bt{constructor(){super(...arguments);Oe(this,"priority",130);Oe(this,"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"])}parse(A,n,r){const i=a=>({year:a,isTwoDigitYear:n==="YY"});switch(n){case"Y":return jt(Yt(4,A),i);case"Yo":return jt(r.ordinalNumber(A,{unit:"year"}),i);default:return jt(Yt(n.length,A),i)}}validate(A,n){return n.isTwoDigitYear||n.year>0}set(A,n,r,i){const a=rd(A,i);if(r.isTwoDigitYear){const c=ig(r.year,a);return A.setFullYear(c,0,i.firstWeekContainsDate),A.setHours(0,0,0,0),Yn(A,i)}const s=!("era"in n)||n.era===1?r.year:1-r.year;return A.setFullYear(s,0,i.firstWeekContainsDate),A.setHours(0,0,0,0),Yn(A,i)}}class YF extends bt{constructor(){super(...arguments);Oe(this,"priority",130);Oe(this,"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"])}parse(A,n){return hl(n==="R"?4:n.length,A)}set(A,n,r){const i=Ut(A,0);return i.setFullYear(r,0,4),i.setHours(0,0,0,0),Da(i)}}class zF extends bt{constructor(){super(...arguments);Oe(this,"priority",130);Oe(this,"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"])}parse(A,n){return hl(n==="u"?4:n.length,A)}set(A,n,r){return A.setFullYear(r,0,1),A.setHours(0,0,0,0),A}}class JF extends bt{constructor(){super(...arguments);Oe(this,"priority",120);Oe(this,"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"])}parse(A,n,r){switch(n){case"Q":case"QQ":return Yt(n.length,A);case"Qo":return r.ordinalNumber(A,{unit:"quarter"});case"QQQ":return r.quarter(A,{width:"abbreviated",context:"formatting"})||r.quarter(A,{width:"narrow",context:"formatting"});case"QQQQQ":return r.quarter(A,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(A,{width:"wide",context:"formatting"})||r.quarter(A,{width:"abbreviated",context:"formatting"})||r.quarter(A,{width:"narrow",context:"formatting"})}}validate(A,n){return n>=1&&n<=4}set(A,n,r){return A.setMonth((r-1)*3,1),A.setHours(0,0,0,0),A}}class XF extends bt{constructor(){super(...arguments);Oe(this,"priority",120);Oe(this,"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"])}parse(A,n,r){switch(n){case"q":case"qq":return Yt(n.length,A);case"qo":return r.ordinalNumber(A,{unit:"quarter"});case"qqq":return r.quarter(A,{width:"abbreviated",context:"standalone"})||r.quarter(A,{width:"narrow",context:"standalone"});case"qqqqq":return r.quarter(A,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(A,{width:"wide",context:"standalone"})||r.quarter(A,{width:"abbreviated",context:"standalone"})||r.quarter(A,{width:"narrow",context:"standalone"})}}validate(A,n){return n>=1&&n<=4}set(A,n,r){return A.setMonth((r-1)*3,1),A.setHours(0,0,0,0),A}}class qF extends bt{constructor(){super(...arguments);Oe(this,"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]);Oe(this,"priority",110)}parse(A,n,r){const i=a=>a-1;switch(n){case"M":return jt($t(qt.month,A),i);case"MM":return jt(Yt(2,A),i);case"Mo":return jt(r.ordinalNumber(A,{unit:"month"}),i);case"MMM":return r.month(A,{width:"abbreviated",context:"formatting"})||r.month(A,{width:"narrow",context:"formatting"});case"MMMMM":return r.month(A,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(A,{width:"wide",context:"formatting"})||r.month(A,{width:"abbreviated",context:"formatting"})||r.month(A,{width:"narrow",context:"formatting"})}}validate(A,n){return n>=0&&n<=11}set(A,n,r){return A.setMonth(r,1),A.setHours(0,0,0,0),A}}class jF extends bt{constructor(){super(...arguments);Oe(this,"priority",110);Oe(this,"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"])}parse(A,n,r){const i=a=>a-1;switch(n){case"L":return jt($t(qt.month,A),i);case"LL":return jt(Yt(2,A),i);case"Lo":return jt(r.ordinalNumber(A,{unit:"month"}),i);case"LLL":return r.month(A,{width:"abbreviated",context:"standalone"})||r.month(A,{width:"narrow",context:"standalone"});case"LLLLL":return r.month(A,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(A,{width:"wide",context:"standalone"})||r.month(A,{width:"abbreviated",context:"standalone"})||r.month(A,{width:"narrow",context:"standalone"})}}validate(A,n){return n>=0&&n<=11}set(A,n,r){return A.setMonth(r,1),A.setHours(0,0,0,0),A}}function ZF(t,e,A){const n=ze(t,A==null?void 0:A.in),r=id(n,A)-e;return n.setDate(n.getDate()-r*7),ze(n,A==null?void 0:A.in)}class eU extends bt{constructor(){super(...arguments);Oe(this,"priority",100);Oe(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"])}parse(A,n,r){switch(n){case"w":return $t(qt.week,A);case"wo":return r.ordinalNumber(A,{unit:"week"});default:return Yt(n.length,A)}}validate(A,n){return n>=1&&n<=53}set(A,n,r,i){return Yn(ZF(A,r,i),i)}}function tU(t,e,A){const n=ze(t,A==null?void 0:A.in),r=nd(n,A)-e;return n.setDate(n.getDate()-r*7),n}class AU extends bt{constructor(){super(...arguments);Oe(this,"priority",100);Oe(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"])}parse(A,n,r){switch(n){case"I":return $t(qt.week,A);case"Io":return r.ordinalNumber(A,{unit:"week"});default:return Yt(n.length,A)}}validate(A,n){return n>=1&&n<=53}set(A,n,r){return Da(tU(A,r))}}const nU=[31,28,31,30,31,30,31,31,30,31,30,31],rU=[31,29,31,30,31,30,31,31,30,31,30,31];class iU extends bt{constructor(){super(...arguments);Oe(this,"priority",90);Oe(this,"subPriority",1);Oe(this,"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"])}parse(A,n,r){switch(n){case"d":return $t(qt.date,A);case"do":return r.ordinalNumber(A,{unit:"date"});default:return Yt(n.length,A)}}validate(A,n){const r=A.getFullYear(),i=ag(r),a=A.getMonth();return i?n>=1&&n<=rU[a]:n>=1&&n<=nU[a]}set(A,n,r){return A.setDate(r),A.setHours(0,0,0,0),A}}class aU extends bt{constructor(){super(...arguments);Oe(this,"priority",90);Oe(this,"subpriority",1);Oe(this,"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"])}parse(A,n,r){switch(n){case"D":case"DD":return $t(qt.dayOfYear,A);case"Do":return r.ordinalNumber(A,{unit:"date"});default:return Yt(n.length,A)}}validate(A,n){const r=A.getFullYear();return ag(r)?n>=1&&n<=366:n>=1&&n<=365}set(A,n,r){return A.setMonth(0,r),A.setHours(0,0,0,0),A}}function ld(t,e,A){var h,m,g,B;const n=Yi(),r=(A==null?void 0:A.weekStartsOn)??((m=(h=A==null?void 0:A.locale)==null?void 0:h.options)==null?void 0:m.weekStartsOn)??n.weekStartsOn??((B=(g=n.locale)==null?void 0:g.options)==null?void 0:B.weekStartsOn)??0,i=ze(t,A==null?void 0:A.in),a=i.getDay(),c=(e%7+7)%7,d=7-r,f=e<0||e>6?e-(a+d)%7:(c+d)%7-(a+d)%7;return kn(i,f,A)}class oU extends bt{constructor(){super(...arguments);Oe(this,"priority",90);Oe(this,"incompatibleTokens",["D","i","e","c","t","T"])}parse(A,n,r){switch(n){case"E":case"EE":case"EEE":return r.day(A,{width:"abbreviated",context:"formatting"})||r.day(A,{width:"short",context:"formatting"})||r.day(A,{width:"narrow",context:"formatting"});case"EEEEE":return r.day(A,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(A,{width:"short",context:"formatting"})||r.day(A,{width:"narrow",context:"formatting"});case"EEEE":default:return r.day(A,{width:"wide",context:"formatting"})||r.day(A,{width:"abbreviated",context:"formatting"})||r.day(A,{width:"short",context:"formatting"})||r.day(A,{width:"narrow",context:"formatting"})}}validate(A,n){return n>=0&&n<=6}set(A,n,r,i){return A=ld(A,r,i),A.setHours(0,0,0,0),A}}class sU extends bt{constructor(){super(...arguments);Oe(this,"priority",90);Oe(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"])}parse(A,n,r,i){const a=s=>{const c=Math.floor((s-1)/7)*7;return(s+i.weekStartsOn+6)%7+c};switch(n){case"e":case"ee":return jt(Yt(n.length,A),a);case"eo":return jt(r.ordinalNumber(A,{unit:"day"}),a);case"eee":return r.day(A,{width:"abbreviated",context:"formatting"})||r.day(A,{width:"short",context:"formatting"})||r.day(A,{width:"narrow",context:"formatting"});case"eeeee":return r.day(A,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(A,{width:"short",context:"formatting"})||r.day(A,{width:"narrow",context:"formatting"});case"eeee":default:return r.day(A,{width:"wide",context:"formatting"})||r.day(A,{width:"abbreviated",context:"formatting"})||r.day(A,{width:"short",context:"formatting"})||r.day(A,{width:"narrow",context:"formatting"})}}validate(A,n){return n>=0&&n<=6}set(A,n,r,i){return A=ld(A,r,i),A.setHours(0,0,0,0),A}}class lU extends bt{constructor(){super(...arguments);Oe(this,"priority",90);Oe(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"])}parse(A,n,r,i){const a=s=>{const c=Math.floor((s-1)/7)*7;return(s+i.weekStartsOn+6)%7+c};switch(n){case"c":case"cc":return jt(Yt(n.length,A),a);case"co":return jt(r.ordinalNumber(A,{unit:"day"}),a);case"ccc":return r.day(A,{width:"abbreviated",context:"standalone"})||r.day(A,{width:"short",context:"standalone"})||r.day(A,{width:"narrow",context:"standalone"});case"ccccc":return r.day(A,{width:"narrow",context:"standalone"});case"cccccc":return r.day(A,{width:"short",context:"standalone"})||r.day(A,{width:"narrow",context:"standalone"});case"cccc":default:return r.day(A,{width:"wide",context:"standalone"})||r.day(A,{width:"abbreviated",context:"standalone"})||r.day(A,{width:"short",context:"standalone"})||r.day(A,{width:"narrow",context:"standalone"})}}validate(A,n){return n>=0&&n<=6}set(A,n,r,i){return A=ld(A,r,i),A.setHours(0,0,0,0),A}}function cU(t,e,A){const n=ze(t,A==null?void 0:A.in),r=LF(n,A),i=e-r;return kn(n,i,A)}class uU extends bt{constructor(){super(...arguments);Oe(this,"priority",90);Oe(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"])}parse(A,n,r){const i=a=>a===0?7:a;switch(n){case"i":case"ii":return Yt(n.length,A);case"io":return r.ordinalNumber(A,{unit:"day"});case"iii":return jt(r.day(A,{width:"abbreviated",context:"formatting"})||r.day(A,{width:"short",context:"formatting"})||r.day(A,{width:"narrow",context:"formatting"}),i);case"iiiii":return jt(r.day(A,{width:"narrow",context:"formatting"}),i);case"iiiiii":return jt(r.day(A,{width:"short",context:"formatting"})||r.day(A,{width:"narrow",context:"formatting"}),i);case"iiii":default:return jt(r.day(A,{width:"wide",context:"formatting"})||r.day(A,{width:"abbreviated",context:"formatting"})||r.day(A,{width:"short",context:"formatting"})||r.day(A,{width:"narrow",context:"formatting"}),i)}}validate(A,n){return n>=1&&n<=7}set(A,n,r){return A=cU(A,r),A.setHours(0,0,0,0),A}}class dU extends bt{constructor(){super(...arguments);Oe(this,"priority",80);Oe(this,"incompatibleTokens",["b","B","H","k","t","T"])}parse(A,n,r){switch(n){case"a":case"aa":case"aaa":return r.dayPeriod(A,{width:"abbreviated",context:"formatting"})||r.dayPeriod(A,{width:"narrow",context:"formatting"});case"aaaaa":return r.dayPeriod(A,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(A,{width:"wide",context:"formatting"})||r.dayPeriod(A,{width:"abbreviated",context:"formatting"})||r.dayPeriod(A,{width:"narrow",context:"formatting"})}}set(A,n,r){return A.setHours(sd(r),0,0,0),A}}class fU extends bt{constructor(){super(...arguments);Oe(this,"priority",80);Oe(this,"incompatibleTokens",["a","B","H","k","t","T"])}parse(A,n,r){switch(n){case"b":case"bb":case"bbb":return r.dayPeriod(A,{width:"abbreviated",context:"formatting"})||r.dayPeriod(A,{width:"narrow",context:"formatting"});case"bbbbb":return r.dayPeriod(A,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(A,{width:"wide",context:"formatting"})||r.dayPeriod(A,{width:"abbreviated",context:"formatting"})||r.dayPeriod(A,{width:"narrow",context:"formatting"})}}set(A,n,r){return A.setHours(sd(r),0,0,0),A}}class hU extends bt{constructor(){super(...arguments);Oe(this,"priority",80);Oe(this,"incompatibleTokens",["a","b","t","T"])}parse(A,n,r){switch(n){case"B":case"BB":case"BBB":return r.dayPeriod(A,{width:"abbreviated",context:"formatting"})||r.dayPeriod(A,{width:"narrow",context:"formatting"});case"BBBBB":return r.dayPeriod(A,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(A,{width:"wide",context:"formatting"})||r.dayPeriod(A,{width:"abbreviated",context:"formatting"})||r.dayPeriod(A,{width:"narrow",context:"formatting"})}}set(A,n,r){return A.setHours(sd(r),0,0,0),A}}class pU extends bt{constructor(){super(...arguments);Oe(this,"priority",70);Oe(this,"incompatibleTokens",["H","K","k","t","T"])}parse(A,n,r){switch(n){case"h":return $t(qt.hour12h,A);case"ho":return r.ordinalNumber(A,{unit:"hour"});default:return Yt(n.length,A)}}validate(A,n){return n>=1&&n<=12}set(A,n,r){const i=A.getHours()>=12;return i&&r<12?A.setHours(r+12,0,0,0):!i&&r===12?A.setHours(0,0,0,0):A.setHours(r,0,0,0),A}}class mU extends bt{constructor(){super(...arguments);Oe(this,"priority",70);Oe(this,"incompatibleTokens",["a","b","h","K","k","t","T"])}parse(A,n,r){switch(n){case"H":return $t(qt.hour23h,A);case"Ho":return r.ordinalNumber(A,{unit:"hour"});default:return Yt(n.length,A)}}validate(A,n){return n>=0&&n<=23}set(A,n,r){return A.setHours(r,0,0,0),A}}class gU extends bt{constructor(){super(...arguments);Oe(this,"priority",70);Oe(this,"incompatibleTokens",["h","H","k","t","T"])}parse(A,n,r){switch(n){case"K":return $t(qt.hour11h,A);case"Ko":return r.ordinalNumber(A,{unit:"hour"});default:return Yt(n.length,A)}}validate(A,n){return n>=0&&n<=11}set(A,n,r){return A.getHours()>=12&&r<12?A.setHours(r+12,0,0,0):A.setHours(r,0,0,0),A}}class BU extends bt{constructor(){super(...arguments);Oe(this,"priority",70);Oe(this,"incompatibleTokens",["a","b","h","H","K","t","T"])}parse(A,n,r){switch(n){case"k":return $t(qt.hour24h,A);case"ko":return r.ordinalNumber(A,{unit:"hour"});default:return Yt(n.length,A)}}validate(A,n){return n>=1&&n<=24}set(A,n,r){const i=r<=24?r%24:r;return A.setHours(i,0,0,0),A}}class wU extends bt{constructor(){super(...arguments);Oe(this,"priority",60);Oe(this,"incompatibleTokens",["t","T"])}parse(A,n,r){switch(n){case"m":return $t(qt.minute,A);case"mo":return r.ordinalNumber(A,{unit:"minute"});default:return Yt(n.length,A)}}validate(A,n){return n>=0&&n<=59}set(A,n,r){return A.setMinutes(r,0,0),A}}class yU extends bt{constructor(){super(...arguments);Oe(this,"priority",50);Oe(this,"incompatibleTokens",["t","T"])}parse(A,n,r){switch(n){case"s":return $t(qt.second,A);case"so":return r.ordinalNumber(A,{unit:"second"});default:return Yt(n.length,A)}}validate(A,n){return n>=0&&n<=59}set(A,n,r){return A.setSeconds(r,0),A}}class CU extends bt{constructor(){super(...arguments);Oe(this,"priority",30);Oe(this,"incompatibleTokens",["t","T"])}parse(A,n){const r=i=>Math.trunc(i*Math.pow(10,-n.length+3));return jt(Yt(n.length,A),r)}set(A,n,r){return A.setMilliseconds(r),A}}class bU extends bt{constructor(){super(...arguments);Oe(this,"priority",10);Oe(this,"incompatibleTokens",["t","T","x"])}parse(A,n){switch(n){case"X":return dr(ur.basicOptionalMinutes,A);case"XX":return dr(ur.basic,A);case"XXXX":return dr(ur.basicOptionalSeconds,A);case"XXXXX":return dr(ur.extendedOptionalSeconds,A);case"XXX":default:return dr(ur.extended,A)}}set(A,n,r){return n.timestampIsSet?A:Ut(A,A.getTime()-fl(A)-r)}}class vU extends bt{constructor(){super(...arguments);Oe(this,"priority",10);Oe(this,"incompatibleTokens",["t","T","X"])}parse(A,n){switch(n){case"x":return dr(ur.basicOptionalMinutes,A);case"xx":return dr(ur.basic,A);case"xxxx":return dr(ur.basicOptionalSeconds,A);case"xxxxx":return dr(ur.extendedOptionalSeconds,A);case"xxx":default:return dr(ur.extended,A)}}set(A,n,r){return n.timestampIsSet?A:Ut(A,A.getTime()-fl(A)-r)}}class EU extends bt{constructor(){super(...arguments);Oe(this,"priority",40);Oe(this,"incompatibleTokens","*")}parse(A){return rg(A)}set(A,n,r){return[Ut(A,r*1e3),{timestampIsSet:!0}]}}class QU extends bt{constructor(){super(...arguments);Oe(this,"priority",20);Oe(this,"incompatibleTokens","*")}parse(A){return rg(A)}set(A,n,r){return[Ut(A,r),{timestampIsSet:!0}]}}const FU={G:new $F,y:new GF,Y:new WF,R:new YF,u:new zF,Q:new JF,q:new XF,M:new qF,L:new jF,w:new eU,I:new AU,d:new iU,D:new aU,E:new oU,e:new sU,c:new lU,i:new uU,a:new dU,b:new fU,B:new hU,h:new pU,H:new mU,K:new gU,k:new BU,m:new wU,s:new yU,S:new CU,X:new bU,x:new vU,t:new EU,T:new QU},UU=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,kU=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,_U=/^'([^]*?)'?$/,IU=/''/g,SU=/\S/,TU=/[a-zA-Z]/;function cd(t,e,A,n){var v,Q,k,F,C,D,E,x;const r=()=>Ut((n==null?void 0:n.in)||A,NaN),i=NF(),a=(n==null?void 0:n.locale)??i.locale??Jm,s=(n==null?void 0:n.firstWeekContainsDate)??((Q=(v=n==null?void 0:n.locale)==null?void 0:v.options)==null?void 0:Q.firstWeekContainsDate)??i.firstWeekContainsDate??((F=(k=i.locale)==null?void 0:k.options)==null?void 0:F.firstWeekContainsDate)??1,c=(n==null?void 0:n.weekStartsOn)??((D=(C=n==null?void 0:n.locale)==null?void 0:C.options)==null?void 0:D.weekStartsOn)??i.weekStartsOn??((x=(E=i.locale)==null?void 0:E.options)==null?void 0:x.weekStartsOn)??0;if(!e)return t?r():ze(A,n==null?void 0:n.in);const d={firstWeekContainsDate:s,weekStartsOn:c,locale:a},f=[new KF(n==null?void 0:n.in,A)],h=e.match(kU).map(O=>{const S=O[0];if(S in ad){const K=ad[S];return K(O,a.formatLong)}return O}).join("").match(UU),m=[];for(let O of h){!(n!=null&&n.useAdditionalWeekYearTokens)&&Ag(O)&&od(O,e,t),!(n!=null&&n.useAdditionalDayOfYearTokens)&&tg(O)&&od(O,e,t);const S=O[0],K=FU[S];if(K){const{incompatibleTokens:de}=K;if(Array.isArray(de)){const ge=m.find(V=>de.includes(V.token)||V.token===S);if(ge)throw new RangeError(`The format string mustn't contain \`${ge.fullToken}\` and \`${O}\` at the same time`)}else if(K.incompatibleTokens==="*"&&m.length>0)throw new RangeError(`The format string mustn't contain \`${O}\` and any other token at the same time`);m.push({token:S,fullToken:O});const ce=K.run(t,O,a.match,d);if(!ce)return r();f.push(ce.setter),t=ce.rest}else{if(S.match(TU))throw new RangeError("Format string contains an unescaped latin alphabet character `"+S+"`");if(O==="''"?O="'":S==="'"&&(O=xU(O)),t.indexOf(O)===0)t=t.slice(O.length);else return r()}}if(t.length>0&&SU.test(t))return r();const g=f.map(O=>O.priority).sort((O,S)=>S-O).filter((O,S,K)=>K.indexOf(O)===S).map(O=>f.filter(S=>S.priority===O).sort((S,K)=>K.subPriority-S.subPriority)).map(O=>O[0]);let B=ze(A,n==null?void 0:n.in);if(isNaN(+B))return r();const y={};for(const O of g){if(!O.validate(B,d))return r();const S=O.set(B,y,d);Array.isArray(S)?(B=S[0],Object.assign(y,S[1])):B=S}return B}function xU(t){return t.match(_U)[1].replace(IU,"'")}function og(t,e,A){const[n,r]=$o(A==null?void 0:A.in,t,e);return+zi(n)==+zi(r)}function sg(t,e,A){return kn(t,-e,A)}function lg(t,e,A){const n=ze(t,A==null?void 0:A.in),r=n.getFullYear(),i=n.getDate(),a=Ut((A==null?void 0:A.in)||t,0);a.setFullYear(r,e,15),a.setHours(0,0,0,0);const s=OF(a);return n.setMonth(e,Math.min(i,s)),n}function It(t,e,A){let n=ze(t,A==null?void 0:A.in);return isNaN(+n)?Ut((A==null?void 0:A.in)||t,NaN):(e.year!=null&&n.setFullYear(e.year),e.month!=null&&(n=lg(n,e.month)),e.date!=null&&n.setDate(e.date),e.hours!=null&&n.setHours(e.hours),e.minutes!=null&&n.setMinutes(e.minutes),e.seconds!=null&&n.setSeconds(e.seconds),e.milliseconds!=null&&n.setMilliseconds(e.milliseconds),n)}function DU(t,e,A){const n=ze(t,A==null?void 0:A.in);return n.setHours(e),n}function cg(t,e,A){const n=ze(t,A==null?void 0:A.in);return n.setMilliseconds(e),n}function MU(t,e,A){const n=ze(t,A==null?void 0:A.in);return n.setMinutes(e),n}function ug(t,e,A){const n=ze(t,A==null?void 0:A.in);return n.setSeconds(e),n}function fr(t,e,A){const n=ze(t,A==null?void 0:A.in);return isNaN(+n)?Ut((A==null?void 0:A.in)||t,NaN):(n.setFullYear(e),n)}function Ha(t,e,A){return Wn(t,-e,A)}function OU(t,e,A){const{years:n=0,months:r=0,weeks:i=0,days:a=0,hours:s=0,minutes:c=0,seconds:d=0}=e,f=Ha(t,r+n*12,A),h=sg(f,a+i*7,A),m=c+s*60,B=(d+m*60)*1e3;return Ut((A==null?void 0:A.in)||t,+h-B)}function dg(t,e,A){return td(t,-e,A)}function Ra(){const t=o.useAttrs();return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon",role:"img",...t},[o.createElementVNode("path",{d:"M29.333 8c0-2.208-1.792-4-4-4h-18.667c-2.208 0-4 1.792-4 4v18.667c0 2.208 1.792 4 4 4h18.667c2.208 0 4-1.792 4-4v-18.667zM26.667 8v18.667c0 0.736-0.597 1.333-1.333 1.333 0 0-18.667 0-18.667 0-0.736 0-1.333-0.597-1.333-1.333 0 0 0-18.667 0-18.667 0-0.736 0.597-1.333 1.333-1.333 0 0 18.667 0 18.667 0 0.736 0 1.333 0.597 1.333 1.333z"}),o.createElementVNode("path",{d:"M20 2.667v5.333c0 0.736 0.597 1.333 1.333 1.333s1.333-0.597 1.333-1.333v-5.333c0-0.736-0.597-1.333-1.333-1.333s-1.333 0.597-1.333 1.333z"}),o.createElementVNode("path",{d:"M9.333 2.667v5.333c0 0.736 0.597 1.333 1.333 1.333s1.333-0.597 1.333-1.333v-5.333c0-0.736-0.597-1.333-1.333-1.333s-1.333 0.597-1.333 1.333z"}),o.createElementVNode("path",{d:"M4 14.667h24c0.736 0 1.333-0.597 1.333-1.333s-0.597-1.333-1.333-1.333h-24c-0.736 0-1.333 0.597-1.333 1.333s0.597 1.333 1.333 1.333z"})])}Ra.compatConfig={MODE:3};function fg(){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon",role:"img"},[o.createElementVNode("path",{d:"M23.057 7.057l-16 16c-0.52 0.52-0.52 1.365 0 1.885s1.365 0.52 1.885 0l16-16c0.52-0.52 0.52-1.365 0-1.885s-1.365-0.52-1.885 0z"}),o.createElementVNode("path",{d:"M7.057 8.943l16 16c0.52 0.52 1.365 0.52 1.885 0s0.52-1.365 0-1.885l-16-16c-0.52-0.52-1.365-0.52-1.885 0s-0.52 1.365 0 1.885z"})])}fg.compatConfig={MODE:3};function ud(){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon",role:"img"},[o.createElementVNode("path",{d:"M20.943 23.057l-7.057-7.057c0 0 7.057-7.057 7.057-7.057 0.52-0.52 0.52-1.365 0-1.885s-1.365-0.52-1.885 0l-8 8c-0.521 0.521-0.521 1.365 0 1.885l8 8c0.52 0.52 1.365 0.52 1.885 0s0.52-1.365 0-1.885z"})])}ud.compatConfig={MODE:3};function dd(){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon",role:"img"},[o.createElementVNode("path",{d:"M12.943 24.943l8-8c0.521-0.521 0.521-1.365 0-1.885l-8-8c-0.52-0.52-1.365-0.52-1.885 0s-0.52 1.365 0 1.885l7.057 7.057c0 0-7.057 7.057-7.057 7.057-0.52 0.52-0.52 1.365 0 1.885s1.365 0.52 1.885 0z"})])}dd.compatConfig={MODE:3};function fd(){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon",role:"img"},[o.createElementVNode("path",{d:"M16 1.333c-8.095 0-14.667 6.572-14.667 14.667s6.572 14.667 14.667 14.667c8.095 0 14.667-6.572 14.667-14.667s-6.572-14.667-14.667-14.667zM16 4c6.623 0 12 5.377 12 12s-5.377 12-12 12c-6.623 0-12-5.377-12-12s5.377-12 12-12z"}),o.createElementVNode("path",{d:"M14.667 8v8c0 0.505 0.285 0.967 0.737 1.193l5.333 2.667c0.658 0.329 1.46 0.062 1.789-0.596s0.062-1.46-0.596-1.789l-4.596-2.298c0 0 0-7.176 0-7.176 0-0.736-0.597-1.333-1.333-1.333s-1.333 0.597-1.333 1.333z"})])}fd.compatConfig={MODE:3};function hd(){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon",role:"img"},[o.createElementVNode("path",{d:"M24.943 19.057l-8-8c-0.521-0.521-1.365-0.521-1.885 0l-8 8c-0.52 0.52-0.52 1.365 0 1.885s1.365 0.52 1.885 0l7.057-7.057c0 0 7.057 7.057 7.057 7.057 0.52 0.52 1.365 0.52 1.885 0s0.52-1.365 0-1.885z"})])}hd.compatConfig={MODE:3};function pd(){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon",role:"img"},[o.createElementVNode("path",{d:"M7.057 12.943l8 8c0.521 0.521 1.365 0.521 1.885 0l8-8c0.52-0.52 0.52-1.365 0-1.885s-1.365-0.52-1.885 0l-7.057 7.057c0 0-7.057-7.057-7.057-7.057-0.52-0.52-1.365-0.52-1.885 0s-0.52 1.365 0 1.885z"})])}pd.compatConfig={MODE:3};const rn=(t,e)=>e?new Date(t.toLocaleString("en-US",{timeZone:e})):new Date(t),md=(t,e,A)=>gd(t,e,A)||ve(),NU=(t,e,A)=>{const n=e.dateInTz?rn(new Date(t),e.dateInTz):ve(t);return A?mA(n,!0):n},gd=(t,e,A)=>{if(!t)return null;const n=A?mA(ve(t),!0):ve(t);return e?e.exactMatch?NU(t,e,A):rn(n,e.timezone):n},LU=t=>{const e=new Date(t.getFullYear(),0,1).getTimezoneOffset();return t.getTimezoneOffset()<e},HU=(t,e)=>{if(!t)return 0;const A=new Date,n=new Date(A.toLocaleString("en-US",{timeZone:"UTC"})),r=new Date(A.toLocaleString("en-US",{timeZone:t})),i=(LU(e??r)?r:e??r).getTimezoneOffset()/60;return(+n-+r)/(1e3*60*60)-i};var zn=(t=>(t.month="month",t.year="year",t))(zn||{}),Jn=(t=>(t.top="top",t.bottom="bottom",t))(Jn||{}),qi=(t=>(t.header="header",t.calendar="calendar",t.timePicker="timePicker",t))(qi||{}),TA=(t=>(t.month="month",t.year="year",t.calendar="calendar",t.time="time",t.minutes="minutes",t.hours="hours",t.seconds="seconds",t))(TA||{});const RU=["timestamp","date","iso"];var GA=(t=>(t.up="up",t.down="down",t.left="left",t.right="right",t))(GA||{}),Nt=(t=>(t.arrowUp="ArrowUp",t.arrowDown="ArrowDown",t.arrowLeft="ArrowLeft",t.arrowRight="ArrowRight",t.enter="Enter",t.space=" ",t.esc="Escape",t.tab="Tab",t.home="Home",t.end="End",t.pageUp="PageUp",t.pageDown="PageDown",t))(Nt||{}),Pa=(t=>(t.MONTH_AND_YEAR="MM-yyyy",t.YEAR="yyyy",t.DATE="dd-MM-yyyy",t))(Pa||{});function hg(t){return e=>{const A=new Intl.DateTimeFormat(t,{weekday:"short",timeZone:"UTC"}).format(new Date(`2017-01-0${e}T00:00:00+00:00`));return t==="ar"?A.slice(2,5):A.slice(0,2)}}function PU(t){return e=>cr(rn(new Date(`2017-01-0${e}T00:00:00+00:00`),"UTC"),"EEEEEE",{locale:t})}const VU=(t,e,A)=>{const n=[1,2,3,4,5,6,7];let r;if(t!==null)try{r=n.map(PU(t))}catch{r=n.map(hg(e))}else r=n.map(hg(e));const i=r.slice(0,A),a=r.slice(A+1,r.length);return[r[A]].concat(...a).concat(...i)},Bd=(t,e,A)=>{const n=[];for(let r=+t[0];r<=+t[1];r++)n.push({value:+r,text:yg(r,e)});return A?n.reverse():n},pg=(t,e,A)=>{const n=[1,2,3,4,5,6,7,8,9,10,11,12].map(i=>{const a=i<10?`0${i}`:i;return new Date(`2017-${a}-01T00:00:00+00:00`)});if(t!==null)try{const i=A==="long"?"LLLL":"LLL";return n.map((a,s)=>{const c=cr(rn(a,"UTC"),i,{locale:t});return{text:c.charAt(0).toUpperCase()+c.substring(1),value:s}})}catch{}const r=new Intl.DateTimeFormat(e,{month:A,timeZone:"UTC"});return n.map((i,a)=>{const s=r.format(i);return{text:s.charAt(0).toUpperCase()+s.substring(1),value:a}})},KU=t=>[12,1,2,3,4,5,6,7,8,9,10,11,12,1,2,3,4,5,6,7,8,9,10,11][t],iA=t=>{const e=o.unref(t);return e!=null&&e.$el?e==null?void 0:e.$el:e},$U=t=>({type:"dot",...t??{}}),mg=t=>Array.isArray(t)?!!t[0]&&!!t[1]:!1,wd={prop:t=>`"${t}" prop must be enabled!`,dateArr:t=>`You need to use array as "model-value" binding in order to support "${t}"`},pA=t=>t,gg=t=>t===0?t:!t||isNaN(+t)?null:+t,Bg=t=>t===null,wg=t=>{if(t)return[...t.querySelectorAll("input, button, select, textarea, a[href]")][0]},GU=t=>{const e=[],A=n=>n.filter(r=>r);for(let n=0;n<t.length;n+=3){const r=[t[n],t[n+1],t[n+2]];e.push(A(r))}return e},Jo=(t,e,A)=>{const n=A!=null,r=e!=null;if(!n&&!r)return!1;const i=+A,a=+e;return n&&r?+t>i||+t<a:n?+t>i:r?+t<a:!1},Va=(t,e)=>GU(t).map(A=>A.map(n=>{const{active:r,disabled:i,isBetween:a,highlighted:s}=e(n);return{...n,active:r,disabled:i,className:{dp__overlay_cell_active:r,dp__overlay_cell:!r,dp__overlay_cell_disabled:i,dp__overlay_cell_pad:!0,dp__overlay_cell_active_disabled:i&&r,dp__cell_in_between:a,"dp--highlighted":s}}})),ai=(t,e,A=!1)=>{t&&e.allowStopPropagation&&(A&&t.stopImmediatePropagation(),t.stopPropagation())},WU=()=>["a[href]","area[href]","input:not([disabled]):not([type='hidden'])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","[tabindex]:not([tabindex='-1'])","[data-datepicker-instance]"].join(", ");function YU(t,e){let A=[...document.querySelectorAll(WU())];A=A.filter(r=>!t.contains(r)||r.hasAttribute("data-datepicker-instance"));const n=A.indexOf(t);if(n>=0&&(e?n-1>=0:n+1<=A.length))return A[n+(e?-1:1)]}const yd=(t,e)=>t==null?void 0:t.querySelector(`[data-dp-element="${e}"]`),yg=(t,e)=>new Intl.NumberFormat(e,{useGrouping:!1,style:"decimal"}).format(t),Cd=(t,e)=>cr(t,e??Pa.DATE),bd=t=>Array.isArray(t),pl=(t,e,A)=>e.get(Cd(t,A)),zU=(t,e)=>t?e?e instanceof Map?!!pl(t,e):e(ve(t)):!1:!0,WA=(t,e,A=!1,n)=>{if(t.key===Nt.enter||t.key===Nt.space)return A&&t.preventDefault(),e();if(n)return n(t)},JU=()=>"ontouchstart"in window||navigator.maxTouchPoints>0,Cg=(t,e)=>t?Pa.MONTH_AND_YEAR:e?Pa.YEAR:Pa.DATE,bg=t=>t<10?`0${t}`:t,vg=(t,e,A,n,r,i)=>{const a=cd(t,e.slice(0,t.length),new Date,{locale:i});return Go(a)&&Vm(a)?n||r?a:It(a,{hours:+A.hours,minutes:+(A==null?void 0:A.minutes),seconds:+(A==null?void 0:A.seconds),milliseconds:0}):null},XU=(t,e,A,n,r,i)=>{const a=Array.isArray(A)?A[0]:A;if(typeof e=="string")return vg(t,e,a,n,r,i);if(Array.isArray(e)){let s=null;for(const c of e)if(s=vg(t,c,a,n,r,i),s)break;return s}return typeof e=="function"?e(t):null},ve=t=>t?new Date(t):new Date,qU=(t,e,A)=>{if(e){const r=(t.getMonth()+1).toString().padStart(2,"0"),i=t.getDate().toString().padStart(2,"0"),a=t.getHours().toString().padStart(2,"0"),s=t.getMinutes().toString().padStart(2,"0"),c=A?t.getSeconds().toString().padStart(2,"0"):"00";return`${t.getFullYear()}-${r}-${i}T${a}:${s}:${c}.000Z`}const n=Date.UTC(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds());return new Date(n).toISOString()},mA=(t,e)=>{const A=ve(JSON.parse(JSON.stringify(t))),n=It(A,{hours:0,minutes:0,seconds:0,milliseconds:0});return e?GQ(n):n},oi=(t,e,A,n)=>{let r=t?ve(t):ve();return(e||e===0)&&(r=DU(r,+e)),(A||A===0)&&(r=MU(r,+A)),(n||n===0)&&(r=ug(r,+n)),cg(r,0)},zt=(t,e)=>!t||!e?!1:Na(mA(t),mA(e)),mt=(t,e)=>!t||!e?!1:La(mA(t),mA(e)),Zt=(t,e)=>!t||!e?!1:Xi(mA(t),mA(e)),Xo=(t,e,A)=>t!=null&&t[0]&&t!=null&&t[1]?Zt(A,t[0])&&zt(A,t[1]):t!=null&&t[0]&&e?Zt(A,t[0])&&zt(A,e)||zt(A,t[0])&&Zt(A,e):!1,Xn=t=>{const e=It(new Date(t),{date:1});return mA(e)},vd=(t,e,A)=>e&&(A||A===0)?Object.fromEntries(["hours","minutes","seconds"].map(n=>n===e?[n,A]:[n,isNaN(+t[n])?void 0:+t[n]])):{hours:isNaN(+t.hours)?void 0:+t.hours,minutes:isNaN(+t.minutes)?void 0:+t.minutes,seconds:isNaN(+t.seconds)?void 0:+t.seconds},ji=t=>({hours:Ir(t),minutes:ii(t),seconds:Oa(t)}),Eg=(t,e)=>{if(e){const A=tt(ve(e));if(A>t)return 12;if(A===t)return pt(ve(e))}},Qg=(t,e)=>{if(e){const A=tt(ve(e));return A<t?-1:A===t?pt(ve(e)):void 0}},Ka=t=>{if(t)return tt(ve(t))},Fg=(t,e)=>{const A=Zt(t,e)?e:t,n=Zt(e,t)?e:t;return Gm({start:A,end:n})},jU=t=>{const e=Wn(t,1);return{month:pt(e),year:tt(e)}},Sr=(t,e)=>{const A=Yn(t,{weekStartsOn:+e}),n=Ym(t,{weekStartsOn:+e});return[A,n]},Ug=(t,e)=>{const A={hours:Ir(ve()),minutes:ii(ve()),seconds:e?Oa(ve()):0};return Object.assign(A,t)},si=(t,e,A)=>[It(ve(t),{date:1}),It(ve(),{month:e,year:A,date:1})],Tr=(t,e,A)=>{let n=t?ve(t):ve();return(e||e===0)&&(n=lg(n,e)),A&&(n=fr(n,A)),n},kg=(t,e,A,n,r)=>{if(!n||r&&!e||!r&&!A)return!1;const i=r?Wn(t,1):Ha(t,1),a=[pt(i),tt(i)];return r?!ek(...a,e):!ZU(...a,A)},ZU=(t,e,A)=>zt(...si(A,t,e))||mt(...si(A,t,e)),ek=(t,e,A)=>Zt(...si(A,t,e))||mt(...si(A,t,e)),_g=(t,e,A,n,r,i,a)=>{if(typeof e=="function"&&!a)return e(t);const s=A?{locale:A}:void 0;return Array.isArray(t)?`${cr(t[0],i,s)}${r&&!t[1]?"":n}${t[1]?cr(t[1],i,s):""}`:cr(t,i,s)},$a=t=>{if(t)return null;throw new Error(wd.prop("partial-range"))},ml=(t,e)=>{if(e)return t();throw new Error(wd.prop("range"))},Ed=t=>Array.isArray(t)?Go(t[0])&&(t[1]?Go(t[1]):!0):t?Go(t):!1,tk=(t,e)=>It(e??ve(),{hours:+t.hours||0,minutes:+t.minutes||0,seconds:+t.seconds||0}),Qd=(t,e,A,n)=>{if(!t)return!0;if(n){const r=A==="max"?Na(t,e):Xi(t,e),i={seconds:0,milliseconds:0};return r||La(It(t,i),It(e,i))}return A==="max"?t.getTime()<=e.getTime():t.getTime()>=e.getTime()},Fd=(t,e,A)=>t?tk(t,e):ve(A??e),Ig=(t,e,A,n,r)=>{if(Array.isArray(n)){const a=Fd(t,n[0],e),s=Fd(t,n[1],e);return Qd(n[0],a,A,!!e)&&Qd(n[1],s,A,!!e)&&r}const i=Fd(t,n,e);return Qd(n,i,A,!!e)&&r},Ud=t=>It(ve(),ji(t)),Ak=(t,e,A)=>{if(t instanceof Map){const n=`${bg(A+1)}-${e}`;return t.size?t.has(n):!1}return typeof t=="function"?t(mA(It(ve(),{month:A,year:e}),!0)):!1},nk=(t,e,A)=>{if(t instanceof Map){const n=`${bg(A+1)}-${e}`;return t.size?t.has(n):!0}return!0},Sg=(t,e,A)=>typeof t=="function"?t({month:e,year:A}):!!t.months.find(n=>n.month===e&&n.year===A),kd=(t,e)=>typeof t=="function"?t(e):t.years.includes(e),_d=t=>`dp-${cr(t,"yyyy-MM-dd")}`,Tg=(t,e)=>{const A=sg(mA(e),t),n=kn(mA(e),t);return{before:A,after:n}},qo=o.reactive({menuFocused:!1,shiftKeyInMenu:!1}),xg=()=>{const t=A=>{qo.menuFocused=A},e=A=>{qo.shiftKeyInMenu!==A&&(qo.shiftKeyInMenu=A)};return{control:o.computed(()=>({shiftKeyInMenu:qo.shiftKeyInMenu,menuFocused:qo.menuFocused})),setMenuFocused:t,setShiftKey:e}},Lt=o.reactive({monthYear:[],calendar:[],time:[],actionRow:[],selectionGrid:[],timePicker:{0:[],1:[]},monthPicker:[]}),Id=o.ref(null),gl=o.ref(!1),Sd=o.ref(!1),Td=o.ref(!1),xd=o.ref(!1),xA=o.ref(0),eA=o.ref(0),li=()=>{const t=o.computed(()=>gl.value?[...Lt.selectionGrid,Lt.actionRow].filter(h=>h.length):Sd.value?[...Lt.timePicker[0],...Lt.timePicker[1],xd.value?[]:[Id.value],Lt.actionRow].filter(h=>h.length):Td.value?[...Lt.monthPicker,Lt.actionRow]:[Lt.monthYear,...Lt.calendar,Lt.time,Lt.actionRow].filter(h=>h.length)),e=h=>{xA.value=h?xA.value+1:xA.value-1;let m=null;t.value[eA.value]&&(m=t.value[eA.value][xA.value]),!m&&t.value[eA.value+(h?1:-1)]?(eA.value=eA.value+(h?1:-1),xA.value=h?0:t.value[eA.value].length-1):m||(xA.value=h?xA.value-1:xA.value+1)},A=h=>{eA.value===0&&!h||eA.value===t.value.length&&h||(eA.value=h?eA.value+1:eA.value-1,t.value[eA.value]?t.value[eA.value]&&!t.value[eA.value][xA.value]&&xA.value!==0&&(xA.value=t.value[eA.value].length-1):eA.value=h?eA.value-1:eA.value+1)},n=h=>{let m=null;t.value[eA.value]&&(m=t.value[eA.value][xA.value]),m?m.focus({preventScroll:!gl.value}):xA.value=h?xA.value-1:xA.value+1},r=()=>{e(!0),n(!0)},i=()=>{e(!1),n(!1)},a=()=>{A(!1),n(!0)},s=()=>{A(!0),n(!0)},c=(h,m)=>{Lt[m]=h},d=(h,m)=>{Lt[m]=h},f=()=>{xA.value=0,eA.value=0};return{buildMatrix:c,buildMultiLevelMatrix:d,setTimePickerBackRef:h=>{Id.value=h},setSelectionGrid:h=>{gl.value=h,f(),h||(Lt.selectionGrid=[])},setTimePicker:(h,m=!1)=>{Sd.value=h,xd.value=m,f(),h||(Lt.timePicker[0]=[],Lt.timePicker[1]=[])},setTimePickerElements:(h,m=0)=>{Lt.timePicker[m]=h},arrowRight:r,arrowLeft:i,arrowUp:a,arrowDown:s,clearArrowNav:()=>{Lt.monthYear=[],Lt.calendar=[],Lt.time=[],Lt.actionRow=[],Lt.selectionGrid=[],Lt.timePicker[0]=[],Lt.timePicker[1]=[],gl.value=!1,Sd.value=!1,xd.value=!1,Td.value=!1,f(),Id.value=null},setMonthPicker:h=>{Td.value=h,f()},refSets:Lt}},Dg=t=>({menuAppearTop:"dp-menu-appear-top",menuAppearBottom:"dp-menu-appear-bottom",open:"dp-slide-down",close:"dp-slide-up",next:"calendar-next",previous:"calendar-prev",vNext:"dp-slide-up",vPrevious:"dp-slide-down",...t??{}}),rk=t=>({toggleOverlay:"Toggle overlay",menu:"Datepicker menu",input:"Datepicker input",openTimePicker:"Open time picker",closeTimePicker:"Close time Picker",incrementValue:e=>`Increment ${e}`,decrementValue:e=>`Decrement ${e}`,openTpOverlay:e=>`Open ${e} overlay`,amPmButton:"Switch AM/PM mode",openYearsOverlay:"Open years overlay",openMonthsOverlay:"Open months overlay",nextMonth:"Next month",prevMonth:"Previous month",nextYear:"Next year",prevYear:"Previous year",day:void 0,weekDay:void 0,clearInput:"Clear value",calendarIcon:"Calendar icon",timePicker:"Time picker",monthPicker:e=>`Month picker${e?" overlay":""}`,yearPicker:e=>`Year picker${e?" overlay":""}`,timeOverlay:e=>`${e} overlay`,...t??{}}),Mg=t=>t?typeof t=="boolean"?t?2:0:+t>=2?+t:2:0,ik=t=>{const e=typeof t=="object"&&t,A={static:!0,solo:!1};if(!t)return{...A,count:Mg(!1)};const n=e?t:{},r=e?n.count??!0:t,i=Mg(r);return Object.assign(A,n,{count:i})},ak=(t,e,A)=>t||(typeof A=="string"?A:e),ok=t=>typeof t=="boolean"?t?Dg({}):!1:Dg(t),sk=t=>{const e={enterSubmit:!0,tabSubmit:!0,openMenu:"open",selectOnFocus:!1,rangeSeparator:" - ",escClose:!0};return typeof t=="object"?{...e,...t??{},enabled:!0}:{...e,enabled:t}},lk=t=>({months:[],years:[],times:{hours:[],minutes:[],seconds:[]},...t??{}}),ck=t=>({showSelect:!0,showCancel:!0,showNow:!1,showPreview:!0,...t??{}}),uk=t=>{const e={input:!1};return typeof t=="object"?{...e,...t??{},enabled:!0}:{enabled:t,...e}},dk=t=>({allowStopPropagation:!0,closeOnScroll:!1,modeHeight:255,allowPreventDefault:!1,closeOnClearValue:!0,closeOnAutoApply:!0,noSwipe:!1,keepActionRow:!1,onClickOutside:void 0,tabOutClosesMenu:!0,arrowLeft:void 0,keepViewOnOffsetClick:!1,timeArrowHoldThreshold:0,shadowDom:!1,mobileBreakpoint:600,setDateOnMenuClose:!1,...t??{}}),fk=t=>{const e={dates:Array.isArray(t)?t.map(A=>ve(A)):[],years:[],months:[],quarters:[],weeks:[],weekdays:[],options:{highlightDisabled:!1}};return typeof t=="function"?t:{...e,...t??{}}},hk=t=>typeof t=="object"?{type:(t==null?void 0:t.type)??"local",hideOnOffsetDates:(t==null?void 0:t.hideOnOffsetDates)??!1}:{type:t,hideOnOffsetDates:!1},pk=t=>{const e={noDisabledRange:!1,showLastInRange:!0,minMaxRawRange:!1,partialRange:!0,disableTimeRangeValidation:!1,maxRange:void 0,minRange:void 0,autoRange:void 0,fixedStart:!1,fixedEnd:!1};return typeof t=="object"?{enabled:!0,...e,...t}:{enabled:t,...e}},mk=t=>t?typeof t=="string"?{timezone:t,exactMatch:!1,dateInTz:void 0,emitTimezone:void 0,convertModel:!0}:{timezone:t.timezone,exactMatch:t.exactMatch??!1,dateInTz:t.dateInTz??void 0,emitTimezone:t.emitTimezone??void 0,convertModel:t.convertModel??!0}:{timezone:void 0,exactMatch:!1,emitTimezone:void 0},Dd=(t,e,A,n)=>new Map(t.map(r=>{const i=md(r,e,n);return[Cd(i,A),i]})),gk=(t,e)=>t.length?new Map(t.map(A=>{const n=md(A.date,e);return[Cd(n,Pa.DATE),A]})):null,Bk=t=>{var e;const A=Cg(t.isMonthPicker,t.isYearPicker);return{minDate:gd(t.minDate,t.timezone,t.isSpecific),maxDate:gd(t.maxDate,t.timezone,t.isSpecific),disabledDates:bd(t.disabledDates)?Dd(t.disabledDates,t.timezone,A,t.isSpecific):t.disabledDates,allowedDates:bd(t.allowedDates)?Dd(t.allowedDates,t.timezone,A,t.isSpecific):null,highlight:typeof t.highlight=="object"&&bd((e=t.highlight)==null?void 0:e.dates)?Dd(t.highlight.dates,t.timezone,A):t.highlight,markers:gk(t.markers,t.timezone)}},wk=t=>typeof t=="boolean"?{enabled:t,dragSelect:!0,limit:null}:{enabled:!!t,limit:t.limit?+t.limit:null,dragSelect:t.dragSelect??!0},yk=t=>({...Object.fromEntries(Object.keys(t).map(e=>{const A=e,n=t[A],r=typeof t[A]=="string"?{[n]:!0}:Object.fromEntries(n.map(i=>[i,!0]));return[e,r]}))}),Pt=t=>{const e=()=>{const E=t.enableSeconds?":ss":"",x=t.enableMinutes?":mm":"";return t.is24?`HH${x}${E}`:`hh${x}${E} aa`},A=()=>{var E;return t.format?t.format:t.monthPicker?"MM/yyyy":t.timePicker?e():t.weekPicker?`${((E=v.value)==null?void 0:E.type)==="iso"?"II":"ww"}-RR`:t.yearPicker?"yyyy":t.quarterPicker?"QQQ/yyyy":t.enableTimePicker?`MM/dd/yyyy, ${e()}`:"MM/dd/yyyy"},n=E=>Ug(E,t.enableSeconds),r=()=>C.value.enabled?t.startTime&&Array.isArray(t.startTime)?[n(t.startTime[0]),n(t.startTime[1])]:null:t.startTime&&!Array.isArray(t.startTime)?n(t.startTime):null,i=o.computed(()=>ik(t.multiCalendars)),a=o.computed(()=>r()),s=o.computed(()=>rk(t.ariaLabels)),c=o.computed(()=>lk(t.filters)),d=o.computed(()=>ok(t.transitions)),f=o.computed(()=>ck(t.actionRow)),h=o.computed(()=>ak(t.previewFormat,t.format,A())),m=o.computed(()=>sk(t.textInput)),g=o.computed(()=>uk(t.inline)),B=o.computed(()=>dk(t.config)),y=o.computed(()=>fk(t.highlight)),v=o.computed(()=>hk(t.weekNumbers)),Q=o.computed(()=>mk(t.timezone)),k=o.computed(()=>wk(t.multiDates)),F=o.computed(()=>Bk({minDate:t.minDate,maxDate:t.maxDate,disabledDates:t.disabledDates,allowedDates:t.allowedDates,highlight:y.value,markers:t.markers,timezone:Q.value,isSpecific:t.monthPicker||t.yearPicker||t.quarterPicker,isMonthPicker:t.monthPicker,isYearPicker:t.yearPicker})),C=o.computed(()=>pk(t.range)),D=o.computed(()=>yk(t.ui));return{defaultedTransitions:d,defaultedMultiCalendars:i,defaultedStartTime:a,defaultedAriaLabels:s,defaultedFilters:c,defaultedActionRow:f,defaultedPreviewFormat:h,defaultedTextInput:m,defaultedInline:g,defaultedConfig:B,defaultedHighlight:y,defaultedWeekNumbers:v,defaultedRange:C,propDates:F,defaultedTz:Q,defaultedMultiDates:k,defaultedUI:D,getDefaultPattern:A,getDefaultStartTime:r,handleEventPropagation:E=>{B.value.allowStopPropagation&&E.stopPropagation(),B.value.allowPreventDefault&&E.preventDefault()}}},Ck=(t,e,A)=>{const n=o.ref(),{defaultedTextInput:r,defaultedRange:i,defaultedTz:a,defaultedMultiDates:s,getDefaultPattern:c}=Pt(e),d=o.ref(""),f=o.toRef(e,"format"),h=o.toRef(e,"formatLocale");o.watch(n,()=>{typeof e.onInternalModelChange=="function"&&t("internal-model-change",n.value,se(!0))},{deep:!0}),o.watch(i,(U,Z)=>{U.enabled!==Z.enabled&&(n.value=null)}),o.watch(f,()=>{te()});const m=U=>a.value.timezone&&a.value.convertModel?rn(U,a.value.timezone):U,g=U=>{if(a.value.timezone&&a.value.convertModel){const Z=HU(a.value.timezone,U);return LQ(U,Z)}return U},B=(U,Z,Ue=!1)=>_g(U,e.format,e.formatLocale,r.value.rangeSeparator,e.modelAuto,Z??c(),Ue),y=U=>U?e.modelType?me(U):{hours:Ir(U),minutes:ii(U),seconds:e.enableSeconds?Oa(U):0}:null,v=U=>e.modelType?me(U):{month:pt(U),year:tt(U)},Q=U=>Array.isArray(U)?s.value.enabled?U.map(Z=>k(Z,fr(ve(),Z))):ml(()=>[fr(ve(),U[0]),U[1]?fr(ve(),U[1]):$a(i.value.partialRange)],i.value.enabled):fr(ve(),+U),k=(U,Z)=>(typeof U=="string"||typeof U=="number")&&e.modelType?q(U):Z,F=U=>Array.isArray(U)?[k(U[0],oi(null,+U[0].hours,+U[0].minutes,U[0].seconds)),k(U[1],oi(null,+U[1].hours,+U[1].minutes,U[1].seconds))]:k(U,oi(null,U.hours,U.minutes,U.seconds)),C=U=>{const Z=It(ve(),{date:1});return Array.isArray(U)?s.value.enabled?U.map(Ue=>k(Ue,Tr(Z,+Ue.month,+Ue.year))):ml(()=>[k(U[0],Tr(Z,+U[0].month,+U[0].year)),k(U[1],U[1]?Tr(Z,+U[1].month,+U[1].year):$a(i.value.partialRange))],i.value.enabled):k(U,Tr(Z,+U.month,+U.year))},D=U=>{if(Array.isArray(U))return U.map(Z=>q(Z));throw new Error(wd.dateArr("multi-dates"))},E=U=>{if(Array.isArray(U)&&i.value.enabled){const Z=U[0],Ue=U[1];return[ve(Array.isArray(Z)?Z[0]:null),Array.isArray(Ue)&&Ue.length?ve(Ue[0]):null]}return ve(U[0])},x=U=>e.modelAuto?Array.isArray(U)?[q(U[0]),q(U[1])]:e.autoApply?[q(U)]:[q(U),null]:Array.isArray(U)?ml(()=>U[1]?[q(U[0]),U[1]?q(U[1]):$a(i.value.partialRange)]:[q(U[0])],i.value.enabled):q(U),O=()=>{Array.isArray(n.value)&&i.value.enabled&&n.value.length===1&&n.value.push($a(i.value.partialRange))},S=()=>{const U=n.value;return[me(U[0]),U[1]?me(U[1]):$a(i.value.partialRange)]},K=()=>Array.isArray(n.value)?n.value[1]?S():me(pA(n.value[0])):[],de=()=>(n.value||[]).map(U=>me(U)),ce=(U=!1)=>(U||O(),e.modelAuto?K():s.value.enabled?de():Array.isArray(n.value)?ml(()=>S(),i.value.enabled):me(pA(n.value))),ge=U=>!U||Array.isArray(U)&&!U.length?null:e.timePicker?F(pA(U)):e.monthPicker?C(pA(U)):e.yearPicker?Q(pA(U)):s.value.enabled?D(pA(U)):e.weekPicker?E(pA(U)):x(pA(U)),V=U=>{const Z=ge(U);Ed(pA(Z))?(n.value=pA(Z),te()):(n.value=null,d.value="")},X=()=>{const U=Z=>cr(Z,r.value.format);return`${U(n.value[0])} ${r.value.rangeSeparator} ${n.value[1]?U(n.value[1]):""}`},$=()=>A.value&&n.value?Array.isArray(n.value)?X():cr(n.value,r.value.format):B(n.value),re=()=>n.value?s.value.enabled?n.value.map(U=>B(U)).join("; "):r.value.enabled&&typeof r.value.format=="string"?$():B(n.value):"",te=()=>{!e.format||typeof e.format=="string"||r.value.enabled&&typeof r.value.format=="string"?d.value=re():d.value=e.format(n.value)},q=U=>{if(e.utc){const Z=new Date(U);return e.utc==="preserve"?new Date(Z.getTime()+Z.getTimezoneOffset()*6e4):Z}return e.modelType?RU.includes(e.modelType)?m(new Date(U)):e.modelType==="format"&&(typeof e.format=="string"||!e.format)?m(cd(U,c(),new Date,{locale:h.value})):m(cd(U,e.modelType,new Date,{locale:h.value})):m(new Date(U))},me=U=>U?e.utc?qU(U,e.utc==="preserve",e.enableSeconds):e.modelType?e.modelType==="timestamp"?+g(U):e.modelType==="iso"?g(U).toISOString():e.modelType==="format"&&(typeof e.format=="string"||!e.format)?B(g(U)):B(g(U),e.modelType,!0):g(U):"",j=(U,Z=!1,Ue=!1)=>{if(Ue)return U;if(t("update:model-value",U),a.value.emitTimezone&&Z){const At=Array.isArray(U)?U.map(ie=>rn(pA(ie),a.value.emitTimezone)):rn(pA(U),a.value.emitTimezone);t("update:model-timezone-value",At)}},Ee=U=>Array.isArray(n.value)?s.value.enabled?n.value.map(Z=>U(Z)):[U(n.value[0]),n.value[1]?U(n.value[1]):$a(i.value.partialRange)]:U(pA(n.value)),R=()=>{if(Array.isArray(n.value)){const U=Sr(n.value[0],e.weekStart),Z=n.value[1]?Sr(n.value[1],e.weekStart):[];return[U.map(Ue=>ve(Ue)),Z.map(Ue=>ve(Ue))]}return Sr(n.value,e.weekStart).map(U=>ve(U))},J=(U,Z)=>j(pA(Ee(U)),!1,Z),Ae=U=>{const Z=R();return U?Z:t("update:model-value",R())},se=(U=!1)=>(U||te(),e.monthPicker?J(v,U):e.timePicker?J(y,U):e.yearPicker?J(tt,U):e.weekPicker?Ae(U):j(ce(U),!0,U));return{inputValue:d,internalModelValue:n,checkBeforeEmit:()=>n.value?i.value.enabled?i.value.partialRange?n.value.length>=1:n.value.length===2:!!n.value:!1,parseExternalModelValue:V,formatInputValue:te,emitModelValue:se}},bk=(t,e)=>{const{defaultedFilters:A,propDates:n}=Pt(t),{validateMonthYearInRange:r}=ui(t),i=(f,h)=>{let m=f;return A.value.months.includes(pt(m))?(m=h?Wn(f,1):Ha(f,1),i(m,h)):m},a=(f,h)=>{let m=f;return A.value.years.includes(tt(m))?(m=h?td(f,1):dg(f,1),a(m,h)):m},s=(f,h=!1)=>{const m=It(ve(),{month:t.month,year:t.year});let g=f?Wn(m,1):Ha(m,1);t.disableYearSelect&&(g=fr(g,t.year));let B=pt(g),y=tt(g);A.value.months.includes(B)&&(g=i(g,f),B=pt(g),y=tt(g)),A.value.years.includes(y)&&(g=a(g,f),y=tt(g)),r(B,y,f,t.preventMinMaxNavigation)&&c(B,y,h)},c=(f,h,m)=>{e("update-month-year",{month:f,year:h,fromNav:m})},d=o.computed(()=>f=>kg(It(ve(),{month:t.month,year:t.year}),n.value.maxDate,n.value.minDate,t.preventMinMaxNavigation,f));return{handleMonthYearChange:s,isDisabled:d,updateMonthYear:c}},Bl={multiCalendars:{type:[Boolean,Number,String,Object],default:void 0},modelValue:{type:[String,Date,Array,Object,Number],default:null},modelType:{type:String,default:null},position:{type:String,default:"center"},dark:{type:Boolean,default:!1},format:{type:[String,Function],default:()=>null},autoPosition:{type:[Boolean,String],default:!0},altPosition:{type:Function,default:null},transitions:{type:[Boolean,Object],default:!0},formatLocale:{type:Object,default:null},utc:{type:[Boolean,String],default:!1},ariaLabels:{type:Object,default:()=>({})},offset:{type:[Number,String],default:10},hideNavigation:{type:Array,default:()=>[]},timezone:{type:[String,Object],default:null},vertical:{type:Boolean,default:!1},disableMonthYearSelect:{type:Boolean,default:!1},disableYearSelect:{type:Boolean,default:!1},dayClass:{type:Function,default:null},yearRange:{type:Array,default:()=>[1900,2100]},enableTimePicker:{type:Boolean,default:!0},autoApply:{type:Boolean,default:!1},disabledDates:{type:[Array,Function],default:()=>[]},monthNameFormat:{type:String,default:"short"},startDate:{type:[Date,String],default:null},startTime:{type:[Object,Array],default:null},hideOffsetDates:{type:Boolean,default:!1},noToday:{type:Boolean,default:!1},disabledWeekDays:{type:Array,default:()=>[]},allowedDates:{type:Array,default:null},nowButtonLabel:{type:String,default:"Now"},markers:{type:Array,default:()=>[]},escClose:{type:Boolean,default:!0},spaceConfirm:{type:Boolean,default:!0},monthChangeOnArrows:{type:Boolean,default:!0},presetDates:{type:Array,default:()=>[]},flow:{type:Array,default:()=>[]},partialFlow:{type:Boolean,default:!1},preventMinMaxNavigation:{type:Boolean,default:!1},reverseYears:{type:Boolean,default:!1},weekPicker:{type:Boolean,default:!1},filters:{type:Object,default:()=>({})},arrowNavigation:{type:Boolean,default:!1},highlight:{type:[Function,Object],default:null},teleport:{type:[Boolean,String,Object],default:null},teleportCenter:{type:Boolean,default:!1},locale:{type:String,default:"en-Us"},weekNumName:{type:String,default:"W"},weekStart:{type:[Number,String],default:1},weekNumbers:{type:[String,Function,Object],default:null},monthChangeOnScroll:{type:[Boolean,String],default:!0},dayNames:{type:[Function,Array],default:null},monthPicker:{type:Boolean,default:!1},customProps:{type:Object,default:null},yearPicker:{type:Boolean,default:!1},modelAuto:{type:Boolean,default:!1},selectText:{type:String,default:"Select"},cancelText:{type:String,default:"Cancel"},previewFormat:{type:[String,Function],default:()=>""},multiDates:{type:[Object,Boolean],default:!1},ignoreTimeValidation:{type:Boolean,default:!1},minDate:{type:[Date,String],default:null},maxDate:{type:[Date,String],default:null},minTime:{type:Object,default:null},maxTime:{type:Object,default:null},name:{type:String,default:null},placeholder:{type:String,default:""},hideInputIcon:{type:Boolean,default:!1},clearable:{type:Boolean,default:!0},alwaysClearable:{type:Boolean,default:!1},state:{type:Boolean,default:null},required:{type:Boolean,default:!1},autocomplete:{type:String,default:"off"},timePicker:{type:Boolean,default:!1},enableSeconds:{type:Boolean,default:!1},is24:{type:Boolean,default:!0},noHoursOverlay:{type:Boolean,default:!1},noMinutesOverlay:{type:Boolean,default:!1},noSecondsOverlay:{type:Boolean,default:!1},hoursGridIncrement:{type:[String,Number],default:1},minutesGridIncrement:{type:[String,Number],default:5},secondsGridIncrement:{type:[String,Number],default:5},hoursIncrement:{type:[Number,String],default:1},minutesIncrement:{type:[Number,String],default:1},secondsIncrement:{type:[Number,String],default:1},range:{type:[Boolean,Object],default:!1},uid:{type:String,default:null},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},inline:{type:[Boolean,Object],default:!1},textInput:{type:[Boolean,Object],default:!1},sixWeeks:{type:[Boolean,String],default:!1},actionRow:{type:Object,default:()=>({})},focusStartDate:{type:Boolean,default:!1},disabledTimes:{type:[Function,Array],default:void 0},timePickerInline:{type:Boolean,default:!1},calendar:{type:Function,default:null},config:{type:Object,default:void 0},quarterPicker:{type:Boolean,default:!1},yearFirst:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},onInternalModelChange:{type:[Function,Object],default:null},enableMinutes:{type:Boolean,default:!0},ui:{type:Object,default:()=>({})}},qn={...Bl,shadow:{type:Boolean,default:!1},flowStep:{type:Number,default:0},internalModelValue:{type:[Date,Array],default:null},noOverlayFocus:{type:Boolean,default:!1},collapse:{type:Boolean,default:!1},menuWrapRef:{type:Object,default:null},getInputRect:{type:Function,default:()=>({})},isTextInputDate:{type:Boolean,default:!1},isMobile:{type:Boolean,default:void 0}},vk=["title"],Ek=["disabled"],Qk=o.defineComponent({compatConfig:{MODE:3},__name:"ActionRow",props:{menuMount:{type:Boolean,default:!1},calendarWidth:{type:Number,default:0},...qn},emits:["close-picker","select-date","select-now","invalid-select"],setup(t,{emit:e}){const A=e,n=t,{defaultedActionRow:r,defaultedPreviewFormat:i,defaultedMultiCalendars:a,defaultedTextInput:s,defaultedInline:c,defaultedRange:d,defaultedMultiDates:f}=Pt(n),{isTimeValid:h,isMonthValid:m}=ui(n),{buildMatrix:g}=li(),B=o.ref(null),y=o.ref(null),v=o.ref(!1),Q=o.ref({}),k=o.ref(null),F=o.ref(null);o.onMounted(()=>{n.arrowNavigation&&g([iA(B),iA(y)],"actionRow"),C(),window.addEventListener("resize",C)}),o.onUnmounted(()=>{window.removeEventListener("resize",C)});const C=()=>{v.value=!1,setTimeout(()=>{var V,X;const $=(V=k.value)==null?void 0:V.getBoundingClientRect(),re=(X=F.value)==null?void 0:X.getBoundingClientRect();$&&re&&(Q.value.maxWidth=`${re.width-$.width-20}px`),v.value=!0},0)},D=o.computed(()=>d.value.enabled&&!d.value.partialRange&&n.internalModelValue?n.internalModelValue.length===2:!0),E=o.computed(()=>!h.value(n.internalModelValue)||!m.value(n.internalModelValue)||!D.value),x=()=>{const V=i.value;return n.timePicker||n.monthPicker,V(pA(n.internalModelValue))},O=()=>{const V=n.internalModelValue;return a.value.count>0?`${S(V[0])} - ${S(V[1])}`:[S(V[0]),S(V[1])]},S=V=>_g(V,i.value,n.formatLocale,s.value.rangeSeparator,n.modelAuto,i.value),K=o.computed(()=>!n.internalModelValue||!n.menuMount?"":typeof i.value=="string"?Array.isArray(n.internalModelValue)?n.internalModelValue.length===2&&n.internalModelValue[1]?O():f.value.enabled?n.internalModelValue.map(V=>`${S(V)}`):n.modelAuto?`${S(n.internalModelValue[0])}`:`${S(n.internalModelValue[0])} -`:S(n.internalModelValue):x()),de=()=>f.value.enabled?"; ":" - ",ce=o.computed(()=>Array.isArray(K.value)?K.value.join(de()):K.value),ge=()=>{h.value(n.internalModelValue)&&m.value(n.internalModelValue)&&D.value?A("select-date"):A("invalid-select")};return(V,X)=>(o.openBlock(),o.createElementBlock("div",{ref_key:"actionRowRef",ref:F,class:"dp__action_row"},[V.$slots["action-row"]?o.renderSlot(V.$slots,"action-row",o.normalizeProps(o.mergeProps({key:0},{internalModelValue:V.internalModelValue,disabled:E.value,selectDate:()=>V.$emit("select-date"),closePicker:()=>V.$emit("close-picker")}))):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.unref(r).showPreview?(o.openBlock(),o.createElementBlock("div",{key:0,class:"dp__selection_preview",title:ce.value,style:o.normalizeStyle(Q.value)},[V.$slots["action-preview"]&&v.value?o.renderSlot(V.$slots,"action-preview",{key:0,value:V.internalModelValue}):o.createCommentVNode("",!0),!V.$slots["action-preview"]&&v.value?(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createTextVNode(o.toDisplayString(ce.value),1)],64)):o.createCommentVNode("",!0)],12,vk)):o.createCommentVNode("",!0),o.createElementVNode("div",{ref_key:"actionBtnContainer",ref:k,class:"dp__action_buttons","data-dp-element":"action-row"},[V.$slots["action-buttons"]?o.renderSlot(V.$slots,"action-buttons",{key:0,value:V.internalModelValue}):o.createCommentVNode("",!0),V.$slots["action-buttons"]?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[!o.unref(c).enabled&&o.unref(r).showCancel?(o.openBlock(),o.createElementBlock("button",{key:0,ref_key:"cancelButtonRef",ref:B,type:"button",class:"dp__action_button dp__action_cancel",onClick:X[0]||(X[0]=$=>V.$emit("close-picker")),onKeydown:X[1]||(X[1]=$=>o.unref(WA)($,()=>V.$emit("close-picker")))},o.toDisplayString(V.cancelText),545)):o.createCommentVNode("",!0),o.unref(r).showNow?(o.openBlock(),o.createElementBlock("button",{key:1,type:"button",class:"dp__action_button dp__action_cancel",onClick:X[2]||(X[2]=$=>V.$emit("select-now")),onKeydown:X[3]||(X[3]=$=>o.unref(WA)($,()=>V.$emit("select-now")))},o.toDisplayString(V.nowButtonLabel),33)):o.createCommentVNode("",!0),o.unref(r).showSelect?(o.openBlock(),o.createElementBlock("button",{key:2,ref_key:"selectButtonRef",ref:y,type:"button",class:"dp__action_button dp__action_select",disabled:E.value,"data-test-id":"select-button",onKeydown:X[4]||(X[4]=$=>o.unref(WA)($,()=>ge())),onClick:ge},o.toDisplayString(V.selectText),41,Ek)):o.createCommentVNode("",!0)],64))],512)],64))],512))}}),Fk=["role","aria-label","tabindex"],Uk={class:"dp__selection_grid_header"},kk=["aria-selected","aria-disabled","data-test-id","onClick","onKeydown","onMouseover"],_k=["aria-label"],jo=o.defineComponent({__name:"SelectionOverlay",props:{items:{},type:{},isLast:{type:Boolean},arrowNavigation:{type:Boolean},skipButtonRef:{type:Boolean},headerRefs:{},hideNavigation:{},escClose:{type:Boolean},useRelative:{type:Boolean},height:{},textInput:{type:[Boolean,Object]},config:{},noOverlayFocus:{type:Boolean},focusValue:{},menuWrapRef:{},ariaLabels:{},overlayLabel:{}},emits:["selected","toggle","reset-flow","hover-value"],setup(t,{expose:e,emit:A}){const{setSelectionGrid:n,buildMultiLevelMatrix:r,setMonthPicker:i}=li(),a=A,s=t,{defaultedAriaLabels:c,defaultedTextInput:d,defaultedConfig:f,handleEventPropagation:h}=Pt(s),{hideNavigationButtons:m}=Cl(),g=o.ref(!1),B=o.ref(null),y=o.ref(null),v=o.ref([]),Q=o.ref(),k=o.ref(null),F=o.ref(0),C=o.ref(null);o.onBeforeUpdate(()=>{B.value=null}),o.onMounted(()=>{o.nextTick().then(()=>ce()),s.noOverlayFocus||E(),D(!0)}),o.onUnmounted(()=>D(!1));const D=R=>{var J;s.arrowNavigation&&((J=s.headerRefs)!=null&&J.length?i(R):n(R))},E=()=>{var R;const J=iA(y);J&&(d.value.enabled||(B.value?(R=B.value)==null||R.focus({preventScroll:!0}):J.focus({preventScroll:!0})),g.value=J.clientHeight<J.scrollHeight)},x=o.computed(()=>({dp__overlay:!0,"dp--overlay-absolute":!s.useRelative,"dp--overlay-relative":s.useRelative})),O=o.computed(()=>s.useRelative?{height:`${s.height}px`,width:"var(--dp-menu-min-width)"}:void 0),S=o.computed(()=>({dp__overlay_col:!0})),K=o.computed(()=>({dp__btn:!0,dp__button:!0,dp__overlay_action:!0,dp__over_action_scroll:g.value,dp__button_bottom:s.isLast})),de=o.computed(()=>{var R,J;return{dp__overlay_container:!0,dp__container_flex:((R=s.items)==null?void 0:R.length)<=6,dp__container_block:((J=s.items)==null?void 0:J.length)>6}});o.watch(()=>s.items,()=>ce(!1),{deep:!0});const ce=(R=!0)=>{o.nextTick().then(()=>{const J=iA(B),Ae=iA(y),se=iA(k),U=iA(C),Z=se?se.getBoundingClientRect().height:0;Ae&&(Ae.getBoundingClientRect().height?F.value=Ae.getBoundingClientRect().height-Z:F.value=f.value.modeHeight-Z),J&&U&&R&&(U.scrollTop=J.offsetTop-U.offsetTop-(F.value/2-J.getBoundingClientRect().height)-Z)})},ge=R=>{R.disabled||a("selected",R.value)},V=()=>{a("toggle"),a("reset-flow")},X=R=>{s.escClose&&(V(),h(R))},$=(R,J,Ae,se)=>{R&&((J.active||J.value===s.focusValue)&&(B.value=R),s.arrowNavigation&&(Array.isArray(v.value[Ae])?v.value[Ae][se]=R:v.value[Ae]=[R],re()))},re=()=>{var R,J;const Ae=(R=s.headerRefs)!=null&&R.length?[s.headerRefs].concat(v.value):v.value.concat([s.skipButtonRef?[]:[k.value]]);r(pA(Ae),(J=s.headerRefs)!=null&&J.length?"monthPicker":"selectionGrid")},te=R=>{s.arrowNavigation||ai(R,f.value,!0)},q=R=>{Q.value=R,a("hover-value",R)},me=()=>{if(V(),!s.isLast){const R=yd(s.menuWrapRef??null,"action-row");if(R){const J=wg(R);J==null||J.focus()}}},j=R=>{switch(R.key){case Nt.esc:return X(R);case Nt.arrowLeft:return te(R);case Nt.arrowRight:return te(R);case Nt.arrowUp:return te(R);case Nt.arrowDown:return te(R);default:return}},Ee=R=>{if(R.key===Nt.enter)return V();if(R.key===Nt.tab)return me()};return e({focusGrid:E}),(R,J)=>{var Ae;return o.openBlock(),o.createElementBlock("div",{ref_key:"gridWrapRef",ref:y,class:o.normalizeClass(x.value),style:o.normalizeStyle(O.value),role:R.useRelative?void 0:"dialog","aria-label":R.overlayLabel,tabindex:R.useRelative?void 0:"0",onKeydown:j,onClick:J[0]||(J[0]=o.withModifiers(()=>{},["prevent"]))},[o.createElementVNode("div",{ref_key:"containerRef",ref:C,class:o.normalizeClass(de.value),style:o.normalizeStyle({"--dp-overlay-height":`${F.value}px`}),role:"grid"},[o.createElementVNode("div",Uk,[o.renderSlot(R.$slots,"header")]),R.$slots.overlay?o.renderSlot(R.$slots,"overlay",{key:0}):(o.openBlock(!0),o.createElementBlock(o.Fragment,{key:1},o.renderList(R.items,(se,U)=>(o.openBlock(),o.createElementBlock("div",{key:U,class:o.normalizeClass(["dp__overlay_row",{dp__flex_row:R.items.length>=3}]),role:"row"},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(se,(Z,Ue)=>(o.openBlock(),o.createElementBlock("div",{key:Z.value,ref_for:!0,ref:At=>$(At,Z,U,Ue),role:"gridcell",class:o.normalizeClass(S.value),"aria-selected":Z.active||void 0,"aria-disabled":Z.disabled||void 0,tabindex:"0","data-test-id":Z.text,onClick:o.withModifiers(At=>ge(Z),["prevent"]),onKeydown:At=>o.unref(WA)(At,()=>ge(Z),!0),onMouseover:At=>q(Z.value)},[o.createElementVNode("div",{class:o.normalizeClass(Z.className)},[R.$slots.item?o.renderSlot(R.$slots,"item",{key:0,item:Z}):o.createCommentVNode("",!0),R.$slots.item?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createTextVNode(o.toDisplayString(Z.text),1)],64))],2)],42,kk))),128))],2))),128))],6),R.$slots["button-icon"]?o.withDirectives((o.openBlock(),o.createElementBlock("button",{key:0,ref_key:"toggleButton",ref:k,type:"button","aria-label":(Ae=o.unref(c))==null?void 0:Ae.toggleOverlay,class:o.normalizeClass(K.value),tabindex:"0",onClick:V,onKeydown:Ee},[o.renderSlot(R.$slots,"button-icon")],42,_k)),[[o.vShow,!o.unref(m)(R.hideNavigation,R.type)]]):o.createCommentVNode("",!0)],46,Fk)}}}),Ik=["data-dp-mobile"],wl=o.defineComponent({__name:"InstanceWrap",props:{multiCalendars:{},stretch:{type:Boolean},collapse:{type:Boolean},isMobile:{type:Boolean}},setup(t){const e=t,A=o.computed(()=>e.multiCalendars>0?[...Array(e.multiCalendars).keys()]:[0]),n=o.computed(()=>({dp__instance_calendar:e.multiCalendars>0}));return(r,i)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass({dp__menu_inner:!r.stretch,"dp--menu--inner-stretched":r.stretch,dp__flex_display:r.multiCalendars>0,"dp--flex-display-collapsed":r.collapse}),"data-dp-mobile":r.isMobile},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(A.value,(a,s)=>(o.openBlock(),o.createElementBlock("div",{key:a,class:o.normalizeClass(n.value)},[o.renderSlot(r.$slots,"default",{instance:a,index:s})],2))),128))],10,Ik))}}),Sk=["data-dp-element","aria-label","aria-disabled"],Zo=o.defineComponent({compatConfig:{MODE:3},__name:"ArrowBtn",props:{ariaLabel:{},elName:{},disabled:{type:Boolean}},emits:["activate","set-ref"],setup(t,{emit:e}){const A=e,n=o.ref(null);return o.onMounted(()=>A("set-ref",n)),(r,i)=>(o.openBlock(),o.createElementBlock("button",{ref_key:"elRef",ref:n,type:"button","data-dp-element":r.elName,class:"dp__btn dp--arrow-btn-nav",tabindex:"0","aria-label":r.ariaLabel,"aria-disabled":r.disabled||void 0,onClick:i[0]||(i[0]=a=>r.$emit("activate")),onKeydown:i[1]||(i[1]=a=>o.unref(WA)(a,()=>r.$emit("activate"),!0))},[o.createElementVNode("span",{class:o.normalizeClass(["dp__inner_nav",{dp__inner_nav_disabled:r.disabled}])},[o.renderSlot(r.$slots,"default")],2)],40,Sk))}}),Tk=["aria-label","data-test-id"],Og=o.defineComponent({__name:"YearModePicker",props:{...qn,showYearPicker:{type:Boolean,default:!1},items:{type:Array,default:()=>[]},instance:{type:Number,default:0},year:{type:Number,default:0},isDisabled:{type:Function,default:()=>!1}},emits:["toggle-year-picker","year-select","handle-year"],setup(t,{emit:e}){const A=e,n=t,{showRightIcon:r,showLeftIcon:i}=Cl(),{defaultedConfig:a,defaultedMultiCalendars:s,defaultedAriaLabels:c,defaultedTransitions:d,defaultedUI:f}=Pt(n),{showTransition:h,transitionName:m}=es(d),g=o.ref(!1),B=(Q=!1,k)=>{g.value=!g.value,A("toggle-year-picker",{flow:Q,show:k})},y=Q=>{g.value=!1,A("year-select",Q)},v=(Q=!1)=>{A("handle-year",Q)};return(Q,k)=>{var F,C,D,E,x;return o.openBlock(),o.createElementBlock(o.Fragment,null,[o.createElementVNode("div",{class:o.normalizeClass(["dp--year-mode-picker",{"dp--hidden-el":g.value}])},[o.unref(i)(o.unref(s),t.instance)?(o.openBlock(),o.createBlock(Zo,{key:0,ref:"mpPrevIconRef","aria-label":(F=o.unref(c))==null?void 0:F.prevYear,disabled:t.isDisabled(!1),class:o.normalizeClass((C=o.unref(f))==null?void 0:C.navBtnPrev),onActivate:k[0]||(k[0]=O=>v(!1))},{default:o.withCtx(()=>[Q.$slots["arrow-left"]?o.renderSlot(Q.$slots,"arrow-left",{key:0}):o.createCommentVNode("",!0),Q.$slots["arrow-left"]?o.createCommentVNode("",!0):(o.openBlock(),o.createBlock(o.unref(ud),{key:1}))]),_:3},8,["aria-label","disabled","class"])):o.createCommentVNode("",!0),o.createElementVNode("button",{ref:"mpYearButtonRef",class:"dp__btn dp--year-select",type:"button","aria-label":`${t.year}-${(D=o.unref(c))==null?void 0:D.openYearsOverlay}`,"data-test-id":`year-mode-btn-${t.instance}`,onClick:k[1]||(k[1]=()=>B(!1)),onKeydown:k[2]||(k[2]=o.withKeys(()=>B(!1),["enter"]))},[Q.$slots.year?o.renderSlot(Q.$slots,"year",{key:0,year:t.year}):o.createCommentVNode("",!0),Q.$slots.year?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createTextVNode(o.toDisplayString(t.year),1)],64))],40,Tk),o.unref(r)(o.unref(s),t.instance)?(o.openBlock(),o.createBlock(Zo,{key:1,ref:"mpNextIconRef","aria-label":(E=o.unref(c))==null?void 0:E.nextYear,disabled:t.isDisabled(!0),class:o.normalizeClass((x=o.unref(f))==null?void 0:x.navBtnNext),onActivate:k[3]||(k[3]=O=>v(!0))},{default:o.withCtx(()=>[Q.$slots["arrow-right"]?o.renderSlot(Q.$slots,"arrow-right",{key:0}):o.createCommentVNode("",!0),Q.$slots["arrow-right"]?o.createCommentVNode("",!0):(o.openBlock(),o.createBlock(o.unref(dd),{key:1}))]),_:3},8,["aria-label","disabled","class"])):o.createCommentVNode("",!0)],2),o.createVNode(o.Transition,{name:o.unref(m)(t.showYearPicker),css:o.unref(h)},{default:o.withCtx(()=>{var O,S;return[t.showYearPicker?(o.openBlock(),o.createBlock(jo,{key:0,items:t.items,"text-input":Q.textInput,"esc-close":Q.escClose,config:Q.config,"is-last":Q.autoApply&&!o.unref(a).keepActionRow,"hide-navigation":Q.hideNavigation,"aria-labels":Q.ariaLabels,"overlay-label":(S=(O=o.unref(c))==null?void 0:O.yearPicker)==null?void 0:S.call(O,!0),type:"year",onToggle:B,onSelected:k[4]||(k[4]=K=>y(K))},o.createSlots({"button-icon":o.withCtx(()=>[Q.$slots["calendar-icon"]?o.renderSlot(Q.$slots,"calendar-icon",{key:0}):o.createCommentVNode("",!0),Q.$slots["calendar-icon"]?o.createCommentVNode("",!0):(o.openBlock(),o.createBlock(o.unref(Ra),{key:1}))]),_:2},[Q.$slots["year-overlay-value"]?{name:"item",fn:o.withCtx(({item:K})=>[o.renderSlot(Q.$slots,"year-overlay-value",{text:K.text,value:K.value})]),key:"0"}:void 0]),1032,["items","text-input","esc-close","config","is-last","hide-navigation","aria-labels","overlay-label"])):o.createCommentVNode("",!0)]}),_:3},8,["name","css"])],64)}}}),Md=(t,e,A)=>{if(e.value&&Array.isArray(e.value))if(e.value.some(n=>mt(t,n))){const n=e.value.filter(r=>!mt(r,t));e.value=n.length?n:null}else(A&&+A>e.value.length||!A)&&e.value.push(t);else e.value=[t]},Od=(t,e,A)=>{let n=t.value?t.value.slice():[];return n.length===2&&n[1]!==null&&(n=[]),n.length?(zt(e,n[0])?n.unshift(e):n[1]=e,A("range-end",e)):(n=[e],A("range-start",e)),n},yl=(t,e,A,n)=>{t&&(t[0]&&t[1]&&A&&e("auto-apply"),t[0]&&!t[1]&&n&&A&&e("auto-apply"))},Ng=t=>{Array.isArray(t.value)&&t.value.length<=2&&t.range?t.modelValue.value=t.value.map(e=>rn(ve(e),t.timezone)):Array.isArray(t.value)||(t.modelValue.value=rn(ve(t.value),t.timezone))},Lg=(t,e,A,n)=>Array.isArray(e.value)&&(e.value.length===2||e.value.length===1&&n.value.partialRange)?n.value.fixedStart&&(Zt(t,e.value[0])||mt(t,e.value[0]))?[e.value[0],t]:n.value.fixedEnd&&(zt(t,e.value[1])||mt(t,e.value[1]))?[t,e.value[1]]:(A("invalid-fixed-range",t),e.value):[],Hg=({multiCalendars:t,range:e,highlight:A,propDates:n,calendars:r,modelValue:i,props:a,filters:s,year:c,month:d,emit:f})=>{const h=o.computed(()=>Bd(a.yearRange,a.locale,a.reverseYears)),m=o.ref([!1]),g=o.computed(()=>(K,de)=>{const ce=It(Xn(new Date),{month:d.value(K),year:c.value(K)}),ge=de?Wm(ce):Wo(ce);return kg(ge,n.value.maxDate,n.value.minDate,a.preventMinMaxNavigation,de)}),B=()=>Array.isArray(i.value)&&t.value.solo&&i.value[1],y=()=>{for(let K=0;K<t.value.count;K++)if(K===0)r.value[K]=r.value[0];else if(K===t.value.count-1&&B())r.value[K]={month:pt(i.value[1]),year:tt(i.value[1])};else{const de=It(ve(),r.value[K-1]);r.value[K]={month:pt(de),year:tt(td(de,1))}}},v=K=>{if(!K)return y();const de=It(ve(),r.value[K]);return r.value[0].year=tt(dg(de,t.value.count-1)),y()},Q=(K,de)=>{const ce=KQ(de,K);return e.value.showLastInRange&&ce>1?de:K},k=K=>a.focusStartDate||t.value.solo?K[0]:K[1]?Q(K[0],K[1]):K[0],F=()=>{if(i.value){const K=Array.isArray(i.value)?k(i.value):i.value;r.value[0]={month:pt(K),year:tt(K)}}},C=()=>{F(),t.value.count&&y()};o.watch(i,(K,de)=>{a.isTextInputDate&&JSON.stringify(K??{})!==JSON.stringify(de??{})&&C()}),o.onMounted(()=>{C()});const D=(K,de)=>{r.value[de].year=K,f("update-month-year",{instance:de,year:K,month:r.value[de].month}),t.value.count&&!t.value.solo&&v(de)},E=o.computed(()=>K=>Va(h.value,de=>{var ce;const ge=c.value(K)===de.value,V=Jo(de.value,Ka(n.value.minDate),Ka(n.value.maxDate))||((ce=s.value.years)==null?void 0:ce.includes(c.value(K))),X=kd(A.value,de.value);return{active:ge,disabled:V,highlighted:X}})),x=(K,de)=>{D(K,de),S(de)},O=(K,de=!1)=>{if(!g.value(K,de)){const ce=de?c.value(K)+1:c.value(K)-1;D(ce,K)}},S=(K,de=!1,ce)=>{de||f("reset-flow"),ce!==void 0?m.value[K]=ce:m.value[K]=!m.value[K],m.value[K]?f("overlay-toggle",{open:!0,overlay:TA.year}):(f("overlay-closed"),f("overlay-toggle",{open:!1,overlay:TA.year}))};return{isDisabled:g,groupedYears:E,showYearPicker:m,selectYear:D,toggleYearPicker:S,handleYearSelect:x,handleYear:O}},xk=(t,e)=>{const{defaultedMultiCalendars:A,defaultedAriaLabels:n,defaultedTransitions:r,defaultedConfig:i,defaultedRange:a,defaultedHighlight:s,propDates:c,defaultedTz:d,defaultedFilters:f,defaultedMultiDates:h}=Pt(t),m=()=>{t.isTextInputDate&&C(tt(ve(t.startDate)),0)},{modelValue:g,year:B,month:y,calendars:v}=ts(t,e,m),Q=o.computed(()=>pg(t.formatLocale,t.locale,t.monthNameFormat)),k=o.ref(null),{checkMinMaxRange:F}=ui(t),{selectYear:C,groupedYears:D,showYearPicker:E,toggleYearPicker:x,handleYearSelect:O,handleYear:S,isDisabled:K}=Hg({modelValue:g,multiCalendars:A,range:a,highlight:s,calendars:v,year:B,propDates:c,month:y,filters:f,props:t,emit:e});o.onMounted(()=>{t.startDate&&(g.value&&t.focusStartDate||!g.value)&&C(tt(ve(t.startDate)),0)});const de=J=>J?{month:pt(J),year:tt(J)}:{month:null,year:null},ce=()=>g.value?Array.isArray(g.value)?g.value.map(J=>de(J)):de(g.value):de(),ge=(J,Ae)=>{const se=v.value[J],U=ce();return Array.isArray(U)?U.some(Z=>Z.year===(se==null?void 0:se.year)&&Z.month===Ae):(se==null?void 0:se.year)===U.year&&Ae===U.month},V=(J,Ae,se)=>{var U,Z;const Ue=ce();return Array.isArray(Ue)?B.value(Ae)===((U=Ue[se])==null?void 0:U.year)&&J===((Z=Ue[se])==null?void 0:Z.month):!1},X=(J,Ae)=>{if(a.value.enabled){const se=ce();if(Array.isArray(g.value)&&Array.isArray(se)){const U=V(J,Ae,0)||V(J,Ae,1),Z=Tr(Xn(ve()),J,B.value(Ae));return Xo(g.value,k.value,Z)&&!U}return!1}return!1},$=o.computed(()=>J=>Va(Q.value,Ae=>{var se;const U=ge(J,Ae.value),Z=Jo(Ae.value,Eg(B.value(J),c.value.minDate),Qg(B.value(J),c.value.maxDate))||Ak(c.value.disabledDates,B.value(J),Ae.value)||((se=f.value.months)==null?void 0:se.includes(Ae.value))||!nk(c.value.allowedDates,B.value(J),Ae.value),Ue=X(Ae.value,J),At=Sg(s.value,Ae.value,B.value(J));return{active:U,disabled:Z,isBetween:Ue,highlighted:At}})),re=(J,Ae)=>Tr(Xn(ve()),J,B.value(Ae)),te=(J,Ae)=>{const se=g.value?g.value:Xn(new Date);g.value=Tr(se,J,B.value(Ae)),e("auto-apply"),e("update-flow-step")},q=(J,Ae)=>{const se=re(J,Ae);a.value.fixedEnd||a.value.fixedStart?g.value=Lg(se,g,e,a):g.value?F(se,g.value)&&(g.value=Od(g,re(J,Ae),e)):g.value=[re(J,Ae)],o.nextTick().then(()=>{yl(g.value,e,t.autoApply,t.modelAuto)})},me=(J,Ae)=>{Md(re(J,Ae),g,h.value.limit),e("auto-apply",!0)},j=(J,Ae)=>(v.value[Ae].month=J,R(Ae,v.value[Ae].year,J),h.value.enabled?me(J,Ae):a.value.enabled?q(J,Ae):te(J,Ae)),Ee=(J,Ae)=>{C(J,Ae),R(Ae,J,null)},R=(J,Ae,se)=>{let U=se;if(!U&&U!==0){const Z=ce();U=Array.isArray(Z)?Z[J].month:Z.month}e("update-month-year",{instance:J,year:Ae,month:U})};return{groupedMonths:$,groupedYears:D,year:B,isDisabled:K,defaultedMultiCalendars:A,defaultedAriaLabels:n,defaultedTransitions:r,defaultedConfig:i,showYearPicker:E,modelValue:g,presetDate:(J,Ae)=>{Ng({value:J,modelValue:g,range:a.value.enabled,timezone:Ae?void 0:d.value.timezone}),e("auto-apply")},setHoverDate:(J,Ae)=>{k.value=re(J,Ae)},selectMonth:j,selectYear:Ee,toggleYearPicker:x,handleYearSelect:O,handleYear:S,getModelMonthYear:ce}},Dk=o.defineComponent({compatConfig:{MODE:3},__name:"MonthPicker",props:{...qn},emits:["update:internal-model-value","overlay-closed","reset-flow","range-start","range-end","auto-apply","update-month-year","update-flow-step","mount","invalid-fixed-range","overlay-toggle"],setup(t,{expose:e,emit:A}){const n=A,r=o.useSlots(),i=mn(r,"yearMode"),a=t;o.onMounted(()=>{a.shadow||n("mount",null)});const{groupedMonths:s,groupedYears:c,year:d,isDisabled:f,defaultedMultiCalendars:h,defaultedConfig:m,showYearPicker:g,modelValue:B,presetDate:y,setHoverDate:v,selectMonth:Q,selectYear:k,toggleYearPicker:F,handleYearSelect:C,handleYear:D,getModelMonthYear:E}=xk(a,n);return e({getSidebarProps:()=>({modelValue:B,year:d,getModelMonthYear:E,selectMonth:Q,selectYear:k,handleYear:D}),presetDate:y,toggleYearPicker:x=>F(0,x)}),(x,O)=>(o.openBlock(),o.createBlock(wl,{"multi-calendars":o.unref(h).count,collapse:x.collapse,stretch:"","is-mobile":x.isMobile},{default:o.withCtx(({instance:S})=>[x.$slots["top-extra"]?o.renderSlot(x.$slots,"top-extra",{key:0,value:x.internalModelValue}):o.createCommentVNode("",!0),x.$slots["month-year"]?o.renderSlot(x.$slots,"month-year",o.normalizeProps(o.mergeProps({key:1},{year:o.unref(d),months:o.unref(s)(S),years:o.unref(c)(S),selectMonth:o.unref(Q),selectYear:o.unref(k),instance:S}))):(o.openBlock(),o.createBlock(jo,{key:2,items:o.unref(s)(S),"arrow-navigation":x.arrowNavigation,"is-last":x.autoApply&&!o.unref(m).keepActionRow,"esc-close":x.escClose,height:o.unref(m).modeHeight,config:x.config,"no-overlay-focus":!!(x.noOverlayFocus||x.textInput),"use-relative":"",type:"month",onSelected:K=>o.unref(Q)(K,S),onHoverValue:K=>o.unref(v)(K,S)},o.createSlots({header:o.withCtx(()=>[o.createVNode(Og,o.mergeProps(x.$props,{items:o.unref(c)(S),instance:S,"show-year-picker":o.unref(g)[S],year:o.unref(d)(S),"is-disabled":K=>o.unref(f)(S,K),onHandleYear:K=>o.unref(D)(S,K),onYearSelect:K=>o.unref(C)(K,S),onToggleYearPicker:K=>o.unref(F)(S,K==null?void 0:K.flow,K==null?void 0:K.show)}),o.createSlots({_:2},[o.renderList(o.unref(i),(K,de)=>({name:K,fn:o.withCtx(ce=>[o.renderSlot(x.$slots,K,o.normalizeProps(o.guardReactiveProps(ce)))])}))]),1040,["items","instance","show-year-picker","year","is-disabled","onHandleYear","onYearSelect","onToggleYearPicker"])]),_:2},[x.$slots["month-overlay-value"]?{name:"item",fn:o.withCtx(({item:K})=>[o.renderSlot(x.$slots,"month-overlay-value",{text:K.text,value:K.value})]),key:"0"}:void 0]),1032,["items","arrow-navigation","is-last","esc-close","height","config","no-overlay-focus","onSelected","onHoverValue"]))]),_:3},8,["multi-calendars","collapse","is-mobile"]))}}),Mk=(t,e)=>{const A=()=>{t.isTextInputDate&&(f.value=tt(ve(t.startDate)))},{modelValue:n}=ts(t,e,A),r=o.ref(null),{defaultedHighlight:i,defaultedMultiDates:a,defaultedFilters:s,defaultedRange:c,propDates:d}=Pt(t),f=o.ref();o.onMounted(()=>{t.startDate&&(n.value&&t.focusStartDate||!n.value)&&(f.value=tt(ve(t.startDate)))});const h=Q=>Array.isArray(n.value)?n.value.some(k=>tt(k)===Q):n.value?tt(n.value)===Q:!1,m=Q=>c.value.enabled&&Array.isArray(n.value)?Xo(n.value,r.value,v(Q)):!1,g=Q=>d.value.allowedDates instanceof Map?d.value.allowedDates.size?d.value.allowedDates.has(`${Q}`):!1:!0,B=Q=>d.value.disabledDates instanceof Map?d.value.disabledDates.size?d.value.disabledDates.has(`${Q}`):!1:!0,y=o.computed(()=>Va(Bd(t.yearRange,t.locale,t.reverseYears),Q=>{const k=h(Q.value),F=Jo(Q.value,Ka(d.value.minDate),Ka(d.value.maxDate))||s.value.years.includes(Q.value)||!g(Q.value)||B(Q.value),C=m(Q.value)&&!k,D=kd(i.value,Q.value);return{active:k,disabled:F,isBetween:C,highlighted:D}})),v=Q=>fr(Xn(Wo(new Date)),Q);return{groupedYears:y,modelValue:n,focusYear:f,setHoverValue:Q=>{r.value=fr(Xn(new Date),Q)},selectYear:Q=>{var k;if(e("update-month-year",{instance:0,year:Q}),a.value.enabled)return n.value?Array.isArray(n.value)&&(((k=n.value)==null?void 0:k.map(F=>tt(F))).includes(Q)?n.value=n.value.filter(F=>tt(F)!==Q):n.value.push(fr(mA(ve()),Q))):n.value=[fr(mA(Wo(ve())),Q)],e("auto-apply",!0);c.value.enabled?(n.value=Od(n,v(Q),e),o.nextTick().then(()=>{yl(n.value,e,t.autoApply,t.modelAuto)})):(n.value=v(Q),e("auto-apply"))}}},Ok=o.defineComponent({compatConfig:{MODE:3},__name:"YearPicker",props:{...qn},emits:["update:internal-model-value","reset-flow","range-start","range-end","auto-apply","update-month-year"],setup(t,{expose:e,emit:A}){const n=A,r=t,{groupedYears:i,modelValue:a,focusYear:s,selectYear:c,setHoverValue:d}=Mk(r,n),{defaultedConfig:f}=Pt(r);return e({getSidebarProps:()=>({modelValue:a,selectYear:c})}),(h,m)=>(o.openBlock(),o.createElementBlock("div",null,[h.$slots["top-extra"]?o.renderSlot(h.$slots,"top-extra",{key:0,value:h.internalModelValue}):o.createCommentVNode("",!0),h.$slots["month-year"]?o.renderSlot(h.$slots,"month-year",o.normalizeProps(o.mergeProps({key:1},{years:o.unref(i),selectYear:o.unref(c)}))):(o.openBlock(),o.createBlock(jo,{key:2,items:o.unref(i),"is-last":h.autoApply&&!o.unref(f).keepActionRow,height:o.unref(f).modeHeight,config:h.config,"no-overlay-focus":!!(h.noOverlayFocus||h.textInput),"focus-value":o.unref(s),type:"year","use-relative":"",onSelected:o.unref(c),onHoverValue:o.unref(d)},o.createSlots({_:2},[h.$slots["year-overlay-value"]?{name:"item",fn:o.withCtx(({item:g})=>[o.renderSlot(h.$slots,"year-overlay-value",{text:g.text,value:g.value})]),key:"0"}:void 0]),1032,["items","is-last","height","config","no-overlay-focus","focus-value","onSelected","onHoverValue"]))]))}}),Nk={key:0,class:"dp__time_input"},Lk=["data-compact","data-collapsed"],Hk=["data-test-id","aria-label","onKeydown","onClick","onMousedown"],Rk=["aria-label","disabled","data-test-id","onKeydown","onClick"],Pk=["data-test-id","aria-label","onKeydown","onClick","onMousedown"],Vk={key:0},Kk=["aria-label","data-compact"],$k=o.defineComponent({compatConfig:{MODE:3},__name:"TimeInput",props:{hours:{type:Number,default:0},minutes:{type:Number,default:0},seconds:{type:Number,default:0},closeTimePickerBtn:{type:Object,default:null},order:{type:Number,default:0},disabledTimesConfig:{type:Function,default:null},validateTime:{type:Function,default:()=>!1},...qn},emits:["set-hours","set-minutes","update:hours","update:minutes","update:seconds","reset-flow","mounted","overlay-closed","overlay-opened","am-pm-change"],setup(t,{expose:e,emit:A}){const n=A,r=t,{setTimePickerElements:i,setTimePickerBackRef:a}=li(),{defaultedAriaLabels:s,defaultedTransitions:c,defaultedFilters:d,defaultedConfig:f,defaultedRange:h,defaultedMultiCalendars:m}=Pt(r),{transitionName:g,showTransition:B}=es(c),y=o.reactive({hours:!1,minutes:!1,seconds:!1}),v=o.ref("AM"),Q=o.ref(null),k=o.ref([]),F=o.ref(),C=o.ref(!1);o.onMounted(()=>{n("mounted")});const D=T=>It(new Date,{hours:T.hours,minutes:T.minutes,seconds:r.enableSeconds?T.seconds:0,milliseconds:0}),E=o.computed(()=>T=>q(T,r[T])||O(T,r[T])),x=o.computed(()=>({hours:r.hours,minutes:r.minutes,seconds:r.seconds})),O=(T,Fe)=>h.value.enabled&&!h.value.disableTimeRangeValidation?!r.validateTime(T,Fe):!1,S=(T,Fe)=>{if(h.value.enabled&&!h.value.disableTimeRangeValidation){const Ce=Fe?+r[`${T}Increment`]:-+r[`${T}Increment`],ke=r[T]+Ce;return!r.validateTime(T,ke)}return!1},K=o.computed(()=>T=>!J(+r[T]+ +r[`${T}Increment`],T)||S(T,!0)),de=o.computed(()=>T=>!J(+r[T]-+r[`${T}Increment`],T)||S(T,!1)),ce=(T,Fe)=>Nm(It(ve(),T),Fe),ge=(T,Fe)=>OU(It(ve(),T),Fe),V=o.computed(()=>({dp__time_col:!0,dp__time_col_block:!r.timePickerInline,dp__time_col_reg_block:!r.enableSeconds&&r.is24&&!r.timePickerInline,dp__time_col_reg_inline:!r.enableSeconds&&r.is24&&r.timePickerInline,dp__time_col_reg_with_button:!r.enableSeconds&&!r.is24,dp__time_col_sec:r.enableSeconds&&r.is24,dp__time_col_sec_with_button:r.enableSeconds&&!r.is24})),X=o.computed(()=>r.timePickerInline&&h.value.enabled&&!m.value.count),$=o.computed(()=>{const T=[{type:"hours"}];return r.enableMinutes&&T.push({type:"",separator:!0},{type:"minutes"}),r.enableSeconds&&T.push({type:"",separator:!0},{type:"seconds"}),T}),re=o.computed(()=>$.value.filter(T=>!T.separator)),te=o.computed(()=>T=>{if(T==="hours"){const Fe=At(+r.hours);return{text:Fe<10?`0${Fe}`:`${Fe}`,value:Fe}}return{text:r[T]<10?`0${r[T]}`:`${r[T]}`,value:r[T]}}),q=(T,Fe)=>{var Ce;if(!r.disabledTimesConfig)return!1;const ke=r.disabledTimesConfig(r.order,T==="hours"?Fe:void 0);return ke[T]?!!((Ce=ke[T])!=null&&Ce.includes(Fe)):!0},me=(T,Fe)=>Fe!=="hours"||v.value==="AM"?T:T+12,j=T=>{const Fe=r.is24?24:12,Ce=T==="hours"?Fe:60,ke=+r[`${T}GridIncrement`],nt=T==="hours"&&!r.is24?ke:0,M=[];for(let N=nt;N<Ce;N+=ke)M.push({value:r.is24?N:me(N,T),text:N<10?`0${N}`:`${N}`});return T==="hours"&&!r.is24&&M.unshift({value:v.value==="PM"?12:0,text:"12"}),Va(M,N=>({active:!1,disabled:d.value.times[T].includes(N.value)||!J(N.value,T)||q(T,N.value)||O(T,N.value)}))},Ee=T=>T>=0?T:59,R=T=>T>=0?T:23,J=(T,Fe)=>{const Ce=r.minTime?D(vd(r.minTime)):null,ke=r.maxTime?D(vd(r.maxTime)):null,nt=D(vd(x.value,Fe,Fe==="minutes"||Fe==="seconds"?Ee(T):R(T)));return Ce&&ke?(Na(nt,ke)||La(nt,ke))&&(Xi(nt,Ce)||La(nt,Ce)):Ce?Xi(nt,Ce)||La(nt,Ce):ke?Na(nt,ke)||La(nt,ke):!0},Ae=T=>r[`no${T[0].toUpperCase()+T.slice(1)}Overlay`],se=T=>{Ae(T)||(y[T]=!y[T],y[T]?(C.value=!0,n("overlay-opened",T)):(C.value=!1,n("overlay-closed",T)))},U=T=>T==="hours"?Ir:T==="minutes"?ii:Oa,Z=()=>{F.value&&clearTimeout(F.value)},Ue=(T,Fe=!0,Ce)=>{const ke=Fe?ce:ge,nt=Fe?+r[`${T}Increment`]:-+r[`${T}Increment`];J(+r[T]+nt,T)&&n(`update:${T}`,U(T)(ke({[T]:+r[T]},{[T]:+r[`${T}Increment`]}))),!(Ce!=null&&Ce.keyboard)&&f.value.timeArrowHoldThreshold&&(F.value=setTimeout(()=>{Ue(T,Fe)},f.value.timeArrowHoldThreshold))},At=T=>r.is24?T:(T>=12?v.value="PM":v.value="AM",KU(T)),ie=()=>{v.value==="PM"?(v.value="AM",n("update:hours",r.hours-12)):(v.value="PM",n("update:hours",r.hours+12)),n("am-pm-change",v.value)},Ge=T=>{y[T]=!0},Be=(T,Fe,Ce)=>{if(T&&r.arrowNavigation){Array.isArray(k.value[Fe])?k.value[Fe][Ce]=T:k.value[Fe]=[T];const ke=k.value.reduce((nt,M)=>M.map((N,le)=>[...nt[le]||[],M[le]]),[]);a(r.closeTimePickerBtn),Q.value&&(ke[1]=ke[1].concat(Q.value)),i(ke,r.order)}},Y=(T,Fe)=>(se(T),n(`update:${T}`,Fe));return e({openChildCmp:Ge}),(T,Fe)=>{var Ce;return T.disabled?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",Nk,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList($.value,(ke,nt)=>{var M,N,le;return o.openBlock(),o.createElementBlock("div",{key:nt,class:o.normalizeClass(V.value),"data-compact":X.value&&!T.enableSeconds,"data-collapsed":X.value&&T.enableSeconds},[ke.separator?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[C.value?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createTextVNode(":")],64))],64)):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createElementVNode("button",{ref_for:!0,ref:H=>Be(H,nt,0),type:"button",class:o.normalizeClass({dp__btn:!0,dp__inc_dec_button:!T.timePickerInline,dp__inc_dec_button_inline:T.timePickerInline,dp__tp_inline_btn_top:T.timePickerInline,dp__inc_dec_button_disabled:K.value(ke.type),"dp--hidden-el":C.value}),"data-test-id":`${ke.type}-time-inc-btn-${r.order}`,"aria-label":(M=o.unref(s))==null?void 0:M.incrementValue(ke.type),tabindex:"0",onKeydown:H=>o.unref(WA)(H,()=>Ue(ke.type,!0,{keyboard:!0}),!0),onClick:H=>o.unref(f).timeArrowHoldThreshold?void 0:Ue(ke.type,!0),onMousedown:H=>o.unref(f).timeArrowHoldThreshold?Ue(ke.type,!0):void 0,onMouseup:Z},[r.timePickerInline?(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[T.$slots["tp-inline-arrow-up"]?o.renderSlot(T.$slots,"tp-inline-arrow-up",{key:0}):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[Fe[2]||(Fe[2]=o.createElementVNode("span",{class:"dp__tp_inline_btn_bar dp__tp_btn_in_l"},null,-1)),Fe[3]||(Fe[3]=o.createElementVNode("span",{class:"dp__tp_inline_btn_bar dp__tp_btn_in_r"},null,-1))],64))],64)):(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[T.$slots["arrow-up"]?o.renderSlot(T.$slots,"arrow-up",{key:0}):o.createCommentVNode("",!0),T.$slots["arrow-up"]?o.createCommentVNode("",!0):(o.openBlock(),o.createBlock(o.unref(hd),{key:1}))],64))],42,Hk),o.createElementVNode("button",{ref_for:!0,ref:H=>Be(H,nt,1),type:"button","aria-label":`${te.value(ke.type).text}-${(N=o.unref(s))==null?void 0:N.openTpOverlay(ke.type)}`,class:o.normalizeClass({dp__time_display:!0,dp__time_display_block:!T.timePickerInline,dp__time_display_inline:T.timePickerInline,"dp--time-invalid":E.value(ke.type),"dp--time-overlay-btn":!E.value(ke.type),"dp--hidden-el":C.value}),disabled:Ae(ke.type),tabindex:"0","data-test-id":`${ke.type}-toggle-overlay-btn-${r.order}`,onKeydown:H=>o.unref(WA)(H,()=>se(ke.type),!0),onClick:H=>se(ke.type)},[T.$slots[ke.type]?o.renderSlot(T.$slots,ke.type,{key:0,text:te.value(ke.type).text,value:te.value(ke.type).value}):o.createCommentVNode("",!0),T.$slots[ke.type]?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createTextVNode(o.toDisplayString(te.value(ke.type).text),1)],64))],42,Rk),o.createElementVNode("button",{ref_for:!0,ref:H=>Be(H,nt,2),type:"button",class:o.normalizeClass({dp__btn:!0,dp__inc_dec_button:!T.timePickerInline,dp__inc_dec_button_inline:T.timePickerInline,dp__tp_inline_btn_bottom:T.timePickerInline,dp__inc_dec_button_disabled:de.value(ke.type),"dp--hidden-el":C.value}),"data-test-id":`${ke.type}-time-dec-btn-${r.order}`,"aria-label":(le=o.unref(s))==null?void 0:le.decrementValue(ke.type),tabindex:"0",onKeydown:H=>o.unref(WA)(H,()=>Ue(ke.type,!1,{keyboard:!0}),!0),onClick:H=>o.unref(f).timeArrowHoldThreshold?void 0:Ue(ke.type,!1),onMousedown:H=>o.unref(f).timeArrowHoldThreshold?Ue(ke.type,!1):void 0,onMouseup:Z},[r.timePickerInline?(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[T.$slots["tp-inline-arrow-down"]?o.renderSlot(T.$slots,"tp-inline-arrow-down",{key:0}):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[Fe[4]||(Fe[4]=o.createElementVNode("span",{class:"dp__tp_inline_btn_bar dp__tp_btn_in_l"},null,-1)),Fe[5]||(Fe[5]=o.createElementVNode("span",{class:"dp__tp_inline_btn_bar dp__tp_btn_in_r"},null,-1))],64))],64)):(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[T.$slots["arrow-down"]?o.renderSlot(T.$slots,"arrow-down",{key:0}):o.createCommentVNode("",!0),T.$slots["arrow-down"]?o.createCommentVNode("",!0):(o.openBlock(),o.createBlock(o.unref(pd),{key:1}))],64))],42,Pk)],64))],10,Lk)}),128)),T.is24?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",Vk,[T.$slots["am-pm-button"]?o.renderSlot(T.$slots,"am-pm-button",{key:0,toggle:ie,value:v.value}):o.createCommentVNode("",!0),T.$slots["am-pm-button"]?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("button",{key:1,ref_key:"amPmButton",ref:Q,type:"button",class:"dp__pm_am_button",role:"button","aria-label":(Ce=o.unref(s))==null?void 0:Ce.amPmButton,tabindex:"0","data-compact":X.value,onClick:ie,onKeydown:Fe[0]||(Fe[0]=ke=>o.unref(WA)(ke,()=>ie(),!0))},o.toDisplayString(v.value),41,Kk))])),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(re.value,(ke,nt)=>(o.openBlock(),o.createBlock(o.Transition,{key:nt,name:o.unref(g)(y[ke.type]),css:o.unref(B)},{default:o.withCtx(()=>{var M,N;return[y[ke.type]?(o.openBlock(),o.createBlock(jo,{key:0,items:j(ke.type),"is-last":T.autoApply&&!o.unref(f).keepActionRow,"esc-close":T.escClose,type:ke.type,"text-input":T.textInput,config:T.config,"arrow-navigation":T.arrowNavigation,"aria-labels":T.ariaLabels,"overlay-label":(N=(M=o.unref(s)).timeOverlay)==null?void 0:N.call(M,ke.type),onSelected:le=>Y(ke.type,le),onToggle:le=>se(ke.type),onResetFlow:Fe[1]||(Fe[1]=le=>T.$emit("reset-flow"))},o.createSlots({"button-icon":o.withCtx(()=>[T.$slots["clock-icon"]?o.renderSlot(T.$slots,"clock-icon",{key:0}):o.createCommentVNode("",!0),T.$slots["clock-icon"]?o.createCommentVNode("",!0):(o.openBlock(),o.createBlock(o.resolveDynamicComponent(T.timePickerInline?o.unref(Ra):o.unref(fd)),{key:1}))]),_:2},[T.$slots[`${ke.type}-overlay-value`]?{name:"item",fn:o.withCtx(({item:le})=>[o.renderSlot(T.$slots,`${ke.type}-overlay-value`,{text:le.text,value:le.value})]),key:"0"}:void 0,T.$slots[`${ke.type}-overlay-header`]?{name:"header",fn:o.withCtx(()=>[o.renderSlot(T.$slots,`${ke.type}-overlay-header`,{toggle:()=>se(ke.type)})]),key:"1"}:void 0]),1032,["items","is-last","esc-close","type","text-input","config","arrow-navigation","aria-labels","overlay-label","onSelected","onToggle"])):o.createCommentVNode("",!0)]}),_:2},1032,["name","css"]))),128))]))}}}),Gk=["data-dp-mobile"],Wk=["aria-label","tabindex"],Yk=["role","aria-label","tabindex"],zk=["aria-label"],Rg=o.defineComponent({compatConfig:{MODE:3},__name:"TimePicker",props:{hours:{type:[Number,Array],default:0},minutes:{type:[Number,Array],default:0},seconds:{type:[Number,Array],default:0},disabledTimesConfig:{type:Function,default:null},validateTime:{type:Function,default:()=>!1},...qn},emits:["update:hours","update:minutes","update:seconds","mount","reset-flow","overlay-opened","overlay-closed","am-pm-change"],setup(t,{expose:e,emit:A}){const n=A,r=t,{buildMatrix:i,setTimePicker:a}=li(),s=o.useSlots(),{defaultedTransitions:c,defaultedAriaLabels:d,defaultedTextInput:f,defaultedConfig:h,defaultedRange:m}=Pt(r),{transitionName:g,showTransition:B}=es(c),{hideNavigationButtons:y}=Cl(),v=o.ref(null),Q=o.ref(null),k=o.ref([]),F=o.ref(null),C=o.ref(!1);o.onMounted(()=>{n("mount"),!r.timePicker&&r.arrowNavigation?i([iA(v.value)],"time"):a(!0,r.timePicker)});const D=o.computed(()=>m.value.enabled&&r.modelAuto?mg(r.internalModelValue):!0),E=o.ref(!1),x=q=>({hours:Array.isArray(r.hours)?r.hours[q]:r.hours,minutes:Array.isArray(r.minutes)?r.minutes[q]:r.minutes,seconds:Array.isArray(r.seconds)?r.seconds[q]:r.seconds}),O=o.computed(()=>{const q=[];if(m.value.enabled)for(let me=0;me<2;me++)q.push(x(me));else q.push(x(0));return q}),S=(q,me=!1,j="")=>{me||n("reset-flow"),E.value=q,n(q?"overlay-opened":"overlay-closed",TA.time),r.arrowNavigation&&a(q),o.nextTick(()=>{j!==""&&k.value[0]&&k.value[0].openChildCmp(j)})},K=o.computed(()=>({dp__btn:!0,dp__button:!0,dp__button_bottom:r.autoApply&&!h.value.keepActionRow})),de=mn(s,"timePicker"),ce=(q,me,j)=>m.value.enabled?me===0?[q,O.value[1][j]]:[O.value[0][j],q]:q,ge=q=>{n("update:hours",q)},V=q=>{n("update:minutes",q)},X=q=>{n("update:seconds",q)},$=()=>{if(F.value&&!f.value.enabled&&!r.noOverlayFocus){const q=wg(F.value);q&&q.focus({preventScroll:!0})}},re=q=>{C.value=!1,n("overlay-closed",q)},te=q=>{C.value=!0,n("overlay-opened",q)};return e({toggleTimePicker:S}),(q,me)=>{var j;return o.openBlock(),o.createElementBlock("div",{class:"dp--tp-wrap","data-dp-mobile":q.isMobile},[!q.timePicker&&!q.timePickerInline?o.withDirectives((o.openBlock(),o.createElementBlock("button",{key:0,ref_key:"openTimePickerBtn",ref:v,type:"button",class:o.normalizeClass({...K.value,"dp--hidden-el":E.value}),"aria-label":(j=o.unref(d))==null?void 0:j.openTimePicker,tabindex:q.noOverlayFocus?void 0:0,"data-test-id":"open-time-picker-btn",onKeydown:me[0]||(me[0]=Ee=>o.unref(WA)(Ee,()=>S(!0))),onClick:me[1]||(me[1]=Ee=>S(!0))},[q.$slots["clock-icon"]?o.renderSlot(q.$slots,"clock-icon",{key:0}):o.createCommentVNode("",!0),q.$slots["clock-icon"]?o.createCommentVNode("",!0):(o.openBlock(),o.createBlock(o.unref(fd),{key:1}))],42,Wk)),[[o.vShow,!o.unref(y)(q.hideNavigation,"time")]]):o.createCommentVNode("",!0),o.createVNode(o.Transition,{name:o.unref(g)(E.value),css:o.unref(B)&&!q.timePickerInline},{default:o.withCtx(()=>{var Ee,R;return[E.value||q.timePicker||q.timePickerInline?(o.openBlock(),o.createElementBlock("div",{key:0,ref_key:"overlayRef",ref:F,role:q.timePickerInline?void 0:"dialog",class:o.normalizeClass({dp__overlay:!q.timePickerInline,"dp--overlay-absolute":!r.timePicker&&!q.timePickerInline,"dp--overlay-relative":r.timePicker}),style:o.normalizeStyle(q.timePicker?{height:`${o.unref(h).modeHeight}px`}:void 0),"aria-label":(Ee=o.unref(d))==null?void 0:Ee.timePicker,tabindex:q.timePickerInline?void 0:0},[o.createElementVNode("div",{class:o.normalizeClass(q.timePickerInline?"dp__time_picker_inline_container":"dp__overlay_container dp__container_flex dp__time_picker_overlay_container"),style:{display:"flex"}},[q.$slots["time-picker-overlay"]?o.renderSlot(q.$slots,"time-picker-overlay",{key:0,hours:t.hours,minutes:t.minutes,seconds:t.seconds,setHours:ge,setMinutes:V,setSeconds:X}):o.createCommentVNode("",!0),q.$slots["time-picker-overlay"]?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",{key:1,class:o.normalizeClass(q.timePickerInline?"dp__flex":"dp__overlay_row dp__flex_row")},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(O.value,(J,Ae)=>o.withDirectives((o.openBlock(),o.createBlock($k,o.mergeProps({key:Ae,ref_for:!0},{...q.$props,order:Ae,hours:J.hours,minutes:J.minutes,seconds:J.seconds,closeTimePickerBtn:Q.value,disabledTimesConfig:t.disabledTimesConfig,disabled:Ae===0?o.unref(m).fixedStart:o.unref(m).fixedEnd},{ref_for:!0,ref_key:"timeInputRefs",ref:k,"validate-time":(se,U)=>t.validateTime(se,ce(U,Ae,se)),"onUpdate:hours":se=>ge(ce(se,Ae,"hours")),"onUpdate:minutes":se=>V(ce(se,Ae,"minutes")),"onUpdate:seconds":se=>X(ce(se,Ae,"seconds")),onMounted:$,onOverlayClosed:re,onOverlayOpened:te,onAmPmChange:me[2]||(me[2]=se=>q.$emit("am-pm-change",se))}),o.createSlots({_:2},[o.renderList(o.unref(de),(se,U)=>({name:se,fn:o.withCtx(Z=>[o.renderSlot(q.$slots,se,o.mergeProps({ref_for:!0},Z))])}))]),1040,["validate-time","onUpdate:hours","onUpdate:minutes","onUpdate:seconds"])),[[o.vShow,Ae===0?!0:D.value]])),128))],2)),!q.timePicker&&!q.timePickerInline?o.withDirectives((o.openBlock(),o.createElementBlock("button",{key:2,ref_key:"closeTimePickerBtn",ref:Q,type:"button",class:o.normalizeClass({...K.value,"dp--hidden-el":C.value}),"aria-label":(R=o.unref(d))==null?void 0:R.closeTimePicker,tabindex:"0",onKeydown:me[3]||(me[3]=J=>o.unref(WA)(J,()=>S(!1))),onClick:me[4]||(me[4]=J=>S(!1))},[q.$slots["calendar-icon"]?o.renderSlot(q.$slots,"calendar-icon",{key:0}):o.createCommentVNode("",!0),q.$slots["calendar-icon"]?o.createCommentVNode("",!0):(o.openBlock(),o.createBlock(o.unref(Ra),{key:1}))],42,zk)),[[o.vShow,!o.unref(y)(q.hideNavigation,"time")]]):o.createCommentVNode("",!0)],2)],14,Yk)):o.createCommentVNode("",!0)]}),_:3},8,["name","css"])],8,Gk)}}}),Pg=(t,e,A,n)=>{const{defaultedRange:r}=Pt(t),i=(F,C)=>Array.isArray(e[F])?e[F][C]:e[F],a=F=>t.enableSeconds?Array.isArray(e.seconds)?e.seconds[F]:e.seconds:0,s=(F,C)=>F?C!==void 0?oi(F,i("hours",C),i("minutes",C),a(C)):oi(F,e.hours,e.minutes,a()):ug(ve(),a(C)),c=(F,C)=>{e[F]=C},d=o.computed(()=>t.modelAuto&&r.value.enabled?Array.isArray(A.value)?A.value.length>1:!1:r.value.enabled),f=(F,C)=>{const D=Object.fromEntries(Object.keys(e).map(E=>E===F?[E,C]:[E,e[E]].slice()));if(d.value&&!r.value.disableTimeRangeValidation){const E=O=>A.value?oi(A.value[O],D.hours[O],D.minutes[O],D.seconds[O]):null,x=O=>cg(A.value[O],0);return!(mt(E(0),E(1))&&(Xi(E(0),x(1))||Na(E(1),x(0))))}return!0},h=(F,C)=>{f(F,C)&&(c(F,C),n&&n())},m=F=>{h("hours",F)},g=F=>{h("minutes",F)},B=F=>{h("seconds",F)},y=(F,C,D,E)=>{C&&m(F),!C&&!D&&g(F),D&&B(F),A.value&&E(A.value)},v=F=>{if(F){const C=Array.isArray(F),D=C?[+F[0].hours,+F[1].hours]:+F.hours,E=C?[+F[0].minutes,+F[1].minutes]:+F.minutes,x=C?[+F[0].seconds,+F[1].seconds]:+F.seconds;c("hours",D),c("minutes",E),t.enableSeconds&&c("seconds",x)}},Q=(F,C)=>{const D={hours:Array.isArray(e.hours)?e.hours[F]:e.hours,disabledArr:[]};return(C||C===0)&&(D.hours=C),Array.isArray(t.disabledTimes)&&(D.disabledArr=r.value.enabled&&Array.isArray(t.disabledTimes[F])?t.disabledTimes[F]:t.disabledTimes),D},k=o.computed(()=>(F,C)=>{var D;if(Array.isArray(t.disabledTimes)){const{disabledArr:E,hours:x}=Q(F,C),O=E.filter(S=>+S.hours===x);return((D=O[0])==null?void 0:D.minutes)==="*"?{hours:[x],minutes:void 0,seconds:void 0}:{hours:[],minutes:(O==null?void 0:O.map(S=>+S.minutes))??[],seconds:(O==null?void 0:O.map(S=>S.seconds?+S.seconds:void 0))??[]}}return{hours:[],minutes:[],seconds:[]}});return{setTime:c,updateHours:m,updateMinutes:g,updateSeconds:B,getSetDateTime:s,updateTimeValues:y,getSecondsValue:a,assignStartTime:v,validateTime:f,disabledTimesConfig:k}},Jk=(t,e)=>{const A=()=>{t.isTextInputDate&&C()},{modelValue:n,time:r}=ts(t,e,A),{defaultedStartTime:i,defaultedRange:a,defaultedTz:s}=Pt(t),{updateTimeValues:c,getSetDateTime:d,setTime:f,assignStartTime:h,disabledTimesConfig:m,validateTime:g}=Pg(t,r,n,B);function B(){e("update-flow-step")}const y=E=>{const{hours:x,minutes:O,seconds:S}=E;return{hours:+x,minutes:+O,seconds:S?+S:0}},v=()=>{if(t.startTime){if(Array.isArray(t.startTime)){const x=y(t.startTime[0]),O=y(t.startTime[1]);return[It(ve(),x),It(ve(),O)]}const E=y(t.startTime);return It(ve(),E)}return a.value.enabled?[null,null]:null},Q=()=>{if(a.value.enabled){const[E,x]=v();n.value=[rn(d(E,0),s.value.timezone),rn(d(x,1),s.value.timezone)]}else n.value=rn(d(v()),s.value.timezone)},k=E=>Array.isArray(E)?[ji(ve(E[0])),ji(ve(E[1]))]:[ji(E??ve())],F=(E,x,O)=>{f("hours",E),f("minutes",x),f("seconds",t.enableSeconds?O:0)},C=()=>{const[E,x]=k(n.value);return a.value.enabled?F([E.hours,x.hours],[E.minutes,x.minutes],[E.seconds,x.seconds]):F(E.hours,E.minutes,E.seconds)};o.onMounted(()=>{if(!t.shadow)return h(i.value),n.value?C():Q()});const D=()=>{Array.isArray(n.value)?n.value=n.value.map((E,x)=>E&&d(E,x)):n.value=d(n.value),e("time-update")};return{modelValue:n,time:r,disabledTimesConfig:m,updateTime:(E,x=!0,O=!1)=>{c(E,x,O,D)},validateTime:g}},Xk=o.defineComponent({compatConfig:{MODE:3},__name:"TimePickerSolo",props:{...qn},emits:["update:internal-model-value","time-update","am-pm-change","mount","reset-flow","update-flow-step","overlay-toggle"],setup(t,{expose:e,emit:A}){const n=A,r=t,i=o.useSlots(),a=mn(i,"timePicker"),s=o.ref(null),{time:c,modelValue:d,disabledTimesConfig:f,updateTime:h,validateTime:m}=Jk(r,n);return o.onMounted(()=>{r.shadow||n("mount",null)}),e({getSidebarProps:()=>({modelValue:d,time:c,updateTime:h}),toggleTimePicker:(g,B=!1,y="")=>{var v;(v=s.value)==null||v.toggleTimePicker(g,B,y)}}),(g,B)=>(o.openBlock(),o.createBlock(wl,{"multi-calendars":0,stretch:"","is-mobile":g.isMobile},{default:o.withCtx(()=>[o.createVNode(Rg,o.mergeProps({ref_key:"tpRef",ref:s},g.$props,{hours:o.unref(c).hours,minutes:o.unref(c).minutes,seconds:o.unref(c).seconds,"internal-model-value":g.internalModelValue,"disabled-times-config":o.unref(f),"validate-time":o.unref(m),"onUpdate:hours":B[0]||(B[0]=y=>o.unref(h)(y)),"onUpdate:minutes":B[1]||(B[1]=y=>o.unref(h)(y,!1)),"onUpdate:seconds":B[2]||(B[2]=y=>o.unref(h)(y,!1,!0)),onAmPmChange:B[3]||(B[3]=y=>g.$emit("am-pm-change",y)),onResetFlow:B[4]||(B[4]=y=>g.$emit("reset-flow")),onOverlayClosed:B[5]||(B[5]=y=>g.$emit("overlay-toggle",{open:!1,overlay:y})),onOverlayOpened:B[6]||(B[6]=y=>g.$emit("overlay-toggle",{open:!0,overlay:y}))}),o.createSlots({_:2},[o.renderList(o.unref(a),(y,v)=>({name:y,fn:o.withCtx(Q=>[o.renderSlot(g.$slots,y,o.normalizeProps(o.guardReactiveProps(Q)))])}))]),1040,["hours","minutes","seconds","internal-model-value","disabled-times-config","validate-time"])]),_:3},8,["is-mobile"]))}}),qk={class:"dp--header-wrap"},jk={key:0,class:"dp__month_year_wrap"},Zk={key:0},e_={class:"dp__month_year_wrap"},t_=["data-dp-element","aria-label","data-test-id","onClick","onKeydown"],A_=o.defineComponent({compatConfig:{MODE:3},__name:"DpHeader",props:{month:{type:Number,default:0},year:{type:Number,default:0},instance:{type:Number,default:0},years:{type:Array,default:()=>[]},months:{type:Array,default:()=>[]},...qn},emits:["update-month-year","mount","reset-flow","overlay-closed","overlay-opened"],setup(t,{expose:e,emit:A}){const n=A,r=t,{defaultedTransitions:i,defaultedAriaLabels:a,defaultedMultiCalendars:s,defaultedFilters:c,defaultedConfig:d,defaultedHighlight:f,propDates:h,defaultedUI:m}=Pt(r),{transitionName:g,showTransition:B}=es(i),{buildMatrix:y}=li(),{handleMonthYearChange:v,isDisabled:Q,updateMonthYear:k}=bk(r,n),{showLeftIcon:F,showRightIcon:C}=Cl(),D=o.ref(!1),E=o.ref(!1),x=o.ref(!1),O=o.ref([null,null,null,null]);o.onMounted(()=>{n("mount")});const S=R=>({get:()=>r[R],set:J=>{const Ae=R===zn.month?zn.year:zn.month;n("update-month-year",{[R]:J,[Ae]:r[Ae]}),R===zn.month?re(!0):te(!0)}}),K=o.computed(S(zn.month)),de=o.computed(S(zn.year)),ce=o.computed(()=>R=>({month:r.month,year:r.year,items:R===zn.month?r.months:r.years,instance:r.instance,updateMonthYear:k,toggle:R===zn.month?re:te})),ge=o.computed(()=>r.months.find(J=>J.value===r.month)||{text:"",value:0}),V=o.computed(()=>Va(r.months,R=>{const J=r.month===R.value,Ae=Jo(R.value,Eg(r.year,h.value.minDate),Qg(r.year,h.value.maxDate))||c.value.months.includes(R.value),se=Sg(f.value,R.value,r.year);return{active:J,disabled:Ae,highlighted:se}})),X=o.computed(()=>Va(r.years,R=>{const J=r.year===R.value,Ae=Jo(R.value,Ka(h.value.minDate),Ka(h.value.maxDate))||c.value.years.includes(R.value),se=kd(f.value,R.value);return{active:J,disabled:Ae,highlighted:se}})),$=(R,J,Ae)=>{Ae!==void 0?R.value=Ae:R.value=!R.value,R.value?(x.value=!0,n("overlay-opened",J)):(x.value=!1,n("overlay-closed",J))},re=(R=!1,J)=>{q(R),$(D,TA.month,J)},te=(R=!1,J)=>{q(R),$(E,TA.year,J)},q=R=>{R||n("reset-flow")},me=(R,J)=>{r.arrowNavigation&&(O.value[J]=iA(R),y(O.value,"monthYear"))},j=o.computed(()=>{var R,J,Ae,se,U,Z;return[{type:zn.month,index:1,toggle:re,modelValue:K.value,updateModelValue:Ue=>K.value=Ue,text:ge.value.text,showSelectionGrid:D.value,items:V.value,ariaLabel:(R=a.value)==null?void 0:R.openMonthsOverlay,overlayLabel:((Ae=(J=a.value).monthPicker)==null?void 0:Ae.call(J,!0))??void 0},{type:zn.year,index:2,toggle:te,modelValue:de.value,updateModelValue:Ue=>de.value=Ue,text:yg(r.year,r.locale),showSelectionGrid:E.value,items:X.value,ariaLabel:(se=a.value)==null?void 0:se.openYearsOverlay,overlayLabel:((Z=(U=a.value).yearPicker)==null?void 0:Z.call(U,!0))??void 0}]}),Ee=o.computed(()=>r.disableYearSelect?[j.value[0]]:r.yearFirst?[...j.value].reverse():j.value);return e({toggleMonthPicker:re,toggleYearPicker:te,handleMonthYearChange:v}),(R,J)=>{var Ae,se,U,Z,Ue,At;return o.openBlock(),o.createElementBlock("div",qk,[R.$slots["month-year"]?(o.openBlock(),o.createElementBlock("div",jk,[o.renderSlot(R.$slots,"month-year",o.normalizeProps(o.guardReactiveProps({month:t.month,year:t.year,months:t.months,years:t.years,updateMonthYear:o.unref(k),handleMonthYearChange:o.unref(v),instance:t.instance,isDisabled:o.unref(Q)})))])):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[R.$slots["top-extra"]?(o.openBlock(),o.createElementBlock("div",Zk,[o.renderSlot(R.$slots,"top-extra",{value:R.internalModelValue})])):o.createCommentVNode("",!0),o.createElementVNode("div",e_,[o.unref(F)(o.unref(s),t.instance)&&!R.vertical?(o.openBlock(),o.createBlock(Zo,{key:0,"aria-label":(Ae=o.unref(a))==null?void 0:Ae.prevMonth,disabled:o.unref(Q)(!1),class:o.normalizeClass((se=o.unref(m))==null?void 0:se.navBtnPrev),"el-name":"action-prev",onActivate:J[0]||(J[0]=ie=>o.unref(v)(!1,!0)),onSetRef:J[1]||(J[1]=ie=>me(ie,0))},{default:o.withCtx(()=>[R.$slots["arrow-left"]?o.renderSlot(R.$slots,"arrow-left",{key:0}):o.createCommentVNode("",!0),R.$slots["arrow-left"]?o.createCommentVNode("",!0):(o.openBlock(),o.createBlock(o.unref(ud),{key:1}))]),_:3},8,["aria-label","disabled","class"])):o.createCommentVNode("",!0),o.createElementVNode("div",{class:o.normalizeClass(["dp__month_year_wrap",{dp__year_disable_select:R.disableYearSelect}])},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(Ee.value,(ie,Ge)=>(o.openBlock(),o.createElementBlock(o.Fragment,{key:ie.type},[o.createElementVNode("button",{ref_for:!0,ref:Be=>me(Be,Ge+1),type:"button","data-dp-element":`overlay-${ie.type}`,class:o.normalizeClass(["dp__btn dp__month_year_select",{"dp--hidden-el":x.value}]),"aria-label":`${ie.text}-${ie.ariaLabel}`,"data-test-id":`${ie.type}-toggle-overlay-${t.instance}`,onClick:ie.toggle,onKeydown:Be=>o.unref(WA)(Be,()=>ie.toggle(),!0)},[R.$slots[ie.type]?o.renderSlot(R.$slots,ie.type,{key:0,text:ie.text,value:r[ie.type]}):o.createCommentVNode("",!0),R.$slots[ie.type]?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createTextVNode(o.toDisplayString(ie.text),1)],64))],42,t_),o.createVNode(o.Transition,{name:o.unref(g)(ie.showSelectionGrid),css:o.unref(B)},{default:o.withCtx(()=>[ie.showSelectionGrid?(o.openBlock(),o.createBlock(jo,{key:0,items:ie.items,"arrow-navigation":R.arrowNavigation,"hide-navigation":R.hideNavigation,"is-last":R.autoApply&&!o.unref(d).keepActionRow,"skip-button-ref":!1,config:R.config,type:ie.type,"header-refs":[],"esc-close":R.escClose,"menu-wrap-ref":R.menuWrapRef,"text-input":R.textInput,"aria-labels":R.ariaLabels,"overlay-label":ie.overlayLabel,onSelected:ie.updateModelValue,onToggle:ie.toggle},o.createSlots({"button-icon":o.withCtx(()=>[R.$slots["calendar-icon"]?o.renderSlot(R.$slots,"calendar-icon",{key:0}):o.createCommentVNode("",!0),R.$slots["calendar-icon"]?o.createCommentVNode("",!0):(o.openBlock(),o.createBlock(o.unref(Ra),{key:1}))]),_:2},[R.$slots[`${ie.type}-overlay-value`]?{name:"item",fn:o.withCtx(({item:Be})=>[o.renderSlot(R.$slots,`${ie.type}-overlay-value`,{text:Be.text,value:Be.value})]),key:"0"}:void 0,R.$slots[`${ie.type}-overlay`]?{name:"overlay",fn:o.withCtx(()=>[o.renderSlot(R.$slots,`${ie.type}-overlay`,o.mergeProps({ref_for:!0},ce.value(ie.type)))]),key:"1"}:void 0,R.$slots[`${ie.type}-overlay-header`]?{name:"header",fn:o.withCtx(()=>[o.renderSlot(R.$slots,`${ie.type}-overlay-header`,{toggle:ie.toggle})]),key:"2"}:void 0]),1032,["items","arrow-navigation","hide-navigation","is-last","config","type","esc-close","menu-wrap-ref","text-input","aria-labels","overlay-label","onSelected","onToggle"])):o.createCommentVNode("",!0)]),_:2},1032,["name","css"])],64))),128))],2),o.unref(F)(o.unref(s),t.instance)&&R.vertical?(o.openBlock(),o.createBlock(Zo,{key:1,"aria-label":(U=o.unref(a))==null?void 0:U.prevMonth,"el-name":"action-prev",disabled:o.unref(Q)(!1),class:o.normalizeClass((Z=o.unref(m))==null?void 0:Z.navBtnPrev),onActivate:J[2]||(J[2]=ie=>o.unref(v)(!1,!0))},{default:o.withCtx(()=>[R.$slots["arrow-up"]?o.renderSlot(R.$slots,"arrow-up",{key:0}):o.createCommentVNode("",!0),R.$slots["arrow-up"]?o.createCommentVNode("",!0):(o.openBlock(),o.createBlock(o.unref(hd),{key:1}))]),_:3},8,["aria-label","disabled","class"])):o.createCommentVNode("",!0),o.unref(C)(o.unref(s),t.instance)?(o.openBlock(),o.createBlock(Zo,{key:2,ref:"rightIcon","el-name":"action-next",disabled:o.unref(Q)(!0),"aria-label":(Ue=o.unref(a))==null?void 0:Ue.nextMonth,class:o.normalizeClass((At=o.unref(m))==null?void 0:At.navBtnNext),onActivate:J[3]||(J[3]=ie=>o.unref(v)(!0,!0)),onSetRef:J[4]||(J[4]=ie=>me(ie,R.disableYearSelect?2:3))},{default:o.withCtx(()=>[R.$slots[R.vertical?"arrow-down":"arrow-right"]?o.renderSlot(R.$slots,R.vertical?"arrow-down":"arrow-right",{key:0}):o.createCommentVNode("",!0),R.$slots[R.vertical?"arrow-down":"arrow-right"]?o.createCommentVNode("",!0):(o.openBlock(),o.createBlock(o.resolveDynamicComponent(R.vertical?o.unref(pd):o.unref(dd)),{key:1}))]),_:3},8,["disabled","aria-label","class"])):o.createCommentVNode("",!0)])],64))])}}}),n_={class:"dp__calendar_header",role:"row"},r_={key:0,class:"dp__calendar_header_item",role:"gridcell"},i_=["aria-label"],a_={key:0,class:"dp__calendar_item dp__week_num",role:"gridcell"},o_={class:"dp__cell_inner"},s_=["id","aria-pressed","aria-disabled","aria-label","tabindex","data-test-id","onClick","onTouchend","onKeydown","onMouseenter","onMouseleave","onMousedown"],l_=o.defineComponent({compatConfig:{MODE:3},__name:"DpCalendar",props:{mappedDates:{type:Array,default:()=>[]},instance:{type:Number,default:0},month:{type:Number,default:0},year:{type:Number,default:0},...qn},emits:["select-date","set-hover-date","handle-scroll","mount","handle-swipe","handle-space","tooltip-open","tooltip-close"],setup(t,{expose:e,emit:A}){const n=A,r=t,{buildMultiLevelMatrix:i}=li(),{defaultedTransitions:a,defaultedConfig:s,defaultedAriaLabels:c,defaultedMultiCalendars:d,defaultedWeekNumbers:f,defaultedMultiDates:h,defaultedUI:m}=Pt(r),g=o.ref(null),B=o.ref({bottom:"",left:"",transform:""}),y=o.ref([]),v=o.ref(null),Q=o.ref(!0),k=o.ref(""),F=o.ref({startX:0,endX:0,startY:0,endY:0}),C=o.ref([]),D=o.ref({left:"50%"}),E=o.ref(!1),x=o.computed(()=>r.calendar?r.calendar(r.mappedDates):r.mappedDates),O=o.computed(()=>r.dayNames?Array.isArray(r.dayNames)?r.dayNames:r.dayNames(r.locale,+r.weekStart):VU(r.formatLocale,r.locale,+r.weekStart));o.onMounted(()=>{n("mount",{cmp:"calendar",refs:y}),s.value.noSwipe||v.value&&(v.value.addEventListener("touchstart",me,{passive:!1}),v.value.addEventListener("touchend",j,{passive:!1}),v.value.addEventListener("touchmove",Ee,{passive:!1})),r.monthChangeOnScroll&&v.value&&v.value.addEventListener("wheel",Ae,{passive:!1})}),o.onUnmounted(()=>{s.value.noSwipe||v.value&&(v.value.removeEventListener("touchstart",me),v.value.removeEventListener("touchend",j),v.value.removeEventListener("touchmove",Ee)),r.monthChangeOnScroll&&v.value&&v.value.removeEventListener("wheel",Ae)});const S=ie=>ie?r.vertical?"vNext":"next":r.vertical?"vPrevious":"previous",K=(ie,Ge)=>{if(r.transitions){const Be=mA(Tr(ve(),r.month,r.year));k.value=Zt(mA(Tr(ve(),ie,Ge)),Be)?a.value[S(!0)]:a.value[S(!1)],Q.value=!1,o.nextTick(()=>{Q.value=!0})}},de=o.computed(()=>({...m.value.calendar??{}})),ce=o.computed(()=>ie=>{const Ge=$U(ie);return{dp__marker_dot:Ge.type==="dot",dp__marker_line:Ge.type==="line"}}),ge=o.computed(()=>ie=>mt(ie,g.value)),V=o.computed(()=>({dp__calendar:!0,dp__calendar_next:d.value.count>0&&r.instance!==0})),X=o.computed(()=>ie=>r.hideOffsetDates?ie.current:!0),$=async(ie,Ge)=>{const{width:Be,height:Y}=ie.getBoundingClientRect();g.value=Ge.value;let T={left:`${Be/2}px`},Fe=-50;if(await o.nextTick(),C.value[0]){const{left:Ce,width:ke}=C.value[0].getBoundingClientRect();Ce<0&&(T={left:"0"},Fe=0,D.value.left=`${Be/2}px`),window.innerWidth<Ce+ke&&(T={right:"0"},Fe=0,D.value.left=`${ke-Be/2}px`)}B.value={bottom:`${Y}px`,...T,transform:`translateX(${Fe}%)`}},re=async(ie,Ge,Be)=>{var Y,T,Fe;const Ce=iA(y.value[Ge][Be]);Ce&&((Y=ie.marker)!=null&&Y.customPosition&&(Fe=(T=ie.marker)==null?void 0:T.tooltip)!=null&&Fe.length?B.value=ie.marker.customPosition(Ce):await $(Ce,ie),n("tooltip-open",ie.marker))},te=async(ie,Ge,Be)=>{var Y,T;if(E.value&&h.value.enabled&&h.value.dragSelect)return n("select-date",ie);if(n("set-hover-date",ie),(T=(Y=ie.marker)==null?void 0:Y.tooltip)!=null&&T.length){if(r.hideOffsetDates&&!ie.current)return;await re(ie,Ge,Be)}},q=ie=>{g.value&&(g.value=null,B.value=JSON.parse(JSON.stringify({bottom:"",left:"",transform:""})),n("tooltip-close",ie.marker))},me=ie=>{F.value.startX=ie.changedTouches[0].screenX,F.value.startY=ie.changedTouches[0].screenY},j=ie=>{F.value.endX=ie.changedTouches[0].screenX,F.value.endY=ie.changedTouches[0].screenY,R()},Ee=ie=>{r.vertical&&!r.inline&&ie.preventDefault()},R=()=>{const ie=r.vertical?"Y":"X";Math.abs(F.value[`start${ie}`]-F.value[`end${ie}`])>10&&n("handle-swipe",F.value[`start${ie}`]>F.value[`end${ie}`]?"right":"left")},J=(ie,Ge,Be)=>{ie&&(Array.isArray(y.value[Ge])?y.value[Ge][Be]=ie:y.value[Ge]=[ie]),r.arrowNavigation&&i(y.value,"calendar")},Ae=ie=>{r.monthChangeOnScroll&&(ie.preventDefault(),n("handle-scroll",ie))},se=ie=>f.value.type==="local"?id(ie.value,{weekStartsOn:+r.weekStart}):f.value.type==="iso"?nd(ie.value):typeof f.value.type=="function"?f.value.type(ie.value):"",U=ie=>{const Ge=ie[0];return f.value.hideOnOffsetDates?ie.some(Be=>Be.current)?se(Ge):"":se(Ge)},Z=(ie,Ge,Be=!0)=>{!Be&&JU()||(!h.value.enabled||s.value.allowPreventDefault)&&(ai(ie,s.value),n("select-date",Ge))},Ue=ie=>{ai(ie,s.value)},At=ie=>{h.value.enabled&&h.value.dragSelect?(E.value=!0,n("select-date",ie)):h.value.enabled&&n("select-date",ie)};return e({triggerTransition:K}),(ie,Ge)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(V.value)},[o.createElementVNode("div",{ref_key:"calendarWrapRef",ref:v,class:o.normalizeClass(de.value),role:"grid"},[o.createElementVNode("div",n_,[ie.weekNumbers?(o.openBlock(),o.createElementBlock("div",r_,o.toDisplayString(ie.weekNumName),1)):o.createCommentVNode("",!0),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(O.value,(Be,Y)=>{var T,Fe;return o.openBlock(),o.createElementBlock("div",{key:Y,class:"dp__calendar_header_item",role:"gridcell","data-test-id":"calendar-header","aria-label":(Fe=(T=o.unref(c))==null?void 0:T.weekDay)==null?void 0:Fe.call(T,Y)},[ie.$slots["calendar-header"]?o.renderSlot(ie.$slots,"calendar-header",{key:0,day:Be,index:Y}):o.createCommentVNode("",!0),ie.$slots["calendar-header"]?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createTextVNode(o.toDisplayString(Be),1)],64))],8,i_)}),128))]),Ge[2]||(Ge[2]=o.createElementVNode("div",{class:"dp__calendar_header_separator"},null,-1)),o.createVNode(o.Transition,{name:k.value,css:!!ie.transitions},{default:o.withCtx(()=>[Q.value?(o.openBlock(),o.createElementBlock("div",{key:0,class:"dp__calendar",role:"rowgroup",onMouseleave:Ge[1]||(Ge[1]=Be=>E.value=!1)},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(x.value,(Be,Y)=>(o.openBlock(),o.createElementBlock("div",{key:Y,class:"dp__calendar_row",role:"row"},[ie.weekNumbers?(o.openBlock(),o.createElementBlock("div",a_,[o.createElementVNode("div",o_,o.toDisplayString(U(Be.days)),1)])):o.createCommentVNode("",!0),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(Be.days,(T,Fe)=>{var Ce,ke,nt;return o.openBlock(),o.createElementBlock("div",{id:o.unref(_d)(T.value),ref_for:!0,ref:M=>J(M,Y,Fe),key:Fe+Y,role:"gridcell",class:"dp__calendar_item","aria-pressed":(T.classData.dp__active_date||T.classData.dp__range_start||T.classData.dp__range_start)??void 0,"aria-disabled":T.classData.dp__cell_disabled||void 0,"aria-label":(ke=(Ce=o.unref(c))==null?void 0:Ce.day)==null?void 0:ke.call(Ce,T),tabindex:!T.current&&ie.hideOffsetDates?void 0:0,"data-test-id":o.unref(_d)(T.value),onClick:o.withModifiers(M=>Z(M,T),["prevent"]),onTouchend:M=>Z(M,T,!1),onKeydown:M=>o.unref(WA)(M,()=>ie.$emit("select-date",T)),onMouseenter:M=>te(T,Y,Fe),onMouseleave:M=>q(T),onMousedown:M=>At(T),onMouseup:Ge[0]||(Ge[0]=M=>E.value=!1)},[o.createElementVNode("div",{class:o.normalizeClass(["dp__cell_inner",T.classData])},[ie.$slots.day&&X.value(T)?o.renderSlot(ie.$slots,"day",{key:0,day:+T.text,date:T.value}):o.createCommentVNode("",!0),ie.$slots.day?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createTextVNode(o.toDisplayString(T.text),1)],64)),T.marker&&X.value(T)?(o.openBlock(),o.createElementBlock(o.Fragment,{key:2},[ie.$slots.marker?o.renderSlot(ie.$slots,"marker",{key:0,marker:T.marker,day:+T.text,date:T.value}):(o.openBlock(),o.createElementBlock("div",{key:1,class:o.normalizeClass(ce.value(T.marker)),style:o.normalizeStyle(T.marker.color?{backgroundColor:T.marker.color}:{})},null,6))],64)):o.createCommentVNode("",!0),ge.value(T.value)?(o.openBlock(),o.createElementBlock("div",{key:3,ref_for:!0,ref_key:"activeTooltip",ref:C,class:"dp__marker_tooltip",style:o.normalizeStyle(B.value)},[(nt=T.marker)!=null&&nt.tooltip?(o.openBlock(),o.createElementBlock("div",{key:0,class:"dp__tooltip_content",onClick:Ue},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(T.marker.tooltip,(M,N)=>(o.openBlock(),o.createElementBlock("div",{key:N,class:"dp__tooltip_text"},[ie.$slots["marker-tooltip"]?o.renderSlot(ie.$slots,"marker-tooltip",{key:0,tooltip:M,day:T.value}):o.createCommentVNode("",!0),ie.$slots["marker-tooltip"]?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createElementVNode("div",{class:"dp__tooltip_mark",style:o.normalizeStyle(M.color?{backgroundColor:M.color}:{})},null,4),o.createElementVNode("div",null,o.toDisplayString(M.text),1)],64))]))),128)),o.createElementVNode("div",{class:"dp__arrow_bottom_tp",style:o.normalizeStyle(D.value)},null,4)])):o.createCommentVNode("",!0)],4)):o.createCommentVNode("",!0)],2)],40,s_)}),128))]))),128))],32)):o.createCommentVNode("",!0)]),_:3},8,["name","css"])],2)],2))}}),Vg=t=>Array.isArray(t),c_=(t,e,A,n)=>{const r=o.ref([]),i=o.ref(new Date),a=o.ref(),s=()=>j(t.isTextInputDate),{modelValue:c,calendars:d,time:f,today:h}=ts(t,e,s),{defaultedMultiCalendars:m,defaultedStartTime:g,defaultedRange:B,defaultedConfig:y,defaultedTz:v,propDates:Q,defaultedMultiDates:k}=Pt(t),{validateMonthYearInRange:F,isDisabled:C,isDateRangeAllowed:D,checkMinMaxRange:E}=ui(t),{updateTimeValues:x,getSetDateTime:O,setTime:S,assignStartTime:K,validateTime:de,disabledTimesConfig:ce}=Pg(t,f,c,n),ge=o.computed(()=>G=>d.value[G]?d.value[G].month:0),V=o.computed(()=>G=>d.value[G]?d.value[G].year:0),X=G=>!y.value.keepViewOnOffsetClick||G?!0:!a.value,$=(G,ye,Ne,et=!1)=>{var fe,_e;X(et)&&(d.value[G]||(d.value[G]={month:0,year:0}),d.value[G].month=Bg(ye)?(fe=d.value[G])==null?void 0:fe.month:ye,d.value[G].year=Bg(Ne)?(_e=d.value[G])==null?void 0:_e.year:Ne)},re=()=>{t.autoApply&&e("select-date")},te=()=>{g.value&&K(g.value)};o.onMounted(()=>{t.shadow||(c.value||(Ge(),te()),j(!0),t.focusStartDate&&t.startDate&&Ge())});const q=o.computed(()=>{var G;return(G=t.flow)!=null&&G.length&&!t.partialFlow?t.flowStep===t.flow.length:!0}),me=()=>{t.autoApply&&q.value&&e("auto-apply",t.partialFlow?t.flowStep!==t.flow.length:!1)},j=(G=!1)=>{if(c.value)return Array.isArray(c.value)?(r.value=c.value,Z(G)):J(c.value,G);if(m.value.count&&G&&!t.startDate)return R(ve(),G)},Ee=()=>Array.isArray(c.value)&&B.value.enabled?pt(c.value[0])===pt(c.value[1]??c.value[0]):!1,R=(G=new Date,ye=!1)=>{if((!m.value.count||!m.value.static||ye)&&$(0,pt(G),tt(G)),m.value.count&&(!c.value||Ee()||!m.value.solo)&&(!m.value.solo||ye))for(let Ne=1;Ne<m.value.count;Ne++){const et=It(ve(),{month:ge.value(Ne-1),year:V.value(Ne-1)}),fe=Nm(et,{months:1});d.value[Ne]={month:pt(fe),year:tt(fe)}}},J=(G,ye)=>{R(G),S("hours",Ir(G)),S("minutes",ii(G)),S("seconds",Oa(G)),m.value.count&&ye&&ie()},Ae=G=>{if(m.value.count){if(m.value.solo)return 0;const ye=pt(G[0]),Ne=pt(G[1]);return Math.abs(Ne-ye)<m.value.count?0:1}return 1},se=(G,ye)=>{G[1]&&B.value.showLastInRange?R(G[Ae(G)],ye):R(G[0],ye);const Ne=(et,fe)=>[et(G[0]),G[1]?et(G[1]):f[fe][1]];S("hours",Ne(Ir,"hours")),S("minutes",Ne(ii,"minutes")),S("seconds",Ne(Oa,"seconds"))},U=(G,ye)=>{if((B.value.enabled||t.weekPicker)&&!k.value.enabled)return se(G,ye);if(k.value.enabled&&ye){const Ne=G[G.length-1];return J(Ne,ye)}},Z=G=>{const ye=c.value;U(ye,G),m.value.count&&m.value.solo&&ie()},Ue=(G,ye)=>{const Ne=It(ve(),{month:ge.value(ye),year:V.value(ye)}),et=G<0?Wn(Ne,1):Ha(Ne,1);F(pt(et),tt(et),G<0,t.preventMinMaxNavigation)&&($(ye,pt(et),tt(et)),e("update-month-year",{instance:ye,month:pt(et),year:tt(et)}),m.value.count&&!m.value.solo&&At(ye),A())},At=G=>{for(let ye=G-1;ye>=0;ye--){const Ne=Ha(It(ve(),{month:ge.value(ye+1),year:V.value(ye+1)}),1);$(ye,pt(Ne),tt(Ne))}for(let ye=G+1;ye<=m.value.count-1;ye++){const Ne=Wn(It(ve(),{month:ge.value(ye-1),year:V.value(ye-1)}),1);$(ye,pt(Ne),tt(Ne))}},ie=()=>{if(Array.isArray(c.value)&&c.value.length===2){const G=ve(ve(c.value[1]?c.value[1]:Wn(c.value[0],1))),[ye,Ne]=[pt(c.value[0]),tt(c.value[0])],[et,fe]=[pt(c.value[1]),tt(c.value[1])];(ye!==et||ye===et&&Ne!==fe)&&m.value.solo&&$(1,pt(G),tt(G))}else c.value&&!Array.isArray(c.value)&&($(0,pt(c.value),tt(c.value)),R(ve()))},Ge=()=>{t.startDate&&($(0,pt(ve(t.startDate)),tt(ve(t.startDate))),m.value.count&&At(0))},Be=(G,ye)=>{if(t.monthChangeOnScroll){const Ne=new Date().getTime()-i.value.getTime(),et=Math.abs(G.deltaY);let fe=500;et>1&&(fe=100),et>100&&(fe=0),Ne>fe&&(i.value=new Date,Ue(t.monthChangeOnScroll!=="inverse"?-G.deltaY:G.deltaY,ye))}},Y=(G,ye,Ne=!1)=>{t.monthChangeOnArrows&&t.vertical===Ne&&T(G,ye)},T=(G,ye)=>{Ue(G==="right"?-1:1,ye)},Fe=G=>{if(Q.value.markers)return pl(G.value,Q.value.markers)},Ce=(G,ye)=>{switch(t.sixWeeks===!0?"append":t.sixWeeks){case"prepend":return[!0,!1];case"center":return[G==0,!0];case"fair":return[G==0||ye>G,!0];case"append":return[!1,!1];default:return[!1,!1]}},ke=(G,ye,Ne,et)=>{if(t.sixWeeks&&G.length<6){const fe=6-G.length,_e=(ye.getDay()+7-et)%7,Pe=6-(Ne.getDay()+7-et)%7,[VA,dA]=Ce(_e,Pe);for(let Nn=1;Nn<=fe;Nn++)if(dA?!!(Nn%2)==VA:VA){const un=G[0].days[0],Fr=nt(kn(un.value,-7),pt(ye));G.unshift({days:Fr})}else{const un=G[G.length-1],Fr=un.days[un.days.length-1],Bp=nt(kn(Fr.value,1),pt(ye));G.push({days:Bp})}}return G},nt=(G,ye)=>{const Ne=ve(G),et=[];for(let fe=0;fe<7;fe++){const _e=kn(Ne,fe),Pe=pt(_e)!==ye;et.push({text:t.hideOffsetDates&&Pe?"":_e.getDate(),value:_e,current:!Pe,classData:{}})}return et},M=(G,ye)=>{const Ne=[],et=new Date(ye,G),fe=new Date(ye,G+1,0),_e=t.weekStart,Pe=Yn(et,{weekStartsOn:_e}),VA=dA=>{const Nn=nt(dA,G);if(Ne.push({days:Nn}),!Ne[Ne.length-1].days.some(un=>mt(mA(un.value),mA(fe)))){const un=kn(dA,7);VA(un)}};return VA(Pe),ke(Ne,et,fe,_e)},N=G=>{const ye=oi(ve(G.value),f.hours,f.minutes,ee());e("date-update",ye),k.value.enabled?Md(ye,c,k.value.limit):c.value=ye,n(),o.nextTick().then(()=>{me()})},le=G=>B.value.noDisabledRange?Fg(r.value[0],G).some(ye=>C(ye)):!1,H=()=>{r.value=c.value?c.value.slice():[],r.value.length===2&&!(B.value.fixedStart||B.value.fixedEnd)&&(r.value=[])},we=(G,ye)=>{const Ne=[ve(G.value),kn(ve(G.value),+B.value.autoRange)];D(Ne)?(ye&&Me(G.value),r.value=Ne):e("invalid-date",G.value)},Me=G=>{const ye=pt(ve(G)),Ne=tt(ve(G));if($(0,ye,Ne),m.value.count>0)for(let et=1;et<m.value.count;et++){const fe=jU(It(ve(G),{year:V.value(et-1),month:ge.value(et-1)}));$(et,fe.month,fe.year)}},We=G=>{if(le(G.value)||!E(G.value,c.value,B.value.fixedStart?0:1))return e("invalid-date",G.value);r.value=Lg(ve(G.value),c,e,B)},ne=(G,ye)=>{if(H(),B.value.autoRange)return we(G,ye);if(B.value.fixedStart||B.value.fixedEnd)return We(G);r.value[0]?E(ve(G.value),c.value)&&!le(G.value)?zt(ve(G.value),ve(r.value[0]))?(r.value.unshift(ve(G.value)),e("range-end",r.value[0])):(r.value[1]=ve(G.value),e("range-end",r.value[1])):(t.autoApply&&e("auto-apply-invalid",G.value),e("invalid-date",G.value)):(r.value[0]=ve(G.value),e("range-start",r.value[0]))},ee=(G=!0)=>t.enableSeconds?Array.isArray(f.seconds)?G?f.seconds[0]:f.seconds[1]:f.seconds:0,$e=G=>{r.value[G]=oi(r.value[G],f.hours[G],f.minutes[G],ee(G!==1))},dt=()=>{var G,ye;r.value[0]&&r.value[1]&&+((G=r.value)==null?void 0:G[0])>+((ye=r.value)==null?void 0:ye[1])&&(r.value.reverse(),e("range-start",r.value[0]),e("range-end",r.value[1]))},vA=()=>{r.value.length&&(r.value[0]&&!r.value[1]?$e(0):($e(0),$e(1),n()),dt(),c.value=r.value.slice(),yl(r.value,e,t.autoApply,t.modelAuto))},en=(G,ye=!1)=>{if(C(G.value)||!G.current&&t.hideOffsetDates)return e("invalid-date",G.value);if(a.value=JSON.parse(JSON.stringify(G)),!B.value.enabled)return N(G);Vg(f.hours)&&Vg(f.minutes)&&!k.value.enabled&&(ne(G,ye),vA())},PA=(G,ye)=>{var Ne;$(G,ye.month,ye.year,!0),m.value.count&&!m.value.solo&&At(G),e("update-month-year",{instance:G,month:ye.month,year:ye.year}),A(m.value.solo?G:void 0);const et=(Ne=t.flow)!=null&&Ne.length?t.flow[t.flowStep]:void 0;!ye.fromNav&&(et===TA.month||et===TA.year)&&n()},oe=(G,ye)=>{Ng({value:G,modelValue:c,range:B.value.enabled,timezone:ye?void 0:v.value.timezone}),re(),t.multiCalendars&&o.nextTick().then(()=>j(!0))},xe=()=>{const G=md(ve(),v.value);!B.value.enabled&&!k.value.enabled?c.value=G:c.value&&Array.isArray(c.value)&&c.value[0]?k.value.enabled?c.value=[...c.value,G]:c.value=zt(G,c.value[0])?[G,c.value[0]]:[c.value[0],G]:c.value=[G],re()},Ke=()=>{if(Array.isArray(c.value))if(k.value.enabled){const G=ft();c.value[c.value.length-1]=O(G)}else c.value=c.value.map((G,ye)=>G&&O(G,ye));else c.value=O(c.value);e("time-update")},ft=()=>Array.isArray(c.value)&&c.value.length?c.value[c.value.length-1]:null;return{calendars:d,modelValue:c,month:ge,year:V,time:f,disabledTimesConfig:ce,today:h,validateTime:de,getCalendarDays:M,getMarker:Fe,handleScroll:Be,handleSwipe:T,handleArrow:Y,selectDate:en,updateMonthYear:PA,presetDate:oe,selectCurrentDate:xe,updateTime:(G,ye=!0,Ne=!1)=>{x(G,ye,Ne,Ke)},assignMonthAndYear:R,setStartTime:te}},u_={key:0},d_=o.defineComponent({__name:"DatePicker",props:{...qn},emits:["tooltip-open","tooltip-close","mount","update:internal-model-value","update-flow-step","reset-flow","auto-apply","focus-menu","select-date","range-start","range-end","invalid-fixed-range","time-update","am-pm-change","time-picker-open","time-picker-close","recalculate-position","update-month-year","auto-apply-invalid","date-update","invalid-date","overlay-toggle"],setup(t,{expose:e,emit:A}){const n=A,r=t,{calendars:i,month:a,year:s,modelValue:c,time:d,disabledTimesConfig:f,today:h,validateTime:m,getCalendarDays:g,getMarker:B,handleArrow:y,handleScroll:v,handleSwipe:Q,selectDate:k,updateMonthYear:F,presetDate:C,selectCurrentDate:D,updateTime:E,assignMonthAndYear:x,setStartTime:O}=c_(r,n,Ee,R),S=o.useSlots(),{setHoverDate:K,getDayClassData:de,clearHoverDate:ce}=__(c,r),{defaultedMultiCalendars:ge}=Pt(r),V=o.ref([]),X=o.ref([]),$=o.ref(null),re=mn(S,"calendar"),te=mn(S,"monthYear"),q=mn(S,"timePicker"),me=Be=>{r.shadow||n("mount",Be)};o.watch(i,()=>{r.shadow||setTimeout(()=>{n("recalculate-position")},0)},{deep:!0}),o.watch(ge,(Be,Y)=>{Be.count-Y.count>0&&x()},{deep:!0});const j=o.computed(()=>Be=>g(a.value(Be),s.value(Be)).map(Y=>({...Y,days:Y.days.map(T=>(T.marker=B(T),T.classData=de(T),T))})));function Ee(Be){var Y;Be||Be===0?(Y=X.value[Be])==null||Y.triggerTransition(a.value(Be),s.value(Be)):X.value.forEach((T,Fe)=>T.triggerTransition(a.value(Fe),s.value(Fe)))}function R(){n("update-flow-step")}const J=(Be,Y=!1)=>{k(Be,Y),r.spaceConfirm&&n("select-date")},Ae=(Be,Y,T=0)=>{var Fe;(Fe=V.value[T])==null||Fe.toggleMonthPicker(Be,Y)},se=(Be,Y,T=0)=>{var Fe;(Fe=V.value[T])==null||Fe.toggleYearPicker(Be,Y)},U=(Be,Y,T)=>{var Fe;(Fe=$.value)==null||Fe.toggleTimePicker(Be,Y,T)},Z=(Be,Y)=>{var T;if(!r.range){const Fe=c.value?c.value:h,Ce=Y?new Date(Y):Fe,ke=Be?Yn(Ce,{weekStartsOn:1}):Ym(Ce,{weekStartsOn:1});k({value:ke,current:pt(Ce)===a.value(0),text:"",classData:{}}),(T=document.getElementById(_d(ke)))==null||T.focus()}},Ue=Be=>{var Y;(Y=V.value[0])==null||Y.handleMonthYearChange(Be,!0)},At=Be=>{F(0,{month:a.value(0),year:s.value(0)+(Be?1:-1),fromNav:!0})},ie=(Be,Y)=>{Be===TA.time&&n(`time-picker-${Y?"open":"close"}`),n("overlay-toggle",{open:Y,overlay:Be})},Ge=Be=>{n("overlay-toggle",{open:!1,overlay:Be}),n("focus-menu")};return e({clearHoverDate:ce,presetDate:C,selectCurrentDate:D,toggleMonthPicker:Ae,toggleYearPicker:se,toggleTimePicker:U,handleArrow:y,updateMonthYear:F,getSidebarProps:()=>({modelValue:c,month:a,year:s,time:d,updateTime:E,updateMonthYear:F,selectDate:k,presetDate:C}),changeMonth:Ue,changeYear:At,selectWeekDate:Z,setStartTime:O}),(Be,Y)=>(o.openBlock(),o.createElementBlock(o.Fragment,null,[o.createVNode(wl,{"multi-calendars":o.unref(ge).count,collapse:Be.collapse,"is-mobile":Be.isMobile},{default:o.withCtx(({instance:T,index:Fe})=>[Be.disableMonthYearSelect?o.createCommentVNode("",!0):(o.openBlock(),o.createBlock(A_,o.mergeProps({key:0,ref:Ce=>{Ce&&(V.value[Fe]=Ce)},months:o.unref(pg)(Be.formatLocale,Be.locale,Be.monthNameFormat),years:o.unref(Bd)(Be.yearRange,Be.locale,Be.reverseYears),month:o.unref(a)(T),year:o.unref(s)(T),instance:T},Be.$props,{onMount:Y[0]||(Y[0]=Ce=>me(o.unref(qi).header)),onResetFlow:Y[1]||(Y[1]=Ce=>Be.$emit("reset-flow")),onUpdateMonthYear:Ce=>o.unref(F)(T,Ce),onOverlayClosed:Ge,onOverlayOpened:Y[2]||(Y[2]=Ce=>Be.$emit("overlay-toggle",{open:!0,overlay:Ce}))}),o.createSlots({_:2},[o.renderList(o.unref(te),(Ce,ke)=>({name:Ce,fn:o.withCtx(nt=>[o.renderSlot(Be.$slots,Ce,o.normalizeProps(o.guardReactiveProps(nt)))])}))]),1040,["months","years","month","year","instance","onUpdateMonthYear"])),o.createVNode(l_,o.mergeProps({ref:Ce=>{Ce&&(X.value[Fe]=Ce)},"mapped-dates":j.value(T),month:o.unref(a)(T),year:o.unref(s)(T),instance:T},Be.$props,{onSelectDate:Ce=>o.unref(k)(Ce,T!==1),onHandleSpace:Ce=>J(Ce,T!==1),onSetHoverDate:Y[3]||(Y[3]=Ce=>o.unref(K)(Ce)),onHandleScroll:Ce=>o.unref(v)(Ce,T),onHandleSwipe:Ce=>o.unref(Q)(Ce,T),onMount:Y[4]||(Y[4]=Ce=>me(o.unref(qi).calendar)),onResetFlow:Y[5]||(Y[5]=Ce=>Be.$emit("reset-flow")),onTooltipOpen:Y[6]||(Y[6]=Ce=>Be.$emit("tooltip-open",Ce)),onTooltipClose:Y[7]||(Y[7]=Ce=>Be.$emit("tooltip-close",Ce))}),o.createSlots({_:2},[o.renderList(o.unref(re),(Ce,ke)=>({name:Ce,fn:o.withCtx(nt=>[o.renderSlot(Be.$slots,Ce,o.normalizeProps(o.guardReactiveProps({...nt})))])}))]),1040,["mapped-dates","month","year","instance","onSelectDate","onHandleSpace","onHandleScroll","onHandleSwipe"])]),_:3},8,["multi-calendars","collapse","is-mobile"]),Be.enableTimePicker?(o.openBlock(),o.createElementBlock("div",u_,[Be.$slots["time-picker"]?o.renderSlot(Be.$slots,"time-picker",o.normalizeProps(o.mergeProps({key:0},{time:o.unref(d),updateTime:o.unref(E)}))):(o.openBlock(),o.createBlock(Rg,o.mergeProps({key:1,ref_key:"timePickerRef",ref:$},Be.$props,{hours:o.unref(d).hours,minutes:o.unref(d).minutes,seconds:o.unref(d).seconds,"internal-model-value":Be.internalModelValue,"disabled-times-config":o.unref(f),"validate-time":o.unref(m),onMount:Y[8]||(Y[8]=T=>me(o.unref(qi).timePicker)),"onUpdate:hours":Y[9]||(Y[9]=T=>o.unref(E)(T)),"onUpdate:minutes":Y[10]||(Y[10]=T=>o.unref(E)(T,!1)),"onUpdate:seconds":Y[11]||(Y[11]=T=>o.unref(E)(T,!1,!0)),onResetFlow:Y[12]||(Y[12]=T=>Be.$emit("reset-flow")),onOverlayClosed:Y[13]||(Y[13]=T=>ie(T,!1)),onOverlayOpened:Y[14]||(Y[14]=T=>ie(T,!0)),onAmPmChange:Y[15]||(Y[15]=T=>Be.$emit("am-pm-change",T))}),o.createSlots({_:2},[o.renderList(o.unref(q),(T,Fe)=>({name:T,fn:o.withCtx(Ce=>[o.renderSlot(Be.$slots,T,o.normalizeProps(o.guardReactiveProps(Ce)))])}))]),1040,["hours","minutes","seconds","internal-model-value","disabled-times-config","validate-time"]))])):o.createCommentVNode("",!0)],64))}}),f_=(t,e)=>{const A=o.ref(),{defaultedMultiCalendars:n,defaultedConfig:r,defaultedHighlight:i,defaultedRange:a,propDates:s,defaultedFilters:c,defaultedMultiDates:d}=Pt(t),{modelValue:f,year:h,month:m,calendars:g}=ts(t,e),{isDisabled:B}=ui(t),{selectYear:y,groupedYears:v,showYearPicker:Q,isDisabled:k,toggleYearPicker:F,handleYearSelect:C,handleYear:D}=Hg({modelValue:f,multiCalendars:n,range:a,highlight:i,calendars:g,propDates:s,month:m,year:h,filters:c,props:t,emit:e}),E=(X,$)=>[X,$].map(re=>cr(re,"MMMM",{locale:t.formatLocale})).join("-"),x=o.computed(()=>X=>f.value?Array.isArray(f.value)?f.value.some($=>og(X,$)):og(f.value,X):!1),O=X=>{if(a.value.enabled){if(Array.isArray(f.value)){const $=mt(X,f.value[0])||mt(X,f.value[1]);return Xo(f.value,A.value,X)&&!$}return!1}return!1},S=(X,$)=>X.quarter===Km($)&&X.year===tt($),K=X=>typeof i.value=="function"?i.value({quarter:Km(X),year:tt(X)}):!!i.value.quarters.find($=>S($,X)),de=o.computed(()=>X=>{const $=It(new Date,{year:h.value(X)});return $Q({start:Wo($),end:Wm($)}).map(re=>{const te=zi(re),q=zm(re),me=B(re),j=O(te),Ee=K(te);return{text:E(te,q),value:te,active:x.value(te),highlighted:Ee,disabled:me,isBetween:j}})}),ce=X=>{Md(X,f,d.value.limit),e("auto-apply",!0)},ge=X=>{f.value=Od(f,X,e),yl(f.value,e,t.autoApply,t.modelAuto)},V=X=>{f.value=X,e("auto-apply")};return{defaultedConfig:r,defaultedMultiCalendars:n,groupedYears:v,year:h,isDisabled:k,quarters:de,showYearPicker:Q,modelValue:f,setHoverDate:X=>{A.value=X},selectYear:y,selectQuarter:(X,$,re)=>{if(!re)return g.value[$].month=pt(zm(X)),d.value.enabled?ce(X):a.value.enabled?ge(X):V(X)},toggleYearPicker:F,handleYearSelect:C,handleYear:D}},h_={class:"dp--quarter-items"},p_=["data-test-id","disabled","onClick","onMouseover"],m_=o.defineComponent({compatConfig:{MODE:3},__name:"QuarterPicker",props:{...qn},emits:["update:internal-model-value","reset-flow","overlay-closed","auto-apply","range-start","range-end","overlay-toggle","update-month-year"],setup(t,{expose:e,emit:A}){const n=A,r=t,i=o.useSlots(),a=mn(i,"yearMode"),{defaultedMultiCalendars:s,defaultedConfig:c,groupedYears:d,year:f,isDisabled:h,quarters:m,modelValue:g,showYearPicker:B,setHoverDate:y,selectQuarter:v,toggleYearPicker:Q,handleYearSelect:k,handleYear:F}=f_(r,n);return e({getSidebarProps:()=>({modelValue:g,year:f,selectQuarter:v,handleYearSelect:k,handleYear:F})}),(C,D)=>(o.openBlock(),o.createBlock(wl,{"multi-calendars":o.unref(s).count,collapse:C.collapse,stretch:"","is-mobile":C.isMobile},{default:o.withCtx(({instance:E})=>[o.createElementVNode("div",{class:"dp-quarter-picker-wrap",style:o.normalizeStyle({minHeight:`${o.unref(c).modeHeight}px`})},[C.$slots["top-extra"]?o.renderSlot(C.$slots,"top-extra",{key:0,value:C.internalModelValue}):o.createCommentVNode("",!0),o.createElementVNode("div",null,[o.createVNode(Og,o.mergeProps(C.$props,{items:o.unref(d)(E),instance:E,"show-year-picker":o.unref(B)[E],year:o.unref(f)(E),"is-disabled":x=>o.unref(h)(E,x),onHandleYear:x=>o.unref(F)(E,x),onYearSelect:x=>o.unref(k)(x,E),onToggleYearPicker:x=>o.unref(Q)(E,x==null?void 0:x.flow,x==null?void 0:x.show)}),o.createSlots({_:2},[o.renderList(o.unref(a),(x,O)=>({name:x,fn:o.withCtx(S=>[o.renderSlot(C.$slots,x,o.normalizeProps(o.guardReactiveProps(S)))])}))]),1040,["items","instance","show-year-picker","year","is-disabled","onHandleYear","onYearSelect","onToggleYearPicker"])]),o.createElementVNode("div",h_,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(m)(E),(x,O)=>(o.openBlock(),o.createElementBlock("div",{key:O},[o.createElementVNode("button",{type:"button",class:o.normalizeClass(["dp--qr-btn",{"dp--qr-btn-active":x.active,"dp--qr-btn-between":x.isBetween,"dp--qr-btn-disabled":x.disabled,"dp--highlighted":x.highlighted}]),"data-test-id":x.value,disabled:x.disabled,onClick:S=>o.unref(v)(x.value,E,x.disabled),onMouseover:S=>o.unref(y)(x.value)},[C.$slots.quarter?o.renderSlot(C.$slots,"quarter",{key:0,value:x.value,text:x.text}):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createTextVNode(o.toDisplayString(x.text),1)],64))],42,p_)]))),128))])],4)]),_:3},8,["multi-calendars","collapse","is-mobile"]))}}),Kg=(t,e)=>{const A=o.ref(0);o.onMounted(()=>{n(),window.addEventListener("resize",n,{passive:!0})}),o.onUnmounted(()=>{window.removeEventListener("resize",n)});const n=()=>{A.value=window.document.documentElement.clientWidth};return{isMobile:o.computed(()=>A.value<=t.value.mobileBreakpoint&&!e?!0:void 0)}},g_=["id","tabindex","role","aria-label"],B_={key:0,class:"dp--menu-load-container"},w_={key:1,class:"dp--menu-header"},y_=["data-dp-mobile"],C_={key:0,class:"dp__sidebar_left"},b_=["data-dp-mobile"],v_=["data-test-id","data-dp-mobile","onClick","onKeydown"],E_={key:2,class:"dp__sidebar_right"},Q_={key:3,class:"dp__action_extra"},$g=o.defineComponent({compatConfig:{MODE:3},__name:"DatepickerMenu",props:{...Bl,shadow:{type:Boolean,default:!1},openOnTop:{type:Boolean,default:!1},internalModelValue:{type:[Date,Array],default:null},noOverlayFocus:{type:Boolean,default:!1},collapse:{type:Boolean,default:!1},getInputRect:{type:Function,default:()=>({})},isTextInputDate:{type:Boolean,default:!1}},emits:["close-picker","select-date","auto-apply","time-update","flow-step","update-month-year","invalid-select","update:internal-model-value","recalculate-position","invalid-fixed-range","tooltip-open","tooltip-close","time-picker-open","time-picker-close","am-pm-change","range-start","range-end","auto-apply-invalid","date-update","invalid-date","overlay-toggle","menu-blur"],setup(t,{expose:e,emit:A}){const n=A,r=t,i=o.ref(null),a=o.computed(()=>{const{openOnTop:H,...we}=r;return{...we,isMobile:v.value,flowStep:ge.value,menuWrapRef:i.value}}),{setMenuFocused:s,setShiftKey:c,control:d}=xg(),f=o.useSlots(),{defaultedTextInput:h,defaultedInline:m,defaultedConfig:g,defaultedUI:B,handleEventPropagation:y}=Pt(r),{isMobile:v}=Kg(g,r.shadow),Q=o.ref(null),k=o.ref(0),F=o.ref(null),C=o.ref(!1),D=o.ref(null),E=o.ref(!1),x=H=>{E.value=!0,g.value.allowPreventDefault&&H.preventDefault(),ai(H,g.value,!0)};o.onMounted(()=>{if(!r.shadow){C.value=!0,O(),window.addEventListener("resize",O);const H=iA(i);H&&!h.value.enabled&&!m.value.enabled&&(s(!0),me()),H&&(H.addEventListener("pointerdown",x),H.addEventListener("mousedown",x))}document.addEventListener("mousedown",le)}),o.onUnmounted(()=>{window.removeEventListener("resize",O),document.removeEventListener("mousedown",le);const H=iA(i);H&&(H.removeEventListener("pointerdown",x),H.removeEventListener("mousedown",x))});const O=()=>{const H=iA(F);H&&(k.value=H.getBoundingClientRect().width)},{arrowRight:S,arrowLeft:K,arrowDown:de,arrowUp:ce}=li(),{flowStep:ge,updateFlowStep:V,childMount:X,resetFlow:$,handleFlow:re}=I_(r,n,D),te=o.computed(()=>r.monthPicker?Dk:r.yearPicker?Ok:r.timePicker?Xk:r.quarterPicker?m_:d_),q=o.computed(()=>{var H;if(g.value.arrowLeft)return g.value.arrowLeft;const we=(H=i.value)==null?void 0:H.getBoundingClientRect(),Me=r.getInputRect();return(Me==null?void 0:Me.width)<(k==null?void 0:k.value)&&(Me==null?void 0:Me.left)<=((we==null?void 0:we.left)??0)?`${(Me==null?void 0:Me.width)/2}px`:(Me==null?void 0:Me.right)>=((we==null?void 0:we.right)??0)&&(Me==null?void 0:Me.width)<(k==null?void 0:k.value)?`${(k==null?void 0:k.value)-(Me==null?void 0:Me.width)/2}px`:"50%"}),me=()=>{const H=iA(i);H&&H.focus({preventScroll:!0})},j=o.computed(()=>{var H;return((H=D.value)==null?void 0:H.getSidebarProps())||{}}),Ee=()=>{r.openOnTop&&n("recalculate-position")},R=mn(f,"action"),J=o.computed(()=>r.monthPicker||r.yearPicker?mn(f,"monthYear"):r.timePicker?mn(f,"timePicker"):mn(f,"shared")),Ae=o.computed(()=>r.openOnTop?"dp__arrow_bottom":"dp__arrow_top"),se=o.computed(()=>({dp__menu_disabled:r.disabled,dp__menu_readonly:r.readonly,"dp-menu-loading":r.loading})),U=o.computed(()=>({dp__menu:!0,dp__menu_index:!m.value.enabled,dp__relative:m.value.enabled,...B.value.menu??{}})),Z=H=>{ai(H,g.value,!0)},Ue=H=>{r.escClose&&(n("close-picker"),y(H))},At=H=>{if(r.arrowNavigation){if(H===GA.up)return ce();if(H===GA.down)return de();if(H===GA.left)return K();if(H===GA.right)return S()}else H===GA.left||H===GA.up?T("handleArrow",GA.left,0,H===GA.up):T("handleArrow",GA.right,0,H===GA.down)},ie=H=>{c(H.shiftKey),!r.disableMonthYearSelect&&H.code===Nt.tab&&H.target.classList.contains("dp__menu")&&d.value.shiftKeyInMenu&&(H.preventDefault(),ai(H,g.value,!0),n("close-picker"))},Ge=()=>{me(),n("time-picker-close")},Be=H=>{var we,Me,We;(we=D.value)==null||we.toggleTimePicker(!1,!1),(Me=D.value)==null||Me.toggleMonthPicker(!1,!1,H),(We=D.value)==null||We.toggleYearPicker(!1,!1,H)},Y=(H,we=0)=>{var Me,We,ne;return H==="month"?(Me=D.value)==null?void 0:Me.toggleMonthPicker(!1,!0,we):H==="year"?(We=D.value)==null?void 0:We.toggleYearPicker(!1,!0,we):H==="time"?(ne=D.value)==null?void 0:ne.toggleTimePicker(!0,!1):Be(we)},T=(H,...we)=>{var Me,We;(Me=D.value)!=null&&Me[H]&&((We=D.value)==null||We[H](...we))},Fe=()=>{T("selectCurrentDate")},Ce=(H,we)=>{T("presetDate",o.toValue(H),we)},ke=()=>{T("clearHoverDate")},nt=(H,we)=>{T("updateMonthYear",H,we)},M=(H,we)=>{H.preventDefault(),At(we)},N=H=>{var we,Me,We;if(ie(H),H.key===Nt.home||H.key===Nt.end)return T("selectWeekDate",H.key===Nt.home,H.target.getAttribute("id"));switch((H.key===Nt.pageUp||H.key===Nt.pageDown)&&(H.shiftKey?(T("changeYear",H.key===Nt.pageUp),(we=yd(i.value,"overlay-year"))==null||we.focus()):(T("changeMonth",H.key===Nt.pageUp),(Me=yd(i.value,H.key===Nt.pageUp?"action-prev":"action-next"))==null||Me.focus()),H.target.getAttribute("id")&&((We=i.value)==null||We.focus({preventScroll:!0}))),H.key){case Nt.esc:return Ue(H);case Nt.arrowLeft:return M(H,GA.left);case Nt.arrowRight:return M(H,GA.right);case Nt.arrowUp:return M(H,GA.up);case Nt.arrowDown:return M(H,GA.down);default:return}},le=H=>{var we;m.value.enabled&&!m.value.input&&!((we=i.value)!=null&&we.contains(H.target))&&E.value&&(E.value=!1,n("menu-blur"))};return e({updateMonthYear:nt,switchView:Y,handleFlow:re,onValueCleared:()=>{var H,we;(we=(H=D.value)==null?void 0:H.setStartTime)==null||we.call(H)}}),(H,we)=>{var Me,We,ne;return o.openBlock(),o.createElementBlock("div",{id:H.uid?`dp-menu-${H.uid}`:void 0,ref_key:"dpMenuRef",ref:i,tabindex:o.unref(m).enabled?void 0:"0",role:o.unref(m).enabled?void 0:"dialog","aria-label":(Me=H.ariaLabels)==null?void 0:Me.menu,class:o.normalizeClass(U.value),style:o.normalizeStyle({"--dp-arrow-left":q.value}),onMouseleave:ke,onClick:Z,onKeydown:N},[(H.disabled||H.readonly)&&o.unref(m).enabled||H.loading?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(se.value)},[H.loading?(o.openBlock(),o.createElementBlock("div",B_,we[19]||(we[19]=[o.createElementVNode("span",{class:"dp--menu-loader"},null,-1)]))):o.createCommentVNode("",!0)],2)):o.createCommentVNode("",!0),H.$slots["menu-header"]?(o.openBlock(),o.createElementBlock("div",w_,[o.renderSlot(H.$slots,"menu-header")])):o.createCommentVNode("",!0),!o.unref(m).enabled&&!H.teleportCenter?(o.openBlock(),o.createElementBlock("div",{key:2,class:o.normalizeClass(Ae.value)},null,2)):o.createCommentVNode("",!0),o.createElementVNode("div",{ref_key:"innerMenuRef",ref:F,class:o.normalizeClass({dp__menu_content_wrapper:((We=H.presetDates)==null?void 0:We.length)||!!H.$slots["left-sidebar"]||!!H.$slots["right-sidebar"],"dp--menu-content-wrapper-collapsed":t.collapse&&(((ne=H.presetDates)==null?void 0:ne.length)||!!H.$slots["left-sidebar"]||!!H.$slots["right-sidebar"])}),"data-dp-mobile":o.unref(v),style:o.normalizeStyle({"--dp-menu-width":`${k.value}px`})},[H.$slots["left-sidebar"]?(o.openBlock(),o.createElementBlock("div",C_,[o.renderSlot(H.$slots,"left-sidebar",o.normalizeProps(o.guardReactiveProps(j.value)))])):o.createCommentVNode("",!0),H.presetDates.length?(o.openBlock(),o.createElementBlock("div",{key:1,class:o.normalizeClass({"dp--preset-dates-collapsed":t.collapse,"dp--preset-dates":!0}),"data-dp-mobile":o.unref(v)},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(H.presetDates,(ee,$e)=>(o.openBlock(),o.createElementBlock(o.Fragment,{key:$e},[ee.slot?o.renderSlot(H.$slots,ee.slot,{key:0,presetDate:Ce,label:ee.label,value:ee.value}):(o.openBlock(),o.createElementBlock("button",{key:1,type:"button",style:o.normalizeStyle(ee.style||{}),class:o.normalizeClass(["dp__btn dp--preset-range",{"dp--preset-range-collapsed":t.collapse}]),"data-test-id":ee.testId??void 0,"data-dp-mobile":o.unref(v),onClick:o.withModifiers(dt=>Ce(ee.value,ee.noTz),["prevent"]),onKeydown:dt=>o.unref(WA)(dt,()=>Ce(ee.value,ee.noTz),!0)},o.toDisplayString(ee.label),47,v_))],64))),128))],10,b_)):o.createCommentVNode("",!0),o.createElementVNode("div",{ref_key:"calendarWrapperRef",ref:Q,class:"dp__instance_calendar",role:"document"},[(o.openBlock(),o.createBlock(o.resolveDynamicComponent(te.value),o.mergeProps({ref_key:"dynCmpRef",ref:D},a.value,{"flow-step":o.unref(ge),onMount:o.unref(X),onUpdateFlowStep:o.unref(V),onResetFlow:o.unref($),onFocusMenu:me,onSelectDate:we[0]||(we[0]=ee=>H.$emit("select-date")),onDateUpdate:we[1]||(we[1]=ee=>H.$emit("date-update",ee)),onTooltipOpen:we[2]||(we[2]=ee=>H.$emit("tooltip-open",ee)),onTooltipClose:we[3]||(we[3]=ee=>H.$emit("tooltip-close",ee)),onAutoApply:we[4]||(we[4]=ee=>H.$emit("auto-apply",ee)),onRangeStart:we[5]||(we[5]=ee=>H.$emit("range-start",ee)),onRangeEnd:we[6]||(we[6]=ee=>H.$emit("range-end",ee)),onInvalidFixedRange:we[7]||(we[7]=ee=>H.$emit("invalid-fixed-range",ee)),onTimeUpdate:we[8]||(we[8]=ee=>H.$emit("time-update")),onAmPmChange:we[9]||(we[9]=ee=>H.$emit("am-pm-change",ee)),onTimePickerOpen:we[10]||(we[10]=ee=>H.$emit("time-picker-open",ee)),onTimePickerClose:Ge,onRecalculatePosition:Ee,onUpdateMonthYear:we[11]||(we[11]=ee=>H.$emit("update-month-year",ee)),onAutoApplyInvalid:we[12]||(we[12]=ee=>H.$emit("auto-apply-invalid",ee)),onInvalidDate:we[13]||(we[13]=ee=>H.$emit("invalid-date",ee)),onOverlayToggle:we[14]||(we[14]=ee=>H.$emit("overlay-toggle",ee)),"onUpdate:internalModelValue":we[15]||(we[15]=ee=>H.$emit("update:internal-model-value",ee))}),o.createSlots({_:2},[o.renderList(J.value,(ee,$e)=>({name:ee,fn:o.withCtx(dt=>[o.renderSlot(H.$slots,ee,o.normalizeProps(o.guardReactiveProps({...dt})))])}))]),1040,["flow-step","onMount","onUpdateFlowStep","onResetFlow"]))],512),H.$slots["right-sidebar"]?(o.openBlock(),o.createElementBlock("div",E_,[o.renderSlot(H.$slots,"right-sidebar",o.normalizeProps(o.guardReactiveProps(j.value)))])):o.createCommentVNode("",!0),H.$slots["action-extra"]?(o.openBlock(),o.createElementBlock("div",Q_,[H.$slots["action-extra"]?o.renderSlot(H.$slots,"action-extra",{key:0,selectCurrentDate:Fe}):o.createCommentVNode("",!0)])):o.createCommentVNode("",!0)],14,y_),!H.autoApply||o.unref(g).keepActionRow?(o.openBlock(),o.createBlock(Qk,o.mergeProps({key:3,"menu-mount":C.value},a.value,{"calendar-width":k.value,onClosePicker:we[16]||(we[16]=ee=>H.$emit("close-picker")),onSelectDate:we[17]||(we[17]=ee=>H.$emit("select-date")),onInvalidSelect:we[18]||(we[18]=ee=>H.$emit("invalid-select")),onSelectNow:Fe}),o.createSlots({_:2},[o.renderList(o.unref(R),(ee,$e)=>({name:ee,fn:o.withCtx(dt=>[o.renderSlot(H.$slots,ee,o.normalizeProps(o.guardReactiveProps({...dt})))])}))]),1040,["menu-mount","calendar-width"])):o.createCommentVNode("",!0)],46,g_)}}});var Ga=(t=>(t.center="center",t.left="left",t.right="right",t))(Ga||{});const F_=({menuRef:t,menuRefInner:e,inputRef:A,pickerWrapperRef:n,inline:r,emit:i,props:a,slots:s})=>{const{defaultedConfig:c}=Pt(a),d=o.ref({}),f=o.ref(!1),h=o.ref({top:"0",left:"0"}),m=o.ref(!1),g=o.toRef(a,"teleportCenter");o.watch(g,()=>{h.value=JSON.parse(JSON.stringify({})),D()});const B=$=>{if(a.teleport){const re=$.getBoundingClientRect();return{left:re.left+window.scrollX,top:re.top+window.scrollY}}return{top:0,left:0}},y=($,re)=>{h.value.left=`${$+re-d.value.width}px`},v=$=>{h.value.left=`${$}px`},Q=($,re)=>{a.position===Ga.left&&v($),a.position===Ga.right&&y($,re),a.position===Ga.center&&(h.value.left=`${$+re/2-d.value.width/2}px`)},k=$=>{const{width:re,height:te}=$.getBoundingClientRect(),{top:q,left:me}=B($);return{top:+q,left:+me,width:re,height:te}},F=()=>{h.value.left="50%",h.value.top="50%",h.value.transform="translate(-50%, -50%)",h.value.position="fixed",delete h.value.opacity},C=()=>{const $=iA(A);h.value=a.altPosition($)},D=($=!0)=>{var re;if(!r.value.enabled){if(g.value)return F();if(a.altPosition!==null)return C();if($){const te=a.teleport?(re=e.value)==null?void 0:re.$el:t.value;te&&(d.value=te.getBoundingClientRect()),i("recalculate-position")}return ce()}},E=({inputEl:$,left:re,width:te})=>{window.screen.width>768&&!f.value&&Q(re,te),S($)},x=$=>{const{top:re,left:te,height:q,width:me}=k($);h.value.top=`${q+re+ +a.offset}px`,m.value=!1,f.value||(h.value.left=`${te+me/2-d.value.width/2}px`),E({inputEl:$,left:te,width:me})},O=$=>{const{top:re,left:te,width:q}=k($);h.value.top=`${re-+a.offset-d.value.height}px`,m.value=!0,E({inputEl:$,left:te,width:q})},S=$=>{if(a.autoPosition){const{left:re,width:te}=k($),{left:q,right:me}=d.value;if(!f.value){if(Math.abs(q)!==Math.abs(me)){if(q<=0)return f.value=!0,v(re);if(me>=document.documentElement.clientWidth)return f.value=!0,y(re,te)}return Q(re,te)}}},K=()=>{const $=iA(A);if($){if(a.autoPosition===Jn.top)return Jn.top;if(a.autoPosition===Jn.bottom)return Jn.bottom;const{height:re}=d.value,{top:te,height:q}=$.getBoundingClientRect(),me=window.innerHeight-te-q,j=te;return re<=me?Jn.bottom:re>me&&re<=j?Jn.top:me>=j?Jn.bottom:Jn.top}return Jn.bottom},de=$=>K()===Jn.bottom?x($):O($),ce=()=>{const $=iA(A);if($)return a.autoPosition?de($):x($)},ge=function($){if($){const re=$.scrollHeight>$.clientHeight,te=window.getComputedStyle($).overflowY.indexOf("hidden")!==-1;return re&&!te}return!0},V=function($){return!$||$===document.body||$.nodeType===Node.DOCUMENT_FRAGMENT_NODE?window:ge($)?$:V($.assignedSlot&&c.value.shadowDom?$.assignedSlot.parentNode:$.parentNode)},X=$=>{if($)switch(a.position){case Ga.left:return{left:0,transform:"translateX(0)"};case Ga.right:return{left:`${$.width}px`,transform:"translateX(-100%)"};default:return{left:`${$.width/2}px`,transform:"translateX(-50%)"}}return{}};return{openOnTop:m,menuStyle:h,xCorrect:f,setMenuPosition:D,getScrollableParent:V,shadowRender:($,re,te)=>{var q,me,j;const Ee=document.createElement("div"),R=(q=iA(A))==null?void 0:q.getBoundingClientRect();Ee.setAttribute("id","dp--temp-container");const J=(me=n.value)!=null&&me.clientWidth?n.value:document.body;J.append(Ee);const Ae=X(R),se=c.value.shadowDom?Object.keys(s).filter(Z=>["right-sidebar","left-sidebar","top-extra","action-extra"].includes(Z)):Object.keys(s),U=o.h(re,{...te,shadow:!0,style:{opacity:0,position:"absolute",...Ae}},Object.fromEntries(se.map(Z=>[Z,s[Z]])));$!=null&&(U.appContext=$.appContext),o.render(U,Ee),d.value=(j=U.el)==null?void 0:j.getBoundingClientRect(),o.render(null,Ee),J.removeChild(Ee)}}},ci=[{name:"clock-icon",use:["time","calendar","shared"]},{name:"arrow-left",use:["month-year","calendar","shared","year-mode"]},{name:"arrow-right",use:["month-year","calendar","shared","year-mode"]},{name:"arrow-up",use:["time","calendar","month-year","shared"]},{name:"arrow-down",use:["time","calendar","month-year","shared"]},{name:"calendar-icon",use:["month-year","time","calendar","shared","year-mode"]},{name:"day",use:["calendar","shared"]},{name:"month-overlay-value",use:["calendar","month-year","shared"]},{name:"year-overlay-value",use:["calendar","month-year","shared","year-mode"]},{name:"year-overlay",use:["month-year","shared"]},{name:"month-overlay",use:["month-year","shared"]},{name:"month-overlay-header",use:["month-year","shared"]},{name:"year-overlay-header",use:["month-year","shared"]},{name:"hours-overlay-value",use:["calendar","time","shared"]},{name:"hours-overlay-header",use:["calendar","time","shared"]},{name:"minutes-overlay-value",use:["calendar","time","shared"]},{name:"minutes-overlay-header",use:["calendar","time","shared"]},{name:"seconds-overlay-value",use:["calendar","time","shared"]},{name:"seconds-overlay-header",use:["calendar","time","shared"]},{name:"hours",use:["calendar","time","shared"]},{name:"minutes",use:["calendar","time","shared"]},{name:"month",use:["calendar","month-year","shared"]},{name:"year",use:["calendar","month-year","shared","year-mode"]},{name:"action-buttons",use:["action"]},{name:"action-preview",use:["action"]},{name:"calendar-header",use:["calendar","shared"]},{name:"marker-tooltip",use:["calendar","shared"]},{name:"action-extra",use:["menu"]},{name:"time-picker-overlay",use:["calendar","time","shared"]},{name:"am-pm-button",use:["calendar","time","shared"]},{name:"left-sidebar",use:["menu"]},{name:"right-sidebar",use:["menu"]},{name:"month-year",use:["month-year","shared"]},{name:"time-picker",use:["menu","shared"]},{name:"action-row",use:["action"]},{name:"marker",use:["calendar","shared"]},{name:"quarter",use:["shared"]},{name:"top-extra",use:["shared","month-year"]},{name:"tp-inline-arrow-up",use:["shared","time"]},{name:"tp-inline-arrow-down",use:["shared","time"]},{name:"menu-header",use:["menu"]}],U_=[{name:"trigger"},{name:"input-icon"},{name:"clear-icon"},{name:"dp-input"}],k_={all:()=>ci,monthYear:()=>ci.filter(t=>t.use.includes("month-year")),input:()=>U_,timePicker:()=>ci.filter(t=>t.use.includes("time")),action:()=>ci.filter(t=>t.use.includes("action")),calendar:()=>ci.filter(t=>t.use.includes("calendar")),menu:()=>ci.filter(t=>t.use.includes("menu")),shared:()=>ci.filter(t=>t.use.includes("shared")),yearMode:()=>ci.filter(t=>t.use.includes("year-mode"))},mn=(t,e,A)=>{const n=[];return k_[e]().forEach(r=>{t[r.name]&&n.push(r.name)}),A!=null&&A.length&&A.forEach(r=>{r.slot&&n.push(r.slot)}),n},es=t=>{const e=o.computed(()=>n=>t.value?n?t.value.open:t.value.close:""),A=o.computed(()=>n=>t.value?n?t.value.menuAppearTop:t.value.menuAppearBottom:"");return{transitionName:e,showTransition:!!t.value,menuTransition:A}},ts=(t,e,A)=>{const{defaultedRange:n,defaultedTz:r}=Pt(t),i=ve(rn(ve(),r.value.timezone)),a=o.ref([{month:pt(i),year:tt(i)}]),s=m=>{const g={hours:Ir(i),minutes:ii(i),seconds:0};return n.value.enabled?[g[m],g[m]]:g[m]},c=o.reactive({hours:s("hours"),minutes:s("minutes"),seconds:s("seconds")});o.watch(n,(m,g)=>{m.enabled!==g.enabled&&(c.hours=s("hours"),c.minutes=s("minutes"),c.seconds=s("seconds"))},{deep:!0});const d=o.computed({get:()=>t.internalModelValue,set:m=>{!t.readonly&&!t.disabled&&e("update:internal-model-value",m)}}),f=o.computed(()=>m=>a.value[m]?a.value[m].month:0),h=o.computed(()=>m=>a.value[m]?a.value[m].year:0);return o.watch(d,(m,g)=>{A&&JSON.stringify(m??{})!==JSON.stringify(g??{})&&A()},{deep:!0}),{calendars:a,time:c,modelValue:d,month:f,year:h,today:i}},__=(t,e)=>{const{defaultedMultiCalendars:A,defaultedMultiDates:n,defaultedUI:r,defaultedHighlight:i,defaultedTz:a,propDates:s,defaultedRange:c}=Pt(e),{isDisabled:d}=ui(e),f=o.ref(null),h=o.ref(rn(new Date,a.value.timezone)),m=U=>{!U.current&&e.hideOffsetDates||(f.value=U.value)},g=()=>{f.value=null},B=U=>Array.isArray(t.value)&&c.value.enabled&&t.value[0]&&f.value?U?Zt(f.value,t.value[0]):zt(f.value,t.value[0]):!0,y=(U,Z)=>{const Ue=()=>t.value?Z?t.value[0]||null:t.value[1]:null,At=t.value&&Array.isArray(t.value)?Ue():null;return mt(ve(U.value),At)},v=U=>{const Z=Array.isArray(t.value)?t.value[0]:null;return U?!zt(f.value??null,Z):!0},Q=(U,Z=!0)=>(c.value.enabled||e.weekPicker)&&Array.isArray(t.value)&&t.value.length===2?e.hideOffsetDates&&!U.current?!1:mt(ve(U.value),t.value[Z?0:1]):c.value.enabled?y(U,Z)&&v(Z)||mt(U.value,Array.isArray(t.value)?t.value[0]:null)&&B(Z):!1,k=(U,Z)=>{if(Array.isArray(t.value)&&t.value[0]&&t.value.length===1){const Ue=mt(U.value,f.value);return Z?Zt(t.value[0],U.value)&&Ue:zt(t.value[0],U.value)&&Ue}return!1},F=U=>!t.value||e.hideOffsetDates&&!U.current?!1:c.value.enabled?e.modelAuto&&Array.isArray(t.value)?mt(U.value,t.value[0]?t.value[0]:h.value):!1:n.value.enabled&&Array.isArray(t.value)?t.value.some(Z=>mt(Z,U.value)):mt(U.value,t.value?t.value:h.value),C=U=>{if(c.value.autoRange||e.weekPicker){if(f.value){if(e.hideOffsetDates&&!U.current)return!1;const Z=kn(f.value,+c.value.autoRange),Ue=Sr(ve(f.value),e.weekStart);return e.weekPicker?mt(Ue[1],ve(U.value)):mt(Z,ve(U.value))}return!1}return!1},D=U=>{if(c.value.autoRange||e.weekPicker){if(f.value){const Z=kn(f.value,+c.value.autoRange);if(e.hideOffsetDates&&!U.current)return!1;const Ue=Sr(ve(f.value),e.weekStart);return e.weekPicker?Zt(U.value,Ue[0])&&zt(U.value,Ue[1]):Zt(U.value,f.value)&&zt(U.value,Z)}return!1}return!1},E=U=>{if(c.value.autoRange||e.weekPicker){if(f.value){if(e.hideOffsetDates&&!U.current)return!1;const Z=Sr(ve(f.value),e.weekStart);return e.weekPicker?mt(Z[0],U.value):mt(f.value,U.value)}return!1}return!1},x=U=>Xo(t.value,f.value,U.value),O=()=>e.modelAuto&&Array.isArray(e.internalModelValue)?!!e.internalModelValue[0]:!1,S=()=>e.modelAuto?mg(e.internalModelValue):!0,K=U=>{if(e.weekPicker)return!1;const Z=c.value.enabled?!Q(U)&&!Q(U,!1):!0;return!d(U.value)&&!F(U)&&!(!U.current&&e.hideOffsetDates)&&Z},de=U=>c.value.enabled?e.modelAuto?O()&&F(U):!1:F(U),ce=U=>i.value?zU(U.value,s.value.highlight):!1,ge=U=>{const Z=d(U.value);return Z&&(typeof i.value=="function"?!i.value(U.value,Z):!i.value.options.highlightDisabled)},V=U=>{var Z;return typeof i.value=="function"?i.value(U.value):(Z=i.value.weekdays)==null?void 0:Z.includes(U.value.getDay())},X=U=>(c.value.enabled||e.weekPicker)&&(!(A.value.count>0)||U.current)&&S()&&!(!U.current&&e.hideOffsetDates)&&!F(U)?x(U):!1,$=U=>{if(Array.isArray(t.value)&&t.value.length===1){const{before:Z,after:Ue}=Tg(+c.value.maxRange,t.value[0]);return Na(U.value,Z)||Xi(U.value,Ue)}return!1},re=U=>{if(Array.isArray(t.value)&&t.value.length===1){const{before:Z,after:Ue}=Tg(+c.value.minRange,t.value[0]);return Xo([Z,Ue],t.value[0],U.value)}return!1},te=U=>c.value.enabled&&(c.value.maxRange||c.value.minRange)?c.value.maxRange&&c.value.minRange?$(U)||re(U):c.value.maxRange?$(U):re(U):!1,q=U=>{const{isRangeStart:Z,isRangeEnd:Ue}=R(U),At=c.value.enabled?Z||Ue:!1;return{dp__cell_offset:!U.current,dp__pointer:!e.disabled&&!(!U.current&&e.hideOffsetDates)&&!d(U.value)&&!te(U),dp__cell_disabled:d(U.value)||te(U),dp__cell_highlight:!ge(U)&&(ce(U)||V(U))&&!de(U)&&!At&&!E(U)&&!(X(U)&&e.weekPicker)&&!Ue,dp__cell_highlight_active:!ge(U)&&(ce(U)||V(U))&&de(U),dp__today:!e.noToday&&mt(U.value,h.value)&&U.current,"dp--past":zt(U.value,h.value),"dp--future":Zt(U.value,h.value)}},me=U=>({dp__active_date:de(U),dp__date_hover:K(U)}),j=U=>{if(t.value&&!Array.isArray(t.value)){const Z=Sr(t.value,e.weekStart);return{...Ae(U),dp__range_start:mt(Z[0],U.value),dp__range_end:mt(Z[1],U.value),dp__range_between_week:Zt(U.value,Z[0])&&zt(U.value,Z[1])}}return{...Ae(U)}},Ee=U=>{if(t.value&&Array.isArray(t.value)){const Z=Sr(t.value[0],e.weekStart),Ue=t.value[1]?Sr(t.value[1],e.weekStart):[];return{...Ae(U),dp__range_start:mt(Z[0],U.value)||mt(Ue[0],U.value),dp__range_end:mt(Z[1],U.value)||mt(Ue[1],U.value),dp__range_between_week:Zt(U.value,Z[0])&&zt(U.value,Z[1])||Zt(U.value,Ue[0])&&zt(U.value,Ue[1]),dp__range_between:Zt(U.value,Z[1])&&zt(U.value,Ue[0])}}return{...Ae(U)}},R=U=>{const Z=A.value.count>0?U.current&&Q(U)&&S():Q(U)&&S(),Ue=A.value.count>0?U.current&&Q(U,!1)&&S():Q(U,!1)&&S();return{isRangeStart:Z,isRangeEnd:Ue}},J=U=>{const{isRangeStart:Z,isRangeEnd:Ue}=R(U);return{dp__range_start:Z,dp__range_end:Ue,dp__range_between:X(U),dp__date_hover:mt(U.value,f.value)&&!Z&&!Ue&&!e.weekPicker,dp__date_hover_start:k(U,!0),dp__date_hover_end:k(U,!1)}},Ae=U=>({...J(U),dp__cell_auto_range:D(U),dp__cell_auto_range_start:E(U),dp__cell_auto_range_end:C(U)}),se=U=>c.value.enabled?c.value.autoRange?Ae(U):e.modelAuto?{...me(U),...J(U)}:e.weekPicker?Ee(U):J(U):e.weekPicker?j(U):me(U);return{setHoverDate:m,clearHoverDate:g,getDayClassData:U=>e.hideOffsetDates&&!U.current?{}:{...q(U),...se(U),[e.dayClass?e.dayClass(U.value,e.internalModelValue):""]:!0,...r.value.calendarCell??{}}}},ui=t=>{const{defaultedFilters:e,defaultedRange:A,propDates:n,defaultedMultiDates:r}=Pt(t),i=V=>n.value.disabledDates?typeof n.value.disabledDates=="function"?n.value.disabledDates(ve(V)):!!pl(V,n.value.disabledDates):!1,a=V=>n.value.maxDate?t.yearPicker?tt(V)>tt(n.value.maxDate):Zt(V,n.value.maxDate):!1,s=V=>n.value.minDate?t.yearPicker?tt(V)<tt(n.value.minDate):zt(V,n.value.minDate):!1,c=V=>{const X=a(V),$=s(V),re=i(V),te=e.value.months.map(R=>+R).includes(pt(V)),q=t.disabledWeekDays.length?t.disabledWeekDays.some(R=>+R===MF(V)):!1,me=g(V),j=tt(V),Ee=j<+t.yearRange[0]||j>+t.yearRange[1];return!(X||$||re||te||Ee||q||me)},d=(V,X)=>zt(...si(n.value.minDate,V,X))||mt(...si(n.value.minDate,V,X)),f=(V,X)=>Zt(...si(n.value.maxDate,V,X))||mt(...si(n.value.maxDate,V,X)),h=(V,X,$)=>{let re=!1;return n.value.maxDate&&$&&f(V,X)&&(re=!0),n.value.minDate&&!$&&d(V,X)&&(re=!0),re},m=(V,X,$,re)=>{let te=!1;return re&&(n.value.minDate||n.value.maxDate)?n.value.minDate&&n.value.maxDate?te=h(V,X,$):(n.value.minDate&&d(V,X)||n.value.maxDate&&f(V,X))&&(te=!0):te=!0,te},g=V=>Array.isArray(n.value.allowedDates)&&!n.value.allowedDates.length?!0:n.value.allowedDates?!pl(V,n.value.allowedDates,Cg(t.monthPicker,t.yearPicker)):!1,B=V=>!c(V),y=V=>A.value.noDisabledRange?!Gm({start:V[0],end:V[1]}).some(X=>B(X)):!0,v=V=>{if(V){const X=tt(V);return X>=+t.yearRange[0]&&X<=t.yearRange[1]}return!0},Q=(V,X)=>!!(Array.isArray(V)&&V[X]&&(A.value.maxRange||A.value.minRange)&&v(V[X])),k=(V,X,$=0)=>{if(Q(X,$)&&v(V)){const re=Rm(V,X[$]),te=Fg(X[$],V),q=te.length===1?0:te.filter(j=>B(j)).length,me=Math.abs(re)-(A.value.minMaxRawRange?0:q);if(A.value.minRange&&A.value.maxRange)return me>=+A.value.minRange&&me<=+A.value.maxRange;if(A.value.minRange)return me>=+A.value.minRange;if(A.value.maxRange)return me<=+A.value.maxRange}return!0},F=()=>!t.enableTimePicker||t.monthPicker||t.yearPicker||t.ignoreTimeValidation,C=V=>Array.isArray(V)?[V[0]?Ud(V[0]):null,V[1]?Ud(V[1]):null]:Ud(V),D=(V,X,$)=>V.find(re=>+re.hours===Ir(X)&&re.minutes==="*"?!0:+re.minutes===ii(X)&&+re.hours===Ir(X))&&$,E=(V,X,$)=>{const[re,te]=V,[q,me]=X;return!D(re,q,$)&&!D(te,me,$)&&$},x=(V,X)=>{const $=Array.isArray(X)?X:[X];return Array.isArray(t.disabledTimes)?Array.isArray(t.disabledTimes[0])?E(t.disabledTimes,$,V):!$.some(re=>D(t.disabledTimes,re,V)):V},O=(V,X)=>{const $=Array.isArray(X)?[ji(X[0]),X[1]?ji(X[1]):void 0]:ji(X),re=!t.disabledTimes($);return V&&re},S=(V,X)=>t.disabledTimes?Array.isArray(t.disabledTimes)?x(X,V):O(X,V):X,K=V=>{let X=!0;if(!V||F())return!0;const $=!n.value.minDate&&!n.value.maxDate?C(V):V;return(t.maxTime||n.value.maxDate)&&(X=Ig(t.maxTime,n.value.maxDate,"max",pA($),X)),(t.minTime||n.value.minDate)&&(X=Ig(t.minTime,n.value.minDate,"min",pA($),X)),S(V,X)},de=V=>{if(!t.monthPicker)return!0;let X=!0;const $=ve(Xn(V));if(n.value.minDate&&n.value.maxDate){const re=ve(Xn(n.value.minDate)),te=ve(Xn(n.value.maxDate));return Zt($,re)&&zt($,te)||mt($,re)||mt($,te)}if(n.value.minDate){const re=ve(Xn(n.value.minDate));X=Zt($,re)||mt($,re)}if(n.value.maxDate){const re=ve(Xn(n.value.maxDate));X=zt($,re)||mt($,re)}return X},ce=o.computed(()=>V=>!t.enableTimePicker||t.ignoreTimeValidation?!0:K(V)),ge=o.computed(()=>V=>t.monthPicker?Array.isArray(V)&&(A.value.enabled||r.value.enabled)?!V.filter(X=>!de(X)).length:de(V):!0);return{isDisabled:B,validateDate:c,validateMonthYearInRange:m,isDateRangeAllowed:y,checkMinMaxRange:k,isValidTime:K,isTimeValid:ce,isMonthValid:ge}},Cl=()=>{const t=o.computed(()=>(n,r)=>n==null?void 0:n.includes(r)),e=o.computed(()=>(n,r)=>n.count?n.solo?!0:r===0:!0),A=o.computed(()=>(n,r)=>n.count?n.solo?!0:r===n.count-1:!0);return{hideNavigationButtons:t,showLeftIcon:e,showRightIcon:A}},I_=(t,e,A)=>{const n=o.ref(0),r=o.reactive({[qi.timePicker]:!t.enableTimePicker||t.timePicker||t.monthPicker,[qi.calendar]:!1,[qi.header]:!1}),i=o.computed(()=>t.monthPicker||t.timePicker),a=h=>{var m;if((m=t.flow)!=null&&m.length){if(!h&&i.value)return f();r[h]=!0,Object.keys(r).filter(g=>!r[g]).length||f()}},s=()=>{var h,m;(h=t.flow)!=null&&h.length&&n.value!==-1&&(n.value+=1,e("flow-step",n.value),f()),((m=t.flow)==null?void 0:m.length)===n.value&&o.nextTick().then(()=>c())},c=()=>{n.value=-1},d=(h,m,...g)=>{var B,y;t.flow[n.value]===h&&A.value&&((y=(B=A.value)[m])==null||y.call(B,...g))},f=(h=0)=>{h&&(n.value+=h),d(TA.month,"toggleMonthPicker",!0),d(TA.year,"toggleYearPicker",!0),d(TA.calendar,"toggleTimePicker",!1,!0),d(TA.time,"toggleTimePicker",!0,!0);const m=t.flow[n.value];(m===TA.hours||m===TA.minutes||m===TA.seconds)&&d(m,"toggleTimePicker",!0,!0,m)};return{childMount:a,updateFlowStep:s,resetFlow:c,handleFlow:f,flowStep:n}},S_={key:1,class:"dp__input_wrap"},T_=["id","name","inputmode","placeholder","disabled","readonly","required","value","autocomplete","aria-label","aria-disabled","aria-invalid"],x_={key:2,class:"dp--clear-btn"},D_=["aria-label"],M_=o.defineComponent({compatConfig:{MODE:3},__name:"DatepickerInput",props:{isMenuOpen:{type:Boolean,default:!1},inputValue:{type:String,default:""},...Bl},emits:["clear","open","update:input-value","set-input-date","close","select-date","set-empty-date","toggle","focus-prev","focus","blur","real-blur","text-input"],setup(t,{expose:e,emit:A}){const n=A,r=t,{defaultedTextInput:i,defaultedAriaLabels:a,defaultedInline:s,defaultedConfig:c,defaultedRange:d,defaultedMultiDates:f,defaultedUI:h,getDefaultPattern:m,getDefaultStartTime:g}=Pt(r),{checkMinMaxRange:B}=ui(r),y=o.ref(),v=o.ref(null),Q=o.ref(!1),k=o.ref(!1),F=o.computed(()=>({dp__pointer:!r.disabled&&!r.readonly&&!i.value.enabled,dp__disabled:r.disabled,dp__input_readonly:!i.value.enabled,dp__input:!0,dp__input_icon_pad:!r.hideInputIcon,dp__input_valid:typeof r.state=="boolean"?r.state:!1,dp__input_invalid:typeof r.state=="boolean"?!r.state:!1,dp__input_focus:Q.value||r.isMenuOpen,dp__input_reg:!i.value.enabled,...h.value.input??{}})),C=()=>{n("set-input-date",null),r.clearable&&r.autoApply&&(n("set-empty-date"),y.value=null)},D=j=>{const Ee=g();return XU(j,i.value.format??m(),Ee??Ug({},r.enableSeconds),r.inputValue,k.value,r.formatLocale)},E=j=>{const{rangeSeparator:Ee}=i.value,[R,J]=j.split(`${Ee}`);if(R){const Ae=D(R.trim()),se=J?D(J.trim()):void 0;if(Xi(Ae,se))return;const U=Ae&&se?[Ae,se]:[Ae];B(se,U,0)&&(y.value=Ae?U:null)}},x=()=>{k.value=!0},O=j=>{if(d.value.enabled)E(j);else if(f.value.enabled){const Ee=j.split(";");y.value=Ee.map(R=>D(R.trim())).filter(R=>R)}else y.value=D(j)},S=j=>{var Ee;const R=typeof j=="string"?j:(Ee=j.target)==null?void 0:Ee.value;R!==""?(i.value.openMenu&&!r.isMenuOpen&&n("open"),O(R),n("set-input-date",y.value)):C(),k.value=!1,n("update:input-value",R),n("text-input",j,y.value)},K=j=>{i.value.enabled?(O(j.target.value),i.value.enterSubmit&&Ed(y.value)&&r.inputValue!==""?(n("set-input-date",y.value,!0),y.value=null):i.value.enterSubmit&&r.inputValue===""&&(y.value=null,n("clear"))):ge(j)},de=(j,Ee)=>{i.value.enabled&&i.value.tabSubmit&&!Ee&&O(j.target.value),i.value.tabSubmit&&Ed(y.value)&&r.inputValue!==""?(n("set-input-date",y.value,!0,!0),y.value=null):i.value.tabSubmit&&r.inputValue===""&&(y.value=null,n("clear",!0))},ce=()=>{Q.value=!0,n("focus"),o.nextTick().then(()=>{var j;i.value.enabled&&i.value.selectOnFocus&&((j=v.value)==null||j.select())})},ge=j=>{if(ai(j,c.value,!0),i.value.enabled&&i.value.openMenu&&!s.value.input){if(i.value.openMenu==="open"&&!r.isMenuOpen)return n("open");if(i.value.openMenu==="toggle")return n("toggle")}else i.value.enabled||n("toggle")},V=()=>{n("real-blur"),Q.value=!1,(!r.isMenuOpen||s.value.enabled&&s.value.input)&&n("blur"),r.autoApply&&i.value.enabled&&y.value&&!r.isMenuOpen&&(n("set-input-date",y.value),n("select-date"),y.value=null)},X=j=>{ai(j,c.value,!0),n("clear")},$=()=>{n("close")},re=j=>{if(j.key==="Tab"&&de(j),j.key==="Enter"&&K(j),j.key==="Escape"&&i.value.escClose&&$(),!i.value.enabled){if(j.code==="Tab")return;j.preventDefault()}},te=()=>{var j;(j=v.value)==null||j.focus({preventScroll:!0})},q=j=>{y.value=j},me=j=>{j.key===Nt.tab&&de(j,!0)};return e({focusInput:te,setParsedDate:q}),(j,Ee)=>{var R,J,Ae;return o.openBlock(),o.createElementBlock("div",{onClick:ge},[j.$slots.trigger&&!j.$slots["dp-input"]&&!o.unref(s).enabled?o.renderSlot(j.$slots,"trigger",{key:0}):o.createCommentVNode("",!0),!j.$slots.trigger&&(!o.unref(s).enabled||o.unref(s).input)?(o.openBlock(),o.createElementBlock("div",S_,[j.$slots["dp-input"]&&!j.$slots.trigger&&(!o.unref(s).enabled||o.unref(s).enabled&&o.unref(s).input)?o.renderSlot(j.$slots,"dp-input",{key:0,value:t.inputValue,isMenuOpen:t.isMenuOpen,onInput:S,onEnter:K,onTab:de,onClear:X,onBlur:V,onKeypress:re,onPaste:x,onFocus:ce,openMenu:()=>j.$emit("open"),closeMenu:()=>j.$emit("close"),toggleMenu:()=>j.$emit("toggle")}):o.createCommentVNode("",!0),j.$slots["dp-input"]?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("input",{key:1,id:j.uid?`dp-input-${j.uid}`:void 0,ref_key:"inputRef",ref:v,"data-test-id":"dp-input",name:j.name,class:o.normalizeClass(F.value),inputmode:o.unref(i).enabled?"text":"none",placeholder:j.placeholder,disabled:j.disabled,readonly:j.readonly,required:j.required,value:t.inputValue,autocomplete:j.autocomplete,"aria-label":(R=o.unref(a))==null?void 0:R.input,"aria-disabled":j.disabled||void 0,"aria-invalid":j.state===!1?!0:void 0,onInput:S,onBlur:V,onFocus:ce,onKeypress:re,onKeydown:Ee[0]||(Ee[0]=se=>re(se)),onPaste:x},null,42,T_)),o.createElementVNode("div",{onClick:Ee[3]||(Ee[3]=se=>n("toggle"))},[j.$slots["input-icon"]&&!j.hideInputIcon?(o.openBlock(),o.createElementBlock("span",{key:0,class:"dp__input_icon",onClick:Ee[1]||(Ee[1]=se=>n("toggle"))},[o.renderSlot(j.$slots,"input-icon")])):o.createCommentVNode("",!0),!j.$slots["input-icon"]&&!j.hideInputIcon&&!j.$slots["dp-input"]?(o.openBlock(),o.createBlock(o.unref(Ra),{key:1,"aria-label":(J=o.unref(a))==null?void 0:J.calendarIcon,class:"dp__input_icon dp__input_icons",onClick:Ee[2]||(Ee[2]=se=>n("toggle"))},null,8,["aria-label"])):o.createCommentVNode("",!0)]),j.$slots["clear-icon"]&&(j.alwaysClearable||t.inputValue&&j.clearable&&!j.disabled&&!j.readonly)?(o.openBlock(),o.createElementBlock("span",x_,[o.renderSlot(j.$slots,"clear-icon",{clear:X})])):o.createCommentVNode("",!0),!j.$slots["clear-icon"]&&(j.alwaysClearable||j.clearable&&t.inputValue&&!j.disabled&&!j.readonly)?(o.openBlock(),o.createElementBlock("button",{key:3,"aria-label":(Ae=o.unref(a))==null?void 0:Ae.clearInput,class:"dp--clear-btn",type:"button",onKeydown:Ee[4]||(Ee[4]=se=>o.unref(WA)(se,()=>X(se),!0,me)),onClick:Ee[5]||(Ee[5]=o.withModifiers(se=>X(se),["prevent"]))},[o.createVNode(o.unref(fg),{class:"dp__input_icons","data-test-id":"clear-icon"})],40,D_)):o.createCommentVNode("",!0)])):o.createCommentVNode("",!0)])}}}),O_=typeof window<"u"?window:void 0,Nd=()=>{},N_=t=>o.getCurrentScope()?(o.onScopeDispose(t),!0):!1,L_=(t,e,A,n)=>{if(!t)return Nd;let r=Nd;const i=o.watch(()=>o.unref(t),s=>{r(),s&&(s.removeEventListener(e,A),s.addEventListener(e,A,n),r=()=>{s.removeEventListener(e,A,n),r=Nd})},{immediate:!0,flush:"post"}),a=()=>{i(),r()};return N_(a),a},H_=(t,e,A,n={})=>{const{window:r=O_,event:i="pointerdown"}=n;return r?L_(r,i,a=>{const s=iA(t),c=iA(e);!s||!c||s===a.target||a.composedPath().includes(s)||a.composedPath().includes(c)||A(a)},{passive:!0}):void 0},R_=["data-dp-mobile"],P_=o.defineComponent({compatConfig:{MODE:3},__name:"VueDatePicker",props:{...Bl},emits:["update:model-value","update:model-timezone-value","text-submit","closed","cleared","open","focus","blur","internal-model-change","recalculate-position","flow-step","update-month-year","invalid-select","invalid-fixed-range","tooltip-open","tooltip-close","time-picker-open","time-picker-close","am-pm-change","range-start","range-end","date-update","invalid-date","overlay-toggle","text-input"],setup(t,{expose:e,emit:A}){const n=A,r=t,i=o.useSlots(),a=o.ref(!1),s=o.toRef(r,"modelValue"),c=o.toRef(r,"timezone"),d=o.ref(null),f=o.ref(null),h=o.ref(null),m=o.ref(!1),g=o.ref(null),B=o.ref(!1),y=o.ref(!1),v=o.ref(!1),Q=o.ref(!1),{setMenuFocused:k,setShiftKey:F}=xg(),{clearArrowNav:C}=li(),{validateDate:D,isValidTime:E}=ui(r),{defaultedTransitions:x,defaultedTextInput:O,defaultedInline:S,defaultedConfig:K,defaultedRange:de,defaultedMultiDates:ce}=Pt(r),{menuTransition:ge,showTransition:V}=es(x),{isMobile:X}=Kg(K),$=o.getCurrentInstance();o.onMounted(()=>{U(r.modelValue),o.nextTick().then(()=>{if(!S.value.enabled){const fe=R(g.value);fe==null||fe.addEventListener("scroll",Ce),window==null||window.addEventListener("resize",ke)}}),S.value.enabled&&(a.value=!0),window==null||window.addEventListener("keyup",nt),window==null||window.addEventListener("keydown",M)}),o.onUnmounted(()=>{if(!S.value.enabled){const fe=R(g.value);fe==null||fe.removeEventListener("scroll",Ce),window==null||window.removeEventListener("resize",ke)}window==null||window.removeEventListener("keyup",nt),window==null||window.removeEventListener("keydown",M)});const re=mn(i,"all",r.presetDates),te=mn(i,"input");o.watch([s,c],()=>{U(s.value)},{deep:!0});const{openOnTop:q,menuStyle:me,xCorrect:j,setMenuPosition:Ee,getScrollableParent:R,shadowRender:J}=F_({menuRef:d,menuRefInner:f,inputRef:h,pickerWrapperRef:g,inline:S,emit:n,props:r,slots:i}),{inputValue:Ae,internalModelValue:se,parseExternalModelValue:U,emitModelValue:Z,formatInputValue:Ue,checkBeforeEmit:At}=Ck(n,r,m),ie=o.computed(()=>({dp__main:!0,dp__theme_dark:r.dark,dp__theme_light:!r.dark,dp__flex_display:S.value.enabled,"dp--flex-display-collapsed":v.value,dp__flex_display_with_input:S.value.input})),Ge=o.computed(()=>r.dark?"dp__theme_dark":"dp__theme_light"),Be=o.computed(()=>r.teleport?{to:typeof r.teleport=="boolean"?"body":r.teleport,disabled:!r.teleport||S.value.enabled}:{}),Y=o.computed(()=>({class:"dp__outer_menu_wrap"})),T=o.computed(()=>S.value.enabled&&(r.timePicker||r.monthPicker||r.yearPicker||r.quarterPicker)),Fe=()=>{var fe,_e;return((_e=(fe=h.value)==null?void 0:fe.$el)==null?void 0:_e.getBoundingClientRect())??{width:0,left:0,right:0}},Ce=()=>{a.value&&(K.value.closeOnScroll?$e():Ee())},ke=()=>{var fe;a.value&&Ee();const _e=((fe=f.value)==null?void 0:fe.$el.getBoundingClientRect().width)??0;v.value=document.body.offsetWidth<=_e},nt=fe=>{fe.key==="Tab"&&!S.value.enabled&&!r.teleport&&K.value.tabOutClosesMenu&&(g.value.contains(document.activeElement)||$e()),y.value=fe.shiftKey},M=fe=>{y.value=fe.shiftKey},N=()=>{!r.disabled&&!r.readonly&&(J($,$g,r),Ee(!1),a.value=!0,a.value&&n("open"),a.value||ee(),U(r.modelValue))},le=()=>{var fe,_e;Ae.value="",ee(),(fe=f.value)==null||fe.onValueCleared(),(_e=h.value)==null||_e.setParsedDate(null),n("update:model-value",null),n("update:model-timezone-value",null),n("cleared"),K.value.closeOnClearValue&&$e()},H=()=>{const fe=se.value;return!fe||!Array.isArray(fe)&&D(fe)?!0:Array.isArray(fe)?ce.value.enabled||fe.length===2&&D(fe[0])&&D(fe[1])?!0:de.value.partialRange&&!r.timePicker?D(fe[0]):!1:!1},we=()=>{At()&&H()?(Z(),$e()):n("invalid-select",se.value)},Me=fe=>{We(),Z(),K.value.closeOnAutoApply&&!fe&&$e()},We=()=>{h.value&&O.value.enabled&&h.value.setParsedDate(se.value)},ne=(fe=!1)=>{r.autoApply&&E(se.value)&&H()&&(de.value.enabled&&Array.isArray(se.value)?(de.value.partialRange||se.value.length===2)&&Me(fe):Me(fe))},ee=()=>{O.value.enabled||(se.value=null)},$e=(fe=!1)=>{var _e,Pe;fe&&se.value&&K.value.setDateOnMenuClose&&we(),S.value.enabled||(a.value&&(a.value=!1,j.value=!1,k(!1),F(!1),C(),n("closed"),Ae.value&&U(s.value)),ee(),n("blur"),(Pe=(_e=f.value)==null?void 0:_e.$el)==null||Pe.remove())},dt=(fe,_e,Pe=!1)=>{if(!fe){se.value=null;return}const VA=Array.isArray(fe)?!fe.some(Nn=>!D(Nn)):D(fe),dA=E(fe);VA&&dA?(Q.value=!0,se.value=fe,_e?(B.value=Pe,we(),n("text-submit")):r.autoApply&&ne(),o.nextTick().then(()=>{Q.value=!1})):n("invalid-date",fe)},vA=()=>{r.autoApply&&E(se.value)&&Z(),We()},en=()=>a.value?$e():N(),PA=fe=>{se.value=fe},oe=()=>{O.value.enabled&&(m.value=!0,Ue()),n("focus")},xe=()=>{if(O.value.enabled&&(m.value=!1,U(r.modelValue),B.value)){const fe=YU(g.value,y.value);fe==null||fe.focus()}n("blur")},Ke=fe=>{f.value&&f.value.updateMonthYear(0,{month:gg(fe.month),year:gg(fe.year)})},ft=fe=>{U(fe??r.modelValue)},G=(fe,_e)=>{var Pe;(Pe=f.value)==null||Pe.switchView(fe,_e)},ye=(fe,_e)=>K.value.onClickOutside?K.value.onClickOutside(fe,_e):$e(!0),Ne=(fe=0)=>{var _e;(_e=f.value)==null||_e.handleFlow(fe)},et=()=>d;return H_(d,h,fe=>ye(H,fe)),e({closeMenu:$e,selectDate:we,clearValue:le,openMenu:N,onScroll:Ce,formatInputValue:Ue,updateInternalModelValue:PA,setMonthYear:Ke,parseModel:ft,switchView:G,toggleMenu:en,handleFlow:Ne,getDpWrapMenuRef:et}),(fe,_e)=>(o.openBlock(),o.createElementBlock("div",{ref_key:"pickerWrapperRef",ref:g,class:o.normalizeClass(ie.value),"data-datepicker-instance":"","data-dp-mobile":o.unref(X)},[o.createVNode(M_,o.mergeProps({ref_key:"inputRef",ref:h,"input-value":o.unref(Ae),"onUpdate:inputValue":_e[0]||(_e[0]=Pe=>o.isRef(Ae)?Ae.value=Pe:null),"is-menu-open":a.value},fe.$props,{onClear:le,onOpen:N,onSetInputDate:dt,onSetEmptyDate:o.unref(Z),onSelectDate:we,onToggle:en,onClose:$e,onFocus:oe,onBlur:xe,onRealBlur:_e[1]||(_e[1]=Pe=>m.value=!1),onTextInput:_e[2]||(_e[2]=Pe=>fe.$emit("text-input",Pe))}),o.createSlots({_:2},[o.renderList(o.unref(te),(Pe,VA)=>({name:Pe,fn:o.withCtx(dA=>[o.renderSlot(fe.$slots,Pe,o.normalizeProps(o.guardReactiveProps(dA)))])}))]),1040,["input-value","is-menu-open","onSetEmptyDate"]),(o.openBlock(),o.createBlock(o.resolveDynamicComponent(fe.teleport?o.Teleport:"div"),o.normalizeProps(o.guardReactiveProps(Be.value)),{default:o.withCtx(()=>[o.createVNode(o.Transition,{name:o.unref(ge)(o.unref(q)),css:o.unref(V)&&!o.unref(S).enabled},{default:o.withCtx(()=>[a.value?(o.openBlock(),o.createElementBlock("div",o.mergeProps({key:0,ref_key:"dpWrapMenuRef",ref:d},Y.value,{class:{"dp--menu-wrapper":!o.unref(S).enabled},style:o.unref(S).enabled?void 0:o.unref(me)}),[o.createVNode($g,o.mergeProps({ref_key:"dpMenuRef",ref:f},fe.$props,{"internal-model-value":o.unref(se),"onUpdate:internalModelValue":_e[3]||(_e[3]=Pe=>o.isRef(se)?se.value=Pe:null),class:{[Ge.value]:!0,"dp--menu-wrapper":fe.teleport},"open-on-top":o.unref(q),"no-overlay-focus":T.value,collapse:v.value,"get-input-rect":Fe,"is-text-input-date":Q.value,onClosePicker:$e,onSelectDate:we,onAutoApply:ne,onTimeUpdate:vA,onFlowStep:_e[4]||(_e[4]=Pe=>fe.$emit("flow-step",Pe)),onUpdateMonthYear:_e[5]||(_e[5]=Pe=>fe.$emit("update-month-year",Pe)),onInvalidSelect:_e[6]||(_e[6]=Pe=>fe.$emit("invalid-select",o.unref(se))),onAutoApplyInvalid:_e[7]||(_e[7]=Pe=>fe.$emit("invalid-select",Pe)),onInvalidFixedRange:_e[8]||(_e[8]=Pe=>fe.$emit("invalid-fixed-range",Pe)),onRecalculatePosition:o.unref(Ee),onTooltipOpen:_e[9]||(_e[9]=Pe=>fe.$emit("tooltip-open",Pe)),onTooltipClose:_e[10]||(_e[10]=Pe=>fe.$emit("tooltip-close",Pe)),onTimePickerOpen:_e[11]||(_e[11]=Pe=>fe.$emit("time-picker-open",Pe)),onTimePickerClose:_e[12]||(_e[12]=Pe=>fe.$emit("time-picker-close",Pe)),onAmPmChange:_e[13]||(_e[13]=Pe=>fe.$emit("am-pm-change",Pe)),onRangeStart:_e[14]||(_e[14]=Pe=>fe.$emit("range-start",Pe)),onRangeEnd:_e[15]||(_e[15]=Pe=>fe.$emit("range-end",Pe)),onDateUpdate:_e[16]||(_e[16]=Pe=>fe.$emit("date-update",Pe)),onInvalidDate:_e[17]||(_e[17]=Pe=>fe.$emit("invalid-date",Pe)),onOverlayToggle:_e[18]||(_e[18]=Pe=>fe.$emit("overlay-toggle",Pe)),onMenuBlur:_e[19]||(_e[19]=Pe=>fe.$emit("blur"))}),o.createSlots({_:2},[o.renderList(o.unref(re),(Pe,VA)=>({name:Pe,fn:o.withCtx(dA=>[o.renderSlot(fe.$slots,Pe,o.normalizeProps(o.guardReactiveProps({...dA})))])}))]),1040,["internal-model-value","class","open-on-top","no-overlay-focus","collapse","is-text-input-date","onRecalculatePosition"])],16)):o.createCommentVNode("",!0)]),_:3},8,["name","css"])]),_:3},16))],10,R_))}}),Wa=(()=>{const t=P_;return t.install=e=>{e.component("Vue3DatePicker",t)},t})();Object.entries(Object.freeze(Object.defineProperty({__proto__:null,default:Wa},Symbol.toStringTag,{value:"Module"}))).forEach(([t,e])=>{t!=="default"&&(Wa[t]=e)});const sJ="";/*!
3
+ * shared v9.13.1
4
+ * (c) 2024 kazuya kawaguchi
5
+ * Released under the MIT License.
6
+ */const xr=typeof window<"u";let gn,Zi;if(process.env.NODE_ENV!=="production"){const t=xr&&window.performance;t&&t.mark&&t.measure&&t.clearMarks&&t.clearMeasures&&(gn=e=>{t.mark(e)},Zi=(e,A,n)=>{t.measure(e,A,n),t.clearMarks(A),t.clearMarks(n)})}const V_=/\{([0-9a-zA-Z]+)\}/g;function Ld(t,...e){return e.length===1&&vt(e[0])&&(e=e[0]),(!e||!e.hasOwnProperty)&&(e={}),t.replace(V_,(A,n)=>e.hasOwnProperty(n)?e[n]:"")}const Dr=(t,e=!1)=>e?Symbol.for(t):Symbol(t),K_=(t,e,A)=>$_({l:t,k:e,s:A}),$_=t=>JSON.stringify(t).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),DA=t=>typeof t=="number"&&isFinite(t),G_=t=>zg(t)==="[object Date]",Ya=t=>zg(t)==="[object RegExp]",bl=t=>gt(t)&&Object.keys(t).length===0,MA=Object.assign;let Gg;const Mr=()=>Gg||(Gg=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Wg(t){return t.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")}const W_=Object.prototype.hasOwnProperty;function vl(t,e){return W_.call(t,e)}const aA=Array.isArray,Ht=t=>typeof t=="function",He=t=>typeof t=="string",xt=t=>typeof t=="boolean",vt=t=>t!==null&&typeof t=="object",Y_=t=>vt(t)&&Ht(t.then)&&Ht(t.catch),Yg=Object.prototype.toString,zg=t=>Yg.call(t),gt=t=>{if(!vt(t))return!1;const e=Object.getPrototypeOf(t);return e===null||e.constructor===Object},z_=t=>t==null?"":aA(t)||gt(t)&&t.toString===Yg?JSON.stringify(t,null,2):String(t);function J_(t,e=""){return t.reduce((A,n,r)=>r===0?A+n:A+e+n,"")}const Jg=2;function X_(t,e=0,A=t.length){const n=t.split(/\r?\n/);let r=0;const i=[];for(let a=0;a<n.length;a++)if(r+=n[a].length+1,r>=e){for(let s=a-Jg;s<=a+Jg||A>r;s++){if(s<0||s>=n.length)continue;const c=s+1;i.push(`${c}${" ".repeat(3-String(c).length)}| ${n[s]}`);const d=n[s].length;if(s===a){const f=e-(r-d)+1,h=Math.max(1,A>r?d-f:A-e);i.push(" | "+" ".repeat(f)+"^".repeat(h))}else if(s>a){if(A>r){const f=Math.max(Math.min(A-r,d),1);i.push(" | "+"^".repeat(f))}r+=d+1}}break}return i.join(`
7
+ `)}function El(t){let e=t;return()=>++e}function Or(t,e){typeof console<"u"&&(console.warn("[intlify] "+t),e&&console.warn(e.stack))}const Xg={};function qg(t){Xg[t]||(Xg[t]=!0,Or(t))}function q_(){const t=new Map;return{events:t,on(A,n){const r=t.get(A);r&&r.push(n)||t.set(A,[n])},off(A,n){const r=t.get(A);r&&r.splice(r.indexOf(n)>>>0,1)},emit(A,n){(t.get(A)||[]).slice().map(r=>r(n)),(t.get("*")||[]).slice().map(r=>r(A,n))}}}const Ql=t=>!vt(t)||aA(t);function Fl(t,e){if(Ql(t)||Ql(e))throw new Error("Invalid value");const A=[{src:t,des:e}];for(;A.length;){const{src:n,des:r}=A.pop();Object.keys(n).forEach(i=>{Ql(n[i])||Ql(r[i])?r[i]=n[i]:A.push({src:n[i],des:r[i]})})}}/*!
8
+ * message-compiler v9.13.1
9
+ * (c) 2024 kazuya kawaguchi
10
+ * Released under the MIT License.
11
+ */function j_(t,e,A){return{line:t,column:e,offset:A}}function Ul(t,e,A){const n={start:t,end:e};return A!=null&&(n.source=A),n}const Z_=/\{([0-9a-zA-Z]+)\}/g;function jg(t,...e){return e.length===1&&eI(e[0])&&(e=e[0]),(!e||!e.hasOwnProperty)&&(e={}),t.replace(Z_,(A,n)=>e.hasOwnProperty(n)?e[n]:"")}const Zg=Object.assign,eB=t=>typeof t=="string",eI=t=>t!==null&&typeof t=="object";function tB(t,e=""){return t.reduce((A,n,r)=>r===0?A+n:A+e+n,"")}const kl={USE_MODULO_SYNTAX:1,__EXTEND_POINT__:2},tI={[kl.USE_MODULO_SYNTAX]:"Use modulo before '{{0}}'."};function AI(t,e,...A){const n=jg(tI[t]||"",...A||[]),r={message:String(n),code:t};return e&&(r.location=e),r}const Ze={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,UNHANDLED_CODEGEN_NODE_TYPE:15,UNHANDLED_MINIFIER_NODE_TYPE:16,__EXTEND_POINT__:17},nI={[Ze.EXPECTED_TOKEN]:"Expected token: '{0}'",[Ze.INVALID_TOKEN_IN_PLACEHOLDER]:"Invalid token in placeholder: '{0}'",[Ze.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]:"Unterminated single quote in placeholder",[Ze.UNKNOWN_ESCAPE_SEQUENCE]:"Unknown escape sequence: \\{0}",[Ze.INVALID_UNICODE_ESCAPE_SEQUENCE]:"Invalid unicode escape sequence: {0}",[Ze.UNBALANCED_CLOSING_BRACE]:"Unbalanced closing brace",[Ze.UNTERMINATED_CLOSING_BRACE]:"Unterminated closing brace",[Ze.EMPTY_PLACEHOLDER]:"Empty placeholder",[Ze.NOT_ALLOW_NEST_PLACEHOLDER]:"Not allowed nest placeholder",[Ze.INVALID_LINKED_FORMAT]:"Invalid linked format",[Ze.MUST_HAVE_MESSAGES_IN_PLURAL]:"Plural must have messages",[Ze.UNEXPECTED_EMPTY_LINKED_MODIFIER]:"Unexpected empty linked modifier",[Ze.UNEXPECTED_EMPTY_LINKED_KEY]:"Unexpected empty linked key",[Ze.UNEXPECTED_LEXICAL_ANALYSIS]:"Unexpected lexical analysis in token: '{0}'",[Ze.UNHANDLED_CODEGEN_NODE_TYPE]:"unhandled codegen node type: '{0}'",[Ze.UNHANDLED_MINIFIER_NODE_TYPE]:"unhandled mimifier node type: '{0}'"};function za(t,e,A={}){const{domain:n,messages:r,args:i}=A,a=jg((r||nI)[t]||"",...i||[]),s=new SyntaxError(String(a));return s.code=t,e&&(s.location=e),s.domain=n,s}function rI(t){throw t}const iI=/<\/?[\w\s="/.':;#-\/]+>/,aI=t=>iI.test(t),Nr=" ",oI="\r",YA=`
12
+ `,sI=String.fromCharCode(8232),lI=String.fromCharCode(8233);function cI(t){const e=t;let A=0,n=1,r=1,i=0;const a=x=>e[x]===oI&&e[x+1]===YA,s=x=>e[x]===YA,c=x=>e[x]===lI,d=x=>e[x]===sI,f=x=>a(x)||s(x)||c(x)||d(x),h=()=>A,m=()=>n,g=()=>r,B=()=>i,y=x=>a(x)||c(x)||d(x)?YA:e[x],v=()=>y(A),Q=()=>y(A+i);function k(){return i=0,f(A)&&(n++,r=0),a(A)&&A++,A++,r++,e[A]}function F(){return a(A+i)&&i++,i++,e[A+i]}function C(){A=0,n=1,r=1,i=0}function D(x=0){i=x}function E(){const x=A+i;for(;x!==A;)k();i=0}return{index:h,line:m,column:g,peekOffset:B,charAt:y,currentChar:v,currentPeek:Q,next:k,peek:F,reset:C,resetPeek:D,skipToPeek:E}}const di=void 0,uI=".",AB="'",dI="tokenizer";function fI(t,e={}){const A=e.location!==!1,n=cI(t),r=()=>n.index(),i=()=>j_(n.line(),n.column(),n.index()),a=i(),s=r(),c={currentType:14,offset:s,startLoc:a,endLoc:a,lastType:14,lastOffset:s,lastStartLoc:a,lastEndLoc:a,braceNest:0,inLinked:!1,text:""},d=()=>c,{onError:f}=e;function h(M,N,le,...H){const we=d();if(N.column+=le,N.offset+=le,f){const Me=A?Ul(we.startLoc,N):null,We=za(M,Me,{domain:dI,args:H});f(We)}}function m(M,N,le){M.endLoc=i(),M.currentType=N;const H={type:N};return A&&(H.loc=Ul(M.startLoc,M.endLoc)),le!=null&&(H.value=le),H}const g=M=>m(M,14);function B(M,N){return M.currentChar()===N?(M.next(),N):(h(Ze.EXPECTED_TOKEN,i(),0,N),"")}function y(M){let N="";for(;M.currentPeek()===Nr||M.currentPeek()===YA;)N+=M.currentPeek(),M.peek();return N}function v(M){const N=y(M);return M.skipToPeek(),N}function Q(M){if(M===di)return!1;const N=M.charCodeAt(0);return N>=97&&N<=122||N>=65&&N<=90||N===95}function k(M){if(M===di)return!1;const N=M.charCodeAt(0);return N>=48&&N<=57}function F(M,N){const{currentType:le}=N;if(le!==2)return!1;y(M);const H=Q(M.currentPeek());return M.resetPeek(),H}function C(M,N){const{currentType:le}=N;if(le!==2)return!1;y(M);const H=M.currentPeek()==="-"?M.peek():M.currentPeek(),we=k(H);return M.resetPeek(),we}function D(M,N){const{currentType:le}=N;if(le!==2)return!1;y(M);const H=M.currentPeek()===AB;return M.resetPeek(),H}function E(M,N){const{currentType:le}=N;if(le!==8)return!1;y(M);const H=M.currentPeek()===".";return M.resetPeek(),H}function x(M,N){const{currentType:le}=N;if(le!==9)return!1;y(M);const H=Q(M.currentPeek());return M.resetPeek(),H}function O(M,N){const{currentType:le}=N;if(!(le===8||le===12))return!1;y(M);const H=M.currentPeek()===":";return M.resetPeek(),H}function S(M,N){const{currentType:le}=N;if(le!==10)return!1;const H=()=>{const Me=M.currentPeek();return Me==="{"?Q(M.peek()):Me==="@"||Me==="%"||Me==="|"||Me===":"||Me==="."||Me===Nr||!Me?!1:Me===YA?(M.peek(),H()):ce(M,!1)},we=H();return M.resetPeek(),we}function K(M){y(M);const N=M.currentPeek()==="|";return M.resetPeek(),N}function de(M){const N=y(M),le=M.currentPeek()==="%"&&M.peek()==="{";return M.resetPeek(),{isModulo:le,hasSpace:N.length>0}}function ce(M,N=!0){const le=(we=!1,Me="",We=!1)=>{const ne=M.currentPeek();return ne==="{"?Me==="%"?!1:we:ne==="@"||!ne?Me==="%"?!0:we:ne==="%"?(M.peek(),le(we,"%",!0)):ne==="|"?Me==="%"||We?!0:!(Me===Nr||Me===YA):ne===Nr?(M.peek(),le(!0,Nr,We)):ne===YA?(M.peek(),le(!0,YA,We)):!0},H=le();return N&&M.resetPeek(),H}function ge(M,N){const le=M.currentChar();return le===di?di:N(le)?(M.next(),le):null}function V(M){const N=M.charCodeAt(0);return N>=97&&N<=122||N>=65&&N<=90||N>=48&&N<=57||N===95||N===36}function X(M){return ge(M,V)}function $(M){const N=M.charCodeAt(0);return N>=97&&N<=122||N>=65&&N<=90||N>=48&&N<=57||N===95||N===36||N===45}function re(M){return ge(M,$)}function te(M){const N=M.charCodeAt(0);return N>=48&&N<=57}function q(M){return ge(M,te)}function me(M){const N=M.charCodeAt(0);return N>=48&&N<=57||N>=65&&N<=70||N>=97&&N<=102}function j(M){return ge(M,me)}function Ee(M){let N="",le="";for(;N=q(M);)le+=N;return le}function R(M){v(M);const N=M.currentChar();return N!=="%"&&h(Ze.EXPECTED_TOKEN,i(),0,N),M.next(),"%"}function J(M){let N="";for(;;){const le=M.currentChar();if(le==="{"||le==="}"||le==="@"||le==="|"||!le)break;if(le==="%")if(ce(M))N+=le,M.next();else break;else if(le===Nr||le===YA)if(ce(M))N+=le,M.next();else{if(K(M))break;N+=le,M.next()}else N+=le,M.next()}return N}function Ae(M){v(M);let N="",le="";for(;N=re(M);)le+=N;return M.currentChar()===di&&h(Ze.UNTERMINATED_CLOSING_BRACE,i(),0),le}function se(M){v(M);let N="";return M.currentChar()==="-"?(M.next(),N+=`-${Ee(M)}`):N+=Ee(M),M.currentChar()===di&&h(Ze.UNTERMINATED_CLOSING_BRACE,i(),0),N}function U(M){return M!==AB&&M!==YA}function Z(M){v(M),B(M,"'");let N="",le="";for(;N=ge(M,U);)N==="\\"?le+=Ue(M):le+=N;const H=M.currentChar();return H===YA||H===di?(h(Ze.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,i(),0),H===YA&&(M.next(),B(M,"'")),le):(B(M,"'"),le)}function Ue(M){const N=M.currentChar();switch(N){case"\\":case"'":return M.next(),`\\${N}`;case"u":return At(M,N,4);case"U":return At(M,N,6);default:return h(Ze.UNKNOWN_ESCAPE_SEQUENCE,i(),0,N),""}}function At(M,N,le){B(M,N);let H="";for(let we=0;we<le;we++){const Me=j(M);if(!Me){h(Ze.INVALID_UNICODE_ESCAPE_SEQUENCE,i(),0,`\\${N}${H}${M.currentChar()}`);break}H+=Me}return`\\${N}${H}`}function ie(M){return M!=="{"&&M!=="}"&&M!==Nr&&M!==YA}function Ge(M){v(M);let N="",le="";for(;N=ge(M,ie);)le+=N;return le}function Be(M){let N="",le="";for(;N=X(M);)le+=N;return le}function Y(M){const N=le=>{const H=M.currentChar();return H==="{"||H==="%"||H==="@"||H==="|"||H==="("||H===")"||!H||H===Nr?le:(le+=H,M.next(),N(le))};return N("")}function T(M){v(M);const N=B(M,"|");return v(M),N}function Fe(M,N){let le=null;switch(M.currentChar()){case"{":return N.braceNest>=1&&h(Ze.NOT_ALLOW_NEST_PLACEHOLDER,i(),0),M.next(),le=m(N,2,"{"),v(M),N.braceNest++,le;case"}":return N.braceNest>0&&N.currentType===2&&h(Ze.EMPTY_PLACEHOLDER,i(),0),M.next(),le=m(N,3,"}"),N.braceNest--,N.braceNest>0&&v(M),N.inLinked&&N.braceNest===0&&(N.inLinked=!1),le;case"@":return N.braceNest>0&&h(Ze.UNTERMINATED_CLOSING_BRACE,i(),0),le=Ce(M,N)||g(N),N.braceNest=0,le;default:{let we=!0,Me=!0,We=!0;if(K(M))return N.braceNest>0&&h(Ze.UNTERMINATED_CLOSING_BRACE,i(),0),le=m(N,1,T(M)),N.braceNest=0,N.inLinked=!1,le;if(N.braceNest>0&&(N.currentType===5||N.currentType===6||N.currentType===7))return h(Ze.UNTERMINATED_CLOSING_BRACE,i(),0),N.braceNest=0,ke(M,N);if(we=F(M,N))return le=m(N,5,Ae(M)),v(M),le;if(Me=C(M,N))return le=m(N,6,se(M)),v(M),le;if(We=D(M,N))return le=m(N,7,Z(M)),v(M),le;if(!we&&!Me&&!We)return le=m(N,13,Ge(M)),h(Ze.INVALID_TOKEN_IN_PLACEHOLDER,i(),0,le.value),v(M),le;break}}return le}function Ce(M,N){const{currentType:le}=N;let H=null;const we=M.currentChar();switch((le===8||le===9||le===12||le===10)&&(we===YA||we===Nr)&&h(Ze.INVALID_LINKED_FORMAT,i(),0),we){case"@":return M.next(),H=m(N,8,"@"),N.inLinked=!0,H;case".":return v(M),M.next(),m(N,9,".");case":":return v(M),M.next(),m(N,10,":");default:return K(M)?(H=m(N,1,T(M)),N.braceNest=0,N.inLinked=!1,H):E(M,N)||O(M,N)?(v(M),Ce(M,N)):x(M,N)?(v(M),m(N,12,Be(M))):S(M,N)?(v(M),we==="{"?Fe(M,N)||H:m(N,11,Y(M))):(le===8&&h(Ze.INVALID_LINKED_FORMAT,i(),0),N.braceNest=0,N.inLinked=!1,ke(M,N))}}function ke(M,N){let le={type:14};if(N.braceNest>0)return Fe(M,N)||g(N);if(N.inLinked)return Ce(M,N)||g(N);switch(M.currentChar()){case"{":return Fe(M,N)||g(N);case"}":return h(Ze.UNBALANCED_CLOSING_BRACE,i(),0),M.next(),m(N,3,"}");case"@":return Ce(M,N)||g(N);default:{if(K(M))return le=m(N,1,T(M)),N.braceNest=0,N.inLinked=!1,le;const{isModulo:we,hasSpace:Me}=de(M);if(we)return Me?m(N,0,J(M)):m(N,4,R(M));if(ce(M))return m(N,0,J(M));break}}return le}function nt(){const{currentType:M,offset:N,startLoc:le,endLoc:H}=c;return c.lastType=M,c.lastOffset=N,c.lastStartLoc=le,c.lastEndLoc=H,c.offset=r(),c.startLoc=i(),n.currentChar()===di?m(c,14):ke(n,c)}return{nextToken:nt,currentOffset:r,currentPosition:i,context:d}}const hI="parser",pI=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function mI(t,e,A){switch(t){case"\\\\":return"\\";case"\\'":return"'";default:{const n=parseInt(e||A,16);return n<=55295||n>=57344?String.fromCodePoint(n):"�"}}}function gI(t={}){const e=t.location!==!1,{onError:A,onWarn:n}=t;function r(F,C,D,E,...x){const O=F.currentPosition();if(O.offset+=E,O.column+=E,A){const S=e?Ul(D,O):null,K=za(C,S,{domain:hI,args:x});A(K)}}function i(F,C,D,E,...x){const O=F.currentPosition();if(O.offset+=E,O.column+=E,n){const S=e?Ul(D,O):null;n(AI(C,S,x))}}function a(F,C,D){const E={type:F};return e&&(E.start=C,E.end=C,E.loc={start:D,end:D}),E}function s(F,C,D,E){E&&(F.type=E),e&&(F.end=C,F.loc&&(F.loc.end=D))}function c(F,C){const D=F.context(),E=a(3,D.offset,D.startLoc);return E.value=C,s(E,F.currentOffset(),F.currentPosition()),E}function d(F,C){const D=F.context(),{lastOffset:E,lastStartLoc:x}=D,O=a(5,E,x);return O.index=parseInt(C,10),F.nextToken(),s(O,F.currentOffset(),F.currentPosition()),O}function f(F,C,D){const E=F.context(),{lastOffset:x,lastStartLoc:O}=E,S=a(4,x,O);return S.key=C,D===!0&&(S.modulo=!0),F.nextToken(),s(S,F.currentOffset(),F.currentPosition()),S}function h(F,C){const D=F.context(),{lastOffset:E,lastStartLoc:x}=D,O=a(9,E,x);return O.value=C.replace(pI,mI),F.nextToken(),s(O,F.currentOffset(),F.currentPosition()),O}function m(F){const C=F.nextToken(),D=F.context(),{lastOffset:E,lastStartLoc:x}=D,O=a(8,E,x);return C.type!==12?(r(F,Ze.UNEXPECTED_EMPTY_LINKED_MODIFIER,D.lastStartLoc,0),O.value="",s(O,E,x),{nextConsumeToken:C,node:O}):(C.value==null&&r(F,Ze.UNEXPECTED_LEXICAL_ANALYSIS,D.lastStartLoc,0,jn(C)),O.value=C.value||"",s(O,F.currentOffset(),F.currentPosition()),{node:O})}function g(F,C){const D=F.context(),E=a(7,D.offset,D.startLoc);return E.value=C,s(E,F.currentOffset(),F.currentPosition()),E}function B(F){const C=F.context(),D=a(6,C.offset,C.startLoc);let E=F.nextToken();if(E.type===9){const x=m(F);D.modifier=x.node,E=x.nextConsumeToken||F.nextToken()}switch(E.type!==10&&r(F,Ze.UNEXPECTED_LEXICAL_ANALYSIS,C.lastStartLoc,0,jn(E)),E=F.nextToken(),E.type===2&&(E=F.nextToken()),E.type){case 11:E.value==null&&r(F,Ze.UNEXPECTED_LEXICAL_ANALYSIS,C.lastStartLoc,0,jn(E)),D.key=g(F,E.value||"");break;case 5:E.value==null&&r(F,Ze.UNEXPECTED_LEXICAL_ANALYSIS,C.lastStartLoc,0,jn(E)),D.key=f(F,E.value||"");break;case 6:E.value==null&&r(F,Ze.UNEXPECTED_LEXICAL_ANALYSIS,C.lastStartLoc,0,jn(E)),D.key=d(F,E.value||"");break;case 7:E.value==null&&r(F,Ze.UNEXPECTED_LEXICAL_ANALYSIS,C.lastStartLoc,0,jn(E)),D.key=h(F,E.value||"");break;default:{r(F,Ze.UNEXPECTED_EMPTY_LINKED_KEY,C.lastStartLoc,0);const x=F.context(),O=a(7,x.offset,x.startLoc);return O.value="",s(O,x.offset,x.startLoc),D.key=O,s(D,x.offset,x.startLoc),{nextConsumeToken:E,node:D}}}return s(D,F.currentOffset(),F.currentPosition()),{node:D}}function y(F){const C=F.context(),D=C.currentType===1?F.currentOffset():C.offset,E=C.currentType===1?C.endLoc:C.startLoc,x=a(2,D,E);x.items=[];let O=null,S=null;do{const ce=O||F.nextToken();switch(O=null,ce.type){case 0:ce.value==null&&r(F,Ze.UNEXPECTED_LEXICAL_ANALYSIS,C.lastStartLoc,0,jn(ce)),x.items.push(c(F,ce.value||""));break;case 6:ce.value==null&&r(F,Ze.UNEXPECTED_LEXICAL_ANALYSIS,C.lastStartLoc,0,jn(ce)),x.items.push(d(F,ce.value||""));break;case 4:S=!0;break;case 5:ce.value==null&&r(F,Ze.UNEXPECTED_LEXICAL_ANALYSIS,C.lastStartLoc,0,jn(ce)),x.items.push(f(F,ce.value||"",!!S)),S&&(i(F,kl.USE_MODULO_SYNTAX,C.lastStartLoc,0,jn(ce)),S=null);break;case 7:ce.value==null&&r(F,Ze.UNEXPECTED_LEXICAL_ANALYSIS,C.lastStartLoc,0,jn(ce)),x.items.push(h(F,ce.value||""));break;case 8:{const ge=B(F);x.items.push(ge.node),O=ge.nextConsumeToken||null;break}}}while(C.currentType!==14&&C.currentType!==1);const K=C.currentType===1?C.lastOffset:F.currentOffset(),de=C.currentType===1?C.lastEndLoc:F.currentPosition();return s(x,K,de),x}function v(F,C,D,E){const x=F.context();let O=E.items.length===0;const S=a(1,C,D);S.cases=[],S.cases.push(E);do{const K=y(F);O||(O=K.items.length===0),S.cases.push(K)}while(x.currentType!==14);return O&&r(F,Ze.MUST_HAVE_MESSAGES_IN_PLURAL,D,0),s(S,F.currentOffset(),F.currentPosition()),S}function Q(F){const C=F.context(),{offset:D,startLoc:E}=C,x=y(F);return C.currentType===14?x:v(F,D,E,x)}function k(F){const C=fI(F,Zg({},t)),D=C.context(),E=a(0,D.offset,D.startLoc);return e&&E.loc&&(E.loc.source=F),E.body=Q(C),t.onCacheKey&&(E.cacheKey=t.onCacheKey(F)),D.currentType!==14&&r(C,Ze.UNEXPECTED_LEXICAL_ANALYSIS,D.lastStartLoc,0,F[D.offset]||""),s(E,C.currentOffset(),C.currentPosition()),E}return{parse:k}}function jn(t){if(t.type===14)return"EOF";const e=(t.value||"").replace(/\r?\n/gu,"\\n");return e.length>10?e.slice(0,9)+"…":e}function BI(t,e={}){const A={ast:t,helpers:new Set};return{context:()=>A,helper:i=>(A.helpers.add(i),i)}}function nB(t,e){for(let A=0;A<t.length;A++)Hd(t[A],e)}function Hd(t,e){switch(t.type){case 1:nB(t.cases,e),e.helper("plural");break;case 2:nB(t.items,e);break;case 6:{Hd(t.key,e),e.helper("linked"),e.helper("type");break}case 5:e.helper("interpolate"),e.helper("list");break;case 4:e.helper("interpolate"),e.helper("named");break}}function wI(t,e={}){const A=BI(t);A.helper("normalize"),t.body&&Hd(t.body,A);const n=A.context();t.helpers=Array.from(n.helpers)}function yI(t){const e=t.body;return e.type===2?rB(e):e.cases.forEach(A=>rB(A)),t}function rB(t){if(t.items.length===1){const e=t.items[0];(e.type===3||e.type===9)&&(t.static=e.value,delete e.value)}else{const e=[];for(let A=0;A<t.items.length;A++){const n=t.items[A];if(!(n.type===3||n.type===9)||n.value==null)break;e.push(n.value)}if(e.length===t.items.length){t.static=tB(e);for(let A=0;A<t.items.length;A++){const n=t.items[A];(n.type===3||n.type===9)&&delete n.value}}}}const CI="minifier";function Ja(t){switch(t.t=t.type,t.type){case 0:{const e=t;Ja(e.body),e.b=e.body,delete e.body;break}case 1:{const e=t,A=e.cases;for(let n=0;n<A.length;n++)Ja(A[n]);e.c=A,delete e.cases;break}case 2:{const e=t,A=e.items;for(let n=0;n<A.length;n++)Ja(A[n]);e.i=A,delete e.items,e.static&&(e.s=e.static,delete e.static);break}case 3:case 9:case 8:case 7:{const e=t;e.value&&(e.v=e.value,delete e.value);break}case 6:{const e=t;Ja(e.key),e.k=e.key,delete e.key,e.modifier&&(Ja(e.modifier),e.m=e.modifier,delete e.modifier);break}case 5:{const e=t;e.i=e.index,delete e.index;break}case 4:{const e=t;e.k=e.key,delete e.key;break}default:throw za(Ze.UNHANDLED_MINIFIER_NODE_TYPE,null,{domain:CI,args:[t.type]})}delete t.type}const bI="parser";function vI(t,e){const{sourceMap:A,filename:n,breakLineCode:r,needIndent:i}=e,a=e.location!==!1,s={filename:n,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:r,needIndent:i,indentLevel:0};a&&t.loc&&(s.source=t.loc.source);const c=()=>s;function d(v,Q){s.code+=v}function f(v,Q=!0){const k=Q?r:"";d(i?k+" ".repeat(v):k)}function h(v=!0){const Q=++s.indentLevel;v&&f(Q)}function m(v=!0){const Q=--s.indentLevel;v&&f(Q)}function g(){f(s.indentLevel)}return{context:c,push:d,indent:h,deindent:m,newline:g,helper:v=>`_${v}`,needIndent:()=>s.needIndent}}function EI(t,e){const{helper:A}=t;t.push(`${A("linked")}(`),Xa(t,e.key),e.modifier?(t.push(", "),Xa(t,e.modifier),t.push(", _type")):t.push(", undefined, _type"),t.push(")")}function QI(t,e){const{helper:A,needIndent:n}=t;t.push(`${A("normalize")}([`),t.indent(n());const r=e.items.length;for(let i=0;i<r&&(Xa(t,e.items[i]),i!==r-1);i++)t.push(", ");t.deindent(n()),t.push("])")}function FI(t,e){const{helper:A,needIndent:n}=t;if(e.cases.length>1){t.push(`${A("plural")}([`),t.indent(n());const r=e.cases.length;for(let i=0;i<r&&(Xa(t,e.cases[i]),i!==r-1);i++)t.push(", ");t.deindent(n()),t.push("])")}}function UI(t,e){e.body?Xa(t,e.body):t.push("null")}function Xa(t,e){const{helper:A}=t;switch(e.type){case 0:UI(t,e);break;case 1:FI(t,e);break;case 2:QI(t,e);break;case 6:EI(t,e);break;case 8:t.push(JSON.stringify(e.value),e);break;case 7:t.push(JSON.stringify(e.value),e);break;case 5:t.push(`${A("interpolate")}(${A("list")}(${e.index}))`,e);break;case 4:t.push(`${A("interpolate")}(${A("named")}(${JSON.stringify(e.key)}))`,e);break;case 9:t.push(JSON.stringify(e.value),e);break;case 3:t.push(JSON.stringify(e.value),e);break;default:throw za(Ze.UNHANDLED_CODEGEN_NODE_TYPE,null,{domain:bI,args:[e.type]})}}const kI=(t,e={})=>{const A=eB(e.mode)?e.mode:"normal",n=eB(e.filename)?e.filename:"message.intl",r=!!e.sourceMap,i=e.breakLineCode!=null?e.breakLineCode:A==="arrow"?";":`
13
+ `,a=e.needIndent?e.needIndent:A!=="arrow",s=t.helpers||[],c=vI(t,{mode:A,filename:n,sourceMap:r,breakLineCode:i,needIndent:a});c.push(A==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),c.indent(a),s.length>0&&(c.push(`const { ${tB(s.map(h=>`${h}: _${h}`),", ")} } = ctx`),c.newline()),c.push("return "),Xa(c,t),c.deindent(a),c.push("}"),delete t.helpers;const{code:d,map:f}=c.context();return{ast:t,code:d,map:f?f.toJSON():void 0}};function _I(t,e={}){const A=Zg({},e),n=!!A.jit,r=!!A.minify,i=A.optimize==null?!0:A.optimize,s=gI(A).parse(t);return n?(i&&yI(s),r&&Ja(s),{ast:s,code:""}):(wI(s,A),kI(s,A))}/*!
14
+ * core-base v9.13.1
15
+ * (c) 2024 kazuya kawaguchi
16
+ * Released under the MIT License.
17
+ */function II(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Mr().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(Mr().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Mr().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}const fi=[];fi[0]={w:[0],i:[3,0],"[":[4],o:[7]},fi[1]={w:[1],".":[2],"[":[4],o:[7]},fi[2]={w:[2],i:[3,0],0:[3,0]},fi[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},fi[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},fi[5]={"'":[4,0],o:8,l:[5,0]},fi[6]={'"':[4,0],o:8,l:[6,0]};const SI=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function TI(t){return SI.test(t)}function xI(t){const e=t.charCodeAt(0),A=t.charCodeAt(t.length-1);return e===A&&(e===34||e===39)?t.slice(1,-1):t}function DI(t){if(t==null)return"o";switch(t.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return t;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function MI(t){const e=t.trim();return t.charAt(0)==="0"&&isNaN(parseInt(t))?!1:TI(e)?xI(e):"*"+e}function OI(t){const e=[];let A=-1,n=0,r=0,i,a,s,c,d,f,h;const m=[];m[0]=()=>{a===void 0?a=s:a+=s},m[1]=()=>{a!==void 0&&(e.push(a),a=void 0)},m[2]=()=>{m[0](),r++},m[3]=()=>{if(r>0)r--,n=4,m[0]();else{if(r=0,a===void 0||(a=MI(a),a===!1))return!1;m[1]()}};function g(){const B=t[A+1];if(n===5&&B==="'"||n===6&&B==='"')return A++,s="\\"+B,m[0](),!0}for(;n!==null;)if(A++,i=t[A],!(i==="\\"&&g())){if(c=DI(i),h=fi[n],d=h[c]||h.l||8,d===8||(n=d[0],d[1]!==void 0&&(f=m[d[1]],f&&(s=i,f()===!1))))return;if(n===7)return e}}const iB=new Map;function NI(t,e){return vt(t)?t[e]:null}function LI(t,e){if(!vt(t))return null;let A=iB.get(e);if(A||(A=OI(e),A&&iB.set(e,A)),!A)return null;const n=A.length;let r=t,i=0;for(;i<n;){const a=r[A[i]];if(a===void 0||Ht(r))return null;r=a,i++}return r}const HI=t=>t,RI=t=>"",PI="text",VI=t=>t.length===0?"":J_(t),KI=z_;function aB(t,e){return t=Math.abs(t),e===2?t?t>1?1:0:1:t?Math.min(t,2):0}function $I(t){const e=DA(t.pluralIndex)?t.pluralIndex:-1;return t.named&&(DA(t.named.count)||DA(t.named.n))?DA(t.named.count)?t.named.count:DA(t.named.n)?t.named.n:e:e}function GI(t,e){e.count||(e.count=t),e.n||(e.n=t)}function WI(t={}){const e=t.locale,A=$I(t),n=vt(t.pluralRules)&&He(e)&&Ht(t.pluralRules[e])?t.pluralRules[e]:aB,r=vt(t.pluralRules)&&He(e)&&Ht(t.pluralRules[e])?aB:void 0,i=Q=>Q[n(A,Q.length,r)],a=t.list||[],s=Q=>a[Q],c=t.named||{};DA(t.pluralIndex)&&GI(A,c);const d=Q=>c[Q];function f(Q){const k=Ht(t.messages)?t.messages(Q):vt(t.messages)?t.messages[Q]:!1;return k||(t.parent?t.parent.message(Q):RI)}const h=Q=>t.modifiers?t.modifiers[Q]:HI,m=gt(t.processor)&&Ht(t.processor.normalize)?t.processor.normalize:VI,g=gt(t.processor)&&Ht(t.processor.interpolate)?t.processor.interpolate:KI,B=gt(t.processor)&&He(t.processor.type)?t.processor.type:PI,v={list:s,named:d,plural:i,linked:(Q,...k)=>{const[F,C]=k;let D="text",E="";k.length===1?vt(F)?(E=F.modifier||E,D=F.type||D):He(F)&&(E=F||E):k.length===2&&(He(F)&&(E=F||E),He(C)&&(D=C||D));const x=f(Q)(v),O=D==="vnode"&&aA(x)&&E?x[0]:x;return E?h(E)(O,D):O},message:f,type:B,interpolate:g,normalize:m,values:MA({},a,c)};return v}let As=null;function YI(t){As=t}function zI(t,e,A){As&&As.emit("i18n:init",{timestamp:Date.now(),i18n:t,version:e,meta:A})}const JI=XI("function:translate");function XI(t){return e=>As&&As.emit(t,e)}const oB=kl.__EXTEND_POINT__,ea=El(oB),zA={NOT_FOUND_KEY:oB,FALLBACK_TO_TRANSLATE:ea(),CANNOT_FORMAT_NUMBER:ea(),FALLBACK_TO_NUMBER_FORMAT:ea(),CANNOT_FORMAT_DATE:ea(),FALLBACK_TO_DATE_FORMAT:ea(),EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER:ea(),__EXTEND_POINT__:ea()},qI={[zA.NOT_FOUND_KEY]:"Not found '{key}' key in '{locale}' locale messages.",[zA.FALLBACK_TO_TRANSLATE]:"Fall back to translate '{key}' key with '{target}' locale.",[zA.CANNOT_FORMAT_NUMBER]:"Cannot format a number value due to not supported Intl.NumberFormat.",[zA.FALLBACK_TO_NUMBER_FORMAT]:"Fall back to number format '{key}' key with '{target}' locale.",[zA.CANNOT_FORMAT_DATE]:"Cannot format a date value due to not supported Intl.DateTimeFormat.",[zA.FALLBACK_TO_DATE_FORMAT]:"Fall back to datetime format '{key}' key with '{target}' locale.",[zA.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER]:"This project is using Custom Message Compiler, which is an experimental feature. It may receive breaking changes or be removed in the future."};function ta(t,...e){return Ld(qI[t],...e)}const sB=Ze.__EXTEND_POINT__,Aa=El(sB),gA={INVALID_ARGUMENT:sB,INVALID_DATE_ARGUMENT:Aa(),INVALID_ISO_DATE_ARGUMENT:Aa(),NOT_SUPPORT_NON_STRING_MESSAGE:Aa(),NOT_SUPPORT_LOCALE_PROMISE_VALUE:Aa(),NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:Aa(),NOT_SUPPORT_LOCALE_TYPE:Aa(),__EXTEND_POINT__:Aa()};function hr(t){return za(t,null,process.env.NODE_ENV!=="production"?{messages:jI}:void 0)}const jI={[gA.INVALID_ARGUMENT]:"Invalid arguments",[gA.INVALID_DATE_ARGUMENT]:"The date provided is an invalid Date object.Make sure your Date represents a valid date.",[gA.INVALID_ISO_DATE_ARGUMENT]:"The argument provided is not a valid ISO date string",[gA.NOT_SUPPORT_NON_STRING_MESSAGE]:"Not support non-string message",[gA.NOT_SUPPORT_LOCALE_PROMISE_VALUE]:"cannot support promise value",[gA.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION]:"cannot support async function",[gA.NOT_SUPPORT_LOCALE_TYPE]:"cannot support locale type"};function Rd(t,e){return e.locale!=null?lB(e.locale):lB(t.locale)}let Pd;function lB(t){if(He(t))return t;if(Ht(t)){if(t.resolvedOnce&&Pd!=null)return Pd;if(t.constructor.name==="Function"){const e=t();if(Y_(e))throw hr(gA.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return Pd=e}else throw hr(gA.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw hr(gA.NOT_SUPPORT_LOCALE_TYPE)}function ZI(t,e,A){return[...new Set([A,...aA(e)?e:vt(e)?Object.keys(e):He(e)?[e]:[A]])]}function cB(t,e,A){const n=He(A)?A:ns,r=t;r.__localeChainCache||(r.__localeChainCache=new Map);let i=r.__localeChainCache.get(n);if(!i){i=[];let a=[A];for(;aA(a);)a=uB(i,a,e);const s=aA(e)||!gt(e)?e:e.default?e.default:null;a=He(s)?[s]:s,aA(a)&&uB(i,a,!1),r.__localeChainCache.set(n,i)}return i}function uB(t,e,A){let n=!0;for(let r=0;r<e.length&&xt(n);r++){const i=e[r];He(i)&&(n=eS(t,e[r],A))}return n}function eS(t,e,A){let n;const r=e.split("-");do{const i=r.join("-");n=tS(t,i,A),r.splice(-1,1)}while(r.length&&n===!0);return n}function tS(t,e,A){let n=!1;if(!t.includes(e)&&(n=!0,e)){n=e[e.length-1]!=="!";const r=e.replace(/!/g,"");t.push(r),(aA(A)||gt(A))&&A[r]&&(n=A[r])}return n}const AS="9.13.1",_l=-1,ns="en-US",Il="",dB=t=>`${t.charAt(0).toLocaleUpperCase()}${t.substr(1)}`;function nS(){return{upper:(t,e)=>e==="text"&&He(t)?t.toUpperCase():e==="vnode"&&vt(t)&&"__v_isVNode"in t?t.children.toUpperCase():t,lower:(t,e)=>e==="text"&&He(t)?t.toLowerCase():e==="vnode"&&vt(t)&&"__v_isVNode"in t?t.children.toLowerCase():t,capitalize:(t,e)=>e==="text"&&He(t)?dB(t):e==="vnode"&&vt(t)&&"__v_isVNode"in t?dB(t.children):t}}let fB;function hB(t){fB=t}let pB;function rS(t){pB=t}let mB;function iS(t){mB=t}let gB=null;const aS=t=>{gB=t},oS=()=>gB;let BB=null;const wB=t=>{BB=t},sS=()=>BB;let yB=0;function lS(t={}){const e=Ht(t.onWarn)?t.onWarn:Or,A=He(t.version)?t.version:AS,n=He(t.locale)||Ht(t.locale)?t.locale:ns,r=Ht(n)?ns:n,i=aA(t.fallbackLocale)||gt(t.fallbackLocale)||He(t.fallbackLocale)||t.fallbackLocale===!1?t.fallbackLocale:r,a=gt(t.messages)?t.messages:{[r]:{}},s=gt(t.datetimeFormats)?t.datetimeFormats:{[r]:{}},c=gt(t.numberFormats)?t.numberFormats:{[r]:{}},d=MA({},t.modifiers||{},nS()),f=t.pluralRules||{},h=Ht(t.missing)?t.missing:null,m=xt(t.missingWarn)||Ya(t.missingWarn)?t.missingWarn:!0,g=xt(t.fallbackWarn)||Ya(t.fallbackWarn)?t.fallbackWarn:!0,B=!!t.fallbackFormat,y=!!t.unresolving,v=Ht(t.postTranslation)?t.postTranslation:null,Q=gt(t.processor)?t.processor:null,k=xt(t.warnHtmlMessage)?t.warnHtmlMessage:!0,F=!!t.escapeParameter,C=Ht(t.messageCompiler)?t.messageCompiler:fB;process.env.NODE_ENV!=="production"&&Ht(t.messageCompiler)&&qg(ta(zA.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));const D=Ht(t.messageResolver)?t.messageResolver:pB||NI,E=Ht(t.localeFallbacker)?t.localeFallbacker:mB||ZI,x=vt(t.fallbackContext)?t.fallbackContext:void 0,O=t,S=vt(O.__datetimeFormatters)?O.__datetimeFormatters:new Map,K=vt(O.__numberFormatters)?O.__numberFormatters:new Map,de=vt(O.__meta)?O.__meta:{};yB++;const ce={version:A,cid:yB,locale:n,fallbackLocale:i,messages:a,modifiers:d,pluralRules:f,missing:h,missingWarn:m,fallbackWarn:g,fallbackFormat:B,unresolving:y,postTranslation:v,processor:Q,warnHtmlMessage:k,escapeParameter:F,messageCompiler:C,messageResolver:D,localeFallbacker:E,fallbackContext:x,onWarn:e,__meta:de};return ce.datetimeFormats=s,ce.numberFormats=c,ce.__datetimeFormatters=S,ce.__numberFormatters=K,process.env.NODE_ENV!=="production"&&(ce.__v_emitter=O.__v_emitter!=null?O.__v_emitter:void 0),(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__)&&zI(ce,A,de),ce}function Sl(t,e){return t instanceof RegExp?t.test(e):t}function CB(t,e){return t instanceof RegExp?t.test(e):t}function Vd(t,e,A,n,r){const{missing:i,onWarn:a}=t;if(process.env.NODE_ENV!=="production"){const s=t.__v_emitter;s&&s.emit("missing",{locale:A,key:e,type:r,groupId:`${r}:${e}`})}if(i!==null){const s=i(t,A,e,r);return He(s)?s:e}else return process.env.NODE_ENV!=="production"&&CB(n,e)&&a(ta(zA.NOT_FOUND_KEY,{key:e,locale:A})),e}function rs(t,e,A){const n=t;n.__localeChainCache=new Map,t.localeFallbacker(t,A,e)}function bB(t,e){return t===e?!1:t.split("-")[0]===e.split("-")[0]}function cS(t,e){const A=e.indexOf(t);if(A===-1)return!1;for(let n=A+1;n<e.length;n++)if(bB(t,e[n]))return!0;return!1}function Kd(t){return A=>uS(A,t)}function uS(t,e){const A=e.b||e.body;if((A.t||A.type)===1){const n=A,r=n.c||n.cases;return t.plural(r.reduce((i,a)=>[...i,vB(t,a)],[]))}else return vB(t,A)}function vB(t,e){const A=e.s||e.static;if(A)return t.type==="text"?A:t.normalize([A]);{const n=(e.i||e.items).reduce((r,i)=>[...r,$d(t,i)],[]);return t.normalize(n)}}function $d(t,e){const A=e.t||e.type;switch(A){case 3:{const n=e;return n.v||n.value}case 9:{const n=e;return n.v||n.value}case 4:{const n=e;return t.interpolate(t.named(n.k||n.key))}case 5:{const n=e;return t.interpolate(t.list(n.i!=null?n.i:n.index))}case 6:{const n=e,r=n.m||n.modifier;return t.linked($d(t,n.k||n.key),r?$d(t,r):void 0,t.type)}case 7:{const n=e;return n.v||n.value}case 8:{const n=e;return n.v||n.value}default:throw new Error(`unhandled node type on format message part: ${A}`)}}const dS="Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS.";function EB(t,e){e&&aI(t)&&Or(Ld(dS,{source:t}))}const QB=t=>t;let qa=Object.create(null);function FB(t){t.code===kl.USE_MODULO_SYNTAX&&Or(`The use of named interpolation with modulo syntax is deprecated. It will be removed in v10.
18
+ reference: https://vue-i18n.intlify.dev/guide/essentials/syntax#rails-i18n-format
19
+ (message compiler warning message: ${t.message})`)}const na=t=>vt(t)&&(t.t===0||t.type===0)&&("b"in t||"body"in t);function UB(t,e={}){let A=!1;const n=e.onError||rI;return e.onError=r=>{A=!0,n(r)},{..._I(t,e),detectError:A}}const fS=(t,e)=>{if(!He(t))throw hr(gA.NOT_SUPPORT_NON_STRING_MESSAGE);process.env.NODE_ENV!=="production"&&(e.onWarn=FB);{const A=xt(e.warnHtmlMessage)?e.warnHtmlMessage:!0;process.env.NODE_ENV!=="production"&&EB(t,A);const r=(e.onCacheKey||QB)(t),i=qa[r];if(i)return i;const{code:a,detectError:s}=UB(t,e),c=new Function(`return ${a}`)();return s?c:qa[r]=c}};function hS(t,e){if(process.env.NODE_ENV!=="production"&&(e.onWarn=FB),__INTLIFY_JIT_COMPILATION__&&!__INTLIFY_DROP_MESSAGE_COMPILER__&&He(t)){const A=xt(e.warnHtmlMessage)?e.warnHtmlMessage:!0;process.env.NODE_ENV!=="production"&&EB(t,A);const r=(e.onCacheKey||QB)(t),i=qa[r];if(i)return i;const{ast:a,detectError:s}=UB(t,{...e,location:process.env.NODE_ENV!=="production",jit:!0}),c=Kd(a);return s?c:qa[r]=c}else{if(process.env.NODE_ENV!=="production"&&!na(t))return Or(`the message that is resolve with key '${e.key}' is not supported for jit compilation`),()=>t;const A=t.cacheKey;if(A){const n=qa[A];return n||(qa[A]=Kd(t))}else return Kd(t)}}const kB=()=>"",_n=t=>Ht(t);function _B(t,...e){const{fallbackFormat:A,postTranslation:n,unresolving:r,messageCompiler:i,fallbackLocale:a,messages:s}=t,[c,d]=Gd(...e),f=xt(d.missingWarn)?d.missingWarn:t.missingWarn,h=xt(d.fallbackWarn)?d.fallbackWarn:t.fallbackWarn,m=xt(d.escapeParameter)?d.escapeParameter:t.escapeParameter,g=!!d.resolvedMessage,B=He(d.default)||xt(d.default)?xt(d.default)?i?c:()=>c:d.default:A?i?c:()=>c:"",y=A||B!=="",v=Rd(t,d);m&&pS(d);let[Q,k,F]=g?[c,v,s[v]||{}]:IB(t,c,v,a,h,f),C=Q,D=c;if(!g&&!(He(C)||na(C)||_n(C))&&y&&(C=B,D=C),!g&&(!(He(C)||na(C)||_n(C))||!He(k)))return r?_l:c;if(process.env.NODE_ENV!=="production"&&He(C)&&t.messageCompiler==null)return Or(`The message format compilation is not supported in this build. Because message compiler isn't included. You need to pre-compilation all message format. So translate function return '${c}'.`),c;let E=!1;const x=()=>{E=!0},O=_n(C)?C:SB(t,c,k,C,D,x);if(E)return C;const S=wS(t,k,F,d),K=WI(S),de=mS(t,O,K),ce=n?n(de,c):de;if(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const ge={timestamp:Date.now(),key:He(c)?c:_n(C)?C.key:"",locale:k||(_n(C)?C.locale:""),format:He(C)?C:_n(C)?C.source:"",message:ce};ge.meta=MA({},t.__meta,oS()||{}),JI(ge)}return ce}function pS(t){aA(t.list)?t.list=t.list.map(e=>He(e)?Wg(e):e):vt(t.named)&&Object.keys(t.named).forEach(e=>{He(t.named[e])&&(t.named[e]=Wg(t.named[e]))})}function IB(t,e,A,n,r,i){const{messages:a,onWarn:s,messageResolver:c,localeFallbacker:d}=t,f=d(t,n,A);let h={},m,g=null,B=A,y=null;const v="translate";for(let Q=0;Q<f.length;Q++){if(m=y=f[Q],process.env.NODE_ENV!=="production"&&A!==m&&!bB(A,m)&&Sl(r,e)&&s(ta(zA.FALLBACK_TO_TRANSLATE,{key:e,target:m})),process.env.NODE_ENV!=="production"&&A!==m){const D=t.__v_emitter;D&&D.emit("fallback",{type:v,key:e,from:B,to:y,groupId:`${v}:${e}`})}h=a[m]||{};let k=null,F,C;if(process.env.NODE_ENV!=="production"&&xr&&(k=window.performance.now(),F="intlify-message-resolve-start",C="intlify-message-resolve-end",gn&&gn(F)),(g=c(h,e))===null&&(g=h[e]),process.env.NODE_ENV!=="production"&&xr){const D=window.performance.now(),E=t.__v_emitter;E&&k&&g&&E.emit("message-resolve",{type:"message-resolve",key:e,message:g,time:D-k,groupId:`${v}:${e}`}),F&&C&&gn&&Zi&&(gn(C),Zi("intlify message resolve",F,C))}if(He(g)||na(g)||_n(g))break;if(!cS(m,f)){const D=Vd(t,e,m,i,v);D!==e&&(g=D)}B=y}return[g,m,h]}function SB(t,e,A,n,r,i){const{messageCompiler:a,warnHtmlMessage:s}=t;if(_n(n)){const m=n;return m.locale=m.locale||A,m.key=m.key||e,m}if(a==null){const m=()=>n;return m.locale=A,m.key=e,m}let c=null,d,f;process.env.NODE_ENV!=="production"&&xr&&(c=window.performance.now(),d="intlify-message-compilation-start",f="intlify-message-compilation-end",gn&&gn(d));const h=a(n,gS(t,A,r,n,s,i));if(process.env.NODE_ENV!=="production"&&xr){const m=window.performance.now(),g=t.__v_emitter;g&&c&&g.emit("message-compilation",{type:"message-compilation",message:n,time:m-c,groupId:`translate:${e}`}),d&&f&&gn&&Zi&&(gn(f),Zi("intlify message compilation",d,f))}return h.locale=A,h.key=e,h.source=n,h}function mS(t,e,A){let n=null,r,i;process.env.NODE_ENV!=="production"&&xr&&(n=window.performance.now(),r="intlify-message-evaluation-start",i="intlify-message-evaluation-end",gn&&gn(r));const a=e(A);if(process.env.NODE_ENV!=="production"&&xr){const s=window.performance.now(),c=t.__v_emitter;c&&n&&c.emit("message-evaluation",{type:"message-evaluation",value:a,time:s-n,groupId:`translate:${e.key}`}),r&&i&&gn&&Zi&&(gn(i),Zi("intlify message evaluation",r,i))}return a}function Gd(...t){const[e,A,n]=t,r={};if(!He(e)&&!DA(e)&&!_n(e)&&!na(e))throw hr(gA.INVALID_ARGUMENT);const i=DA(e)?String(e):(_n(e),e);return DA(A)?r.plural=A:He(A)?r.default=A:gt(A)&&!bl(A)?r.named=A:aA(A)&&(r.list=A),DA(n)?r.plural=n:He(n)?r.default=n:gt(n)&&MA(r,n),[i,r]}function gS(t,e,A,n,r,i){return{locale:e,key:A,warnHtmlMessage:r,onError:a=>{if(i&&i(a),process.env.NODE_ENV!=="production"){const s=BS(n),c=`Message compilation error: ${a.message}`,d=a.location&&s&&X_(s,a.location.start.offset,a.location.end.offset),f=t.__v_emitter;f&&s&&f.emit("compile-error",{message:s,error:a.message,start:a.location&&a.location.start.offset,end:a.location&&a.location.end.offset,groupId:`translate:${A}`}),console.error(d?`${c}
20
+ ${d}`:c)}else throw a},onCacheKey:a=>K_(e,A,a)}}function BS(t){if(He(t))return t;if(t.loc&&t.loc.source)return t.loc.source}function wS(t,e,A,n){const{modifiers:r,pluralRules:i,messageResolver:a,fallbackLocale:s,fallbackWarn:c,missingWarn:d,fallbackContext:f}=t,m={locale:e,modifiers:r,pluralRules:i,messages:g=>{let B=a(A,g);if(B==null&&f){const[,,y]=IB(f,g,e,s,c,d);B=a(y,g)}if(He(B)||na(B)){let y=!1;const Q=SB(t,g,e,B,g,()=>{y=!0});return y?kB:Q}else return _n(B)?B:kB}};return t.processor&&(m.processor=t.processor),n.list&&(m.list=n.list),n.named&&(m.named=n.named),DA(n.plural)&&(m.pluralIndex=n.plural),m}const TB=typeof Intl<"u",xB={dateTimeFormat:TB&&typeof Intl.DateTimeFormat<"u",numberFormat:TB&&typeof Intl.NumberFormat<"u"};function DB(t,...e){const{datetimeFormats:A,unresolving:n,fallbackLocale:r,onWarn:i,localeFallbacker:a}=t,{__datetimeFormatters:s}=t;if(process.env.NODE_ENV!=="production"&&!xB.dateTimeFormat)return i(ta(zA.CANNOT_FORMAT_DATE)),Il;const[c,d,f,h]=Wd(...e),m=xt(f.missingWarn)?f.missingWarn:t.missingWarn,g=xt(f.fallbackWarn)?f.fallbackWarn:t.fallbackWarn,B=!!f.part,y=Rd(t,f),v=a(t,r,y);if(!He(c)||c==="")return new Intl.DateTimeFormat(y,h).format(d);let Q={},k,F=null,C=y,D=null;const E="datetime format";for(let S=0;S<v.length;S++){if(k=D=v[S],process.env.NODE_ENV!=="production"&&y!==k&&Sl(g,c)&&i(ta(zA.FALLBACK_TO_DATE_FORMAT,{key:c,target:k})),process.env.NODE_ENV!=="production"&&y!==k){const K=t.__v_emitter;K&&K.emit("fallback",{type:E,key:c,from:C,to:D,groupId:`${E}:${c}`})}if(Q=A[k]||{},F=Q[c],gt(F))break;Vd(t,c,k,m,E),C=D}if(!gt(F)||!He(k))return n?_l:c;let x=`${k}__${c}`;bl(h)||(x=`${x}__${JSON.stringify(h)}`);let O=s.get(x);return O||(O=new Intl.DateTimeFormat(k,MA({},F,h)),s.set(x,O)),B?O.formatToParts(d):O.format(d)}const MB=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function Wd(...t){const[e,A,n,r]=t,i={};let a={},s;if(He(e)){const c=e.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!c)throw hr(gA.INVALID_ISO_DATE_ARGUMENT);const d=c[3]?c[3].trim().startsWith("T")?`${c[1].trim()}${c[3].trim()}`:`${c[1].trim()}T${c[3].trim()}`:c[1].trim();s=new Date(d);try{s.toISOString()}catch{throw hr(gA.INVALID_ISO_DATE_ARGUMENT)}}else if(G_(e)){if(isNaN(e.getTime()))throw hr(gA.INVALID_DATE_ARGUMENT);s=e}else if(DA(e))s=e;else throw hr(gA.INVALID_ARGUMENT);return He(A)?i.key=A:gt(A)&&Object.keys(A).forEach(c=>{MB.includes(c)?a[c]=A[c]:i[c]=A[c]}),He(n)?i.locale=n:gt(n)&&(a=n),gt(r)&&(a=r),[i.key||"",s,i,a]}function OB(t,e,A){const n=t;for(const r in A){const i=`${e}__${r}`;n.__datetimeFormatters.has(i)&&n.__datetimeFormatters.delete(i)}}function NB(t,...e){const{numberFormats:A,unresolving:n,fallbackLocale:r,onWarn:i,localeFallbacker:a}=t,{__numberFormatters:s}=t;if(process.env.NODE_ENV!=="production"&&!xB.numberFormat)return i(ta(zA.CANNOT_FORMAT_NUMBER)),Il;const[c,d,f,h]=Yd(...e),m=xt(f.missingWarn)?f.missingWarn:t.missingWarn,g=xt(f.fallbackWarn)?f.fallbackWarn:t.fallbackWarn,B=!!f.part,y=Rd(t,f),v=a(t,r,y);if(!He(c)||c==="")return new Intl.NumberFormat(y,h).format(d);let Q={},k,F=null,C=y,D=null;const E="number format";for(let S=0;S<v.length;S++){if(k=D=v[S],process.env.NODE_ENV!=="production"&&y!==k&&Sl(g,c)&&i(ta(zA.FALLBACK_TO_NUMBER_FORMAT,{key:c,target:k})),process.env.NODE_ENV!=="production"&&y!==k){const K=t.__v_emitter;K&&K.emit("fallback",{type:E,key:c,from:C,to:D,groupId:`${E}:${c}`})}if(Q=A[k]||{},F=Q[c],gt(F))break;Vd(t,c,k,m,E),C=D}if(!gt(F)||!He(k))return n?_l:c;let x=`${k}__${c}`;bl(h)||(x=`${x}__${JSON.stringify(h)}`);let O=s.get(x);return O||(O=new Intl.NumberFormat(k,MA({},F,h)),s.set(x,O)),B?O.formatToParts(d):O.format(d)}const LB=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function Yd(...t){const[e,A,n,r]=t,i={};let a={};if(!DA(e))throw hr(gA.INVALID_ARGUMENT);const s=e;return He(A)?i.key=A:gt(A)&&Object.keys(A).forEach(c=>{LB.includes(c)?a[c]=A[c]:i[c]=A[c]}),He(n)?i.locale=n:gt(n)&&(a=n),gt(r)&&(a=r),[i.key||"",s,i,a]}function HB(t,e,A){const n=t;for(const r in A){const i=`${e}__${r}`;n.__numberFormatters.has(i)&&n.__numberFormatters.delete(i)}}II();/*!
21
+ * vue-i18n v9.13.1
22
+ * (c) 2024 kazuya kawaguchi
23
+ * Released under the MIT License.
24
+ */const yS="9.13.1";function CS(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(Mr().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(Mr().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(Mr().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Mr().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Mr().__INTLIFY_PROD_DEVTOOLS__=!1)}const RB=zA.__EXTEND_POINT__,Lr=El(RB),an={FALLBACK_TO_ROOT:RB,NOT_SUPPORTED_PRESERVE:Lr(),NOT_SUPPORTED_FORMATTER:Lr(),NOT_SUPPORTED_PRESERVE_DIRECTIVE:Lr(),NOT_SUPPORTED_GET_CHOICE_INDEX:Lr(),COMPONENT_NAME_LEGACY_COMPATIBLE:Lr(),NOT_FOUND_PARENT_SCOPE:Lr(),IGNORE_OBJ_FLATTEN:Lr(),NOTICE_DROP_ALLOW_COMPOSITION:Lr(),NOTICE_DROP_TRANSLATE_EXIST_COMPATIBLE_FLAG:Lr()},bS={[an.FALLBACK_TO_ROOT]:"Fall back to {type} '{key}' with root locale.",[an.NOT_SUPPORTED_PRESERVE]:"Not supported 'preserve'.",[an.NOT_SUPPORTED_FORMATTER]:"Not supported 'formatter'.",[an.NOT_SUPPORTED_PRESERVE_DIRECTIVE]:"Not supported 'preserveDirectiveContent'.",[an.NOT_SUPPORTED_GET_CHOICE_INDEX]:"Not supported 'getChoiceIndex'.",[an.COMPONENT_NAME_LEGACY_COMPATIBLE]:"Component name legacy compatible: '{name}' -> 'i18n'",[an.NOT_FOUND_PARENT_SCOPE]:"Not found parent scope. use the global scope.",[an.IGNORE_OBJ_FLATTEN]:"Ignore object flatten: '{key}' key has an string value",[an.NOTICE_DROP_ALLOW_COMPOSITION]:"'allowComposition' option will be dropped in the next major version. For more information, please see 👉 https://tinyurl.com/2p97mcze",[an.NOTICE_DROP_TRANSLATE_EXIST_COMPATIBLE_FLAG]:"'translateExistCompatible' option will be dropped in the next major version."};function Tl(t,...e){return Ld(bS[t],...e)}const PB=gA.__EXTEND_POINT__,on=El(PB),Gt={UNEXPECTED_RETURN_TYPE:PB,INVALID_ARGUMENT:on(),MUST_BE_CALL_SETUP_TOP:on(),NOT_INSTALLED:on(),NOT_AVAILABLE_IN_LEGACY_MODE:on(),REQUIRED_VALUE:on(),INVALID_VALUE:on(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:on(),NOT_INSTALLED_WITH_PROVIDE:on(),UNEXPECTED_ERROR:on(),NOT_COMPATIBLE_LEGACY_VUE_I18N:on(),BRIDGE_SUPPORT_VUE_2_ONLY:on(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:on(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:on(),__EXTEND_POINT__:on()};function hi(t,...e){return za(t,null,process.env.NODE_ENV!=="production"?{messages:vS,args:e}:void 0)}const vS={[Gt.UNEXPECTED_RETURN_TYPE]:"Unexpected return type in composer",[Gt.INVALID_ARGUMENT]:"Invalid argument",[Gt.MUST_BE_CALL_SETUP_TOP]:"Must be called at the top of a `setup` function",[Gt.NOT_INSTALLED]:"Need to install with `app.use` function",[Gt.UNEXPECTED_ERROR]:"Unexpected error",[Gt.NOT_AVAILABLE_IN_LEGACY_MODE]:"Not available in legacy mode",[Gt.REQUIRED_VALUE]:"Required in value: {0}",[Gt.INVALID_VALUE]:"Invalid value",[Gt.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN]:"Cannot setup vue-devtools plugin",[Gt.NOT_INSTALLED_WITH_PROVIDE]:"Need to install with `provide` function",[Gt.NOT_COMPATIBLE_LEGACY_VUE_I18N]:"Not compatible legacy VueI18n.",[Gt.BRIDGE_SUPPORT_VUE_2_ONLY]:"vue-i18n-bridge support Vue 2.x only",[Gt.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION]:"Must define ‘i18n’ option or custom block in Composition API with using local scope in Legacy API mode",[Gt.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]:"Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"},zd=Dr("__translateVNode"),Jd=Dr("__datetimeParts"),Xd=Dr("__numberParts"),qd=Dr("__enableEmitter"),jd=Dr("__disableEmitter"),ES=Dr("__setPluralRules"),VB=Dr("__injectWithOption"),Zd=Dr("__dispose");function is(t){if(!vt(t))return t;for(const e in t)if(vl(t,e))if(!e.includes("."))vt(t[e])&&is(t[e]);else{const A=e.split("."),n=A.length-1;let r=t,i=!1;for(let a=0;a<n;a++){if(A[a]in r||(r[A[a]]={}),!vt(r[A[a]])){process.env.NODE_ENV!=="production"&&Or(Tl(an.IGNORE_OBJ_FLATTEN,{key:A[a]})),i=!0;break}r=r[A[a]]}i||(r[A[n]]=t[e],delete t[e]),vt(r[A[n]])&&is(r[A[n]])}return t}function ef(t,e){const{messages:A,__i18n:n,messageResolver:r,flatJson:i}=e,a=gt(A)?A:aA(n)?{}:{[t]:{}};if(aA(n)&&n.forEach(s=>{if("locale"in s&&"resource"in s){const{locale:c,resource:d}=s;c?(a[c]=a[c]||{},Fl(d,a[c])):Fl(d,a)}else He(s)&&Fl(JSON.parse(s),a)}),r==null&&i)for(const s in a)vl(a,s)&&is(a[s]);return a}function KB(t){return t.type}function QS(t,e,A){let n=vt(e.messages)?e.messages:{};"__i18nGlobal"in A&&(n=ef(t.locale.value,{messages:n,__i18n:A.__i18nGlobal}));const r=Object.keys(n);r.length&&r.forEach(i=>{t.mergeLocaleMessage(i,n[i])});{if(vt(e.datetimeFormats)){const i=Object.keys(e.datetimeFormats);i.length&&i.forEach(a=>{t.mergeDateTimeFormat(a,e.datetimeFormats[a])})}if(vt(e.numberFormats)){const i=Object.keys(e.numberFormats);i.length&&i.forEach(a=>{t.mergeNumberFormat(a,e.numberFormats[a])})}}}function $B(t){return o.createVNode(o.Text,null,t,0)}const GB="__INTLIFY_META__",WB=()=>[],FS=()=>!1;let YB=0;function zB(t){return(e,A,n,r)=>t(A,n,o.getCurrentInstance()||void 0,r)}const US=()=>{const t=o.getCurrentInstance();let e=null;return t&&(e=KB(t)[GB])?{[GB]:e}:null};function kS(t={},e){const{__root:A,__injectWithOption:n}=t,r=A===void 0,i=t.flatJson,a=xr?o.ref:o.shallowRef,s=!!t.translateExistCompatible;process.env.NODE_ENV!=="production"&&s&&qg(Tl(an.NOTICE_DROP_TRANSLATE_EXIST_COMPATIBLE_FLAG));let c=xt(t.inheritLocale)?t.inheritLocale:!0;const d=a(A&&c?A.locale.value:He(t.locale)?t.locale:ns),f=a(A&&c?A.fallbackLocale.value:He(t.fallbackLocale)||aA(t.fallbackLocale)||gt(t.fallbackLocale)||t.fallbackLocale===!1?t.fallbackLocale:d.value),h=a(ef(d.value,t)),m=a(gt(t.datetimeFormats)?t.datetimeFormats:{[d.value]:{}}),g=a(gt(t.numberFormats)?t.numberFormats:{[d.value]:{}});let B=A?A.missingWarn:xt(t.missingWarn)||Ya(t.missingWarn)?t.missingWarn:!0,y=A?A.fallbackWarn:xt(t.fallbackWarn)||Ya(t.fallbackWarn)?t.fallbackWarn:!0,v=A?A.fallbackRoot:xt(t.fallbackRoot)?t.fallbackRoot:!0,Q=!!t.fallbackFormat,k=Ht(t.missing)?t.missing:null,F=Ht(t.missing)?zB(t.missing):null,C=Ht(t.postTranslation)?t.postTranslation:null,D=A?A.warnHtmlMessage:xt(t.warnHtmlMessage)?t.warnHtmlMessage:!0,E=!!t.escapeParameter;const x=A?A.modifiers:gt(t.modifiers)?t.modifiers:{};let O=t.pluralRules||A&&A.pluralRules,S;S=(()=>{r&&wB(null);const ne={version:yS,locale:d.value,fallbackLocale:f.value,messages:h.value,modifiers:x,pluralRules:O,missing:F===null?void 0:F,missingWarn:B,fallbackWarn:y,fallbackFormat:Q,unresolving:!0,postTranslation:C===null?void 0:C,warnHtmlMessage:D,escapeParameter:E,messageResolver:t.messageResolver,messageCompiler:t.messageCompiler,__meta:{framework:"vue"}};ne.datetimeFormats=m.value,ne.numberFormats=g.value,ne.__datetimeFormatters=gt(S)?S.__datetimeFormatters:void 0,ne.__numberFormatters=gt(S)?S.__numberFormatters:void 0,process.env.NODE_ENV!=="production"&&(ne.__v_emitter=gt(S)?S.__v_emitter:void 0);const ee=lS(ne);return r&&wB(ee),ee})(),rs(S,d.value,f.value);function de(){return[d.value,f.value,h.value,m.value,g.value]}const ce=o.computed({get:()=>d.value,set:ne=>{d.value=ne,S.locale=d.value}}),ge=o.computed({get:()=>f.value,set:ne=>{f.value=ne,S.fallbackLocale=f.value,rs(S,d.value,ne)}}),V=o.computed(()=>h.value),X=o.computed(()=>m.value),$=o.computed(()=>g.value);function re(){return Ht(C)?C:null}function te(ne){C=ne,S.postTranslation=ne}function q(){return k}function me(ne){ne!==null&&(F=zB(ne)),k=ne,S.missing=F}function j(ne,ee){return ne!=="translate"||!ee.resolvedMessage}const Ee=(ne,ee,$e,dt,vA,en)=>{de();let PA;try{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,r||(S.fallbackContext=A?sS():void 0),PA=ne(S)}finally{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,r||(S.fallbackContext=void 0)}if($e!=="translate exists"&&DA(PA)&&PA===_l||$e==="translate exists"&&!PA){const[oe,xe]=ee();if(process.env.NODE_ENV!=="production"&&A&&He(oe)&&j($e,xe)&&(v&&(Sl(y,oe)||CB(B,oe))&&Or(Tl(an.FALLBACK_TO_ROOT,{key:oe,type:$e})),process.env.NODE_ENV!=="production")){const{__v_emitter:Ke}=S;Ke&&v&&Ke.emit("fallback",{type:$e,key:oe,to:"global",groupId:`${$e}:${oe}`})}return A&&v?dt(A):vA(oe)}else{if(en(PA))return PA;throw hi(Gt.UNEXPECTED_RETURN_TYPE)}};function R(...ne){return Ee(ee=>Reflect.apply(_B,null,[ee,...ne]),()=>Gd(...ne),"translate",ee=>Reflect.apply(ee.t,ee,[...ne]),ee=>ee,ee=>He(ee))}function J(...ne){const[ee,$e,dt]=ne;if(dt&&!vt(dt))throw hi(Gt.INVALID_ARGUMENT);return R(ee,$e,MA({resolvedMessage:!0},dt||{}))}function Ae(...ne){return Ee(ee=>Reflect.apply(DB,null,[ee,...ne]),()=>Wd(...ne),"datetime format",ee=>Reflect.apply(ee.d,ee,[...ne]),()=>Il,ee=>He(ee))}function se(...ne){return Ee(ee=>Reflect.apply(NB,null,[ee,...ne]),()=>Yd(...ne),"number format",ee=>Reflect.apply(ee.n,ee,[...ne]),()=>Il,ee=>He(ee))}function U(ne){return ne.map(ee=>He(ee)||DA(ee)||xt(ee)?$B(String(ee)):ee)}const Ue={normalize:U,interpolate:ne=>ne,type:"vnode"};function At(...ne){return Ee(ee=>{let $e;const dt=ee;try{dt.processor=Ue,$e=Reflect.apply(_B,null,[dt,...ne])}finally{dt.processor=null}return $e},()=>Gd(...ne),"translate",ee=>ee[zd](...ne),ee=>[$B(ee)],ee=>aA(ee))}function ie(...ne){return Ee(ee=>Reflect.apply(NB,null,[ee,...ne]),()=>Yd(...ne),"number format",ee=>ee[Xd](...ne),WB,ee=>He(ee)||aA(ee))}function Ge(...ne){return Ee(ee=>Reflect.apply(DB,null,[ee,...ne]),()=>Wd(...ne),"datetime format",ee=>ee[Jd](...ne),WB,ee=>He(ee)||aA(ee))}function Be(ne){O=ne,S.pluralRules=O}function Y(ne,ee){return Ee(()=>{if(!ne)return!1;const $e=He(ee)?ee:d.value,dt=Ce($e),vA=S.messageResolver(dt,ne);return s?vA!=null:na(vA)||_n(vA)||He(vA)},()=>[ne],"translate exists",$e=>Reflect.apply($e.te,$e,[ne,ee]),FS,$e=>xt($e))}function T(ne){let ee=null;const $e=cB(S,f.value,d.value);for(let dt=0;dt<$e.length;dt++){const vA=h.value[$e[dt]]||{},en=S.messageResolver(vA,ne);if(en!=null){ee=en;break}}return ee}function Fe(ne){const ee=T(ne);return ee??(A?A.tm(ne)||{}:{})}function Ce(ne){return h.value[ne]||{}}function ke(ne,ee){if(i){const $e={[ne]:ee};for(const dt in $e)vl($e,dt)&&is($e[dt]);ee=$e[ne]}h.value[ne]=ee,S.messages=h.value}function nt(ne,ee){h.value[ne]=h.value[ne]||{};const $e={[ne]:ee};if(i)for(const dt in $e)vl($e,dt)&&is($e[dt]);ee=$e[ne],Fl(ee,h.value[ne]),S.messages=h.value}function M(ne){return m.value[ne]||{}}function N(ne,ee){m.value[ne]=ee,S.datetimeFormats=m.value,OB(S,ne,ee)}function le(ne,ee){m.value[ne]=MA(m.value[ne]||{},ee),S.datetimeFormats=m.value,OB(S,ne,ee)}function H(ne){return g.value[ne]||{}}function we(ne,ee){g.value[ne]=ee,S.numberFormats=g.value,HB(S,ne,ee)}function Me(ne,ee){g.value[ne]=MA(g.value[ne]||{},ee),S.numberFormats=g.value,HB(S,ne,ee)}YB++,A&&xr&&(o.watch(A.locale,ne=>{c&&(d.value=ne,S.locale=ne,rs(S,d.value,f.value))}),o.watch(A.fallbackLocale,ne=>{c&&(f.value=ne,S.fallbackLocale=ne,rs(S,d.value,f.value))}));const We={id:YB,locale:ce,fallbackLocale:ge,get inheritLocale(){return c},set inheritLocale(ne){c=ne,ne&&A&&(d.value=A.locale.value,f.value=A.fallbackLocale.value,rs(S,d.value,f.value))},get availableLocales(){return Object.keys(h.value).sort()},messages:V,get modifiers(){return x},get pluralRules(){return O||{}},get isGlobal(){return r},get missingWarn(){return B},set missingWarn(ne){B=ne,S.missingWarn=B},get fallbackWarn(){return y},set fallbackWarn(ne){y=ne,S.fallbackWarn=y},get fallbackRoot(){return v},set fallbackRoot(ne){v=ne},get fallbackFormat(){return Q},set fallbackFormat(ne){Q=ne,S.fallbackFormat=Q},get warnHtmlMessage(){return D},set warnHtmlMessage(ne){D=ne,S.warnHtmlMessage=ne},get escapeParameter(){return E},set escapeParameter(ne){E=ne,S.escapeParameter=ne},t:R,getLocaleMessage:Ce,setLocaleMessage:ke,mergeLocaleMessage:nt,getPostTranslationHandler:re,setPostTranslationHandler:te,getMissingHandler:q,setMissingHandler:me,[ES]:Be};return We.datetimeFormats=X,We.numberFormats=$,We.rt=J,We.te=Y,We.tm=Fe,We.d=Ae,We.n=se,We.getDateTimeFormat=M,We.setDateTimeFormat=N,We.mergeDateTimeFormat=le,We.getNumberFormat=H,We.setNumberFormat=we,We.mergeNumberFormat=Me,We[VB]=n,We[zd]=At,We[Jd]=Ge,We[Xd]=ie,process.env.NODE_ENV!=="production"&&(We[qd]=ne=>{S.__v_emitter=ne},We[jd]=()=>{S.__v_emitter=void 0}),We}const tf={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:t=>t==="parent"||t==="global",default:"parent"},i18n:{type:Object}};function _S({slots:t},e){return e.length===1&&e[0]==="default"?(t.default?t.default():[]).reduce((n,r)=>[...n,...r.type===o.Fragment?r.children:[r]],[]):e.reduce((A,n)=>{const r=t[n];return r&&(A[n]=r()),A},{})}function JB(t){return o.Fragment}MA({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:t=>DA(t)||!isNaN(t)}},tf);function IS(t){return aA(t)&&!He(t[0])}function XB(t,e,A,n){const{slots:r,attrs:i}=e;return()=>{const a={part:!0};let s={};t.locale&&(a.locale=t.locale),He(t.format)?a.key=t.format:vt(t.format)&&(He(t.format.key)&&(a.key=t.format.key),s=Object.keys(t.format).reduce((m,g)=>A.includes(g)?MA({},m,{[g]:t.format[g]}):m,{}));const c=n(t.value,a,s);let d=[a.key];aA(c)?d=c.map((m,g)=>{const B=r[m.type],y=B?B({[m.type]:m.value,index:g,parts:c}):[m.value];return IS(y)&&(y[0].key=`${m.type}-${g}`),y}):He(c)&&(d=[c]);const f=MA({},i),h=He(t.tag)||vt(t.tag)?t.tag:JB();return o.h(h,f,d)}}MA({value:{type:Number,required:!0},format:{type:[String,Object]}},tf),MA({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},tf);function qB(t,e){}const SS=Dr("global-vue-i18n");function as(t={}){const e=o.getCurrentInstance();if(e==null)throw hi(Gt.MUST_BE_CALL_SETUP_TOP);if(!e.isCE&&e.appContext.app!=null&&!e.appContext.app.__VUE_I18N_SYMBOL__)throw hi(Gt.NOT_INSTALLED);const A=TS(e),n=DS(A),r=KB(e),i=xS(t,r);if(__VUE_I18N_LEGACY_API__&&A.mode==="legacy"&&!t.__useComponent){if(!A.allowComposition)throw hi(Gt.NOT_AVAILABLE_IN_LEGACY_MODE);return LS(e,i,n,t)}if(i==="global")return QS(n,t,r),n;if(i==="parent"){let c=MS(A,e,t.__useComponent);return c==null&&(process.env.NODE_ENV!=="production"&&Or(Tl(an.NOT_FOUND_PARENT_SCOPE)),c=n),c}const a=A;let s=a.__getInstance(e);if(s==null){const c=MA({},t);"__i18n"in r&&(c.__i18n=r.__i18n),n&&(c.__root=n),s=kS(c),a.__composerExtend&&(s[Zd]=a.__composerExtend(s)),NS(a,e,s),a.__setInstance(e,s)}return s}function TS(t){{const e=o.inject(t.isCE?SS:t.appContext.app.__VUE_I18N_SYMBOL__);if(!e)throw hi(t.isCE?Gt.NOT_INSTALLED_WITH_PROVIDE:Gt.UNEXPECTED_ERROR);return e}}function xS(t,e){return bl(t)?"__i18n"in e?"local":"global":t.useScope?t.useScope:"local"}function DS(t){return t.mode==="composition"?t.global:t.global.__composer}function MS(t,e,A=!1){let n=null;const r=e.root;let i=OS(e,A);for(;i!=null;){const a=t;if(t.mode==="composition")n=a.__getInstance(i);else if(__VUE_I18N_LEGACY_API__){const s=a.__getInstance(i);s!=null&&(n=s.__composer,A&&n&&!n[VB]&&(n=null))}if(n!=null||r===i)break;i=i.parent}return n}function OS(t,e=!1){return t==null?null:e&&t.vnode.ctx||t.parent}function NS(t,e,A){let n=null;o.onMounted(()=>{if(process.env.NODE_ENV!=="production"&&e.vnode.el){e.vnode.el.__VUE_I18N__=A,n=q_();const r=A;r[qd]&&r[qd](n),n.on("*",qB)}},e),o.onUnmounted(()=>{const r=A;process.env.NODE_ENV!=="production"&&e.vnode.el&&e.vnode.el.__VUE_I18N__&&(n&&n.off("*",qB),r[jd]&&r[jd](),delete e.vnode.el.__VUE_I18N__),t.__deleteInstance(e);const i=r[Zd];i&&(i(),delete r[Zd])},e)}function LS(t,e,A,n={}){const r=e==="local",i=o.shallowRef(null);if(r&&t.proxy&&!(t.proxy.$options.i18n||t.proxy.$options.__i18n))throw hi(Gt.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const a=xt(n.inheritLocale)?n.inheritLocale:!He(n.locale),s=o.ref(!r||a?A.locale.value:He(n.locale)?n.locale:ns),c=o.ref(!r||a?A.fallbackLocale.value:He(n.fallbackLocale)||aA(n.fallbackLocale)||gt(n.fallbackLocale)||n.fallbackLocale===!1?n.fallbackLocale:s.value),d=o.ref(ef(s.value,n)),f=o.ref(gt(n.datetimeFormats)?n.datetimeFormats:{[s.value]:{}}),h=o.ref(gt(n.numberFormats)?n.numberFormats:{[s.value]:{}}),m=r?A.missingWarn:xt(n.missingWarn)||Ya(n.missingWarn)?n.missingWarn:!0,g=r?A.fallbackWarn:xt(n.fallbackWarn)||Ya(n.fallbackWarn)?n.fallbackWarn:!0,B=r?A.fallbackRoot:xt(n.fallbackRoot)?n.fallbackRoot:!0,y=!!n.fallbackFormat,v=Ht(n.missing)?n.missing:null,Q=Ht(n.postTranslation)?n.postTranslation:null,k=r?A.warnHtmlMessage:xt(n.warnHtmlMessage)?n.warnHtmlMessage:!0,F=!!n.escapeParameter,C=r?A.modifiers:gt(n.modifiers)?n.modifiers:{},D=n.pluralRules||r&&A.pluralRules;function E(){return[s.value,c.value,d.value,f.value,h.value]}const x=o.computed({get:()=>i.value?i.value.locale.value:s.value,set:Y=>{i.value&&(i.value.locale.value=Y),s.value=Y}}),O=o.computed({get:()=>i.value?i.value.fallbackLocale.value:c.value,set:Y=>{i.value&&(i.value.fallbackLocale.value=Y),c.value=Y}}),S=o.computed(()=>i.value?i.value.messages.value:d.value),K=o.computed(()=>f.value),de=o.computed(()=>h.value);function ce(){return i.value?i.value.getPostTranslationHandler():Q}function ge(Y){i.value&&i.value.setPostTranslationHandler(Y)}function V(){return i.value?i.value.getMissingHandler():v}function X(Y){i.value&&i.value.setMissingHandler(Y)}function $(Y){return E(),Y()}function re(...Y){return i.value?$(()=>Reflect.apply(i.value.t,null,[...Y])):$(()=>"")}function te(...Y){return i.value?Reflect.apply(i.value.rt,null,[...Y]):""}function q(...Y){return i.value?$(()=>Reflect.apply(i.value.d,null,[...Y])):$(()=>"")}function me(...Y){return i.value?$(()=>Reflect.apply(i.value.n,null,[...Y])):$(()=>"")}function j(Y){return i.value?i.value.tm(Y):{}}function Ee(Y,T){return i.value?i.value.te(Y,T):!1}function R(Y){return i.value?i.value.getLocaleMessage(Y):{}}function J(Y,T){i.value&&(i.value.setLocaleMessage(Y,T),d.value[Y]=T)}function Ae(Y,T){i.value&&i.value.mergeLocaleMessage(Y,T)}function se(Y){return i.value?i.value.getDateTimeFormat(Y):{}}function U(Y,T){i.value&&(i.value.setDateTimeFormat(Y,T),f.value[Y]=T)}function Z(Y,T){i.value&&i.value.mergeDateTimeFormat(Y,T)}function Ue(Y){return i.value?i.value.getNumberFormat(Y):{}}function At(Y,T){i.value&&(i.value.setNumberFormat(Y,T),h.value[Y]=T)}function ie(Y,T){i.value&&i.value.mergeNumberFormat(Y,T)}const Ge={get id(){return i.value?i.value.id:-1},locale:x,fallbackLocale:O,messages:S,datetimeFormats:K,numberFormats:de,get inheritLocale(){return i.value?i.value.inheritLocale:a},set inheritLocale(Y){i.value&&(i.value.inheritLocale=Y)},get availableLocales(){return i.value?i.value.availableLocales:Object.keys(d.value)},get modifiers(){return i.value?i.value.modifiers:C},get pluralRules(){return i.value?i.value.pluralRules:D},get isGlobal(){return i.value?i.value.isGlobal:!1},get missingWarn(){return i.value?i.value.missingWarn:m},set missingWarn(Y){i.value&&(i.value.missingWarn=Y)},get fallbackWarn(){return i.value?i.value.fallbackWarn:g},set fallbackWarn(Y){i.value&&(i.value.missingWarn=Y)},get fallbackRoot(){return i.value?i.value.fallbackRoot:B},set fallbackRoot(Y){i.value&&(i.value.fallbackRoot=Y)},get fallbackFormat(){return i.value?i.value.fallbackFormat:y},set fallbackFormat(Y){i.value&&(i.value.fallbackFormat=Y)},get warnHtmlMessage(){return i.value?i.value.warnHtmlMessage:k},set warnHtmlMessage(Y){i.value&&(i.value.warnHtmlMessage=Y)},get escapeParameter(){return i.value?i.value.escapeParameter:F},set escapeParameter(Y){i.value&&(i.value.escapeParameter=Y)},t:re,getPostTranslationHandler:ce,setPostTranslationHandler:ge,getMissingHandler:V,setMissingHandler:X,rt:te,d:q,n:me,tm:j,te:Ee,getLocaleMessage:R,setLocaleMessage:J,mergeLocaleMessage:Ae,getDateTimeFormat:se,setDateTimeFormat:U,mergeDateTimeFormat:Z,getNumberFormat:Ue,setNumberFormat:At,mergeNumberFormat:ie};function Be(Y){Y.locale.value=s.value,Y.fallbackLocale.value=c.value,Object.keys(d.value).forEach(T=>{Y.mergeLocaleMessage(T,d.value[T])}),Object.keys(f.value).forEach(T=>{Y.mergeDateTimeFormat(T,f.value[T])}),Object.keys(h.value).forEach(T=>{Y.mergeNumberFormat(T,h.value[T])}),Y.escapeParameter=F,Y.fallbackFormat=y,Y.fallbackRoot=B,Y.fallbackWarn=g,Y.missingWarn=m,Y.warnHtmlMessage=k}return o.onBeforeMount(()=>{if(t.proxy==null||t.proxy.$i18n==null)throw hi(Gt.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const Y=i.value=t.proxy.$i18n.__composer;e==="global"?(s.value=Y.locale.value,c.value=Y.fallbackLocale.value,d.value=Y.messages.value,f.value=Y.datetimeFormats.value,h.value=Y.numberFormats.value):r&&Be(Y)}),Ge}if(CS(),__INTLIFY_JIT_COMPILATION__?hB(hS):hB(fS),rS(LI),iS(cB),process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const t=Mr();t.__INTLIFY__=!0,YI(t.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}process.env.NODE_ENV;const HS={class:"input-group input__input-group"},RS=["for","innerHTML"],PS=o.defineComponent({__name:"input-datepicker",props:{modelValue:{type:null,default:""},from:{type:[String,Number,Boolean,Date],default:""},to:{type:[String,Number,Boolean,Date],default:""},type:{type:String,default:"datetime-local"},name:{type:String,default:()=>Ct()},id:{type:String,default:()=>Ct()},label:{type:String,default:""},disabled:{type:Boolean,default:!1},readOnly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},range:{type:Boolean,default:!1},inline:{type:Boolean,default:!1}},emits:["update:modelValue","update:from","update:to"],setup(t,{emit:e}){const A=t,n=e,{t:r,locale:i}=as(),a=o.computed({get(){var f,h;if(A.range){let m=A.from||Array.isArray(A.modelValue)?A.modelValue[0]:null,g=A.to||Array.isArray(A.modelValue)?A.modelValue[1]:null;return m=m?new Date(`${m}Z`):null,g=g?new Date(`${g}Z`):null,m=m&&((f=new Date(m.getTime()+new Date().getTimezoneOffset()*-60*1e3).toISOString())==null?void 0:f.replace("Z","")),g=g&&((h=new Date(g.getTime()+new Date().getTimezoneOffset()*-60*1e3).toISOString())==null?void 0:h.replace("Z","")),[...m?[m]:[],...g?[g]:[]]}else{const m=A.modelValue?new Date(`${A.modelValue}Z`):null,g=m&&new Date(m.getTime()+new Date().getTimezoneOffset()*-60*1e3).toISOString();return g&&g.replace("Z","")}},set(f){var h,m;if(A.range&&Array.isArray(f)){let[g,B]=f;g=g&&((h=new Date(g).toISOString())==null?void 0:h.replace("Z","")),B=B&&((m=new Date(B).toISOString())==null?void 0:m.replace("Z","")),n("update:modelValue",[g,B]),n("update:from",g),n("update:to",B)}else{const g=f&&new Date(f);f=g&&g.toISOString(),n("update:modelValue",f&&f.replace("Z",""))}}}),s=o.computed({get(){return Array.isArray(a.value)?a.value[0]:a.value},set(f){a.value=Array.isArray(a.value)?[f,a.value[0]]:f}}),c=o.computed({get(){return Array.isArray(a.value)?a.value[1]:a.value},set(f){a.value=Array.isArray(a.value)?[f,a.value[1]]:f}}),d=f=>{const h=f.getDate(),m=f.getMonth()+1,g=f.getFullYear(),B=f.getMinutes(),y=f.getHours();return`${h}.${m}.${g} ${y<10?"0"+y:y}:${B<10?"0"+B:B}`};return(f,h)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["input",`input--${t.type}`])},[o.createTextVNode(o.toDisplayString(a.value)+" ",1),o.createElementVNode("div",HS,[o.renderSlot(f.$slots,"input-prepend",{slotScope:"props"}),t.range?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createVNode(o.unref(Wa),{uid:`${t.id}-from`,modelValue:s.value,"onUpdate:modelValue":h[0]||(h[0]=m=>s.value=m),locale:o.unref(i),format:d,"text-input":{openMenu:!1,format:o.unref(i)}},null,8,["uid","modelValue","locale","text-input"]),o.createVNode(o.unref(Wa),{uid:`${t.id}-to`,modelValue:c.value,"onUpdate:modelValue":h[1]||(h[1]=m=>c.value=m),locale:o.unref(i),format:d,"text-input":{openMenu:!1,format:o.unref(i)}},null,8,["uid","modelValue","locale","text-input"])],64)):(o.openBlock(),o.createBlock(o.unref(Wa),{key:1,uid:`${t.id}-input-to`,modelValue:a.value,"onUpdate:modelValue":h[2]||(h[2]=m=>a.value=m),locale:o.unref(i),"text-input":!0},null,8,["uid","modelValue","locale"])),o.renderSlot(f.$slots,"input-append",{slotScope:"props"})]),o.renderSlot(f.$slots,"label",{},()=>[t.label?(o.openBlock(),o.createElementBlock("label",{key:0,for:t.id,class:"input__label",innerHTML:`${t.label}${t.required?" *":""}`},null,8,RS)):o.createCommentVNode("",!0)]),o.createVNode(o.unref(Wa),{uid:`${t.id}-inline`,modelValue:a.value,"onUpdate:modelValue":h[3]||(h[3]=m=>a.value=m),locale:"de-DE",cancelText:"abbrechen",selectText:"auswählen",range:t.range,"multi-calendars":t.range,inline:{input:!1},"auto-apply":!0,"partial-range":t.range,"partial-flow":!0,"start-time":{hours:0,minutes:0},onRangeStart:h[4]||(h[4]=m=>s.value=m)},null,8,["uid","modelValue","range","multi-calendars","partial-range"])],2))}}),lJ="",VS={class:"input-group input__input-group"},KS=o.defineComponent({__name:"input-password",props:{modelValue:{type:[String,Number,Boolean,Date],default:""},type:{type:String,default:"text"},name:{type:String,default:()=>Ct()},id:{type:String,default:()=>Ct()},label:{type:String,default:""},placeholder:{type:String,default:""},variant:{type:String,default:""},disabled:{type:Boolean,default:!1},readOnly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},maxlength:{type:Number},pattern:{type:String,default:null},role:{type:String,default:"presentation"},autocomplete:{type:String,default:"off"},password:{type:String,default:""},confirm:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(t,{emit:e}){const A=t,n=e,r=o.computed({get(){return A.modelValue},set(i){(A.password===i||!A.password)&&n("update:modelValue",i)}});return(i,a)=>{const s=o.resolveComponent("svg-icon"),c=o.resolveComponent("base-input");return o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["input","input-password"])},[o.createElementVNode("div",VS,[o.createVNode(c,{modelValue:r.value,"onUpdate:modelValue":a[0]||(a[0]=d=>r.value=d),type:"password",placeholder:t.placeholder,disabled:t.disabled,readonly:t.readOnly,required:t.required,label:t.label},{"input-prepend":o.withCtx(d=>[o.renderSlot(i.$slots,"input-prepend",{slotScope:"props"})]),"input-append":o.withCtx(d=>[o.renderSlot(i.$slots,"input-append",{slotScope:"props"},()=>[t.confirm&&t.modelValue===t.password?(o.openBlock(),o.createBlock(s,{key:0,symbol:"check",class:"ms-2"})):o.createCommentVNode("",!0)])]),_:3},8,["modelValue","placeholder","disabled","readonly","required","label"])])])}}}),$S={class:"check-group"},GS=["id","name","value","disabled","read-only","required"],WS=["for","innerHTML"],YS=o.defineComponent({__name:"check-group",props:{modelValue:{type:null,default:()=>[]},options:{type:Array,required:!0},name:{type:String,default:()=>Ct()},id:{type:String,default:()=>Ct()},label:{type:String,default:""},disabled:{type:Boolean,default:!1},readOnly:{type:Boolean,default:!1},required:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(t,{emit:e}){const A=t,n=e;o.ref([]);const r=o.computed({get(){return A.modelValue},set(a){n("update:modelValue",a)}}),i=o.computed(()=>A.options&&A.options.map(a=>(a=typeof a=="string"?{text:a,value:a}:a,{...a,active:A.modelValue&&A.modelValue.includes(a.value)})));return(a,s)=>(o.openBlock(),o.createElementBlock("div",$S,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(i.value,(c,d)=>(o.openBlock(),o.createElementBlock("div",{key:d,class:"form-check"},[o.withDirectives(o.createElementVNode("input",{type:"checkbox","onUpdate:modelValue":s[0]||(s[0]=f=>r.value=f),id:`${t.id}-${d}`,name:t.name,class:"form-check-input",value:c.value||c,disabled:t.disabled,"read-only":t.readOnly,required:t.required},null,8,GS),[[o.vModelCheckbox,r.value]]),o.createElementVNode("label",{class:"form-check-label",for:`${t.id}-${d}`,innerHTML:c.text},null,8,WS)]))),128))]))}}),cJ="",zS={class:"input radio-group"},JS=["id","name","value","checked","disabled","read-only","required","onChange"],XS=["for","innerHTML"],qS=["for"],xl=o.defineComponent({__name:"radio-group",props:{modelValue:{type:null},options:{type:Array,default:[]},name:{type:String,default:()=>Ct()},id:{type:String,default:()=>Ct()},label:{type:String,default:""},variant:{type:String,default:""},disabled:{type:Boolean,default:!1},readOnly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},keyOption:{type:null},itemClass:{type:String,default:""}},emits:["change","update:modelValue"],setup(t,{emit:e}){const A=e;function n(r){A("update:modelValue",r)}return(r,i)=>(o.openBlock(),o.createElementBlock("div",zS,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.options,(a,s)=>{var c,d;return o.openBlock(),o.createElementBlock("div",{key:s,class:o.normalizeClass(["form-check",t.itemClass])},[o.createElementVNode("input",{type:"radio",id:`${t.id}-${s}`,name:t.name,class:o.normalizeClass(["form-check-input",`
25
+ ${s===t.keyOption||a.key?"form-check-input--key":""}
26
+ ${(s===t.keyOption||a.key)&&a.value===((c=t.modelValue)==null?void 0:c.value)?"form-check-input--match":""}
27
+ `]),value:a.value||a,checked:a.value?a.value===((d=t.modelValue)==null?void 0:d.value):a===t.modelValue,disabled:t.disabled,"read-only":t.readOnly,required:t.required,onChange:f=>n(a)},null,42,JS),o.renderSlot(r.$slots,"option-label",{option:a,index:s},()=>[o.createElementVNode("label",{class:"form-check-label",for:`${t.id}-${s}`,innerHTML:a.text},null,8,XS)])],2)}),128)),o.renderSlot(r.$slots,"label",{},()=>[t.label?(o.openBlock(),o.createElementBlock("label",{key:0,for:t.id},o.toDisplayString(t.label),9,qS)):o.createCommentVNode("",!0)])]))}}),uJ="",jS={class:"radio-buttons"},ZS=["for"],eT=o.defineComponent({__name:"radio-buttons",props:{modelValue:{type:null,default:""},options:{type:Array,default:[]},name:{type:String,default:()=>Ct()},id:{type:String,default:()=>Ct()},label:{type:String},disabled:{type:Boolean,default:!1},required:{type:Boolean,default:!1},keyOption:{type:null},itemClass:{type:String,default:""}},emits:["update:modelValue","update:selection"],setup(t,{emit:e}){const A=t,n=e,r=o.computed({get(){return A.modelValue},set(i){n("update:modelValue",i)}});return(i,a)=>(o.openBlock(),o.createElementBlock("div",jS,[o.createVNode(xl,{modelValue:r.value,"onUpdate:modelValue":a[0]||(a[0]=s=>r.value=s),options:t.options,name:t.name,id:t.id,disabled:t.disabled,required:t.required,class:"d-flex flex-column gap-3 justify-content-center"},{"option-label":o.withCtx(s=>[o.createElementVNode("label",{for:`${t.id}-${s.index}`,class:"d-block btn btn-outline-primary p-3 fw-bold",role:"button"},o.toDisplayString(s.option.text),9,ZS)]),_:1},8,["modelValue","options","name","id","disabled","required"])]))}}),dJ="",tT=["id","name","multiple","accept","disabled"],AT={class:"input__input-group input-group"},nT=["value","id","name","disabled"],rT=["for","disabled"],iT=o.createElementVNode("span",{class:"btn btn-outline-dark"},"Select File",-1),aT=["for"],oT=["innerHTML"],sT=o.defineComponent({__name:"input-file",props:{modelValue:{type:Array,default:[]},name:{type:String,default:()=>Ct()},id:{type:String,default:()=>Ct()},label:{type:String,default:""},placeholder:{type:String,default:""},variant:{type:String,default:""},disabled:{type:Boolean,default:!1},readOnly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},pattern:{type:String,default:null},multiple:{type:Boolean,default:!1},accept:{type:String}},emits:["update:modelValue"],setup(t,{emit:e}){const A=t,n=e;function r(c){const d=c.target&&c.target.files;d&&(a.splice(0,a.length),Array.from(d).forEach(f=>{a.push(f)}))}const i=o.ref(),a=o.reactive([]),s=o.computed(()=>a&&a.map(c=>c.name));return o.computed(()=>a.map(c=>URL.createObjectURL(c))),o.watch(()=>A.modelValue,(c,d)=>{c.length===0&&(i.value.value=null)},{deep:!0}),o.watch(()=>a,(c,d)=>{n("update:modelValue",c)},{deep:!0}),(c,d)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["input input-file","input-file--primary"])},[o.createElementVNode("input",{ref_key:"input",ref:i,type:"file",id:t.id,name:t.name,class:"d-none",onChange:r,multiple:t.multiple,accept:t.accept,disabled:t.disabled},null,40,tT),o.createElementVNode("div",AT,[o.renderSlot(c.$slots,"input-prepend"),o.createElementVNode("input",{type:"text",value:s.value,id:t.id,name:t.name,class:"form-control",disabled:t.disabled},null,8,nT),o.renderSlot(c.$slots,"input-append",{},()=>[o.createElementVNode("label",{for:t.id,disabled:t.disabled},[o.renderSlot(c.$slots,"button",{},()=>[iT])],8,rT)])]),o.createElementVNode("label",{for:t.id},[o.renderSlot(c.$slots,"label",{},()=>[o.createElementVNode("span",{class:"input__label",innerHTML:`${t.label}${t.required?" *":""}`},null,8,oT)])],8,aT)]))}}),lT={class:"select-media"},cT=["for"],uT=o.defineComponent({__name:"select-media",props:{modelValue:{type:null,default:""},assets:{type:Array,default:[]},name:{type:String,default:()=>Ct()},id:{type:String,default:()=>Ct()},label:{type:String},disabled:{type:Boolean,default:!1},required:{type:Boolean,default:!1},emitKey:{type:String,default:"src"}},emits:["update:modelValue","update:selection"],setup(t,{emit:e}){const A=t,n=e,r=o.computed({get(){return A.modelValue},set(i){const a=A.assets.find(s=>s.id===i);n("update:modelValue",A.emitKey?a[A.emitKey]:a),A.emitKey&&A.emitKey!=="id"&&n("update:selection",a.id)}});return(i,a)=>{const s=o.resolveComponent("base-image");return o.openBlock(),o.createElementBlock("div",lT,[o.createVNode(xl,{modelValue:r.value,"onUpdate:modelValue":a[0]||(a[0]=c=>r.value=c),options:t.assets.map(c=>c.id),name:t.name,id:t.id,disabled:t.disabled,required:t.required,class:"d-flex flex-wrap flex-row justify-content-center",itemClass:"col-6 p-2"},{"option-label":o.withCtx(c=>[o.createElementVNode("label",{for:`${t.id}-${c.index}`,class:o.normalizeClass(["w-100",{"is-active":t.assets[c.index].id===r.value}]),role:"button"},[t.assets[c.index].thumbnail?(o.openBlock(),o.createBlock(s,{key:0,src:t.assets[c.index].thumbnail,alt:t.assets[c.index].id},null,8,["src","alt"])):o.createCommentVNode("",!0)],10,cT)]),_:1},8,["modelValue","options","name","id","disabled","required"])])}}}),fJ="";function QA(t){this.content=t}QA.prototype={constructor:QA,find:function(t){for(var e=0;e<this.content.length;e+=2)if(this.content[e]===t)return e;return-1},get:function(t){var e=this.find(t);return e==-1?void 0:this.content[e+1]},update:function(t,e,A){var n=A&&A!=t?this.remove(A):this,r=n.find(t),i=n.content.slice();return r==-1?i.push(A||t,e):(i[r+1]=e,A&&(i[r]=A)),new QA(i)},remove:function(t){var e=this.find(t);if(e==-1)return this;var A=this.content.slice();return A.splice(e,2),new QA(A)},addToStart:function(t,e){return new QA([t,e].concat(this.remove(t).content))},addToEnd:function(t,e){var A=this.remove(t).content.slice();return A.push(t,e),new QA(A)},addBefore:function(t,e,A){var n=this.remove(e),r=n.content.slice(),i=n.find(t);return r.splice(i==-1?r.length:i,0,e,A),new QA(r)},forEach:function(t){for(var e=0;e<this.content.length;e+=2)t(this.content[e],this.content[e+1])},prepend:function(t){return t=QA.from(t),t.size?new QA(t.content.concat(this.subtract(t).content)):this},append:function(t){return t=QA.from(t),t.size?new QA(this.subtract(t).content.concat(t.content)):this},subtract:function(t){var e=this;t=QA.from(t);for(var A=0;A<t.content.length;A+=2)e=e.remove(t.content[A]);return e},toObject:function(){var t={};return this.forEach(function(e,A){t[e]=A}),t},get size(){return this.content.length>>1}},QA.from=function(t){if(t instanceof QA)return t;var e=[];if(t)for(var A in t)e.push(A,t[A]);return new QA(e)};function jB(t,e,A){for(let n=0;;n++){if(n==t.childCount||n==e.childCount)return t.childCount==e.childCount?null:A;let r=t.child(n),i=e.child(n);if(r==i){A+=r.nodeSize;continue}if(!r.sameMarkup(i))return A;if(r.isText&&r.text!=i.text){for(let a=0;r.text[a]==i.text[a];a++)A++;return A}if(r.content.size||i.content.size){let a=jB(r.content,i.content,A+1);if(a!=null)return a}A+=r.nodeSize}}function ZB(t,e,A,n){for(let r=t.childCount,i=e.childCount;;){if(r==0||i==0)return r==i?null:{a:A,b:n};let a=t.child(--r),s=e.child(--i),c=a.nodeSize;if(a==s){A-=c,n-=c;continue}if(!a.sameMarkup(s))return{a:A,b:n};if(a.isText&&a.text!=s.text){let d=0,f=Math.min(a.text.length,s.text.length);for(;d<f&&a.text[a.text.length-d-1]==s.text[s.text.length-d-1];)d++,A--,n--;return{a:A,b:n}}if(a.content.size||s.content.size){let d=ZB(a.content,s.content,A-1,n-1);if(d)return d}A-=c,n-=c}}class Qe{constructor(e,A){if(this.content=e,this.size=A||0,A==null)for(let n=0;n<e.length;n++)this.size+=e[n].nodeSize}nodesBetween(e,A,n,r=0,i){for(let a=0,s=0;s<A;a++){let c=this.content[a],d=s+c.nodeSize;if(d>e&&n(c,r+s,i||null,a)!==!1&&c.content.size){let f=s+1;c.nodesBetween(Math.max(0,e-f),Math.min(c.content.size,A-f),n,r+f)}s=d}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,A,n,r){let i="",a=!0;return this.nodesBetween(e,A,(s,c)=>{let d=s.isText?s.text.slice(Math.max(e,c)-c,A-c):s.isLeaf?r?typeof r=="function"?r(s):r:s.type.spec.leafText?s.type.spec.leafText(s):"":"";s.isBlock&&(s.isLeaf&&d||s.isTextblock)&&n&&(a?a=!1:i+=n),i+=d},0),i}append(e){if(!e.size)return this;if(!this.size)return e;let A=this.lastChild,n=e.firstChild,r=this.content.slice(),i=0;for(A.isText&&A.sameMarkup(n)&&(r[r.length-1]=A.withText(A.text+n.text),i=1);i<e.content.length;i++)r.push(e.content[i]);return new Qe(r,this.size+e.size)}cut(e,A=this.size){if(e==0&&A==this.size)return this;let n=[],r=0;if(A>e)for(let i=0,a=0;a<A;i++){let s=this.content[i],c=a+s.nodeSize;c>e&&((a<e||c>A)&&(s.isText?s=s.cut(Math.max(0,e-a),Math.min(s.text.length,A-a)):s=s.cut(Math.max(0,e-a-1),Math.min(s.content.size,A-a-1))),n.push(s),r+=s.nodeSize),a=c}return new Qe(n,r)}cutByIndex(e,A){return e==A?Qe.empty:e==0&&A==this.content.length?this:new Qe(this.content.slice(e,A))}replaceChild(e,A){let n=this.content[e];if(n==A)return this;let r=this.content.slice(),i=this.size+A.nodeSize-n.nodeSize;return r[e]=A,new Qe(r,i)}addToStart(e){return new Qe([e].concat(this.content),this.size+e.nodeSize)}addToEnd(e){return new Qe(this.content.concat(e),this.size+e.nodeSize)}eq(e){if(this.content.length!=e.content.length)return!1;for(let A=0;A<this.content.length;A++)if(!this.content[A].eq(e.content[A]))return!1;return!0}get firstChild(){return this.content.length?this.content[0]:null}get lastChild(){return this.content.length?this.content[this.content.length-1]:null}get childCount(){return this.content.length}child(e){let A=this.content[e];if(!A)throw new RangeError("Index "+e+" out of range for "+this);return A}maybeChild(e){return this.content[e]||null}forEach(e){for(let A=0,n=0;A<this.content.length;A++){let r=this.content[A];e(r,n,A),n+=r.nodeSize}}findDiffStart(e,A=0){return jB(this,e,A)}findDiffEnd(e,A=this.size,n=e.size){return ZB(this,e,A,n)}findIndex(e,A=-1){if(e==0)return Dl(0,e);if(e==this.size)return Dl(this.content.length,e);if(e>this.size||e<0)throw new RangeError(`Position ${e} outside of fragment (${this})`);for(let n=0,r=0;;n++){let i=this.child(n),a=r+i.nodeSize;if(a>=e)return a==e||A>0?Dl(n+1,a):Dl(n,r);r=a}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map(e=>e.toJSON()):null}static fromJSON(e,A){if(!A)return Qe.empty;if(!Array.isArray(A))throw new RangeError("Invalid input for Fragment.fromJSON");return new Qe(A.map(e.nodeFromJSON))}static fromArray(e){if(!e.length)return Qe.empty;let A,n=0;for(let r=0;r<e.length;r++){let i=e[r];n+=i.nodeSize,r&&i.isText&&e[r-1].sameMarkup(i)?(A||(A=e.slice(0,r)),A[A.length-1]=i.withText(A[A.length-1].text+i.text)):A&&A.push(i)}return new Qe(A||e,n)}static from(e){if(!e)return Qe.empty;if(e instanceof Qe)return e;if(Array.isArray(e))return this.fromArray(e);if(e.attrs)return new Qe([e],e.nodeSize);throw new RangeError("Can not convert "+e+" to a Fragment"+(e.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))}}Qe.empty=new Qe([],0);const Af={index:0,offset:0};function Dl(t,e){return Af.index=t,Af.offset=e,Af}function Ml(t,e){if(t===e)return!0;if(!(t&&typeof t=="object")||!(e&&typeof e=="object"))return!1;let A=Array.isArray(t);if(Array.isArray(e)!=A)return!1;if(A){if(t.length!=e.length)return!1;for(let n=0;n<t.length;n++)if(!Ml(t[n],e[n]))return!1}else{for(let n in t)if(!(n in e)||!Ml(t[n],e[n]))return!1;for(let n in e)if(!(n in t))return!1}return!0}let St=class Sm{constructor(e,A){this.type=e,this.attrs=A}addToSet(e){let A,n=!1;for(let r=0;r<e.length;r++){let i=e[r];if(this.eq(i))return e;if(this.type.excludes(i.type))A||(A=e.slice(0,r));else{if(i.type.excludes(this.type))return e;!n&&i.type.rank>this.type.rank&&(A||(A=e.slice(0,r)),A.push(this),n=!0),A&&A.push(i)}}return A||(A=e.slice()),n||A.push(this),A}removeFromSet(e){for(let A=0;A<e.length;A++)if(this.eq(e[A]))return e.slice(0,A).concat(e.slice(A+1));return e}isInSet(e){for(let A=0;A<e.length;A++)if(this.eq(e[A]))return!0;return!1}eq(e){return this==e||this.type==e.type&&Ml(this.attrs,e.attrs)}toJSON(){let e={type:this.type.name};for(let A in this.attrs){e.attrs=this.attrs;break}return e}static fromJSON(e,A){if(!A)throw new RangeError("Invalid input for Mark.fromJSON");let n=e.marks[A.type];if(!n)throw new RangeError(`There is no mark type ${A.type} in this schema`);return n.create(A.attrs)}static sameSet(e,A){if(e==A)return!0;if(e.length!=A.length)return!1;for(let n=0;n<e.length;n++)if(!e[n].eq(A[n]))return!1;return!0}static setFrom(e){if(!e||Array.isArray(e)&&e.length==0)return Sm.none;if(e instanceof Sm)return[e];let A=e.slice();return A.sort((n,r)=>n.type.rank-r.type.rank),A}};St.none=[];class Ol extends Error{}class Te{constructor(e,A,n){this.content=e,this.openStart=A,this.openEnd=n}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(e,A){let n=tw(this.content,e+this.openStart,A);return n&&new Te(n,this.openStart,this.openEnd)}removeBetween(e,A){return new Te(ew(this.content,e+this.openStart,A+this.openStart),this.openStart,this.openEnd)}eq(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let e={content:this.content.toJSON()};return this.openStart>0&&(e.openStart=this.openStart),this.openEnd>0&&(e.openEnd=this.openEnd),e}static fromJSON(e,A){if(!A)return Te.empty;let n=A.openStart||0,r=A.openEnd||0;if(typeof n!="number"||typeof r!="number")throw new RangeError("Invalid input for Slice.fromJSON");return new Te(Qe.fromJSON(e,A.content),n,r)}static maxOpen(e,A=!0){let n=0,r=0;for(let i=e.firstChild;i&&!i.isLeaf&&(A||!i.type.spec.isolating);i=i.firstChild)n++;for(let i=e.lastChild;i&&!i.isLeaf&&(A||!i.type.spec.isolating);i=i.lastChild)r++;return new Te(e,n,r)}}Te.empty=new Te(Qe.empty,0,0);function ew(t,e,A){let{index:n,offset:r}=t.findIndex(e),i=t.maybeChild(n),{index:a,offset:s}=t.findIndex(A);if(r==e||i.isText){if(s!=A&&!t.child(a).isText)throw new RangeError("Removing non-flat range");return t.cut(0,e).append(t.cut(A))}if(n!=a)throw new RangeError("Removing non-flat range");return t.replaceChild(n,i.copy(ew(i.content,e-r-1,A-r-1)))}function tw(t,e,A,n){let{index:r,offset:i}=t.findIndex(e),a=t.maybeChild(r);if(i==e||a.isText)return n&&!n.canReplace(r,r,A)?null:t.cut(0,e).append(A).append(t.cut(e));let s=tw(a.content,e-i-1,A);return s&&t.replaceChild(r,a.copy(s))}function dT(t,e,A){if(A.openStart>t.depth)throw new Ol("Inserted content deeper than insertion position");if(t.depth-A.openStart!=e.depth-A.openEnd)throw new Ol("Inconsistent open depths");return Aw(t,e,A,0)}function Aw(t,e,A,n){let r=t.index(n),i=t.node(n);if(r==e.index(n)&&n<t.depth-A.openStart){let a=Aw(t,e,A,n+1);return i.copy(i.content.replaceChild(r,a))}else if(A.content.size)if(!A.openStart&&!A.openEnd&&t.depth==n&&e.depth==n){let a=t.parent,s=a.content;return ia(a,s.cut(0,t.parentOffset).append(A.content).append(s.cut(e.parentOffset)))}else{let{start:a,end:s}=fT(A,t);return ia(i,rw(t,a,s,e,n))}else return ia(i,Nl(t,e,n))}function nw(t,e){if(!e.type.compatibleContent(t.type))throw new Ol("Cannot join "+e.type.name+" onto "+t.type.name)}function nf(t,e,A){let n=t.node(A);return nw(n,e.node(A)),n}function ra(t,e){let A=e.length-1;A>=0&&t.isText&&t.sameMarkup(e[A])?e[A]=t.withText(e[A].text+t.text):e.push(t)}function ss(t,e,A,n){let r=(e||t).node(A),i=0,a=e?e.index(A):r.childCount;t&&(i=t.index(A),t.depth>A?i++:t.textOffset&&(ra(t.nodeAfter,n),i++));for(let s=i;s<a;s++)ra(r.child(s),n);e&&e.depth==A&&e.textOffset&&ra(e.nodeBefore,n)}function ia(t,e){return t.type.checkContent(e),t.copy(e)}function rw(t,e,A,n,r){let i=t.depth>r&&nf(t,e,r+1),a=n.depth>r&&nf(A,n,r+1),s=[];return ss(null,t,r,s),i&&a&&e.index(r)==A.index(r)?(nw(i,a),ra(ia(i,rw(t,e,A,n,r+1)),s)):(i&&ra(ia(i,Nl(t,e,r+1)),s),ss(e,A,r,s),a&&ra(ia(a,Nl(A,n,r+1)),s)),ss(n,null,r,s),new Qe(s)}function Nl(t,e,A){let n=[];if(ss(null,t,A,n),t.depth>A){let r=nf(t,e,A+1);ra(ia(r,Nl(t,e,A+1)),n)}return ss(e,null,A,n),new Qe(n)}function fT(t,e){let A=e.depth-t.openStart,r=e.node(A).copy(t.content);for(let i=A-1;i>=0;i--)r=e.node(i).copy(Qe.from(r));return{start:r.resolveNoCache(t.openStart+A),end:r.resolveNoCache(r.content.size-t.openEnd-A)}}class ls{constructor(e,A,n){this.pos=e,this.path=A,this.parentOffset=n,this.depth=A.length/3-1}resolveDepth(e){return e==null?this.depth:e<0?this.depth+e:e}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(e){return this.path[this.resolveDepth(e)*3]}index(e){return this.path[this.resolveDepth(e)*3+1]}indexAfter(e){return e=this.resolveDepth(e),this.index(e)+(e==this.depth&&!this.textOffset?0:1)}start(e){return e=this.resolveDepth(e),e==0?0:this.path[e*3-1]+1}end(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size}before(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position before the top-level node");return e==this.depth+1?this.pos:this.path[e*3-1]}after(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position after the top-level node");return e==this.depth+1?this.pos:this.path[e*3-1]+this.path[e*3].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let e=this.parent,A=this.index(this.depth);if(A==e.childCount)return null;let n=this.pos-this.path[this.path.length-1],r=e.child(A);return n?e.child(A).cut(n):r}get nodeBefore(){let e=this.index(this.depth),A=this.pos-this.path[this.path.length-1];return A?this.parent.child(e).cut(0,A):e==0?null:this.parent.child(e-1)}posAtIndex(e,A){A=this.resolveDepth(A);let n=this.path[A*3],r=A==0?0:this.path[A*3-1]+1;for(let i=0;i<e;i++)r+=n.child(i).nodeSize;return r}marks(){let e=this.parent,A=this.index();if(e.content.size==0)return St.none;if(this.textOffset)return e.child(A).marks;let n=e.maybeChild(A-1),r=e.maybeChild(A);if(!n){let s=n;n=r,r=s}let i=n.marks;for(var a=0;a<i.length;a++)i[a].type.spec.inclusive===!1&&(!r||!i[a].isInSet(r.marks))&&(i=i[a--].removeFromSet(i));return i}marksAcross(e){let A=this.parent.maybeChild(this.index());if(!A||!A.isInline)return null;let n=A.marks,r=e.parent.maybeChild(e.index());for(var i=0;i<n.length;i++)n[i].type.spec.inclusive===!1&&(!r||!n[i].isInSet(r.marks))&&(n=n[i--].removeFromSet(n));return n}sharedDepth(e){for(let A=this.depth;A>0;A--)if(this.start(A)<=e&&this.end(A)>=e)return A;return 0}blockRange(e=this,A){if(e.pos<this.pos)return e.blockRange(this);for(let n=this.depth-(this.parent.inlineContent||this.pos==e.pos?1:0);n>=0;n--)if(e.pos<=this.end(n)&&(!A||A(this.node(n))))return new Ll(this,e,n);return null}sameParent(e){return this.pos-this.parentOffset==e.pos-e.parentOffset}max(e){return e.pos>this.pos?e:this}min(e){return e.pos<this.pos?e:this}toString(){let e="";for(let A=1;A<=this.depth;A++)e+=(e?"/":"")+this.node(A).type.name+"_"+this.index(A-1);return e+":"+this.parentOffset}static resolve(e,A){if(!(A>=0&&A<=e.content.size))throw new RangeError("Position "+A+" out of range");let n=[],r=0,i=A;for(let a=e;;){let{index:s,offset:c}=a.content.findIndex(i),d=i-c;if(n.push(a,s,r+c),!d||(a=a.child(s),a.isText))break;i=d-1,r+=c+1}return new ls(A,n,i)}static resolveCached(e,A){for(let r=0;r<rf.length;r++){let i=rf[r];if(i.pos==A&&i.doc==e)return i}let n=rf[af]=ls.resolve(e,A);return af=(af+1)%hT,n}}let rf=[],af=0,hT=12;class Ll{constructor(e,A,n){this.$from=e,this.$to=A,this.depth=n}get start(){return this.$from.before(this.depth+1)}get end(){return this.$to.after(this.depth+1)}get parent(){return this.$from.node(this.depth)}get startIndex(){return this.$from.index(this.depth)}get endIndex(){return this.$to.indexAfter(this.depth)}}const pT=Object.create(null);let aa=class Tm{constructor(e,A,n,r=St.none){this.type=e,this.attrs=A,this.marks=r,this.content=n||Qe.empty}get nodeSize(){return this.isLeaf?1:2+this.content.size}get childCount(){return this.content.childCount}child(e){return this.content.child(e)}maybeChild(e){return this.content.maybeChild(e)}forEach(e){this.content.forEach(e)}nodesBetween(e,A,n,r=0){this.content.nodesBetween(e,A,n,r,this)}descendants(e){this.nodesBetween(0,this.content.size,e)}get textContent(){return this.isLeaf&&this.type.spec.leafText?this.type.spec.leafText(this):this.textBetween(0,this.content.size,"")}textBetween(e,A,n,r){return this.content.textBetween(e,A,n,r)}get firstChild(){return this.content.firstChild}get lastChild(){return this.content.lastChild}eq(e){return this==e||this.sameMarkup(e)&&this.content.eq(e.content)}sameMarkup(e){return this.hasMarkup(e.type,e.attrs,e.marks)}hasMarkup(e,A,n){return this.type==e&&Ml(this.attrs,A||e.defaultAttrs||pT)&&St.sameSet(this.marks,n||St.none)}copy(e=null){return e==this.content?this:new Tm(this.type,this.attrs,e,this.marks)}mark(e){return e==this.marks?this:new Tm(this.type,this.attrs,this.content,e)}cut(e,A=this.content.size){return e==0&&A==this.content.size?this:this.copy(this.content.cut(e,A))}slice(e,A=this.content.size,n=!1){if(e==A)return Te.empty;let r=this.resolve(e),i=this.resolve(A),a=n?0:r.sharedDepth(A),s=r.start(a),d=r.node(a).content.cut(r.pos-s,i.pos-s);return new Te(d,r.depth-a,i.depth-a)}replace(e,A,n){return dT(this.resolve(e),this.resolve(A),n)}nodeAt(e){for(let A=this;;){let{index:n,offset:r}=A.content.findIndex(e);if(A=A.maybeChild(n),!A)return null;if(r==e||A.isText)return A;e-=r+1}}childAfter(e){let{index:A,offset:n}=this.content.findIndex(e);return{node:this.content.maybeChild(A),index:A,offset:n}}childBefore(e){if(e==0)return{node:null,index:0,offset:0};let{index:A,offset:n}=this.content.findIndex(e);if(n<e)return{node:this.content.child(A),index:A,offset:n};let r=this.content.child(A-1);return{node:r,index:A-1,offset:n-r.nodeSize}}resolve(e){return ls.resolveCached(this,e)}resolveNoCache(e){return ls.resolve(this,e)}rangeHasMark(e,A,n){let r=!1;return A>e&&this.nodesBetween(e,A,i=>(n.isInSet(i.marks)&&(r=!0),!r)),r}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let e=this.type.name;return this.content.size&&(e+="("+this.content.toStringInner()+")"),iw(this.marks,e)}contentMatchAt(e){let A=this.type.contentMatch.matchFragment(this.content,0,e);if(!A)throw new Error("Called contentMatchAt on a node with invalid content");return A}canReplace(e,A,n=Qe.empty,r=0,i=n.childCount){let a=this.contentMatchAt(e).matchFragment(n,r,i),s=a&&a.matchFragment(this.content,A);if(!s||!s.validEnd)return!1;for(let c=r;c<i;c++)if(!this.type.allowsMarks(n.child(c).marks))return!1;return!0}canReplaceWith(e,A,n,r){if(r&&!this.type.allowsMarks(r))return!1;let i=this.contentMatchAt(e).matchType(n),a=i&&i.matchFragment(this.content,A);return a?a.validEnd:!1}canAppend(e){return e.content.size?this.canReplace(this.childCount,this.childCount,e.content):this.type.compatibleContent(e.type)}check(){this.type.checkContent(this.content);let e=St.none;for(let A=0;A<this.marks.length;A++)e=this.marks[A].addToSet(e);if(!St.sameSet(e,this.marks))throw new RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map(A=>A.type.name)}`);this.content.forEach(A=>A.check())}toJSON(){let e={type:this.type.name};for(let A in this.attrs){e.attrs=this.attrs;break}return this.content.size&&(e.content=this.content.toJSON()),this.marks.length&&(e.marks=this.marks.map(A=>A.toJSON())),e}static fromJSON(e,A){if(!A)throw new RangeError("Invalid input for Node.fromJSON");let n=null;if(A.marks){if(!Array.isArray(A.marks))throw new RangeError("Invalid mark data for Node.fromJSON");n=A.marks.map(e.markFromJSON)}if(A.type=="text"){if(typeof A.text!="string")throw new RangeError("Invalid text node in JSON");return e.text(A.text,n)}let r=Qe.fromJSON(e,A.content);return e.nodeType(A.type).create(A.attrs,r,n)}};aa.prototype.text=void 0;class Hl extends aa{constructor(e,A,n,r){if(super(e,A,null,r),!n)throw new RangeError("Empty text nodes are not allowed");this.text=n}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):iw(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(e,A){return this.text.slice(e,A)}get nodeSize(){return this.text.length}mark(e){return e==this.marks?this:new Hl(this.type,this.attrs,this.text,e)}withText(e){return e==this.text?this:new Hl(this.type,this.attrs,e,this.marks)}cut(e=0,A=this.text.length){return e==0&&A==this.text.length?this:this.withText(this.text.slice(e,A))}eq(e){return this.sameMarkup(e)&&this.text==e.text}toJSON(){let e=super.toJSON();return e.text=this.text,e}}function iw(t,e){for(let A=t.length-1;A>=0;A--)e=t[A].type.name+"("+e+")";return e}class oa{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(e,A){let n=new mT(e,A);if(n.next==null)return oa.empty;let r=aw(n);n.next&&n.err("Unexpected trailing text");let i=vT(bT(r));return ET(i,n),i}matchType(e){for(let A=0;A<this.next.length;A++)if(this.next[A].type==e)return this.next[A].next;return null}matchFragment(e,A=0,n=e.childCount){let r=this;for(let i=A;r&&i<n;i++)r=r.matchType(e.child(i).type);return r}get inlineContent(){return this.next.length!=0&&this.next[0].type.isInline}get defaultType(){for(let e=0;e<this.next.length;e++){let{type:A}=this.next[e];if(!(A.isText||A.hasRequiredAttrs()))return A}return null}compatible(e){for(let A=0;A<this.next.length;A++)for(let n=0;n<e.next.length;n++)if(this.next[A].type==e.next[n].type)return!0;return!1}fillBefore(e,A=!1,n=0){let r=[this];function i(a,s){let c=a.matchFragment(e,n);if(c&&(!A||c.validEnd))return Qe.from(s.map(d=>d.createAndFill()));for(let d=0;d<a.next.length;d++){let{type:f,next:h}=a.next[d];if(!(f.isText||f.hasRequiredAttrs())&&r.indexOf(h)==-1){r.push(h);let m=i(h,s.concat(f));if(m)return m}}return null}return i(this,[])}findWrapping(e){for(let n=0;n<this.wrapCache.length;n+=2)if(this.wrapCache[n]==e)return this.wrapCache[n+1];let A=this.computeWrapping(e);return this.wrapCache.push(e,A),A}computeWrapping(e){let A=Object.create(null),n=[{match:this,type:null,via:null}];for(;n.length;){let r=n.shift(),i=r.match;if(i.matchType(e)){let a=[];for(let s=r;s.type;s=s.via)a.push(s.type);return a.reverse()}for(let a=0;a<i.next.length;a++){let{type:s,next:c}=i.next[a];!s.isLeaf&&!s.hasRequiredAttrs()&&!(s.name in A)&&(!r.type||c.validEnd)&&(n.push({match:s.contentMatch,type:s,via:r}),A[s.name]=!0)}}return null}get edgeCount(){return this.next.length}edge(e){if(e>=this.next.length)throw new RangeError(`There's no ${e}th edge in this content match`);return this.next[e]}toString(){let e=[];function A(n){e.push(n);for(let r=0;r<n.next.length;r++)e.indexOf(n.next[r].next)==-1&&A(n.next[r].next)}return A(this),e.map((n,r)=>{let i=r+(n.validEnd?"*":" ")+" ";for(let a=0;a<n.next.length;a++)i+=(a?", ":"")+n.next[a].type.name+"->"+e.indexOf(n.next[a].next);return i}).join(`
28
+ `)}}oa.empty=new oa(!0);class mT{constructor(e,A){this.string=e,this.nodeTypes=A,this.inline=null,this.pos=0,this.tokens=e.split(/\s*(?=\b|\W|$)/),this.tokens[this.tokens.length-1]==""&&this.tokens.pop(),this.tokens[0]==""&&this.tokens.shift()}get next(){return this.tokens[this.pos]}eat(e){return this.next==e&&(this.pos++||!0)}err(e){throw new SyntaxError(e+" (in content expression '"+this.string+"')")}}function aw(t){let e=[];do e.push(gT(t));while(t.eat("|"));return e.length==1?e[0]:{type:"choice",exprs:e}}function gT(t){let e=[];do e.push(BT(t));while(t.next&&t.next!=")"&&t.next!="|");return e.length==1?e[0]:{type:"seq",exprs:e}}function BT(t){let e=CT(t);for(;;)if(t.eat("+"))e={type:"plus",expr:e};else if(t.eat("*"))e={type:"star",expr:e};else if(t.eat("?"))e={type:"opt",expr:e};else if(t.eat("{"))e=wT(t,e);else break;return e}function ow(t){/\D/.test(t.next)&&t.err("Expected number, got '"+t.next+"'");let e=Number(t.next);return t.pos++,e}function wT(t,e){let A=ow(t),n=A;return t.eat(",")&&(t.next!="}"?n=ow(t):n=-1),t.eat("}")||t.err("Unclosed braced range"),{type:"range",min:A,max:n,expr:e}}function yT(t,e){let A=t.nodeTypes,n=A[e];if(n)return[n];let r=[];for(let i in A){let a=A[i];a.groups.indexOf(e)>-1&&r.push(a)}return r.length==0&&t.err("No node type or group '"+e+"' found"),r}function CT(t){if(t.eat("(")){let e=aw(t);return t.eat(")")||t.err("Missing closing paren"),e}else if(/\W/.test(t.next))t.err("Unexpected token '"+t.next+"'");else{let e=yT(t,t.next).map(A=>(t.inline==null?t.inline=A.isInline:t.inline!=A.isInline&&t.err("Mixing inline and block content"),{type:"name",value:A}));return t.pos++,e.length==1?e[0]:{type:"choice",exprs:e}}}function bT(t){let e=[[]];return r(i(t,0),A()),e;function A(){return e.push([])-1}function n(a,s,c){let d={term:c,to:s};return e[a].push(d),d}function r(a,s){a.forEach(c=>c.to=s)}function i(a,s){if(a.type=="choice")return a.exprs.reduce((c,d)=>c.concat(i(d,s)),[]);if(a.type=="seq")for(let c=0;;c++){let d=i(a.exprs[c],s);if(c==a.exprs.length-1)return d;r(d,s=A())}else if(a.type=="star"){let c=A();return n(s,c),r(i(a.expr,c),c),[n(c)]}else if(a.type=="plus"){let c=A();return r(i(a.expr,s),c),r(i(a.expr,c),c),[n(c)]}else{if(a.type=="opt")return[n(s)].concat(i(a.expr,s));if(a.type=="range"){let c=s;for(let d=0;d<a.min;d++){let f=A();r(i(a.expr,c),f),c=f}if(a.max==-1)r(i(a.expr,c),c);else for(let d=a.min;d<a.max;d++){let f=A();n(c,f),r(i(a.expr,c),f),c=f}return[n(c)]}else{if(a.type=="name")return[n(s,void 0,a.value)];throw new Error("Unknown expr type")}}}}function sw(t,e){return e-t}function lw(t,e){let A=[];return n(e),A.sort(sw);function n(r){let i=t[r];if(i.length==1&&!i[0].term)return n(i[0].to);A.push(r);for(let a=0;a<i.length;a++){let{term:s,to:c}=i[a];!s&&A.indexOf(c)==-1&&n(c)}}}function vT(t){let e=Object.create(null);return A(lw(t,0));function A(n){let r=[];n.forEach(a=>{t[a].forEach(({term:s,to:c})=>{if(!s)return;let d;for(let f=0;f<r.length;f++)r[f][0]==s&&(d=r[f][1]);lw(t,c).forEach(f=>{d||r.push([s,d=[]]),d.indexOf(f)==-1&&d.push(f)})})});let i=e[n.join(",")]=new oa(n.indexOf(t.length-1)>-1);for(let a=0;a<r.length;a++){let s=r[a][1].sort(sw);i.next.push({type:r[a][0],next:e[s.join(",")]||A(s)})}return i}}function ET(t,e){for(let A=0,n=[t];A<n.length;A++){let r=n[A],i=!r.validEnd,a=[];for(let s=0;s<r.next.length;s++){let{type:c,next:d}=r.next[s];a.push(c.name),i&&!(c.isText||c.hasRequiredAttrs())&&(i=!1),n.indexOf(d)==-1&&n.push(d)}i&&e.err("Only non-generatable nodes ("+a.join(", ")+") in a required position (see https://prosemirror.net/docs/guide/#generatable)")}}function cw(t){let e=Object.create(null);for(let A in t){let n=t[A];if(!n.hasDefault)return null;e[A]=n.default}return e}function uw(t,e){let A=Object.create(null);for(let n in t){let r=e&&e[n];if(r===void 0){let i=t[n];if(i.hasDefault)r=i.default;else throw new RangeError("No value supplied for attribute "+n)}A[n]=r}return A}function dw(t){let e=Object.create(null);if(t)for(let A in t)e[A]=new QT(t[A]);return e}let fw=class $1{constructor(e,A,n){this.name=e,this.schema=A,this.spec=n,this.markSet=null,this.groups=n.group?n.group.split(" "):[],this.attrs=dw(n.attrs),this.defaultAttrs=cw(this.attrs),this.contentMatch=null,this.inlineContent=null,this.isBlock=!(n.inline||e=="text"),this.isText=e=="text"}get isInline(){return!this.isBlock}get isTextblock(){return this.isBlock&&this.inlineContent}get isLeaf(){return this.contentMatch==oa.empty}get isAtom(){return this.isLeaf||!!this.spec.atom}get whitespace(){return this.spec.whitespace||(this.spec.code?"pre":"normal")}hasRequiredAttrs(){for(let e in this.attrs)if(this.attrs[e].isRequired)return!0;return!1}compatibleContent(e){return this==e||this.contentMatch.compatible(e.contentMatch)}computeAttrs(e){return!e&&this.defaultAttrs?this.defaultAttrs:uw(this.attrs,e)}create(e=null,A,n){if(this.isText)throw new Error("NodeType.create can't construct text nodes");return new aa(this,this.computeAttrs(e),Qe.from(A),St.setFrom(n))}createChecked(e=null,A,n){return A=Qe.from(A),this.checkContent(A),new aa(this,this.computeAttrs(e),A,St.setFrom(n))}createAndFill(e=null,A,n){if(e=this.computeAttrs(e),A=Qe.from(A),A.size){let a=this.contentMatch.fillBefore(A);if(!a)return null;A=a.append(A)}let r=this.contentMatch.matchFragment(A),i=r&&r.fillBefore(Qe.empty,!0);return i?new aa(this,e,A.append(i),St.setFrom(n)):null}validContent(e){let A=this.contentMatch.matchFragment(e);if(!A||!A.validEnd)return!1;for(let n=0;n<e.childCount;n++)if(!this.allowsMarks(e.child(n).marks))return!1;return!0}checkContent(e){if(!this.validContent(e))throw new RangeError(`Invalid content for node ${this.name}: ${e.toString().slice(0,50)}`)}allowsMarkType(e){return this.markSet==null||this.markSet.indexOf(e)>-1}allowsMarks(e){if(this.markSet==null)return!0;for(let A=0;A<e.length;A++)if(!this.allowsMarkType(e[A].type))return!1;return!0}allowedMarks(e){if(this.markSet==null)return e;let A;for(let n=0;n<e.length;n++)this.allowsMarkType(e[n].type)?A&&A.push(e[n]):A||(A=e.slice(0,n));return A?A.length?A:St.none:e}static compile(e,A){let n=Object.create(null);e.forEach((i,a)=>n[i]=new $1(i,A,a));let r=A.spec.topNode||"doc";if(!n[r])throw new RangeError("Schema is missing its top node type ('"+r+"')");if(!n.text)throw new RangeError("Every schema needs a 'text' type");for(let i in n.text.attrs)throw new RangeError("The text node type should not have attributes");return n}};class QT{constructor(e){this.hasDefault=Object.prototype.hasOwnProperty.call(e,"default"),this.default=e.default}get isRequired(){return!this.hasDefault}}class Rl{constructor(e,A,n,r){this.name=e,this.rank=A,this.schema=n,this.spec=r,this.attrs=dw(r.attrs),this.excluded=null;let i=cw(this.attrs);this.instance=i?new St(this,i):null}create(e=null){return!e&&this.instance?this.instance:new St(this,uw(this.attrs,e))}static compile(e,A){let n=Object.create(null),r=0;return e.forEach((i,a)=>n[i]=new Rl(i,r++,A,a)),n}removeFromSet(e){for(var A=0;A<e.length;A++)e[A].type==this&&(e=e.slice(0,A).concat(e.slice(A+1)),A--);return e}isInSet(e){for(let A=0;A<e.length;A++)if(e[A].type==this)return e[A]}excludes(e){return this.excluded.indexOf(e)>-1}}class FT{constructor(e){this.linebreakReplacement=null,this.cached=Object.create(null);let A=this.spec={};for(let r in e)A[r]=e[r];A.nodes=QA.from(e.nodes),A.marks=QA.from(e.marks||{}),this.nodes=fw.compile(this.spec.nodes,this),this.marks=Rl.compile(this.spec.marks,this);let n=Object.create(null);for(let r in this.nodes){if(r in this.marks)throw new RangeError(r+" can not be both a node and a mark");let i=this.nodes[r],a=i.spec.content||"",s=i.spec.marks;if(i.contentMatch=n[a]||(n[a]=oa.parse(a,this.nodes)),i.inlineContent=i.contentMatch.inlineContent,i.spec.linebreakReplacement){if(this.linebreakReplacement)throw new RangeError("Multiple linebreak nodes defined");if(!i.isInline||!i.isLeaf)throw new RangeError("Linebreak replacement nodes must be inline leaf nodes");this.linebreakReplacement=i}i.markSet=s=="_"?null:s?hw(this,s.split(" ")):s==""||!i.inlineContent?[]:null}for(let r in this.marks){let i=this.marks[r],a=i.spec.excludes;i.excluded=a==null?[i]:a==""?[]:hw(this,a.split(" "))}this.nodeFromJSON=this.nodeFromJSON.bind(this),this.markFromJSON=this.markFromJSON.bind(this),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached.wrappings=Object.create(null)}node(e,A=null,n,r){if(typeof e=="string")e=this.nodeType(e);else if(e instanceof fw){if(e.schema!=this)throw new RangeError("Node type from different schema used ("+e.name+")")}else throw new RangeError("Invalid node type: "+e);return e.createChecked(A,n,r)}text(e,A){let n=this.nodes.text;return new Hl(n,n.defaultAttrs,e,St.setFrom(A))}mark(e,A){return typeof e=="string"&&(e=this.marks[e]),e.create(A)}nodeFromJSON(e){return aa.fromJSON(this,e)}markFromJSON(e){return St.fromJSON(this,e)}nodeType(e){let A=this.nodes[e];if(!A)throw new RangeError("Unknown node type: "+e);return A}}function hw(t,e){let A=[];for(let n=0;n<e.length;n++){let r=e[n],i=t.marks[r],a=i;if(i)A.push(i);else for(let s in t.marks){let c=t.marks[s];(r=="_"||c.spec.group&&c.spec.group.split(" ").indexOf(r)>-1)&&A.push(a=c)}if(!a)throw new SyntaxError("Unknown mark type: '"+e[n]+"'")}return A}function UT(t){return t.tag!=null}function kT(t){return t.style!=null}class ja{constructor(e,A){this.schema=e,this.rules=A,this.tags=[],this.styles=[],A.forEach(n=>{UT(n)?this.tags.push(n):kT(n)&&this.styles.push(n)}),this.normalizeLists=!this.tags.some(n=>{if(!/^(ul|ol)\b/.test(n.tag)||!n.node)return!1;let r=e.nodes[n.node];return r.contentMatch.matchType(r)})}parse(e,A={}){let n=new Bw(this,A,!1);return n.addAll(e,A.from,A.to),n.finish()}parseSlice(e,A={}){let n=new Bw(this,A,!0);return n.addAll(e,A.from,A.to),Te.maxOpen(n.finish())}matchTag(e,A,n){for(let r=n?this.tags.indexOf(n)+1:0;r<this.tags.length;r++){let i=this.tags[r];if(ST(e,i.tag)&&(i.namespace===void 0||e.namespaceURI==i.namespace)&&(!i.context||A.matchesContext(i.context))){if(i.getAttrs){let a=i.getAttrs(e);if(a===!1)continue;i.attrs=a||void 0}return i}}}matchStyle(e,A,n,r){for(let i=r?this.styles.indexOf(r)+1:0;i<this.styles.length;i++){let a=this.styles[i],s=a.style;if(!(s.indexOf(e)!=0||a.context&&!n.matchesContext(a.context)||s.length>e.length&&(s.charCodeAt(e.length)!=61||s.slice(e.length+1)!=A))){if(a.getAttrs){let c=a.getAttrs(A);if(c===!1)continue;a.attrs=c||void 0}return a}}}static schemaRules(e){let A=[];function n(r){let i=r.priority==null?50:r.priority,a=0;for(;a<A.length;a++){let s=A[a];if((s.priority==null?50:s.priority)<i)break}A.splice(a,0,r)}for(let r in e.marks){let i=e.marks[r].spec.parseDOM;i&&i.forEach(a=>{n(a=ww(a)),a.mark||a.ignore||a.clearMark||(a.mark=r)})}for(let r in e.nodes){let i=e.nodes[r].spec.parseDOM;i&&i.forEach(a=>{n(a=ww(a)),a.node||a.ignore||a.mark||(a.node=r)})}return A}static fromSchema(e){return e.cached.domParser||(e.cached.domParser=new ja(e,ja.schemaRules(e)))}}const pw={address:!0,article:!0,aside:!0,blockquote:!0,canvas:!0,dd:!0,div:!0,dl:!0,fieldset:!0,figcaption:!0,figure:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,li:!0,noscript:!0,ol:!0,output:!0,p:!0,pre:!0,section:!0,table:!0,tfoot:!0,ul:!0},_T={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},mw={ol:!0,ul:!0},Pl=1,Vl=2,cs=4;function gw(t,e,A){return e!=null?(e?Pl:0)|(e==="full"?Vl:0):t&&t.whitespace=="pre"?Pl|Vl:A&~cs}class Kl{constructor(e,A,n,r,i,a,s){this.type=e,this.attrs=A,this.marks=n,this.pendingMarks=r,this.solid=i,this.options=s,this.content=[],this.activeMarks=St.none,this.stashMarks=[],this.match=a||(s&cs?null:e.contentMatch)}findWrapping(e){if(!this.match){if(!this.type)return[];let A=this.type.contentMatch.fillBefore(Qe.from(e));if(A)this.match=this.type.contentMatch.matchFragment(A);else{let n=this.type.contentMatch,r;return(r=n.findWrapping(e.type))?(this.match=n,r):null}}return this.match.findWrapping(e.type)}finish(e){if(!(this.options&Pl)){let n=this.content[this.content.length-1],r;if(n&&n.isText&&(r=/[ \t\r\n\u000c]+$/.exec(n.text))){let i=n;n.text.length==r[0].length?this.content.pop():this.content[this.content.length-1]=i.withText(i.text.slice(0,i.text.length-r[0].length))}}let A=Qe.from(this.content);return!e&&this.match&&(A=A.append(this.match.fillBefore(Qe.empty,!0))),this.type?this.type.create(this.attrs,A,this.marks):A}popFromStashMark(e){for(let A=this.stashMarks.length-1;A>=0;A--)if(e.eq(this.stashMarks[A]))return this.stashMarks.splice(A,1)[0]}applyPending(e){for(let A=0,n=this.pendingMarks;A<n.length;A++){let r=n[A];(this.type?this.type.allowsMarkType(r.type):TT(r.type,e))&&!r.isInSet(this.activeMarks)&&(this.activeMarks=r.addToSet(this.activeMarks),this.pendingMarks=r.removeFromSet(this.pendingMarks))}}inlineContext(e){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:e.parentNode&&!pw.hasOwnProperty(e.parentNode.nodeName.toLowerCase())}}class Bw{constructor(e,A,n){this.parser=e,this.options=A,this.isOpen=n,this.open=0;let r=A.topNode,i,a=gw(null,A.preserveWhitespace,0)|(n?cs:0);r?i=new Kl(r.type,r.attrs,St.none,St.none,!0,A.topMatch||r.type.contentMatch,a):n?i=new Kl(null,null,St.none,St.none,!0,null,a):i=new Kl(e.schema.topNodeType,null,St.none,St.none,!0,null,a),this.nodes=[i],this.find=A.findPositions,this.needsBlock=!1}get top(){return this.nodes[this.open]}addDOM(e){e.nodeType==3?this.addTextNode(e):e.nodeType==1&&this.addElement(e)}withStyleRules(e,A){let n=e.style;if(!n||!n.length)return A();let r=this.readStyles(e.style);if(!r)return;let[i,a]=r,s=this.top;for(let c=0;c<a.length;c++)this.removePendingMark(a[c],s);for(let c=0;c<i.length;c++)this.addPendingMark(i[c]);A();for(let c=0;c<i.length;c++)this.removePendingMark(i[c],s);for(let c=0;c<a.length;c++)this.addPendingMark(a[c])}addTextNode(e){let A=e.nodeValue,n=this.top;if(n.options&Vl||n.inlineContext(e)||/[^ \t\r\n\u000c]/.test(A)){if(n.options&Pl)n.options&Vl?A=A.replace(/\r\n?/g,`
29
+ `):A=A.replace(/\r?\n|\r/g," ");else if(A=A.replace(/[ \t\r\n\u000c]+/g," "),/^[ \t\r\n\u000c]/.test(A)&&this.open==this.nodes.length-1){let r=n.content[n.content.length-1],i=e.previousSibling;(!r||i&&i.nodeName=="BR"||r.isText&&/[ \t\r\n\u000c]$/.test(r.text))&&(A=A.slice(1))}A&&this.insertNode(this.parser.schema.text(A)),this.findInText(e)}else this.findInside(e)}addElement(e,A){let n=e.nodeName.toLowerCase(),r;mw.hasOwnProperty(n)&&this.parser.normalizeLists&&IT(e);let i=this.options.ruleFromNode&&this.options.ruleFromNode(e)||(r=this.parser.matchTag(e,this,A));if(i?i.ignore:_T.hasOwnProperty(n))this.findInside(e),this.ignoreFallback(e);else if(!i||i.skip||i.closeParent){i&&i.closeParent?this.open=Math.max(0,this.open-1):i&&i.skip.nodeType&&(e=i.skip);let a,s=this.top,c=this.needsBlock;if(pw.hasOwnProperty(n))s.content.length&&s.content[0].isInline&&this.open&&(this.open--,s=this.top),a=!0,s.type||(this.needsBlock=!0);else if(!e.firstChild){this.leafFallback(e);return}i&&i.skip?this.addAll(e):this.withStyleRules(e,()=>this.addAll(e)),a&&this.sync(s),this.needsBlock=c}else this.withStyleRules(e,()=>{this.addElementByRule(e,i,i.consuming===!1?r:void 0)})}leafFallback(e){e.nodeName=="BR"&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(e.ownerDocument.createTextNode(`
30
+ `))}ignoreFallback(e){e.nodeName=="BR"&&(!this.top.type||!this.top.type.inlineContent)&&this.findPlace(this.parser.schema.text("-"))}readStyles(e){let A=St.none,n=St.none;for(let r=0,i=e.length;r<i;r++){let a=e.item(r);for(let s=void 0;;){let c=this.parser.matchStyle(a,e.getPropertyValue(a),this,s);if(!c)break;if(c.ignore)return null;if(c.clearMark?this.top.pendingMarks.concat(this.top.activeMarks).forEach(d=>{c.clearMark(d)&&(n=d.addToSet(n))}):A=this.parser.schema.marks[c.mark].create(c.attrs).addToSet(A),c.consuming===!1)s=c;else break}}return[A,n]}addElementByRule(e,A,n){let r,i,a;A.node?(i=this.parser.schema.nodes[A.node],i.isLeaf?this.insertNode(i.create(A.attrs))||this.leafFallback(e):r=this.enter(i,A.attrs||null,A.preserveWhitespace)):(a=this.parser.schema.marks[A.mark].create(A.attrs),this.addPendingMark(a));let s=this.top;if(i&&i.isLeaf)this.findInside(e);else if(n)this.addElement(e,n);else if(A.getContent)this.findInside(e),A.getContent(e,this.parser.schema).forEach(c=>this.insertNode(c));else{let c=e;typeof A.contentElement=="string"?c=e.querySelector(A.contentElement):typeof A.contentElement=="function"?c=A.contentElement(e):A.contentElement&&(c=A.contentElement),this.findAround(e,c,!0),this.addAll(c)}r&&this.sync(s)&&this.open--,a&&this.removePendingMark(a,s)}addAll(e,A,n){let r=A||0;for(let i=A?e.childNodes[A]:e.firstChild,a=n==null?null:e.childNodes[n];i!=a;i=i.nextSibling,++r)this.findAtPoint(e,r),this.addDOM(i);this.findAtPoint(e,r)}findPlace(e){let A,n;for(let r=this.open;r>=0;r--){let i=this.nodes[r],a=i.findWrapping(e);if(a&&(!A||A.length>a.length)&&(A=a,n=i,!a.length)||i.solid)break}if(!A)return!1;this.sync(n);for(let r=0;r<A.length;r++)this.enterInner(A[r],null,!1);return!0}insertNode(e){if(e.isInline&&this.needsBlock&&!this.top.type){let A=this.textblockFromContext();A&&this.enterInner(A)}if(this.findPlace(e)){this.closeExtra();let A=this.top;A.applyPending(e.type),A.match&&(A.match=A.match.matchType(e.type));let n=A.activeMarks;for(let r=0;r<e.marks.length;r++)(!A.type||A.type.allowsMarkType(e.marks[r].type))&&(n=e.marks[r].addToSet(n));return A.content.push(e.mark(n)),!0}return!1}enter(e,A,n){let r=this.findPlace(e.create(A));return r&&this.enterInner(e,A,!0,n),r}enterInner(e,A=null,n=!1,r){this.closeExtra();let i=this.top;i.applyPending(e),i.match=i.match&&i.match.matchType(e);let a=gw(e,r,i.options);i.options&cs&&i.content.length==0&&(a|=cs),this.nodes.push(new Kl(e,A,i.activeMarks,i.pendingMarks,n,null,a)),this.open++}closeExtra(e=!1){let A=this.nodes.length-1;if(A>this.open){for(;A>this.open;A--)this.nodes[A-1].content.push(this.nodes[A].finish(e));this.nodes.length=this.open+1}}finish(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(this.isOpen||this.options.topOpen)}sync(e){for(let A=this.open;A>=0;A--)if(this.nodes[A]==e)return this.open=A,!0;return!1}get currentPos(){this.closeExtra();let e=0;for(let A=this.open;A>=0;A--){let n=this.nodes[A].content;for(let r=n.length-1;r>=0;r--)e+=n[r].nodeSize;A&&e++}return e}findAtPoint(e,A){if(this.find)for(let n=0;n<this.find.length;n++)this.find[n].node==e&&this.find[n].offset==A&&(this.find[n].pos=this.currentPos)}findInside(e){if(this.find)for(let A=0;A<this.find.length;A++)this.find[A].pos==null&&e.nodeType==1&&e.contains(this.find[A].node)&&(this.find[A].pos=this.currentPos)}findAround(e,A,n){if(e!=A&&this.find)for(let r=0;r<this.find.length;r++)this.find[r].pos==null&&e.nodeType==1&&e.contains(this.find[r].node)&&A.compareDocumentPosition(this.find[r].node)&(n?2:4)&&(this.find[r].pos=this.currentPos)}findInText(e){if(this.find)for(let A=0;A<this.find.length;A++)this.find[A].node==e&&(this.find[A].pos=this.currentPos-(e.nodeValue.length-this.find[A].offset))}matchesContext(e){if(e.indexOf("|")>-1)return e.split(/\s*\|\s*/).some(this.matchesContext,this);let A=e.split("/"),n=this.options.context,r=!this.isOpen&&(!n||n.parent.type==this.nodes[0].type),i=-(n?n.depth+1:0)+(r?0:1),a=(s,c)=>{for(;s>=0;s--){let d=A[s];if(d==""){if(s==A.length-1||s==0)continue;for(;c>=i;c--)if(a(s-1,c))return!0;return!1}else{let f=c>0||c==0&&r?this.nodes[c].type:n&&c>=i?n.node(c-i).type:null;if(!f||f.name!=d&&f.groups.indexOf(d)==-1)return!1;c--}}return!0};return a(A.length-1,this.open)}textblockFromContext(){let e=this.options.context;if(e)for(let A=e.depth;A>=0;A--){let n=e.node(A).contentMatchAt(e.indexAfter(A)).defaultType;if(n&&n.isTextblock&&n.defaultAttrs)return n}for(let A in this.parser.schema.nodes){let n=this.parser.schema.nodes[A];if(n.isTextblock&&n.defaultAttrs)return n}}addPendingMark(e){let A=xT(e,this.top.pendingMarks);A&&this.top.stashMarks.push(A),this.top.pendingMarks=e.addToSet(this.top.pendingMarks)}removePendingMark(e,A){for(let n=this.open;n>=0;n--){let r=this.nodes[n];if(r.pendingMarks.lastIndexOf(e)>-1)r.pendingMarks=e.removeFromSet(r.pendingMarks);else{r.activeMarks=e.removeFromSet(r.activeMarks);let a=r.popFromStashMark(e);a&&r.type&&r.type.allowsMarkType(a.type)&&(r.activeMarks=a.addToSet(r.activeMarks))}if(r==A)break}}}function IT(t){for(let e=t.firstChild,A=null;e;e=e.nextSibling){let n=e.nodeType==1?e.nodeName.toLowerCase():null;n&&mw.hasOwnProperty(n)&&A?(A.appendChild(e),e=A):n=="li"?A=e:n&&(A=null)}}function ST(t,e){return(t.matches||t.msMatchesSelector||t.webkitMatchesSelector||t.mozMatchesSelector).call(t,e)}function ww(t){let e={};for(let A in t)e[A]=t[A];return e}function TT(t,e){let A=e.schema.nodes;for(let n in A){let r=A[n];if(!r.allowsMarkType(t))continue;let i=[],a=s=>{i.push(s);for(let c=0;c<s.edgeCount;c++){let{type:d,next:f}=s.edge(c);if(d==e||i.indexOf(f)<0&&a(f))return!0}};if(a(r.contentMatch))return!0}}function xT(t,e){for(let A=0;A<e.length;A++)if(t.eq(e[A]))return e[A]}class pr{constructor(e,A){this.nodes=e,this.marks=A}serializeFragment(e,A={},n){n||(n=of(A).createDocumentFragment());let r=n,i=[];return e.forEach(a=>{if(i.length||a.marks.length){let s=0,c=0;for(;s<i.length&&c<a.marks.length;){let d=a.marks[c];if(!this.marks[d.type.name]){c++;continue}if(!d.eq(i[s][0])||d.type.spec.spanning===!1)break;s++,c++}for(;s<i.length;)r=i.pop()[1];for(;c<a.marks.length;){let d=a.marks[c++],f=this.serializeMark(d,a.isInline,A);f&&(i.push([d,r]),r.appendChild(f.dom),r=f.contentDOM||f.dom)}}r.appendChild(this.serializeNodeInner(a,A))}),n}serializeNodeInner(e,A){let{dom:n,contentDOM:r}=pr.renderSpec(of(A),this.nodes[e.type.name](e));if(r){if(e.isLeaf)throw new RangeError("Content hole not allowed in a leaf node spec");this.serializeFragment(e.content,A,r)}return n}serializeNode(e,A={}){let n=this.serializeNodeInner(e,A);for(let r=e.marks.length-1;r>=0;r--){let i=this.serializeMark(e.marks[r],e.isInline,A);i&&((i.contentDOM||i.dom).appendChild(n),n=i.dom)}return n}serializeMark(e,A,n={}){let r=this.marks[e.type.name];return r&&pr.renderSpec(of(n),r(e,A))}static renderSpec(e,A,n=null){if(typeof A=="string")return{dom:e.createTextNode(A)};if(A.nodeType!=null)return{dom:A};if(A.dom&&A.dom.nodeType!=null)return A;let r=A[0],i=r.indexOf(" ");i>0&&(n=r.slice(0,i),r=r.slice(i+1));let a,s=n?e.createElementNS(n,r):e.createElement(r),c=A[1],d=1;if(c&&typeof c=="object"&&c.nodeType==null&&!Array.isArray(c)){d=2;for(let f in c)if(c[f]!=null){let h=f.indexOf(" ");h>0?s.setAttributeNS(f.slice(0,h),f.slice(h+1),c[f]):s.setAttribute(f,c[f])}}for(let f=d;f<A.length;f++){let h=A[f];if(h===0){if(f<A.length-1||f>d)throw new RangeError("Content hole must be the only child of its parent node");return{dom:s,contentDOM:s}}else{let{dom:m,contentDOM:g}=pr.renderSpec(e,h,n);if(s.appendChild(m),g){if(a)throw new RangeError("Multiple content holes");a=g}}}return{dom:s,contentDOM:a}}static fromSchema(e){return e.cached.domSerializer||(e.cached.domSerializer=new pr(this.nodesFromSchema(e),this.marksFromSchema(e)))}static nodesFromSchema(e){let A=yw(e.nodes);return A.text||(A.text=n=>n.text),A}static marksFromSchema(e){return yw(e.marks)}}function yw(t){let e={};for(let A in t){let n=t[A].spec.toDOM;n&&(e[A]=n)}return e}function of(t){return t.document||window.document}const Cw=65535,bw=Math.pow(2,16);function DT(t,e){return t+e*bw}function vw(t){return t&Cw}function MT(t){return(t-(t&Cw))/bw}const Ew=1,Qw=2,$l=4,Fw=8;class sf{constructor(e,A,n){this.pos=e,this.delInfo=A,this.recover=n}get deleted(){return(this.delInfo&Fw)>0}get deletedBefore(){return(this.delInfo&(Ew|$l))>0}get deletedAfter(){return(this.delInfo&(Qw|$l))>0}get deletedAcross(){return(this.delInfo&$l)>0}}class Bn{constructor(e,A=!1){if(this.ranges=e,this.inverted=A,!e.length&&Bn.empty)return Bn.empty}recover(e){let A=0,n=vw(e);if(!this.inverted)for(let r=0;r<n;r++)A+=this.ranges[r*3+2]-this.ranges[r*3+1];return this.ranges[n*3]+A+MT(e)}mapResult(e,A=1){return this._map(e,A,!1)}map(e,A=1){return this._map(e,A,!0)}_map(e,A,n){let r=0,i=this.inverted?2:1,a=this.inverted?1:2;for(let s=0;s<this.ranges.length;s+=3){let c=this.ranges[s]-(this.inverted?r:0);if(c>e)break;let d=this.ranges[s+i],f=this.ranges[s+a],h=c+d;if(e<=h){let m=d?e==c?-1:e==h?1:A:A,g=c+r+(m<0?0:f);if(n)return g;let B=e==(A<0?c:h)?null:DT(s/3,e-c),y=e==c?Qw:e==h?Ew:$l;return(A<0?e!=c:e!=h)&&(y|=Fw),new sf(g,y,B)}r+=f-d}return n?e+r:new sf(e+r,0,null)}touches(e,A){let n=0,r=vw(A),i=this.inverted?2:1,a=this.inverted?1:2;for(let s=0;s<this.ranges.length;s+=3){let c=this.ranges[s]-(this.inverted?n:0);if(c>e)break;let d=this.ranges[s+i],f=c+d;if(e<=f&&s==r*3)return!0;n+=this.ranges[s+a]-d}return!1}forEach(e){let A=this.inverted?2:1,n=this.inverted?1:2;for(let r=0,i=0;r<this.ranges.length;r+=3){let a=this.ranges[r],s=a-(this.inverted?i:0),c=a+(this.inverted?0:i),d=this.ranges[r+A],f=this.ranges[r+n];e(s,s+d,c,c+f),i+=f-d}}invert(){return new Bn(this.ranges,!this.inverted)}toString(){return(this.inverted?"-":"")+JSON.stringify(this.ranges)}static offset(e){return e==0?Bn.empty:new Bn(e<0?[0,-e,0]:[0,0,e])}}Bn.empty=new Bn([]);class Za{constructor(e=[],A,n=0,r=e.length){this.maps=e,this.mirror=A,this.from=n,this.to=r}slice(e=0,A=this.maps.length){return new Za(this.maps,this.mirror,e,A)}copy(){return new Za(this.maps.slice(),this.mirror&&this.mirror.slice(),this.from,this.to)}appendMap(e,A){this.to=this.maps.push(e),A!=null&&this.setMirror(this.maps.length-1,A)}appendMapping(e){for(let A=0,n=this.maps.length;A<e.maps.length;A++){let r=e.getMirror(A);this.appendMap(e.maps[A],r!=null&&r<A?n+r:void 0)}}getMirror(e){if(this.mirror){for(let A=0;A<this.mirror.length;A++)if(this.mirror[A]==e)return this.mirror[A+(A%2?-1:1)]}}setMirror(e,A){this.mirror||(this.mirror=[]),this.mirror.push(e,A)}appendMappingInverted(e){for(let A=e.maps.length-1,n=this.maps.length+e.maps.length;A>=0;A--){let r=e.getMirror(A);this.appendMap(e.maps[A].invert(),r!=null&&r>A?n-r-1:void 0)}}invert(){let e=new Za;return e.appendMappingInverted(this),e}map(e,A=1){if(this.mirror)return this._map(e,A,!0);for(let n=this.from;n<this.to;n++)e=this.maps[n].map(e,A);return e}mapResult(e,A=1){return this._map(e,A,!1)}_map(e,A,n){let r=0;for(let i=this.from;i<this.to;i++){let a=this.maps[i],s=a.mapResult(e,A);if(s.recover!=null){let c=this.getMirror(i);if(c!=null&&c>i&&c<this.to){i=c,e=this.maps[c].recover(s.recover);continue}}r|=s.delInfo,e=s.pos}return n?e:new sf(e,r,null)}}const lf=Object.create(null);class OA{getMap(){return Bn.empty}merge(e){return null}static fromJSON(e,A){if(!A||!A.stepType)throw new RangeError("Invalid input for Step.fromJSON");let n=lf[A.stepType];if(!n)throw new RangeError(`No step type ${A.stepType} defined`);return n.fromJSON(e,A)}static jsonID(e,A){if(e in lf)throw new RangeError("Duplicate use of step JSON ID "+e);return lf[e]=A,A.prototype.jsonID=e,A}}class oA{constructor(e,A){this.doc=e,this.failed=A}static ok(e){return new oA(e,null)}static fail(e){return new oA(null,e)}static fromReplace(e,A,n,r){try{return oA.ok(e.replace(A,n,r))}catch(i){if(i instanceof Ol)return oA.fail(i.message);throw i}}}function cf(t,e,A){let n=[];for(let r=0;r<t.childCount;r++){let i=t.child(r);i.content.size&&(i=i.copy(cf(i.content,e,i))),i.isInline&&(i=e(i,A,r)),n.push(i)}return Qe.fromArray(n)}class pi extends OA{constructor(e,A,n){super(),this.from=e,this.to=A,this.mark=n}apply(e){let A=e.slice(this.from,this.to),n=e.resolve(this.from),r=n.node(n.sharedDepth(this.to)),i=new Te(cf(A.content,(a,s)=>!a.isAtom||!s.type.allowsMarkType(this.mark.type)?a:a.mark(this.mark.addToSet(a.marks)),r),A.openStart,A.openEnd);return oA.fromReplace(e,this.from,this.to,i)}invert(){return new mr(this.from,this.to,this.mark)}map(e){let A=e.mapResult(this.from,1),n=e.mapResult(this.to,-1);return A.deleted&&n.deleted||A.pos>=n.pos?null:new pi(A.pos,n.pos,this.mark)}merge(e){return e instanceof pi&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new pi(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,A){if(typeof A.from!="number"||typeof A.to!="number")throw new RangeError("Invalid input for AddMarkStep.fromJSON");return new pi(A.from,A.to,e.markFromJSON(A.mark))}}OA.jsonID("addMark",pi);class mr extends OA{constructor(e,A,n){super(),this.from=e,this.to=A,this.mark=n}apply(e){let A=e.slice(this.from,this.to),n=new Te(cf(A.content,r=>r.mark(this.mark.removeFromSet(r.marks)),e),A.openStart,A.openEnd);return oA.fromReplace(e,this.from,this.to,n)}invert(){return new pi(this.from,this.to,this.mark)}map(e){let A=e.mapResult(this.from,1),n=e.mapResult(this.to,-1);return A.deleted&&n.deleted||A.pos>=n.pos?null:new mr(A.pos,n.pos,this.mark)}merge(e){return e instanceof mr&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new mr(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,A){if(typeof A.from!="number"||typeof A.to!="number")throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");return new mr(A.from,A.to,e.markFromJSON(A.mark))}}OA.jsonID("removeMark",mr);class mi extends OA{constructor(e,A){super(),this.pos=e,this.mark=A}apply(e){let A=e.nodeAt(this.pos);if(!A)return oA.fail("No node at mark step's position");let n=A.type.create(A.attrs,null,this.mark.addToSet(A.marks));return oA.fromReplace(e,this.pos,this.pos+1,new Te(Qe.from(n),0,A.isLeaf?0:1))}invert(e){let A=e.nodeAt(this.pos);if(A){let n=this.mark.addToSet(A.marks);if(n.length==A.marks.length){for(let r=0;r<A.marks.length;r++)if(!A.marks[r].isInSet(n))return new mi(this.pos,A.marks[r]);return new mi(this.pos,this.mark)}}return new eo(this.pos,this.mark)}map(e){let A=e.mapResult(this.pos,1);return A.deletedAfter?null:new mi(A.pos,this.mark)}toJSON(){return{stepType:"addNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(e,A){if(typeof A.pos!="number")throw new RangeError("Invalid input for AddNodeMarkStep.fromJSON");return new mi(A.pos,e.markFromJSON(A.mark))}}OA.jsonID("addNodeMark",mi);class eo extends OA{constructor(e,A){super(),this.pos=e,this.mark=A}apply(e){let A=e.nodeAt(this.pos);if(!A)return oA.fail("No node at mark step's position");let n=A.type.create(A.attrs,null,this.mark.removeFromSet(A.marks));return oA.fromReplace(e,this.pos,this.pos+1,new Te(Qe.from(n),0,A.isLeaf?0:1))}invert(e){let A=e.nodeAt(this.pos);return!A||!this.mark.isInSet(A.marks)?this:new mi(this.pos,this.mark)}map(e){let A=e.mapResult(this.pos,1);return A.deletedAfter?null:new eo(A.pos,this.mark)}toJSON(){return{stepType:"removeNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(e,A){if(typeof A.pos!="number")throw new RangeError("Invalid input for RemoveNodeMarkStep.fromJSON");return new eo(A.pos,e.markFromJSON(A.mark))}}OA.jsonID("removeNodeMark",eo);class BA extends OA{constructor(e,A,n,r=!1){super(),this.from=e,this.to=A,this.slice=n,this.structure=r}apply(e){return this.structure&&uf(e,this.from,this.to)?oA.fail("Structure replace would overwrite content"):oA.fromReplace(e,this.from,this.to,this.slice)}getMap(){return new Bn([this.from,this.to-this.from,this.slice.size])}invert(e){return new BA(this.from,this.from+this.slice.size,e.slice(this.from,this.to))}map(e){let A=e.mapResult(this.from,1),n=e.mapResult(this.to,-1);return A.deletedAcross&&n.deletedAcross?null:new BA(A.pos,Math.max(A.pos,n.pos),this.slice)}merge(e){if(!(e instanceof BA)||e.structure||this.structure)return null;if(this.from+this.slice.size==e.from&&!this.slice.openEnd&&!e.slice.openStart){let A=this.slice.size+e.slice.size==0?Te.empty:new Te(this.slice.content.append(e.slice.content),this.slice.openStart,e.slice.openEnd);return new BA(this.from,this.to+(e.to-e.from),A,this.structure)}else if(e.to==this.from&&!this.slice.openStart&&!e.slice.openEnd){let A=this.slice.size+e.slice.size==0?Te.empty:new Te(e.slice.content.append(this.slice.content),e.slice.openStart,this.slice.openEnd);return new BA(e.from,this.to,A,this.structure)}else return null}toJSON(){let e={stepType:"replace",from:this.from,to:this.to};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,A){if(typeof A.from!="number"||typeof A.to!="number")throw new RangeError("Invalid input for ReplaceStep.fromJSON");return new BA(A.from,A.to,Te.fromJSON(e,A.slice),!!A.structure)}}OA.jsonID("replace",BA);class wA extends OA{constructor(e,A,n,r,i,a,s=!1){super(),this.from=e,this.to=A,this.gapFrom=n,this.gapTo=r,this.slice=i,this.insert=a,this.structure=s}apply(e){if(this.structure&&(uf(e,this.from,this.gapFrom)||uf(e,this.gapTo,this.to)))return oA.fail("Structure gap-replace would overwrite content");let A=e.slice(this.gapFrom,this.gapTo);if(A.openStart||A.openEnd)return oA.fail("Gap is not a flat range");let n=this.slice.insertAt(this.insert,A.content);return n?oA.fromReplace(e,this.from,this.to,n):oA.fail("Content does not fit in gap")}getMap(){return new Bn([this.from,this.gapFrom-this.from,this.insert,this.gapTo,this.to-this.gapTo,this.slice.size-this.insert])}invert(e){let A=this.gapTo-this.gapFrom;return new wA(this.from,this.from+this.slice.size+A,this.from+this.insert,this.from+this.insert+A,e.slice(this.from,this.to).removeBetween(this.gapFrom-this.from,this.gapTo-this.from),this.gapFrom-this.from,this.structure)}map(e){let A=e.mapResult(this.from,1),n=e.mapResult(this.to,-1),r=this.from==this.gapFrom?A.pos:e.map(this.gapFrom,-1),i=this.to==this.gapTo?n.pos:e.map(this.gapTo,1);return A.deletedAcross&&n.deletedAcross||r<A.pos||i>n.pos?null:new wA(A.pos,n.pos,r,i,this.slice,this.insert,this.structure)}toJSON(){let e={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,A){if(typeof A.from!="number"||typeof A.to!="number"||typeof A.gapFrom!="number"||typeof A.gapTo!="number"||typeof A.insert!="number")throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new wA(A.from,A.to,A.gapFrom,A.gapTo,Te.fromJSON(e,A.slice),A.insert,!!A.structure)}}OA.jsonID("replaceAround",wA);function uf(t,e,A){let n=t.resolve(e),r=A-e,i=n.depth;for(;r>0&&i>0&&n.indexAfter(i)==n.node(i).childCount;)i--,r--;if(r>0){let a=n.node(i).maybeChild(n.indexAfter(i));for(;r>0;){if(!a||a.isLeaf)return!0;a=a.firstChild,r--}}return!1}function OT(t,e,A,n){let r=[],i=[],a,s;t.doc.nodesBetween(e,A,(c,d,f)=>{if(!c.isInline)return;let h=c.marks;if(!n.isInSet(h)&&f.type.allowsMarkType(n.type)){let m=Math.max(d,e),g=Math.min(d+c.nodeSize,A),B=n.addToSet(h);for(let y=0;y<h.length;y++)h[y].isInSet(B)||(a&&a.to==m&&a.mark.eq(h[y])?a.to=g:r.push(a=new mr(m,g,h[y])));s&&s.to==m?s.to=g:i.push(s=new pi(m,g,n))}}),r.forEach(c=>t.step(c)),i.forEach(c=>t.step(c))}function NT(t,e,A,n){let r=[],i=0;t.doc.nodesBetween(e,A,(a,s)=>{if(!a.isInline)return;i++;let c=null;if(n instanceof Rl){let d=a.marks,f;for(;f=n.isInSet(d);)(c||(c=[])).push(f),d=f.removeFromSet(d)}else n?n.isInSet(a.marks)&&(c=[n]):c=a.marks;if(c&&c.length){let d=Math.min(s+a.nodeSize,A);for(let f=0;f<c.length;f++){let h=c[f],m;for(let g=0;g<r.length;g++){let B=r[g];B.step==i-1&&h.eq(r[g].style)&&(m=B)}m?(m.to=d,m.step=i):r.push({style:h,from:Math.max(s,e),to:d,step:i})}}}),r.forEach(a=>t.step(new mr(a.from,a.to,a.style)))}function Uw(t,e,A,n=A.contentMatch,r=!0){let i=t.doc.nodeAt(e),a=[],s=e+1;for(let c=0;c<i.childCount;c++){let d=i.child(c),f=s+d.nodeSize,h=n.matchType(d.type);if(!h)a.push(new BA(s,f,Te.empty));else{n=h;for(let m=0;m<d.marks.length;m++)A.allowsMarkType(d.marks[m].type)||t.step(new mr(s,f,d.marks[m]));if(r&&d.isText&&A.whitespace!="pre"){let m,g=/\r?\n|\r/g,B;for(;m=g.exec(d.text);)B||(B=new Te(Qe.from(A.schema.text(" ",A.allowedMarks(d.marks))),0,0)),a.push(new BA(s+m.index,s+m.index+m[0].length,B))}}s=f}if(!n.validEnd){let c=n.fillBefore(Qe.empty,!0);t.replace(s,s,new Te(c,0,0))}for(let c=a.length-1;c>=0;c--)t.step(a[c])}function LT(t,e,A){return(e==0||t.canReplace(e,t.childCount))&&(A==t.childCount||t.canReplace(0,A))}function to(t){let A=t.parent.content.cutByIndex(t.startIndex,t.endIndex);for(let n=t.depth;;--n){let r=t.$from.node(n),i=t.$from.index(n),a=t.$to.indexAfter(n);if(n<t.depth&&r.canReplace(i,a,A))return n;if(n==0||r.type.spec.isolating||!LT(r,i,a))break}return null}function HT(t,e,A){let{$from:n,$to:r,depth:i}=e,a=n.before(i+1),s=r.after(i+1),c=a,d=s,f=Qe.empty,h=0;for(let B=i,y=!1;B>A;B--)y||n.index(B)>0?(y=!0,f=Qe.from(n.node(B).copy(f)),h++):c--;let m=Qe.empty,g=0;for(let B=i,y=!1;B>A;B--)y||r.after(B+1)<r.end(B)?(y=!0,m=Qe.from(r.node(B).copy(m)),g++):d++;t.step(new wA(c,d,a,s,new Te(f.append(m),h,g),f.size-h,!0))}function df(t,e,A=null,n=t){let r=RT(t,e),i=r&&PT(n,e);return i?r.map(kw).concat({type:e,attrs:A}).concat(i.map(kw)):null}function kw(t){return{type:t,attrs:null}}function RT(t,e){let{parent:A,startIndex:n,endIndex:r}=t,i=A.contentMatchAt(n).findWrapping(e);if(!i)return null;let a=i.length?i[0]:e;return A.canReplaceWith(n,r,a)?i:null}function PT(t,e){let{parent:A,startIndex:n,endIndex:r}=t,i=A.child(n),a=e.contentMatch.findWrapping(i.type);if(!a)return null;let c=(a.length?a[a.length-1]:e).contentMatch;for(let d=n;c&&d<r;d++)c=c.matchType(A.child(d).type);return!c||!c.validEnd?null:a}function VT(t,e,A){let n=Qe.empty;for(let a=A.length-1;a>=0;a--){if(n.size){let s=A[a].type.contentMatch.matchFragment(n);if(!s||!s.validEnd)throw new RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper")}n=Qe.from(A[a].type.create(A[a].attrs,n))}let r=e.start,i=e.end;t.step(new wA(r,i,r,i,new Te(n,0,0),A.length,!0))}function KT(t,e,A,n,r){if(!n.isTextblock)throw new RangeError("Type given to setBlockType should be a textblock");let i=t.steps.length;t.doc.nodesBetween(e,A,(a,s)=>{if(a.isTextblock&&!a.hasMarkup(n,r)&&WT(t.doc,t.mapping.slice(i).map(s),n)){let c=null;if(n.schema.linebreakReplacement){let m=n.whitespace=="pre",g=!!n.contentMatch.matchType(n.schema.linebreakReplacement);m&&!g?c=!1:!m&&g&&(c=!0)}c===!1&&GT(t,a,s,i),Uw(t,t.mapping.slice(i).map(s,1),n,void 0,c===null);let d=t.mapping.slice(i),f=d.map(s,1),h=d.map(s+a.nodeSize,1);return t.step(new wA(f,h,f+1,h-1,new Te(Qe.from(n.create(r,null,a.marks)),0,0),1,!0)),c===!0&&$T(t,a,s,i),!1}})}function $T(t,e,A,n){e.forEach((r,i)=>{if(r.isText){let a,s=/\r?\n|\r/g;for(;a=s.exec(r.text);){let c=t.mapping.slice(n).map(A+1+i+a.index);t.replaceWith(c,c+1,e.type.schema.linebreakReplacement.create())}}})}function GT(t,e,A,n){e.forEach((r,i)=>{if(r.type==r.type.schema.linebreakReplacement){let a=t.mapping.slice(n).map(A+1+i);t.replaceWith(a,a+1,e.type.schema.text(`
31
+ `))}})}function WT(t,e,A){let n=t.resolve(e),r=n.index();return n.parent.canReplaceWith(r,r+1,A)}function YT(t,e,A,n,r){let i=t.doc.nodeAt(e);if(!i)throw new RangeError("No node at given position");A||(A=i.type);let a=A.create(n,null,r||i.marks);if(i.isLeaf)return t.replaceWith(e,e+i.nodeSize,a);if(!A.validContent(i.content))throw new RangeError("Invalid content for node type "+A.name);t.step(new wA(e,e+i.nodeSize,e+1,e+i.nodeSize-1,new Te(Qe.from(a),0,0),1,!0))}function Ao(t,e,A=1,n){let r=t.resolve(e),i=r.depth-A,a=n&&n[n.length-1]||r.parent;if(i<0||r.parent.type.spec.isolating||!r.parent.canReplace(r.index(),r.parent.childCount)||!a.type.validContent(r.parent.content.cutByIndex(r.index(),r.parent.childCount)))return!1;for(let d=r.depth-1,f=A-2;d>i;d--,f--){let h=r.node(d),m=r.index(d);if(h.type.spec.isolating)return!1;let g=h.content.cutByIndex(m,h.childCount),B=n&&n[f+1];B&&(g=g.replaceChild(0,B.type.create(B.attrs)));let y=n&&n[f]||h;if(!h.canReplace(m+1,h.childCount)||!y.type.validContent(g))return!1}let s=r.indexAfter(i),c=n&&n[0];return r.node(i).canReplaceWith(s,s,c?c.type:r.node(i+1).type)}function zT(t,e,A=1,n){let r=t.doc.resolve(e),i=Qe.empty,a=Qe.empty;for(let s=r.depth,c=r.depth-A,d=A-1;s>c;s--,d--){i=Qe.from(r.node(s).copy(i));let f=n&&n[d];a=Qe.from(f?f.type.create(f.attrs,a):r.node(s).copy(a))}t.step(new BA(e,e,new Te(i.append(a),A,A),!0))}function gi(t,e){let A=t.resolve(e),n=A.index();return _w(A.nodeBefore,A.nodeAfter)&&A.parent.canReplace(n,n+1)}function _w(t,e){return!!(t&&e&&!t.isLeaf&&t.canAppend(e))}function Gl(t,e,A=-1){let n=t.resolve(e);for(let r=n.depth;;r--){let i,a,s=n.index(r);if(r==n.depth?(i=n.nodeBefore,a=n.nodeAfter):A>0?(i=n.node(r+1),s++,a=n.node(r).maybeChild(s)):(i=n.node(r).maybeChild(s-1),a=n.node(r+1)),i&&!i.isTextblock&&_w(i,a)&&n.node(r).canReplace(s,s+1))return e;if(r==0)break;e=A<0?n.before(r):n.after(r)}}function JT(t,e,A){let n=new BA(e-A,e+A,Te.empty,!0);t.step(n)}function XT(t,e,A){let n=t.resolve(e);if(n.parent.canReplaceWith(n.index(),n.index(),A))return e;if(n.parentOffset==0)for(let r=n.depth-1;r>=0;r--){let i=n.index(r);if(n.node(r).canReplaceWith(i,i,A))return n.before(r+1);if(i>0)return null}if(n.parentOffset==n.parent.content.size)for(let r=n.depth-1;r>=0;r--){let i=n.indexAfter(r);if(n.node(r).canReplaceWith(i,i,A))return n.after(r+1);if(i<n.node(r).childCount)return null}return null}function Iw(t,e,A){let n=t.resolve(e);if(!A.content.size)return e;let r=A.content;for(let i=0;i<A.openStart;i++)r=r.firstChild.content;for(let i=1;i<=(A.openStart==0&&A.size?2:1);i++)for(let a=n.depth;a>=0;a--){let s=a==n.depth?0:n.pos<=(n.start(a+1)+n.end(a+1))/2?-1:1,c=n.index(a)+(s>0?1:0),d=n.node(a),f=!1;if(i==1)f=d.canReplace(c,c,r);else{let h=d.contentMatchAt(c).findWrapping(r.firstChild.type);f=h&&d.canReplaceWith(c,c,h[0])}if(f)return s==0?n.pos:s<0?n.before(a+1):n.after(a+1)}return null}function Wl(t,e,A=e,n=Te.empty){if(e==A&&!n.size)return null;let r=t.resolve(e),i=t.resolve(A);return Sw(r,i,n)?new BA(e,A,n):new qT(r,i,n).fit()}function Sw(t,e,A){return!A.openStart&&!A.openEnd&&t.start()==e.start()&&t.parent.canReplace(t.index(),e.index(),A.content)}class qT{constructor(e,A,n){this.$from=e,this.$to=A,this.unplaced=n,this.frontier=[],this.placed=Qe.empty;for(let r=0;r<=e.depth;r++){let i=e.node(r);this.frontier.push({type:i.type,match:i.contentMatchAt(e.indexAfter(r))})}for(let r=e.depth;r>0;r--)this.placed=Qe.from(e.node(r).copy(this.placed))}get depth(){return this.frontier.length-1}fit(){for(;this.unplaced.size;){let d=this.findFittable();d?this.placeNodes(d):this.openMore()||this.dropNode()}let e=this.mustMoveInline(),A=this.placed.size-this.depth-this.$from.depth,n=this.$from,r=this.close(e<0?this.$to:n.doc.resolve(e));if(!r)return null;let i=this.placed,a=n.depth,s=r.depth;for(;a&&s&&i.childCount==1;)i=i.firstChild.content,a--,s--;let c=new Te(i,a,s);return e>-1?new wA(n.pos,e,this.$to.pos,this.$to.end(),c,A):c.size||n.pos!=this.$to.pos?new BA(n.pos,r.pos,c):null}findFittable(){let e=this.unplaced.openStart;for(let A=this.unplaced.content,n=0,r=this.unplaced.openEnd;n<e;n++){let i=A.firstChild;if(A.childCount>1&&(r=0),i.type.spec.isolating&&r<=n){e=n;break}A=i.content}for(let A=1;A<=2;A++)for(let n=A==1?e:this.unplaced.openStart;n>=0;n--){let r,i=null;n?(i=ff(this.unplaced.content,n-1).firstChild,r=i.content):r=this.unplaced.content;let a=r.firstChild;for(let s=this.depth;s>=0;s--){let{type:c,match:d}=this.frontier[s],f,h=null;if(A==1&&(a?d.matchType(a.type)||(h=d.fillBefore(Qe.from(a),!1)):i&&c.compatibleContent(i.type)))return{sliceDepth:n,frontierDepth:s,parent:i,inject:h};if(A==2&&a&&(f=d.findWrapping(a.type)))return{sliceDepth:n,frontierDepth:s,parent:i,wrap:f};if(i&&d.matchType(i.type))break}}}openMore(){let{content:e,openStart:A,openEnd:n}=this.unplaced,r=ff(e,A);return!r.childCount||r.firstChild.isLeaf?!1:(this.unplaced=new Te(e,A+1,Math.max(n,r.size+A>=e.size-n?A+1:0)),!0)}dropNode(){let{content:e,openStart:A,openEnd:n}=this.unplaced,r=ff(e,A);if(r.childCount<=1&&A>0){let i=e.size-A<=A+r.size;this.unplaced=new Te(us(e,A-1,1),A-1,i?A-1:n)}else this.unplaced=new Te(us(e,A,1),A,n)}placeNodes({sliceDepth:e,frontierDepth:A,parent:n,inject:r,wrap:i}){for(;this.depth>A;)this.closeFrontierNode();if(i)for(let y=0;y<i.length;y++)this.openFrontierNode(i[y]);let a=this.unplaced,s=n?n.content:a.content,c=a.openStart-e,d=0,f=[],{match:h,type:m}=this.frontier[A];if(r){for(let y=0;y<r.childCount;y++)f.push(r.child(y));h=h.matchFragment(r)}let g=s.size+e-(a.content.size-a.openEnd);for(;d<s.childCount;){let y=s.child(d),v=h.matchType(y.type);if(!v)break;d++,(d>1||c==0||y.content.size)&&(h=v,f.push(Tw(y.mark(m.allowedMarks(y.marks)),d==1?c:0,d==s.childCount?g:-1)))}let B=d==s.childCount;B||(g=-1),this.placed=ds(this.placed,A,Qe.from(f)),this.frontier[A].match=h,B&&g<0&&n&&n.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(let y=0,v=s;y<g;y++){let Q=v.lastChild;this.frontier.push({type:Q.type,match:Q.contentMatchAt(Q.childCount)}),v=Q.content}this.unplaced=B?e==0?Te.empty:new Te(us(a.content,e-1,1),e-1,g<0?a.openEnd:e-1):new Te(us(a.content,e,d),a.openStart,a.openEnd)}mustMoveInline(){if(!this.$to.parent.isTextblock)return-1;let e=this.frontier[this.depth],A;if(!e.type.isTextblock||!hf(this.$to,this.$to.depth,e.type,e.match,!1)||this.$to.depth==this.depth&&(A=this.findCloseLevel(this.$to))&&A.depth==this.depth)return-1;let{depth:n}=this.$to,r=this.$to.after(n);for(;n>1&&r==this.$to.end(--n);)++r;return r}findCloseLevel(e){e:for(let A=Math.min(this.depth,e.depth);A>=0;A--){let{match:n,type:r}=this.frontier[A],i=A<e.depth&&e.end(A+1)==e.pos+(e.depth-(A+1)),a=hf(e,A,r,n,i);if(a){for(let s=A-1;s>=0;s--){let{match:c,type:d}=this.frontier[s],f=hf(e,s,d,c,!0);if(!f||f.childCount)continue e}return{depth:A,fit:a,move:i?e.doc.resolve(e.after(A+1)):e}}}}close(e){let A=this.findCloseLevel(e);if(!A)return null;for(;this.depth>A.depth;)this.closeFrontierNode();A.fit.childCount&&(this.placed=ds(this.placed,A.depth,A.fit)),e=A.move;for(let n=A.depth+1;n<=e.depth;n++){let r=e.node(n),i=r.type.contentMatch.fillBefore(r.content,!0,e.index(n));this.openFrontierNode(r.type,r.attrs,i)}return e}openFrontierNode(e,A=null,n){let r=this.frontier[this.depth];r.match=r.match.matchType(e),this.placed=ds(this.placed,this.depth,Qe.from(e.create(A,n))),this.frontier.push({type:e,match:e.contentMatch})}closeFrontierNode(){let A=this.frontier.pop().match.fillBefore(Qe.empty,!0);A.childCount&&(this.placed=ds(this.placed,this.frontier.length,A))}}function us(t,e,A){return e==0?t.cutByIndex(A,t.childCount):t.replaceChild(0,t.firstChild.copy(us(t.firstChild.content,e-1,A)))}function ds(t,e,A){return e==0?t.append(A):t.replaceChild(t.childCount-1,t.lastChild.copy(ds(t.lastChild.content,e-1,A)))}function ff(t,e){for(let A=0;A<e;A++)t=t.firstChild.content;return t}function Tw(t,e,A){if(e<=0)return t;let n=t.content;return e>1&&(n=n.replaceChild(0,Tw(n.firstChild,e-1,n.childCount==1?A-1:0))),e>0&&(n=t.type.contentMatch.fillBefore(n).append(n),A<=0&&(n=n.append(t.type.contentMatch.matchFragment(n).fillBefore(Qe.empty,!0)))),t.copy(n)}function hf(t,e,A,n,r){let i=t.node(e),a=r?t.indexAfter(e):t.index(e);if(a==i.childCount&&!A.compatibleContent(i.type))return null;let s=n.fillBefore(i.content,!0,a);return s&&!jT(A,i.content,a)?s:null}function jT(t,e,A){for(let n=A;n<e.childCount;n++)if(!t.allowsMarks(e.child(n).marks))return!0;return!1}function ZT(t){return t.spec.defining||t.spec.definingForContent}function ex(t,e,A,n){if(!n.size)return t.deleteRange(e,A);let r=t.doc.resolve(e),i=t.doc.resolve(A);if(Sw(r,i,n))return t.step(new BA(e,A,n));let a=Dw(r,t.doc.resolve(A));a[a.length-1]==0&&a.pop();let s=-(r.depth+1);a.unshift(s);for(let m=r.depth,g=r.pos-1;m>0;m--,g--){let B=r.node(m).type.spec;if(B.defining||B.definingAsContext||B.isolating)break;a.indexOf(m)>-1?s=m:r.before(m)==g&&a.splice(1,0,-m)}let c=a.indexOf(s),d=[],f=n.openStart;for(let m=n.content,g=0;;g++){let B=m.firstChild;if(d.push(B),g==n.openStart)break;m=B.content}for(let m=f-1;m>=0;m--){let g=d[m],B=ZT(g.type);if(B&&!g.sameMarkup(r.node(Math.abs(s)-1)))f=m;else if(B||!g.type.isTextblock)break}for(let m=n.openStart;m>=0;m--){let g=(m+f+1)%(n.openStart+1),B=d[g];if(B)for(let y=0;y<a.length;y++){let v=a[(y+c)%a.length],Q=!0;v<0&&(Q=!1,v=-v);let k=r.node(v-1),F=r.index(v-1);if(k.canReplaceWith(F,F,B.type,B.marks))return t.replace(r.before(v),Q?i.after(v):A,new Te(xw(n.content,0,n.openStart,g),g,n.openEnd))}}let h=t.steps.length;for(let m=a.length-1;m>=0&&(t.replace(e,A,n),!(t.steps.length>h));m--){let g=a[m];g<0||(e=r.before(g),A=i.after(g))}}function xw(t,e,A,n,r){if(e<A){let i=t.firstChild;t=t.replaceChild(0,i.copy(xw(i.content,e+1,A,n,i)))}if(e>n){let i=r.contentMatchAt(0),a=i.fillBefore(t).append(t);t=a.append(i.matchFragment(a).fillBefore(Qe.empty,!0))}return t}function tx(t,e,A,n){if(!n.isInline&&e==A&&t.doc.resolve(e).parent.content.size){let r=XT(t.doc,e,n.type);r!=null&&(e=A=r)}t.replaceRange(e,A,new Te(Qe.from(n),0,0))}function Ax(t,e,A){let n=t.doc.resolve(e),r=t.doc.resolve(A),i=Dw(n,r);for(let a=0;a<i.length;a++){let s=i[a],c=a==i.length-1;if(c&&s==0||n.node(s).type.contentMatch.validEnd)return t.delete(n.start(s),r.end(s));if(s>0&&(c||n.node(s-1).canReplace(n.index(s-1),r.indexAfter(s-1))))return t.delete(n.before(s),r.after(s))}for(let a=1;a<=n.depth&&a<=r.depth;a++)if(e-n.start(a)==n.depth-a&&A>n.end(a)&&r.end(a)-A!=r.depth-a)return t.delete(n.before(a),A);t.delete(e,A)}function Dw(t,e){let A=[],n=Math.min(t.depth,e.depth);for(let r=n;r>=0;r--){let i=t.start(r);if(i<t.pos-(t.depth-r)||e.end(r)>e.pos+(e.depth-r)||t.node(r).type.spec.isolating||e.node(r).type.spec.isolating)break;(i==e.start(r)||r==t.depth&&r==e.depth&&t.parent.inlineContent&&e.parent.inlineContent&&r&&e.start(r-1)==i-1)&&A.push(r)}return A}class no extends OA{constructor(e,A,n){super(),this.pos=e,this.attr=A,this.value=n}apply(e){let A=e.nodeAt(this.pos);if(!A)return oA.fail("No node at attribute step's position");let n=Object.create(null);for(let i in A.attrs)n[i]=A.attrs[i];n[this.attr]=this.value;let r=A.type.create(n,null,A.marks);return oA.fromReplace(e,this.pos,this.pos+1,new Te(Qe.from(r),0,A.isLeaf?0:1))}getMap(){return Bn.empty}invert(e){return new no(this.pos,this.attr,e.nodeAt(this.pos).attrs[this.attr])}map(e){let A=e.mapResult(this.pos,1);return A.deletedAfter?null:new no(A.pos,this.attr,this.value)}toJSON(){return{stepType:"attr",pos:this.pos,attr:this.attr,value:this.value}}static fromJSON(e,A){if(typeof A.pos!="number"||typeof A.attr!="string")throw new RangeError("Invalid input for AttrStep.fromJSON");return new no(A.pos,A.attr,A.value)}}OA.jsonID("attr",no);class fs extends OA{constructor(e,A){super(),this.attr=e,this.value=A}apply(e){let A=Object.create(null);for(let r in e.attrs)A[r]=e.attrs[r];A[this.attr]=this.value;let n=e.type.create(A,e.content,e.marks);return oA.ok(n)}getMap(){return Bn.empty}invert(e){return new fs(this.attr,e.attrs[this.attr])}map(e){return this}toJSON(){return{stepType:"docAttr",attr:this.attr,value:this.value}}static fromJSON(e,A){if(typeof A.attr!="string")throw new RangeError("Invalid input for DocAttrStep.fromJSON");return new fs(A.attr,A.value)}}OA.jsonID("docAttr",fs);let ro=class extends Error{};ro=function t(e){let A=Error.call(this,e);return A.__proto__=t.prototype,A},ro.prototype=Object.create(Error.prototype),ro.prototype.constructor=ro,ro.prototype.name="TransformError";class nx{constructor(e){this.doc=e,this.steps=[],this.docs=[],this.mapping=new Za}get before(){return this.docs.length?this.docs[0]:this.doc}step(e){let A=this.maybeStep(e);if(A.failed)throw new ro(A.failed);return this}maybeStep(e){let A=e.apply(this.doc);return A.failed||this.addStep(e,A.doc),A}get docChanged(){return this.steps.length>0}addStep(e,A){this.docs.push(this.doc),this.steps.push(e),this.mapping.appendMap(e.getMap()),this.doc=A}replace(e,A=e,n=Te.empty){let r=Wl(this.doc,e,A,n);return r&&this.step(r),this}replaceWith(e,A,n){return this.replace(e,A,new Te(Qe.from(n),0,0))}delete(e,A){return this.replace(e,A,Te.empty)}insert(e,A){return this.replaceWith(e,e,A)}replaceRange(e,A,n){return ex(this,e,A,n),this}replaceRangeWith(e,A,n){return tx(this,e,A,n),this}deleteRange(e,A){return Ax(this,e,A),this}lift(e,A){return HT(this,e,A),this}join(e,A=1){return JT(this,e,A),this}wrap(e,A){return VT(this,e,A),this}setBlockType(e,A=e,n,r=null){return KT(this,e,A,n,r),this}setNodeMarkup(e,A,n=null,r){return YT(this,e,A,n,r),this}setNodeAttribute(e,A,n){return this.step(new no(e,A,n)),this}setDocAttribute(e,A){return this.step(new fs(e,A)),this}addNodeMark(e,A){return this.step(new mi(e,A)),this}removeNodeMark(e,A){if(!(A instanceof St)){let n=this.doc.nodeAt(e);if(!n)throw new RangeError("No node at position "+e);if(A=A.isInSet(n.marks),!A)return this}return this.step(new eo(e,A)),this}split(e,A=1,n){return zT(this,e,A,n),this}addMark(e,A,n){return OT(this,e,A,n),this}removeMark(e,A,n){return NT(this,e,A,n),this}clearIncompatible(e,A,n){return Uw(this,e,A,n),this}}const pf=Object.create(null);class st{constructor(e,A,n){this.$anchor=e,this.$head=A,this.ranges=n||[new rx(e.min(A),e.max(A))]}get anchor(){return this.$anchor.pos}get head(){return this.$head.pos}get from(){return this.$from.pos}get to(){return this.$to.pos}get $from(){return this.ranges[0].$from}get $to(){return this.ranges[0].$to}get empty(){let e=this.ranges;for(let A=0;A<e.length;A++)if(e[A].$from.pos!=e[A].$to.pos)return!1;return!0}content(){return this.$from.doc.slice(this.from,this.to,!0)}replace(e,A=Te.empty){let n=A.content.lastChild,r=null;for(let s=0;s<A.openEnd;s++)r=n,n=n.lastChild;let i=e.steps.length,a=this.ranges;for(let s=0;s<a.length;s++){let{$from:c,$to:d}=a[s],f=e.mapping.slice(i);e.replaceRange(f.map(c.pos),f.map(d.pos),s?Te.empty:A),s==0&&Nw(e,i,(n?n.isInline:r&&r.isTextblock)?-1:1)}}replaceWith(e,A){let n=e.steps.length,r=this.ranges;for(let i=0;i<r.length;i++){let{$from:a,$to:s}=r[i],c=e.mapping.slice(n),d=c.map(a.pos),f=c.map(s.pos);i?e.deleteRange(d,f):(e.replaceRangeWith(d,f,A),Nw(e,n,A.isInline?-1:1))}}static findFrom(e,A,n=!1){let r=e.parent.inlineContent?new it(e):io(e.node(0),e.parent,e.pos,e.index(),A,n);if(r)return r;for(let i=e.depth-1;i>=0;i--){let a=A<0?io(e.node(0),e.node(i),e.before(i+1),e.index(i),A,n):io(e.node(0),e.node(i),e.after(i+1),e.index(i)+1,A,n);if(a)return a}return null}static near(e,A=1){return this.findFrom(e,A)||this.findFrom(e,-A)||new Zn(e.node(0))}static atStart(e){return io(e,e,0,0,1)||new Zn(e)}static atEnd(e){return io(e,e,e.content.size,e.childCount,-1)||new Zn(e)}static fromJSON(e,A){if(!A||!A.type)throw new RangeError("Invalid input for Selection.fromJSON");let n=pf[A.type];if(!n)throw new RangeError(`No selection type ${A.type} defined`);return n.fromJSON(e,A)}static jsonID(e,A){if(e in pf)throw new RangeError("Duplicate use of selection JSON ID "+e);return pf[e]=A,A.prototype.jsonID=e,A}getBookmark(){return it.between(this.$anchor,this.$head).getBookmark()}}st.prototype.visible=!0;class rx{constructor(e,A){this.$from=e,this.$to=A}}let Mw=!1;function Ow(t){!Mw&&!t.parent.inlineContent&&(Mw=!0,console.warn("TextSelection endpoint not pointing into a node with inline content ("+t.parent.type.name+")"))}class it extends st{constructor(e,A=e){Ow(e),Ow(A),super(e,A)}get $cursor(){return this.$anchor.pos==this.$head.pos?this.$head:null}map(e,A){let n=e.resolve(A.map(this.head));if(!n.parent.inlineContent)return st.near(n);let r=e.resolve(A.map(this.anchor));return new it(r.parent.inlineContent?r:n,n)}replace(e,A=Te.empty){if(super.replace(e,A),A==Te.empty){let n=this.$from.marksAcross(this.$to);n&&e.ensureMarks(n)}}eq(e){return e instanceof it&&e.anchor==this.anchor&&e.head==this.head}getBookmark(){return new Yl(this.anchor,this.head)}toJSON(){return{type:"text",anchor:this.anchor,head:this.head}}static fromJSON(e,A){if(typeof A.anchor!="number"||typeof A.head!="number")throw new RangeError("Invalid input for TextSelection.fromJSON");return new it(e.resolve(A.anchor),e.resolve(A.head))}static create(e,A,n=A){let r=e.resolve(A);return new this(r,n==A?r:e.resolve(n))}static between(e,A,n){let r=e.pos-A.pos;if((!n||r)&&(n=r>=0?1:-1),!A.parent.inlineContent){let i=st.findFrom(A,n,!0)||st.findFrom(A,-n,!0);if(i)A=i.$head;else return st.near(A,n)}return e.parent.inlineContent||(r==0?e=A:(e=(st.findFrom(e,-n,!0)||st.findFrom(e,n,!0)).$anchor,e.pos<A.pos!=r<0&&(e=A))),new it(e,A)}}st.jsonID("text",it);class Yl{constructor(e,A){this.anchor=e,this.head=A}map(e){return new Yl(e.map(this.anchor),e.map(this.head))}resolve(e){return it.between(e.resolve(this.anchor),e.resolve(this.head))}}class Ye extends st{constructor(e){let A=e.nodeAfter,n=e.node(0).resolve(e.pos+A.nodeSize);super(e,n),this.node=A}map(e,A){let{deleted:n,pos:r}=A.mapResult(this.anchor),i=e.resolve(r);return n?st.near(i):new Ye(i)}content(){return new Te(Qe.from(this.node),0,0)}eq(e){return e instanceof Ye&&e.anchor==this.anchor}toJSON(){return{type:"node",anchor:this.anchor}}getBookmark(){return new mf(this.anchor)}static fromJSON(e,A){if(typeof A.anchor!="number")throw new RangeError("Invalid input for NodeSelection.fromJSON");return new Ye(e.resolve(A.anchor))}static create(e,A){return new Ye(e.resolve(A))}static isSelectable(e){return!e.isText&&e.type.spec.selectable!==!1}}Ye.prototype.visible=!1,st.jsonID("node",Ye);class mf{constructor(e){this.anchor=e}map(e){let{deleted:A,pos:n}=e.mapResult(this.anchor);return A?new Yl(n,n):new mf(n)}resolve(e){let A=e.resolve(this.anchor),n=A.nodeAfter;return n&&Ye.isSelectable(n)?new Ye(A):st.near(A)}}class Zn extends st{constructor(e){super(e.resolve(0),e.resolve(e.content.size))}replace(e,A=Te.empty){if(A==Te.empty){e.delete(0,e.doc.content.size);let n=st.atStart(e.doc);n.eq(e.selection)||e.setSelection(n)}else super.replace(e,A)}toJSON(){return{type:"all"}}static fromJSON(e){return new Zn(e)}map(e){return new Zn(e)}eq(e){return e instanceof Zn}getBookmark(){return ix}}st.jsonID("all",Zn);const ix={map(){return this},resolve(t){return new Zn(t)}};function io(t,e,A,n,r,i=!1){if(e.inlineContent)return it.create(t,A);for(let a=n-(r>0?0:1);r>0?a<e.childCount:a>=0;a+=r){let s=e.child(a);if(s.isAtom){if(!i&&Ye.isSelectable(s))return Ye.create(t,A-(r<0?s.nodeSize:0))}else{let c=io(t,s,A+r,r<0?s.childCount:0,r,i);if(c)return c}A+=s.nodeSize*r}return null}function Nw(t,e,A){let n=t.steps.length-1;if(n<e)return;let r=t.steps[n];if(!(r instanceof BA||r instanceof wA))return;let i=t.mapping.maps[n],a;i.forEach((s,c,d,f)=>{a==null&&(a=f)}),t.setSelection(st.near(t.doc.resolve(a),A))}const Lw=1,zl=2,Hw=4;class ax extends nx{constructor(e){super(e.doc),this.curSelectionFor=0,this.updated=0,this.meta=Object.create(null),this.time=Date.now(),this.curSelection=e.selection,this.storedMarks=e.storedMarks}get selection(){return this.curSelectionFor<this.steps.length&&(this.curSelection=this.curSelection.map(this.doc,this.mapping.slice(this.curSelectionFor)),this.curSelectionFor=this.steps.length),this.curSelection}setSelection(e){if(e.$from.doc!=this.doc)throw new RangeError("Selection passed to setSelection must point at the current document");return this.curSelection=e,this.curSelectionFor=this.steps.length,this.updated=(this.updated|Lw)&~zl,this.storedMarks=null,this}get selectionSet(){return(this.updated&Lw)>0}setStoredMarks(e){return this.storedMarks=e,this.updated|=zl,this}ensureMarks(e){return St.sameSet(this.storedMarks||this.selection.$from.marks(),e)||this.setStoredMarks(e),this}addStoredMark(e){return this.ensureMarks(e.addToSet(this.storedMarks||this.selection.$head.marks()))}removeStoredMark(e){return this.ensureMarks(e.removeFromSet(this.storedMarks||this.selection.$head.marks()))}get storedMarksSet(){return(this.updated&zl)>0}addStep(e,A){super.addStep(e,A),this.updated=this.updated&~zl,this.storedMarks=null}setTime(e){return this.time=e,this}replaceSelection(e){return this.selection.replace(this,e),this}replaceSelectionWith(e,A=!0){let n=this.selection;return A&&(e=e.mark(this.storedMarks||(n.empty?n.$from.marks():n.$from.marksAcross(n.$to)||St.none))),n.replaceWith(this,e),this}deleteSelection(){return this.selection.replace(this),this}insertText(e,A,n){let r=this.doc.type.schema;if(A==null)return e?this.replaceSelectionWith(r.text(e),!0):this.deleteSelection();{if(n==null&&(n=A),n=n??A,!e)return this.deleteRange(A,n);let i=this.storedMarks;if(!i){let a=this.doc.resolve(A);i=n==A?a.marks():a.marksAcross(this.doc.resolve(n))}return this.replaceRangeWith(A,n,r.text(e,i)),this.selection.empty||this.setSelection(st.near(this.selection.$to)),this}}setMeta(e,A){return this.meta[typeof e=="string"?e:e.key]=A,this}getMeta(e){return this.meta[typeof e=="string"?e:e.key]}get isGeneric(){for(let e in this.meta)return!1;return!0}scrollIntoView(){return this.updated|=Hw,this}get scrolledIntoView(){return(this.updated&Hw)>0}}function Rw(t,e){return!e||!t?t:t.bind(e)}class hs{constructor(e,A,n){this.name=e,this.init=Rw(A.init,n),this.apply=Rw(A.apply,n)}}const ox=[new hs("doc",{init(t){return t.doc||t.schema.topNodeType.createAndFill()},apply(t){return t.doc}}),new hs("selection",{init(t,e){return t.selection||st.atStart(e.doc)},apply(t){return t.selection}}),new hs("storedMarks",{init(t){return t.storedMarks||null},apply(t,e,A,n){return n.selection.$cursor?t.storedMarks:null}}),new hs("scrollToSelection",{init(){return 0},apply(t,e){return t.scrolledIntoView?e+1:e}})];class gf{constructor(e,A){this.schema=e,this.plugins=[],this.pluginsByKey=Object.create(null),this.fields=ox.slice(),A&&A.forEach(n=>{if(this.pluginsByKey[n.key])throw new RangeError("Adding different instances of a keyed plugin ("+n.key+")");this.plugins.push(n),this.pluginsByKey[n.key]=n,n.spec.state&&this.fields.push(new hs(n.key,n.spec.state,n))})}}class ao{constructor(e){this.config=e}get schema(){return this.config.schema}get plugins(){return this.config.plugins}apply(e){return this.applyTransaction(e).state}filterTransaction(e,A=-1){for(let n=0;n<this.config.plugins.length;n++)if(n!=A){let r=this.config.plugins[n];if(r.spec.filterTransaction&&!r.spec.filterTransaction.call(r,e,this))return!1}return!0}applyTransaction(e){if(!this.filterTransaction(e))return{state:this,transactions:[]};let A=[e],n=this.applyInner(e),r=null;for(;;){let i=!1;for(let a=0;a<this.config.plugins.length;a++){let s=this.config.plugins[a];if(s.spec.appendTransaction){let c=r?r[a].n:0,d=r?r[a].state:this,f=c<A.length&&s.spec.appendTransaction.call(s,c?A.slice(c):A,d,n);if(f&&n.filterTransaction(f,a)){if(f.setMeta("appendedTransaction",e),!r){r=[];for(let h=0;h<this.config.plugins.length;h++)r.push(h<a?{state:n,n:A.length}:{state:this,n:0})}A.push(f),n=n.applyInner(f),i=!0}r&&(r[a]={state:n,n:A.length})}}if(!i)return{state:n,transactions:A}}}applyInner(e){if(!e.before.eq(this.doc))throw new RangeError("Applying a mismatched transaction");let A=new ao(this.config),n=this.config.fields;for(let r=0;r<n.length;r++){let i=n[r];A[i.name]=i.apply(e,this[i.name],this,A)}return A}get tr(){return new ax(this)}static create(e){let A=new gf(e.doc?e.doc.type.schema:e.schema,e.plugins),n=new ao(A);for(let r=0;r<A.fields.length;r++)n[A.fields[r].name]=A.fields[r].init(e,n);return n}reconfigure(e){let A=new gf(this.schema,e.plugins),n=A.fields,r=new ao(A);for(let i=0;i<n.length;i++){let a=n[i].name;r[a]=this.hasOwnProperty(a)?this[a]:n[i].init(e,r)}return r}toJSON(e){let A={doc:this.doc.toJSON(),selection:this.selection.toJSON()};if(this.storedMarks&&(A.storedMarks=this.storedMarks.map(n=>n.toJSON())),e&&typeof e=="object")for(let n in e){if(n=="doc"||n=="selection")throw new RangeError("The JSON fields `doc` and `selection` are reserved");let r=e[n],i=r.spec.state;i&&i.toJSON&&(A[n]=i.toJSON.call(r,this[r.key]))}return A}static fromJSON(e,A,n){if(!A)throw new RangeError("Invalid input for EditorState.fromJSON");if(!e.schema)throw new RangeError("Required config field 'schema' missing");let r=new gf(e.schema,e.plugins),i=new ao(r);return r.fields.forEach(a=>{if(a.name=="doc")i.doc=aa.fromJSON(e.schema,A.doc);else if(a.name=="selection")i.selection=st.fromJSON(i.doc,A.selection);else if(a.name=="storedMarks")A.storedMarks&&(i.storedMarks=A.storedMarks.map(e.schema.markFromJSON));else{if(n)for(let s in n){let c=n[s],d=c.spec.state;if(c.key==a.name&&d&&d.fromJSON&&Object.prototype.hasOwnProperty.call(A,s)){i[a.name]=d.fromJSON.call(c,e,A[s],i);return}}i[a.name]=a.init(e,i)}}),i}}function Pw(t,e,A){for(let n in t){let r=t[n];r instanceof Function?r=r.bind(e):n=="handleDOMEvents"&&(r=Pw(r,e,{})),A[n]=r}return A}class sn{constructor(e){this.spec=e,this.props={},e.props&&Pw(e.props,this,this.props),this.key=e.key?e.key.key:Vw("plugin")}getState(e){return e[this.key]}}const Bf=Object.create(null);function Vw(t){return t in Bf?t+"$"+ ++Bf[t]:(Bf[t]=0,t+"$")}class gr{constructor(e="key"){this.key=Vw(e)}get(e){return e.config.pluginsByKey[this.key]}getState(e){return e[this.key]}}const FA=function(t){for(var e=0;;e++)if(t=t.previousSibling,!t)return e},ps=function(t){let e=t.assignedSlot||t.parentNode;return e&&e.nodeType==11?e.host:e};let wf=null;const Hr=function(t,e,A){let n=wf||(wf=document.createRange());return n.setEnd(t,A??t.nodeValue.length),n.setStart(t,e||0),n},sx=function(){wf=null},sa=function(t,e,A,n){return A&&(Kw(t,e,A,n,-1)||Kw(t,e,A,n,1))},lx=/^(img|br|input|textarea|hr)$/i;function Kw(t,e,A,n,r){for(;;){if(t==A&&e==n)return!0;if(e==(r<0?0:Br(t))){let i=t.parentNode;if(!i||i.nodeType!=1||ms(t)||lx.test(t.nodeName)||t.contentEditable=="false")return!1;e=FA(t)+(r<0?0:1),t=i}else if(t.nodeType==1){if(t=t.childNodes[e+(r<0?-1:0)],t.contentEditable=="false")return!1;e=r<0?Br(t):0}else return!1}}function Br(t){return t.nodeType==3?t.nodeValue.length:t.childNodes.length}function cx(t,e){for(;;){if(t.nodeType==3&&e)return t;if(t.nodeType==1&&e>0){if(t.contentEditable=="false")return null;t=t.childNodes[e-1],e=Br(t)}else if(t.parentNode&&!ms(t))e=FA(t),t=t.parentNode;else return null}}function ux(t,e){for(;;){if(t.nodeType==3&&e<t.nodeValue.length)return t;if(t.nodeType==1&&e<t.childNodes.length){if(t.contentEditable=="false")return null;t=t.childNodes[e],e=0}else if(t.parentNode&&!ms(t))e=FA(t)+1,t=t.parentNode;else return null}}function dx(t,e,A){for(let n=e==0,r=e==Br(t);n||r;){if(t==A)return!0;let i=FA(t);if(t=t.parentNode,!t)return!1;n=n&&i==0,r=r&&i==Br(t)}}function ms(t){let e;for(let A=t;A&&!(e=A.pmViewDesc);A=A.parentNode);return e&&e.node&&e.node.isBlock&&(e.dom==t||e.contentDOM==t)}const Jl=function(t){return t.focusNode&&sa(t.focusNode,t.focusOffset,t.anchorNode,t.anchorOffset)};function la(t,e){let A=document.createEvent("Event");return A.initEvent("keydown",!0,!0),A.keyCode=t,A.key=A.code=e,A}function fx(t){let e=t.activeElement;for(;e&&e.shadowRoot;)e=e.shadowRoot.activeElement;return e}function hx(t,e,A){if(t.caretPositionFromPoint)try{let n=t.caretPositionFromPoint(e,A);if(n)return{node:n.offsetNode,offset:n.offset}}catch{}if(t.caretRangeFromPoint){let n=t.caretRangeFromPoint(e,A);if(n)return{node:n.startContainer,offset:n.startOffset}}}const wr=typeof navigator<"u"?navigator:null,$w=typeof document<"u"?document:null,Bi=wr&&wr.userAgent||"",yf=/Edge\/(\d+)/.exec(Bi),Gw=/MSIE \d/.exec(Bi),Cf=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Bi),ln=!!(Gw||Cf||yf),wi=Gw?document.documentMode:Cf?+Cf[1]:yf?+yf[1]:0,er=!ln&&/gecko\/(\d+)/i.test(Bi);er&&+(/Firefox\/(\d+)/.exec(Bi)||[0,0])[1];const bf=!ln&&/Chrome\/(\d+)/.exec(Bi),JA=!!bf,px=bf?+bf[1]:0,XA=!ln&&!!wr&&/Apple Computer/.test(wr.vendor),oo=XA&&(/Mobile\/\w+/.test(Bi)||!!wr&&wr.maxTouchPoints>2),In=oo||(wr?/Mac/.test(wr.platform):!1),mx=wr?/Win/.test(wr.platform):!1,tr=/Android \d/.test(Bi),gs=!!$w&&"webkitFontSmoothing"in $w.documentElement.style,gx=gs?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0;function Bx(t){let e=t.defaultView&&t.defaultView.visualViewport;return e?{left:0,right:e.width,top:0,bottom:e.height}:{left:0,right:t.documentElement.clientWidth,top:0,bottom:t.documentElement.clientHeight}}function Rr(t,e){return typeof t=="number"?t:t[e]}function wx(t){let e=t.getBoundingClientRect(),A=e.width/t.offsetWidth||1,n=e.height/t.offsetHeight||1;return{left:e.left,right:e.left+t.clientWidth*A,top:e.top,bottom:e.top+t.clientHeight*n}}function Ww(t,e,A){let n=t.someProp("scrollThreshold")||0,r=t.someProp("scrollMargin")||5,i=t.dom.ownerDocument;for(let a=A||t.dom;a;a=ps(a)){if(a.nodeType!=1)continue;let s=a,c=s==i.body,d=c?Bx(i):wx(s),f=0,h=0;if(e.top<d.top+Rr(n,"top")?h=-(d.top-e.top+Rr(r,"top")):e.bottom>d.bottom-Rr(n,"bottom")&&(h=e.bottom-e.top>d.bottom-d.top?e.top+Rr(r,"top")-d.top:e.bottom-d.bottom+Rr(r,"bottom")),e.left<d.left+Rr(n,"left")?f=-(d.left-e.left+Rr(r,"left")):e.right>d.right-Rr(n,"right")&&(f=e.right-d.right+Rr(r,"right")),f||h)if(c)i.defaultView.scrollBy(f,h);else{let m=s.scrollLeft,g=s.scrollTop;h&&(s.scrollTop+=h),f&&(s.scrollLeft+=f);let B=s.scrollLeft-m,y=s.scrollTop-g;e={left:e.left-B,top:e.top-y,right:e.right-B,bottom:e.bottom-y}}if(c||/^(fixed|sticky)$/.test(getComputedStyle(a).position))break}}function yx(t){let e=t.dom.getBoundingClientRect(),A=Math.max(0,e.top),n,r;for(let i=(e.left+e.right)/2,a=A+1;a<Math.min(innerHeight,e.bottom);a+=5){let s=t.root.elementFromPoint(i,a);if(!s||s==t.dom||!t.dom.contains(s))continue;let c=s.getBoundingClientRect();if(c.top>=A-20){n=s,r=c.top;break}}return{refDOM:n,refTop:r,stack:Yw(t.dom)}}function Yw(t){let e=[],A=t.ownerDocument;for(let n=t;n&&(e.push({dom:n,top:n.scrollTop,left:n.scrollLeft}),t!=A);n=ps(n));return e}function Cx({refDOM:t,refTop:e,stack:A}){let n=t?t.getBoundingClientRect().top:0;zw(A,n==0?0:n-e)}function zw(t,e){for(let A=0;A<t.length;A++){let{dom:n,top:r,left:i}=t[A];n.scrollTop!=r+e&&(n.scrollTop=r+e),n.scrollLeft!=i&&(n.scrollLeft=i)}}let so=null;function bx(t){if(t.setActive)return t.setActive();if(so)return t.focus(so);let e=Yw(t);t.focus(so==null?{get preventScroll(){return so={preventScroll:!0},!0}}:void 0),so||(so=!1,zw(e,0))}function Jw(t,e){let A,n=2e8,r,i=0,a=e.top,s=e.top,c,d;for(let f=t.firstChild,h=0;f;f=f.nextSibling,h++){let m;if(f.nodeType==1)m=f.getClientRects();else if(f.nodeType==3)m=Hr(f).getClientRects();else continue;for(let g=0;g<m.length;g++){let B=m[g];if(B.top<=a&&B.bottom>=s){a=Math.max(B.bottom,a),s=Math.min(B.top,s);let y=B.left>e.left?B.left-e.left:B.right<e.left?e.left-B.right:0;if(y<n){A=f,n=y,r=y&&A.nodeType==3?{left:B.right<e.left?B.right:B.left,top:e.top}:e,f.nodeType==1&&y&&(i=h+(e.left>=(B.left+B.right)/2?1:0));continue}}else B.top>e.top&&!c&&B.left<=e.left&&B.right>=e.left&&(c=f,d={left:Math.max(B.left,Math.min(B.right,e.left)),top:B.top});!A&&(e.left>=B.right&&e.top>=B.top||e.left>=B.left&&e.top>=B.bottom)&&(i=h+1)}}return!A&&c&&(A=c,r=d,n=0),A&&A.nodeType==3?vx(A,r):!A||n&&A.nodeType==1?{node:t,offset:i}:Jw(A,r)}function vx(t,e){let A=t.nodeValue.length,n=document.createRange();for(let r=0;r<A;r++){n.setEnd(t,r+1),n.setStart(t,r);let i=yi(n,1);if(i.top!=i.bottom&&vf(e,i))return{node:t,offset:r+(e.left>=(i.left+i.right)/2?1:0)}}return{node:t,offset:0}}function vf(t,e){return t.left>=e.left-1&&t.left<=e.right+1&&t.top>=e.top-1&&t.top<=e.bottom+1}function Ex(t,e){let A=t.parentNode;return A&&/^li$/i.test(A.nodeName)&&e.left<t.getBoundingClientRect().left?A:t}function Qx(t,e,A){let{node:n,offset:r}=Jw(e,A),i=-1;if(n.nodeType==1&&!n.firstChild){let a=n.getBoundingClientRect();i=a.left!=a.right&&A.left>(a.left+a.right)/2?1:-1}return t.docView.posFromDOM(n,r,i)}function Fx(t,e,A,n){let r=-1;for(let i=e,a=!1;i!=t.dom;){let s=t.docView.nearestDesc(i,!0);if(!s)return null;if(s.dom.nodeType==1&&(s.node.isBlock&&s.parent||!s.contentDOM)){let c=s.dom.getBoundingClientRect();if(s.node.isBlock&&s.parent&&(!a&&c.left>n.left||c.top>n.top?r=s.posBefore:(!a&&c.right<n.left||c.bottom<n.top)&&(r=s.posAfter),a=!0),!s.contentDOM&&r<0&&!s.node.isText)return(s.node.isBlock?n.top<(c.top+c.bottom)/2:n.left<(c.left+c.right)/2)?s.posBefore:s.posAfter}i=s.dom.parentNode}return r>-1?r:t.docView.posFromDOM(e,A,-1)}function Xw(t,e,A){let n=t.childNodes.length;if(n&&A.top<A.bottom)for(let r=Math.max(0,Math.min(n-1,Math.floor(n*(e.top-A.top)/(A.bottom-A.top))-2)),i=r;;){let a=t.childNodes[i];if(a.nodeType==1){let s=a.getClientRects();for(let c=0;c<s.length;c++){let d=s[c];if(vf(e,d))return Xw(a,e,d)}}if((i=(i+1)%n)==r)break}return t}function Ux(t,e){let A=t.dom.ownerDocument,n,r=0,i=hx(A,e.left,e.top);i&&({node:n,offset:r}=i);let a=(t.root.elementFromPoint?t.root:A).elementFromPoint(e.left,e.top),s;if(!a||!t.dom.contains(a.nodeType!=1?a.parentNode:a)){let d=t.dom.getBoundingClientRect();if(!vf(e,d)||(a=Xw(t.dom,e,d),!a))return null}if(XA)for(let d=a;n&&d;d=ps(d))d.draggable&&(n=void 0);if(a=Ex(a,e),n){if(er&&n.nodeType==1&&(r=Math.min(r,n.childNodes.length),r<n.childNodes.length)){let f=n.childNodes[r],h;f.nodeName=="IMG"&&(h=f.getBoundingClientRect()).right<=e.left&&h.bottom>e.top&&r++}let d;gs&&r&&n.nodeType==1&&(d=n.childNodes[r-1]).nodeType==1&&d.contentEditable=="false"&&d.getBoundingClientRect().top>=e.top&&r--,n==t.dom&&r==n.childNodes.length-1&&n.lastChild.nodeType==1&&e.top>n.lastChild.getBoundingClientRect().bottom?s=t.state.doc.content.size:(r==0||n.nodeType!=1||n.childNodes[r-1].nodeName!="BR")&&(s=Fx(t,n,r,e))}s==null&&(s=Qx(t,a,e));let c=t.docView.nearestDesc(a,!0);return{pos:s,inside:c?c.posAtStart-c.border:-1}}function qw(t){return t.top<t.bottom||t.left<t.right}function yi(t,e){let A=t.getClientRects();if(A.length){let n=A[e<0?0:A.length-1];if(qw(n))return n}return Array.prototype.find.call(A,qw)||t.getBoundingClientRect()}const kx=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;function jw(t,e,A){let{node:n,offset:r,atom:i}=t.docView.domFromPos(e,A<0?-1:1),a=gs||er;if(n.nodeType==3)if(a&&(kx.test(n.nodeValue)||(A<0?!r:r==n.nodeValue.length))){let c=yi(Hr(n,r,r),A);if(er&&r&&/\s/.test(n.nodeValue[r-1])&&r<n.nodeValue.length){let d=yi(Hr(n,r-1,r-1),-1);if(d.top==c.top){let f=yi(Hr(n,r,r+1),-1);if(f.top!=c.top)return Bs(f,f.left<d.left)}}return c}else{let c=r,d=r,f=A<0?1:-1;return A<0&&!r?(d++,f=-1):A>=0&&r==n.nodeValue.length?(c--,f=1):A<0?c--:d++,Bs(yi(Hr(n,c,d),f),f<0)}if(!t.state.doc.resolve(e-(i||0)).parent.inlineContent){if(i==null&&r&&(A<0||r==Br(n))){let c=n.childNodes[r-1];if(c.nodeType==1)return Ef(c.getBoundingClientRect(),!1)}if(i==null&&r<Br(n)){let c=n.childNodes[r];if(c.nodeType==1)return Ef(c.getBoundingClientRect(),!0)}return Ef(n.getBoundingClientRect(),A>=0)}if(i==null&&r&&(A<0||r==Br(n))){let c=n.childNodes[r-1],d=c.nodeType==3?Hr(c,Br(c)-(a?0:1)):c.nodeType==1&&(c.nodeName!="BR"||!c.nextSibling)?c:null;if(d)return Bs(yi(d,1),!1)}if(i==null&&r<Br(n)){let c=n.childNodes[r];for(;c.pmViewDesc&&c.pmViewDesc.ignoreForCoords;)c=c.nextSibling;let d=c?c.nodeType==3?Hr(c,0,a?0:1):c.nodeType==1?c:null:null;if(d)return Bs(yi(d,-1),!0)}return Bs(yi(n.nodeType==3?Hr(n):n,-A),A>=0)}function Bs(t,e){if(t.width==0)return t;let A=e?t.left:t.right;return{top:t.top,bottom:t.bottom,left:A,right:A}}function Ef(t,e){if(t.height==0)return t;let A=e?t.top:t.bottom;return{top:A,bottom:A,left:t.left,right:t.right}}function Zw(t,e,A){let n=t.state,r=t.root.activeElement;n!=e&&t.updateState(e),r!=t.dom&&t.focus();try{return A()}finally{n!=e&&t.updateState(n),r!=t.dom&&r&&r.focus()}}function _x(t,e,A){let n=e.selection,r=A=="up"?n.$from:n.$to;return Zw(t,e,()=>{let{node:i}=t.docView.domFromPos(r.pos,A=="up"?-1:1);for(;;){let s=t.docView.nearestDesc(i,!0);if(!s)break;if(s.node.isBlock){i=s.contentDOM||s.dom;break}i=s.dom.parentNode}let a=jw(t,r.pos,1);for(let s=i.firstChild;s;s=s.nextSibling){let c;if(s.nodeType==1)c=s.getClientRects();else if(s.nodeType==3)c=Hr(s,0,s.nodeValue.length).getClientRects();else continue;for(let d=0;d<c.length;d++){let f=c[d];if(f.bottom>f.top+1&&(A=="up"?a.top-f.top>(f.bottom-a.top)*2:f.bottom-a.bottom>(a.bottom-f.top)*2))return!1}}return!0})}const Ix=/[\u0590-\u08ac]/;function Sx(t,e,A){let{$head:n}=e.selection;if(!n.parent.isTextblock)return!1;let r=n.parentOffset,i=!r,a=r==n.parent.content.size,s=t.domSelection();return!Ix.test(n.parent.textContent)||!s.modify?A=="left"||A=="backward"?i:a:Zw(t,e,()=>{let{focusNode:c,focusOffset:d,anchorNode:f,anchorOffset:h}=t.domSelectionRange(),m=s.caretBidiLevel;s.modify("move",A,"character");let g=n.depth?t.docView.domAfterPos(n.before()):t.dom,{focusNode:B,focusOffset:y}=t.domSelectionRange(),v=B&&!g.contains(B.nodeType==1?B:B.parentNode)||c==B&&d==y;try{s.collapse(f,h),c&&(c!=f||d!=h)&&s.extend&&s.extend(c,d)}catch{}return m!=null&&(s.caretBidiLevel=m),v})}let e0=null,t0=null,A0=!1;function Tx(t,e,A){return e0==e&&t0==A?A0:(e0=e,t0=A,A0=A=="up"||A=="down"?_x(t,e,A):Sx(t,e,A))}const Sn=0,n0=1,ca=2,yr=3;class ws{constructor(e,A,n,r){this.parent=e,this.children=A,this.dom=n,this.contentDOM=r,this.dirty=Sn,n.pmViewDesc=this}matchesWidget(e){return!1}matchesMark(e){return!1}matchesNode(e,A,n){return!1}matchesHack(e){return!1}parseRule(){return null}stopEvent(e){return!1}get size(){let e=0;for(let A=0;A<this.children.length;A++)e+=this.children[A].size;return e}get border(){return 0}destroy(){this.parent=void 0,this.dom.pmViewDesc==this&&(this.dom.pmViewDesc=void 0);for(let e=0;e<this.children.length;e++)this.children[e].destroy()}posBeforeChild(e){for(let A=0,n=this.posAtStart;;A++){let r=this.children[A];if(r==e)return n;n+=r.size}}get posBefore(){return this.parent.posBeforeChild(this)}get posAtStart(){return this.parent?this.parent.posBeforeChild(this)+this.border:0}get posAfter(){return this.posBefore+this.size}get posAtEnd(){return this.posAtStart+this.size-2*this.border}localPosFromDOM(e,A,n){if(this.contentDOM&&this.contentDOM.contains(e.nodeType==1?e:e.parentNode))if(n<0){let i,a;if(e==this.contentDOM)i=e.childNodes[A-1];else{for(;e.parentNode!=this.contentDOM;)e=e.parentNode;i=e.previousSibling}for(;i&&!((a=i.pmViewDesc)&&a.parent==this);)i=i.previousSibling;return i?this.posBeforeChild(a)+a.size:this.posAtStart}else{let i,a;if(e==this.contentDOM)i=e.childNodes[A];else{for(;e.parentNode!=this.contentDOM;)e=e.parentNode;i=e.nextSibling}for(;i&&!((a=i.pmViewDesc)&&a.parent==this);)i=i.nextSibling;return i?this.posBeforeChild(a):this.posAtEnd}let r;if(e==this.dom&&this.contentDOM)r=A>FA(this.contentDOM);else if(this.contentDOM&&this.contentDOM!=this.dom&&this.dom.contains(this.contentDOM))r=e.compareDocumentPosition(this.contentDOM)&2;else if(this.dom.firstChild){if(A==0)for(let i=e;;i=i.parentNode){if(i==this.dom){r=!1;break}if(i.previousSibling)break}if(r==null&&A==e.childNodes.length)for(let i=e;;i=i.parentNode){if(i==this.dom){r=!0;break}if(i.nextSibling)break}}return r??n>0?this.posAtEnd:this.posAtStart}nearestDesc(e,A=!1){for(let n=!0,r=e;r;r=r.parentNode){let i=this.getDesc(r),a;if(i&&(!A||i.node))if(n&&(a=i.nodeDOM)&&!(a.nodeType==1?a.contains(e.nodeType==1?e:e.parentNode):a==e))n=!1;else return i}}getDesc(e){let A=e.pmViewDesc;for(let n=A;n;n=n.parent)if(n==this)return A}posFromDOM(e,A,n){for(let r=e;r;r=r.parentNode){let i=this.getDesc(r);if(i)return i.localPosFromDOM(e,A,n)}return-1}descAt(e){for(let A=0,n=0;A<this.children.length;A++){let r=this.children[A],i=n+r.size;if(n==e&&i!=n){for(;!r.border&&r.children.length;)r=r.children[0];return r}if(e<i)return r.descAt(e-n-r.border);n=i}}domFromPos(e,A){if(!this.contentDOM)return{node:this.dom,offset:0,atom:e+1};let n=0,r=0;for(let i=0;n<this.children.length;n++){let a=this.children[n],s=i+a.size;if(s>e||a instanceof a0){r=e-i;break}i=s}if(r)return this.children[n].domFromPos(r-this.children[n].border,A);for(let i;n&&!(i=this.children[n-1]).size&&i instanceof r0&&i.side>=0;n--);if(A<=0){let i,a=!0;for(;i=n?this.children[n-1]:null,!(!i||i.dom.parentNode==this.contentDOM);n--,a=!1);return i&&A&&a&&!i.border&&!i.domAtom?i.domFromPos(i.size,A):{node:this.contentDOM,offset:i?FA(i.dom)+1:0}}else{let i,a=!0;for(;i=n<this.children.length?this.children[n]:null,!(!i||i.dom.parentNode==this.contentDOM);n++,a=!1);return i&&a&&!i.border&&!i.domAtom?i.domFromPos(0,A):{node:this.contentDOM,offset:i?FA(i.dom):this.contentDOM.childNodes.length}}}parseRange(e,A,n=0){if(this.children.length==0)return{node:this.contentDOM,from:e,to:A,fromOffset:0,toOffset:this.contentDOM.childNodes.length};let r=-1,i=-1;for(let a=n,s=0;;s++){let c=this.children[s],d=a+c.size;if(r==-1&&e<=d){let f=a+c.border;if(e>=f&&A<=d-c.border&&c.node&&c.contentDOM&&this.contentDOM.contains(c.contentDOM))return c.parseRange(e,A,f);e=a;for(let h=s;h>0;h--){let m=this.children[h-1];if(m.size&&m.dom.parentNode==this.contentDOM&&!m.emptyChildAt(1)){r=FA(m.dom)+1;break}e-=m.size}r==-1&&(r=0)}if(r>-1&&(d>A||s==this.children.length-1)){A=d;for(let f=s+1;f<this.children.length;f++){let h=this.children[f];if(h.size&&h.dom.parentNode==this.contentDOM&&!h.emptyChildAt(-1)){i=FA(h.dom);break}A+=h.size}i==-1&&(i=this.contentDOM.childNodes.length);break}a=d}return{node:this.contentDOM,from:e,to:A,fromOffset:r,toOffset:i}}emptyChildAt(e){if(this.border||!this.contentDOM||!this.children.length)return!1;let A=this.children[e<0?0:this.children.length-1];return A.size==0||A.emptyChildAt(e)}domAfterPos(e){let{node:A,offset:n}=this.domFromPos(e,0);if(A.nodeType!=1||n==A.childNodes.length)throw new RangeError("No node after pos "+e);return A.childNodes[n]}setSelection(e,A,n,r=!1){let i=Math.min(e,A),a=Math.max(e,A);for(let m=0,g=0;m<this.children.length;m++){let B=this.children[m],y=g+B.size;if(i>g&&a<y)return B.setSelection(e-g-B.border,A-g-B.border,n,r);g=y}let s=this.domFromPos(e,e?-1:1),c=A==e?s:this.domFromPos(A,A?-1:1),d=n.getSelection(),f=!1;if((er||XA)&&e==A){let{node:m,offset:g}=s;if(m.nodeType==3){if(f=!!(g&&m.nodeValue[g-1]==`
32
+ `),f&&g==m.nodeValue.length)for(let B=m,y;B;B=B.parentNode){if(y=B.nextSibling){y.nodeName=="BR"&&(s=c={node:y.parentNode,offset:FA(y)+1});break}let v=B.pmViewDesc;if(v&&v.node&&v.node.isBlock)break}}else{let B=m.childNodes[g-1];f=B&&(B.nodeName=="BR"||B.contentEditable=="false")}}if(er&&d.focusNode&&d.focusNode!=c.node&&d.focusNode.nodeType==1){let m=d.focusNode.childNodes[d.focusOffset];m&&m.contentEditable=="false"&&(r=!0)}if(!(r||f&&XA)&&sa(s.node,s.offset,d.anchorNode,d.anchorOffset)&&sa(c.node,c.offset,d.focusNode,d.focusOffset))return;let h=!1;if((d.extend||e==A)&&!f){d.collapse(s.node,s.offset);try{e!=A&&d.extend(c.node,c.offset),h=!0}catch{}}if(!h){if(e>A){let g=s;s=c,c=g}let m=document.createRange();m.setEnd(c.node,c.offset),m.setStart(s.node,s.offset),d.removeAllRanges(),d.addRange(m)}}ignoreMutation(e){return!this.contentDOM&&e.type!="selection"}get contentLost(){return this.contentDOM&&this.contentDOM!=this.dom&&!this.dom.contains(this.contentDOM)}markDirty(e,A){for(let n=0,r=0;r<this.children.length;r++){let i=this.children[r],a=n+i.size;if(n==a?e<=a&&A>=n:e<a&&A>n){let s=n+i.border,c=a-i.border;if(e>=s&&A<=c){this.dirty=e==n||A==a?ca:n0,e==s&&A==c&&(i.contentLost||i.dom.parentNode!=this.contentDOM)?i.dirty=yr:i.markDirty(e-s,A-s);return}else i.dirty=i.dom==i.contentDOM&&i.dom.parentNode==this.contentDOM&&!i.children.length?ca:yr}n=a}this.dirty=ca}markParentsDirty(){let e=1;for(let A=this.parent;A;A=A.parent,e++){let n=e==1?ca:n0;A.dirty<n&&(A.dirty=n)}}get domAtom(){return!1}get ignoreForCoords(){return!1}isText(e){return!1}}class r0 extends ws{constructor(e,A,n,r){let i,a=A.type.toDOM;if(typeof a=="function"&&(a=a(n,()=>{if(!i)return r;if(i.parent)return i.parent.posBeforeChild(i)})),!A.type.spec.raw){if(a.nodeType!=1){let s=document.createElement("span");s.appendChild(a),a=s}a.contentEditable="false",a.classList.add("ProseMirror-widget")}super(e,[],a,null),this.widget=A,this.widget=A,i=this}matchesWidget(e){return this.dirty==Sn&&e.type.eq(this.widget.type)}parseRule(){return{ignore:!0}}stopEvent(e){let A=this.widget.spec.stopEvent;return A?A(e):!1}ignoreMutation(e){return e.type!="selection"||this.widget.spec.ignoreSelection}destroy(){this.widget.type.destroy(this.dom),super.destroy()}get domAtom(){return!0}get side(){return this.widget.type.side}}class xx extends ws{constructor(e,A,n,r){super(e,[],A,null),this.textDOM=n,this.text=r}get size(){return this.text.length}localPosFromDOM(e,A){return e!=this.textDOM?this.posAtStart+(A?this.size:0):this.posAtStart+A}domFromPos(e){return{node:this.textDOM,offset:e}}ignoreMutation(e){return e.type==="characterData"&&e.target.nodeValue==e.oldValue}}class ua extends ws{constructor(e,A,n,r){super(e,[],n,r),this.mark=A}static create(e,A,n,r){let i=r.nodeViews[A.type.name],a=i&&i(A,r,n);return(!a||!a.dom)&&(a=pr.renderSpec(document,A.type.spec.toDOM(A,n))),new ua(e,A,a.dom,a.contentDOM||a.dom)}parseRule(){return this.dirty&yr||this.mark.type.spec.reparseInView?null:{mark:this.mark.type.name,attrs:this.mark.attrs,contentElement:this.contentDOM}}matchesMark(e){return this.dirty!=yr&&this.mark.eq(e)}markDirty(e,A){if(super.markDirty(e,A),this.dirty!=Sn){let n=this.parent;for(;!n.node;)n=n.parent;n.dirty<this.dirty&&(n.dirty=this.dirty),this.dirty=Sn}}slice(e,A,n){let r=ua.create(this.parent,this.mark,!0,n),i=this.children,a=this.size;A<a&&(i=Uf(i,A,a,n)),e>0&&(i=Uf(i,0,e,n));for(let s=0;s<i.length;s++)i[s].parent=r;return r.children=i,r}}class Ci extends ws{constructor(e,A,n,r,i,a,s,c,d){super(e,[],i,a),this.node=A,this.outerDeco=n,this.innerDeco=r,this.nodeDOM=s}static create(e,A,n,r,i,a){let s=i.nodeViews[A.type.name],c,d=s&&s(A,i,()=>{if(!c)return a;if(c.parent)return c.parent.posBeforeChild(c)},n,r),f=d&&d.dom,h=d&&d.contentDOM;if(A.isText){if(!f)f=document.createTextNode(A.text);else if(f.nodeType!=3)throw new RangeError("Text must be rendered as a DOM text node")}else f||({dom:f,contentDOM:h}=pr.renderSpec(document,A.type.spec.toDOM(A)));!h&&!A.isText&&f.nodeName!="BR"&&(f.hasAttribute("contenteditable")||(f.contentEditable="false"),A.type.spec.draggable&&(f.draggable=!0));let m=f;return f=l0(f,n,A),d?c=new Dx(e,A,n,r,f,h||null,m,d,i,a+1):A.isText?new Xl(e,A,n,r,f,m,i):new Ci(e,A,n,r,f,h||null,m,i,a+1)}parseRule(){if(this.node.type.spec.reparseInView)return null;let e={node:this.node.type.name,attrs:this.node.attrs};if(this.node.type.whitespace=="pre"&&(e.preserveWhitespace="full"),!this.contentDOM)e.getContent=()=>this.node.content;else if(!this.contentLost)e.contentElement=this.contentDOM;else{for(let A=this.children.length-1;A>=0;A--){let n=this.children[A];if(this.dom.contains(n.dom.parentNode)){e.contentElement=n.dom.parentNode;break}}e.contentElement||(e.getContent=()=>Qe.empty)}return e}matchesNode(e,A,n){return this.dirty==Sn&&e.eq(this.node)&&Ff(A,this.outerDeco)&&n.eq(this.innerDeco)}get size(){return this.node.nodeSize}get border(){return this.node.isLeaf?0:1}updateChildren(e,A){let n=this.node.inlineContent,r=A,i=e.composing?this.localCompositionInfo(e,A):null,a=i&&i.pos>-1?i:null,s=i&&i.pos<0,c=new Ox(this,a&&a.node,e);Hx(this.node,this.innerDeco,(d,f,h)=>{d.spec.marks?c.syncToMarks(d.spec.marks,n,e):d.type.side>=0&&!h&&c.syncToMarks(f==this.node.childCount?St.none:this.node.child(f).marks,n,e),c.placeWidget(d,e,r)},(d,f,h,m)=>{c.syncToMarks(d.marks,n,e);let g;c.findNodeMatch(d,f,h,m)||s&&e.state.selection.from>r&&e.state.selection.to<r+d.nodeSize&&(g=c.findIndexWithChild(i.node))>-1&&c.updateNodeAt(d,f,h,g,e)||c.updateNextNode(d,f,h,e,m,r)||c.addNode(d,f,h,e,r),r+=d.nodeSize}),c.syncToMarks([],n,e),this.node.isTextblock&&c.addTextblockHacks(),c.destroyRest(),(c.changed||this.dirty==ca)&&(a&&this.protectLocalComposition(e,a),o0(this.contentDOM,this.children,e),oo&&Rx(this.dom))}localCompositionInfo(e,A){let{from:n,to:r}=e.state.selection;if(!(e.state.selection instanceof it)||n<A||r>A+this.node.content.size)return null;let i=e.input.compositionNode;if(!i||!this.dom.contains(i.parentNode))return null;if(this.node.inlineContent){let a=i.nodeValue,s=Px(this.node.content,a,n-A,r-A);return s<0?null:{node:i,pos:s,text:a}}else return{node:i,pos:-1,text:""}}protectLocalComposition(e,{node:A,pos:n,text:r}){if(this.getDesc(A))return;let i=A;for(;i.parentNode!=this.contentDOM;i=i.parentNode){for(;i.previousSibling;)i.parentNode.removeChild(i.previousSibling);for(;i.nextSibling;)i.parentNode.removeChild(i.nextSibling);i.pmViewDesc&&(i.pmViewDesc=void 0)}let a=new xx(this,i,A,r);e.input.compositionNodes.push(a),this.children=Uf(this.children,n,n+r.length,e,a)}update(e,A,n,r){return this.dirty==yr||!e.sameMarkup(this.node)?!1:(this.updateInner(e,A,n,r),!0)}updateInner(e,A,n,r){this.updateOuterDeco(A),this.node=e,this.innerDeco=n,this.contentDOM&&this.updateChildren(r,this.posAtStart),this.dirty=Sn}updateOuterDeco(e){if(Ff(e,this.outerDeco))return;let A=this.nodeDOM.nodeType!=1,n=this.dom;this.dom=s0(this.dom,this.nodeDOM,Qf(this.outerDeco,this.node,A),Qf(e,this.node,A)),this.dom!=n&&(n.pmViewDesc=void 0,this.dom.pmViewDesc=this),this.outerDeco=e}selectNode(){this.nodeDOM.nodeType==1&&this.nodeDOM.classList.add("ProseMirror-selectednode"),(this.contentDOM||!this.node.type.spec.draggable)&&(this.dom.draggable=!0)}deselectNode(){this.nodeDOM.nodeType==1&&(this.nodeDOM.classList.remove("ProseMirror-selectednode"),(this.contentDOM||!this.node.type.spec.draggable)&&this.dom.removeAttribute("draggable"))}get domAtom(){return this.node.isAtom}}function i0(t,e,A,n,r){l0(n,e,t);let i=new Ci(void 0,t,e,A,n,n,n,r,0);return i.contentDOM&&i.updateChildren(r,0),i}class Xl extends Ci{constructor(e,A,n,r,i,a,s){super(e,A,n,r,i,null,a,s,0)}parseRule(){let e=this.nodeDOM.parentNode;for(;e&&e!=this.dom&&!e.pmIsDeco;)e=e.parentNode;return{skip:e||!0}}update(e,A,n,r){return this.dirty==yr||this.dirty!=Sn&&!this.inParent()||!e.sameMarkup(this.node)?!1:(this.updateOuterDeco(A),(this.dirty!=Sn||e.text!=this.node.text)&&e.text!=this.nodeDOM.nodeValue&&(this.nodeDOM.nodeValue=e.text,r.trackWrites==this.nodeDOM&&(r.trackWrites=null)),this.node=e,this.dirty=Sn,!0)}inParent(){let e=this.parent.contentDOM;for(let A=this.nodeDOM;A;A=A.parentNode)if(A==e)return!0;return!1}domFromPos(e){return{node:this.nodeDOM,offset:e}}localPosFromDOM(e,A,n){return e==this.nodeDOM?this.posAtStart+Math.min(A,this.node.text.length):super.localPosFromDOM(e,A,n)}ignoreMutation(e){return e.type!="characterData"&&e.type!="selection"}slice(e,A,n){let r=this.node.cut(e,A),i=document.createTextNode(r.text);return new Xl(this.parent,r,this.outerDeco,this.innerDeco,i,i,n)}markDirty(e,A){super.markDirty(e,A),this.dom!=this.nodeDOM&&(e==0||A==this.nodeDOM.nodeValue.length)&&(this.dirty=yr)}get domAtom(){return!1}isText(e){return this.node.text==e}}class a0 extends ws{parseRule(){return{ignore:!0}}matchesHack(e){return this.dirty==Sn&&this.dom.nodeName==e}get domAtom(){return!0}get ignoreForCoords(){return this.dom.nodeName=="IMG"}}class Dx extends Ci{constructor(e,A,n,r,i,a,s,c,d,f){super(e,A,n,r,i,a,s,d,f),this.spec=c}update(e,A,n,r){if(this.dirty==yr)return!1;if(this.spec.update){let i=this.spec.update(e,A,n);return i&&this.updateInner(e,A,n,r),i}else return!this.contentDOM&&!e.isLeaf?!1:super.update(e,A,n,r)}selectNode(){this.spec.selectNode?this.spec.selectNode():super.selectNode()}deselectNode(){this.spec.deselectNode?this.spec.deselectNode():super.deselectNode()}setSelection(e,A,n,r){this.spec.setSelection?this.spec.setSelection(e,A,n):super.setSelection(e,A,n,r)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}stopEvent(e){return this.spec.stopEvent?this.spec.stopEvent(e):!1}ignoreMutation(e){return this.spec.ignoreMutation?this.spec.ignoreMutation(e):super.ignoreMutation(e)}}function o0(t,e,A){let n=t.firstChild,r=!1;for(let i=0;i<e.length;i++){let a=e[i],s=a.dom;if(s.parentNode==t){for(;s!=n;)n=c0(n),r=!0;n=n.nextSibling}else r=!0,t.insertBefore(s,n);if(a instanceof ua){let c=n?n.previousSibling:t.lastChild;o0(a.contentDOM,a.children,A),n=c?c.nextSibling:t.firstChild}}for(;n;)n=c0(n),r=!0;r&&A.trackWrites==t&&(A.trackWrites=null)}const ys=function(t){t&&(this.nodeName=t)};ys.prototype=Object.create(null);const da=[new ys];function Qf(t,e,A){if(t.length==0)return da;let n=A?da[0]:new ys,r=[n];for(let i=0;i<t.length;i++){let a=t[i].type.attrs;if(a){a.nodeName&&r.push(n=new ys(a.nodeName));for(let s in a){let c=a[s];c!=null&&(A&&r.length==1&&r.push(n=new ys(e.isInline?"span":"div")),s=="class"?n.class=(n.class?n.class+" ":"")+c:s=="style"?n.style=(n.style?n.style+";":"")+c:s!="nodeName"&&(n[s]=c))}}}return r}function s0(t,e,A,n){if(A==da&&n==da)return e;let r=e;for(let i=0;i<n.length;i++){let a=n[i],s=A[i];if(i){let c;s&&s.nodeName==a.nodeName&&r!=t&&(c=r.parentNode)&&c.nodeName.toLowerCase()==a.nodeName||(c=document.createElement(a.nodeName),c.pmIsDeco=!0,c.appendChild(r),s=da[0]),r=c}Mx(r,s||da[0],a)}return r}function Mx(t,e,A){for(let n in e)n!="class"&&n!="style"&&n!="nodeName"&&!(n in A)&&t.removeAttribute(n);for(let n in A)n!="class"&&n!="style"&&n!="nodeName"&&A[n]!=e[n]&&t.setAttribute(n,A[n]);if(e.class!=A.class){let n=e.class?e.class.split(" ").filter(Boolean):[],r=A.class?A.class.split(" ").filter(Boolean):[];for(let i=0;i<n.length;i++)r.indexOf(n[i])==-1&&t.classList.remove(n[i]);for(let i=0;i<r.length;i++)n.indexOf(r[i])==-1&&t.classList.add(r[i]);t.classList.length==0&&t.removeAttribute("class")}if(e.style!=A.style){if(e.style){let n=/\s*([\w\-\xa1-\uffff]+)\s*:(?:"(?:\\.|[^"])*"|'(?:\\.|[^'])*'|\(.*?\)|[^;])*/g,r;for(;r=n.exec(e.style);)t.style.removeProperty(r[1])}A.style&&(t.style.cssText+=A.style)}}function l0(t,e,A){return s0(t,t,da,Qf(e,A,t.nodeType!=1))}function Ff(t,e){if(t.length!=e.length)return!1;for(let A=0;A<t.length;A++)if(!t[A].type.eq(e[A].type))return!1;return!0}function c0(t){let e=t.nextSibling;return t.parentNode.removeChild(t),e}class Ox{constructor(e,A,n){this.lock=A,this.view=n,this.index=0,this.stack=[],this.changed=!1,this.top=e,this.preMatch=Nx(e.node.content,e)}destroyBetween(e,A){if(e!=A){for(let n=e;n<A;n++)this.top.children[n].destroy();this.top.children.splice(e,A-e),this.changed=!0}}destroyRest(){this.destroyBetween(this.index,this.top.children.length)}syncToMarks(e,A,n){let r=0,i=this.stack.length>>1,a=Math.min(i,e.length);for(;r<a&&(r==i-1?this.top:this.stack[r+1<<1]).matchesMark(e[r])&&e[r].type.spec.spanning!==!1;)r++;for(;r<i;)this.destroyRest(),this.top.dirty=Sn,this.index=this.stack.pop(),this.top=this.stack.pop(),i--;for(;i<e.length;){this.stack.push(this.top,this.index+1);let s=-1;for(let c=this.index;c<Math.min(this.index+3,this.top.children.length);c++){let d=this.top.children[c];if(d.matchesMark(e[i])&&!this.isLocked(d.dom)){s=c;break}}if(s>-1)s>this.index&&(this.changed=!0,this.destroyBetween(this.index,s)),this.top=this.top.children[this.index];else{let c=ua.create(this.top,e[i],A,n);this.top.children.splice(this.index,0,c),this.top=c,this.changed=!0}this.index=0,i++}}findNodeMatch(e,A,n,r){let i=-1,a;if(r>=this.preMatch.index&&(a=this.preMatch.matches[r-this.preMatch.index]).parent==this.top&&a.matchesNode(e,A,n))i=this.top.children.indexOf(a,this.index);else for(let s=this.index,c=Math.min(this.top.children.length,s+5);s<c;s++){let d=this.top.children[s];if(d.matchesNode(e,A,n)&&!this.preMatch.matched.has(d)){i=s;break}}return i<0?!1:(this.destroyBetween(this.index,i),this.index++,!0)}updateNodeAt(e,A,n,r,i){let a=this.top.children[r];return a.dirty==yr&&a.dom==a.contentDOM&&(a.dirty=ca),a.update(e,A,n,i)?(this.destroyBetween(this.index,r),this.index++,!0):!1}findIndexWithChild(e){for(;;){let A=e.parentNode;if(!A)return-1;if(A==this.top.contentDOM){let n=e.pmViewDesc;if(n){for(let r=this.index;r<this.top.children.length;r++)if(this.top.children[r]==n)return r}return-1}e=A}}updateNextNode(e,A,n,r,i,a){for(let s=this.index;s<this.top.children.length;s++){let c=this.top.children[s];if(c instanceof Ci){let d=this.preMatch.matched.get(c);if(d!=null&&d!=i)return!1;let f=c.dom,h,m=this.isLocked(f)&&!(e.isText&&c.node&&c.node.isText&&c.nodeDOM.nodeValue==e.text&&c.dirty!=yr&&Ff(A,c.outerDeco));if(!m&&c.update(e,A,n,r))return this.destroyBetween(this.index,s),c.dom!=f&&(this.changed=!0),this.index++,!0;if(!m&&(h=this.recreateWrapper(c,e,A,n,r,a)))return this.top.children[this.index]=h,h.contentDOM&&(h.dirty=ca,h.updateChildren(r,a+1),h.dirty=Sn),this.changed=!0,this.index++,!0;break}}return!1}recreateWrapper(e,A,n,r,i,a){if(e.dirty||A.isAtom||!e.children.length||!e.node.content.eq(A.content))return null;let s=Ci.create(this.top,A,n,r,i,a);if(s.contentDOM){s.children=e.children,e.children=[];for(let c of s.children)c.parent=s}return e.destroy(),s}addNode(e,A,n,r,i){let a=Ci.create(this.top,e,A,n,r,i);a.contentDOM&&a.updateChildren(r,i+1),this.top.children.splice(this.index++,0,a),this.changed=!0}placeWidget(e,A,n){let r=this.index<this.top.children.length?this.top.children[this.index]:null;if(r&&r.matchesWidget(e)&&(e==r.widget||!r.widget.type.toDOM.parentNode))this.index++;else{let i=new r0(this.top,e,A,n);this.top.children.splice(this.index++,0,i),this.changed=!0}}addTextblockHacks(){let e=this.top.children[this.index-1],A=this.top;for(;e instanceof ua;)A=e,e=A.children[A.children.length-1];(!e||!(e instanceof Xl)||/\n$/.test(e.node.text)||this.view.requiresGeckoHackNode&&/\s$/.test(e.node.text))&&((XA||JA)&&e&&e.dom.contentEditable=="false"&&this.addHackNode("IMG",A),this.addHackNode("BR",this.top))}addHackNode(e,A){if(A==this.top&&this.index<A.children.length&&A.children[this.index].matchesHack(e))this.index++;else{let n=document.createElement(e);e=="IMG"&&(n.className="ProseMirror-separator",n.alt=""),e=="BR"&&(n.className="ProseMirror-trailingBreak");let r=new a0(this.top,[],n,null);A!=this.top?A.children.push(r):A.children.splice(this.index++,0,r),this.changed=!0}}isLocked(e){return this.lock&&(e==this.lock||e.nodeType==1&&e.contains(this.lock.parentNode))}}function Nx(t,e){let A=e,n=A.children.length,r=t.childCount,i=new Map,a=[];e:for(;r>0;){let s;for(;;)if(n){let d=A.children[n-1];if(d instanceof ua)A=d,n=d.children.length;else{s=d,n--;break}}else{if(A==e)break e;n=A.parent.children.indexOf(A),A=A.parent}let c=s.node;if(c){if(c!=t.child(r-1))break;--r,i.set(s,r),a.push(s)}}return{index:r,matched:i,matches:a.reverse()}}function Lx(t,e){return t.type.side-e.type.side}function Hx(t,e,A,n){let r=e.locals(t),i=0;if(r.length==0){for(let d=0;d<t.childCount;d++){let f=t.child(d);n(f,r,e.forChild(i,f),d),i+=f.nodeSize}return}let a=0,s=[],c=null;for(let d=0;;){let f,h;for(;a<r.length&&r[a].to==i;){let v=r[a++];v.widget&&(f?(h||(h=[f])).push(v):f=v)}if(f)if(h){h.sort(Lx);for(let v=0;v<h.length;v++)A(h[v],d,!!c)}else A(f,d,!!c);let m,g;if(c)g=-1,m=c,c=null;else if(d<t.childCount)g=d,m=t.child(d++);else break;for(let v=0;v<s.length;v++)s[v].to<=i&&s.splice(v--,1);for(;a<r.length&&r[a].from<=i&&r[a].to>i;)s.push(r[a++]);let B=i+m.nodeSize;if(m.isText){let v=B;a<r.length&&r[a].from<v&&(v=r[a].from);for(let Q=0;Q<s.length;Q++)s[Q].to<v&&(v=s[Q].to);v<B&&(c=m.cut(v-i),m=m.cut(0,v-i),B=v,g=-1)}else for(;a<r.length&&r[a].to<B;)a++;let y=m.isInline&&!m.isLeaf?s.filter(v=>!v.inline):s.slice();n(m,y,e.forChild(i,m),g),i=B}}function Rx(t){if(t.nodeName=="UL"||t.nodeName=="OL"){let e=t.style.cssText;t.style.cssText=e+"; list-style: square !important",window.getComputedStyle(t).listStyle,t.style.cssText=e}}function Px(t,e,A,n){for(let r=0,i=0;r<t.childCount&&i<=n;){let a=t.child(r++),s=i;if(i+=a.nodeSize,!a.isText)continue;let c=a.text;for(;r<t.childCount;){let d=t.child(r++);if(i+=d.nodeSize,!d.isText)break;c+=d.text}if(i>=A){if(i>=n&&c.slice(n-e.length-s,n-s)==e)return n-e.length;let d=s<n?c.lastIndexOf(e,n-s-1):-1;if(d>=0&&d+e.length+s>=A)return s+d;if(A==n&&c.length>=n+e.length-s&&c.slice(n-s,n-s+e.length)==e)return n}}return-1}function Uf(t,e,A,n,r){let i=[];for(let a=0,s=0;a<t.length;a++){let c=t[a],d=s,f=s+=c.size;d>=A||f<=e?i.push(c):(d<e&&i.push(c.slice(0,e-d,n)),r&&(i.push(r),r=void 0),f>A&&i.push(c.slice(A-d,c.size,n)))}return i}function kf(t,e=null){let A=t.domSelectionRange(),n=t.state.doc;if(!A.focusNode)return null;let r=t.docView.nearestDesc(A.focusNode),i=r&&r.size==0,a=t.docView.posFromDOM(A.focusNode,A.focusOffset,1);if(a<0)return null;let s=n.resolve(a),c,d;if(Jl(A)){for(c=s;r&&!r.node;)r=r.parent;let f=r.node;if(r&&f.isAtom&&Ye.isSelectable(f)&&r.parent&&!(f.isInline&&dx(A.focusNode,A.focusOffset,r.dom))){let h=r.posBefore;d=new Ye(a==h?s:n.resolve(h))}}else{let f=t.docView.posFromDOM(A.anchorNode,A.anchorOffset,1);if(f<0)return null;c=n.resolve(f)}if(!d){let f=e=="pointer"||t.state.selection.head<s.pos&&!i?1:-1;d=If(t,c,s,f)}return d}function u0(t){return t.editable?t.hasFocus():B0(t)&&document.activeElement&&document.activeElement.contains(t.dom)}function Pr(t,e=!1){let A=t.state.selection;if(p0(t,A),!!u0(t)){if(!e&&t.input.mouseDown&&t.input.mouseDown.allowDefault&&JA){let n=t.domSelectionRange(),r=t.domObserver.currentSelection;if(n.anchorNode&&r.anchorNode&&sa(n.anchorNode,n.anchorOffset,r.anchorNode,r.anchorOffset)){t.input.mouseDown.delayedSelectionSync=!0,t.domObserver.setCurSelection();return}}if(t.domObserver.disconnectSelection(),t.cursorWrapper)Kx(t);else{let{anchor:n,head:r}=A,i,a;d0&&!(A instanceof it)&&(A.$from.parent.inlineContent||(i=f0(t,A.from)),!A.empty&&!A.$from.parent.inlineContent&&(a=f0(t,A.to))),t.docView.setSelection(n,r,t.root,e),d0&&(i&&h0(i),a&&h0(a)),A.visible?t.dom.classList.remove("ProseMirror-hideselection"):(t.dom.classList.add("ProseMirror-hideselection"),"onselectionchange"in document&&Vx(t))}t.domObserver.setCurSelection(),t.domObserver.connectSelection()}}const d0=XA||JA&&px<63;function f0(t,e){let{node:A,offset:n}=t.docView.domFromPos(e,0),r=n<A.childNodes.length?A.childNodes[n]:null,i=n?A.childNodes[n-1]:null;if(XA&&r&&r.contentEditable=="false")return _f(r);if((!r||r.contentEditable=="false")&&(!i||i.contentEditable=="false")){if(r)return _f(r);if(i)return _f(i)}}function _f(t){return t.contentEditable="true",XA&&t.draggable&&(t.draggable=!1,t.wasDraggable=!0),t}function h0(t){t.contentEditable="false",t.wasDraggable&&(t.draggable=!0,t.wasDraggable=null)}function Vx(t){let e=t.dom.ownerDocument;e.removeEventListener("selectionchange",t.input.hideSelectionGuard);let A=t.domSelectionRange(),n=A.anchorNode,r=A.anchorOffset;e.addEventListener("selectionchange",t.input.hideSelectionGuard=()=>{(A.anchorNode!=n||A.anchorOffset!=r)&&(e.removeEventListener("selectionchange",t.input.hideSelectionGuard),setTimeout(()=>{(!u0(t)||t.state.selection.visible)&&t.dom.classList.remove("ProseMirror-hideselection")},20))})}function Kx(t){let e=t.domSelection(),A=document.createRange(),n=t.cursorWrapper.dom,r=n.nodeName=="IMG";r?A.setEnd(n.parentNode,FA(n)+1):A.setEnd(n,0),A.collapse(!1),e.removeAllRanges(),e.addRange(A),!r&&!t.state.selection.visible&&ln&&wi<=11&&(n.disabled=!0,n.disabled=!1)}function p0(t,e){if(e instanceof Ye){let A=t.docView.descAt(e.from);A!=t.lastSelectedViewDesc&&(m0(t),A&&A.selectNode(),t.lastSelectedViewDesc=A)}else m0(t)}function m0(t){t.lastSelectedViewDesc&&(t.lastSelectedViewDesc.parent&&t.lastSelectedViewDesc.deselectNode(),t.lastSelectedViewDesc=void 0)}function If(t,e,A,n){return t.someProp("createSelectionBetween",r=>r(t,e,A))||it.between(e,A,n)}function g0(t){return t.editable&&!t.hasFocus()?!1:B0(t)}function B0(t){let e=t.domSelectionRange();if(!e.anchorNode)return!1;try{return t.dom.contains(e.anchorNode.nodeType==3?e.anchorNode.parentNode:e.anchorNode)&&(t.editable||t.dom.contains(e.focusNode.nodeType==3?e.focusNode.parentNode:e.focusNode))}catch{return!1}}function $x(t){let e=t.docView.domFromPos(t.state.selection.anchor,0),A=t.domSelectionRange();return sa(e.node,e.offset,A.anchorNode,A.anchorOffset)}function Sf(t,e){let{$anchor:A,$head:n}=t.selection,r=e>0?A.max(n):A.min(n),i=r.parent.inlineContent?r.depth?t.doc.resolve(e>0?r.after():r.before()):null:r;return i&&st.findFrom(i,e)}function bi(t,e){return t.dispatch(t.state.tr.setSelection(e).scrollIntoView()),!0}function w0(t,e,A){let n=t.state.selection;if(n instanceof it)if(A.indexOf("s")>-1){let{$head:r}=n,i=r.textOffset?null:e<0?r.nodeBefore:r.nodeAfter;if(!i||i.isText||!i.isLeaf)return!1;let a=t.state.doc.resolve(r.pos+i.nodeSize*(e<0?-1:1));return bi(t,new it(n.$anchor,a))}else if(n.empty){if(t.endOfTextblock(e>0?"forward":"backward")){let r=Sf(t.state,e);return r&&r instanceof Ye?bi(t,r):!1}else if(!(In&&A.indexOf("m")>-1)){let r=n.$head,i=r.textOffset?null:e<0?r.nodeBefore:r.nodeAfter,a;if(!i||i.isText)return!1;let s=e<0?r.pos-i.nodeSize:r.pos;return i.isAtom||(a=t.docView.descAt(s))&&!a.contentDOM?Ye.isSelectable(i)?bi(t,new Ye(e<0?t.state.doc.resolve(r.pos-i.nodeSize):r)):gs?bi(t,new it(t.state.doc.resolve(e<0?s:s+i.nodeSize))):!1:!1}}else return!1;else{if(n instanceof Ye&&n.node.isInline)return bi(t,new it(e>0?n.$to:n.$from));{let r=Sf(t.state,e);return r?bi(t,r):!1}}}function ql(t){return t.nodeType==3?t.nodeValue.length:t.childNodes.length}function Cs(t,e){let A=t.pmViewDesc;return A&&A.size==0&&(e<0||t.nextSibling||t.nodeName!="BR")}function lo(t,e){return e<0?Gx(t):Wx(t)}function Gx(t){let e=t.domSelectionRange(),A=e.focusNode,n=e.focusOffset;if(!A)return;let r,i,a=!1;for(er&&A.nodeType==1&&n<ql(A)&&Cs(A.childNodes[n],-1)&&(a=!0);;)if(n>0){if(A.nodeType!=1)break;{let s=A.childNodes[n-1];if(Cs(s,-1))r=A,i=--n;else if(s.nodeType==3)A=s,n=A.nodeValue.length;else break}}else{if(y0(A))break;{let s=A.previousSibling;for(;s&&Cs(s,-1);)r=A.parentNode,i=FA(s),s=s.previousSibling;if(s)A=s,n=ql(A);else{if(A=A.parentNode,A==t.dom)break;n=0}}}a?Tf(t,A,n):r&&Tf(t,r,i)}function Wx(t){let e=t.domSelectionRange(),A=e.focusNode,n=e.focusOffset;if(!A)return;let r=ql(A),i,a;for(;;)if(n<r){if(A.nodeType!=1)break;let s=A.childNodes[n];if(Cs(s,1))i=A,a=++n;else break}else{if(y0(A))break;{let s=A.nextSibling;for(;s&&Cs(s,1);)i=s.parentNode,a=FA(s)+1,s=s.nextSibling;if(s)A=s,n=0,r=ql(A);else{if(A=A.parentNode,A==t.dom)break;n=r=0}}}i&&Tf(t,i,a)}function y0(t){let e=t.pmViewDesc;return e&&e.node&&e.node.isBlock}function Yx(t,e){for(;t&&e==t.childNodes.length&&!ms(t);)e=FA(t)+1,t=t.parentNode;for(;t&&e<t.childNodes.length;){let A=t.childNodes[e];if(A.nodeType==3)return A;if(A.nodeType==1&&A.contentEditable=="false")break;t=A,e=0}}function zx(t,e){for(;t&&!e&&!ms(t);)e=FA(t),t=t.parentNode;for(;t&&e;){let A=t.childNodes[e-1];if(A.nodeType==3)return A;if(A.nodeType==1&&A.contentEditable=="false")break;t=A,e=t.childNodes.length}}function Tf(t,e,A){if(e.nodeType!=3){let i,a;(a=Yx(e,A))?(e=a,A=0):(i=zx(e,A))&&(e=i,A=i.nodeValue.length)}let n=t.domSelection();if(Jl(n)){let i=document.createRange();i.setEnd(e,A),i.setStart(e,A),n.removeAllRanges(),n.addRange(i)}else n.extend&&n.extend(e,A);t.domObserver.setCurSelection();let{state:r}=t;setTimeout(()=>{t.state==r&&Pr(t)},50)}function C0(t,e){let A=t.state.doc.resolve(e);if(!(JA||mx)&&A.parent.inlineContent){let r=t.coordsAtPos(e);if(e>A.start()){let i=t.coordsAtPos(e-1),a=(i.top+i.bottom)/2;if(a>r.top&&a<r.bottom&&Math.abs(i.left-r.left)>1)return i.left<r.left?"ltr":"rtl"}if(e<A.end()){let i=t.coordsAtPos(e+1),a=(i.top+i.bottom)/2;if(a>r.top&&a<r.bottom&&Math.abs(i.left-r.left)>1)return i.left>r.left?"ltr":"rtl"}}return getComputedStyle(t.dom).direction=="rtl"?"rtl":"ltr"}function b0(t,e,A){let n=t.state.selection;if(n instanceof it&&!n.empty||A.indexOf("s")>-1||In&&A.indexOf("m")>-1)return!1;let{$from:r,$to:i}=n;if(!r.parent.inlineContent||t.endOfTextblock(e<0?"up":"down")){let a=Sf(t.state,e);if(a&&a instanceof Ye)return bi(t,a)}if(!r.parent.inlineContent){let a=e<0?r:i,s=n instanceof Zn?st.near(a,e):st.findFrom(a,e);return s?bi(t,s):!1}return!1}function v0(t,e){if(!(t.state.selection instanceof it))return!0;let{$head:A,$anchor:n,empty:r}=t.state.selection;if(!A.sameParent(n))return!0;if(!r)return!1;if(t.endOfTextblock(e>0?"forward":"backward"))return!0;let i=!A.textOffset&&(e<0?A.nodeBefore:A.nodeAfter);if(i&&!i.isText){let a=t.state.tr;return e<0?a.delete(A.pos-i.nodeSize,A.pos):a.delete(A.pos,A.pos+i.nodeSize),t.dispatch(a),!0}return!1}function E0(t,e,A){t.domObserver.stop(),e.contentEditable=A,t.domObserver.start()}function Jx(t){if(!XA||t.state.selection.$head.parentOffset>0)return!1;let{focusNode:e,focusOffset:A}=t.domSelectionRange();if(e&&e.nodeType==1&&A==0&&e.firstChild&&e.firstChild.contentEditable=="false"){let n=e.firstChild;E0(t,n,"true"),setTimeout(()=>E0(t,n,"false"),20)}return!1}function Xx(t){let e="";return t.ctrlKey&&(e+="c"),t.metaKey&&(e+="m"),t.altKey&&(e+="a"),t.shiftKey&&(e+="s"),e}function qx(t,e){let A=e.keyCode,n=Xx(e);if(A==8||In&&A==72&&n=="c")return v0(t,-1)||lo(t,-1);if(A==46&&!e.shiftKey||In&&A==68&&n=="c")return v0(t,1)||lo(t,1);if(A==13||A==27)return!0;if(A==37||In&&A==66&&n=="c"){let r=A==37?C0(t,t.state.selection.from)=="ltr"?-1:1:-1;return w0(t,r,n)||lo(t,r)}else if(A==39||In&&A==70&&n=="c"){let r=A==39?C0(t,t.state.selection.from)=="ltr"?1:-1:1;return w0(t,r,n)||lo(t,r)}else{if(A==38||In&&A==80&&n=="c")return b0(t,-1,n)||lo(t,-1);if(A==40||In&&A==78&&n=="c")return Jx(t)||b0(t,1,n)||lo(t,1);if(n==(In?"m":"c")&&(A==66||A==73||A==89||A==90))return!0}return!1}function Q0(t,e){t.someProp("transformCopied",g=>{e=g(e,t)});let A=[],{content:n,openStart:r,openEnd:i}=e;for(;r>1&&i>1&&n.childCount==1&&n.firstChild.childCount==1;){r--,i--;let g=n.firstChild;A.push(g.type.name,g.attrs!=g.type.defaultAttrs?g.attrs:null),n=g.content}let a=t.someProp("clipboardSerializer")||pr.fromSchema(t.state.schema),s=x0(),c=s.createElement("div");c.appendChild(a.serializeFragment(n,{document:s}));let d=c.firstChild,f,h=0;for(;d&&d.nodeType==1&&(f=S0[d.nodeName.toLowerCase()]);){for(let g=f.length-1;g>=0;g--){let B=s.createElement(f[g]);for(;c.firstChild;)B.appendChild(c.firstChild);c.appendChild(B),h++}d=c.firstChild}d&&d.nodeType==1&&d.setAttribute("data-pm-slice",`${r} ${i}${h?` -${h}`:""} ${JSON.stringify(A)}`);let m=t.someProp("clipboardTextSerializer",g=>g(e,t))||e.content.textBetween(0,e.content.size,`
33
+
34
+ `);return{dom:c,text:m,slice:e}}function F0(t,e,A,n,r){let i=r.parent.type.spec.code,a,s;if(!A&&!e)return null;let c=e&&(n||i||!A);if(c){if(t.someProp("transformPastedText",m=>{e=m(e,i||n,t)}),i)return e?new Te(Qe.from(t.state.schema.text(e.replace(/\r\n?/g,`
35
+ `))),0,0):Te.empty;let h=t.someProp("clipboardTextParser",m=>m(e,r,n,t));if(h)s=h;else{let m=r.marks(),{schema:g}=t.state,B=pr.fromSchema(g);a=document.createElement("div"),e.split(/(?:\r\n?|\n)+/).forEach(y=>{let v=a.appendChild(document.createElement("p"));y&&v.appendChild(B.serializeNode(g.text(y,m)))})}}else t.someProp("transformPastedHTML",h=>{A=h(A,t)}),a=eD(A),gs&&tD(a);let d=a&&a.querySelector("[data-pm-slice]"),f=d&&/^(\d+) (\d+)(?: -(\d+))? (.*)/.exec(d.getAttribute("data-pm-slice")||"");if(f&&f[3])for(let h=+f[3];h>0;h--){let m=a.firstChild;for(;m&&m.nodeType!=1;)m=m.nextSibling;if(!m)break;a=m}if(s||(s=(t.someProp("clipboardParser")||t.someProp("domParser")||ja.fromSchema(t.state.schema)).parseSlice(a,{preserveWhitespace:!!(c||f),context:r,ruleFromNode(m){return m.nodeName=="BR"&&!m.nextSibling&&m.parentNode&&!jx.test(m.parentNode.nodeName)?{ignore:!0}:null}})),f)s=AD(I0(s,+f[1],+f[2]),f[4]);else if(s=Te.maxOpen(Zx(s.content,r),!0),s.openStart||s.openEnd){let h=0,m=0;for(let g=s.content.firstChild;h<s.openStart&&!g.type.spec.isolating;h++,g=g.firstChild);for(let g=s.content.lastChild;m<s.openEnd&&!g.type.spec.isolating;m++,g=g.lastChild);s=I0(s,h,m)}return t.someProp("transformPasted",h=>{s=h(s,t)}),s}const jx=/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var)$/i;function Zx(t,e){if(t.childCount<2)return t;for(let A=e.depth;A>=0;A--){let r=e.node(A).contentMatchAt(e.index(A)),i,a=[];if(t.forEach(s=>{if(!a)return;let c=r.findWrapping(s.type),d;if(!c)return a=null;if(d=a.length&&i.length&&k0(c,i,s,a[a.length-1],0))a[a.length-1]=d;else{a.length&&(a[a.length-1]=_0(a[a.length-1],i.length));let f=U0(s,c);a.push(f),r=r.matchType(f.type),i=c}}),a)return Qe.from(a)}return t}function U0(t,e,A=0){for(let n=e.length-1;n>=A;n--)t=e[n].create(null,Qe.from(t));return t}function k0(t,e,A,n,r){if(r<t.length&&r<e.length&&t[r]==e[r]){let i=k0(t,e,A,n.lastChild,r+1);if(i)return n.copy(n.content.replaceChild(n.childCount-1,i));if(n.contentMatchAt(n.childCount).matchType(r==t.length-1?A.type:t[r+1]))return n.copy(n.content.append(Qe.from(U0(A,t,r+1))))}}function _0(t,e){if(e==0)return t;let A=t.content.replaceChild(t.childCount-1,_0(t.lastChild,e-1)),n=t.contentMatchAt(t.childCount).fillBefore(Qe.empty,!0);return t.copy(A.append(n))}function xf(t,e,A,n,r,i){let a=e<0?t.firstChild:t.lastChild,s=a.content;return t.childCount>1&&(i=0),r<n-1&&(s=xf(s,e,A,n,r+1,i)),r>=A&&(s=e<0?a.contentMatchAt(0).fillBefore(s,i<=r).append(s):s.append(a.contentMatchAt(a.childCount).fillBefore(Qe.empty,!0))),t.replaceChild(e<0?0:t.childCount-1,a.copy(s))}function I0(t,e,A){return e<t.openStart&&(t=new Te(xf(t.content,-1,e,t.openStart,0,t.openEnd),e,t.openEnd)),A<t.openEnd&&(t=new Te(xf(t.content,1,A,t.openEnd,0,0),t.openStart,A)),t}const S0={thead:["table"],tbody:["table"],tfoot:["table"],caption:["table"],colgroup:["table"],col:["table","colgroup"],tr:["table","tbody"],td:["table","tbody","tr"],th:["table","tbody","tr"]};let T0=null;function x0(){return T0||(T0=document.implementation.createHTMLDocument("title"))}function eD(t){let e=/^(\s*<meta [^>]*>)*/.exec(t);e&&(t=t.slice(e[0].length));let A=x0().createElement("div"),n=/<([a-z][^>\s]+)/i.exec(t),r;if((r=n&&S0[n[1].toLowerCase()])&&(t=r.map(i=>"<"+i+">").join("")+t+r.map(i=>"</"+i+">").reverse().join("")),A.innerHTML=t,r)for(let i=0;i<r.length;i++)A=A.querySelector(r[i])||A;return A}function tD(t){let e=t.querySelectorAll(JA?"span:not([class]):not([style])":"span.Apple-converted-space");for(let A=0;A<e.length;A++){let n=e[A];n.childNodes.length==1&&n.textContent==" "&&n.parentNode&&n.parentNode.replaceChild(t.ownerDocument.createTextNode(" "),n)}}function AD(t,e){if(!t.size)return t;let A=t.content.firstChild.type.schema,n;try{n=JSON.parse(e)}catch{return t}let{content:r,openStart:i,openEnd:a}=t;for(let s=n.length-2;s>=0;s-=2){let c=A.nodes[n[s]];if(!c||c.hasRequiredAttrs())break;r=Qe.from(c.create(n[s+1],r)),i++,a++}return new Te(r,i,a)}const qA={},jA={},nD={touchstart:!0,touchmove:!0};class rD{constructor(){this.shiftKey=!1,this.mouseDown=null,this.lastKeyCode=null,this.lastKeyCodeTime=0,this.lastClick={time:0,x:0,y:0,type:""},this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastIOSEnter=0,this.lastIOSEnterFallbackTimeout=-1,this.lastFocus=0,this.lastTouch=0,this.lastAndroidDelete=0,this.composing=!1,this.compositionNode=null,this.composingTimeout=-1,this.compositionNodes=[],this.compositionEndedAt=-2e8,this.compositionID=1,this.compositionPendingChanges=0,this.domChangeCount=0,this.eventHandlers=Object.create(null),this.hideSelectionGuard=null}}function iD(t){for(let e in qA){let A=qA[e];t.dom.addEventListener(e,t.input.eventHandlers[e]=n=>{oD(t,n)&&!Mf(t,n)&&(t.editable||!(n.type in jA))&&A(t,n)},nD[e]?{passive:!0}:void 0)}XA&&t.dom.addEventListener("input",()=>null),Df(t)}function vi(t,e){t.input.lastSelectionOrigin=e,t.input.lastSelectionTime=Date.now()}function aD(t){t.domObserver.stop();for(let e in t.input.eventHandlers)t.dom.removeEventListener(e,t.input.eventHandlers[e]);clearTimeout(t.input.composingTimeout),clearTimeout(t.input.lastIOSEnterFallbackTimeout)}function Df(t){t.someProp("handleDOMEvents",e=>{for(let A in e)t.input.eventHandlers[A]||t.dom.addEventListener(A,t.input.eventHandlers[A]=n=>Mf(t,n))})}function Mf(t,e){return t.someProp("handleDOMEvents",A=>{let n=A[e.type];return n?n(t,e)||e.defaultPrevented:!1})}function oD(t,e){if(!e.bubbles)return!0;if(e.defaultPrevented)return!1;for(let A=e.target;A!=t.dom;A=A.parentNode)if(!A||A.nodeType==11||A.pmViewDesc&&A.pmViewDesc.stopEvent(e))return!1;return!0}function sD(t,e){!Mf(t,e)&&qA[e.type]&&(t.editable||!(e.type in jA))&&qA[e.type](t,e)}jA.keydown=(t,e)=>{let A=e;if(t.input.shiftKey=A.keyCode==16||A.shiftKey,!M0(t,A)&&(t.input.lastKeyCode=A.keyCode,t.input.lastKeyCodeTime=Date.now(),!(tr&&JA&&A.keyCode==13)))if(A.keyCode!=229&&t.domObserver.forceFlush(),oo&&A.keyCode==13&&!A.ctrlKey&&!A.altKey&&!A.metaKey){let n=Date.now();t.input.lastIOSEnter=n,t.input.lastIOSEnterFallbackTimeout=setTimeout(()=>{t.input.lastIOSEnter==n&&(t.someProp("handleKeyDown",r=>r(t,la(13,"Enter"))),t.input.lastIOSEnter=0)},200)}else t.someProp("handleKeyDown",n=>n(t,A))||qx(t,A)?A.preventDefault():vi(t,"key")},jA.keyup=(t,e)=>{e.keyCode==16&&(t.input.shiftKey=!1)},jA.keypress=(t,e)=>{let A=e;if(M0(t,A)||!A.charCode||A.ctrlKey&&!A.altKey||In&&A.metaKey)return;if(t.someProp("handleKeyPress",r=>r(t,A))){A.preventDefault();return}let n=t.state.selection;if(!(n instanceof it)||!n.$from.sameParent(n.$to)){let r=String.fromCharCode(A.charCode);!/[\r\n]/.test(r)&&!t.someProp("handleTextInput",i=>i(t,n.$from.pos,n.$to.pos,r))&&t.dispatch(t.state.tr.insertText(r).scrollIntoView()),A.preventDefault()}};function jl(t){return{left:t.clientX,top:t.clientY}}function lD(t,e){let A=e.x-t.clientX,n=e.y-t.clientY;return A*A+n*n<100}function Of(t,e,A,n,r){if(n==-1)return!1;let i=t.state.doc.resolve(n);for(let a=i.depth+1;a>0;a--)if(t.someProp(e,s=>a>i.depth?s(t,A,i.nodeAfter,i.before(a),r,!0):s(t,A,i.node(a),i.before(a),r,!1)))return!0;return!1}function co(t,e,A){t.focused||t.focus();let n=t.state.tr.setSelection(e);A=="pointer"&&n.setMeta("pointer",!0),t.dispatch(n)}function cD(t,e){if(e==-1)return!1;let A=t.state.doc.resolve(e),n=A.nodeAfter;return n&&n.isAtom&&Ye.isSelectable(n)?(co(t,new Ye(A),"pointer"),!0):!1}function uD(t,e){if(e==-1)return!1;let A=t.state.selection,n,r;A instanceof Ye&&(n=A.node);let i=t.state.doc.resolve(e);for(let a=i.depth+1;a>0;a--){let s=a>i.depth?i.nodeAfter:i.node(a);if(Ye.isSelectable(s)){n&&A.$from.depth>0&&a>=A.$from.depth&&i.before(A.$from.depth+1)==A.$from.pos?r=i.before(A.$from.depth):r=i.before(a);break}}return r!=null?(co(t,Ye.create(t.state.doc,r),"pointer"),!0):!1}function dD(t,e,A,n,r){return Of(t,"handleClickOn",e,A,n)||t.someProp("handleClick",i=>i(t,e,n))||(r?uD(t,A):cD(t,A))}function fD(t,e,A,n){return Of(t,"handleDoubleClickOn",e,A,n)||t.someProp("handleDoubleClick",r=>r(t,e,n))}function hD(t,e,A,n){return Of(t,"handleTripleClickOn",e,A,n)||t.someProp("handleTripleClick",r=>r(t,e,n))||pD(t,A,n)}function pD(t,e,A){if(A.button!=0)return!1;let n=t.state.doc;if(e==-1)return n.inlineContent?(co(t,it.create(n,0,n.content.size),"pointer"),!0):!1;let r=n.resolve(e);for(let i=r.depth+1;i>0;i--){let a=i>r.depth?r.nodeAfter:r.node(i),s=r.before(i);if(a.inlineContent)co(t,it.create(n,s+1,s+1+a.content.size),"pointer");else if(Ye.isSelectable(a))co(t,Ye.create(n,s),"pointer");else continue;return!0}}function Nf(t){return Zl(t)}const D0=In?"metaKey":"ctrlKey";qA.mousedown=(t,e)=>{let A=e;t.input.shiftKey=A.shiftKey;let n=Nf(t),r=Date.now(),i="singleClick";r-t.input.lastClick.time<500&&lD(A,t.input.lastClick)&&!A[D0]&&(t.input.lastClick.type=="singleClick"?i="doubleClick":t.input.lastClick.type=="doubleClick"&&(i="tripleClick")),t.input.lastClick={time:r,x:A.clientX,y:A.clientY,type:i};let a=t.posAtCoords(jl(A));a&&(i=="singleClick"?(t.input.mouseDown&&t.input.mouseDown.done(),t.input.mouseDown=new mD(t,a,A,!!n)):(i=="doubleClick"?fD:hD)(t,a.pos,a.inside,A)?A.preventDefault():vi(t,"pointer"))};class mD{constructor(e,A,n,r){this.view=e,this.pos=A,this.event=n,this.flushed=r,this.delayedSelectionSync=!1,this.mightDrag=null,this.startDoc=e.state.doc,this.selectNode=!!n[D0],this.allowDefault=n.shiftKey;let i,a;if(A.inside>-1)i=e.state.doc.nodeAt(A.inside),a=A.inside;else{let f=e.state.doc.resolve(A.pos);i=f.parent,a=f.depth?f.before():0}const s=r?null:n.target,c=s?e.docView.nearestDesc(s,!0):null;this.target=c&&c.dom.nodeType==1?c.dom:null;let{selection:d}=e.state;(n.button==0&&i.type.spec.draggable&&i.type.spec.selectable!==!1||d instanceof Ye&&d.from<=a&&d.to>a)&&(this.mightDrag={node:i,pos:a,addAttr:!!(this.target&&!this.target.draggable),setUneditable:!!(this.target&&er&&!this.target.hasAttribute("contentEditable"))}),this.target&&this.mightDrag&&(this.mightDrag.addAttr||this.mightDrag.setUneditable)&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&(this.target.draggable=!0),this.mightDrag.setUneditable&&setTimeout(()=>{this.view.input.mouseDown==this&&this.target.setAttribute("contentEditable","false")},20),this.view.domObserver.start()),e.root.addEventListener("mouseup",this.up=this.up.bind(this)),e.root.addEventListener("mousemove",this.move=this.move.bind(this)),vi(e,"pointer")}done(){this.view.root.removeEventListener("mouseup",this.up),this.view.root.removeEventListener("mousemove",this.move),this.mightDrag&&this.target&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&this.target.removeAttribute("draggable"),this.mightDrag.setUneditable&&this.target.removeAttribute("contentEditable"),this.view.domObserver.start()),this.delayedSelectionSync&&setTimeout(()=>Pr(this.view)),this.view.input.mouseDown=null}up(e){if(this.done(),!this.view.dom.contains(e.target))return;let A=this.pos;this.view.state.doc!=this.startDoc&&(A=this.view.posAtCoords(jl(e))),this.updateAllowDefault(e),this.allowDefault||!A?vi(this.view,"pointer"):dD(this.view,A.pos,A.inside,e,this.selectNode)?e.preventDefault():e.button==0&&(this.flushed||XA&&this.mightDrag&&!this.mightDrag.node.isAtom||JA&&!this.view.state.selection.visible&&Math.min(Math.abs(A.pos-this.view.state.selection.from),Math.abs(A.pos-this.view.state.selection.to))<=2)?(co(this.view,st.near(this.view.state.doc.resolve(A.pos)),"pointer"),e.preventDefault()):vi(this.view,"pointer")}move(e){this.updateAllowDefault(e),vi(this.view,"pointer"),e.buttons==0&&this.done()}updateAllowDefault(e){!this.allowDefault&&(Math.abs(this.event.x-e.clientX)>4||Math.abs(this.event.y-e.clientY)>4)&&(this.allowDefault=!0)}}qA.touchstart=t=>{t.input.lastTouch=Date.now(),Nf(t),vi(t,"pointer")},qA.touchmove=t=>{t.input.lastTouch=Date.now(),vi(t,"pointer")},qA.contextmenu=t=>Nf(t);function M0(t,e){return t.composing?!0:XA&&Math.abs(e.timeStamp-t.input.compositionEndedAt)<500?(t.input.compositionEndedAt=-2e8,!0):!1}const gD=tr?5e3:-1;jA.compositionstart=jA.compositionupdate=t=>{if(!t.composing){t.domObserver.flush();let{state:e}=t,A=e.selection.$from;if(e.selection.empty&&(e.storedMarks||!A.textOffset&&A.parentOffset&&A.nodeBefore.marks.some(n=>n.type.spec.inclusive===!1)))t.markCursor=t.state.storedMarks||A.marks(),Zl(t,!0),t.markCursor=null;else if(Zl(t),er&&e.selection.empty&&A.parentOffset&&!A.textOffset&&A.nodeBefore.marks.length){let n=t.domSelectionRange();for(let r=n.focusNode,i=n.focusOffset;r&&r.nodeType==1&&i!=0;){let a=i<0?r.lastChild:r.childNodes[i-1];if(!a)break;if(a.nodeType==3){t.domSelection().collapse(a,a.nodeValue.length);break}else r=a,i=-1}}t.input.composing=!0}O0(t,gD)},jA.compositionend=(t,e)=>{t.composing&&(t.input.composing=!1,t.input.compositionEndedAt=e.timeStamp,t.input.compositionPendingChanges=t.domObserver.pendingRecords().length?t.input.compositionID:0,t.input.compositionNode=null,t.input.compositionPendingChanges&&Promise.resolve().then(()=>t.domObserver.flush()),t.input.compositionID++,O0(t,20))};function O0(t,e){clearTimeout(t.input.composingTimeout),e>-1&&(t.input.composingTimeout=setTimeout(()=>Zl(t),e))}function N0(t){for(t.composing&&(t.input.composing=!1,t.input.compositionEndedAt=wD());t.input.compositionNodes.length>0;)t.input.compositionNodes.pop().markParentsDirty()}function BD(t){let e=t.domSelectionRange();if(!e.focusNode)return null;let A=cx(e.focusNode,e.focusOffset),n=ux(e.focusNode,e.focusOffset);if(A&&n&&A!=n){let r=n.pmViewDesc;if(!r||!r.isText(n.nodeValue))return n;if(t.input.compositionNode==n){let i=A.pmViewDesc;if(!(!i||!i.isText(A.nodeValue)))return n}}return A||n}function wD(){let t=document.createEvent("Event");return t.initEvent("event",!0,!0),t.timeStamp}function Zl(t,e=!1){if(!(tr&&t.domObserver.flushingSoon>=0)){if(t.domObserver.forceFlush(),N0(t),e||t.docView&&t.docView.dirty){let A=kf(t);return A&&!A.eq(t.state.selection)?t.dispatch(t.state.tr.setSelection(A)):t.updateState(t.state),!0}return!1}}function yD(t,e){if(!t.dom.parentNode)return;let A=t.dom.parentNode.appendChild(document.createElement("div"));A.appendChild(e),A.style.cssText="position: fixed; left: -10000px; top: 10px";let n=getSelection(),r=document.createRange();r.selectNodeContents(e),t.dom.blur(),n.removeAllRanges(),n.addRange(r),setTimeout(()=>{A.parentNode&&A.parentNode.removeChild(A),t.focus()},50)}const bs=ln&&wi<15||oo&&gx<604;qA.copy=jA.cut=(t,e)=>{let A=e,n=t.state.selection,r=A.type=="cut";if(n.empty)return;let i=bs?null:A.clipboardData,a=n.content(),{dom:s,text:c}=Q0(t,a);i?(A.preventDefault(),i.clearData(),i.setData("text/html",s.innerHTML),i.setData("text/plain",c)):yD(t,s),r&&t.dispatch(t.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent","cut"))};function CD(t){return t.openStart==0&&t.openEnd==0&&t.content.childCount==1?t.content.firstChild:null}function bD(t,e){if(!t.dom.parentNode)return;let A=t.input.shiftKey||t.state.selection.$from.parent.type.spec.code,n=t.dom.parentNode.appendChild(document.createElement(A?"textarea":"div"));A||(n.contentEditable="true"),n.style.cssText="position: fixed; left: -10000px; top: 10px",n.focus();let r=t.input.shiftKey&&t.input.lastKeyCode!=45;setTimeout(()=>{t.focus(),n.parentNode&&n.parentNode.removeChild(n),A?vs(t,n.value,null,r,e):vs(t,n.textContent,n.innerHTML,r,e)},50)}function vs(t,e,A,n,r){let i=F0(t,e,A,n,t.state.selection.$from);if(t.someProp("handlePaste",c=>c(t,r,i||Te.empty)))return!0;if(!i)return!1;let a=CD(i),s=a?t.state.tr.replaceSelectionWith(a,n):t.state.tr.replaceSelection(i);return t.dispatch(s.scrollIntoView().setMeta("paste",!0).setMeta("uiEvent","paste")),!0}function L0(t){let e=t.getData("text/plain")||t.getData("Text");if(e)return e;let A=t.getData("text/uri-list");return A?A.replace(/\r?\n/g," "):""}jA.paste=(t,e)=>{let A=e;if(t.composing&&!tr)return;let n=bs?null:A.clipboardData,r=t.input.shiftKey&&t.input.lastKeyCode!=45;n&&vs(t,L0(n),n.getData("text/html"),r,A)?A.preventDefault():bD(t,A)};class H0{constructor(e,A,n){this.slice=e,this.move=A,this.node=n}}const R0=In?"altKey":"ctrlKey";qA.dragstart=(t,e)=>{let A=e,n=t.input.mouseDown;if(n&&n.done(),!A.dataTransfer)return;let r=t.state.selection,i=r.empty?null:t.posAtCoords(jl(A)),a;if(!(i&&i.pos>=r.from&&i.pos<=(r instanceof Ye?r.to-1:r.to))){if(n&&n.mightDrag)a=Ye.create(t.state.doc,n.mightDrag.pos);else if(A.target&&A.target.nodeType==1){let h=t.docView.nearestDesc(A.target,!0);h&&h.node.type.spec.draggable&&h!=t.docView&&(a=Ye.create(t.state.doc,h.posBefore))}}let s=(a||t.state.selection).content(),{dom:c,text:d,slice:f}=Q0(t,s);A.dataTransfer.clearData(),A.dataTransfer.setData(bs?"Text":"text/html",c.innerHTML),A.dataTransfer.effectAllowed="copyMove",bs||A.dataTransfer.setData("text/plain",d),t.dragging=new H0(f,!A[R0],a)},qA.dragend=t=>{let e=t.dragging;window.setTimeout(()=>{t.dragging==e&&(t.dragging=null)},50)},jA.dragover=jA.dragenter=(t,e)=>e.preventDefault(),jA.drop=(t,e)=>{let A=e,n=t.dragging;if(t.dragging=null,!A.dataTransfer)return;let r=t.posAtCoords(jl(A));if(!r)return;let i=t.state.doc.resolve(r.pos),a=n&&n.slice;a?t.someProp("transformPasted",B=>{a=B(a,t)}):a=F0(t,L0(A.dataTransfer),bs?null:A.dataTransfer.getData("text/html"),!1,i);let s=!!(n&&!A[R0]);if(t.someProp("handleDrop",B=>B(t,A,a||Te.empty,s))){A.preventDefault();return}if(!a)return;A.preventDefault();let c=a?Iw(t.state.doc,i.pos,a):i.pos;c==null&&(c=i.pos);let d=t.state.tr;if(s){let{node:B}=n;B?B.replace(d):d.deleteSelection()}let f=d.mapping.map(c),h=a.openStart==0&&a.openEnd==0&&a.content.childCount==1,m=d.doc;if(h?d.replaceRangeWith(f,f,a.content.firstChild):d.replaceRange(f,f,a),d.doc.eq(m))return;let g=d.doc.resolve(f);if(h&&Ye.isSelectable(a.content.firstChild)&&g.nodeAfter&&g.nodeAfter.sameMarkup(a.content.firstChild))d.setSelection(new Ye(g));else{let B=d.mapping.map(c);d.mapping.maps[d.mapping.maps.length-1].forEach((y,v,Q,k)=>B=k),d.setSelection(If(t,g,d.doc.resolve(B)))}t.focus(),t.dispatch(d.setMeta("uiEvent","drop"))},qA.focus=t=>{t.input.lastFocus=Date.now(),t.focused||(t.domObserver.stop(),t.dom.classList.add("ProseMirror-focused"),t.domObserver.start(),t.focused=!0,setTimeout(()=>{t.docView&&t.hasFocus()&&!t.domObserver.currentSelection.eq(t.domSelectionRange())&&Pr(t)},20))},qA.blur=(t,e)=>{let A=e;t.focused&&(t.domObserver.stop(),t.dom.classList.remove("ProseMirror-focused"),t.domObserver.start(),A.relatedTarget&&t.dom.contains(A.relatedTarget)&&t.domObserver.currentSelection.clear(),t.focused=!1)},qA.beforeinput=(t,e)=>{if(JA&&tr&&e.inputType=="deleteContentBackward"){t.domObserver.flushSoon();let{domChangeCount:n}=t.input;setTimeout(()=>{if(t.input.domChangeCount!=n||(t.dom.blur(),t.focus(),t.someProp("handleKeyDown",i=>i(t,la(8,"Backspace")))))return;let{$cursor:r}=t.state.selection;r&&r.pos>0&&t.dispatch(t.state.tr.delete(r.pos-1,r.pos).scrollIntoView())},50)}};for(let t in jA)qA[t]=jA[t];function Es(t,e){if(t==e)return!0;for(let A in t)if(t[A]!==e[A])return!1;for(let A in e)if(!(A in t))return!1;return!0}class ec{constructor(e,A){this.toDOM=e,this.spec=A||fa,this.side=this.spec.side||0}map(e,A,n,r){let{pos:i,deleted:a}=e.mapResult(A.from+r,this.side<0?-1:1);return a?null:new Tn(i-n,i-n,this)}valid(){return!0}eq(e){return this==e||e instanceof ec&&(this.spec.key&&this.spec.key==e.spec.key||this.toDOM==e.toDOM&&Es(this.spec,e.spec))}destroy(e){this.spec.destroy&&this.spec.destroy(e)}}class Ei{constructor(e,A){this.attrs=e,this.spec=A||fa}map(e,A,n,r){let i=e.map(A.from+r,this.spec.inclusiveStart?-1:1)-n,a=e.map(A.to+r,this.spec.inclusiveEnd?1:-1)-n;return i>=a?null:new Tn(i,a,this)}valid(e,A){return A.from<A.to}eq(e){return this==e||e instanceof Ei&&Es(this.attrs,e.attrs)&&Es(this.spec,e.spec)}static is(e){return e.type instanceof Ei}destroy(){}}class Lf{constructor(e,A){this.attrs=e,this.spec=A||fa}map(e,A,n,r){let i=e.mapResult(A.from+r,1);if(i.deleted)return null;let a=e.mapResult(A.to+r,-1);return a.deleted||a.pos<=i.pos?null:new Tn(i.pos-n,a.pos-n,this)}valid(e,A){let{index:n,offset:r}=e.content.findIndex(A.from),i;return r==A.from&&!(i=e.child(n)).isText&&r+i.nodeSize==A.to}eq(e){return this==e||e instanceof Lf&&Es(this.attrs,e.attrs)&&Es(this.spec,e.spec)}destroy(){}}class Tn{constructor(e,A,n){this.from=e,this.to=A,this.type=n}copy(e,A){return new Tn(e,A,this.type)}eq(e,A=0){return this.type.eq(e.type)&&this.from+A==e.from&&this.to+A==e.to}map(e,A,n){return this.type.map(e,this,A,n)}static widget(e,A,n){return new Tn(e,e,new ec(A,n))}static inline(e,A,n,r){return new Tn(e,A,new Ei(n,r))}static node(e,A,n,r){return new Tn(e,A,new Lf(n,r))}get spec(){return this.type.spec}get inline(){return this.type instanceof Ei}get widget(){return this.type instanceof ec}}const uo=[],fa={};class cA{constructor(e,A){this.local=e.length?e:uo,this.children=A.length?A:uo}static create(e,A){return A.length?tc(A,e,0,fa):NA}find(e,A,n){let r=[];return this.findInner(e??0,A??1e9,r,0,n),r}findInner(e,A,n,r,i){for(let a=0;a<this.local.length;a++){let s=this.local[a];s.from<=A&&s.to>=e&&(!i||i(s.spec))&&n.push(s.copy(s.from+r,s.to+r))}for(let a=0;a<this.children.length;a+=3)if(this.children[a]<A&&this.children[a+1]>e){let s=this.children[a]+1;this.children[a+2].findInner(e-s,A-s,n,r+s,i)}}map(e,A,n){return this==NA||e.maps.length==0?this:this.mapInner(e,A,0,0,n||fa)}mapInner(e,A,n,r,i){let a;for(let s=0;s<this.local.length;s++){let c=this.local[s].map(e,n,r);c&&c.type.valid(A,c)?(a||(a=[])).push(c):i.onRemove&&i.onRemove(this.local[s].spec)}return this.children.length?vD(this.children,a||[],e,A,n,r,i):a?new cA(a.sort(ha),uo):NA}add(e,A){return A.length?this==NA?cA.create(e,A):this.addInner(e,A,0):this}addInner(e,A,n){let r,i=0;e.forEach((s,c)=>{let d=c+n,f;if(f=V0(A,s,d)){for(r||(r=this.children.slice());i<r.length&&r[i]<c;)i+=3;r[i]==c?r[i+2]=r[i+2].addInner(s,f,d+1):r.splice(i,0,c,c+s.nodeSize,tc(f,s,d+1,fa)),i+=3}});let a=P0(i?K0(A):A,-n);for(let s=0;s<a.length;s++)a[s].type.valid(e,a[s])||a.splice(s--,1);return new cA(a.length?this.local.concat(a).sort(ha):this.local,r||this.children)}remove(e){return e.length==0||this==NA?this:this.removeInner(e,0)}removeInner(e,A){let n=this.children,r=this.local;for(let i=0;i<n.length;i+=3){let a,s=n[i]+A,c=n[i+1]+A;for(let f=0,h;f<e.length;f++)(h=e[f])&&h.from>s&&h.to<c&&(e[f]=null,(a||(a=[])).push(h));if(!a)continue;n==this.children&&(n=this.children.slice());let d=n[i+2].removeInner(a,s+1);d!=NA?n[i+2]=d:(n.splice(i,3),i-=3)}if(r.length){for(let i=0,a;i<e.length;i++)if(a=e[i])for(let s=0;s<r.length;s++)r[s].eq(a,A)&&(r==this.local&&(r=this.local.slice()),r.splice(s--,1))}return n==this.children&&r==this.local?this:r.length||n.length?new cA(r,n):NA}forChild(e,A){if(this==NA)return this;if(A.isLeaf)return cA.empty;let n,r;for(let s=0;s<this.children.length;s+=3)if(this.children[s]>=e){this.children[s]==e&&(n=this.children[s+2]);break}let i=e+1,a=i+A.content.size;for(let s=0;s<this.local.length;s++){let c=this.local[s];if(c.from<a&&c.to>i&&c.type instanceof Ei){let d=Math.max(i,c.from)-i,f=Math.min(a,c.to)-i;d<f&&(r||(r=[])).push(c.copy(d,f))}}if(r){let s=new cA(r.sort(ha),uo);return n?new Qi([s,n]):s}return n||NA}eq(e){if(this==e)return!0;if(!(e instanceof cA)||this.local.length!=e.local.length||this.children.length!=e.children.length)return!1;for(let A=0;A<this.local.length;A++)if(!this.local[A].eq(e.local[A]))return!1;for(let A=0;A<this.children.length;A+=3)if(this.children[A]!=e.children[A]||this.children[A+1]!=e.children[A+1]||!this.children[A+2].eq(e.children[A+2]))return!1;return!0}locals(e){return Hf(this.localsInner(e))}localsInner(e){if(this==NA)return uo;if(e.inlineContent||!this.local.some(Ei.is))return this.local;let A=[];for(let n=0;n<this.local.length;n++)this.local[n].type instanceof Ei||A.push(this.local[n]);return A}}cA.empty=new cA([],[]),cA.removeOverlap=Hf;const NA=cA.empty;class Qi{constructor(e){this.members=e}map(e,A){const n=this.members.map(r=>r.map(e,A,fa));return Qi.from(n)}forChild(e,A){if(A.isLeaf)return cA.empty;let n=[];for(let r=0;r<this.members.length;r++){let i=this.members[r].forChild(e,A);i!=NA&&(i instanceof Qi?n=n.concat(i.members):n.push(i))}return Qi.from(n)}eq(e){if(!(e instanceof Qi)||e.members.length!=this.members.length)return!1;for(let A=0;A<this.members.length;A++)if(!this.members[A].eq(e.members[A]))return!1;return!0}locals(e){let A,n=!0;for(let r=0;r<this.members.length;r++){let i=this.members[r].localsInner(e);if(i.length)if(!A)A=i;else{n&&(A=A.slice(),n=!1);for(let a=0;a<i.length;a++)A.push(i[a])}}return A?Hf(n?A:A.sort(ha)):uo}static from(e){switch(e.length){case 0:return NA;case 1:return e[0];default:return new Qi(e.every(A=>A instanceof cA)?e:e.reduce((A,n)=>A.concat(n instanceof cA?n:n.members),[]))}}}function vD(t,e,A,n,r,i,a){let s=t.slice();for(let d=0,f=i;d<A.maps.length;d++){let h=0;A.maps[d].forEach((m,g,B,y)=>{let v=y-B-(g-m);for(let Q=0;Q<s.length;Q+=3){let k=s[Q+1];if(k<0||m>k+f-h)continue;let F=s[Q]+f-h;g>=F?s[Q+1]=m<=F?-2:-1:m>=f&&v&&(s[Q]+=v,s[Q+1]+=v)}h+=v}),f=A.maps[d].map(f,-1)}let c=!1;for(let d=0;d<s.length;d+=3)if(s[d+1]<0){if(s[d+1]==-2){c=!0,s[d+1]=-1;continue}let f=A.map(t[d]+i),h=f-r;if(h<0||h>=n.content.size){c=!0;continue}let m=A.map(t[d+1]+i,-1),g=m-r,{index:B,offset:y}=n.content.findIndex(h),v=n.maybeChild(B);if(v&&y==h&&y+v.nodeSize==g){let Q=s[d+2].mapInner(A,v,f+1,t[d]+i+1,a);Q!=NA?(s[d]=h,s[d+1]=g,s[d+2]=Q):(s[d+1]=-2,c=!0)}else c=!0}if(c){let d=ED(s,t,e,A,r,i,a),f=tc(d,n,0,a);e=f.local;for(let h=0;h<s.length;h+=3)s[h+1]<0&&(s.splice(h,3),h-=3);for(let h=0,m=0;h<f.children.length;h+=3){let g=f.children[h];for(;m<s.length&&s[m]<g;)m+=3;s.splice(m,0,f.children[h],f.children[h+1],f.children[h+2])}}return new cA(e.sort(ha),s)}function P0(t,e){if(!e||!t.length)return t;let A=[];for(let n=0;n<t.length;n++){let r=t[n];A.push(new Tn(r.from+e,r.to+e,r.type))}return A}function ED(t,e,A,n,r,i,a){function s(c,d){for(let f=0;f<c.local.length;f++){let h=c.local[f].map(n,r,d);h?A.push(h):a.onRemove&&a.onRemove(c.local[f].spec)}for(let f=0;f<c.children.length;f+=3)s(c.children[f+2],c.children[f]+d+1)}for(let c=0;c<t.length;c+=3)t[c+1]==-1&&s(t[c+2],e[c]+i+1);return A}function V0(t,e,A){if(e.isLeaf)return null;let n=A+e.nodeSize,r=null;for(let i=0,a;i<t.length;i++)(a=t[i])&&a.from>A&&a.to<n&&((r||(r=[])).push(a),t[i]=null);return r}function K0(t){let e=[];for(let A=0;A<t.length;A++)t[A]!=null&&e.push(t[A]);return e}function tc(t,e,A,n){let r=[],i=!1;e.forEach((s,c)=>{let d=V0(t,s,c+A);if(d){i=!0;let f=tc(d,s,A+c+1,n);f!=NA&&r.push(c,c+s.nodeSize,f)}});let a=P0(i?K0(t):t,-A).sort(ha);for(let s=0;s<a.length;s++)a[s].type.valid(e,a[s])||(n.onRemove&&n.onRemove(a[s].spec),a.splice(s--,1));return a.length||r.length?new cA(a,r):NA}function ha(t,e){return t.from-e.from||t.to-e.to}function Hf(t){let e=t;for(let A=0;A<e.length-1;A++){let n=e[A];if(n.from!=n.to)for(let r=A+1;r<e.length;r++){let i=e[r];if(i.from==n.from){i.to!=n.to&&(e==t&&(e=t.slice()),e[r]=i.copy(i.from,n.to),$0(e,r+1,i.copy(n.to,i.to)));continue}else{i.from<n.to&&(e==t&&(e=t.slice()),e[A]=n.copy(n.from,i.from),$0(e,r,n.copy(i.from,n.to)));break}}}return e}function $0(t,e,A){for(;e<t.length&&ha(A,t[e])>0;)e++;t.splice(e,0,A)}function Rf(t){let e=[];return t.someProp("decorations",A=>{let n=A(t.state);n&&n!=NA&&e.push(n)}),t.cursorWrapper&&e.push(cA.create(t.state.doc,[t.cursorWrapper.deco])),Qi.from(e)}const QD={childList:!0,characterData:!0,characterDataOldValue:!0,attributes:!0,attributeOldValue:!0,subtree:!0},FD=ln&&wi<=11;class UD{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}set(e){this.anchorNode=e.anchorNode,this.anchorOffset=e.anchorOffset,this.focusNode=e.focusNode,this.focusOffset=e.focusOffset}clear(){this.anchorNode=this.focusNode=null}eq(e){return e.anchorNode==this.anchorNode&&e.anchorOffset==this.anchorOffset&&e.focusNode==this.focusNode&&e.focusOffset==this.focusOffset}}class kD{constructor(e,A){this.view=e,this.handleDOMChange=A,this.queue=[],this.flushingSoon=-1,this.observer=null,this.currentSelection=new UD,this.onCharData=null,this.suppressingSelectionUpdates=!1,this.observer=window.MutationObserver&&new window.MutationObserver(n=>{for(let r=0;r<n.length;r++)this.queue.push(n[r]);ln&&wi<=11&&n.some(r=>r.type=="childList"&&r.removedNodes.length||r.type=="characterData"&&r.oldValue.length>r.target.nodeValue.length)?this.flushSoon():this.flush()}),FD&&(this.onCharData=n=>{this.queue.push({target:n.target,type:"characterData",oldValue:n.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this)}flushSoon(){this.flushingSoon<0&&(this.flushingSoon=window.setTimeout(()=>{this.flushingSoon=-1,this.flush()},20))}forceFlush(){this.flushingSoon>-1&&(window.clearTimeout(this.flushingSoon),this.flushingSoon=-1,this.flush())}start(){this.observer&&(this.observer.takeRecords(),this.observer.observe(this.view.dom,QD)),this.onCharData&&this.view.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.connectSelection()}stop(){if(this.observer){let e=this.observer.takeRecords();if(e.length){for(let A=0;A<e.length;A++)this.queue.push(e[A]);window.setTimeout(()=>this.flush(),20)}this.observer.disconnect()}this.onCharData&&this.view.dom.removeEventListener("DOMCharacterDataModified",this.onCharData),this.disconnectSelection()}connectSelection(){this.view.dom.ownerDocument.addEventListener("selectionchange",this.onSelectionChange)}disconnectSelection(){this.view.dom.ownerDocument.removeEventListener("selectionchange",this.onSelectionChange)}suppressSelectionUpdates(){this.suppressingSelectionUpdates=!0,setTimeout(()=>this.suppressingSelectionUpdates=!1,50)}onSelectionChange(){if(g0(this.view)){if(this.suppressingSelectionUpdates)return Pr(this.view);if(ln&&wi<=11&&!this.view.state.selection.empty){let e=this.view.domSelectionRange();if(e.focusNode&&sa(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset))return this.flushSoon()}this.flush()}}setCurSelection(){this.currentSelection.set(this.view.domSelectionRange())}ignoreSelectionChange(e){if(!e.focusNode)return!0;let A=new Set,n;for(let i=e.focusNode;i;i=ps(i))A.add(i);for(let i=e.anchorNode;i;i=ps(i))if(A.has(i)){n=i;break}let r=n&&this.view.docView.nearestDesc(n);if(r&&r.ignoreMutation({type:"selection",target:n.nodeType==3?n.parentNode:n}))return this.setCurSelection(),!0}pendingRecords(){if(this.observer)for(let e of this.observer.takeRecords())this.queue.push(e);return this.queue}flush(){let{view:e}=this;if(!e.docView||this.flushingSoon>-1)return;let A=this.pendingRecords();A.length&&(this.queue=[]);let n=e.domSelectionRange(),r=!this.suppressingSelectionUpdates&&!this.currentSelection.eq(n)&&g0(e)&&!this.ignoreSelectionChange(n),i=-1,a=-1,s=!1,c=[];if(e.editable)for(let f=0;f<A.length;f++){let h=this.registerMutation(A[f],c);h&&(i=i<0?h.from:Math.min(h.from,i),a=a<0?h.to:Math.max(h.to,a),h.typeOver&&(s=!0))}if(er&&c.length){let f=c.filter(h=>h.nodeName=="BR");if(f.length==2){let[h,m]=f;h.parentNode&&h.parentNode.parentNode==m.parentNode?m.remove():h.remove()}else{let{focusNode:h}=this.currentSelection;for(let m of f){let g=m.parentNode;g&&g.nodeName=="LI"&&(!h||SD(e,h)!=g)&&m.remove()}}}let d=null;i<0&&r&&e.input.lastFocus>Date.now()-200&&Math.max(e.input.lastTouch,e.input.lastClick.time)<Date.now()-300&&Jl(n)&&(d=kf(e))&&d.eq(st.near(e.state.doc.resolve(0),1))?(e.input.lastFocus=0,Pr(e),this.currentSelection.set(n),e.scrollToSelection()):(i>-1||r)&&(i>-1&&(e.docView.markDirty(i,a),_D(e)),this.handleDOMChange(i,a,s,c),e.docView&&e.docView.dirty?e.updateState(e.state):this.currentSelection.eq(n)||Pr(e),this.currentSelection.set(n))}registerMutation(e,A){if(A.indexOf(e.target)>-1)return null;let n=this.view.docView.nearestDesc(e.target);if(e.type=="attributes"&&(n==this.view.docView||e.attributeName=="contenteditable"||e.attributeName=="style"&&!e.oldValue&&!e.target.getAttribute("style"))||!n||n.ignoreMutation(e))return null;if(e.type=="childList"){for(let f=0;f<e.addedNodes.length;f++)A.push(e.addedNodes[f]);if(n.contentDOM&&n.contentDOM!=n.dom&&!n.contentDOM.contains(e.target))return{from:n.posBefore,to:n.posAfter};let r=e.previousSibling,i=e.nextSibling;if(ln&&wi<=11&&e.addedNodes.length)for(let f=0;f<e.addedNodes.length;f++){let{previousSibling:h,nextSibling:m}=e.addedNodes[f];(!h||Array.prototype.indexOf.call(e.addedNodes,h)<0)&&(r=h),(!m||Array.prototype.indexOf.call(e.addedNodes,m)<0)&&(i=m)}let a=r&&r.parentNode==e.target?FA(r)+1:0,s=n.localPosFromDOM(e.target,a,-1),c=i&&i.parentNode==e.target?FA(i):e.target.childNodes.length,d=n.localPosFromDOM(e.target,c,1);return{from:s,to:d}}else return e.type=="attributes"?{from:n.posAtStart-n.border,to:n.posAtEnd+n.border}:{from:n.posAtStart,to:n.posAtEnd,typeOver:e.target.nodeValue==e.oldValue}}}let G0=new WeakMap,W0=!1;function _D(t){if(!G0.has(t)&&(G0.set(t,null),["normal","nowrap","pre-line"].indexOf(getComputedStyle(t.dom).whiteSpace)!==-1)){if(t.requiresGeckoHackNode=er,W0)return;console.warn("ProseMirror expects the CSS white-space property to be set, preferably to 'pre-wrap'. It is recommended to load style/prosemirror.css from the prosemirror-view package."),W0=!0}}function Y0(t,e){let A=e.startContainer,n=e.startOffset,r=e.endContainer,i=e.endOffset,a=t.domAtPos(t.state.selection.anchor);return sa(a.node,a.offset,r,i)&&([A,n,r,i]=[r,i,A,n]),{anchorNode:A,anchorOffset:n,focusNode:r,focusOffset:i}}function ID(t,e){if(e.getComposedRanges){let r=e.getComposedRanges(t.root)[0];if(r)return Y0(t,r)}let A;function n(r){r.preventDefault(),r.stopImmediatePropagation(),A=r.getTargetRanges()[0]}return t.dom.addEventListener("beforeinput",n,!0),document.execCommand("indent"),t.dom.removeEventListener("beforeinput",n,!0),A?Y0(t,A):null}function SD(t,e){for(let A=e.parentNode;A&&A!=t.dom;A=A.parentNode){let n=t.docView.nearestDesc(A,!0);if(n&&n.node.isBlock)return A}return null}function TD(t,e,A){let{node:n,fromOffset:r,toOffset:i,from:a,to:s}=t.docView.parseRange(e,A),c=t.domSelectionRange(),d,f=c.anchorNode;if(f&&t.dom.contains(f.nodeType==1?f:f.parentNode)&&(d=[{node:f,offset:c.anchorOffset}],Jl(c)||d.push({node:c.focusNode,offset:c.focusOffset})),JA&&t.input.lastKeyCode===8)for(let v=i;v>r;v--){let Q=n.childNodes[v-1],k=Q.pmViewDesc;if(Q.nodeName=="BR"&&!k){i=v;break}if(!k||k.size)break}let h=t.state.doc,m=t.someProp("domParser")||ja.fromSchema(t.state.schema),g=h.resolve(a),B=null,y=m.parse(n,{topNode:g.parent,topMatch:g.parent.contentMatchAt(g.index()),topOpen:!0,from:r,to:i,preserveWhitespace:g.parent.type.whitespace=="pre"?"full":!0,findPositions:d,ruleFromNode:xD,context:g});if(d&&d[0].pos!=null){let v=d[0].pos,Q=d[1]&&d[1].pos;Q==null&&(Q=v),B={anchor:v+a,head:Q+a}}return{doc:y,sel:B,from:a,to:s}}function xD(t){let e=t.pmViewDesc;if(e)return e.parseRule();if(t.nodeName=="BR"&&t.parentNode){if(XA&&/^(ul|ol)$/i.test(t.parentNode.nodeName)){let A=document.createElement("div");return A.appendChild(document.createElement("li")),{skip:A}}else if(t.parentNode.lastChild==t||XA&&/^(tr|table)$/i.test(t.parentNode.nodeName))return{ignore:!0}}else if(t.nodeName=="IMG"&&t.getAttribute("mark-placeholder"))return{ignore:!0};return null}const DD=/^(a|abbr|acronym|b|bd[io]|big|br|button|cite|code|data(list)?|del|dfn|em|i|ins|kbd|label|map|mark|meter|output|q|ruby|s|samp|small|span|strong|su[bp]|time|u|tt|var)$/i;function MD(t,e,A,n,r){let i=t.input.compositionPendingChanges||(t.composing?t.input.compositionID:0);if(t.input.compositionPendingChanges=0,e<0){let S=t.input.lastSelectionTime>Date.now()-50?t.input.lastSelectionOrigin:null,K=kf(t,S);if(K&&!t.state.selection.eq(K)){if(JA&&tr&&t.input.lastKeyCode===13&&Date.now()-100<t.input.lastKeyCodeTime&&t.someProp("handleKeyDown",ce=>ce(t,la(13,"Enter"))))return;let de=t.state.tr.setSelection(K);S=="pointer"?de.setMeta("pointer",!0):S=="key"&&de.scrollIntoView(),i&&de.setMeta("composition",i),t.dispatch(de)}return}let a=t.state.doc.resolve(e),s=a.sharedDepth(A);e=a.before(s+1),A=t.state.doc.resolve(A).after(s+1);let c=t.state.selection,d=TD(t,e,A),f=t.state.doc,h=f.slice(d.from,d.to),m,g;t.input.lastKeyCode===8&&Date.now()-100<t.input.lastKeyCodeTime?(m=t.state.selection.to,g="end"):(m=t.state.selection.from,g="start"),t.input.lastKeyCode=null;let B=LD(h.content,d.doc.content,d.from,m,g);if((oo&&t.input.lastIOSEnter>Date.now()-225||tr)&&r.some(S=>S.nodeType==1&&!DD.test(S.nodeName))&&(!B||B.endA>=B.endB)&&t.someProp("handleKeyDown",S=>S(t,la(13,"Enter")))){t.input.lastIOSEnter=0;return}if(!B)if(n&&c instanceof it&&!c.empty&&c.$head.sameParent(c.$anchor)&&!t.composing&&!(d.sel&&d.sel.anchor!=d.sel.head))B={start:c.from,endA:c.to,endB:c.to};else{if(d.sel){let S=z0(t,t.state.doc,d.sel);if(S&&!S.eq(t.state.selection)){let K=t.state.tr.setSelection(S);i&&K.setMeta("composition",i),t.dispatch(K)}}return}t.input.domChangeCount++,t.state.selection.from<t.state.selection.to&&B.start==B.endB&&t.state.selection instanceof it&&(B.start>t.state.selection.from&&B.start<=t.state.selection.from+2&&t.state.selection.from>=d.from?B.start=t.state.selection.from:B.endA<t.state.selection.to&&B.endA>=t.state.selection.to-2&&t.state.selection.to<=d.to&&(B.endB+=t.state.selection.to-B.endA,B.endA=t.state.selection.to)),ln&&wi<=11&&B.endB==B.start+1&&B.endA==B.start&&B.start>d.from&&d.doc.textBetween(B.start-d.from-1,B.start-d.from+1)=="  "&&(B.start--,B.endA--,B.endB--);let y=d.doc.resolveNoCache(B.start-d.from),v=d.doc.resolveNoCache(B.endB-d.from),Q=f.resolve(B.start),k=y.sameParent(v)&&y.parent.inlineContent&&Q.end()>=B.endA,F;if((oo&&t.input.lastIOSEnter>Date.now()-225&&(!k||r.some(S=>S.nodeName=="DIV"||S.nodeName=="P"))||!k&&y.pos<d.doc.content.size&&!y.sameParent(v)&&(F=st.findFrom(d.doc.resolve(y.pos+1),1,!0))&&F.head==v.pos)&&t.someProp("handleKeyDown",S=>S(t,la(13,"Enter")))){t.input.lastIOSEnter=0;return}if(t.state.selection.anchor>B.start&&ND(f,B.start,B.endA,y,v)&&t.someProp("handleKeyDown",S=>S(t,la(8,"Backspace")))){tr&&JA&&t.domObserver.suppressSelectionUpdates();return}JA&&tr&&B.endB==B.start&&(t.input.lastAndroidDelete=Date.now()),tr&&!k&&y.start()!=v.start()&&v.parentOffset==0&&y.depth==v.depth&&d.sel&&d.sel.anchor==d.sel.head&&d.sel.head==B.endA&&(B.endB-=2,v=d.doc.resolveNoCache(B.endB-d.from),setTimeout(()=>{t.someProp("handleKeyDown",function(S){return S(t,la(13,"Enter"))})},20));let C=B.start,D=B.endA,E,x,O;if(k){if(y.pos==v.pos)ln&&wi<=11&&y.parentOffset==0&&(t.domObserver.suppressSelectionUpdates(),setTimeout(()=>Pr(t),20)),E=t.state.tr.delete(C,D),x=f.resolve(B.start).marksAcross(f.resolve(B.endA));else if(B.endA==B.endB&&(O=OD(y.parent.content.cut(y.parentOffset,v.parentOffset),Q.parent.content.cut(Q.parentOffset,B.endA-Q.start()))))E=t.state.tr,O.type=="add"?E.addMark(C,D,O.mark):E.removeMark(C,D,O.mark);else if(y.parent.child(y.index()).isText&&y.index()==v.index()-(v.textOffset?0:1)){let S=y.parent.textBetween(y.parentOffset,v.parentOffset);if(t.someProp("handleTextInput",K=>K(t,C,D,S)))return;E=t.state.tr.insertText(S,C,D)}}if(E||(E=t.state.tr.replace(C,D,d.doc.slice(B.start-d.from,B.endB-d.from))),d.sel){let S=z0(t,E.doc,d.sel);S&&!(JA&&tr&&t.composing&&S.empty&&(B.start!=B.endB||t.input.lastAndroidDelete<Date.now()-100)&&(S.head==C||S.head==E.mapping.map(D)-1)||ln&&S.empty&&S.head==C)&&E.setSelection(S)}x&&E.ensureMarks(x),i&&E.setMeta("composition",i),t.dispatch(E.scrollIntoView())}function z0(t,e,A){return Math.max(A.anchor,A.head)>e.content.size?null:If(t,e.resolve(A.anchor),e.resolve(A.head))}function OD(t,e){let A=t.firstChild.marks,n=e.firstChild.marks,r=A,i=n,a,s,c;for(let f=0;f<n.length;f++)r=n[f].removeFromSet(r);for(let f=0;f<A.length;f++)i=A[f].removeFromSet(i);if(r.length==1&&i.length==0)s=r[0],a="add",c=f=>f.mark(s.addToSet(f.marks));else if(r.length==0&&i.length==1)s=i[0],a="remove",c=f=>f.mark(s.removeFromSet(f.marks));else return null;let d=[];for(let f=0;f<e.childCount;f++)d.push(c(e.child(f)));if(Qe.from(d).eq(t))return{mark:s,type:a}}function ND(t,e,A,n,r){if(A-e<=r.pos-n.pos||Pf(n,!0,!1)<r.pos)return!1;let i=t.resolve(e);if(!n.parent.isTextblock){let s=i.nodeAfter;return s!=null&&A==e+s.nodeSize}if(i.parentOffset<i.parent.content.size||!i.parent.isTextblock)return!1;let a=t.resolve(Pf(i,!0,!0));return!a.parent.isTextblock||a.pos>A||Pf(a,!0,!1)<A?!1:n.parent.content.cut(n.parentOffset).eq(a.parent.content)}function Pf(t,e,A){let n=t.depth,r=e?t.end():t.pos;for(;n>0&&(e||t.indexAfter(n)==t.node(n).childCount);)n--,r++,e=!1;if(A){let i=t.node(n).maybeChild(t.indexAfter(n));for(;i&&!i.isLeaf;)i=i.firstChild,r++}return r}function LD(t,e,A,n,r){let i=t.findDiffStart(e,A);if(i==null)return null;let{a,b:s}=t.findDiffEnd(e,A+t.size,A+e.size);if(r=="end"){let c=Math.max(0,i-Math.min(a,s));n-=a+c-i}if(a<i&&t.size<e.size){let c=n<=i&&n>=a?i-n:0;i-=c,i&&i<e.size&&J0(e.textBetween(i-1,i+1))&&(i+=c?1:-1),s=i+(s-a),a=i}else if(s<i){let c=n<=i&&n>=s?i-n:0;i-=c,i&&i<t.size&&J0(t.textBetween(i-1,i+1))&&(i+=c?1:-1),a=i+(a-s),s=i}return{start:i,endA:a,endB:s}}function J0(t){if(t.length!=2)return!1;let e=t.charCodeAt(0),A=t.charCodeAt(1);return e>=56320&&e<=57343&&A>=55296&&A<=56319}class HD{constructor(e,A){this._root=null,this.focused=!1,this.trackWrites=null,this.mounted=!1,this.markCursor=null,this.cursorWrapper=null,this.lastSelectedViewDesc=void 0,this.input=new rD,this.prevDirectPlugins=[],this.pluginViews=[],this.requiresGeckoHackNode=!1,this.dragging=null,this._props=A,this.state=A.state,this.directPlugins=A.plugins||[],this.directPlugins.forEach(ey),this.dispatch=this.dispatch.bind(this),this.dom=e&&e.mount||document.createElement("div"),e&&(e.appendChild?e.appendChild(this.dom):typeof e=="function"?e(this.dom):e.mount&&(this.mounted=!0)),this.editable=j0(this),q0(this),this.nodeViews=Z0(this),this.docView=i0(this.state.doc,X0(this),Rf(this),this.dom,this),this.domObserver=new kD(this,(n,r,i,a)=>MD(this,n,r,i,a)),this.domObserver.start(),iD(this),this.updatePluginViews()}get composing(){return this.input.composing}get props(){if(this._props.state!=this.state){let e=this._props;this._props={};for(let A in e)this._props[A]=e[A];this._props.state=this.state}return this._props}update(e){e.handleDOMEvents!=this._props.handleDOMEvents&&Df(this);let A=this._props;this._props=e,e.plugins&&(e.plugins.forEach(ey),this.directPlugins=e.plugins),this.updateStateInner(e.state,A)}setProps(e){let A={};for(let n in this._props)A[n]=this._props[n];A.state=this.state;for(let n in e)A[n]=e[n];this.update(A)}updateState(e){this.updateStateInner(e,this._props)}updateStateInner(e,A){var n;let r=this.state,i=!1,a=!1;e.storedMarks&&this.composing&&(N0(this),a=!0),this.state=e;let s=r.plugins!=e.plugins||this._props.plugins!=A.plugins;if(s||this._props.plugins!=A.plugins||this._props.nodeViews!=A.nodeViews){let g=Z0(this);PD(g,this.nodeViews)&&(this.nodeViews=g,i=!0)}(s||A.handleDOMEvents!=this._props.handleDOMEvents)&&Df(this),this.editable=j0(this),q0(this);let c=Rf(this),d=X0(this),f=r.plugins!=e.plugins&&!r.doc.eq(e.doc)?"reset":e.scrollToSelection>r.scrollToSelection?"to selection":"preserve",h=i||!this.docView.matchesNode(e.doc,d,c);(h||!e.selection.eq(r.selection))&&(a=!0);let m=f=="preserve"&&a&&this.dom.style.overflowAnchor==null&&yx(this);if(a){this.domObserver.stop();let g=h&&(ln||JA)&&!this.composing&&!r.selection.empty&&!e.selection.empty&&RD(r.selection,e.selection);if(h){let B=JA?this.trackWrites=this.domSelectionRange().focusNode:null;this.composing&&(this.input.compositionNode=BD(this)),(i||!this.docView.update(e.doc,d,c,this))&&(this.docView.updateOuterDeco(d),this.docView.destroy(),this.docView=i0(e.doc,d,c,this.dom,this)),B&&!this.trackWrites&&(g=!0)}g||!(this.input.mouseDown&&this.domObserver.currentSelection.eq(this.domSelectionRange())&&$x(this))?Pr(this,g):(p0(this,e.selection),this.domObserver.setCurSelection()),this.domObserver.start()}this.updatePluginViews(r),!((n=this.dragging)===null||n===void 0)&&n.node&&!r.doc.eq(e.doc)&&this.updateDraggedNode(this.dragging,r),f=="reset"?this.dom.scrollTop=0:f=="to selection"?this.scrollToSelection():m&&Cx(m)}scrollToSelection(){let e=this.domSelectionRange().focusNode;if(!this.someProp("handleScrollToSelection",A=>A(this)))if(this.state.selection instanceof Ye){let A=this.docView.domAfterPos(this.state.selection.from);A.nodeType==1&&Ww(this,A.getBoundingClientRect(),e)}else Ww(this,this.coordsAtPos(this.state.selection.head,1),e)}destroyPluginViews(){let e;for(;e=this.pluginViews.pop();)e.destroy&&e.destroy()}updatePluginViews(e){if(!e||e.plugins!=this.state.plugins||this.directPlugins!=this.prevDirectPlugins){this.prevDirectPlugins=this.directPlugins,this.destroyPluginViews();for(let A=0;A<this.directPlugins.length;A++){let n=this.directPlugins[A];n.spec.view&&this.pluginViews.push(n.spec.view(this))}for(let A=0;A<this.state.plugins.length;A++){let n=this.state.plugins[A];n.spec.view&&this.pluginViews.push(n.spec.view(this))}}else for(let A=0;A<this.pluginViews.length;A++){let n=this.pluginViews[A];n.update&&n.update(this,e)}}updateDraggedNode(e,A){let n=e.node,r=-1;if(this.state.doc.nodeAt(n.from)==n.node)r=n.from;else{let i=n.from+(this.state.doc.content.size-A.doc.content.size);(i>0&&this.state.doc.nodeAt(i))==n.node&&(r=i)}this.dragging=new H0(e.slice,e.move,r<0?void 0:Ye.create(this.state.doc,r))}someProp(e,A){let n=this._props&&this._props[e],r;if(n!=null&&(r=A?A(n):n))return r;for(let a=0;a<this.directPlugins.length;a++){let s=this.directPlugins[a].props[e];if(s!=null&&(r=A?A(s):s))return r}let i=this.state.plugins;if(i)for(let a=0;a<i.length;a++){let s=i[a].props[e];if(s!=null&&(r=A?A(s):s))return r}}hasFocus(){if(ln){let e=this.root.activeElement;if(e==this.dom)return!0;if(!e||!this.dom.contains(e))return!1;for(;e&&this.dom!=e&&this.dom.contains(e);){if(e.contentEditable=="false")return!1;e=e.parentElement}return!0}return this.root.activeElement==this.dom}focus(){this.domObserver.stop(),this.editable&&bx(this.dom),Pr(this),this.domObserver.start()}get root(){let e=this._root;if(e==null){for(let A=this.dom.parentNode;A;A=A.parentNode)if(A.nodeType==9||A.nodeType==11&&A.host)return A.getSelection||(Object.getPrototypeOf(A).getSelection=()=>A.ownerDocument.getSelection()),this._root=A}return e||document}updateRoot(){this._root=null}posAtCoords(e){return Ux(this,e)}coordsAtPos(e,A=1){return jw(this,e,A)}domAtPos(e,A=0){return this.docView.domFromPos(e,A)}nodeDOM(e){let A=this.docView.descAt(e);return A?A.nodeDOM:null}posAtDOM(e,A,n=-1){let r=this.docView.posFromDOM(e,A,n);if(r==null)throw new RangeError("DOM position not inside the editor");return r}endOfTextblock(e,A){return Tx(this,A||this.state,e)}pasteHTML(e,A){return vs(this,"",e,!1,A||new ClipboardEvent("paste"))}pasteText(e,A){return vs(this,e,null,!0,A||new ClipboardEvent("paste"))}destroy(){this.docView&&(aD(this),this.destroyPluginViews(),this.mounted?(this.docView.update(this.state.doc,[],Rf(this),this),this.dom.textContent=""):this.dom.parentNode&&this.dom.parentNode.removeChild(this.dom),this.docView.destroy(),this.docView=null,sx())}get isDestroyed(){return this.docView==null}dispatchEvent(e){return sD(this,e)}dispatch(e){let A=this._props.dispatchTransaction;A?A.call(this,e):this.updateState(this.state.apply(e))}domSelectionRange(){let e=this.domSelection();return XA&&this.root.nodeType===11&&fx(this.dom.ownerDocument)==this.dom&&ID(this,e)||e}domSelection(){return this.root.getSelection()}}function X0(t){let e=Object.create(null);return e.class="ProseMirror",e.contenteditable=String(t.editable),t.someProp("attributes",A=>{if(typeof A=="function"&&(A=A(t.state)),A)for(let n in A)n=="class"?e.class+=" "+A[n]:n=="style"?e.style=(e.style?e.style+";":"")+A[n]:!e[n]&&n!="contenteditable"&&n!="nodeName"&&(e[n]=String(A[n]))}),e.translate||(e.translate="no"),[Tn.node(0,t.state.doc.content.size,e)]}function q0(t){if(t.markCursor){let e=document.createElement("img");e.className="ProseMirror-separator",e.setAttribute("mark-placeholder","true"),e.setAttribute("alt",""),t.cursorWrapper={dom:e,deco:Tn.widget(t.state.selection.head,e,{raw:!0,marks:t.markCursor})}}else t.cursorWrapper=null}function j0(t){return!t.someProp("editable",e=>e(t.state)===!1)}function RD(t,e){let A=Math.min(t.$anchor.sharedDepth(t.head),e.$anchor.sharedDepth(e.head));return t.$anchor.start(A)!=e.$anchor.start(A)}function Z0(t){let e=Object.create(null);function A(n){for(let r in n)Object.prototype.hasOwnProperty.call(e,r)||(e[r]=n[r])}return t.someProp("nodeViews",A),t.someProp("markViews",A),e}function PD(t,e){let A=0,n=0;for(let r in t){if(t[r]!=e[r])return!0;A++}for(let r in e)n++;return A!=n}function ey(t){if(t.spec.state||t.spec.filterTransaction||t.spec.appendTransaction)throw new RangeError("Plugins passed directly to the view must not have a state component")}for(var Fi={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},Ac={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},VD=typeof navigator<"u"&&/Mac/.test(navigator.platform),KD=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),UA=0;UA<10;UA++)Fi[48+UA]=Fi[96+UA]=String(UA);for(var UA=1;UA<=24;UA++)Fi[UA+111]="F"+UA;for(var UA=65;UA<=90;UA++)Fi[UA]=String.fromCharCode(UA+32),Ac[UA]=String.fromCharCode(UA);for(var Vf in Fi)Ac.hasOwnProperty(Vf)||(Ac[Vf]=Fi[Vf]);function $D(t){var e=VD&&t.metaKey&&t.shiftKey&&!t.ctrlKey&&!t.altKey||KD&&t.shiftKey&&t.key&&t.key.length==1||t.key=="Unidentified",A=!e&&t.key||(t.shiftKey?Ac:Fi)[t.keyCode]||t.key||"Unidentified";return A=="Esc"&&(A="Escape"),A=="Del"&&(A="Delete"),A=="Left"&&(A="ArrowLeft"),A=="Up"&&(A="ArrowUp"),A=="Right"&&(A="ArrowRight"),A=="Down"&&(A="ArrowDown"),A}const GD=typeof navigator<"u"?/Mac|iP(hone|[oa]d)/.test(navigator.platform):!1;function WD(t){let e=t.split(/-(?!$)/),A=e[e.length-1];A=="Space"&&(A=" ");let n,r,i,a;for(let s=0;s<e.length-1;s++){let c=e[s];if(/^(cmd|meta|m)$/i.test(c))a=!0;else if(/^a(lt)?$/i.test(c))n=!0;else if(/^(c|ctrl|control)$/i.test(c))r=!0;else if(/^s(hift)?$/i.test(c))i=!0;else if(/^mod$/i.test(c))GD?a=!0:r=!0;else throw new Error("Unrecognized modifier name: "+c)}return n&&(A="Alt-"+A),r&&(A="Ctrl-"+A),a&&(A="Meta-"+A),i&&(A="Shift-"+A),A}function YD(t){let e=Object.create(null);for(let A in t)e[WD(A)]=t[A];return e}function Kf(t,e,A=!0){return e.altKey&&(t="Alt-"+t),e.ctrlKey&&(t="Ctrl-"+t),e.metaKey&&(t="Meta-"+t),A&&e.shiftKey&&(t="Shift-"+t),t}function zD(t){return new sn({props:{handleKeyDown:ty(t)}})}function ty(t){let e=YD(t);return function(A,n){let r=$D(n),i,a=e[Kf(r,n)];if(a&&a(A.state,A.dispatch,A))return!0;if(r.length==1&&r!=" "){if(n.shiftKey){let s=e[Kf(r,n,!1)];if(s&&s(A.state,A.dispatch,A))return!0}if((n.shiftKey||n.altKey||n.metaKey||r.charCodeAt(0)>127)&&(i=Fi[n.keyCode])&&i!=r){let s=e[Kf(i,n)];if(s&&s(A.state,A.dispatch,A))return!0}}return!1}}const JD=(t,e)=>t.selection.empty?!1:(e&&e(t.tr.deleteSelection().scrollIntoView()),!0);function Ay(t,e){let{$cursor:A}=t.selection;return!A||(e?!e.endOfTextblock("backward",t):A.parentOffset>0)?null:A}const XD=(t,e,A)=>{let n=Ay(t,A);if(!n)return!1;let r=$f(n);if(!r){let a=n.blockRange(),s=a&&to(a);return s==null?!1:(e&&e(t.tr.lift(a,s).scrollIntoView()),!0)}let i=r.nodeBefore;if(!i.type.spec.isolating&&ay(t,r,e))return!0;if(n.parent.content.size==0&&(fo(i,"end")||Ye.isSelectable(i))){let a=Wl(t.doc,n.before(),n.after(),Te.empty);if(a&&a.slice.size<a.to-a.from){if(e){let s=t.tr.step(a);s.setSelection(fo(i,"end")?st.findFrom(s.doc.resolve(s.mapping.map(r.pos,-1)),-1):Ye.create(s.doc,r.pos-i.nodeSize)),e(s.scrollIntoView())}return!0}}return i.isAtom&&r.depth==n.depth-1?(e&&e(t.tr.delete(r.pos-i.nodeSize,r.pos).scrollIntoView()),!0):!1},qD=(t,e,A)=>{let n=Ay(t,A);if(!n)return!1;let r=$f(n);return r?ny(t,r,e):!1},jD=(t,e,A)=>{let n=ry(t,A);if(!n)return!1;let r=Gf(n);return r?ny(t,r,e):!1};function ny(t,e,A){let n=e.nodeBefore,r=n,i=e.pos-1;for(;!r.isTextblock;i--){if(r.type.spec.isolating)return!1;let f=r.lastChild;if(!f)return!1;r=f}let a=e.nodeAfter,s=a,c=e.pos+1;for(;!s.isTextblock;c++){if(s.type.spec.isolating)return!1;let f=s.firstChild;if(!f)return!1;s=f}let d=Wl(t.doc,i,c,Te.empty);if(!d||d.from!=i||d instanceof BA&&d.slice.size>=c-i)return!1;if(A){let f=t.tr.step(d);f.setSelection(it.create(f.doc,i)),A(f.scrollIntoView())}return!0}function fo(t,e,A=!1){for(let n=t;n;n=e=="start"?n.firstChild:n.lastChild){if(n.isTextblock)return!0;if(A&&n.childCount!=1)return!1}return!1}const ZD=(t,e,A)=>{let{$head:n,empty:r}=t.selection,i=n;if(!r)return!1;if(n.parent.isTextblock){if(A?!A.endOfTextblock("backward",t):n.parentOffset>0)return!1;i=$f(n)}let a=i&&i.nodeBefore;return!a||!Ye.isSelectable(a)?!1:(e&&e(t.tr.setSelection(Ye.create(t.doc,i.pos-a.nodeSize)).scrollIntoView()),!0)};function $f(t){if(!t.parent.type.spec.isolating)for(let e=t.depth-1;e>=0;e--){if(t.index(e)>0)return t.doc.resolve(t.before(e+1));if(t.node(e).type.spec.isolating)break}return null}function ry(t,e){let{$cursor:A}=t.selection;return!A||(e?!e.endOfTextblock("forward",t):A.parentOffset<A.parent.content.size)?null:A}const eM=(t,e,A)=>{let n=ry(t,A);if(!n)return!1;let r=Gf(n);if(!r)return!1;let i=r.nodeAfter;if(ay(t,r,e))return!0;if(n.parent.content.size==0&&(fo(i,"start")||Ye.isSelectable(i))){let a=Wl(t.doc,n.before(),n.after(),Te.empty);if(a&&a.slice.size<a.to-a.from){if(e){let s=t.tr.step(a);s.setSelection(fo(i,"start")?st.findFrom(s.doc.resolve(s.mapping.map(r.pos)),1):Ye.create(s.doc,s.mapping.map(r.pos))),e(s.scrollIntoView())}return!0}}return i.isAtom&&r.depth==n.depth-1?(e&&e(t.tr.delete(r.pos,r.pos+i.nodeSize).scrollIntoView()),!0):!1},tM=(t,e,A)=>{let{$head:n,empty:r}=t.selection,i=n;if(!r)return!1;if(n.parent.isTextblock){if(A?!A.endOfTextblock("forward",t):n.parentOffset<n.parent.content.size)return!1;i=Gf(n)}let a=i&&i.nodeAfter;return!a||!Ye.isSelectable(a)?!1:(e&&e(t.tr.setSelection(Ye.create(t.doc,i.pos)).scrollIntoView()),!0)};function Gf(t){if(!t.parent.type.spec.isolating)for(let e=t.depth-1;e>=0;e--){let A=t.node(e);if(t.index(e)+1<A.childCount)return t.doc.resolve(t.after(e+1));if(A.type.spec.isolating)break}return null}const AM=(t,e)=>{let A=t.selection,n=A instanceof Ye,r;if(n){if(A.node.isTextblock||!gi(t.doc,A.from))return!1;r=A.from}else if(r=Gl(t.doc,A.from,-1),r==null)return!1;if(e){let i=t.tr.join(r);n&&i.setSelection(Ye.create(i.doc,r-t.doc.resolve(r).nodeBefore.nodeSize)),e(i.scrollIntoView())}return!0},nM=(t,e)=>{let A=t.selection,n;if(A instanceof Ye){if(A.node.isTextblock||!gi(t.doc,A.to))return!1;n=A.to}else if(n=Gl(t.doc,A.to,1),n==null)return!1;return e&&e(t.tr.join(n).scrollIntoView()),!0},rM=(t,e)=>{let{$from:A,$to:n}=t.selection,r=A.blockRange(n),i=r&&to(r);return i==null?!1:(e&&e(t.tr.lift(r,i).scrollIntoView()),!0)},iM=(t,e)=>{let{$head:A,$anchor:n}=t.selection;return!A.parent.type.spec.code||!A.sameParent(n)?!1:(e&&e(t.tr.insertText(`
36
+ `).scrollIntoView()),!0)};function iy(t){for(let e=0;e<t.edgeCount;e++){let{type:A}=t.edge(e);if(A.isTextblock&&!A.hasRequiredAttrs())return A}return null}const aM=(t,e)=>{let{$head:A,$anchor:n}=t.selection;if(!A.parent.type.spec.code||!A.sameParent(n))return!1;let r=A.node(-1),i=A.indexAfter(-1),a=iy(r.contentMatchAt(i));if(!a||!r.canReplaceWith(i,i,a))return!1;if(e){let s=A.after(),c=t.tr.replaceWith(s,s,a.createAndFill());c.setSelection(st.near(c.doc.resolve(s),1)),e(c.scrollIntoView())}return!0},oM=(t,e)=>{let A=t.selection,{$from:n,$to:r}=A;if(A instanceof Zn||n.parent.inlineContent||r.parent.inlineContent)return!1;let i=iy(r.parent.contentMatchAt(r.indexAfter()));if(!i||!i.isTextblock)return!1;if(e){let a=(!n.parentOffset&&r.index()<r.parent.childCount?n:r).pos,s=t.tr.insert(a,i.createAndFill());s.setSelection(it.create(s.doc,a+1)),e(s.scrollIntoView())}return!0},sM=(t,e)=>{let{$cursor:A}=t.selection;if(!A||A.parent.content.size)return!1;if(A.depth>1&&A.after()!=A.end(-1)){let i=A.before();if(Ao(t.doc,i))return e&&e(t.tr.split(i).scrollIntoView()),!0}let n=A.blockRange(),r=n&&to(n);return r==null?!1:(e&&e(t.tr.lift(n,r).scrollIntoView()),!0)},lM=(t,e)=>{let{$from:A,to:n}=t.selection,r,i=A.sharedDepth(n);return i==0?!1:(r=A.before(i),e&&e(t.tr.setSelection(Ye.create(t.doc,r))),!0)};function cM(t,e,A){let n=e.nodeBefore,r=e.nodeAfter,i=e.index();return!n||!r||!n.type.compatibleContent(r.type)?!1:!n.content.size&&e.parent.canReplace(i-1,i)?(A&&A(t.tr.delete(e.pos-n.nodeSize,e.pos).scrollIntoView()),!0):!e.parent.canReplace(i,i+1)||!(r.isTextblock||gi(t.doc,e.pos))?!1:(A&&A(t.tr.clearIncompatible(e.pos,n.type,n.contentMatchAt(n.childCount)).join(e.pos).scrollIntoView()),!0)}function ay(t,e,A){let n=e.nodeBefore,r=e.nodeAfter,i,a;if(n.type.spec.isolating||r.type.spec.isolating)return!1;if(cM(t,e,A))return!0;let s=e.parent.canReplace(e.index(),e.index()+1);if(s&&(i=(a=n.contentMatchAt(n.childCount)).findWrapping(r.type))&&a.matchType(i[0]||r.type).validEnd){if(A){let h=e.pos+r.nodeSize,m=Qe.empty;for(let y=i.length-1;y>=0;y--)m=Qe.from(i[y].create(null,m));m=Qe.from(n.copy(m));let g=t.tr.step(new wA(e.pos-1,h,e.pos,h,new Te(m,1,0),i.length,!0)),B=h+2*i.length;gi(g.doc,B)&&g.join(B),A(g.scrollIntoView())}return!0}let c=st.findFrom(e,1),d=c&&c.$from.blockRange(c.$to),f=d&&to(d);if(f!=null&&f>=e.depth)return A&&A(t.tr.lift(d,f).scrollIntoView()),!0;if(s&&fo(r,"start",!0)&&fo(n,"end")){let h=n,m=[];for(;m.push(h),!h.isTextblock;)h=h.lastChild;let g=r,B=1;for(;!g.isTextblock;g=g.firstChild)B++;if(h.canReplace(h.childCount,h.childCount,g.content)){if(A){let y=Qe.empty;for(let Q=m.length-1;Q>=0;Q--)y=Qe.from(m[Q].copy(y));let v=t.tr.step(new wA(e.pos-m.length,e.pos+r.nodeSize,e.pos+B,e.pos+r.nodeSize-B,new Te(y,m.length,0),0,!0));A(v.scrollIntoView())}return!0}}return!1}function oy(t){return function(e,A){let n=e.selection,r=t<0?n.$from:n.$to,i=r.depth;for(;r.node(i).isInline;){if(!i)return!1;i--}return r.node(i).isTextblock?(A&&A(e.tr.setSelection(it.create(e.doc,t<0?r.start(i):r.end(i)))),!0):!1}}const uM=oy(-1),dM=oy(1);function fM(t,e=null){return function(A,n){let{$from:r,$to:i}=A.selection,a=r.blockRange(i),s=a&&df(a,t,e);return s?(n&&n(A.tr.wrap(a,s).scrollIntoView()),!0):!1}}function sy(t,e=null){return function(A,n){let r=!1;for(let i=0;i<A.selection.ranges.length&&!r;i++){let{$from:{pos:a},$to:{pos:s}}=A.selection.ranges[i];A.doc.nodesBetween(a,s,(c,d)=>{if(r)return!1;if(!(!c.isTextblock||c.hasMarkup(t,e)))if(c.type==t)r=!0;else{let f=A.doc.resolve(d),h=f.index();r=f.parent.canReplaceWith(h,h+1,t)}})}if(!r)return!1;if(n){let i=A.tr;for(let a=0;a<A.selection.ranges.length;a++){let{$from:{pos:s},$to:{pos:c}}=A.selection.ranges[a];i.setBlockType(s,c,t,e)}n(i.scrollIntoView())}return!0}}typeof navigator<"u"?/Mac|iP(hone|[oa]d)/.test(navigator.platform):typeof os<"u"&&os.platform&&os.platform()=="darwin";function hM(t,e=null){return function(A,n){let{$from:r,$to:i}=A.selection,a=r.blockRange(i),s=!1,c=a;if(!a)return!1;if(a.depth>=2&&r.node(a.depth-1).type.compatibleContent(t)&&a.startIndex==0){if(r.index(a.depth-1)==0)return!1;let f=A.doc.resolve(a.start-2);c=new Ll(f,f,a.depth),a.endIndex<a.parent.childCount&&(a=new Ll(r,A.doc.resolve(i.end(a.depth)),a.depth)),s=!0}let d=df(c,t,e,a);return d?(n&&n(pM(A.tr,a,d,s,t).scrollIntoView()),!0):!1}}function pM(t,e,A,n,r){let i=Qe.empty;for(let f=A.length-1;f>=0;f--)i=Qe.from(A[f].type.create(A[f].attrs,i));t.step(new wA(e.start-(n?2:0),e.end,e.start,e.end,new Te(i,0,0),A.length,!0));let a=0;for(let f=0;f<A.length;f++)A[f].type==r&&(a=f+1);let s=A.length-a,c=e.start+A.length-(n?2:0),d=e.parent;for(let f=e.startIndex,h=e.endIndex,m=!0;f<h;f++,m=!1)!m&&Ao(t.doc,c,s)&&(t.split(c,s),c+=2*s),c+=d.child(f).nodeSize;return t}function mM(t){return function(e,A){let{$from:n,$to:r}=e.selection,i=n.blockRange(r,a=>a.childCount>0&&a.firstChild.type==t);return i?A?n.node(i.depth-1).type==t?gM(e,A,t,i):BM(e,A,i):!0:!1}}function gM(t,e,A,n){let r=t.tr,i=n.end,a=n.$to.end(n.depth);i<a&&(r.step(new wA(i-1,a,i,a,new Te(Qe.from(A.create(null,n.parent.copy())),1,0),1,!0)),n=new Ll(r.doc.resolve(n.$from.pos),r.doc.resolve(a),n.depth));const s=to(n);if(s==null)return!1;r.lift(n,s);let c=r.mapping.map(i,-1)-1;return gi(r.doc,c)&&r.join(c),e(r.scrollIntoView()),!0}function BM(t,e,A){let n=t.tr,r=A.parent;for(let g=A.end,B=A.endIndex-1,y=A.startIndex;B>y;B--)g-=r.child(B).nodeSize,n.delete(g-1,g+1);let i=n.doc.resolve(A.start),a=i.nodeAfter;if(n.mapping.map(A.end)!=A.start+i.nodeAfter.nodeSize)return!1;let s=A.startIndex==0,c=A.endIndex==r.childCount,d=i.node(-1),f=i.index(-1);if(!d.canReplace(f+(s?0:1),f+1,a.content.append(c?Qe.empty:Qe.from(r))))return!1;let h=i.pos,m=h+a.nodeSize;return n.step(new wA(h-(s?1:0),m+(c?1:0),h+1,m-1,new Te((s?Qe.empty:Qe.from(r.copy(Qe.empty))).append(c?Qe.empty:Qe.from(r.copy(Qe.empty))),s?0:1,c?0:1),s?0:1)),e(n.scrollIntoView()),!0}function wM(t){return function(e,A){let{$from:n,$to:r}=e.selection,i=n.blockRange(r,d=>d.childCount>0&&d.firstChild.type==t);if(!i)return!1;let a=i.startIndex;if(a==0)return!1;let s=i.parent,c=s.child(a-1);if(c.type!=t)return!1;if(A){let d=c.lastChild&&c.lastChild.type==s.type,f=Qe.from(d?t.create():null),h=new Te(Qe.from(t.create(null,Qe.from(s.type.create(null,f)))),d?3:1,0),m=i.start,g=i.end;A(e.tr.step(new wA(m-(d?3:1),g,m,g,h,1,!0)).scrollIntoView())}return!0}}function nc(t){const{state:e,transaction:A}=t;let{selection:n}=A,{doc:r}=A,{storedMarks:i}=A;return{...e,apply:e.apply.bind(e),applyTransaction:e.applyTransaction.bind(e),plugins:e.plugins,schema:e.schema,reconfigure:e.reconfigure.bind(e),toJSON:e.toJSON.bind(e),get storedMarks(){return i},get selection(){return n},get doc(){return r},get tr(){return n=A.selection,r=A.doc,i=A.storedMarks,A}}}class rc{constructor(e){this.editor=e.editor,this.rawCommands=this.editor.extensionManager.commands,this.customState=e.state}get hasCustomState(){return!!this.customState}get state(){return this.customState||this.editor.state}get commands(){const{rawCommands:e,editor:A,state:n}=this,{view:r}=A,{tr:i}=n,a=this.buildProps(i);return Object.fromEntries(Object.entries(e).map(([s,c])=>[s,(...f)=>{const h=c(...f)(a);return!i.getMeta("preventDispatch")&&!this.hasCustomState&&r.dispatch(i),h}]))}get chain(){return()=>this.createChain()}get can(){return()=>this.createCan()}createChain(e,A=!0){const{rawCommands:n,editor:r,state:i}=this,{view:a}=r,s=[],c=!!e,d=e||i.tr,f=()=>(!c&&A&&!d.getMeta("preventDispatch")&&!this.hasCustomState&&a.dispatch(d),s.every(m=>m===!0)),h={...Object.fromEntries(Object.entries(n).map(([m,g])=>[m,(...y)=>{const v=this.buildProps(d,A),Q=g(...y)(v);return s.push(Q),h}])),run:f};return h}createCan(e){const{rawCommands:A,state:n}=this,r=!1,i=e||n.tr,a=this.buildProps(i,r);return{...Object.fromEntries(Object.entries(A).map(([c,d])=>[c,(...f)=>d(...f)({...a,dispatch:void 0})])),chain:()=>this.createChain(i,r)}}buildProps(e,A=!0){const{rawCommands:n,editor:r,state:i}=this,{view:a}=r,s={tr:e,editor:r,view:a,state:nc({state:i,transaction:e}),dispatch:A?()=>{}:void 0,chain:()=>this.createChain(e,A),can:()=>this.createCan(e),get commands(){return Object.fromEntries(Object.entries(n).map(([c,d])=>[c,(...f)=>d(...f)(s)]))}};return s}}class yM{constructor(){this.callbacks={}}on(e,A){return this.callbacks[e]||(this.callbacks[e]=[]),this.callbacks[e].push(A),this}emit(e,...A){const n=this.callbacks[e];return n&&n.forEach(r=>r.apply(this,A)),this}off(e,A){const n=this.callbacks[e];return n&&(A?this.callbacks[e]=n.filter(r=>r!==A):delete this.callbacks[e]),this}removeAllListeners(){this.callbacks={}}}function Re(t,e,A){return t.config[e]===void 0&&t.parent?Re(t.parent,e,A):typeof t.config[e]=="function"?t.config[e].bind({...A,parent:t.parent?Re(t.parent,e,A):null}):t.config[e]}function ic(t){const e=t.filter(r=>r.type==="extension"),A=t.filter(r=>r.type==="node"),n=t.filter(r=>r.type==="mark");return{baseExtensions:e,nodeExtensions:A,markExtensions:n}}function ly(t){const e=[],{nodeExtensions:A,markExtensions:n}=ic(t),r=[...A,...n],i={default:null,rendered:!0,renderHTML:null,parseHTML:null,keepOnSplit:!0,isRequired:!1};return t.forEach(a=>{const s={name:a.name,options:a.options,storage:a.storage},c=Re(a,"addGlobalAttributes",s);if(!c)return;c().forEach(f=>{f.types.forEach(h=>{Object.entries(f.attributes).forEach(([m,g])=>{e.push({type:h,name:m,attribute:{...i,...g}})})})})}),r.forEach(a=>{const s={name:a.name,options:a.options,storage:a.storage},c=Re(a,"addAttributes",s);if(!c)return;const d=c();Object.entries(d).forEach(([f,h])=>{const m={...i,...h};typeof(m==null?void 0:m.default)=="function"&&(m.default=m.default()),m!=null&&m.isRequired&&(m==null?void 0:m.default)===void 0&&delete m.default,e.push({type:a.name,name:f,attribute:m})})}),e}function yA(t,e){if(typeof t=="string"){if(!e.nodes[t])throw Error(`There is no node type named '${t}'. Maybe you forgot to add the extension?`);return e.nodes[t]}return t}function sA(...t){return t.filter(e=>!!e).reduce((e,A)=>{const n={...e};return Object.entries(A).forEach(([r,i])=>{if(!n[r]){n[r]=i;return}if(r==="class"){const s=i?i.split(" "):[],c=n[r]?n[r].split(" "):[],d=s.filter(f=>!c.includes(f));n[r]=[...c,...d].join(" ")}else r==="style"?n[r]=[n[r],i].join("; "):n[r]=i}),n},{})}function Wf(t,e){return e.filter(A=>A.attribute.rendered).map(A=>A.attribute.renderHTML?A.attribute.renderHTML(t.attrs)||{}:{[A.name]:t.attrs[A.name]}).reduce((A,n)=>sA(A,n),{})}function cy(t){return typeof t=="function"}function lt(t,e=void 0,...A){return cy(t)?e?t.bind(e)(...A):t(...A):t}function CM(t={}){return Object.keys(t).length===0&&t.constructor===Object}function bM(t){return typeof t!="string"?t:t.match(/^[+-]?(?:\d*\.)?\d+$/)?Number(t):t==="true"?!0:t==="false"?!1:t}function uy(t,e){return t.style?t:{...t,getAttrs:A=>{const n=t.getAttrs?t.getAttrs(A):t.attrs;if(n===!1)return!1;const r=e.reduce((i,a)=>{const s=a.attribute.parseHTML?a.attribute.parseHTML(A):bM(A.getAttribute(a.name));return s==null?i:{...i,[a.name]:s}},{});return{...n,...r}}}}function dy(t){return Object.fromEntries(Object.entries(t).filter(([e,A])=>e==="attrs"&&CM(A)?!1:A!=null))}function vM(t,e){var A;const n=ly(t),{nodeExtensions:r,markExtensions:i}=ic(t),a=(A=r.find(d=>Re(d,"topNode")))===null||A===void 0?void 0:A.name,s=Object.fromEntries(r.map(d=>{const f=n.filter(Q=>Q.type===d.name),h={name:d.name,options:d.options,storage:d.storage,editor:e},m=t.reduce((Q,k)=>{const F=Re(k,"extendNodeSchema",h);return{...Q,...F?F(d):{}}},{}),g=dy({...m,content:lt(Re(d,"content",h)),marks:lt(Re(d,"marks",h)),group:lt(Re(d,"group",h)),inline:lt(Re(d,"inline",h)),atom:lt(Re(d,"atom",h)),selectable:lt(Re(d,"selectable",h)),draggable:lt(Re(d,"draggable",h)),code:lt(Re(d,"code",h)),defining:lt(Re(d,"defining",h)),isolating:lt(Re(d,"isolating",h)),attrs:Object.fromEntries(f.map(Q=>{var k;return[Q.name,{default:(k=Q==null?void 0:Q.attribute)===null||k===void 0?void 0:k.default}]}))}),B=lt(Re(d,"parseHTML",h));B&&(g.parseDOM=B.map(Q=>uy(Q,f)));const y=Re(d,"renderHTML",h);y&&(g.toDOM=Q=>y({node:Q,HTMLAttributes:Wf(Q,f)}));const v=Re(d,"renderText",h);return v&&(g.toText=v),[d.name,g]})),c=Object.fromEntries(i.map(d=>{const f=n.filter(v=>v.type===d.name),h={name:d.name,options:d.options,storage:d.storage,editor:e},m=t.reduce((v,Q)=>{const k=Re(Q,"extendMarkSchema",h);return{...v,...k?k(d):{}}},{}),g=dy({...m,inclusive:lt(Re(d,"inclusive",h)),excludes:lt(Re(d,"excludes",h)),group:lt(Re(d,"group",h)),spanning:lt(Re(d,"spanning",h)),code:lt(Re(d,"code",h)),attrs:Object.fromEntries(f.map(v=>{var Q;return[v.name,{default:(Q=v==null?void 0:v.attribute)===null||Q===void 0?void 0:Q.default}]}))}),B=lt(Re(d,"parseHTML",h));B&&(g.parseDOM=B.map(v=>uy(v,f)));const y=Re(d,"renderHTML",h);return y&&(g.toDOM=v=>y({mark:v,HTMLAttributes:Wf(v,f)})),[d.name,g]}));return new FT({topNode:a,nodes:s,marks:c})}function Yf(t,e){return e.nodes[t]||e.marks[t]||null}function fy(t,e){return Array.isArray(e)?e.some(A=>(typeof A=="string"?A:A.name)===t.name):e}const EM=(t,e=500)=>{let A="";const n=t.parentOffset;return t.parent.nodesBetween(Math.max(0,n-e),n,(r,i,a,s)=>{var c,d;const f=((d=(c=r.type.spec).toText)===null||d===void 0?void 0:d.call(c,{node:r,pos:i,parent:a,index:s}))||r.textContent||"%leaf%";A+=f.slice(0,Math.max(0,n-i))}),A};function zf(t){return Object.prototype.toString.call(t)==="[object RegExp]"}class ac{constructor(e){this.find=e.find,this.handler=e.handler}}const QM=(t,e)=>{if(zf(e))return e.exec(t);const A=e(t);if(!A)return null;const n=[A.text];return n.index=A.index,n.input=t,n.data=A.data,A.replaceWith&&(A.text.includes(A.replaceWith)||console.warn('[tiptap warn]: "inputRuleMatch.replaceWith" must be part of "inputRuleMatch.text".'),n.push(A.replaceWith)),n};function oc(t){var e;const{editor:A,from:n,to:r,text:i,rules:a,plugin:s}=t,{view:c}=A;if(c.composing)return!1;const d=c.state.doc.resolve(n);if(d.parent.type.spec.code||!((e=d.nodeBefore||d.nodeAfter)===null||e===void 0)&&e.marks.find(m=>m.type.spec.code))return!1;let f=!1;const h=EM(d)+i;return a.forEach(m=>{if(f)return;const g=QM(h,m.find);if(!g)return;const B=c.state.tr,y=nc({state:c.state,transaction:B}),v={from:n-(g[0].length-i.length),to:r},{commands:Q,chain:k,can:F}=new rc({editor:A,state:y});m.handler({state:y,range:v,match:g,commands:Q,chain:k,can:F})===null||!B.steps.length||(B.setMeta(s,{transform:B,from:n,to:r,text:i}),c.dispatch(B),f=!0)}),f}function FM(t){const{editor:e,rules:A}=t,n=new sn({state:{init(){return null},apply(r,i){const a=r.getMeta(n);if(a)return a;const s=r.getMeta("applyInputRules");return!!s&&setTimeout(()=>{const{from:d,text:f}=s,h=d+f.length;oc({editor:e,from:d,to:h,text:f,rules:A,plugin:n})}),r.selectionSet||r.docChanged?null:i}},props:{handleTextInput(r,i,a,s){return oc({editor:e,from:i,to:a,text:s,rules:A,plugin:n})},handleDOMEvents:{compositionend:r=>(setTimeout(()=>{const{$cursor:i}=r.state.selection;i&&oc({editor:e,from:i.pos,to:i.pos,text:"",rules:A,plugin:n})}),!1)},handleKeyDown(r,i){if(i.key!=="Enter")return!1;const{$cursor:a}=r.state.selection;return a?oc({editor:e,from:a.pos,to:a.pos,text:`
37
+ `,rules:A,plugin:n}):!1}},isInputRules:!0});return n}function UM(t){return typeof t=="number"}class kM{constructor(e){this.find=e.find,this.handler=e.handler}}const _M=(t,e,A)=>{if(zf(e))return[...t.matchAll(e)];const n=e(t,A);return n?n.map(r=>{const i=[r.text];return i.index=r.index,i.input=t,i.data=r.data,r.replaceWith&&(r.text.includes(r.replaceWith)||console.warn('[tiptap warn]: "pasteRuleMatch.replaceWith" must be part of "pasteRuleMatch.text".'),i.push(r.replaceWith)),i}):[]};function IM(t){const{editor:e,state:A,from:n,to:r,rule:i,pasteEvent:a,dropEvent:s}=t,{commands:c,chain:d,can:f}=new rc({editor:e,state:A}),h=[];return A.doc.nodesBetween(n,r,(g,B)=>{if(!g.isTextblock||g.type.spec.code)return;const y=Math.max(n,B),v=Math.min(r,B+g.content.size),Q=g.textBetween(y-B,v-B,void 0,"");_M(Q,i.find,a).forEach(F=>{if(F.index===void 0)return;const C=y+F.index+1,D=C+F[0].length,E={from:A.tr.mapping.map(C),to:A.tr.mapping.map(D)},x=i.handler({state:A,range:E,match:F,commands:c,chain:d,can:f,pasteEvent:a,dropEvent:s});h.push(x)})}),h.every(g=>g!==null)}const SM=t=>{var e;const A=new ClipboardEvent("paste",{clipboardData:new DataTransfer});return(e=A.clipboardData)===null||e===void 0||e.setData("text/html",t),A};function TM(t){const{editor:e,rules:A}=t;let n=null,r=!1,i=!1,a=typeof ClipboardEvent<"u"?new ClipboardEvent("paste"):null,s=typeof DragEvent<"u"?new DragEvent("drop"):null;const c=({state:f,from:h,to:m,rule:g,pasteEvt:B})=>{const y=f.tr,v=nc({state:f,transaction:y});if(!(!IM({editor:e,state:v,from:Math.max(h-1,0),to:m.b-1,rule:g,pasteEvent:B,dropEvent:s})||!y.steps.length))return s=typeof DragEvent<"u"?new DragEvent("drop"):null,a=typeof ClipboardEvent<"u"?new ClipboardEvent("paste"):null,y};return A.map(f=>new sn({view(h){const m=g=>{var B;n=!((B=h.dom.parentElement)===null||B===void 0)&&B.contains(g.target)?h.dom.parentElement:null};return window.addEventListener("dragstart",m),{destroy(){window.removeEventListener("dragstart",m)}}},props:{handleDOMEvents:{drop:(h,m)=>(i=n===h.dom.parentElement,s=m,!1),paste:(h,m)=>{var g;const B=(g=m.clipboardData)===null||g===void 0?void 0:g.getData("text/html");return a=m,r=!!(B!=null&&B.includes("data-pm-slice")),!1}}},appendTransaction:(h,m,g)=>{const B=h[0],y=B.getMeta("uiEvent")==="paste"&&!r,v=B.getMeta("uiEvent")==="drop"&&!i,Q=B.getMeta("applyPasteRules"),k=!!Q;if(!y&&!v&&!k)return;if(k){const{from:D,text:E}=Q,x=D+E.length,O=SM(E);return c({rule:f,state:g,from:D,to:{b:x},pasteEvt:O})}const F=m.doc.content.findDiffStart(g.doc.content),C=m.doc.content.findDiffEnd(g.doc.content);if(!(!UM(F)||!C||F===C.b))return c({rule:f,state:g,from:F,to:C,pasteEvt:a})}}))}function xM(t){const e=t.filter((A,n)=>t.indexOf(A)!==n);return[...new Set(e)]}class ho{constructor(e,A){this.splittableMarks=[],this.editor=A,this.extensions=ho.resolve(e),this.schema=vM(this.extensions,A),this.setupExtensions()}static resolve(e){const A=ho.sort(ho.flatten(e)),n=xM(A.map(r=>r.name));return n.length&&console.warn(`[tiptap warn]: Duplicate extension names found: [${n.map(r=>`'${r}'`).join(", ")}]. This can lead to issues.`),A}static flatten(e){return e.map(A=>{const n={name:A.name,options:A.options,storage:A.storage},r=Re(A,"addExtensions",n);return r?[A,...this.flatten(r())]:A}).flat(10)}static sort(e){return e.sort((n,r)=>{const i=Re(n,"priority")||100,a=Re(r,"priority")||100;return i>a?-1:i<a?1:0})}get commands(){return this.extensions.reduce((e,A)=>{const n={name:A.name,options:A.options,storage:A.storage,editor:this.editor,type:Yf(A.name,this.schema)},r=Re(A,"addCommands",n);return r?{...e,...r()}:e},{})}get plugins(){const{editor:e}=this,A=ho.sort([...this.extensions].reverse()),n=[],r=[],i=A.map(a=>{const s={name:a.name,options:a.options,storage:a.storage,editor:e,type:Yf(a.name,this.schema)},c=[],d=Re(a,"addKeyboardShortcuts",s);let f={};if(a.type==="mark"&&a.config.exitable&&(f.ArrowRight=()=>Ar.handleExit({editor:e,mark:a})),d){const y=Object.fromEntries(Object.entries(d()).map(([v,Q])=>[v,()=>Q({editor:e})]));f={...f,...y}}const h=zD(f);c.push(h);const m=Re(a,"addInputRules",s);fy(a,e.options.enableInputRules)&&m&&n.push(...m());const g=Re(a,"addPasteRules",s);fy(a,e.options.enablePasteRules)&&g&&r.push(...g());const B=Re(a,"addProseMirrorPlugins",s);if(B){const y=B();c.push(...y)}return c}).flat();return[FM({editor:e,rules:n}),...TM({editor:e,rules:r}),...i]}get attributes(){return ly(this.extensions)}get nodeViews(){const{editor:e}=this,{nodeExtensions:A}=ic(this.extensions);return Object.fromEntries(A.filter(n=>!!Re(n,"addNodeView")).map(n=>{const r=this.attributes.filter(c=>c.type===n.name),i={name:n.name,options:n.options,storage:n.storage,editor:e,type:yA(n.name,this.schema)},a=Re(n,"addNodeView",i);if(!a)return[];const s=(c,d,f,h)=>{const m=Wf(c,r);return a()({editor:e,node:c,getPos:f,decorations:h,HTMLAttributes:m,extension:n})};return[n.name,s]}))}setupExtensions(){this.extensions.forEach(e=>{var A;this.editor.extensionStorage[e.name]=e.storage;const n={name:e.name,options:e.options,storage:e.storage,editor:this.editor,type:Yf(e.name,this.schema)};e.type==="mark"&&(!((A=lt(Re(e,"keepOnSplit",n)))!==null&&A!==void 0)||A)&&this.splittableMarks.push(e.name);const r=Re(e,"onBeforeCreate",n),i=Re(e,"onCreate",n),a=Re(e,"onUpdate",n),s=Re(e,"onSelectionUpdate",n),c=Re(e,"onTransaction",n),d=Re(e,"onFocus",n),f=Re(e,"onBlur",n),h=Re(e,"onDestroy",n);r&&this.editor.on("beforeCreate",r),i&&this.editor.on("create",i),a&&this.editor.on("update",a),s&&this.editor.on("selectionUpdate",s),c&&this.editor.on("transaction",c),d&&this.editor.on("focus",d),f&&this.editor.on("blur",f),h&&this.editor.on("destroy",h)})}}function DM(t){return Object.prototype.toString.call(t).slice(8,-1)}function Jf(t){return DM(t)!=="Object"?!1:t.constructor===Object&&Object.getPrototypeOf(t)===Object.prototype}function sc(t,e){const A={...t};return Jf(t)&&Jf(e)&&Object.keys(e).forEach(n=>{Jf(e[n])?n in t?A[n]=sc(t[n],e[n]):Object.assign(A,{[n]:e[n]}):Object.assign(A,{[n]:e[n]})}),A}class LA{constructor(e={}){this.type="extension",this.name="extension",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...e},this.name=this.config.name,e.defaultOptions&&Object.keys(e.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=lt(Re(this,"addOptions",{name:this.name}))),this.storage=lt(Re(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(e={}){return new LA(e)}configure(e={}){const A=this.extend();return A.parent=this.parent,A.options=sc(this.options,e),A.storage=lt(Re(A,"addStorage",{name:A.name,options:A.options})),A}extend(e={}){const A=new LA({...this.config,...e});return A.parent=this,this.child=A,A.name=e.name?e.name:A.parent.name,e.defaultOptions&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${A.name}".`),A.options=lt(Re(A,"addOptions",{name:A.name})),A.storage=lt(Re(A,"addStorage",{name:A.name,options:A.options})),A}}function hy(t,e,A){const{from:n,to:r}=e,{blockSeparator:i=`
38
+
39
+ `,textSerializers:a={}}=A||{};let s="";return t.nodesBetween(n,r,(c,d,f,h)=>{var m;c.isBlock&&d>n&&(s+=i);const g=a==null?void 0:a[c.type.name];if(g)return f&&(s+=g({node:c,pos:d,parent:f,index:h,range:e})),!1;c.isText&&(s+=(m=c==null?void 0:c.text)===null||m===void 0?void 0:m.slice(Math.max(n,d)-d,r-d))}),s}function py(t){return Object.fromEntries(Object.entries(t.nodes).filter(([,e])=>e.spec.toText).map(([e,A])=>[e,A.spec.toText]))}const MM=LA.create({name:"clipboardTextSerializer",addOptions(){return{blockSeparator:void 0}},addProseMirrorPlugins(){return[new sn({key:new gr("clipboardTextSerializer"),props:{clipboardTextSerializer:()=>{const{editor:t}=this,{state:e,schema:A}=t,{doc:n,selection:r}=e,{ranges:i}=r,a=Math.min(...i.map(f=>f.$from.pos)),s=Math.max(...i.map(f=>f.$to.pos)),c=py(A);return hy(n,{from:a,to:s},{...this.options.blockSeparator!==void 0?{blockSeparator:this.options.blockSeparator}:{},textSerializers:c})}}})]}}),OM=()=>({editor:t,view:e})=>(requestAnimationFrame(()=>{var A;t.isDestroyed||(e.dom.blur(),(A=window==null?void 0:window.getSelection())===null||A===void 0||A.removeAllRanges())}),!0),NM=(t=!1)=>({commands:e})=>e.setContent("",t),LM=()=>({state:t,tr:e,dispatch:A})=>{const{selection:n}=e,{ranges:r}=n;return A&&r.forEach(({$from:i,$to:a})=>{t.doc.nodesBetween(i.pos,a.pos,(s,c)=>{if(s.type.isText)return;const{doc:d,mapping:f}=e,h=d.resolve(f.map(c)),m=d.resolve(f.map(c+s.nodeSize)),g=h.blockRange(m);if(!g)return;const B=to(g);if(s.type.isTextblock){const{defaultType:y}=h.parent.contentMatchAt(h.index());e.setNodeMarkup(g.start,y)}(B||B===0)&&e.lift(g,B)})}),!0},HM=t=>e=>t(e),RM=()=>({state:t,dispatch:e})=>oM(t,e),PM=(t,e)=>({editor:A,tr:n})=>{const{state:r}=A,i=r.doc.slice(t.from,t.to);n.deleteRange(t.from,t.to);const a=n.mapping.map(e);return n.insert(a,i.content),n.setSelection(new it(n.doc.resolve(a-1))),!0},VM=()=>({tr:t,dispatch:e})=>{const{selection:A}=t,n=A.$anchor.node();if(n.content.size>0)return!1;const r=t.selection.$anchor;for(let i=r.depth;i>0;i-=1)if(r.node(i).type===n.type){if(e){const s=r.before(i),c=r.after(i);t.delete(s,c).scrollIntoView()}return!0}return!1},KM=t=>({tr:e,state:A,dispatch:n})=>{const r=yA(t,A.schema),i=e.selection.$anchor;for(let a=i.depth;a>0;a-=1)if(i.node(a).type===r){if(n){const c=i.before(a),d=i.after(a);e.delete(c,d).scrollIntoView()}return!0}return!1},$M=t=>({tr:e,dispatch:A})=>{const{from:n,to:r}=t;return A&&e.delete(n,r),!0},GM=()=>({state:t,dispatch:e})=>JD(t,e),WM=()=>({commands:t})=>t.keyboardShortcut("Enter"),YM=()=>({state:t,dispatch:e})=>aM(t,e);function lc(t,e,A={strict:!0}){const n=Object.keys(e);return n.length?n.every(r=>A.strict?e[r]===t[r]:zf(e[r])?e[r].test(t[r]):e[r]===t[r]):!0}function Xf(t,e,A={}){return t.find(n=>n.type===e&&lc(n.attrs,A))}function zM(t,e,A={}){return!!Xf(t,e,A)}function qf(t,e,A={}){if(!t||!e)return;let n=t.parent.childAfter(t.parentOffset);if(t.parentOffset===n.offset&&n.offset!==0&&(n=t.parent.childBefore(t.parentOffset)),!n.node)return;const r=Xf([...n.node.marks],e,A);if(!r)return;let i=n.index,a=t.start()+n.offset,s=i+1,c=a+n.node.nodeSize;for(Xf([...n.node.marks],e,A);i>0&&r.isInSet(t.parent.child(i-1).marks);)i-=1,a-=t.parent.child(i).nodeSize;for(;s<t.parent.childCount&&zM([...t.parent.child(s).marks],e,A);)c+=t.parent.child(s).nodeSize,s+=1;return{from:a,to:c}}function Ui(t,e){if(typeof t=="string"){if(!e.marks[t])throw Error(`There is no mark type named '${t}'. Maybe you forgot to add the extension?`);return e.marks[t]}return t}const JM=(t,e={})=>({tr:A,state:n,dispatch:r})=>{const i=Ui(t,n.schema),{doc:a,selection:s}=A,{$from:c,from:d,to:f}=s;if(r){const h=qf(c,i,e);if(h&&h.from<=d&&h.to>=f){const m=it.create(a,h.from,h.to);A.setSelection(m)}}return!0},XM=t=>e=>{const A=typeof t=="function"?t(e):t;for(let n=0;n<A.length;n+=1)if(A[n](e))return!0;return!1};function jf(t){return t instanceof it}function Vr(t=0,e=0,A=0){return Math.min(Math.max(t,e),A)}function my(t,e=null){if(!e)return null;const A=st.atStart(t),n=st.atEnd(t);if(e==="start"||e===!0)return A;if(e==="end")return n;const r=A.from,i=n.to;return e==="all"?it.create(t,Vr(0,r,i),Vr(t.content.size,r,i)):it.create(t,Vr(e,r,i),Vr(e,r,i))}function Zf(){return["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document}const qM=(t=null,e={})=>({editor:A,view:n,tr:r,dispatch:i})=>{e={scrollIntoView:!0,...e};const a=()=>{Zf()&&n.dom.focus(),requestAnimationFrame(()=>{A.isDestroyed||(n.focus(),e!=null&&e.scrollIntoView&&A.commands.scrollIntoView())})};if(n.hasFocus()&&t===null||t===!1)return!0;if(i&&t===null&&!jf(A.state.selection))return a(),!0;const s=my(r.doc,t)||A.state.selection,c=A.state.selection.eq(s);return i&&(c||r.setSelection(s),c&&r.storedMarks&&r.setStoredMarks(r.storedMarks),a()),!0},jM=(t,e)=>A=>t.every((n,r)=>e(n,{...A,index:r})),ZM=(t,e)=>({tr:A,commands:n})=>n.insertContentAt({from:A.selection.from,to:A.selection.to},t,e),gy=t=>{const e=t.childNodes;for(let A=e.length-1;A>=0;A-=1){const n=e[A];n.nodeType===3&&n.nodeValue&&/^(\n\s\s|\n)$/.test(n.nodeValue)?t.removeChild(n):n.nodeType===1&&gy(n)}return t};function By(t){const e=`<body>${t}</body>`,A=new window.DOMParser().parseFromString(e,"text/html").body;return gy(A)}function cc(t,e,A){A={slice:!0,parseOptions:{},...A};const n=typeof t=="object"&&t!==null,r=typeof t=="string";if(n)try{return Array.isArray(t)&&t.length>0?Qe.fromArray(t.map(a=>e.nodeFromJSON(a))):e.nodeFromJSON(t)}catch(i){return console.warn("[tiptap warn]: Invalid content.","Passed value:",t,"Error:",i),cc("",e,A)}if(r){const i=ja.fromSchema(e);return A.slice?i.parseSlice(By(t),A.parseOptions).content:i.parse(By(t),A.parseOptions)}return cc("",e,A)}function eO(t,e,A){const n=t.steps.length-1;if(n<e)return;const r=t.steps[n];if(!(r instanceof BA||r instanceof wA))return;const i=t.mapping.maps[n];let a=0;i.forEach((s,c,d,f)=>{a===0&&(a=f)}),t.setSelection(st.near(t.doc.resolve(a),A))}const tO=t=>t.toString().startsWith("<"),AO=(t,e,A)=>({tr:n,dispatch:r,editor:i})=>{if(r){A={parseOptions:{},updateSelection:!0,applyInputRules:!1,applyPasteRules:!1,...A};const a=cc(e,i.schema,{parseOptions:{preserveWhitespace:"full",...A.parseOptions}});if(a.toString()==="<>")return!0;let{from:s,to:c}=typeof t=="number"?{from:t,to:t}:{from:t.from,to:t.to},d=!0,f=!0;if((tO(a)?a:[a]).forEach(g=>{g.check(),d=d?g.isText&&g.marks.length===0:!1,f=f?g.isBlock:!1}),s===c&&f){const{parent:g}=n.doc.resolve(s);g.isTextblock&&!g.type.spec.code&&!g.childCount&&(s-=1,c+=1)}let m;d?(Array.isArray(e)?m=e.map(g=>g.text||"").join(""):typeof e=="object"&&e&&e.text?m=e.text:m=e,n.insertText(m,s,c)):(m=a,n.replaceWith(s,c,m)),A.updateSelection&&eO(n,n.steps.length-1,-1),A.applyInputRules&&n.setMeta("applyInputRules",{from:s,text:m}),A.applyPasteRules&&n.setMeta("applyPasteRules",{from:s,text:m})}return!0},nO=()=>({state:t,dispatch:e})=>AM(t,e),rO=()=>({state:t,dispatch:e})=>nM(t,e),iO=()=>({state:t,dispatch:e})=>XD(t,e),aO=()=>({state:t,dispatch:e})=>eM(t,e),oO=()=>({tr:t,state:e,dispatch:A})=>{try{const n=Gl(e.doc,e.selection.$from.pos,-1);return n==null?!1:(t.join(n,2),A&&A(t),!0)}catch{return!1}},sO=()=>({state:t,dispatch:e,tr:A})=>{try{const n=Gl(t.doc,t.selection.$from.pos,1);return n==null?!1:(A.join(n,2),e&&e(A),!0)}catch{return!1}},lO=()=>({state:t,dispatch:e})=>qD(t,e),cO=()=>({state:t,dispatch:e})=>jD(t,e);function wy(){return typeof navigator<"u"?/Mac/.test(navigator.platform):!1}function uO(t){const e=t.split(/-(?!$)/);let A=e[e.length-1];A==="Space"&&(A=" ");let n,r,i,a;for(let s=0;s<e.length-1;s+=1){const c=e[s];if(/^(cmd|meta|m)$/i.test(c))a=!0;else if(/^a(lt)?$/i.test(c))n=!0;else if(/^(c|ctrl|control)$/i.test(c))r=!0;else if(/^s(hift)?$/i.test(c))i=!0;else if(/^mod$/i.test(c))Zf()||wy()?a=!0:r=!0;else throw new Error(`Unrecognized modifier name: ${c}`)}return n&&(A=`Alt-${A}`),r&&(A=`Ctrl-${A}`),a&&(A=`Meta-${A}`),i&&(A=`Shift-${A}`),A}const dO=t=>({editor:e,view:A,tr:n,dispatch:r})=>{const i=uO(t).split(/-(?!$)/),a=i.find(d=>!["Alt","Ctrl","Meta","Shift"].includes(d)),s=new KeyboardEvent("keydown",{key:a==="Space"?" ":a,altKey:i.includes("Alt"),ctrlKey:i.includes("Ctrl"),metaKey:i.includes("Meta"),shiftKey:i.includes("Shift"),bubbles:!0,cancelable:!0}),c=e.captureTransaction(()=>{A.someProp("handleKeyDown",d=>d(A,s))});return c==null||c.steps.forEach(d=>{const f=d.map(n.mapping);f&&r&&n.maybeStep(f)}),!0};function Qs(t,e,A={}){const{from:n,to:r,empty:i}=t.selection,a=e?yA(e,t.schema):null,s=[];t.doc.nodesBetween(n,r,(h,m)=>{if(h.isText)return;const g=Math.max(n,m),B=Math.min(r,m+h.nodeSize);s.push({node:h,from:g,to:B})});const c=r-n,d=s.filter(h=>a?a.name===h.node.type.name:!0).filter(h=>lc(h.node.attrs,A,{strict:!1}));return i?!!d.length:d.reduce((h,m)=>h+m.to-m.from,0)>=c}const fO=(t,e={})=>({state:A,dispatch:n})=>{const r=yA(t,A.schema);return Qs(A,r,e)?rM(A,n):!1},hO=()=>({state:t,dispatch:e})=>sM(t,e),pO=t=>({state:e,dispatch:A})=>{const n=yA(t,e.schema);return mM(n)(e,A)},mO=()=>({state:t,dispatch:e})=>iM(t,e);function uc(t,e){return e.nodes[t]?"node":e.marks[t]?"mark":null}function yy(t,e){const A=typeof e=="string"?[e]:e;return Object.keys(t).reduce((n,r)=>(A.includes(r)||(n[r]=t[r]),n),{})}const gO=(t,e)=>({tr:A,state:n,dispatch:r})=>{let i=null,a=null;const s=uc(typeof t=="string"?t:t.name,n.schema);return s?(s==="node"&&(i=yA(t,n.schema)),s==="mark"&&(a=Ui(t,n.schema)),r&&A.selection.ranges.forEach(c=>{n.doc.nodesBetween(c.$from.pos,c.$to.pos,(d,f)=>{i&&i===d.type&&A.setNodeMarkup(f,void 0,yy(d.attrs,e)),a&&d.marks.length&&d.marks.forEach(h=>{a===h.type&&A.addMark(f,f+d.nodeSize,a.create(yy(h.attrs,e)))})})}),!0):!1},BO=()=>({tr:t,dispatch:e})=>(e&&t.scrollIntoView(),!0),wO=()=>({tr:t,commands:e})=>e.setTextSelection({from:0,to:t.doc.content.size}),yO=()=>({state:t,dispatch:e})=>ZD(t,e),CO=()=>({state:t,dispatch:e})=>tM(t,e),bO=()=>({state:t,dispatch:e})=>lM(t,e),vO=()=>({state:t,dispatch:e})=>dM(t,e),EO=()=>({state:t,dispatch:e})=>uM(t,e);function Cy(t,e,A={}){return cc(t,e,{slice:!1,parseOptions:A})}const QO=(t,e=!1,A={})=>({tr:n,editor:r,dispatch:i})=>{const{doc:a}=n,s=Cy(t,r.schema,A);return i&&n.replaceWith(0,a.content.size,s).setMeta("preventUpdate",!e),!0};function dc(t,e){const A=Ui(e,t.schema),{from:n,to:r,empty:i}=t.selection,a=[];i?(t.storedMarks&&a.push(...t.storedMarks),a.push(...t.selection.$head.marks())):t.doc.nodesBetween(n,r,c=>{a.push(...c.marks)});const s=a.find(c=>c.type.name===A.name);return s?{...s.attrs}:{}}function FO(t){for(let e=0;e<t.edgeCount;e+=1){const{type:A}=t.edge(e);if(A.isTextblock&&!A.hasRequiredAttrs())return A}return null}function UO(t,e){for(let A=t.depth;A>0;A-=1){const n=t.node(A);if(e(n))return{pos:A>0?t.before(A):0,start:t.start(A),depth:A,node:n}}}function eh(t){return e=>UO(e.$from,t)}function kO(t,e){const A=pr.fromSchema(e).serializeFragment(t),r=document.implementation.createHTMLDocument().createElement("div");return r.appendChild(A),r.innerHTML}function _O(t,e){const A={from:0,to:t.content.size};return hy(t,A,e)}function IO(t,e){const A=yA(e,t.schema),{from:n,to:r}=t.selection,i=[];t.doc.nodesBetween(n,r,s=>{i.push(s)});const a=i.reverse().find(s=>s.type.name===A.name);return a?{...a.attrs}:{}}function SO(t,e){const A=uc(typeof e=="string"?e:e.name,t.schema);return A==="node"?IO(t,e):A==="mark"?dc(t,e):{}}function by(t,e,A){const n=[];return t===e?A.resolve(t).marks().forEach(r=>{const i=A.resolve(t-1),a=qf(i,r.type);a&&n.push({mark:r,...a})}):A.nodesBetween(t,e,(r,i)=>{!r||(r==null?void 0:r.nodeSize)===void 0||n.push(...r.marks.map(a=>({from:i,to:i+r.nodeSize,mark:a})))}),n}function fc(t,e,A){return Object.fromEntries(Object.entries(A).filter(([n])=>{const r=t.find(i=>i.type===e&&i.name===n);return r?r.attribute.keepOnSplit:!1}))}function th(t,e,A={}){const{empty:n,ranges:r}=t.selection,i=e?Ui(e,t.schema):null;if(n)return!!(t.storedMarks||t.selection.$from.marks()).filter(h=>i?i.name===h.type.name:!0).find(h=>lc(h.attrs,A,{strict:!1}));let a=0;const s=[];if(r.forEach(({$from:h,$to:m})=>{const g=h.pos,B=m.pos;t.doc.nodesBetween(g,B,(y,v)=>{if(!y.isText&&!y.marks.length)return;const Q=Math.max(g,v),k=Math.min(B,v+y.nodeSize),F=k-Q;a+=F,s.push(...y.marks.map(C=>({mark:C,from:Q,to:k})))})}),a===0)return!1;const c=s.filter(h=>i?i.name===h.mark.type.name:!0).filter(h=>lc(h.mark.attrs,A,{strict:!1})).reduce((h,m)=>h+m.to-m.from,0),d=s.filter(h=>i?h.mark.type!==i&&h.mark.type.excludes(i):!0).reduce((h,m)=>h+m.to-m.from,0);return(c>0?c+d:c)>=a}function TO(t,e,A={}){if(!e)return Qs(t,null,A)||th(t,null,A);const n=uc(e,t.schema);return n==="node"?Qs(t,e,A):n==="mark"?th(t,e,A):!1}function vy(t,e){const{nodeExtensions:A}=ic(e),n=A.find(a=>a.name===t);if(!n)return!1;const r={name:n.name,options:n.options,storage:n.storage},i=lt(Re(n,"group",r));return typeof i!="string"?!1:i.split(" ").includes("list")}function xO(t){var e;const A=(e=t.type.createAndFill())===null||e===void 0?void 0:e.toJSON(),n=t.toJSON();return JSON.stringify(A)===JSON.stringify(n)}function DO(t){return t instanceof Ye}function Ey(t,e,A){const r=t.state.doc.content.size,i=Vr(e,0,r),a=Vr(A,0,r),s=t.coordsAtPos(i),c=t.coordsAtPos(a,-1),d=Math.min(s.top,c.top),f=Math.max(s.bottom,c.bottom),h=Math.min(s.left,c.left),m=Math.max(s.right,c.right),g=m-h,B=f-d,Q={top:d,bottom:f,left:h,right:m,width:g,height:B,x:h,y:d};return{...Q,toJSON:()=>Q}}function MO(t,e,A){var n;const{selection:r}=e;let i=null;if(jf(r)&&(i=r.$cursor),i){const s=(n=t.storedMarks)!==null&&n!==void 0?n:i.marks();return!!A.isInSet(s)||!s.some(c=>c.type.excludes(A))}const{ranges:a}=r;return a.some(({$from:s,$to:c})=>{let d=s.depth===0?t.doc.inlineContent&&t.doc.type.allowsMarkType(A):!1;return t.doc.nodesBetween(s.pos,c.pos,(f,h,m)=>{if(d)return!1;if(f.isInline){const g=!m||m.type.allowsMarkType(A),B=!!A.isInSet(f.marks)||!f.marks.some(y=>y.type.excludes(A));d=g&&B}return!d}),d})}const OO=(t,e={})=>({tr:A,state:n,dispatch:r})=>{const{selection:i}=A,{empty:a,ranges:s}=i,c=Ui(t,n.schema);if(r)if(a){const d=dc(n,c);A.addStoredMark(c.create({...d,...e}))}else s.forEach(d=>{const f=d.$from.pos,h=d.$to.pos;n.doc.nodesBetween(f,h,(m,g)=>{const B=Math.max(g,f),y=Math.min(g+m.nodeSize,h);m.marks.find(Q=>Q.type===c)?m.marks.forEach(Q=>{c===Q.type&&A.addMark(B,y,c.create({...Q.attrs,...e}))}):A.addMark(B,y,c.create(e))})});return MO(n,A,c)},NO=(t,e)=>({tr:A})=>(A.setMeta(t,e),!0),LO=(t,e={})=>({state:A,dispatch:n,chain:r})=>{const i=yA(t,A.schema);return i.isTextblock?r().command(({commands:a})=>sy(i,e)(A)?!0:a.clearNodes()).command(({state:a})=>sy(i,e)(a,n)).run():(console.warn('[tiptap warn]: Currently "setNode()" only supports text block nodes.'),!1)},HO=t=>({tr:e,dispatch:A})=>{if(A){const{doc:n}=e,r=Vr(t,0,n.content.size),i=Ye.create(n,r);e.setSelection(i)}return!0},RO=t=>({tr:e,dispatch:A})=>{if(A){const{doc:n}=e,{from:r,to:i}=typeof t=="number"?{from:t,to:t}:t,a=it.atStart(n).from,s=it.atEnd(n).to,c=Vr(r,a,s),d=Vr(i,a,s),f=it.create(n,c,d);e.setSelection(f)}return!0},PO=t=>({state:e,dispatch:A})=>{const n=yA(t,e.schema);return wM(n)(e,A)};function Qy(t,e){const A=t.storedMarks||t.selection.$to.parentOffset&&t.selection.$from.marks();if(A){const n=A.filter(r=>e==null?void 0:e.includes(r.type.name));t.tr.ensureMarks(n)}}const VO=({keepMarks:t=!0}={})=>({tr:e,state:A,dispatch:n,editor:r})=>{const{selection:i,doc:a}=e,{$from:s,$to:c}=i,d=r.extensionManager.attributes,f=fc(d,s.node().type.name,s.node().attrs);if(i instanceof Ye&&i.node.isBlock)return!s.parentOffset||!Ao(a,s.pos)?!1:(n&&(t&&Qy(A,r.extensionManager.splittableMarks),e.split(s.pos).scrollIntoView()),!0);if(!s.parent.isBlock)return!1;if(n){const h=c.parentOffset===c.parent.content.size;i instanceof it&&e.deleteSelection();const m=s.depth===0?void 0:FO(s.node(-1).contentMatchAt(s.indexAfter(-1)));let g=h&&m?[{type:m,attrs:f}]:void 0,B=Ao(e.doc,e.mapping.map(s.pos),1,g);if(!g&&!B&&Ao(e.doc,e.mapping.map(s.pos),1,m?[{type:m}]:void 0)&&(B=!0,g=m?[{type:m,attrs:f}]:void 0),B&&(e.split(e.mapping.map(s.pos),1,g),m&&!h&&!s.parentOffset&&s.parent.type!==m)){const y=e.mapping.map(s.before()),v=e.doc.resolve(y);s.node(-1).canReplaceWith(v.index(),v.index()+1,m)&&e.setNodeMarkup(e.mapping.map(s.before()),m)}t&&Qy(A,r.extensionManager.splittableMarks),e.scrollIntoView()}return!0},KO=t=>({tr:e,state:A,dispatch:n,editor:r})=>{var i;const a=yA(t,A.schema),{$from:s,$to:c}=A.selection,d=A.selection.node;if(d&&d.isBlock||s.depth<2||!s.sameParent(c))return!1;const f=s.node(-1);if(f.type!==a)return!1;const h=r.extensionManager.attributes;if(s.parent.content.size===0&&s.node(-1).childCount===s.indexAfter(-1)){if(s.depth===2||s.node(-3).type!==a||s.index(-2)!==s.node(-2).childCount-1)return!1;if(n){let v=Qe.empty;const Q=s.index(-1)?1:s.index(-2)?2:3;for(let x=s.depth-Q;x>=s.depth-3;x-=1)v=Qe.from(s.node(x).copy(v));const k=s.indexAfter(-1)<s.node(-2).childCount?1:s.indexAfter(-2)<s.node(-3).childCount?2:3,F=fc(h,s.node().type.name,s.node().attrs),C=((i=a.contentMatch.defaultType)===null||i===void 0?void 0:i.createAndFill(F))||void 0;v=v.append(Qe.from(a.createAndFill(null,C)||void 0));const D=s.before(s.depth-(Q-1));e.replace(D,s.after(-k),new Te(v,4-Q,0));let E=-1;e.doc.nodesBetween(D,e.doc.content.size,(x,O)=>{if(E>-1)return!1;x.isTextblock&&x.content.size===0&&(E=O+1)}),E>-1&&e.setSelection(it.near(e.doc.resolve(E))),e.scrollIntoView()}return!0}const m=c.pos===s.end()?f.contentMatchAt(0).defaultType:null,g=fc(h,f.type.name,f.attrs),B=fc(h,s.node().type.name,s.node().attrs);e.delete(s.pos,c.pos);const y=m?[{type:a,attrs:g},{type:m,attrs:B}]:[{type:a,attrs:g}];if(!Ao(e.doc,s.pos,2))return!1;if(n){const{selection:v,storedMarks:Q}=A,{splittableMarks:k}=r.extensionManager,F=Q||v.$to.parentOffset&&v.$from.marks();if(e.split(s.pos,2,y).scrollIntoView(),!F||!n)return!0;const C=F.filter(D=>k.includes(D.type.name));e.ensureMarks(C)}return!0},Ah=(t,e)=>{const A=eh(a=>a.type===e)(t.selection);if(!A)return!0;const n=t.doc.resolve(Math.max(0,A.pos-1)).before(A.depth);if(n===void 0)return!0;const r=t.doc.nodeAt(n);return A.node.type===(r==null?void 0:r.type)&&gi(t.doc,A.pos)&&t.join(A.pos),!0},nh=(t,e)=>{const A=eh(a=>a.type===e)(t.selection);if(!A)return!0;const n=t.doc.resolve(A.start).after(A.depth);if(n===void 0)return!0;const r=t.doc.nodeAt(n);return A.node.type===(r==null?void 0:r.type)&&gi(t.doc,n)&&t.join(n),!0};var $O=Object.freeze({__proto__:null,blur:OM,clearContent:NM,clearNodes:LM,command:HM,createParagraphNear:RM,cut:PM,deleteCurrentNode:VM,deleteNode:KM,deleteRange:$M,deleteSelection:GM,enter:WM,exitCode:YM,extendMarkRange:JM,first:XM,focus:qM,forEach:jM,insertContent:ZM,insertContentAt:AO,joinUp:nO,joinDown:rO,joinBackward:iO,joinForward:aO,joinItemBackward:oO,joinItemForward:sO,joinTextblockBackward:lO,joinTextblockForward:cO,keyboardShortcut:dO,lift:fO,liftEmptyBlock:hO,liftListItem:pO,newlineInCode:mO,resetAttributes:gO,scrollIntoView:BO,selectAll:wO,selectNodeBackward:yO,selectNodeForward:CO,selectParentNode:bO,selectTextblockEnd:vO,selectTextblockStart:EO,setContent:QO,setMark:OO,setMeta:NO,setNode:LO,setNodeSelection:HO,setTextSelection:RO,sinkListItem:PO,splitBlock:VO,splitListItem:KO,toggleList:(t,e,A,n={})=>({editor:r,tr:i,state:a,dispatch:s,chain:c,commands:d,can:f})=>{const{extensions:h,splittableMarks:m}=r.extensionManager,g=yA(t,a.schema),B=yA(e,a.schema),{selection:y,storedMarks:v}=a,{$from:Q,$to:k}=y,F=Q.blockRange(k),C=v||y.$to.parentOffset&&y.$from.marks();if(!F)return!1;const D=eh(E=>vy(E.type.name,h))(y);if(F.depth>=1&&D&&F.depth-D.depth<=1){if(D.node.type===g)return d.liftListItem(B);if(vy(D.node.type.name,h)&&g.validContent(D.node.content)&&s)return c().command(()=>(i.setNodeMarkup(D.pos,g),!0)).command(()=>Ah(i,g)).command(()=>nh(i,g)).run()}return!A||!C||!s?c().command(()=>f().wrapInList(g,n)?!0:d.clearNodes()).wrapInList(g,n).command(()=>Ah(i,g)).command(()=>nh(i,g)).run():c().command(()=>{const E=f().wrapInList(g,n),x=C.filter(O=>m.includes(O.type.name));return i.ensureMarks(x),E?!0:d.clearNodes()}).wrapInList(g,n).command(()=>Ah(i,g)).command(()=>nh(i,g)).run()},toggleMark:(t,e={},A={})=>({state:n,commands:r})=>{const{extendEmptyMarkRange:i=!1}=A,a=Ui(t,n.schema);return th(n,a,e)?r.unsetMark(a,{extendEmptyMarkRange:i}):r.setMark(a,e)},toggleNode:(t,e,A={})=>({state:n,commands:r})=>{const i=yA(t,n.schema),a=yA(e,n.schema);return Qs(n,i,A)?r.setNode(a):r.setNode(i,A)},toggleWrap:(t,e={})=>({state:A,commands:n})=>{const r=yA(t,A.schema);return Qs(A,r,e)?n.lift(r):n.wrapIn(r,e)},undoInputRule:()=>({state:t,dispatch:e})=>{const A=t.plugins;for(let n=0;n<A.length;n+=1){const r=A[n];let i;if(r.spec.isInputRules&&(i=r.getState(t))){if(e){const a=t.tr,s=i.transform;for(let c=s.steps.length-1;c>=0;c-=1)a.step(s.steps[c].invert(s.docs[c]));if(i.text){const c=a.doc.resolve(i.from).marks();a.replaceWith(i.from,i.to,t.schema.text(i.text,c))}else a.delete(i.from,i.to)}return!0}}return!1},unsetAllMarks:()=>({tr:t,dispatch:e})=>{const{selection:A}=t,{empty:n,ranges:r}=A;return n||e&&r.forEach(i=>{t.removeMark(i.$from.pos,i.$to.pos)}),!0},unsetMark:(t,e={})=>({tr:A,state:n,dispatch:r})=>{var i;const{extendEmptyMarkRange:a=!1}=e,{selection:s}=A,c=Ui(t,n.schema),{$from:d,empty:f,ranges:h}=s;if(!r)return!0;if(f&&a){let{from:m,to:g}=s;const B=(i=d.marks().find(v=>v.type===c))===null||i===void 0?void 0:i.attrs,y=qf(d,c,B);y&&(m=y.from,g=y.to),A.removeMark(m,g,c)}else h.forEach(m=>{A.removeMark(m.$from.pos,m.$to.pos,c)});return A.removeStoredMark(c),!0},updateAttributes:(t,e={})=>({tr:A,state:n,dispatch:r})=>{let i=null,a=null;const s=uc(typeof t=="string"?t:t.name,n.schema);return s?(s==="node"&&(i=yA(t,n.schema)),s==="mark"&&(a=Ui(t,n.schema)),r&&A.selection.ranges.forEach(c=>{const d=c.$from.pos,f=c.$to.pos;n.doc.nodesBetween(d,f,(h,m)=>{i&&i===h.type&&A.setNodeMarkup(m,void 0,{...h.attrs,...e}),a&&h.marks.length&&h.marks.forEach(g=>{if(a===g.type){const B=Math.max(m,d),y=Math.min(m+h.nodeSize,f);A.addMark(B,y,a.create({...g.attrs,...e}))}})})}),!0):!1},wrapIn:(t,e={})=>({state:A,dispatch:n})=>{const r=yA(t,A.schema);return fM(r,e)(A,n)},wrapInList:(t,e={})=>({state:A,dispatch:n})=>{const r=yA(t,A.schema);return hM(r,e)(A,n)}});const GO=LA.create({name:"commands",addCommands(){return{...$O}}}),WO=LA.create({name:"editable",addProseMirrorPlugins(){return[new sn({key:new gr("editable"),props:{editable:()=>this.editor.options.editable}})]}}),YO=LA.create({name:"focusEvents",addProseMirrorPlugins(){const{editor:t}=this;return[new sn({key:new gr("focusEvents"),props:{handleDOMEvents:{focus:(e,A)=>{t.isFocused=!0;const n=t.state.tr.setMeta("focus",{event:A}).setMeta("addToHistory",!1);return e.dispatch(n),!1},blur:(e,A)=>{t.isFocused=!1;const n=t.state.tr.setMeta("blur",{event:A}).setMeta("addToHistory",!1);return e.dispatch(n),!1}}}})]}}),zO=LA.create({name:"keymap",addKeyboardShortcuts(){const t=()=>this.editor.commands.first(({commands:a})=>[()=>a.undoInputRule(),()=>a.command(({tr:s})=>{const{selection:c,doc:d}=s,{empty:f,$anchor:h}=c,{pos:m,parent:g}=h,B=h.parent.isTextblock&&m>0?s.doc.resolve(m-1):h,y=B.parent.type.spec.isolating,v=h.pos-h.parentOffset,Q=y&&B.parent.childCount===1?v===h.pos:st.atStart(d).from===m;return!f||!g.type.isTextblock||g.textContent.length||!Q||Q&&h.parent.type.name==="paragraph"?!1:a.clearNodes()}),()=>a.deleteSelection(),()=>a.joinBackward(),()=>a.selectNodeBackward()]),e=()=>this.editor.commands.first(({commands:a})=>[()=>a.deleteSelection(),()=>a.deleteCurrentNode(),()=>a.joinForward(),()=>a.selectNodeForward()]),n={Enter:()=>this.editor.commands.first(({commands:a})=>[()=>a.newlineInCode(),()=>a.createParagraphNear(),()=>a.liftEmptyBlock(),()=>a.splitBlock()]),"Mod-Enter":()=>this.editor.commands.exitCode(),Backspace:t,"Mod-Backspace":t,"Shift-Backspace":t,Delete:e,"Mod-Delete":e,"Mod-a":()=>this.editor.commands.selectAll()},r={...n},i={...n,"Ctrl-h":t,"Alt-Backspace":t,"Ctrl-d":e,"Ctrl-Alt-Backspace":e,"Alt-Delete":e,"Alt-d":e,"Ctrl-a":()=>this.editor.commands.selectTextblockStart(),"Ctrl-e":()=>this.editor.commands.selectTextblockEnd()};return Zf()||wy()?i:r},addProseMirrorPlugins(){return[new sn({key:new gr("clearDocument"),appendTransaction:(t,e,A)=>{if(!(t.some(B=>B.docChanged)&&!e.doc.eq(A.doc)))return;const{empty:r,from:i,to:a}=e.selection,s=st.atStart(e.doc).from,c=st.atEnd(e.doc).to;if(r||!(i===s&&a===c)||!(A.doc.textBetween(0,A.doc.content.size," "," ").length===0))return;const h=A.tr,m=nc({state:A,transaction:h}),{commands:g}=new rc({editor:this.editor,state:m});if(g.clearNodes(),!!h.steps.length)return h}})]}}),JO=LA.create({name:"tabindex",addProseMirrorPlugins(){return[new sn({key:new gr("tabindex"),props:{attributes:this.editor.isEditable?{tabindex:"0"}:{}}})]}});class pa{constructor(e,A,n=!1,r=null){this.currentNode=null,this.actualDepth=null,this.isBlock=n,this.resolvedPos=e,this.editor=A,this.currentNode=r}get name(){return this.node.type.name}get node(){return this.currentNode||this.resolvedPos.node()}get element(){return this.editor.view.domAtPos(this.pos).node}get depth(){var e;return(e=this.actualDepth)!==null&&e!==void 0?e:this.resolvedPos.depth}get pos(){return this.resolvedPos.pos}get content(){return this.node.content}set content(e){let A=this.from,n=this.to;if(this.isBlock){if(this.content.size===0){console.error(`You can’t set content on a block node. Tried to set content on ${this.name} at ${this.pos}`);return}A=this.from+1,n=this.to-1}this.editor.commands.insertContentAt({from:A,to:n},e)}get attributes(){return this.node.attrs}get textContent(){return this.node.textContent}get size(){return this.node.nodeSize}get from(){return this.isBlock?this.pos:this.resolvedPos.start(this.resolvedPos.depth)}get range(){return{from:this.from,to:this.to}}get to(){return this.isBlock?this.pos+this.size:this.resolvedPos.end(this.resolvedPos.depth)+(this.node.isText?0:1)}get parent(){if(this.depth===0)return null;const e=this.resolvedPos.start(this.resolvedPos.depth-1),A=this.resolvedPos.doc.resolve(e);return new pa(A,this.editor)}get before(){let e=this.resolvedPos.doc.resolve(this.from-(this.isBlock?1:2));return e.depth!==this.depth&&(e=this.resolvedPos.doc.resolve(this.from-3)),new pa(e,this.editor)}get after(){let e=this.resolvedPos.doc.resolve(this.to+(this.isBlock?2:1));return e.depth!==this.depth&&(e=this.resolvedPos.doc.resolve(this.to+3)),new pa(e,this.editor)}get children(){const e=[];return this.node.content.forEach((A,n)=>{const r=A.isBlock&&!A.isTextblock,i=this.pos+n+1,a=this.resolvedPos.doc.resolve(i);if(!r&&a.depth<=this.depth)return;const s=new pa(a,this.editor,r,r?A:null);r&&(s.actualDepth=this.depth+1),e.push(new pa(a,this.editor,r,r?A:null))}),e}get firstChild(){return this.children[0]||null}get lastChild(){const e=this.children;return e[e.length-1]||null}closest(e,A={}){let n=null,r=this.parent;for(;r&&!n;){if(r.node.type.name===e)if(Object.keys(A).length>0){const i=r.node.attrs,a=Object.keys(A);for(let s=0;s<a.length;s+=1){const c=a[s];if(i[c]!==A[c])break}}else n=r;r=r.parent}return n}querySelector(e,A={}){return this.querySelectorAll(e,A,!0)[0]||null}querySelectorAll(e,A={},n=!1){let r=[];if(!this.children||this.children.length===0)return r;const i=Object.keys(A);return this.children.forEach(a=>{n&&r.length>0||(a.node.type.name===e&&i.every(c=>A[c]===a.node.attrs[c])&&r.push(a),!(n&&r.length>0)&&(r=r.concat(a.querySelectorAll(e,A,n))))}),r}setAttribute(e){const A=this.editor.state.selection;this.editor.chain().setTextSelection(this.from).updateAttributes(this.node.type.name,e).setTextSelection(A.from).run()}}const XO=`.ProseMirror {
18
40
  position: relative;
19
41
  }
20
42
 
@@ -88,81 +110,59 @@ img.ProseMirror-separator {
88
110
 
89
111
  .tippy-box[data-animation=fade][data-state=hidden] {
90
112
  opacity: 0
91
- }`;function uI(t,e,A){const n=document.querySelector(`style[data-tiptap-style${A?`-${A}`:""}]`);if(n!==null)return n;const r=document.createElement("style");return e&&r.setAttribute("nonce",e),r.setAttribute(`data-tiptap-style${A?`-${A}`:""}`,""),r.innerHTML=t,document.getElementsByTagName("head")[0].appendChild(r),r}let fI=class extends LU{constructor(e={}){super(),this.isFocused=!1,this.extensionStorage={},this.options={element:document.createElement("div"),content:"",injectCSS:!0,injectNonce:void 0,extensions:[],autofocus:!1,editable:!0,editorProps:{},parseOptions:{},coreExtensionOptions:{},enableInputRules:!0,enablePasteRules:!0,enableCoreExtensions:!0,onBeforeCreate:()=>null,onCreate:()=>null,onUpdate:()=>null,onSelectionUpdate:()=>null,onTransaction:()=>null,onFocus:()=>null,onBlur:()=>null,onDestroy:()=>null},this.isCapturingTransaction=!1,this.capturedTransaction=null,this.setOptions(e),this.createExtensionManager(),this.createCommandManager(),this.createSchema(),this.on("beforeCreate",this.options.onBeforeCreate),this.emit("beforeCreate",{editor:this}),this.createView(),this.injectCSS(),this.on("create",this.options.onCreate),this.on("update",this.options.onUpdate),this.on("selectionUpdate",this.options.onSelectionUpdate),this.on("transaction",this.options.onTransaction),this.on("focus",this.options.onFocus),this.on("blur",this.options.onBlur),this.on("destroy",this.options.onDestroy),window.setTimeout(()=>{this.isDestroyed||(this.commands.focus(this.options.autofocus),this.emit("create",{editor:this}))},0)}get storage(){return this.extensionStorage}get commands(){return this.commandManager.commands}chain(){return this.commandManager.chain()}can(){return this.commandManager.can()}injectCSS(){this.options.injectCSS&&document&&(this.css=uI(cI,this.options.injectNonce))}setOptions(e={}){this.options={...this.options,...e},!(!this.view||!this.state||this.isDestroyed)&&(this.options.editorProps&&this.view.setProps(this.options.editorProps),this.view.updateState(this.state))}setEditable(e,A=!0){this.setOptions({editable:e}),A&&this.emit("update",{editor:this,transaction:this.state.tr})}get isEditable(){return this.options.editable&&this.view&&this.view.editable}get state(){return this.view.state}registerPlugin(e,A){const n=bg(A)?A(e,[...this.state.plugins]):[...this.state.plugins,e],r=this.state.reconfigure({plugins:n});this.view.updateState(r)}unregisterPlugin(e){if(this.isDestroyed)return;const A=typeof e=="string"?`${e}$`:e.key,n=this.state.reconfigure({plugins:this.state.plugins.filter(r=>!r.key.startsWith(A))});this.view.updateState(n)}createExtensionManager(){var e,A;const r=[...this.options.enableCoreExtensions?[sI,YU.configure({blockSeparator:(A=(e=this.options.coreExtensionOptions)===null||e===void 0?void 0:e.clipboardTextSerializer)===null||A===void 0?void 0:A.blockSeparator}),iI,oI,aI,lI]:[],...this.options.extensions].filter(i=>["extension","node","mark"].includes(i==null?void 0:i.type));this.extensionManager=new Mi(r,this)}createCommandManager(){this.commandManager=new oa({editor:this})}createSchema(){this.schema=this.extensionManager.schema}createView(){const e=Hg(this.options.content,this.schema,this.options.parseOptions),A=_g(e,this.options.autofocus);this.view=new jb(this.options.element,{...this.options.editorProps,dispatchTransaction:this.dispatchTransaction.bind(this),state:xi.create({doc:e,selection:A||void 0})});const n=this.state.reconfigure({plugins:this.extensionManager.plugins});this.view.updateState(n),this.createNodeViews(),this.prependClass();const r=this.view.dom;r.editor=this}createNodeViews(){this.view.setProps({nodeViews:this.extensionManager.nodeViews})}prependClass(){this.view.dom.className=`tiptap ${this.view.dom.className}`}captureTransaction(e){this.isCapturingTransaction=!0,e(),this.isCapturingTransaction=!1;const A=this.capturedTransaction;return this.capturedTransaction=null,A}dispatchTransaction(e){if(this.view.isDestroyed)return;if(this.isCapturingTransaction){if(!this.capturedTransaction){this.capturedTransaction=e;return}e.steps.forEach(s=>{var a;return(a=this.capturedTransaction)===null||a===void 0?void 0:a.step(s)});return}const A=this.state.apply(e),n=!this.state.selection.eq(A.selection);this.view.updateState(A),this.emit("transaction",{editor:this,transaction:e}),n&&this.emit("selectionUpdate",{editor:this,transaction:e});const r=e.getMeta("focus"),i=e.getMeta("blur");r&&this.emit("focus",{editor:this,event:r.event,transaction:e}),i&&this.emit("blur",{editor:this,event:i.event,transaction:e}),!(!e.docChanged||e.getMeta("preventUpdate"))&&this.emit("update",{editor:this,transaction:e})}getAttributes(e){return $v(this.state,e)}isActive(e,A){const n=typeof e=="string"?e:null,r=typeof e=="string"?A:e;return Wv(this.state,n,r)}getJSON(){return this.state.doc.toJSON()}getHTML(){return Vv(this.state.doc.content,this.schema)}getText(e){const{blockSeparator:A=`
113
+ }`;function qO(t,e,A){const n=document.querySelector(`style[data-tiptap-style${A?`-${A}`:""}]`);if(n!==null)return n;const r=document.createElement("style");return e&&r.setAttribute("nonce",e),r.setAttribute(`data-tiptap-style${A?`-${A}`:""}`,""),r.innerHTML=t,document.getElementsByTagName("head")[0].appendChild(r),r}let jO=class extends yM{constructor(e={}){super(),this.isFocused=!1,this.extensionStorage={},this.options={element:document.createElement("div"),content:"",injectCSS:!0,injectNonce:void 0,extensions:[],autofocus:!1,editable:!0,editorProps:{},parseOptions:{},coreExtensionOptions:{},enableInputRules:!0,enablePasteRules:!0,enableCoreExtensions:!0,onBeforeCreate:()=>null,onCreate:()=>null,onUpdate:()=>null,onSelectionUpdate:()=>null,onTransaction:()=>null,onFocus:()=>null,onBlur:()=>null,onDestroy:()=>null},this.isCapturingTransaction=!1,this.capturedTransaction=null,this.setOptions(e),this.createExtensionManager(),this.createCommandManager(),this.createSchema(),this.on("beforeCreate",this.options.onBeforeCreate),this.emit("beforeCreate",{editor:this}),this.createView(),this.injectCSS(),this.on("create",this.options.onCreate),this.on("update",this.options.onUpdate),this.on("selectionUpdate",this.options.onSelectionUpdate),this.on("transaction",this.options.onTransaction),this.on("focus",this.options.onFocus),this.on("blur",this.options.onBlur),this.on("destroy",this.options.onDestroy),window.setTimeout(()=>{this.isDestroyed||(this.commands.focus(this.options.autofocus),this.emit("create",{editor:this}))},0)}get storage(){return this.extensionStorage}get commands(){return this.commandManager.commands}chain(){return this.commandManager.chain()}can(){return this.commandManager.can()}injectCSS(){this.options.injectCSS&&document&&(this.css=qO(XO,this.options.injectNonce))}setOptions(e={}){this.options={...this.options,...e},!(!this.view||!this.state||this.isDestroyed)&&(this.options.editorProps&&this.view.setProps(this.options.editorProps),this.view.updateState(this.state))}setEditable(e,A=!0){this.setOptions({editable:e}),A&&this.emit("update",{editor:this,transaction:this.state.tr})}get isEditable(){return this.options.editable&&this.view&&this.view.editable}get state(){return this.view.state}registerPlugin(e,A){const n=cy(A)?A(e,[...this.state.plugins]):[...this.state.plugins,e],r=this.state.reconfigure({plugins:n});this.view.updateState(r)}unregisterPlugin(e){if(this.isDestroyed)return;const A=typeof e=="string"?`${e}$`:e.key,n=this.state.reconfigure({plugins:this.state.plugins.filter(r=>!r.key.startsWith(A))});this.view.updateState(n)}createExtensionManager(){var e,A;const r=[...this.options.enableCoreExtensions?[WO,MM.configure({blockSeparator:(A=(e=this.options.coreExtensionOptions)===null||e===void 0?void 0:e.clipboardTextSerializer)===null||A===void 0?void 0:A.blockSeparator}),GO,YO,zO,JO]:[],...this.options.extensions].filter(i=>["extension","node","mark"].includes(i==null?void 0:i.type));this.extensionManager=new ho(r,this)}createCommandManager(){this.commandManager=new rc({editor:this})}createSchema(){this.schema=this.extensionManager.schema}createView(){const e=Cy(this.options.content,this.schema,this.options.parseOptions),A=my(e,this.options.autofocus);this.view=new HD(this.options.element,{...this.options.editorProps,dispatchTransaction:this.dispatchTransaction.bind(this),state:ao.create({doc:e,selection:A||void 0})});const n=this.state.reconfigure({plugins:this.extensionManager.plugins});this.view.updateState(n),this.createNodeViews(),this.prependClass();const r=this.view.dom;r.editor=this}createNodeViews(){this.view.setProps({nodeViews:this.extensionManager.nodeViews})}prependClass(){this.view.dom.className=`tiptap ${this.view.dom.className}`}captureTransaction(e){this.isCapturingTransaction=!0,e(),this.isCapturingTransaction=!1;const A=this.capturedTransaction;return this.capturedTransaction=null,A}dispatchTransaction(e){if(this.view.isDestroyed)return;if(this.isCapturingTransaction){if(!this.capturedTransaction){this.capturedTransaction=e;return}e.steps.forEach(a=>{var s;return(s=this.capturedTransaction)===null||s===void 0?void 0:s.step(a)});return}const A=this.state.apply(e),n=!this.state.selection.eq(A.selection);this.view.updateState(A),this.emit("transaction",{editor:this,transaction:e}),n&&this.emit("selectionUpdate",{editor:this,transaction:e});const r=e.getMeta("focus"),i=e.getMeta("blur");r&&this.emit("focus",{editor:this,event:r.event,transaction:e}),i&&this.emit("blur",{editor:this,event:i.event,transaction:e}),!(!e.docChanged||e.getMeta("preventUpdate"))&&this.emit("update",{editor:this,transaction:e})}getAttributes(e){return SO(this.state,e)}isActive(e,A){const n=typeof e=="string"?e:null,r=typeof e=="string"?A:e;return TO(this.state,n,r)}getJSON(){return this.state.doc.toJSON()}getHTML(){return kO(this.state.doc.content,this.schema)}getText(e){const{blockSeparator:A=`
92
114
 
93
- `,textSerializers:n={}}=e||{};return Pv(this.state.doc,{blockSeparator:A,textSerializers:{...Tg(this.schema),...n}})}get isEmpty(){return Jv(this.state.doc)}getCharacterCount(){return console.warn('[tiptap warn]: "editor.getCharacterCount()" is deprecated. Please use "editor.storage.characterCount.characters()" instead.'),this.state.doc.content.size-2}destroy(){this.emit("destroy"),this.view&&this.view.destroy(),this.removeAllListeners()}get isDestroyed(){var e;return!(!((e=this.view)===null||e===void 0)&&e.docView)}$node(e,A){var n;return((n=this.$doc)===null||n===void 0?void 0:n.querySelector(e,A))||null}$nodes(e,A){var n;return((n=this.$doc)===null||n===void 0?void 0:n.querySelectorAll(e,A))||null}$pos(e){const A=this.state.doc.resolve(e);return new ei(A,this)}get $doc(){return this.$pos(0)}};function Ai(t){return new la({find:t.find,handler:({state:e,range:A,match:n})=>{const r=be(t.getAttributes,void 0,n);if(r===!1||r===null)return null;const{tr:i}=e,s=n[n.length-1],a=n[0];if(s){const c=a.search(/\S/),u=A.from+a.indexOf(s),f=u+s.length;if(Ng(A.from,A.to,e.doc).filter(B=>B.mark.type.excluded.find(Q=>Q===t.type&&Q!==B.mark.type)).filter(B=>B.to>u).length)return null;f<A.to&&i.delete(f,A.to),u>A.from&&i.delete(A.from+c,u);const g=A.from+c+s.length;i.addMark(A.from+c,g,t.type.create(r||{})),i.removeStoredMark(t.type)}}})}function dI(t){return new la({find:t.find,handler:({state:e,range:A,match:n})=>{const r=be(t.getAttributes,void 0,n)||{},{tr:i}=e,s=A.from;let a=A.to;const c=t.type.create(r);if(n[1]){const u=n[0].lastIndexOf(n[1]);let f=s+u;f>a?f=a:a=f+n[1].length;const p=n[0][n[0].length-1];i.insertText(p,s+n[0].length-1),i.replaceWith(f,a,c)}else n[0]&&i.insert(s-1,t.type.create(r)).delete(i.mapping.map(s),i.mapping.map(a));i.scrollIntoView()}})}function Bu(t){return new la({find:t.find,handler:({state:e,range:A,match:n})=>{const r=e.doc.resolve(A.from),i=be(t.getAttributes,void 0,n)||{};if(!r.node(-1).canReplaceWith(r.index(-1),r.indexAfter(-1),t.type))return null;e.tr.delete(A.from,A.to).setBlockType(A.from,A.from,t.type,i)}})}function Ks(t){return new la({find:t.find,handler:({state:e,range:A,match:n,chain:r})=>{const i=be(t.getAttributes,void 0,n)||{},s=e.tr.delete(A.from,A.to),c=s.doc.resolve(A.from).blockRange(),u=c&&Uc(c,t.type,i);if(!u)return null;if(s.wrap(c,u),t.keepMarks&&t.editor){const{selection:p,storedMarks:g}=e,{splittableMarks:B}=t.editor.extensionManager,w=g||p.$to.parentOffset&&p.$from.marks();if(w){const Q=w.filter(b=>B.includes(b.type.name));s.ensureMarks(Q)}}if(t.keepAttributes){const p=t.type.name==="bulletList"||t.type.name==="orderedList"?"listItem":"taskList";r().updateAttributes(p,i).run()}const f=s.doc.resolve(A.from-1).nodeBefore;f&&f.type===t.type&&ar(s.doc,A.from-1)&&(!t.joinPredicate||t.joinPredicate(n,f))&&s.join(A.from-1)}})}class sn{constructor(e={}){this.type="mark",this.name="mark",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...e},this.name=this.config.name,e.defaultOptions&&Object.keys(e.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=be(ae(this,"addOptions",{name:this.name}))),this.storage=be(ae(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(e={}){return new sn(e)}configure(e={}){const A=this.extend();return A.options=ua(this.options,e),A.storage=be(ae(A,"addStorage",{name:A.name,options:A.options})),A}extend(e={}){const A=new sn({...this.config,...e});return A.parent=this,this.child=A,A.name=e.name?e.name:A.parent.name,e.defaultOptions&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${A.name}".`),A.options=be(ae(A,"addOptions",{name:A.name})),A.storage=be(ae(A,"addStorage",{name:A.name,options:A.options})),A}static handleExit({editor:e,mark:A}){const{tr:n}=e.state,r=e.state.selection.$from;if(r.pos===r.end()){const s=r.marks();if(!!!s.find(u=>(u==null?void 0:u.type.name)===A.name))return!1;const c=s.find(u=>(u==null?void 0:u.type.name)===A.name);return c&&n.removeStoredMark(c),n.insertText(" ",r.pos),e.view.dispatch(n),!0}return!1}}let vt=class uh{constructor(e={}){this.type="node",this.name="node",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...e},this.name=this.config.name,e.defaultOptions&&Object.keys(e.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=be(ae(this,"addOptions",{name:this.name}))),this.storage=be(ae(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(e={}){return new uh(e)}configure(e={}){const A=this.extend();return A.options=ua(this.options,e),A.storage=be(ae(A,"addStorage",{name:A.name,options:A.options})),A}extend(e={}){const A=new uh({...this.config,...e});return A.parent=this,this.child=A,A.name=e.name?e.name:A.parent.name,e.defaultOptions&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${A.name}".`),A.options=be(ae(A,"addOptions",{name:A.name})),A.storage=be(ae(A,"addStorage",{name:A.name,options:A.options})),A}};function ti(t){return new VU({find:t.find,handler:({state:e,range:A,match:n,pasteEvent:r})=>{const i=be(t.getAttributes,void 0,n,r);if(i===!1||i===null)return null;const{tr:s}=e,a=n[n.length-1],c=n[0];let u=A.to;if(a){const f=c.search(/\S/),p=A.from+c.indexOf(a),g=p+a.length;if(Ng(A.from,A.to,e.doc).filter(w=>w.mark.type.excluded.find(b=>b===t.type&&b!==w.mark.type)).filter(w=>w.to>p).length)return null;g<A.to&&s.delete(g,A.to),p>A.from&&s.delete(A.from+f,p),u=A.from+f+a.length,s.addMark(A.from+f,u,t.type.create(i||{})),s.removeStoredMark(t.type)}}})}const hI=/(?:^|\s)(==(?!\s+==)((?:[^=]+))==(?!\s+==))$/,pI=/(?:^|\s)(==(?!\s+==)((?:[^=]+))==(?!\s+==))/g,gI=sn.create({name:"highlight",addOptions(){return{multicolor:!1,HTMLAttributes:{}}},addAttributes(){return this.options.multicolor?{color:{default:null,parseHTML:t=>t.getAttribute("data-color")||t.style.backgroundColor,renderHTML:t=>t.color?{"data-color":t.color,style:`background-color: ${t.color}; color: inherit`}:{}}}:{}},parseHTML(){return[{tag:"mark"}]},renderHTML({HTMLAttributes:t}){return["mark",FA(this.options.HTMLAttributes,t),0]},addCommands(){return{setHighlight:t=>({commands:e})=>e.setMark(this.name,t),toggleHighlight:t=>({commands:e})=>e.toggleMark(this.name,t),unsetHighlight:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-h":()=>this.editor.commands.toggleHighlight()}},addInputRules(){return[Ai({find:hI,type:this.type})]},addPasteRules(){return[ti({find:pI,type:this.type})]}}),mI=YA.create({name:"textAlign",addOptions(){return{types:[],alignments:["left","center","right","justify"],defaultAlignment:"left"}},addGlobalAttributes(){return[{types:this.options.types,attributes:{textAlign:{default:this.options.defaultAlignment,parseHTML:t=>t.style.textAlign||this.options.defaultAlignment,renderHTML:t=>t.textAlign===this.options.defaultAlignment?{}:{style:`text-align: ${t.textAlign}`}}}}]},addCommands(){return{setTextAlign:t=>({commands:e})=>this.options.alignments.includes(t)?this.options.types.map(A=>e.updateAttributes(A,{textAlign:t})).every(A=>A):!1,unsetTextAlign:()=>({commands:t})=>this.options.types.map(e=>t.resetAttributes(e,"textAlign")).every(e=>e)}},addKeyboardShortcuts(){return{"Mod-Shift-l":()=>this.editor.commands.setTextAlign("left"),"Mod-Shift-e":()=>this.editor.commands.setTextAlign("center"),"Mod-Shift-r":()=>this.editor.commands.setTextAlign("right"),"Mod-Shift-j":()=>this.editor.commands.setTextAlign("justify")}}}),BI=/^\s*>\s$/,wI=vt.create({name:"blockquote",addOptions(){return{HTMLAttributes:{}}},content:"block+",group:"block",defining:!0,parseHTML(){return[{tag:"blockquote"}]},renderHTML({HTMLAttributes:t}){return["blockquote",FA(this.options.HTMLAttributes,t),0]},addCommands(){return{setBlockquote:()=>({commands:t})=>t.wrapIn(this.name),toggleBlockquote:()=>({commands:t})=>t.toggleWrap(this.name),unsetBlockquote:()=>({commands:t})=>t.lift(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-b":()=>this.editor.commands.toggleBlockquote()}},addInputRules(){return[Ks({find:BI,type:this.type})]}}),CI=/(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/,yI=/(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))/g,EI=/(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))$/,QI=/(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))/g,FI=sn.create({name:"bold",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"strong"},{tag:"b",getAttrs:t=>t.style.fontWeight!=="normal"&&null},{style:"font-weight",getAttrs:t=>/^(bold(er)?|[5-9]\d{2,})$/.test(t)&&null}]},renderHTML({HTMLAttributes:t}){return["strong",FA(this.options.HTMLAttributes,t),0]},addCommands(){return{setBold:()=>({commands:t})=>t.setMark(this.name),toggleBold:()=>({commands:t})=>t.toggleMark(this.name),unsetBold:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-b":()=>this.editor.commands.toggleBold(),"Mod-B":()=>this.editor.commands.toggleBold()}},addInputRules(){return[Ai({find:CI,type:this.type}),Ai({find:EI,type:this.type})]},addPasteRules(){return[ti({find:yI,type:this.type}),ti({find:QI,type:this.type})]}}),bI=vt.create({name:"listItem",addOptions(){return{HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}},content:"paragraph block*",defining:!0,parseHTML(){return[{tag:"li"}]},renderHTML({HTMLAttributes:t}){return["li",FA(this.options.HTMLAttributes,t),0]},addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}),Kg=sn.create({name:"textStyle",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"span",getAttrs:t=>t.hasAttribute("style")?{}:!1}]},renderHTML({HTMLAttributes:t}){return["span",FA(this.options.HTMLAttributes,t),0]},addCommands(){return{removeEmptyTextStyle:()=>({state:t,commands:e})=>{const A=pa(t,this.type);return Object.entries(A).some(([,r])=>!!r)?!0:e.unsetMark(this.name)}}}}),Vg=/^\s*([-+*])\s$/,UI=vt.create({name:"bulletList",addOptions(){return{itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}},group:"block list",content(){return`${this.options.itemTypeName}+`},parseHTML(){return[{tag:"ul"}]},renderHTML({HTMLAttributes:t}){return["ul",FA(this.options.HTMLAttributes,t),0]},addCommands(){return{toggleBulletList:()=>({commands:t,chain:e})=>this.options.keepAttributes?e().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(bI.name,this.editor.getAttributes(Kg.name)).run():t.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-8":()=>this.editor.commands.toggleBulletList()}},addInputRules(){let t=Ks({find:Vg,type:this.type});return(this.options.keepMarks||this.options.keepAttributes)&&(t=Ks({find:Vg,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:()=>this.editor.getAttributes(Kg.name),editor:this.editor})),[t]}}),vI=/(?:^|\s)(`(?!\s+`)((?:[^`]+))`(?!\s+`))$/,II=/(?:^|\s)(`(?!\s+`)((?:[^`]+))`(?!\s+`))/g,SI=sn.create({name:"code",addOptions(){return{HTMLAttributes:{}}},excludes:"_",code:!0,exitable:!0,parseHTML(){return[{tag:"code"}]},renderHTML({HTMLAttributes:t}){return["code",FA(this.options.HTMLAttributes,t),0]},addCommands(){return{setCode:()=>({commands:t})=>t.setMark(this.name),toggleCode:()=>({commands:t})=>t.toggleMark(this.name),unsetCode:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-e":()=>this.editor.commands.toggleCode()}},addInputRules(){return[Ai({find:vI,type:this.type})]},addPasteRules(){return[ti({find:II,type:this.type})]}}),TI=/^```([a-z]+)?[\s\n]$/,_I=/^~~~([a-z]+)?[\s\n]$/,xI=vt.create({name:"codeBlock",addOptions(){return{languageClassPrefix:"language-",exitOnTripleEnter:!0,exitOnArrowDown:!0,HTMLAttributes:{}}},content:"text*",marks:"",group:"block",code:!0,defining:!0,addAttributes(){return{language:{default:null,parseHTML:t=>{var e;const{languageClassPrefix:A}=this.options,i=[...((e=t.firstElementChild)===null||e===void 0?void 0:e.classList)||[]].filter(s=>s.startsWith(A)).map(s=>s.replace(A,""))[0];return i||null},rendered:!1}}},parseHTML(){return[{tag:"pre",preserveWhitespace:"full"}]},renderHTML({node:t,HTMLAttributes:e}){return["pre",FA(this.options.HTMLAttributes,e),["code",{class:t.attrs.language?this.options.languageClassPrefix+t.attrs.language:null},0]]},addCommands(){return{setCodeBlock:t=>({commands:e})=>e.setNode(this.name,t),toggleCodeBlock:t=>({commands:e})=>e.toggleNode(this.name,"paragraph",t)}},addKeyboardShortcuts(){return{"Mod-Alt-c":()=>this.editor.commands.toggleCodeBlock(),Backspace:()=>{const{empty:t,$anchor:e}=this.editor.state.selection,A=e.pos===1;return!t||e.parent.type.name!==this.name?!1:A||!e.parent.textContent.length?this.editor.commands.clearNodes():!1},Enter:({editor:t})=>{if(!this.options.exitOnTripleEnter)return!1;const{state:e}=t,{selection:A}=e,{$from:n,empty:r}=A;if(!r||n.parent.type!==this.type)return!1;const i=n.parentOffset===n.parent.nodeSize-2,s=n.parent.textContent.endsWith(`
115
+ `,textSerializers:n={}}=e||{};return _O(this.state.doc,{blockSeparator:A,textSerializers:{...py(this.schema),...n}})}get isEmpty(){return xO(this.state.doc)}getCharacterCount(){return console.warn('[tiptap warn]: "editor.getCharacterCount()" is deprecated. Please use "editor.storage.characterCount.characters()" instead.'),this.state.doc.content.size-2}destroy(){this.emit("destroy"),this.view&&this.view.destroy(),this.removeAllListeners()}get isDestroyed(){var e;return!(!((e=this.view)===null||e===void 0)&&e.docView)}$node(e,A){var n;return((n=this.$doc)===null||n===void 0?void 0:n.querySelector(e,A))||null}$nodes(e,A){var n;return((n=this.$doc)===null||n===void 0?void 0:n.querySelectorAll(e,A))||null}$pos(e){const A=this.state.doc.resolve(e);return new pa(A,this)}get $doc(){return this.$pos(0)}};function ma(t){return new ac({find:t.find,handler:({state:e,range:A,match:n})=>{const r=lt(t.getAttributes,void 0,n);if(r===!1||r===null)return null;const{tr:i}=e,a=n[n.length-1],s=n[0];if(a){const c=s.search(/\S/),d=A.from+s.indexOf(a),f=d+a.length;if(by(A.from,A.to,e.doc).filter(g=>g.mark.type.excluded.find(y=>y===t.type&&y!==g.mark.type)).filter(g=>g.to>d).length)return null;f<A.to&&i.delete(f,A.to),d>A.from&&i.delete(A.from+c,d);const m=A.from+c+a.length;i.addMark(A.from+c,m,t.type.create(r||{})),i.removeStoredMark(t.type)}}})}function ZO(t){return new ac({find:t.find,handler:({state:e,range:A,match:n})=>{const r=lt(t.getAttributes,void 0,n)||{},{tr:i}=e,a=A.from;let s=A.to;const c=t.type.create(r);if(n[1]){const d=n[0].lastIndexOf(n[1]);let f=a+d;f>s?f=s:s=f+n[1].length;const h=n[0][n[0].length-1];i.insertText(h,a+n[0].length-1),i.replaceWith(f,s,c)}else n[0]&&i.insert(a-1,t.type.create(r)).delete(i.mapping.map(a),i.mapping.map(s));i.scrollIntoView()}})}function rh(t){return new ac({find:t.find,handler:({state:e,range:A,match:n})=>{const r=e.doc.resolve(A.from),i=lt(t.getAttributes,void 0,n)||{};if(!r.node(-1).canReplaceWith(r.index(-1),r.indexAfter(-1),t.type))return null;e.tr.delete(A.from,A.to).setBlockType(A.from,A.from,t.type,i)}})}function Fs(t){return new ac({find:t.find,handler:({state:e,range:A,match:n,chain:r})=>{const i=lt(t.getAttributes,void 0,n)||{},a=e.tr.delete(A.from,A.to),c=a.doc.resolve(A.from).blockRange(),d=c&&df(c,t.type,i);if(!d)return null;if(a.wrap(c,d),t.keepMarks&&t.editor){const{selection:h,storedMarks:m}=e,{splittableMarks:g}=t.editor.extensionManager,B=m||h.$to.parentOffset&&h.$from.marks();if(B){const y=B.filter(v=>g.includes(v.type.name));a.ensureMarks(y)}}if(t.keepAttributes){const h=t.type.name==="bulletList"||t.type.name==="orderedList"?"listItem":"taskList";r().updateAttributes(h,i).run()}const f=a.doc.resolve(A.from-1).nodeBefore;f&&f.type===t.type&&gi(a.doc,A.from-1)&&(!t.joinPredicate||t.joinPredicate(n,f))&&a.join(A.from-1)}})}class Ar{constructor(e={}){this.type="mark",this.name="mark",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...e},this.name=this.config.name,e.defaultOptions&&Object.keys(e.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=lt(Re(this,"addOptions",{name:this.name}))),this.storage=lt(Re(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(e={}){return new Ar(e)}configure(e={}){const A=this.extend();return A.options=sc(this.options,e),A.storage=lt(Re(A,"addStorage",{name:A.name,options:A.options})),A}extend(e={}){const A=new Ar({...this.config,...e});return A.parent=this,this.child=A,A.name=e.name?e.name:A.parent.name,e.defaultOptions&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${A.name}".`),A.options=lt(Re(A,"addOptions",{name:A.name})),A.storage=lt(Re(A,"addStorage",{name:A.name,options:A.options})),A}static handleExit({editor:e,mark:A}){const{tr:n}=e.state,r=e.state.selection.$from;if(r.pos===r.end()){const a=r.marks();if(!!!a.find(d=>(d==null?void 0:d.type.name)===A.name))return!1;const c=a.find(d=>(d==null?void 0:d.type.name)===A.name);return c&&n.removeStoredMark(c),n.insertText(" ",r.pos),e.view.dispatch(n),!0}return!1}}let wn=class xm{constructor(e={}){this.type="node",this.name="node",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...e},this.name=this.config.name,e.defaultOptions&&Object.keys(e.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=lt(Re(this,"addOptions",{name:this.name}))),this.storage=lt(Re(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(e={}){return new xm(e)}configure(e={}){const A=this.extend();return A.options=sc(this.options,e),A.storage=lt(Re(A,"addStorage",{name:A.name,options:A.options})),A}extend(e={}){const A=new xm({...this.config,...e});return A.parent=this,this.child=A,A.name=e.name?e.name:A.parent.name,e.defaultOptions&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${A.name}".`),A.options=lt(Re(A,"addOptions",{name:A.name})),A.storage=lt(Re(A,"addStorage",{name:A.name,options:A.options})),A}};function ga(t){return new kM({find:t.find,handler:({state:e,range:A,match:n,pasteEvent:r})=>{const i=lt(t.getAttributes,void 0,n,r);if(i===!1||i===null)return null;const{tr:a}=e,s=n[n.length-1],c=n[0];let d=A.to;if(s){const f=c.search(/\S/),h=A.from+c.indexOf(s),m=h+s.length;if(by(A.from,A.to,e.doc).filter(B=>B.mark.type.excluded.find(v=>v===t.type&&v!==B.mark.type)).filter(B=>B.to>h).length)return null;m<A.to&&a.delete(m,A.to),h>A.from&&a.delete(A.from+f,h),d=A.from+f+s.length,a.addMark(A.from+f,d,t.type.create(i||{})),a.removeStoredMark(t.type)}}})}const eN=/(?:^|\s)(==(?!\s+==)((?:[^=]+))==(?!\s+==))$/,tN=/(?:^|\s)(==(?!\s+==)((?:[^=]+))==(?!\s+==))/g,AN=Ar.create({name:"highlight",addOptions(){return{multicolor:!1,HTMLAttributes:{}}},addAttributes(){return this.options.multicolor?{color:{default:null,parseHTML:t=>t.getAttribute("data-color")||t.style.backgroundColor,renderHTML:t=>t.color?{"data-color":t.color,style:`background-color: ${t.color}; color: inherit`}:{}}}:{}},parseHTML(){return[{tag:"mark"}]},renderHTML({HTMLAttributes:t}){return["mark",sA(this.options.HTMLAttributes,t),0]},addCommands(){return{setHighlight:t=>({commands:e})=>e.setMark(this.name,t),toggleHighlight:t=>({commands:e})=>e.toggleMark(this.name,t),unsetHighlight:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-h":()=>this.editor.commands.toggleHighlight()}},addInputRules(){return[ma({find:eN,type:this.type})]},addPasteRules(){return[ga({find:tN,type:this.type})]}}),nN=LA.create({name:"textAlign",addOptions(){return{types:[],alignments:["left","center","right","justify"],defaultAlignment:"left"}},addGlobalAttributes(){return[{types:this.options.types,attributes:{textAlign:{default:this.options.defaultAlignment,parseHTML:t=>t.style.textAlign||this.options.defaultAlignment,renderHTML:t=>t.textAlign===this.options.defaultAlignment?{}:{style:`text-align: ${t.textAlign}`}}}}]},addCommands(){return{setTextAlign:t=>({commands:e})=>this.options.alignments.includes(t)?this.options.types.map(A=>e.updateAttributes(A,{textAlign:t})).every(A=>A):!1,unsetTextAlign:()=>({commands:t})=>this.options.types.map(e=>t.resetAttributes(e,"textAlign")).every(e=>e)}},addKeyboardShortcuts(){return{"Mod-Shift-l":()=>this.editor.commands.setTextAlign("left"),"Mod-Shift-e":()=>this.editor.commands.setTextAlign("center"),"Mod-Shift-r":()=>this.editor.commands.setTextAlign("right"),"Mod-Shift-j":()=>this.editor.commands.setTextAlign("justify")}}}),rN=/^\s*>\s$/,iN=wn.create({name:"blockquote",addOptions(){return{HTMLAttributes:{}}},content:"block+",group:"block",defining:!0,parseHTML(){return[{tag:"blockquote"}]},renderHTML({HTMLAttributes:t}){return["blockquote",sA(this.options.HTMLAttributes,t),0]},addCommands(){return{setBlockquote:()=>({commands:t})=>t.wrapIn(this.name),toggleBlockquote:()=>({commands:t})=>t.toggleWrap(this.name),unsetBlockquote:()=>({commands:t})=>t.lift(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-b":()=>this.editor.commands.toggleBlockquote()}},addInputRules(){return[Fs({find:rN,type:this.type})]}}),aN=/(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/,oN=/(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))/g,sN=/(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))$/,lN=/(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))/g,cN=Ar.create({name:"bold",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"strong"},{tag:"b",getAttrs:t=>t.style.fontWeight!=="normal"&&null},{style:"font-weight",getAttrs:t=>/^(bold(er)?|[5-9]\d{2,})$/.test(t)&&null}]},renderHTML({HTMLAttributes:t}){return["strong",sA(this.options.HTMLAttributes,t),0]},addCommands(){return{setBold:()=>({commands:t})=>t.setMark(this.name),toggleBold:()=>({commands:t})=>t.toggleMark(this.name),unsetBold:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-b":()=>this.editor.commands.toggleBold(),"Mod-B":()=>this.editor.commands.toggleBold()}},addInputRules(){return[ma({find:aN,type:this.type}),ma({find:sN,type:this.type})]},addPasteRules(){return[ga({find:oN,type:this.type}),ga({find:lN,type:this.type})]}}),uN=wn.create({name:"listItem",addOptions(){return{HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}},content:"paragraph block*",defining:!0,parseHTML(){return[{tag:"li"}]},renderHTML({HTMLAttributes:t}){return["li",sA(this.options.HTMLAttributes,t),0]},addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}),Fy=Ar.create({name:"textStyle",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"span",getAttrs:t=>t.hasAttribute("style")?{}:!1}]},renderHTML({HTMLAttributes:t}){return["span",sA(this.options.HTMLAttributes,t),0]},addCommands(){return{removeEmptyTextStyle:()=>({state:t,commands:e})=>{const A=dc(t,this.type);return Object.entries(A).some(([,r])=>!!r)?!0:e.unsetMark(this.name)}}}}),Uy=/^\s*([-+*])\s$/,dN=wn.create({name:"bulletList",addOptions(){return{itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}},group:"block list",content(){return`${this.options.itemTypeName}+`},parseHTML(){return[{tag:"ul"}]},renderHTML({HTMLAttributes:t}){return["ul",sA(this.options.HTMLAttributes,t),0]},addCommands(){return{toggleBulletList:()=>({commands:t,chain:e})=>this.options.keepAttributes?e().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(uN.name,this.editor.getAttributes(Fy.name)).run():t.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-8":()=>this.editor.commands.toggleBulletList()}},addInputRules(){let t=Fs({find:Uy,type:this.type});return(this.options.keepMarks||this.options.keepAttributes)&&(t=Fs({find:Uy,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:()=>this.editor.getAttributes(Fy.name),editor:this.editor})),[t]}}),fN=/(?:^|\s)(`(?!\s+`)((?:[^`]+))`(?!\s+`))$/,hN=/(?:^|\s)(`(?!\s+`)((?:[^`]+))`(?!\s+`))/g,pN=Ar.create({name:"code",addOptions(){return{HTMLAttributes:{}}},excludes:"_",code:!0,exitable:!0,parseHTML(){return[{tag:"code"}]},renderHTML({HTMLAttributes:t}){return["code",sA(this.options.HTMLAttributes,t),0]},addCommands(){return{setCode:()=>({commands:t})=>t.setMark(this.name),toggleCode:()=>({commands:t})=>t.toggleMark(this.name),unsetCode:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-e":()=>this.editor.commands.toggleCode()}},addInputRules(){return[ma({find:fN,type:this.type})]},addPasteRules(){return[ga({find:hN,type:this.type})]}}),mN=/^```([a-z]+)?[\s\n]$/,gN=/^~~~([a-z]+)?[\s\n]$/,BN=wn.create({name:"codeBlock",addOptions(){return{languageClassPrefix:"language-",exitOnTripleEnter:!0,exitOnArrowDown:!0,HTMLAttributes:{}}},content:"text*",marks:"",group:"block",code:!0,defining:!0,addAttributes(){return{language:{default:null,parseHTML:t=>{var e;const{languageClassPrefix:A}=this.options,i=[...((e=t.firstElementChild)===null||e===void 0?void 0:e.classList)||[]].filter(a=>a.startsWith(A)).map(a=>a.replace(A,""))[0];return i||null},rendered:!1}}},parseHTML(){return[{tag:"pre",preserveWhitespace:"full"}]},renderHTML({node:t,HTMLAttributes:e}){return["pre",sA(this.options.HTMLAttributes,e),["code",{class:t.attrs.language?this.options.languageClassPrefix+t.attrs.language:null},0]]},addCommands(){return{setCodeBlock:t=>({commands:e})=>e.setNode(this.name,t),toggleCodeBlock:t=>({commands:e})=>e.toggleNode(this.name,"paragraph",t)}},addKeyboardShortcuts(){return{"Mod-Alt-c":()=>this.editor.commands.toggleCodeBlock(),Backspace:()=>{const{empty:t,$anchor:e}=this.editor.state.selection,A=e.pos===1;return!t||e.parent.type.name!==this.name?!1:A||!e.parent.textContent.length?this.editor.commands.clearNodes():!1},Enter:({editor:t})=>{if(!this.options.exitOnTripleEnter)return!1;const{state:e}=t,{selection:A}=e,{$from:n,empty:r}=A;if(!r||n.parent.type!==this.type)return!1;const i=n.parentOffset===n.parent.nodeSize-2,a=n.parent.textContent.endsWith(`
94
116
 
95
- `);return!i||!s?!1:t.chain().command(({tr:a})=>(a.delete(n.pos-2,n.pos),!0)).exitCode().run()},ArrowDown:({editor:t})=>{if(!this.options.exitOnArrowDown)return!1;const{state:e}=t,{selection:A,doc:n}=e,{$from:r,empty:i}=A;if(!i||r.parent.type!==this.type||!(r.parentOffset===r.parent.nodeSize-2))return!1;const a=r.after();return a===void 0||n.nodeAt(a)?!1:t.commands.exitCode()}}},addInputRules(){return[Bu({find:TI,type:this.type,getAttributes:t=>({language:t[1]})}),Bu({find:_I,type:this.type,getAttributes:t=>({language:t[1]})})]},addProseMirrorPlugins(){return[new pt({key:new wn("codeBlockVSCodeHandler"),props:{handlePaste:(t,e)=>{if(!e.clipboardData||this.editor.isActive(this.type.name))return!1;const A=e.clipboardData.getData("text/plain"),n=e.clipboardData.getData("vscode-editor-data"),r=n?JSON.parse(n):void 0,i=r==null?void 0:r.mode;if(!A||!i)return!1;const{tr:s}=t.state;return t.state.selection.from===t.state.doc.nodeSize-(1+t.state.selection.$to.depth*2)?s.insert(t.state.selection.from-1,this.type.create({language:i})):s.replaceSelectionWith(this.type.create({language:i})),s.setSelection(ye.near(s.doc.resolve(Math.max(0,s.selection.from-2)))),s.insertText(A.replace(/\r\n?/g,`
96
- `)),s.setMeta("paste",!0),t.dispatch(s),!0}}})]}}),OI=vt.create({name:"doc",topNode:!0,content:"block+"});function LI(t={}){return new pt({view(e){return new kI(e,t)}})}class kI{constructor(e,A){var n;this.editorView=e,this.cursorPos=null,this.element=null,this.timeout=-1,this.width=(n=A.width)!==null&&n!==void 0?n:1,this.color=A.color===!1?void 0:A.color||"black",this.class=A.class,this.handlers=["dragover","dragend","drop","dragleave"].map(r=>{let i=s=>{this[r](s)};return e.dom.addEventListener(r,i),{name:r,handler:i}})}destroy(){this.handlers.forEach(({name:e,handler:A})=>this.editorView.dom.removeEventListener(e,A))}update(e,A){this.cursorPos!=null&&A.doc!=e.state.doc&&(this.cursorPos>e.state.doc.content.size?this.setCursor(null):this.updateOverlay())}setCursor(e){e!=this.cursorPos&&(this.cursorPos=e,e==null?(this.element.parentNode.removeChild(this.element),this.element=null):this.updateOverlay())}updateOverlay(){let e=this.editorView.state.doc.resolve(this.cursorPos),A=!e.parent.inlineContent,n;if(A){let a=e.nodeBefore,c=e.nodeAfter;if(a||c){let u=this.editorView.nodeDOM(this.cursorPos-(a?a.nodeSize:0));if(u){let f=u.getBoundingClientRect(),p=a?f.bottom:f.top;a&&c&&(p=(p+this.editorView.nodeDOM(this.cursorPos).getBoundingClientRect().top)/2),n={left:f.left,right:f.right,top:p-this.width/2,bottom:p+this.width/2}}}}if(!n){let a=this.editorView.coordsAtPos(this.cursorPos);n={left:a.left-this.width/2,right:a.left+this.width/2,top:a.top,bottom:a.bottom}}let r=this.editorView.dom.offsetParent;this.element||(this.element=r.appendChild(document.createElement("div")),this.class&&(this.element.className=this.class),this.element.style.cssText="position: absolute; z-index: 50; pointer-events: none;",this.color&&(this.element.style.backgroundColor=this.color)),this.element.classList.toggle("prosemirror-dropcursor-block",A),this.element.classList.toggle("prosemirror-dropcursor-inline",!A);let i,s;if(!r||r==document.body&&getComputedStyle(r).position=="static")i=-pageXOffset,s=-pageYOffset;else{let a=r.getBoundingClientRect();i=a.left-r.scrollLeft,s=a.top-r.scrollTop}this.element.style.left=n.left-i+"px",this.element.style.top=n.top-s+"px",this.element.style.width=n.right-n.left+"px",this.element.style.height=n.bottom-n.top+"px"}scheduleRemoval(e){clearTimeout(this.timeout),this.timeout=setTimeout(()=>this.setCursor(null),e)}dragover(e){if(!this.editorView.editable)return;let A=this.editorView.posAtCoords({left:e.clientX,top:e.clientY}),n=A&&A.inside>=0&&this.editorView.state.doc.nodeAt(A.inside),r=n&&n.type.spec.disableDropCursor,i=typeof r=="function"?r(this.editorView,A,e):r;if(A&&!i){let s=A.pos;if(this.editorView.dragging&&this.editorView.dragging.slice){let a=$h(this.editorView.state.doc,s,this.editorView.dragging.slice);a!=null&&(s=a)}this.setCursor(s),this.scheduleRemoval(5e3)}}dragend(){this.scheduleRemoval(20)}drop(){this.scheduleRemoval(20)}dragleave(e){(e.target==this.editorView.dom||!this.editorView.dom.contains(e.relatedTarget))&&this.setCursor(null)}}const HI=YA.create({name:"dropCursor",addOptions(){return{color:"currentColor",width:1,class:void 0}},addProseMirrorPlugins(){return[LI(this.options)]}});class mA extends Fe{constructor(e){super(e,e)}map(e,A){let n=e.resolve(A.map(this.head));return mA.valid(n)?new mA(n):Fe.near(n)}content(){return j.empty}eq(e){return e instanceof mA&&e.head==this.head}toJSON(){return{type:"gapcursor",pos:this.head}}static fromJSON(e,A){if(typeof A.pos!="number")throw new RangeError("Invalid input for GapCursor.fromJSON");return new mA(e.resolve(A.pos))}getBookmark(){return new wu(this.anchor)}static valid(e){let A=e.parent;if(A.isTextblock||!NI(e)||!DI(e))return!1;let n=A.type.spec.allowGapCursor;if(n!=null)return n;let r=A.contentMatchAt(e.index()).defaultType;return r&&r.isTextblock}static findGapCursorFrom(e,A,n=!1){e:for(;;){if(!n&&mA.valid(e))return e;let r=e.pos,i=null;for(let s=e.depth;;s--){let a=e.node(s);if(A>0?e.indexAfter(s)<a.childCount:e.index(s)>0){i=a.child(A>0?e.indexAfter(s):e.index(s)-1);break}else if(s==0)return null;r+=A;let c=e.doc.resolve(r);if(mA.valid(c))return c}for(;;){let s=A>0?i.firstChild:i.lastChild;if(!s){if(i.isAtom&&!i.isText&&!fe.isSelectable(i)){e=e.doc.resolve(r+i.nodeSize*A),n=!1;continue e}break}i=s,r+=A;let a=e.doc.resolve(r);if(mA.valid(a))return a}return null}}}mA.prototype.visible=!1,mA.findFrom=mA.findGapCursorFrom,Fe.jsonID("gapcursor",mA);class wu{constructor(e){this.pos=e}map(e){return new wu(e.map(this.pos))}resolve(e){let A=e.resolve(this.pos);return mA.valid(A)?new mA(A):Fe.near(A)}}function NI(t){for(let e=t.depth;e>=0;e--){let A=t.index(e),n=t.node(e);if(A==0){if(n.type.spec.isolating)return!0;continue}for(let r=n.child(A-1);;r=r.lastChild){if(r.childCount==0&&!r.inlineContent||r.isAtom||r.type.spec.isolating)return!0;if(r.inlineContent)return!1}}return!0}function DI(t){for(let e=t.depth;e>=0;e--){let A=t.indexAfter(e),n=t.node(e);if(A==n.childCount){if(n.type.spec.isolating)return!0;continue}for(let r=n.child(A);;r=r.firstChild){if(r.childCount==0&&!r.inlineContent||r.isAtom||r.type.spec.isolating)return!0;if(r.inlineContent)return!1}}return!0}function MI(){return new pt({props:{decorations:PI,createSelectionBetween(t,e,A){return e.pos==A.pos&&mA.valid(A)?new mA(A):null},handleClick:KI,handleKeyDown:RI,handleDOMEvents:{beforeinput:VI}}})}const RI=gg({ArrowLeft:ma("horiz",-1),ArrowRight:ma("horiz",1),ArrowUp:ma("vert",-1),ArrowDown:ma("vert",1)});function ma(t,e){const A=t=="vert"?e>0?"down":"up":e>0?"right":"left";return function(n,r,i){let s=n.selection,a=e>0?s.$to:s.$from,c=s.empty;if(s instanceof ye){if(!i.endOfTextblock(A)||a.depth==0)return!1;c=!1,a=n.doc.resolve(e>0?a.after():a.before())}let u=mA.findGapCursorFrom(a,e,c);return u?(r&&r(n.tr.setSelection(new mA(u))),!0):!1}}function KI(t,e,A){if(!t||!t.editable)return!1;let n=t.state.doc.resolve(e);if(!mA.valid(n))return!1;let r=t.posAtCoords({left:A.clientX,top:A.clientY});return r&&r.inside>-1&&fe.isSelectable(t.state.doc.nodeAt(r.inside))?!1:(t.dispatch(t.state.tr.setSelection(new mA(n))),!0)}function VI(t,e){if(e.inputType!="insertCompositionText"||!(t.state.selection instanceof mA))return!1;let{$from:A}=t.state.selection,n=A.parent.contentMatchAt(A.index()).findWrapping(t.state.schema.nodes.text);if(!n)return!1;let r=Y.empty;for(let s=n.length-1;s>=0;s--)r=Y.from(n[s].createAndFill(null,r));let i=t.state.tr.replace(A.pos,A.pos,new j(r,0,0));return i.setSelection(ye.near(i.doc.resolve(A.pos+1))),t.dispatch(i),!1}function PI(t){if(!(t.selection instanceof mA))return null;let e=document.createElement("div");return e.className="ProseMirror-gapcursor",IA.create(t.doc,[Kt.widget(t.selection.head,e,{key:"gapcursor"})])}const GI=YA.create({name:"gapCursor",addProseMirrorPlugins(){return[MI()]},extendNodeSchema(t){var e;const A={name:t.name,options:t.options,storage:t.storage};return{allowGapCursor:(e=be(ae(t,"allowGapCursor",A)))!==null&&e!==void 0?e:null}}}),$I=vt.create({name:"hardBreak",addOptions(){return{keepMarks:!0,HTMLAttributes:{}}},inline:!0,group:"inline",selectable:!1,parseHTML(){return[{tag:"br"}]},renderHTML({HTMLAttributes:t}){return["br",FA(this.options.HTMLAttributes,t)]},renderText(){return`
97
- `},addCommands(){return{setHardBreak:()=>({commands:t,chain:e,state:A,editor:n})=>t.first([()=>t.exitCode(),()=>t.command(()=>{const{selection:r,storedMarks:i}=A;if(r.$from.parent.type.spec.isolating)return!1;const{keepMarks:s}=this.options,{splittableMarks:a}=n.extensionManager,c=i||r.$to.parentOffset&&r.$from.marks();return e().insertContent({type:this.name}).command(({tr:u,dispatch:f})=>{if(f&&c&&s){const p=c.filter(g=>a.includes(g.type.name));u.ensureMarks(p)}return!0}).run()})])}},addKeyboardShortcuts(){return{"Mod-Enter":()=>this.editor.commands.setHardBreak(),"Shift-Enter":()=>this.editor.commands.setHardBreak()}}}),WI=vt.create({name:"heading",addOptions(){return{levels:[1,2,3,4,5,6],HTMLAttributes:{}}},content:"inline*",group:"block",defining:!0,addAttributes(){return{level:{default:1,rendered:!1}}},parseHTML(){return this.options.levels.map(t=>({tag:`h${t}`,attrs:{level:t}}))},renderHTML({node:t,HTMLAttributes:e}){return[`h${this.options.levels.includes(t.attrs.level)?t.attrs.level:this.options.levels[0]}`,FA(this.options.HTMLAttributes,e),0]},addCommands(){return{setHeading:t=>({commands:e})=>this.options.levels.includes(t.level)?e.setNode(this.name,t):!1,toggleHeading:t=>({commands:e})=>this.options.levels.includes(t.level)?e.toggleNode(this.name,"paragraph",t):!1}},addKeyboardShortcuts(){return this.options.levels.reduce((t,e)=>({...t,[`Mod-Alt-${e}`]:()=>this.editor.commands.toggleHeading({level:e})}),{})},addInputRules(){return this.options.levels.map(t=>Bu({find:new RegExp(`^(#{1,${t}})\\s$`),type:this.type,getAttributes:{level:t}}))}});var Ba=200,kA=function(){};kA.prototype.append=function(e){return e.length?(e=kA.from(e),!this.length&&e||e.length<Ba&&this.leafAppend(e)||this.length<Ba&&e.leafPrepend(this)||this.appendInner(e)):this},kA.prototype.prepend=function(e){return e.length?kA.from(e).append(this):this},kA.prototype.appendInner=function(e){return new JI(this,e)},kA.prototype.slice=function(e,A){return e===void 0&&(e=0),A===void 0&&(A=this.length),e>=A?kA.empty:this.sliceInner(Math.max(0,e),Math.min(this.length,A))},kA.prototype.get=function(e){if(!(e<0||e>=this.length))return this.getInner(e)},kA.prototype.forEach=function(e,A,n){A===void 0&&(A=0),n===void 0&&(n=this.length),A<=n?this.forEachInner(e,A,n,0):this.forEachInvertedInner(e,A,n,0)},kA.prototype.map=function(e,A,n){A===void 0&&(A=0),n===void 0&&(n=this.length);var r=[];return this.forEach(function(i,s){return r.push(e(i,s))},A,n),r},kA.from=function(e){return e instanceof kA?e:e&&e.length?new Pg(e):kA.empty};var Pg=function(t){function e(n){t.call(this),this.values=n}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var A={length:{configurable:!0},depth:{configurable:!0}};return e.prototype.flatten=function(){return this.values},e.prototype.sliceInner=function(r,i){return r==0&&i==this.length?this:new e(this.values.slice(r,i))},e.prototype.getInner=function(r){return this.values[r]},e.prototype.forEachInner=function(r,i,s,a){for(var c=i;c<s;c++)if(r(this.values[c],a+c)===!1)return!1},e.prototype.forEachInvertedInner=function(r,i,s,a){for(var c=i-1;c>=s;c--)if(r(this.values[c],a+c)===!1)return!1},e.prototype.leafAppend=function(r){if(this.length+r.length<=Ba)return new e(this.values.concat(r.flatten()))},e.prototype.leafPrepend=function(r){if(this.length+r.length<=Ba)return new e(r.flatten().concat(this.values))},A.length.get=function(){return this.values.length},A.depth.get=function(){return 0},Object.defineProperties(e.prototype,A),e}(kA);kA.empty=new Pg([]);var JI=function(t){function e(A,n){t.call(this),this.left=A,this.right=n,this.length=A.length+n.length,this.depth=Math.max(A.depth,n.depth)+1}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.flatten=function(){return this.left.flatten().concat(this.right.flatten())},e.prototype.getInner=function(n){return n<this.left.length?this.left.get(n):this.right.get(n-this.left.length)},e.prototype.forEachInner=function(n,r,i,s){var a=this.left.length;if(r<a&&this.left.forEachInner(n,r,Math.min(i,a),s)===!1||i>a&&this.right.forEachInner(n,Math.max(r-a,0),Math.min(this.length,i)-a,s+a)===!1)return!1},e.prototype.forEachInvertedInner=function(n,r,i,s){var a=this.left.length;if(r>a&&this.right.forEachInvertedInner(n,r-a,Math.max(i,a)-a,s+a)===!1||i<a&&this.left.forEachInvertedInner(n,Math.min(r,a),i,s)===!1)return!1},e.prototype.sliceInner=function(n,r){if(n==0&&r==this.length)return this;var i=this.left.length;return r<=i?this.left.slice(n,r):n>=i?this.right.slice(n-i,r-i):this.left.slice(n,i).append(this.right.slice(0,r-i))},e.prototype.leafAppend=function(n){var r=this.right.leafAppend(n);if(r)return new e(this.left,r)},e.prototype.leafPrepend=function(n){var r=this.left.leafPrepend(n);if(r)return new e(r,this.right)},e.prototype.appendInner=function(n){return this.left.depth>=Math.max(this.right.depth,n.depth)+1?new e(this.left,new e(this.right,n)):new e(this,n)},e}(kA);const XI=500;class on{constructor(e,A){this.items=e,this.eventCount=A}popEvent(e,A){if(this.eventCount==0)return null;let n=this.items.length;for(;;n--)if(this.items.get(n-1).selection){--n;break}let r,i;A&&(r=this.remapping(n,this.items.length),i=r.maps.length);let s=e.tr,a,c,u=[],f=[];return this.items.forEach((p,g)=>{if(!p.step){r||(r=this.remapping(n,g+1),i=r.maps.length),i--,f.push(p);return}if(r){f.push(new Qn(p.map));let B=p.step.map(r.slice(i)),w;B&&s.maybeStep(B).doc&&(w=s.mapping.maps[s.mapping.maps.length-1],u.push(new Qn(w,void 0,void 0,u.length+f.length))),i--,w&&r.appendMap(w,i)}else s.maybeStep(p.step);if(p.selection)return a=r?p.selection.map(r.slice(i)):p.selection,c=new on(this.items.slice(0,n).append(f.reverse().concat(u)),this.eventCount-1),!1},this.items.length,0),{remaining:c,transform:s,selection:a}}addTransform(e,A,n,r){let i=[],s=this.eventCount,a=this.items,c=!r&&a.length?a.get(a.length-1):null;for(let f=0;f<e.steps.length;f++){let p=e.steps[f].invert(e.docs[f]),g=new Qn(e.mapping.maps[f],p,A),B;(B=c&&c.merge(g))&&(g=B,f?i.pop():a=a.slice(0,a.length-1)),i.push(g),A&&(s++,A=void 0),r||(c=g)}let u=s-n.depth;return u>zI&&(a=YI(a,u),s-=u),new on(a.append(i),s)}remapping(e,A){let n=new bi;return this.items.forEach((r,i)=>{let s=r.mirrorOffset!=null&&i-r.mirrorOffset>=e?n.maps.length-r.mirrorOffset:void 0;n.appendMap(r.map,s)},e,A),n}addMaps(e){return this.eventCount==0?this:new on(this.items.append(e.map(A=>new Qn(A))),this.eventCount)}rebased(e,A){if(!this.eventCount)return this;let n=[],r=Math.max(0,this.items.length-A),i=e.mapping,s=e.steps.length,a=this.eventCount;this.items.forEach(g=>{g.selection&&a--},r);let c=A;this.items.forEach(g=>{let B=i.getMirror(--c);if(B==null)return;s=Math.min(s,B);let w=i.maps[B];if(g.step){let Q=e.steps[B].invert(e.docs[B]),b=g.selection&&g.selection.map(i.slice(c+1,B));b&&a++,n.push(new Qn(w,Q,b))}else n.push(new Qn(w))},r);let u=[];for(let g=A;g<s;g++)u.push(new Qn(i.maps[g]));let f=this.items.slice(0,r).append(u).append(n),p=new on(f,a);return p.emptyItemCount()>XI&&(p=p.compress(this.items.length-n.length)),p}emptyItemCount(){let e=0;return this.items.forEach(A=>{A.step||e++}),e}compress(e=this.items.length){let A=this.remapping(0,e),n=A.maps.length,r=[],i=0;return this.items.forEach((s,a)=>{if(a>=e)r.push(s),s.selection&&i++;else if(s.step){let c=s.step.map(A.slice(n)),u=c&&c.getMap();if(n--,u&&A.appendMap(u,n),c){let f=s.selection&&s.selection.map(A.slice(n));f&&i++;let p=new Qn(u.invert(),c,f),g,B=r.length-1;(g=r.length&&r[B].merge(p))?r[B]=g:r.push(p)}}else s.map&&n--},this.items.length,0),new on(kA.from(r.reverse()),i)}}on.empty=new on(kA.empty,0);function YI(t,e){let A;return t.forEach((n,r)=>{if(n.selection&&e--==0)return A=r,!1}),t.slice(A)}class Qn{constructor(e,A,n,r){this.map=e,this.step=A,this.selection=n,this.mirrorOffset=r}merge(e){if(this.step&&e.step&&!e.selection){let A=e.step.merge(this.step);if(A)return new Qn(A.getMap().invert(),A,this.selection)}}}class wr{constructor(e,A,n,r,i){this.done=e,this.undone=A,this.prevRanges=n,this.prevTime=r,this.prevComposition=i}}const zI=20;function qI(t,e,A,n){let r=A.getMeta(ni),i;if(r)return r.historyState;A.getMeta(e1)&&(t=new wr(t.done,t.undone,null,0,-1));let s=A.getMeta("appendedTransaction");if(A.steps.length==0)return t;if(s&&s.getMeta(ni))return s.getMeta(ni).redo?new wr(t.done.addTransform(A,void 0,n,wa(e)),t.undone,Gg(A.mapping.maps[A.steps.length-1]),t.prevTime,t.prevComposition):new wr(t.done,t.undone.addTransform(A,void 0,n,wa(e)),null,t.prevTime,t.prevComposition);if(A.getMeta("addToHistory")!==!1&&!(s&&s.getMeta("addToHistory")===!1)){let a=A.getMeta("composition"),c=t.prevTime==0||!s&&t.prevComposition!=a&&(t.prevTime<(A.time||0)-n.newGroupDelay||!ZI(A,t.prevRanges)),u=s?Cu(t.prevRanges,A.mapping):Gg(A.mapping.maps[A.steps.length-1]);return new wr(t.done.addTransform(A,c?e.selection.getBookmark():void 0,n,wa(e)),on.empty,u,A.time,a??t.prevComposition)}else return(i=A.getMeta("rebased"))?new wr(t.done.rebased(A,i),t.undone.rebased(A,i),Cu(t.prevRanges,A.mapping),t.prevTime,t.prevComposition):new wr(t.done.addMaps(A.mapping.maps),t.undone.addMaps(A.mapping.maps),Cu(t.prevRanges,A.mapping),t.prevTime,t.prevComposition)}function ZI(t,e){if(!e)return!1;if(!t.docChanged)return!0;let A=!1;return t.mapping.maps[0].forEach((n,r)=>{for(let i=0;i<e.length;i+=2)n<=e[i+1]&&r>=e[i]&&(A=!0)}),A}function Gg(t){let e=[];return t.forEach((A,n,r,i)=>e.push(r,i)),e}function Cu(t,e){if(!t)return null;let A=[];for(let n=0;n<t.length;n+=2){let r=e.map(t[n],1),i=e.map(t[n+1],-1);r<=i&&A.push(r,i)}return A}function jI(t,e,A){let n=wa(e),r=ni.get(e).spec.config,i=(A?t.undone:t.done).popEvent(e,n);if(!i)return null;let s=i.selection.resolve(i.transform.doc),a=(A?t.done:t.undone).addTransform(i.transform,e.selection.getBookmark(),r,n),c=new wr(A?a:i.remaining,A?i.remaining:a,null,0,-1);return i.transform.setSelection(s).setMeta(ni,{redo:A,historyState:c})}let yu=!1,$g=null;function wa(t){let e=t.plugins;if($g!=e){yu=!1,$g=e;for(let A=0;A<e.length;A++)if(e[A].spec.historyPreserveItems){yu=!0;break}}return yu}const ni=new wn("history"),e1=new wn("closeHistory");function A1(t={}){return t={depth:t.depth||100,newGroupDelay:t.newGroupDelay||500},new pt({key:ni,state:{init(){return new wr(on.empty,on.empty,null,0,-1)},apply(e,A,n){return qI(A,n,e,t)}},config:t,props:{handleDOMEvents:{beforeinput(e,A){let n=A.inputType,r=n=="historyUndo"?Jg:n=="historyRedo"?Xg:null;return r?(A.preventDefault(),r(e.state,e.dispatch)):!1}}}})}function Wg(t,e){return(A,n)=>{let r=ni.getState(A);if(!r||(t?r.undone:r.done).eventCount==0)return!1;if(n){let i=jI(r,A,t);i&&n(e?i.scrollIntoView():i)}return!0}}const Jg=Wg(!1,!0),Xg=Wg(!0,!0),t1=YA.create({name:"history",addOptions(){return{depth:100,newGroupDelay:500}},addCommands(){return{undo:()=>({state:t,dispatch:e})=>Jg(t,e),redo:()=>({state:t,dispatch:e})=>Xg(t,e)}},addProseMirrorPlugins(){return[A1(this.options)]},addKeyboardShortcuts(){return{"Mod-z":()=>this.editor.commands.undo(),"Shift-Mod-z":()=>this.editor.commands.redo(),"Mod-y":()=>this.editor.commands.redo(),"Mod-я":()=>this.editor.commands.undo(),"Shift-Mod-я":()=>this.editor.commands.redo()}}}),n1=vt.create({name:"horizontalRule",addOptions(){return{HTMLAttributes:{}}},group:"block",parseHTML(){return[{tag:"hr"}]},renderHTML({HTMLAttributes:t}){return["hr",FA(this.options.HTMLAttributes,t)]},addCommands(){return{setHorizontalRule:()=>({chain:t,state:e})=>{const{$to:A}=e.selection,n=t();return A.parentOffset===0?n.insertContentAt(Math.max(A.pos-2,0),{type:this.name}):n.insertContent({type:this.name}),n.command(({tr:r,dispatch:i})=>{var s;if(i){const{$to:a}=r.selection,c=a.end();if(a.nodeAfter)a.nodeAfter.isTextblock?r.setSelection(ye.create(r.doc,a.pos+1)):a.nodeAfter.isBlock?r.setSelection(fe.create(r.doc,a.pos)):r.setSelection(ye.create(r.doc,a.pos));else{const u=(s=a.parent.type.contentMatch.defaultType)===null||s===void 0?void 0:s.create();u&&(r.insert(c,u),r.setSelection(ye.create(r.doc,c+1)))}r.scrollIntoView()}return!0}).run()}}},addInputRules(){return[dI({find:/^(?:---|—-|___\s|\*\*\*\s)$/,type:this.type})]}}),r1=/(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))$/,i1=/(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))/g,s1=/(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))$/,o1=/(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))/g,a1=sn.create({name:"italic",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"em"},{tag:"i",getAttrs:t=>t.style.fontStyle!=="normal"&&null},{style:"font-style=italic"}]},renderHTML({HTMLAttributes:t}){return["em",FA(this.options.HTMLAttributes,t),0]},addCommands(){return{setItalic:()=>({commands:t})=>t.setMark(this.name),toggleItalic:()=>({commands:t})=>t.toggleMark(this.name),unsetItalic:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-i":()=>this.editor.commands.toggleItalic(),"Mod-I":()=>this.editor.commands.toggleItalic()}},addInputRules(){return[Ai({find:r1,type:this.type}),Ai({find:s1,type:this.type})]},addPasteRules(){return[ti({find:i1,type:this.type}),ti({find:o1,type:this.type})]}}),l1=vt.create({name:"listItem",addOptions(){return{HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}},content:"paragraph block*",defining:!0,parseHTML(){return[{tag:"li"}]},renderHTML({HTMLAttributes:t}){return["li",FA(this.options.HTMLAttributes,t),0]},addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}),c1=vt.create({name:"listItem",addOptions(){return{HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}},content:"paragraph block*",defining:!0,parseHTML(){return[{tag:"li"}]},renderHTML({HTMLAttributes:t}){return["li",FA(this.options.HTMLAttributes,t),0]},addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}),Yg=sn.create({name:"textStyle",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"span",getAttrs:t=>t.hasAttribute("style")?{}:!1}]},renderHTML({HTMLAttributes:t}){return["span",FA(this.options.HTMLAttributes,t),0]},addCommands(){return{removeEmptyTextStyle:()=>({state:t,commands:e})=>{const A=pa(t,this.type);return Object.entries(A).some(([,r])=>!!r)?!0:e.unsetMark(this.name)}}}}),zg=/^(\d+)\.\s$/,u1=vt.create({name:"orderedList",addOptions(){return{itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}},group:"block list",content(){return`${this.options.itemTypeName}+`},addAttributes(){return{start:{default:1,parseHTML:t=>t.hasAttribute("start")?parseInt(t.getAttribute("start")||"",10):1}}},parseHTML(){return[{tag:"ol"}]},renderHTML({HTMLAttributes:t}){const{start:e,...A}=t;return e===1?["ol",FA(this.options.HTMLAttributes,A),0]:["ol",FA(this.options.HTMLAttributes,t),0]},addCommands(){return{toggleOrderedList:()=>({commands:t,chain:e})=>this.options.keepAttributes?e().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(c1.name,this.editor.getAttributes(Yg.name)).run():t.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-7":()=>this.editor.commands.toggleOrderedList()}},addInputRules(){let t=Ks({find:zg,type:this.type,getAttributes:e=>({start:+e[1]}),joinPredicate:(e,A)=>A.childCount+A.attrs.start===+e[1]});return(this.options.keepMarks||this.options.keepAttributes)&&(t=Ks({find:zg,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:e=>({start:+e[1],...this.editor.getAttributes(Yg.name)}),joinPredicate:(e,A)=>A.childCount+A.attrs.start===+e[1],editor:this.editor})),[t]}}),f1=vt.create({name:"paragraph",priority:1e3,addOptions(){return{HTMLAttributes:{}}},group:"block",content:"inline*",parseHTML(){return[{tag:"p"}]},renderHTML({HTMLAttributes:t}){return["p",FA(this.options.HTMLAttributes,t),0]},addCommands(){return{setParagraph:()=>({commands:t})=>t.setNode(this.name)}},addKeyboardShortcuts(){return{"Mod-Alt-0":()=>this.editor.commands.setParagraph()}}}),d1=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))$/,h1=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))/g,p1=sn.create({name:"strike",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"s"},{tag:"del"},{tag:"strike"},{style:"text-decoration",consuming:!1,getAttrs:t=>t.includes("line-through")?{}:!1}]},renderHTML({HTMLAttributes:t}){return["s",FA(this.options.HTMLAttributes,t),0]},addCommands(){return{setStrike:()=>({commands:t})=>t.setMark(this.name),toggleStrike:()=>({commands:t})=>t.toggleMark(this.name),unsetStrike:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-s":()=>this.editor.commands.toggleStrike()}},addInputRules(){return[Ai({find:d1,type:this.type})]},addPasteRules(){return[ti({find:h1,type:this.type})]}}),g1=vt.create({name:"text",group:"inline"}),m1=YA.create({name:"starterKit",addExtensions(){var t,e,A,n,r,i,s,a,c,u,f,p,g,B,w,Q,b,v;const _=[];return this.options.blockquote!==!1&&_.push(wI.configure((t=this.options)===null||t===void 0?void 0:t.blockquote)),this.options.bold!==!1&&_.push(FI.configure((e=this.options)===null||e===void 0?void 0:e.bold)),this.options.bulletList!==!1&&_.push(UI.configure((A=this.options)===null||A===void 0?void 0:A.bulletList)),this.options.code!==!1&&_.push(SI.configure((n=this.options)===null||n===void 0?void 0:n.code)),this.options.codeBlock!==!1&&_.push(xI.configure((r=this.options)===null||r===void 0?void 0:r.codeBlock)),this.options.document!==!1&&_.push(OI.configure((i=this.options)===null||i===void 0?void 0:i.document)),this.options.dropcursor!==!1&&_.push(HI.configure((s=this.options)===null||s===void 0?void 0:s.dropcursor)),this.options.gapcursor!==!1&&_.push(GI.configure((a=this.options)===null||a===void 0?void 0:a.gapcursor)),this.options.hardBreak!==!1&&_.push($I.configure((c=this.options)===null||c===void 0?void 0:c.hardBreak)),this.options.heading!==!1&&_.push(WI.configure((u=this.options)===null||u===void 0?void 0:u.heading)),this.options.history!==!1&&_.push(t1.configure((f=this.options)===null||f===void 0?void 0:f.history)),this.options.horizontalRule!==!1&&_.push(n1.configure((p=this.options)===null||p===void 0?void 0:p.horizontalRule)),this.options.italic!==!1&&_.push(a1.configure((g=this.options)===null||g===void 0?void 0:g.italic)),this.options.listItem!==!1&&_.push(l1.configure((B=this.options)===null||B===void 0?void 0:B.listItem)),this.options.orderedList!==!1&&_.push(u1.configure((w=this.options)===null||w===void 0?void 0:w.orderedList)),this.options.paragraph!==!1&&_.push(f1.configure((Q=this.options)===null||Q===void 0?void 0:Q.paragraph)),this.options.strike!==!1&&_.push(p1.configure((b=this.options)===null||b===void 0?void 0:b.strike)),this.options.text!==!1&&_.push(g1.configure((v=this.options)===null||v===void 0?void 0:v.text)),_}});var B1="tippy-box",qg="tippy-content",w1="tippy-backdrop",Zg="tippy-arrow",jg="tippy-svg-arrow",ri={passive:!0,capture:!0},em=function(){return document.body};function C1(t,e){return{}.hasOwnProperty.call(t,e)}function Eu(t,e,A){if(Array.isArray(t)){var n=t[e];return n??(Array.isArray(A)?A[e]:A)}return t}function Qu(t,e){var A={}.toString.call(t);return A.indexOf("[object")===0&&A.indexOf(e+"]")>-1}function Am(t,e){return typeof t=="function"?t.apply(void 0,e):t}function tm(t,e){if(e===0)return t;var A;return function(n){clearTimeout(A),A=setTimeout(function(){t(n)},e)}}function y1(t,e){var A=Object.assign({},t);return e.forEach(function(n){delete A[n]}),A}function E1(t){return t.split(/\s+/).filter(Boolean)}function Ri(t){return[].concat(t)}function nm(t,e){t.indexOf(e)===-1&&t.push(e)}function Q1(t){return t.filter(function(e,A){return t.indexOf(e)===A})}function F1(t){return t.split("-")[0]}function Ca(t){return[].slice.call(t)}function rm(t){return Object.keys(t).reduce(function(e,A){return t[A]!==void 0&&(e[A]=t[A]),e},{})}function Vs(){return document.createElement("div")}function Ps(t){return["Element","Fragment"].some(function(e){return Qu(t,e)})}function b1(t){return Qu(t,"NodeList")}function U1(t){return Qu(t,"MouseEvent")}function v1(t){return!!(t&&t._tippy&&t._tippy.reference===t)}function I1(t){return Ps(t)?[t]:b1(t)?Ca(t):Array.isArray(t)?t:Ca(document.querySelectorAll(t))}function Fu(t,e){t.forEach(function(A){A&&(A.style.transitionDuration=e+"ms")})}function im(t,e){t.forEach(function(A){A&&A.setAttribute("data-state",e)})}function S1(t){var e,A=Ri(t),n=A[0];return n!=null&&(e=n.ownerDocument)!=null&&e.body?n.ownerDocument:document}function T1(t,e){var A=e.clientX,n=e.clientY;return t.every(function(r){var i=r.popperRect,s=r.popperState,a=r.props,c=a.interactiveBorder,u=F1(s.placement),f=s.modifiersData.offset;if(!f)return!0;var p=u==="bottom"?f.top.y:0,g=u==="top"?f.bottom.y:0,B=u==="right"?f.left.x:0,w=u==="left"?f.right.x:0,Q=i.top-n+p>c,b=n-i.bottom-g>c,v=i.left-A+B>c,_=A-i.right-w>c;return Q||b||v||_})}function bu(t,e,A){var n=e+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(r){t[n](r,A)})}function sm(t,e){for(var A=e;A;){var n;if(t.contains(A))return!0;A=A.getRootNode==null||(n=A.getRootNode())==null?void 0:n.host}return!1}var Fn={isTouch:!1},om=0;function _1(){Fn.isTouch||(Fn.isTouch=!0,window.performance&&document.addEventListener("mousemove",am))}function am(){var t=performance.now();t-om<20&&(Fn.isTouch=!1,document.removeEventListener("mousemove",am)),om=t}function x1(){var t=document.activeElement;if(v1(t)){var e=t._tippy;t.blur&&!e.state.isVisible&&t.blur()}}function O1(){document.addEventListener("touchstart",_1,ri),window.addEventListener("blur",x1)}var L1=typeof window<"u"&&typeof document<"u",k1=L1?!!window.msCrypto:!1;function Ki(t){var e=t==="destroy"?"n already-":" ";return[t+"() was called on a"+e+"destroyed instance. This is a no-op but","indicates a potential memory leak."].join(" ")}function lm(t){var e=/[ \t]{2,}/g,A=/^[ \t]*/gm;return t.replace(e," ").replace(A,"").trim()}function H1(t){return lm(`
117
+ `);return!i||!a?!1:t.chain().command(({tr:s})=>(s.delete(n.pos-2,n.pos),!0)).exitCode().run()},ArrowDown:({editor:t})=>{if(!this.options.exitOnArrowDown)return!1;const{state:e}=t,{selection:A,doc:n}=e,{$from:r,empty:i}=A;if(!i||r.parent.type!==this.type||!(r.parentOffset===r.parent.nodeSize-2))return!1;const s=r.after();return s===void 0||n.nodeAt(s)?!1:t.commands.exitCode()}}},addInputRules(){return[rh({find:mN,type:this.type,getAttributes:t=>({language:t[1]})}),rh({find:gN,type:this.type,getAttributes:t=>({language:t[1]})})]},addProseMirrorPlugins(){return[new sn({key:new gr("codeBlockVSCodeHandler"),props:{handlePaste:(t,e)=>{if(!e.clipboardData||this.editor.isActive(this.type.name))return!1;const A=e.clipboardData.getData("text/plain"),n=e.clipboardData.getData("vscode-editor-data"),r=n?JSON.parse(n):void 0,i=r==null?void 0:r.mode;if(!A||!i)return!1;const{tr:a}=t.state;return t.state.selection.from===t.state.doc.nodeSize-(1+t.state.selection.$to.depth*2)?a.insert(t.state.selection.from-1,this.type.create({language:i})):a.replaceSelectionWith(this.type.create({language:i})),a.setSelection(it.near(a.doc.resolve(Math.max(0,a.selection.from-2)))),a.insertText(A.replace(/\r\n?/g,`
118
+ `)),a.setMeta("paste",!0),t.dispatch(a),!0}}})]}}),wN=wn.create({name:"doc",topNode:!0,content:"block+"});function yN(t={}){return new sn({view(e){return new CN(e,t)}})}class CN{constructor(e,A){var n;this.editorView=e,this.cursorPos=null,this.element=null,this.timeout=-1,this.width=(n=A.width)!==null&&n!==void 0?n:1,this.color=A.color===!1?void 0:A.color||"black",this.class=A.class,this.handlers=["dragover","dragend","drop","dragleave"].map(r=>{let i=a=>{this[r](a)};return e.dom.addEventListener(r,i),{name:r,handler:i}})}destroy(){this.handlers.forEach(({name:e,handler:A})=>this.editorView.dom.removeEventListener(e,A))}update(e,A){this.cursorPos!=null&&A.doc!=e.state.doc&&(this.cursorPos>e.state.doc.content.size?this.setCursor(null):this.updateOverlay())}setCursor(e){e!=this.cursorPos&&(this.cursorPos=e,e==null?(this.element.parentNode.removeChild(this.element),this.element=null):this.updateOverlay())}updateOverlay(){let e=this.editorView.state.doc.resolve(this.cursorPos),A=!e.parent.inlineContent,n;if(A){let s=e.nodeBefore,c=e.nodeAfter;if(s||c){let d=this.editorView.nodeDOM(this.cursorPos-(s?s.nodeSize:0));if(d){let f=d.getBoundingClientRect(),h=s?f.bottom:f.top;s&&c&&(h=(h+this.editorView.nodeDOM(this.cursorPos).getBoundingClientRect().top)/2),n={left:f.left,right:f.right,top:h-this.width/2,bottom:h+this.width/2}}}}if(!n){let s=this.editorView.coordsAtPos(this.cursorPos);n={left:s.left-this.width/2,right:s.left+this.width/2,top:s.top,bottom:s.bottom}}let r=this.editorView.dom.offsetParent;this.element||(this.element=r.appendChild(document.createElement("div")),this.class&&(this.element.className=this.class),this.element.style.cssText="position: absolute; z-index: 50; pointer-events: none;",this.color&&(this.element.style.backgroundColor=this.color)),this.element.classList.toggle("prosemirror-dropcursor-block",A),this.element.classList.toggle("prosemirror-dropcursor-inline",!A);let i,a;if(!r||r==document.body&&getComputedStyle(r).position=="static")i=-pageXOffset,a=-pageYOffset;else{let s=r.getBoundingClientRect();i=s.left-r.scrollLeft,a=s.top-r.scrollTop}this.element.style.left=n.left-i+"px",this.element.style.top=n.top-a+"px",this.element.style.width=n.right-n.left+"px",this.element.style.height=n.bottom-n.top+"px"}scheduleRemoval(e){clearTimeout(this.timeout),this.timeout=setTimeout(()=>this.setCursor(null),e)}dragover(e){if(!this.editorView.editable)return;let A=this.editorView.posAtCoords({left:e.clientX,top:e.clientY}),n=A&&A.inside>=0&&this.editorView.state.doc.nodeAt(A.inside),r=n&&n.type.spec.disableDropCursor,i=typeof r=="function"?r(this.editorView,A,e):r;if(A&&!i){let a=A.pos;if(this.editorView.dragging&&this.editorView.dragging.slice){let s=Iw(this.editorView.state.doc,a,this.editorView.dragging.slice);s!=null&&(a=s)}this.setCursor(a),this.scheduleRemoval(5e3)}}dragend(){this.scheduleRemoval(20)}drop(){this.scheduleRemoval(20)}dragleave(e){(e.target==this.editorView.dom||!this.editorView.dom.contains(e.relatedTarget))&&this.setCursor(null)}}const bN=LA.create({name:"dropCursor",addOptions(){return{color:"currentColor",width:1,class:void 0}},addProseMirrorPlugins(){return[yN(this.options)]}});class Jt extends st{constructor(e){super(e,e)}map(e,A){let n=e.resolve(A.map(this.head));return Jt.valid(n)?new Jt(n):st.near(n)}content(){return Te.empty}eq(e){return e instanceof Jt&&e.head==this.head}toJSON(){return{type:"gapcursor",pos:this.head}}static fromJSON(e,A){if(typeof A.pos!="number")throw new RangeError("Invalid input for GapCursor.fromJSON");return new Jt(e.resolve(A.pos))}getBookmark(){return new ih(this.anchor)}static valid(e){let A=e.parent;if(A.isTextblock||!vN(e)||!EN(e))return!1;let n=A.type.spec.allowGapCursor;if(n!=null)return n;let r=A.contentMatchAt(e.index()).defaultType;return r&&r.isTextblock}static findGapCursorFrom(e,A,n=!1){e:for(;;){if(!n&&Jt.valid(e))return e;let r=e.pos,i=null;for(let a=e.depth;;a--){let s=e.node(a);if(A>0?e.indexAfter(a)<s.childCount:e.index(a)>0){i=s.child(A>0?e.indexAfter(a):e.index(a)-1);break}else if(a==0)return null;r+=A;let c=e.doc.resolve(r);if(Jt.valid(c))return c}for(;;){let a=A>0?i.firstChild:i.lastChild;if(!a){if(i.isAtom&&!i.isText&&!Ye.isSelectable(i)){e=e.doc.resolve(r+i.nodeSize*A),n=!1;continue e}break}i=a,r+=A;let s=e.doc.resolve(r);if(Jt.valid(s))return s}return null}}}Jt.prototype.visible=!1,Jt.findFrom=Jt.findGapCursorFrom,st.jsonID("gapcursor",Jt);class ih{constructor(e){this.pos=e}map(e){return new ih(e.map(this.pos))}resolve(e){let A=e.resolve(this.pos);return Jt.valid(A)?new Jt(A):st.near(A)}}function vN(t){for(let e=t.depth;e>=0;e--){let A=t.index(e),n=t.node(e);if(A==0){if(n.type.spec.isolating)return!0;continue}for(let r=n.child(A-1);;r=r.lastChild){if(r.childCount==0&&!r.inlineContent||r.isAtom||r.type.spec.isolating)return!0;if(r.inlineContent)return!1}}return!0}function EN(t){for(let e=t.depth;e>=0;e--){let A=t.indexAfter(e),n=t.node(e);if(A==n.childCount){if(n.type.spec.isolating)return!0;continue}for(let r=n.child(A);;r=r.firstChild){if(r.childCount==0&&!r.inlineContent||r.isAtom||r.type.spec.isolating)return!0;if(r.inlineContent)return!1}}return!0}function QN(){return new sn({props:{decorations:_N,createSelectionBetween(t,e,A){return e.pos==A.pos&&Jt.valid(A)?new Jt(A):null},handleClick:UN,handleKeyDown:FN,handleDOMEvents:{beforeinput:kN}}})}const FN=ty({ArrowLeft:hc("horiz",-1),ArrowRight:hc("horiz",1),ArrowUp:hc("vert",-1),ArrowDown:hc("vert",1)});function hc(t,e){const A=t=="vert"?e>0?"down":"up":e>0?"right":"left";return function(n,r,i){let a=n.selection,s=e>0?a.$to:a.$from,c=a.empty;if(a instanceof it){if(!i.endOfTextblock(A)||s.depth==0)return!1;c=!1,s=n.doc.resolve(e>0?s.after():s.before())}let d=Jt.findGapCursorFrom(s,e,c);return d?(r&&r(n.tr.setSelection(new Jt(d))),!0):!1}}function UN(t,e,A){if(!t||!t.editable)return!1;let n=t.state.doc.resolve(e);if(!Jt.valid(n))return!1;let r=t.posAtCoords({left:A.clientX,top:A.clientY});return r&&r.inside>-1&&Ye.isSelectable(t.state.doc.nodeAt(r.inside))?!1:(t.dispatch(t.state.tr.setSelection(new Jt(n))),!0)}function kN(t,e){if(e.inputType!="insertCompositionText"||!(t.state.selection instanceof Jt))return!1;let{$from:A}=t.state.selection,n=A.parent.contentMatchAt(A.index()).findWrapping(t.state.schema.nodes.text);if(!n)return!1;let r=Qe.empty;for(let a=n.length-1;a>=0;a--)r=Qe.from(n[a].createAndFill(null,r));let i=t.state.tr.replace(A.pos,A.pos,new Te(r,0,0));return i.setSelection(it.near(i.doc.resolve(A.pos+1))),t.dispatch(i),!1}function _N(t){if(!(t.selection instanceof Jt))return null;let e=document.createElement("div");return e.className="ProseMirror-gapcursor",cA.create(t.doc,[Tn.widget(t.selection.head,e,{key:"gapcursor"})])}const IN=LA.create({name:"gapCursor",addProseMirrorPlugins(){return[QN()]},extendNodeSchema(t){var e;const A={name:t.name,options:t.options,storage:t.storage};return{allowGapCursor:(e=lt(Re(t,"allowGapCursor",A)))!==null&&e!==void 0?e:null}}}),SN=wn.create({name:"hardBreak",addOptions(){return{keepMarks:!0,HTMLAttributes:{}}},inline:!0,group:"inline",selectable:!1,parseHTML(){return[{tag:"br"}]},renderHTML({HTMLAttributes:t}){return["br",sA(this.options.HTMLAttributes,t)]},renderText(){return`
119
+ `},addCommands(){return{setHardBreak:()=>({commands:t,chain:e,state:A,editor:n})=>t.first([()=>t.exitCode(),()=>t.command(()=>{const{selection:r,storedMarks:i}=A;if(r.$from.parent.type.spec.isolating)return!1;const{keepMarks:a}=this.options,{splittableMarks:s}=n.extensionManager,c=i||r.$to.parentOffset&&r.$from.marks();return e().insertContent({type:this.name}).command(({tr:d,dispatch:f})=>{if(f&&c&&a){const h=c.filter(m=>s.includes(m.type.name));d.ensureMarks(h)}return!0}).run()})])}},addKeyboardShortcuts(){return{"Mod-Enter":()=>this.editor.commands.setHardBreak(),"Shift-Enter":()=>this.editor.commands.setHardBreak()}}}),TN=wn.create({name:"heading",addOptions(){return{levels:[1,2,3,4,5,6],HTMLAttributes:{}}},content:"inline*",group:"block",defining:!0,addAttributes(){return{level:{default:1,rendered:!1}}},parseHTML(){return this.options.levels.map(t=>({tag:`h${t}`,attrs:{level:t}}))},renderHTML({node:t,HTMLAttributes:e}){return[`h${this.options.levels.includes(t.attrs.level)?t.attrs.level:this.options.levels[0]}`,sA(this.options.HTMLAttributes,e),0]},addCommands(){return{setHeading:t=>({commands:e})=>this.options.levels.includes(t.level)?e.setNode(this.name,t):!1,toggleHeading:t=>({commands:e})=>this.options.levels.includes(t.level)?e.toggleNode(this.name,"paragraph",t):!1}},addKeyboardShortcuts(){return this.options.levels.reduce((t,e)=>({...t,[`Mod-Alt-${e}`]:()=>this.editor.commands.toggleHeading({level:e})}),{})},addInputRules(){return this.options.levels.map(t=>rh({find:new RegExp(`^(#{1,${t}})\\s$`),type:this.type,getAttributes:{level:t}}))}});var pc=200,CA=function(){};CA.prototype.append=function(e){return e.length?(e=CA.from(e),!this.length&&e||e.length<pc&&this.leafAppend(e)||this.length<pc&&e.leafPrepend(this)||this.appendInner(e)):this},CA.prototype.prepend=function(e){return e.length?CA.from(e).append(this):this},CA.prototype.appendInner=function(e){return new xN(this,e)},CA.prototype.slice=function(e,A){return e===void 0&&(e=0),A===void 0&&(A=this.length),e>=A?CA.empty:this.sliceInner(Math.max(0,e),Math.min(this.length,A))},CA.prototype.get=function(e){if(!(e<0||e>=this.length))return this.getInner(e)},CA.prototype.forEach=function(e,A,n){A===void 0&&(A=0),n===void 0&&(n=this.length),A<=n?this.forEachInner(e,A,n,0):this.forEachInvertedInner(e,A,n,0)},CA.prototype.map=function(e,A,n){A===void 0&&(A=0),n===void 0&&(n=this.length);var r=[];return this.forEach(function(i,a){return r.push(e(i,a))},A,n),r},CA.from=function(e){return e instanceof CA?e:e&&e.length?new ky(e):CA.empty};var ky=function(t){function e(n){t.call(this),this.values=n}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var A={length:{configurable:!0},depth:{configurable:!0}};return e.prototype.flatten=function(){return this.values},e.prototype.sliceInner=function(r,i){return r==0&&i==this.length?this:new e(this.values.slice(r,i))},e.prototype.getInner=function(r){return this.values[r]},e.prototype.forEachInner=function(r,i,a,s){for(var c=i;c<a;c++)if(r(this.values[c],s+c)===!1)return!1},e.prototype.forEachInvertedInner=function(r,i,a,s){for(var c=i-1;c>=a;c--)if(r(this.values[c],s+c)===!1)return!1},e.prototype.leafAppend=function(r){if(this.length+r.length<=pc)return new e(this.values.concat(r.flatten()))},e.prototype.leafPrepend=function(r){if(this.length+r.length<=pc)return new e(r.flatten().concat(this.values))},A.length.get=function(){return this.values.length},A.depth.get=function(){return 0},Object.defineProperties(e.prototype,A),e}(CA);CA.empty=new ky([]);var xN=function(t){function e(A,n){t.call(this),this.left=A,this.right=n,this.length=A.length+n.length,this.depth=Math.max(A.depth,n.depth)+1}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.flatten=function(){return this.left.flatten().concat(this.right.flatten())},e.prototype.getInner=function(n){return n<this.left.length?this.left.get(n):this.right.get(n-this.left.length)},e.prototype.forEachInner=function(n,r,i,a){var s=this.left.length;if(r<s&&this.left.forEachInner(n,r,Math.min(i,s),a)===!1||i>s&&this.right.forEachInner(n,Math.max(r-s,0),Math.min(this.length,i)-s,a+s)===!1)return!1},e.prototype.forEachInvertedInner=function(n,r,i,a){var s=this.left.length;if(r>s&&this.right.forEachInvertedInner(n,r-s,Math.max(i,s)-s,a+s)===!1||i<s&&this.left.forEachInvertedInner(n,Math.min(r,s),i,a)===!1)return!1},e.prototype.sliceInner=function(n,r){if(n==0&&r==this.length)return this;var i=this.left.length;return r<=i?this.left.slice(n,r):n>=i?this.right.slice(n-i,r-i):this.left.slice(n,i).append(this.right.slice(0,r-i))},e.prototype.leafAppend=function(n){var r=this.right.leafAppend(n);if(r)return new e(this.left,r)},e.prototype.leafPrepend=function(n){var r=this.left.leafPrepend(n);if(r)return new e(r,this.right)},e.prototype.appendInner=function(n){return this.left.depth>=Math.max(this.right.depth,n.depth)+1?new e(this.left,new e(this.right,n)):new e(this,n)},e}(CA);const DN=500;class nr{constructor(e,A){this.items=e,this.eventCount=A}popEvent(e,A){if(this.eventCount==0)return null;let n=this.items.length;for(;;n--)if(this.items.get(n-1).selection){--n;break}let r,i;A&&(r=this.remapping(n,this.items.length),i=r.maps.length);let a=e.tr,s,c,d=[],f=[];return this.items.forEach((h,m)=>{if(!h.step){r||(r=this.remapping(n,m+1),i=r.maps.length),i--,f.push(h);return}if(r){f.push(new Cr(h.map));let g=h.step.map(r.slice(i)),B;g&&a.maybeStep(g).doc&&(B=a.mapping.maps[a.mapping.maps.length-1],d.push(new Cr(B,void 0,void 0,d.length+f.length))),i--,B&&r.appendMap(B,i)}else a.maybeStep(h.step);if(h.selection)return s=r?h.selection.map(r.slice(i)):h.selection,c=new nr(this.items.slice(0,n).append(f.reverse().concat(d)),this.eventCount-1),!1},this.items.length,0),{remaining:c,transform:a,selection:s}}addTransform(e,A,n,r){let i=[],a=this.eventCount,s=this.items,c=!r&&s.length?s.get(s.length-1):null;for(let f=0;f<e.steps.length;f++){let h=e.steps[f].invert(e.docs[f]),m=new Cr(e.mapping.maps[f],h,A),g;(g=c&&c.merge(m))&&(m=g,f?i.pop():s=s.slice(0,s.length-1)),i.push(m),A&&(a++,A=void 0),r||(c=m)}let d=a-n.depth;return d>ON&&(s=MN(s,d),a-=d),new nr(s.append(i),a)}remapping(e,A){let n=new Za;return this.items.forEach((r,i)=>{let a=r.mirrorOffset!=null&&i-r.mirrorOffset>=e?n.maps.length-r.mirrorOffset:void 0;n.appendMap(r.map,a)},e,A),n}addMaps(e){return this.eventCount==0?this:new nr(this.items.append(e.map(A=>new Cr(A))),this.eventCount)}rebased(e,A){if(!this.eventCount)return this;let n=[],r=Math.max(0,this.items.length-A),i=e.mapping,a=e.steps.length,s=this.eventCount;this.items.forEach(m=>{m.selection&&s--},r);let c=A;this.items.forEach(m=>{let g=i.getMirror(--c);if(g==null)return;a=Math.min(a,g);let B=i.maps[g];if(m.step){let y=e.steps[g].invert(e.docs[g]),v=m.selection&&m.selection.map(i.slice(c+1,g));v&&s++,n.push(new Cr(B,y,v))}else n.push(new Cr(B))},r);let d=[];for(let m=A;m<a;m++)d.push(new Cr(i.maps[m]));let f=this.items.slice(0,r).append(d).append(n),h=new nr(f,s);return h.emptyItemCount()>DN&&(h=h.compress(this.items.length-n.length)),h}emptyItemCount(){let e=0;return this.items.forEach(A=>{A.step||e++}),e}compress(e=this.items.length){let A=this.remapping(0,e),n=A.maps.length,r=[],i=0;return this.items.forEach((a,s)=>{if(s>=e)r.push(a),a.selection&&i++;else if(a.step){let c=a.step.map(A.slice(n)),d=c&&c.getMap();if(n--,d&&A.appendMap(d,n),c){let f=a.selection&&a.selection.map(A.slice(n));f&&i++;let h=new Cr(d.invert(),c,f),m,g=r.length-1;(m=r.length&&r[g].merge(h))?r[g]=m:r.push(h)}}else a.map&&n--},this.items.length,0),new nr(CA.from(r.reverse()),i)}}nr.empty=new nr(CA.empty,0);function MN(t,e){let A;return t.forEach((n,r)=>{if(n.selection&&e--==0)return A=r,!1}),t.slice(A)}class Cr{constructor(e,A,n,r){this.map=e,this.step=A,this.selection=n,this.mirrorOffset=r}merge(e){if(this.step&&e.step&&!e.selection){let A=e.step.merge(this.step);if(A)return new Cr(A.getMap().invert(),A,this.selection)}}}class ki{constructor(e,A,n,r,i){this.done=e,this.undone=A,this.prevRanges=n,this.prevTime=r,this.prevComposition=i}}const ON=20;function NN(t,e,A,n){let r=A.getMeta(Ba),i;if(r)return r.historyState;A.getMeta(RN)&&(t=new ki(t.done,t.undone,null,0,-1));let a=A.getMeta("appendedTransaction");if(A.steps.length==0)return t;if(a&&a.getMeta(Ba))return a.getMeta(Ba).redo?new ki(t.done.addTransform(A,void 0,n,mc(e)),t.undone,_y(A.mapping.maps[A.steps.length-1]),t.prevTime,t.prevComposition):new ki(t.done,t.undone.addTransform(A,void 0,n,mc(e)),null,t.prevTime,t.prevComposition);if(A.getMeta("addToHistory")!==!1&&!(a&&a.getMeta("addToHistory")===!1)){let s=A.getMeta("composition"),c=t.prevTime==0||!a&&t.prevComposition!=s&&(t.prevTime<(A.time||0)-n.newGroupDelay||!LN(A,t.prevRanges)),d=a?ah(t.prevRanges,A.mapping):_y(A.mapping.maps[A.steps.length-1]);return new ki(t.done.addTransform(A,c?e.selection.getBookmark():void 0,n,mc(e)),nr.empty,d,A.time,s??t.prevComposition)}else return(i=A.getMeta("rebased"))?new ki(t.done.rebased(A,i),t.undone.rebased(A,i),ah(t.prevRanges,A.mapping),t.prevTime,t.prevComposition):new ki(t.done.addMaps(A.mapping.maps),t.undone.addMaps(A.mapping.maps),ah(t.prevRanges,A.mapping),t.prevTime,t.prevComposition)}function LN(t,e){if(!e)return!1;if(!t.docChanged)return!0;let A=!1;return t.mapping.maps[0].forEach((n,r)=>{for(let i=0;i<e.length;i+=2)n<=e[i+1]&&r>=e[i]&&(A=!0)}),A}function _y(t){let e=[];return t.forEach((A,n,r,i)=>e.push(r,i)),e}function ah(t,e){if(!t)return null;let A=[];for(let n=0;n<t.length;n+=2){let r=e.map(t[n],1),i=e.map(t[n+1],-1);r<=i&&A.push(r,i)}return A}function HN(t,e,A){let n=mc(e),r=Ba.get(e).spec.config,i=(A?t.undone:t.done).popEvent(e,n);if(!i)return null;let a=i.selection.resolve(i.transform.doc),s=(A?t.done:t.undone).addTransform(i.transform,e.selection.getBookmark(),r,n),c=new ki(A?s:i.remaining,A?i.remaining:s,null,0,-1);return i.transform.setSelection(a).setMeta(Ba,{redo:A,historyState:c})}let oh=!1,Iy=null;function mc(t){let e=t.plugins;if(Iy!=e){oh=!1,Iy=e;for(let A=0;A<e.length;A++)if(e[A].spec.historyPreserveItems){oh=!0;break}}return oh}const Ba=new gr("history"),RN=new gr("closeHistory");function PN(t={}){return t={depth:t.depth||100,newGroupDelay:t.newGroupDelay||500},new sn({key:Ba,state:{init(){return new ki(nr.empty,nr.empty,null,0,-1)},apply(e,A,n){return NN(A,n,e,t)}},config:t,props:{handleDOMEvents:{beforeinput(e,A){let n=A.inputType,r=n=="historyUndo"?Ty:n=="historyRedo"?xy:null;return r?(A.preventDefault(),r(e.state,e.dispatch)):!1}}}})}function Sy(t,e){return(A,n)=>{let r=Ba.getState(A);if(!r||(t?r.undone:r.done).eventCount==0)return!1;if(n){let i=HN(r,A,t);i&&n(e?i.scrollIntoView():i)}return!0}}const Ty=Sy(!1,!0),xy=Sy(!0,!0),VN=LA.create({name:"history",addOptions(){return{depth:100,newGroupDelay:500}},addCommands(){return{undo:()=>({state:t,dispatch:e})=>Ty(t,e),redo:()=>({state:t,dispatch:e})=>xy(t,e)}},addProseMirrorPlugins(){return[PN(this.options)]},addKeyboardShortcuts(){return{"Mod-z":()=>this.editor.commands.undo(),"Shift-Mod-z":()=>this.editor.commands.redo(),"Mod-y":()=>this.editor.commands.redo(),"Mod-я":()=>this.editor.commands.undo(),"Shift-Mod-я":()=>this.editor.commands.redo()}}}),KN=wn.create({name:"horizontalRule",addOptions(){return{HTMLAttributes:{}}},group:"block",parseHTML(){return[{tag:"hr"}]},renderHTML({HTMLAttributes:t}){return["hr",sA(this.options.HTMLAttributes,t)]},addCommands(){return{setHorizontalRule:()=>({chain:t,state:e})=>{const{$to:A}=e.selection,n=t();return A.parentOffset===0?n.insertContentAt(Math.max(A.pos-2,0),{type:this.name}):n.insertContent({type:this.name}),n.command(({tr:r,dispatch:i})=>{var a;if(i){const{$to:s}=r.selection,c=s.end();if(s.nodeAfter)s.nodeAfter.isTextblock?r.setSelection(it.create(r.doc,s.pos+1)):s.nodeAfter.isBlock?r.setSelection(Ye.create(r.doc,s.pos)):r.setSelection(it.create(r.doc,s.pos));else{const d=(a=s.parent.type.contentMatch.defaultType)===null||a===void 0?void 0:a.create();d&&(r.insert(c,d),r.setSelection(it.create(r.doc,c+1)))}r.scrollIntoView()}return!0}).run()}}},addInputRules(){return[ZO({find:/^(?:---|—-|___\s|\*\*\*\s)$/,type:this.type})]}}),$N=/(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))$/,GN=/(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))/g,WN=/(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))$/,YN=/(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))/g,zN=Ar.create({name:"italic",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"em"},{tag:"i",getAttrs:t=>t.style.fontStyle!=="normal"&&null},{style:"font-style=italic"}]},renderHTML({HTMLAttributes:t}){return["em",sA(this.options.HTMLAttributes,t),0]},addCommands(){return{setItalic:()=>({commands:t})=>t.setMark(this.name),toggleItalic:()=>({commands:t})=>t.toggleMark(this.name),unsetItalic:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-i":()=>this.editor.commands.toggleItalic(),"Mod-I":()=>this.editor.commands.toggleItalic()}},addInputRules(){return[ma({find:$N,type:this.type}),ma({find:WN,type:this.type})]},addPasteRules(){return[ga({find:GN,type:this.type}),ga({find:YN,type:this.type})]}}),JN=wn.create({name:"listItem",addOptions(){return{HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}},content:"paragraph block*",defining:!0,parseHTML(){return[{tag:"li"}]},renderHTML({HTMLAttributes:t}){return["li",sA(this.options.HTMLAttributes,t),0]},addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}),XN=wn.create({name:"listItem",addOptions(){return{HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}},content:"paragraph block*",defining:!0,parseHTML(){return[{tag:"li"}]},renderHTML({HTMLAttributes:t}){return["li",sA(this.options.HTMLAttributes,t),0]},addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}),Dy=Ar.create({name:"textStyle",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"span",getAttrs:t=>t.hasAttribute("style")?{}:!1}]},renderHTML({HTMLAttributes:t}){return["span",sA(this.options.HTMLAttributes,t),0]},addCommands(){return{removeEmptyTextStyle:()=>({state:t,commands:e})=>{const A=dc(t,this.type);return Object.entries(A).some(([,r])=>!!r)?!0:e.unsetMark(this.name)}}}}),My=/^(\d+)\.\s$/,qN=wn.create({name:"orderedList",addOptions(){return{itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}},group:"block list",content(){return`${this.options.itemTypeName}+`},addAttributes(){return{start:{default:1,parseHTML:t=>t.hasAttribute("start")?parseInt(t.getAttribute("start")||"",10):1}}},parseHTML(){return[{tag:"ol"}]},renderHTML({HTMLAttributes:t}){const{start:e,...A}=t;return e===1?["ol",sA(this.options.HTMLAttributes,A),0]:["ol",sA(this.options.HTMLAttributes,t),0]},addCommands(){return{toggleOrderedList:()=>({commands:t,chain:e})=>this.options.keepAttributes?e().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(XN.name,this.editor.getAttributes(Dy.name)).run():t.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-7":()=>this.editor.commands.toggleOrderedList()}},addInputRules(){let t=Fs({find:My,type:this.type,getAttributes:e=>({start:+e[1]}),joinPredicate:(e,A)=>A.childCount+A.attrs.start===+e[1]});return(this.options.keepMarks||this.options.keepAttributes)&&(t=Fs({find:My,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:e=>({start:+e[1],...this.editor.getAttributes(Dy.name)}),joinPredicate:(e,A)=>A.childCount+A.attrs.start===+e[1],editor:this.editor})),[t]}}),jN=wn.create({name:"paragraph",priority:1e3,addOptions(){return{HTMLAttributes:{}}},group:"block",content:"inline*",parseHTML(){return[{tag:"p"}]},renderHTML({HTMLAttributes:t}){return["p",sA(this.options.HTMLAttributes,t),0]},addCommands(){return{setParagraph:()=>({commands:t})=>t.setNode(this.name)}},addKeyboardShortcuts(){return{"Mod-Alt-0":()=>this.editor.commands.setParagraph()}}}),ZN=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))$/,eL=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))/g,tL=Ar.create({name:"strike",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"s"},{tag:"del"},{tag:"strike"},{style:"text-decoration",consuming:!1,getAttrs:t=>t.includes("line-through")?{}:!1}]},renderHTML({HTMLAttributes:t}){return["s",sA(this.options.HTMLAttributes,t),0]},addCommands(){return{setStrike:()=>({commands:t})=>t.setMark(this.name),toggleStrike:()=>({commands:t})=>t.toggleMark(this.name),unsetStrike:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-s":()=>this.editor.commands.toggleStrike()}},addInputRules(){return[ma({find:ZN,type:this.type})]},addPasteRules(){return[ga({find:eL,type:this.type})]}}),AL=wn.create({name:"text",group:"inline"}),nL=LA.create({name:"starterKit",addExtensions(){var t,e,A,n,r,i,a,s,c,d,f,h,m,g,B,y,v,Q;const k=[];return this.options.blockquote!==!1&&k.push(iN.configure((t=this.options)===null||t===void 0?void 0:t.blockquote)),this.options.bold!==!1&&k.push(cN.configure((e=this.options)===null||e===void 0?void 0:e.bold)),this.options.bulletList!==!1&&k.push(dN.configure((A=this.options)===null||A===void 0?void 0:A.bulletList)),this.options.code!==!1&&k.push(pN.configure((n=this.options)===null||n===void 0?void 0:n.code)),this.options.codeBlock!==!1&&k.push(BN.configure((r=this.options)===null||r===void 0?void 0:r.codeBlock)),this.options.document!==!1&&k.push(wN.configure((i=this.options)===null||i===void 0?void 0:i.document)),this.options.dropcursor!==!1&&k.push(bN.configure((a=this.options)===null||a===void 0?void 0:a.dropcursor)),this.options.gapcursor!==!1&&k.push(IN.configure((s=this.options)===null||s===void 0?void 0:s.gapcursor)),this.options.hardBreak!==!1&&k.push(SN.configure((c=this.options)===null||c===void 0?void 0:c.hardBreak)),this.options.heading!==!1&&k.push(TN.configure((d=this.options)===null||d===void 0?void 0:d.heading)),this.options.history!==!1&&k.push(VN.configure((f=this.options)===null||f===void 0?void 0:f.history)),this.options.horizontalRule!==!1&&k.push(KN.configure((h=this.options)===null||h===void 0?void 0:h.horizontalRule)),this.options.italic!==!1&&k.push(zN.configure((m=this.options)===null||m===void 0?void 0:m.italic)),this.options.listItem!==!1&&k.push(JN.configure((g=this.options)===null||g===void 0?void 0:g.listItem)),this.options.orderedList!==!1&&k.push(qN.configure((B=this.options)===null||B===void 0?void 0:B.orderedList)),this.options.paragraph!==!1&&k.push(jN.configure((y=this.options)===null||y===void 0?void 0:y.paragraph)),this.options.strike!==!1&&k.push(tL.configure((v=this.options)===null||v===void 0?void 0:v.strike)),this.options.text!==!1&&k.push(AL.configure((Q=this.options)===null||Q===void 0?void 0:Q.text)),k}});var rL="tippy-box",Oy="tippy-content",iL="tippy-backdrop",Ny="tippy-arrow",Ly="tippy-svg-arrow",wa={passive:!0,capture:!0},Hy=function(){return document.body};function aL(t,e){return{}.hasOwnProperty.call(t,e)}function sh(t,e,A){if(Array.isArray(t)){var n=t[e];return n??(Array.isArray(A)?A[e]:A)}return t}function lh(t,e){var A={}.toString.call(t);return A.indexOf("[object")===0&&A.indexOf(e+"]")>-1}function Ry(t,e){return typeof t=="function"?t.apply(void 0,e):t}function Py(t,e){if(e===0)return t;var A;return function(n){clearTimeout(A),A=setTimeout(function(){t(n)},e)}}function oL(t,e){var A=Object.assign({},t);return e.forEach(function(n){delete A[n]}),A}function sL(t){return t.split(/\s+/).filter(Boolean)}function po(t){return[].concat(t)}function Vy(t,e){t.indexOf(e)===-1&&t.push(e)}function lL(t){return t.filter(function(e,A){return t.indexOf(e)===A})}function cL(t){return t.split("-")[0]}function gc(t){return[].slice.call(t)}function Ky(t){return Object.keys(t).reduce(function(e,A){return t[A]!==void 0&&(e[A]=t[A]),e},{})}function Us(){return document.createElement("div")}function ks(t){return["Element","Fragment"].some(function(e){return lh(t,e)})}function uL(t){return lh(t,"NodeList")}function dL(t){return lh(t,"MouseEvent")}function fL(t){return!!(t&&t._tippy&&t._tippy.reference===t)}function hL(t){return ks(t)?[t]:uL(t)?gc(t):Array.isArray(t)?t:gc(document.querySelectorAll(t))}function ch(t,e){t.forEach(function(A){A&&(A.style.transitionDuration=e+"ms")})}function $y(t,e){t.forEach(function(A){A&&A.setAttribute("data-state",e)})}function pL(t){var e,A=po(t),n=A[0];return n!=null&&(e=n.ownerDocument)!=null&&e.body?n.ownerDocument:document}function mL(t,e){var A=e.clientX,n=e.clientY;return t.every(function(r){var i=r.popperRect,a=r.popperState,s=r.props,c=s.interactiveBorder,d=cL(a.placement),f=a.modifiersData.offset;if(!f)return!0;var h=d==="bottom"?f.top.y:0,m=d==="top"?f.bottom.y:0,g=d==="right"?f.left.x:0,B=d==="left"?f.right.x:0,y=i.top-n+h>c,v=n-i.bottom-m>c,Q=i.left-A+g>c,k=A-i.right-B>c;return y||v||Q||k})}function uh(t,e,A){var n=e+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(r){t[n](r,A)})}function Gy(t,e){for(var A=e;A;){var n;if(t.contains(A))return!0;A=A.getRootNode==null||(n=A.getRootNode())==null?void 0:n.host}return!1}var br={isTouch:!1},Wy=0;function gL(){br.isTouch||(br.isTouch=!0,window.performance&&document.addEventListener("mousemove",Yy))}function Yy(){var t=performance.now();t-Wy<20&&(br.isTouch=!1,document.removeEventListener("mousemove",Yy)),Wy=t}function BL(){var t=document.activeElement;if(fL(t)){var e=t._tippy;t.blur&&!e.state.isVisible&&t.blur()}}function wL(){document.addEventListener("touchstart",gL,wa),window.addEventListener("blur",BL)}var yL=typeof window<"u"&&typeof document<"u",CL=yL?!!window.msCrypto:!1;function mo(t){var e=t==="destroy"?"n already-":" ";return[t+"() was called on a"+e+"destroyed instance. This is a no-op but","indicates a potential memory leak."].join(" ")}function zy(t){var e=/[ \t]{2,}/g,A=/^[ \t]*/gm;return t.replace(e," ").replace(A,"").trim()}function bL(t){return zy(`
98
120
  %ctippy.js
99
121
 
100
- %c`+lm(t)+`
122
+ %c`+zy(t)+`
101
123
 
102
124
  %c👷‍ This is a development-only message. It will be removed in production.
103
- `)}function cm(t){return[H1(t),"color: #00C584; font-size: 1.3em; font-weight: bold;","line-height: 1.5","color: #a6a095;"]}var Gs;process.env.NODE_ENV!=="production"&&N1();function N1(){Gs=new Set}function Dn(t,e){if(t&&!Gs.has(e)){var A;Gs.add(e),(A=console).warn.apply(A,cm(e))}}function Uu(t,e){if(t&&!Gs.has(e)){var A;Gs.add(e),(A=console).error.apply(A,cm(e))}}function D1(t){var e=!t,A=Object.prototype.toString.call(t)==="[object Object]"&&!t.addEventListener;Uu(e,["tippy() was passed","`"+String(t)+"`","as its targets (first) argument. Valid types are: String, Element,","Element[], or NodeList."].join(" ")),Uu(A,["tippy() was passed a plain object which is not supported as an argument","for virtual positioning. Use props.getReferenceClientRect instead."].join(" "))}var um={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},M1={allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999},It=Object.assign({appendTo:em,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},um,M1),R1=Object.keys(It),K1=function(e){process.env.NODE_ENV!=="production"&&hm(e,[]);var A=Object.keys(e);A.forEach(function(n){It[n]=e[n]})};function fm(t){var e=t.plugins||[],A=e.reduce(function(n,r){var i=r.name,s=r.defaultValue;if(i){var a;n[i]=t[i]!==void 0?t[i]:(a=It[i])!=null?a:s}return n},{});return Object.assign({},t,A)}function V1(t,e){var A=e?Object.keys(fm(Object.assign({},It,{plugins:e}))):R1,n=A.reduce(function(r,i){var s=(t.getAttribute("data-tippy-"+i)||"").trim();if(!s)return r;if(i==="content")r[i]=s;else try{r[i]=JSON.parse(s)}catch{r[i]=s}return r},{});return n}function dm(t,e){var A=Object.assign({},e,{content:Am(e.content,[t])},e.ignoreAttributes?{}:V1(t,e.plugins));return A.aria=Object.assign({},It.aria,A.aria),A.aria={expanded:A.aria.expanded==="auto"?e.interactive:A.aria.expanded,content:A.aria.content==="auto"?e.interactive?null:"describedby":A.aria.content},A}function hm(t,e){t===void 0&&(t={}),e===void 0&&(e=[]);var A=Object.keys(t);A.forEach(function(n){var r=y1(It,Object.keys(um)),i=!C1(r,n);i&&(i=e.filter(function(s){return s.name===n}).length===0),Dn(i,["`"+n+"`","is not a valid prop. You may have spelled it incorrectly, or if it's","a plugin, forgot to pass it in an array as props.plugins.",`
125
+ `)}function Jy(t){return[bL(t),"color: #00C584; font-size: 1.3em; font-weight: bold;","line-height: 1.5","color: #a6a095;"]}var _s;process.env.NODE_ENV!=="production"&&vL();function vL(){_s=new Set}function Kr(t,e){if(t&&!_s.has(e)){var A;_s.add(e),(A=console).warn.apply(A,Jy(e))}}function dh(t,e){if(t&&!_s.has(e)){var A;_s.add(e),(A=console).error.apply(A,Jy(e))}}function EL(t){var e=!t,A=Object.prototype.toString.call(t)==="[object Object]"&&!t.addEventListener;dh(e,["tippy() was passed","`"+String(t)+"`","as its targets (first) argument. Valid types are: String, Element,","Element[], or NodeList."].join(" ")),dh(A,["tippy() was passed a plain object which is not supported as an argument","for virtual positioning. Use props.getReferenceClientRect instead."].join(" "))}var Xy={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},QL={allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999},yn=Object.assign({appendTo:Hy,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},Xy,QL),FL=Object.keys(yn),UL=function(e){process.env.NODE_ENV!=="production"&&Zy(e,[]);var A=Object.keys(e);A.forEach(function(n){yn[n]=e[n]})};function qy(t){var e=t.plugins||[],A=e.reduce(function(n,r){var i=r.name,a=r.defaultValue;if(i){var s;n[i]=t[i]!==void 0?t[i]:(s=yn[i])!=null?s:a}return n},{});return Object.assign({},t,A)}function kL(t,e){var A=e?Object.keys(qy(Object.assign({},yn,{plugins:e}))):FL,n=A.reduce(function(r,i){var a=(t.getAttribute("data-tippy-"+i)||"").trim();if(!a)return r;if(i==="content")r[i]=a;else try{r[i]=JSON.parse(a)}catch{r[i]=a}return r},{});return n}function jy(t,e){var A=Object.assign({},e,{content:Ry(e.content,[t])},e.ignoreAttributes?{}:kL(t,e.plugins));return A.aria=Object.assign({},yn.aria,A.aria),A.aria={expanded:A.aria.expanded==="auto"?e.interactive:A.aria.expanded,content:A.aria.content==="auto"?e.interactive?null:"describedby":A.aria.content},A}function Zy(t,e){t===void 0&&(t={}),e===void 0&&(e=[]);var A=Object.keys(t);A.forEach(function(n){var r=oL(yn,Object.keys(Xy)),i=!aL(r,n);i&&(i=e.filter(function(a){return a.name===n}).length===0),Kr(i,["`"+n+"`","is not a valid prop. You may have spelled it incorrectly, or if it's","a plugin, forgot to pass it in an array as props.plugins.",`
104
126
 
105
127
  `,`All props: https://atomiks.github.io/tippyjs/v6/all-props/
106
- `,"Plugins: https://atomiks.github.io/tippyjs/v6/plugins/"].join(" "))})}var P1=function(){return"innerHTML"};function vu(t,e){t[P1()]=e}function pm(t){var e=Vs();return t===!0?e.className=Zg:(e.className=jg,Ps(t)?e.appendChild(t):vu(e,t)),e}function gm(t,e){Ps(e.content)?(vu(t,""),t.appendChild(e.content)):typeof e.content!="function"&&(e.allowHTML?vu(t,e.content):t.textContent=e.content)}function Iu(t){var e=t.firstElementChild,A=Ca(e.children);return{box:e,content:A.find(function(n){return n.classList.contains(qg)}),arrow:A.find(function(n){return n.classList.contains(Zg)||n.classList.contains(jg)}),backdrop:A.find(function(n){return n.classList.contains(w1)})}}function mm(t){var e=Vs(),A=Vs();A.className=B1,A.setAttribute("data-state","hidden"),A.setAttribute("tabindex","-1");var n=Vs();n.className=qg,n.setAttribute("data-state","hidden"),gm(n,t.props),e.appendChild(A),A.appendChild(n),r(t.props,t.props);function r(i,s){var a=Iu(e),c=a.box,u=a.content,f=a.arrow;s.theme?c.setAttribute("data-theme",s.theme):c.removeAttribute("data-theme"),typeof s.animation=="string"?c.setAttribute("data-animation",s.animation):c.removeAttribute("data-animation"),s.inertia?c.setAttribute("data-inertia",""):c.removeAttribute("data-inertia"),c.style.maxWidth=typeof s.maxWidth=="number"?s.maxWidth+"px":s.maxWidth,s.role?c.setAttribute("role",s.role):c.removeAttribute("role"),(i.content!==s.content||i.allowHTML!==s.allowHTML)&&gm(u,t.props),s.arrow?f?i.arrow!==s.arrow&&(c.removeChild(f),c.appendChild(pm(s.arrow))):c.appendChild(pm(s.arrow)):f&&c.removeChild(f)}return{popper:e,onUpdate:r}}mm.$$tippy=!0;var G1=1,ya=[],Su=[];function $1(t,e){var A=dm(t,Object.assign({},It,fm(rm(e)))),n,r,i,s=!1,a=!1,c=!1,u=!1,f,p,g,B=[],w=tm(z,A.interactiveDebounce),Q,b=G1++,v=null,_=Q1(A.plugins),S={isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},E={id:b,reference:t,popper:Vs(),popperInstance:v,props:A,state:S,plugins:_,clearDelayTimeouts:Ve,setProps:R,setContent:X,show:Se,hide:iA,hideWithInteractivity:Ct,enable:nA,disable:Ne,unmount:Tn,destroy:Jt};if(!A.render)return process.env.NODE_ENV!=="production"&&Uu(!0,"render() function has not been supplied."),E;var L=A.render(E),U=L.popper,N=L.onUpdate;U.setAttribute("data-tippy-root",""),U.id="tippy-"+E.id,E.popper=U,t._tippy=E,U._tippy=E;var V=_.map(function(K){return K.fn(E)}),D=t.hasAttribute("aria-expanded");return _t(),Ye(),ke(),re("onCreate",[E]),A.showOnCreate&&W(),U.addEventListener("mouseenter",function(){E.props.interactive&&E.state.isVisible&&E.clearDelayTimeouts()}),U.addEventListener("mouseleave",function(){E.props.interactive&&E.props.trigger.indexOf("mouseenter")>=0&&Le().addEventListener("mousemove",w)}),E;function se(){var K=E.props.touch;return Array.isArray(K)?K:[K,0]}function Be(){return se()[0]==="hold"}function ne(){var K;return!!((K=E.props.render)!=null&&K.$$tippy)}function ce(){return Q||t}function Le(){var K=ce().parentNode;return K?S1(K):document}function aA(){return Iu(U)}function Re(K){return E.state.isMounted&&!E.state.isVisible||Fn.isTouch||f&&f.type==="focus"?0:Eu(E.props.delay,K?0:1,It.delay)}function ke(K){K===void 0&&(K=!1),U.style.pointerEvents=E.props.interactive&&!K?"":"none",U.style.zIndex=""+E.props.zIndex}function re(K,ie,ue){if(ue===void 0&&(ue=!0),V.forEach(function(De){De[K]&&De[K].apply(De,ie)}),ue){var Pe;(Pe=E.props)[K].apply(Pe,ie)}}function me(){var K=E.props.aria;if(K.content){var ie="aria-"+K.content,ue=U.id,Pe=Ri(E.props.triggerTarget||t);Pe.forEach(function(De){var GA=De.getAttribute(ie);if(E.state.isVisible)De.setAttribute(ie,GA?GA+" "+ue:ue);else{var yt=GA&&GA.replace(ue,"").trim();yt?De.setAttribute(ie,yt):De.removeAttribute(ie)}})}}function Ye(){if(!(D||!E.props.aria.expanded)){var K=Ri(E.props.triggerTarget||t);K.forEach(function(ie){E.props.interactive?ie.setAttribute("aria-expanded",E.state.isVisible&&ie===ce()?"true":"false"):ie.removeAttribute("aria-expanded")})}}function He(){Le().removeEventListener("mousemove",w),ya=ya.filter(function(K){return K!==w})}function Ge(K){if(!(Fn.isTouch&&(c||K.type==="mousedown"))){var ie=K.composedPath&&K.composedPath()[0]||K.target;if(!(E.props.interactive&&sm(U,ie))){if(Ri(E.props.triggerTarget||t).some(function(ue){return sm(ue,ie)})){if(Fn.isTouch||E.state.isVisible&&E.props.trigger.indexOf("click")>=0)return}else re("onClickOutside",[E,K]);E.props.hideOnClick===!0&&(E.clearDelayTimeouts(),E.hide(),a=!0,setTimeout(function(){a=!1}),E.state.isMounted||qe())}}}function Ke(){c=!0}function AA(){c=!1}function tA(){var K=Le();K.addEventListener("mousedown",Ge,!0),K.addEventListener("touchend",Ge,ri),K.addEventListener("touchstart",AA,ri),K.addEventListener("touchmove",Ke,ri)}function qe(){var K=Le();K.removeEventListener("mousedown",Ge,!0),K.removeEventListener("touchend",Ge,ri),K.removeEventListener("touchstart",AA,ri),K.removeEventListener("touchmove",Ke,ri)}function pA(K,ie){et(K,function(){!E.state.isVisible&&U.parentNode&&U.parentNode.contains(U)&&ie()})}function ct(K,ie){et(K,ie)}function et(K,ie){var ue=aA().box;function Pe(De){De.target===ue&&(bu(ue,"remove",Pe),ie())}if(K===0)return ie();bu(ue,"remove",p),bu(ue,"add",Pe),p=Pe}function ut(K,ie,ue){ue===void 0&&(ue=!1);var Pe=Ri(E.props.triggerTarget||t);Pe.forEach(function(De){De.addEventListener(K,ie,ue),B.push({node:De,eventType:K,handler:ie,options:ue})})}function _t(){Be()&&(ut("touchstart",un,{passive:!0}),ut("touchend",Ue,{passive:!0})),E1(E.props.trigger).forEach(function(K){if(K!=="manual")switch(ut(K,un),K){case"mouseenter":ut("mouseleave",Ue);break;case"focus":ut(k1?"focusout":"blur",Sn);break;case"focusin":ut("focusout",Sn);break}})}function xt(){B.forEach(function(K){var ie=K.node,ue=K.eventType,Pe=K.handler,De=K.options;ie.removeEventListener(ue,Pe,De)}),B=[]}function un(K){var ie,ue=!1;if(!(!E.state.isEnabled||vA(K)||a)){var Pe=((ie=f)==null?void 0:ie.type)==="focus";f=K,Q=K.currentTarget,Ye(),!E.state.isVisible&&U1(K)&&ya.forEach(function(De){return De(K)}),K.type==="click"&&(E.props.trigger.indexOf("mouseenter")<0||s)&&E.props.hideOnClick!==!1&&E.state.isVisible?ue=!0:W(K),K.type==="click"&&(s=!ue),ue&&!Pe&&oe(K)}}function z(K){var ie=K.target,ue=ce().contains(ie)||U.contains(ie);if(!(K.type==="mousemove"&&ue)){var Pe=x().concat(U).map(function(De){var GA,yt=De._tippy,Yn=(GA=yt.popperInstance)==null?void 0:GA.state;return Yn?{popperRect:De.getBoundingClientRect(),popperState:Yn,props:A}:null}).filter(Boolean);T1(Pe,K)&&(He(),oe(K))}}function Ue(K){var ie=vA(K)||E.props.trigger.indexOf("click")>=0&&s;if(!ie){if(E.props.interactive){E.hideWithInteractivity(K);return}oe(K)}}function Sn(K){E.props.trigger.indexOf("focusin")<0&&K.target!==ce()||E.props.interactive&&K.relatedTarget&&U.contains(K.relatedTarget)||oe(K)}function vA(K){return Fn.isTouch?Be()!==K.type.indexOf("touch")>=0:!1}function fn(){xr();var K=E.props,ie=K.popperOptions,ue=K.placement,Pe=K.offset,De=K.getReferenceClientRect,GA=K.moveTransition,yt=ne()?Iu(U).arrow:null,Yn=De?{getBoundingClientRect:De,contextElement:De.contextElement||ce()}:t,Bo={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(ss){var Or=ss.state;if(ne()){var Il=aA(),Co=Il.box;["placement","reference-hidden","escaped"].forEach(function(as){as==="placement"?Co.setAttribute("data-placement",Or.placement):Or.attributes.popper["data-popper-"+as]?Co.setAttribute("data-"+as,""):Co.removeAttribute("data-"+as)}),Or.attributes.popper={}}}},zn=[{name:"offset",options:{offset:Pe}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!GA}},Bo];ne()&&yt&&zn.push({name:"arrow",options:{element:yt,padding:3}}),zn.push.apply(zn,(ie==null?void 0:ie.modifiers)||[]),E.popperInstance=fh.createPopper(Yn,U,Object.assign({},ie,{placement:ue,onFirstUpdate:g,modifiers:zn}))}function xr(){E.popperInstance&&(E.popperInstance.destroy(),E.popperInstance=null)}function T(){var K=E.props.appendTo,ie,ue=ce();E.props.interactive&&K===em||K==="parent"?ie=ue.parentNode:ie=Am(K,[ue]),ie.contains(U)||ie.appendChild(U),E.state.isMounted=!0,fn(),process.env.NODE_ENV!=="production"&&Dn(E.props.interactive&&K===It.appendTo&&ue.nextElementSibling!==U,["Interactive tippy element may not be accessible via keyboard","navigation because it is not directly after the reference element","in the DOM source order.",`
128
+ `,"Plugins: https://atomiks.github.io/tippyjs/v6/plugins/"].join(" "))})}var _L=function(){return"innerHTML"};function fh(t,e){t[_L()]=e}function eC(t){var e=Us();return t===!0?e.className=Ny:(e.className=Ly,ks(t)?e.appendChild(t):fh(e,t)),e}function tC(t,e){ks(e.content)?(fh(t,""),t.appendChild(e.content)):typeof e.content!="function"&&(e.allowHTML?fh(t,e.content):t.textContent=e.content)}function hh(t){var e=t.firstElementChild,A=gc(e.children);return{box:e,content:A.find(function(n){return n.classList.contains(Oy)}),arrow:A.find(function(n){return n.classList.contains(Ny)||n.classList.contains(Ly)}),backdrop:A.find(function(n){return n.classList.contains(iL)})}}function AC(t){var e=Us(),A=Us();A.className=rL,A.setAttribute("data-state","hidden"),A.setAttribute("tabindex","-1");var n=Us();n.className=Oy,n.setAttribute("data-state","hidden"),tC(n,t.props),e.appendChild(A),A.appendChild(n),r(t.props,t.props);function r(i,a){var s=hh(e),c=s.box,d=s.content,f=s.arrow;a.theme?c.setAttribute("data-theme",a.theme):c.removeAttribute("data-theme"),typeof a.animation=="string"?c.setAttribute("data-animation",a.animation):c.removeAttribute("data-animation"),a.inertia?c.setAttribute("data-inertia",""):c.removeAttribute("data-inertia"),c.style.maxWidth=typeof a.maxWidth=="number"?a.maxWidth+"px":a.maxWidth,a.role?c.setAttribute("role",a.role):c.removeAttribute("role"),(i.content!==a.content||i.allowHTML!==a.allowHTML)&&tC(d,t.props),a.arrow?f?i.arrow!==a.arrow&&(c.removeChild(f),c.appendChild(eC(a.arrow))):c.appendChild(eC(a.arrow)):f&&c.removeChild(f)}return{popper:e,onUpdate:r}}AC.$$tippy=!0;var IL=1,Bc=[],ph=[];function SL(t,e){var A=jy(t,Object.assign({},yn,qy(Ky(e)))),n,r,i,a=!1,s=!1,c=!1,d=!1,f,h,m,g=[],B=Py(Y,A.interactiveDebounce),y,v=IL++,Q=null,k=lL(A.plugins),F={isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},C={id:v,reference:t,popper:Us(),popperInstance:Q,props:A,state:F,plugins:k,clearDelayTimeouts:We,setProps:ne,setContent:ee,show:$e,hide:dt,hideWithInteractivity:vA,enable:we,disable:Me,unmount:en,destroy:PA};if(!A.render)return process.env.NODE_ENV!=="production"&&dh(!0,"render() function has not been supplied."),C;var D=A.render(C),E=D.popper,x=D.onUpdate;E.setAttribute("data-tippy-root",""),E.id="tippy-"+C.id,C.popper=E,t._tippy=C,E._tippy=C;var O=k.map(function(oe){return oe.fn(C)}),S=t.hasAttribute("aria-expanded");return ie(),me(),re(),te("onCreate",[C]),A.showOnCreate&&le(),E.addEventListener("mouseenter",function(){C.props.interactive&&C.state.isVisible&&C.clearDelayTimeouts()}),E.addEventListener("mouseleave",function(){C.props.interactive&&C.props.trigger.indexOf("mouseenter")>=0&&V().addEventListener("mousemove",B)}),C;function K(){var oe=C.props.touch;return Array.isArray(oe)?oe:[oe,0]}function de(){return K()[0]==="hold"}function ce(){var oe;return!!((oe=C.props.render)!=null&&oe.$$tippy)}function ge(){return y||t}function V(){var oe=ge().parentNode;return oe?pL(oe):document}function X(){return hh(E)}function $(oe){return C.state.isMounted&&!C.state.isVisible||br.isTouch||f&&f.type==="focus"?0:sh(C.props.delay,oe?0:1,yn.delay)}function re(oe){oe===void 0&&(oe=!1),E.style.pointerEvents=C.props.interactive&&!oe?"":"none",E.style.zIndex=""+C.props.zIndex}function te(oe,xe,Ke){if(Ke===void 0&&(Ke=!0),O.forEach(function(G){G[oe]&&G[oe].apply(G,xe)}),Ke){var ft;(ft=C.props)[oe].apply(ft,xe)}}function q(){var oe=C.props.aria;if(oe.content){var xe="aria-"+oe.content,Ke=E.id,ft=po(C.props.triggerTarget||t);ft.forEach(function(G){var ye=G.getAttribute(xe);if(C.state.isVisible)G.setAttribute(xe,ye?ye+" "+Ke:Ke);else{var Ne=ye&&ye.replace(Ke,"").trim();Ne?G.setAttribute(xe,Ne):G.removeAttribute(xe)}})}}function me(){if(!(S||!C.props.aria.expanded)){var oe=po(C.props.triggerTarget||t);oe.forEach(function(xe){C.props.interactive?xe.setAttribute("aria-expanded",C.state.isVisible&&xe===ge()?"true":"false"):xe.removeAttribute("aria-expanded")})}}function j(){V().removeEventListener("mousemove",B),Bc=Bc.filter(function(oe){return oe!==B})}function Ee(oe){if(!(br.isTouch&&(c||oe.type==="mousedown"))){var xe=oe.composedPath&&oe.composedPath()[0]||oe.target;if(!(C.props.interactive&&Gy(E,xe))){if(po(C.props.triggerTarget||t).some(function(Ke){return Gy(Ke,xe)})){if(br.isTouch||C.state.isVisible&&C.props.trigger.indexOf("click")>=0)return}else te("onClickOutside",[C,oe]);C.props.hideOnClick===!0&&(C.clearDelayTimeouts(),C.hide(),s=!0,setTimeout(function(){s=!1}),C.state.isMounted||se())}}}function R(){c=!0}function J(){c=!1}function Ae(){var oe=V();oe.addEventListener("mousedown",Ee,!0),oe.addEventListener("touchend",Ee,wa),oe.addEventListener("touchstart",J,wa),oe.addEventListener("touchmove",R,wa)}function se(){var oe=V();oe.removeEventListener("mousedown",Ee,!0),oe.removeEventListener("touchend",Ee,wa),oe.removeEventListener("touchstart",J,wa),oe.removeEventListener("touchmove",R,wa)}function U(oe,xe){Ue(oe,function(){!C.state.isVisible&&E.parentNode&&E.parentNode.contains(E)&&xe()})}function Z(oe,xe){Ue(oe,xe)}function Ue(oe,xe){var Ke=X().box;function ft(G){G.target===Ke&&(uh(Ke,"remove",ft),xe())}if(oe===0)return xe();uh(Ke,"remove",h),uh(Ke,"add",ft),h=ft}function At(oe,xe,Ke){Ke===void 0&&(Ke=!1);var ft=po(C.props.triggerTarget||t);ft.forEach(function(G){G.addEventListener(oe,xe,Ke),g.push({node:G,eventType:oe,handler:xe,options:Ke})})}function ie(){de()&&(At("touchstart",Be,{passive:!0}),At("touchend",T,{passive:!0})),sL(C.props.trigger).forEach(function(oe){if(oe!=="manual")switch(At(oe,Be),oe){case"mouseenter":At("mouseleave",T);break;case"focus":At(CL?"focusout":"blur",Fe);break;case"focusin":At("focusout",Fe);break}})}function Ge(){g.forEach(function(oe){var xe=oe.node,Ke=oe.eventType,ft=oe.handler,G=oe.options;xe.removeEventListener(Ke,ft,G)}),g=[]}function Be(oe){var xe,Ke=!1;if(!(!C.state.isEnabled||Ce(oe)||s)){var ft=((xe=f)==null?void 0:xe.type)==="focus";f=oe,y=oe.currentTarget,me(),!C.state.isVisible&&dL(oe)&&Bc.forEach(function(G){return G(oe)}),oe.type==="click"&&(C.props.trigger.indexOf("mouseenter")<0||a)&&C.props.hideOnClick!==!1&&C.state.isVisible?Ke=!0:le(oe),oe.type==="click"&&(a=!Ke),Ke&&!ft&&H(oe)}}function Y(oe){var xe=oe.target,Ke=ge().contains(xe)||E.contains(xe);if(!(oe.type==="mousemove"&&Ke)){var ft=N().concat(E).map(function(G){var ye,Ne=G._tippy,et=(ye=Ne.popperInstance)==null?void 0:ye.state;return et?{popperRect:G.getBoundingClientRect(),popperState:et,props:A}:null}).filter(Boolean);mL(ft,oe)&&(j(),H(oe))}}function T(oe){var xe=Ce(oe)||C.props.trigger.indexOf("click")>=0&&a;if(!xe){if(C.props.interactive){C.hideWithInteractivity(oe);return}H(oe)}}function Fe(oe){C.props.trigger.indexOf("focusin")<0&&oe.target!==ge()||C.props.interactive&&oe.relatedTarget&&E.contains(oe.relatedTarget)||H(oe)}function Ce(oe){return br.isTouch?de()!==oe.type.indexOf("touch")>=0:!1}function ke(){nt();var oe=C.props,xe=oe.popperOptions,Ke=oe.placement,ft=oe.offset,G=oe.getReferenceClientRect,ye=oe.moveTransition,Ne=ce()?hh(E).arrow:null,et=G?{getBoundingClientRect:G,contextElement:G.contextElement||ge()}:t,fe={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(VA){var dA=VA.state;if(ce()){var Nn=X(),un=Nn.box;["placement","reference-hidden","escaped"].forEach(function(Fr){Fr==="placement"?un.setAttribute("data-placement",dA.placement):dA.attributes.popper["data-popper-"+Fr]?un.setAttribute("data-"+Fr,""):un.removeAttribute("data-"+Fr)}),dA.attributes.popper={}}}},_e=[{name:"offset",options:{offset:ft}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!ye}},fe];ce()&&Ne&&_e.push({name:"arrow",options:{element:Ne,padding:3}}),_e.push.apply(_e,(xe==null?void 0:xe.modifiers)||[]),C.popperInstance=ni.createPopper(et,E,Object.assign({},xe,{placement:Ke,onFirstUpdate:m,modifiers:_e}))}function nt(){C.popperInstance&&(C.popperInstance.destroy(),C.popperInstance=null)}function M(){var oe=C.props.appendTo,xe,Ke=ge();C.props.interactive&&oe===Hy||oe==="parent"?xe=Ke.parentNode:xe=Ry(oe,[Ke]),xe.contains(E)||xe.appendChild(E),C.state.isMounted=!0,ke(),process.env.NODE_ENV!=="production"&&Kr(C.props.interactive&&oe===yn.appendTo&&Ke.nextElementSibling!==E,["Interactive tippy element may not be accessible via keyboard","navigation because it is not directly after the reference element","in the DOM source order.",`
107
129
 
108
130
  `,"Using a wrapper <div> or <span> tag around the reference element","solves this by creating a new parentNode context.",`
109
131
 
110
132
  `,"Specifying `appendTo: document.body` silences this warning, but it","assumes you are using a focus management solution to handle","keyboard navigation.",`
111
133
 
112
- `,"See: https://atomiks.github.io/tippyjs/v6/accessibility/#interactivity"].join(" "))}function x(){return Ca(U.querySelectorAll("[data-tippy-root]"))}function W(K){E.clearDelayTimeouts(),K&&re("onTrigger",[E,K]),tA();var ie=Re(!0),ue=se(),Pe=ue[0],De=ue[1];Fn.isTouch&&Pe==="hold"&&De&&(ie=De),ie?n=setTimeout(function(){E.show()},ie):E.show()}function oe(K){if(E.clearDelayTimeouts(),re("onUntrigger",[E,K]),!E.state.isVisible){qe();return}if(!(E.props.trigger.indexOf("mouseenter")>=0&&E.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(K.type)>=0&&s)){var ie=Re(!1);ie?r=setTimeout(function(){E.state.isVisible&&E.hide()},ie):i=requestAnimationFrame(function(){E.hide()})}}function nA(){E.state.isEnabled=!0}function Ne(){E.hide(),E.state.isEnabled=!1}function Ve(){clearTimeout(n),clearTimeout(r),cancelAnimationFrame(i)}function R(K){if(process.env.NODE_ENV!=="production"&&Dn(E.state.isDestroyed,Ki("setProps")),!E.state.isDestroyed){re("onBeforeUpdate",[E,K]),xt();var ie=E.props,ue=dm(t,Object.assign({},ie,rm(K),{ignoreAttributes:!0}));E.props=ue,_t(),ie.interactiveDebounce!==ue.interactiveDebounce&&(He(),w=tm(z,ue.interactiveDebounce)),ie.triggerTarget&&!ue.triggerTarget?Ri(ie.triggerTarget).forEach(function(Pe){Pe.removeAttribute("aria-expanded")}):ue.triggerTarget&&t.removeAttribute("aria-expanded"),Ye(),ke(),N&&N(ie,ue),E.popperInstance&&(fn(),x().forEach(function(Pe){requestAnimationFrame(Pe._tippy.popperInstance.forceUpdate)})),re("onAfterUpdate",[E,K])}}function X(K){E.setProps({content:K})}function Se(){process.env.NODE_ENV!=="production"&&Dn(E.state.isDestroyed,Ki("show"));var K=E.state.isVisible,ie=E.state.isDestroyed,ue=!E.state.isEnabled,Pe=Fn.isTouch&&!E.props.touch,De=Eu(E.props.duration,0,It.duration);if(!(K||ie||ue||Pe)&&!ce().hasAttribute("disabled")&&(re("onShow",[E],!1),E.props.onShow(E)!==!1)){if(E.state.isVisible=!0,ne()&&(U.style.visibility="visible"),ke(),tA(),E.state.isMounted||(U.style.transition="none"),ne()){var GA=aA(),yt=GA.box,Yn=GA.content;Fu([yt,Yn],0)}g=function(){var zn;if(!(!E.state.isVisible||u)){if(u=!0,U.offsetHeight,U.style.transition=E.props.moveTransition,ne()&&E.props.animation){var wo=aA(),ss=wo.box,Or=wo.content;Fu([ss,Or],De),im([ss,Or],"visible")}me(),Ye(),nm(Su,E),(zn=E.popperInstance)==null||zn.forceUpdate(),re("onMount",[E]),E.props.animation&&ne()&&ct(De,function(){E.state.isShown=!0,re("onShown",[E])})}},T()}}function iA(){process.env.NODE_ENV!=="production"&&Dn(E.state.isDestroyed,Ki("hide"));var K=!E.state.isVisible,ie=E.state.isDestroyed,ue=!E.state.isEnabled,Pe=Eu(E.props.duration,1,It.duration);if(!(K||ie||ue)&&(re("onHide",[E],!1),E.props.onHide(E)!==!1)){if(E.state.isVisible=!1,E.state.isShown=!1,u=!1,s=!1,ne()&&(U.style.visibility="hidden"),He(),qe(),ke(!0),ne()){var De=aA(),GA=De.box,yt=De.content;E.props.animation&&(Fu([GA,yt],Pe),im([GA,yt],"hidden"))}me(),Ye(),E.props.animation?ne()&&pA(Pe,E.unmount):E.unmount()}}function Ct(K){process.env.NODE_ENV!=="production"&&Dn(E.state.isDestroyed,Ki("hideWithInteractivity")),Le().addEventListener("mousemove",w),nm(ya,w),w(K)}function Tn(){process.env.NODE_ENV!=="production"&&Dn(E.state.isDestroyed,Ki("unmount")),E.state.isVisible&&E.hide(),E.state.isMounted&&(xr(),x().forEach(function(K){K._tippy.unmount()}),U.parentNode&&U.parentNode.removeChild(U),Su=Su.filter(function(K){return K!==E}),E.state.isMounted=!1,re("onHidden",[E]))}function Jt(){process.env.NODE_ENV!=="production"&&Dn(E.state.isDestroyed,Ki("destroy")),!E.state.isDestroyed&&(E.clearDelayTimeouts(),E.unmount(),xt(),delete t._tippy,E.state.isDestroyed=!0,re("onDestroy",[E]))}}function Vi(t,e){e===void 0&&(e={});var A=It.plugins.concat(e.plugins||[]);process.env.NODE_ENV!=="production"&&(D1(t),hm(e,A)),O1();var n=Object.assign({},e,{plugins:A}),r=I1(t);if(process.env.NODE_ENV!=="production"){var i=Ps(n.content),s=r.length>1;Dn(i&&s,["tippy() was passed an Element as the `content` prop, but more than","one tippy instance was created by this invocation. This means the","content element will only be appended to the last tippy instance.",`
134
+ `,"See: https://atomiks.github.io/tippyjs/v6/accessibility/#interactivity"].join(" "))}function N(){return gc(E.querySelectorAll("[data-tippy-root]"))}function le(oe){C.clearDelayTimeouts(),oe&&te("onTrigger",[C,oe]),Ae();var xe=$(!0),Ke=K(),ft=Ke[0],G=Ke[1];br.isTouch&&ft==="hold"&&G&&(xe=G),xe?n=setTimeout(function(){C.show()},xe):C.show()}function H(oe){if(C.clearDelayTimeouts(),te("onUntrigger",[C,oe]),!C.state.isVisible){se();return}if(!(C.props.trigger.indexOf("mouseenter")>=0&&C.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(oe.type)>=0&&a)){var xe=$(!1);xe?r=setTimeout(function(){C.state.isVisible&&C.hide()},xe):i=requestAnimationFrame(function(){C.hide()})}}function we(){C.state.isEnabled=!0}function Me(){C.hide(),C.state.isEnabled=!1}function We(){clearTimeout(n),clearTimeout(r),cancelAnimationFrame(i)}function ne(oe){if(process.env.NODE_ENV!=="production"&&Kr(C.state.isDestroyed,mo("setProps")),!C.state.isDestroyed){te("onBeforeUpdate",[C,oe]),Ge();var xe=C.props,Ke=jy(t,Object.assign({},xe,Ky(oe),{ignoreAttributes:!0}));C.props=Ke,ie(),xe.interactiveDebounce!==Ke.interactiveDebounce&&(j(),B=Py(Y,Ke.interactiveDebounce)),xe.triggerTarget&&!Ke.triggerTarget?po(xe.triggerTarget).forEach(function(ft){ft.removeAttribute("aria-expanded")}):Ke.triggerTarget&&t.removeAttribute("aria-expanded"),me(),re(),x&&x(xe,Ke),C.popperInstance&&(ke(),N().forEach(function(ft){requestAnimationFrame(ft._tippy.popperInstance.forceUpdate)})),te("onAfterUpdate",[C,oe])}}function ee(oe){C.setProps({content:oe})}function $e(){process.env.NODE_ENV!=="production"&&Kr(C.state.isDestroyed,mo("show"));var oe=C.state.isVisible,xe=C.state.isDestroyed,Ke=!C.state.isEnabled,ft=br.isTouch&&!C.props.touch,G=sh(C.props.duration,0,yn.duration);if(!(oe||xe||Ke||ft)&&!ge().hasAttribute("disabled")&&(te("onShow",[C],!1),C.props.onShow(C)!==!1)){if(C.state.isVisible=!0,ce()&&(E.style.visibility="visible"),re(),Ae(),C.state.isMounted||(E.style.transition="none"),ce()){var ye=X(),Ne=ye.box,et=ye.content;ch([Ne,et],0)}m=function(){var _e;if(!(!C.state.isVisible||d)){if(d=!0,E.offsetHeight,E.style.transition=C.props.moveTransition,ce()&&C.props.animation){var Pe=X(),VA=Pe.box,dA=Pe.content;ch([VA,dA],G),$y([VA,dA],"visible")}q(),me(),Vy(ph,C),(_e=C.popperInstance)==null||_e.forceUpdate(),te("onMount",[C]),C.props.animation&&ce()&&Z(G,function(){C.state.isShown=!0,te("onShown",[C])})}},M()}}function dt(){process.env.NODE_ENV!=="production"&&Kr(C.state.isDestroyed,mo("hide"));var oe=!C.state.isVisible,xe=C.state.isDestroyed,Ke=!C.state.isEnabled,ft=sh(C.props.duration,1,yn.duration);if(!(oe||xe||Ke)&&(te("onHide",[C],!1),C.props.onHide(C)!==!1)){if(C.state.isVisible=!1,C.state.isShown=!1,d=!1,a=!1,ce()&&(E.style.visibility="hidden"),j(),se(),re(!0),ce()){var G=X(),ye=G.box,Ne=G.content;C.props.animation&&(ch([ye,Ne],ft),$y([ye,Ne],"hidden"))}q(),me(),C.props.animation?ce()&&U(ft,C.unmount):C.unmount()}}function vA(oe){process.env.NODE_ENV!=="production"&&Kr(C.state.isDestroyed,mo("hideWithInteractivity")),V().addEventListener("mousemove",B),Vy(Bc,B),B(oe)}function en(){process.env.NODE_ENV!=="production"&&Kr(C.state.isDestroyed,mo("unmount")),C.state.isVisible&&C.hide(),C.state.isMounted&&(nt(),N().forEach(function(oe){oe._tippy.unmount()}),E.parentNode&&E.parentNode.removeChild(E),ph=ph.filter(function(oe){return oe!==C}),C.state.isMounted=!1,te("onHidden",[C]))}function PA(){process.env.NODE_ENV!=="production"&&Kr(C.state.isDestroyed,mo("destroy")),!C.state.isDestroyed&&(C.clearDelayTimeouts(),C.unmount(),Ge(),delete t._tippy,C.state.isDestroyed=!0,te("onDestroy",[C]))}}function go(t,e){e===void 0&&(e={});var A=yn.plugins.concat(e.plugins||[]);process.env.NODE_ENV!=="production"&&(EL(t),Zy(e,A)),wL();var n=Object.assign({},e,{plugins:A}),r=hL(t);if(process.env.NODE_ENV!=="production"){var i=ks(n.content),a=r.length>1;Kr(i&&a,["tippy() was passed an Element as the `content` prop, but more than","one tippy instance was created by this invocation. This means the","content element will only be appended to the last tippy instance.",`
113
135
 
114
136
  `,"Instead, pass the .innerHTML of the element, or use a function that","returns a cloned version of the element instead.",`
115
137
 
116
138
  `,`1) content: element.innerHTML
117
- `,"2) content: () => element.cloneNode(true)"].join(" "))}var a=r.reduce(function(c,u){var f=u&&$1(u,n);return f&&c.push(f),c},[]);return Ps(t)?a[0]:a}Vi.defaultProps=It,Vi.setDefaultProps=K1,Vi.currentInput=Fn,Object.assign({},fh.applyStyles,{effect:function(e){var A=e.state,n={popper:{position:A.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(A.elements.popper.style,n.popper),A.styles=n,A.elements.arrow&&Object.assign(A.elements.arrow.style,n.arrow)}}),Vi.setDefaultProps({render:mm});class W1{constructor({editor:e,element:A,view:n,tippyOptions:r={},updateDelay:i=250,shouldShow:s}){this.preventHide=!1,this.shouldShow=({view:a,state:c,from:u,to:f})=>{const{doc:p,selection:g}=c,{empty:B}=g,w=!p.textBetween(u,f).length&&fu(c.selection),Q=this.element.contains(document.activeElement);return!(!(a.hasFocus()||Q)||B||w||!this.editor.isEditable)},this.mousedownHandler=()=>{this.preventHide=!0},this.dragstartHandler=()=>{this.hide()},this.focusHandler=()=>{setTimeout(()=>this.update(this.editor.view))},this.blurHandler=({event:a})=>{var c;if(this.preventHide){this.preventHide=!1;return}a!=null&&a.relatedTarget&&(!((c=this.element.parentNode)===null||c===void 0)&&c.contains(a.relatedTarget))||this.hide()},this.tippyBlurHandler=a=>{this.blurHandler({event:a})},this.handleDebouncedUpdate=(a,c)=>{const u=!(c!=null&&c.selection.eq(a.state.selection)),f=!(c!=null&&c.doc.eq(a.state.doc));!u&&!f||(this.updateDebounceTimer&&clearTimeout(this.updateDebounceTimer),this.updateDebounceTimer=window.setTimeout(()=>{this.updateHandler(a,u,f,c)},this.updateDelay))},this.updateHandler=(a,c,u,f)=>{var p,g,B;const{state:w,composing:Q}=a,{selection:b}=w;if(Q||!c&&!u)return;this.createTooltip();const{ranges:_}=b,S=Math.min(..._.map(U=>U.$from.pos)),E=Math.max(..._.map(U=>U.$to.pos));if(!((p=this.shouldShow)===null||p===void 0?void 0:p.call(this,{editor:this.editor,view:a,state:w,oldState:f,from:S,to:E}))){this.hide();return}(g=this.tippy)===null||g===void 0||g.setProps({getReferenceClientRect:((B=this.tippyOptions)===null||B===void 0?void 0:B.getReferenceClientRect)||(()=>{if(Xv(w.selection)){let U=a.nodeDOM(S);const N=U.dataset.nodeViewWrapper?U:U.querySelector("[data-node-view-wrapper]");if(N&&(U=N.firstChild),U)return U.getBoundingClientRect()}return Mg(a,S,E)})}),this.show()},this.editor=e,this.element=A,this.view=n,this.updateDelay=i,s&&(this.shouldShow=s),this.element.addEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.view.dom.addEventListener("dragstart",this.dragstartHandler),this.editor.on("focus",this.focusHandler),this.editor.on("blur",this.blurHandler),this.tippyOptions=r,this.element.remove(),this.element.style.visibility="visible"}createTooltip(){const{element:e}=this.editor.options,A=!!e.parentElement;this.tippy||!A||(this.tippy=Vi(e,{duration:0,getReferenceClientRect:null,content:this.element,interactive:!0,trigger:"manual",placement:"top",hideOnClick:"toggle",...this.tippyOptions}),this.tippy.popper.firstChild&&this.tippy.popper.firstChild.addEventListener("blur",this.tippyBlurHandler))}update(e,A){const{state:n}=e,r=n.selection.$from.pos!==n.selection.$to.pos;if(this.updateDelay>0&&r){this.handleDebouncedUpdate(e,A);return}const i=!(A!=null&&A.selection.eq(e.state.selection)),s=!(A!=null&&A.doc.eq(e.state.doc));this.updateHandler(e,i,s,A)}show(){var e;(e=this.tippy)===null||e===void 0||e.show()}hide(){var e;(e=this.tippy)===null||e===void 0||e.hide()}destroy(){var e,A;!((e=this.tippy)===null||e===void 0)&&e.popper.firstChild&&this.tippy.popper.firstChild.removeEventListener("blur",this.tippyBlurHandler),(A=this.tippy)===null||A===void 0||A.destroy(),this.element.removeEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.view.dom.removeEventListener("dragstart",this.dragstartHandler),this.editor.off("focus",this.focusHandler),this.editor.off("blur",this.blurHandler)}}const Bm=t=>new pt({key:typeof t.pluginKey=="string"?new wn(t.pluginKey):t.pluginKey,view:e=>new W1({view:e,...t})});YA.create({name:"bubbleMenu",addOptions(){return{element:null,tippyOptions:{},pluginKey:"bubbleMenu",updateDelay:void 0,shouldShow:null}},addProseMirrorPlugins(){return this.options.element?[Bm({pluginKey:this.options.pluginKey,editor:this.editor,element:this.options.element,tippyOptions:this.options.tippyOptions,updateDelay:this.options.updateDelay,shouldShow:this.options.shouldShow})]:[]}});class J1{constructor({editor:e,element:A,view:n,tippyOptions:r={},shouldShow:i}){this.preventHide=!1,this.shouldShow=({view:s,state:a})=>{const{selection:c}=a,{$anchor:u,empty:f}=c,p=u.depth===1,g=u.parent.isTextblock&&!u.parent.type.spec.code&&!u.parent.textContent;return!(!s.hasFocus()||!f||!p||!g||!this.editor.isEditable)},this.mousedownHandler=()=>{this.preventHide=!0},this.focusHandler=()=>{setTimeout(()=>this.update(this.editor.view))},this.blurHandler=({event:s})=>{var a;if(this.preventHide){this.preventHide=!1;return}s!=null&&s.relatedTarget&&(!((a=this.element.parentNode)===null||a===void 0)&&a.contains(s.relatedTarget))||this.hide()},this.tippyBlurHandler=s=>{this.blurHandler({event:s})},this.editor=e,this.element=A,this.view=n,i&&(this.shouldShow=i),this.element.addEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.editor.on("focus",this.focusHandler),this.editor.on("blur",this.blurHandler),this.tippyOptions=r,this.element.remove(),this.element.style.visibility="visible"}createTooltip(){const{element:e}=this.editor.options,A=!!e.parentElement;this.tippy||!A||(this.tippy=Vi(e,{duration:0,getReferenceClientRect:null,content:this.element,interactive:!0,trigger:"manual",placement:"right",hideOnClick:"toggle",...this.tippyOptions}),this.tippy.popper.firstChild&&this.tippy.popper.firstChild.addEventListener("blur",this.tippyBlurHandler))}update(e,A){var n,r,i;const{state:s}=e,{doc:a,selection:c}=s,{from:u,to:f}=c;if(A&&A.doc.eq(a)&&A.selection.eq(c))return;if(this.createTooltip(),!((n=this.shouldShow)===null||n===void 0?void 0:n.call(this,{editor:this.editor,view:e,state:s,oldState:A}))){this.hide();return}(r=this.tippy)===null||r===void 0||r.setProps({getReferenceClientRect:((i=this.tippyOptions)===null||i===void 0?void 0:i.getReferenceClientRect)||(()=>Mg(e,u,f))}),this.show()}show(){var e;(e=this.tippy)===null||e===void 0||e.show()}hide(){var e;(e=this.tippy)===null||e===void 0||e.hide()}destroy(){var e,A;!((e=this.tippy)===null||e===void 0)&&e.popper.firstChild&&this.tippy.popper.firstChild.removeEventListener("blur",this.tippyBlurHandler),(A=this.tippy)===null||A===void 0||A.destroy(),this.element.removeEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.editor.off("focus",this.focusHandler),this.editor.off("blur",this.blurHandler)}}const wm=t=>new pt({key:typeof t.pluginKey=="string"?new wn(t.pluginKey):t.pluginKey,view:e=>new J1({view:e,...t})});YA.create({name:"floatingMenu",addOptions(){return{element:null,tippyOptions:{},pluginKey:"floatingMenu",shouldShow:null}},addProseMirrorPlugins(){return this.options.element?[wm({pluginKey:this.options.pluginKey,editor:this.editor,element:this.options.element,tippyOptions:this.options.tippyOptions,shouldShow:this.options.shouldShow})]:[]}}),h.defineComponent({name:"BubbleMenu",props:{pluginKey:{type:[String,Object],default:"bubbleMenu"},editor:{type:Object,required:!0},updateDelay:{type:Number,default:void 0},tippyOptions:{type:Object,default:()=>({})},shouldShow:{type:Function,default:null}},setup(t,{slots:e}){const A=h.ref(null);return h.onMounted(()=>{const{updateDelay:n,editor:r,pluginKey:i,shouldShow:s,tippyOptions:a}=t;r.registerPlugin(Bm({updateDelay:n,editor:r,element:A.value,pluginKey:i,shouldShow:s,tippyOptions:a}))}),h.onBeforeUnmount(()=>{const{pluginKey:n,editor:r}=t;r.unregisterPlugin(n)}),()=>{var n;return h.h("div",{ref:A},(n=e.default)===null||n===void 0?void 0:n.call(e))}}});function Cm(t){return h.customRef((e,A)=>({get(){return e(),t},set(n){t=n,requestAnimationFrame(()=>{requestAnimationFrame(()=>{A()})})}}))}class X1 extends fI{constructor(e={}){return super(e),this.vueRenderers=h.reactive(new Map),this.contentComponent=null,this.reactiveState=Cm(this.view.state),this.reactiveExtensionStorage=Cm(this.extensionStorage),this.on("transaction",()=>{this.reactiveState.value=this.view.state,this.reactiveExtensionStorage.value=this.extensionStorage}),h.markRaw(this)}get state(){return this.reactiveState?this.reactiveState.value:this.view.state}get storage(){return this.reactiveExtensionStorage?this.reactiveExtensionStorage.value:super.storage}registerPlugin(e,A){super.registerPlugin(e,A),this.reactiveState.value=this.view.state}unregisterPlugin(e){super.unregisterPlugin(e),this.reactiveState.value=this.view.state}}const Y1=h.defineComponent({name:"EditorContent",props:{editor:{default:null,type:Object}},setup(t){const e=h.ref(),A=h.getCurrentInstance();return h.watchEffect(()=>{const n=t.editor;n&&n.options.element&&e.value&&h.nextTick(()=>{if(!e.value||!n.options.element.firstChild)return;const r=h.unref(e.value);e.value.append(...n.options.element.childNodes),n.contentComponent=A.ctx._,n.setOptions({element:r}),n.createNodeViews()})}),h.onBeforeUnmount(()=>{const n=t.editor;if(!n||(n.isDestroyed||n.view.setProps({nodeViews:{}}),n.contentComponent=null,!n.options.element.firstChild))return;const r=document.createElement("div");r.append(...n.options.element.childNodes),n.setOptions({element:r})}),{rootEl:e}},render(){const t=[];return this.editor&&this.editor.vueRenderers.forEach(e=>{const A=h.h(h.Teleport,{to:e.teleportElement,key:e.id},h.h(e.component,{ref:e.id,...e.props}));t.push(A)}),h.h("div",{ref:e=>{this.rootEl=e}},...t)}});h.defineComponent({name:"FloatingMenu",props:{pluginKey:{type:null,default:"floatingMenu"},editor:{type:Object,required:!0},tippyOptions:{type:Object,default:()=>({})},shouldShow:{type:Function,default:null}},setup(t,{slots:e}){const A=h.ref(null);return h.onMounted(()=>{const{pluginKey:n,editor:r,tippyOptions:i,shouldShow:s}=t;r.registerPlugin(wm({pluginKey:n,editor:r,element:A.value,tippyOptions:i,shouldShow:s}))}),h.onBeforeUnmount(()=>{const{pluginKey:n,editor:r}=t;r.unregisterPlugin(n)}),()=>{var n;return h.h("div",{ref:A},(n=e.default)===null||n===void 0?void 0:n.call(e))}}}),h.defineComponent({name:"NodeViewContent",props:{as:{type:String,default:"div"}},render(){return h.h(this.as,{style:{whiteSpace:"pre-wrap"},"data-node-view-content":""})}}),h.defineComponent({name:"NodeViewWrapper",props:{as:{type:String,default:"div"}},inject:["onDragStart","decorationClasses"],render(){var t,e;return h.h(this.as,{class:this.decorationClasses,style:{whiteSpace:"normal"},"data-node-view-wrapper":"",onDragstart:this.onDragStart},(e=(t=this.$slots).default)===null||e===void 0?void 0:e.call(t))}});const z1=(t={})=>{const e=h.shallowRef();return h.onMounted(()=>{e.value=new X1(t)}),h.onBeforeUnmount(()=>{var A;(A=e.value)===null||A===void 0||A.destroy()}),e},q1={class:"rte-editor"},Z1={key:0,class:"rte-editor__controls"},j1=["disabled"],eS=["disabled"],AS=["disabled"],tS=["disabled"],nS=["disabled"],rS=["disabled"],iS=h.defineComponent({__name:"rte-editor",props:{modelValue:{type:String,default:"<p>I’m running Tiptap with Vue.js. 🎉</p>"},disabled:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(t,{emit:e}){const A=t,n=e,r=z1({content:A.modelValue,onUpdate:()=>{var i;n("update:modelValue",(i=r.value)==null?void 0:i.getHTML())},extensions:[m1,mI.configure({types:["heading","paragraph"]}),gI]});return h.watch(()=>A.modelValue,(i,s)=>{if(r.value){if(r.value.getHTML()===i)return;r.value.commands.setContent(i,!1)}}),(i,s)=>{const a=h.resolveComponent("svg-icon");return h.openBlock(),h.createElementBlock("div",q1,[h.unref(r)?(h.openBlock(),h.createElementBlock("div",Z1,[h.createElementVNode("button",{class:h.normalizeClass(["btn btn-light",{"is-active":h.unref(r).isActive("bold")}]),onClick:s[0]||(s[0]=c=>{var u;return(u=h.unref(r))==null?void 0:u.chain().focus().toggleBold().run()}),disabled:!h.unref(r).can().chain().focus().toggleBold().run()},[h.createVNode(a,{symbol:"bold"})],10,j1),h.createElementVNode("button",{class:h.normalizeClass(["btn btn-light",{"is-active":h.unref(r).isActive("italic")}]),onClick:s[1]||(s[1]=c=>{var u;return(u=h.unref(r))==null?void 0:u.chain().focus().toggleItalic().run()}),disabled:!h.unref(r).can().chain().focus().toggleItalic().run()},[h.createVNode(a,{symbol:"italic"})],10,eS),h.createElementVNode("button",{class:h.normalizeClass(["btn btn-light",{"is-active":h.unref(r).isActive("strike")}]),onClick:s[2]||(s[2]=c=>{var u;return(u=h.unref(r))==null?void 0:u.chain().focus().toggleStrike().run()}),disabled:!h.unref(r).can().chain().focus().toggleStrike().run()}," strikethrough ",10,AS),h.createElementVNode("button",{class:h.normalizeClass(["btn btn-light",{"is-active":h.unref(r).isActive("code")}]),onClick:s[3]||(s[3]=c=>{var u;return(u=h.unref(r))==null?void 0:u.chain().focus().toggleCode().run()}),disabled:!h.unref(r).can().chain().focus().toggleCode().run()},[h.createVNode(a,{symbol:"code"})],10,tS),h.createElementVNode("button",{class:"btn btn-light",onClick:s[4]||(s[4]=c=>{var u;return(u=h.unref(r))==null?void 0:u.chain().focus().unsetAllMarks().run()})}," clear marks "),h.createElementVNode("button",{class:"btn btn-light",onClick:s[5]||(s[5]=c=>{var u;return(u=h.unref(r))==null?void 0:u.chain().focus().clearNodes().run()})}," clear nodes "),h.createElementVNode("button",{class:h.normalizeClass(["btn btn-light",{"is-active":h.unref(r).isActive("paragraph")}]),onClick:s[6]||(s[6]=c=>{var u;return(u=h.unref(r))==null?void 0:u.chain().focus().setParagraph().run()})}," paragraph ",2),h.createElementVNode("button",{class:h.normalizeClass(["btn btn-light",{"is-active":h.unref(r).isActive("heading",{level:1})}]),onClick:s[7]||(s[7]=c=>{var u;return(u=h.unref(r))==null?void 0:u.chain().focus().toggleHeading({level:1}).run()})}," h1 ",2),h.createElementVNode("button",{class:h.normalizeClass(["btn btn-light",{"is-active":h.unref(r).isActive("heading",{level:2})}]),onClick:s[8]||(s[8]=c=>{var u;return(u=h.unref(r))==null?void 0:u.chain().focus().toggleHeading({level:2}).run()})}," h2 ",2),h.createElementVNode("button",{class:h.normalizeClass(["btn btn-light",{"is-active":h.unref(r).isActive("heading",{level:3})}]),onClick:s[9]||(s[9]=c=>{var u;return(u=h.unref(r))==null?void 0:u.chain().focus().toggleHeading({level:3}).run()})}," h3 ",2),h.createElementVNode("button",{class:h.normalizeClass(["btn btn-light",{"is-active":h.unref(r).isActive("heading",{level:4})}]),onClick:s[10]||(s[10]=c=>{var u;return(u=h.unref(r))==null?void 0:u.chain().focus().toggleHeading({level:4}).run()})}," h4 ",2),h.createElementVNode("button",{class:h.normalizeClass(["btn btn-light",{"is-active":h.unref(r).isActive("heading",{level:5})}]),onClick:s[11]||(s[11]=c=>{var u;return(u=h.unref(r))==null?void 0:u.chain().focus().toggleHeading({level:5}).run()})}," h5 ",2),h.createElementVNode("button",{class:h.normalizeClass(["btn btn-light",{"is-active":h.unref(r).isActive("heading",{level:6})}]),onClick:s[12]||(s[12]=c=>{var u;return(u=h.unref(r))==null?void 0:u.chain().focus().toggleHeading({level:6}).run()})}," h6 ",2),h.createElementVNode("button",{class:h.normalizeClass(["btn btn-light",{"is-active":h.unref(r).isActive("bulletList")}]),onClick:s[13]||(s[13]=c=>{var u;return(u=h.unref(r))==null?void 0:u.chain().focus().toggleBulletList().run()})},[h.createVNode(a,{id:"list"})],2),h.createElementVNode("button",{class:h.normalizeClass(["btn btn-light",{"is-active":h.unref(r).isActive("orderedList")}]),onClick:s[14]||(s[14]=c=>{var u;return(u=h.unref(r))==null?void 0:u.chain().focus().toggleOrderedList().run()})}," ordered list ",2),h.createElementVNode("button",{class:h.normalizeClass(["btn btn-light",{"is-active":h.unref(r).isActive("codeBlock")}]),onClick:s[15]||(s[15]=c=>{var u;return(u=h.unref(r))==null?void 0:u.chain().focus().toggleCodeBlock().run()})}," code block ",2),h.createElementVNode("button",{class:h.normalizeClass(["btn btn-light",{"is-active":h.unref(r).isActive("blockquote")}]),onClick:s[16]||(s[16]=c=>{var u;return(u=h.unref(r))==null?void 0:u.chain().focus().toggleBlockquote().run()})}," blockquote ",2),h.createElementVNode("button",{class:"btn btn-light",onClick:s[17]||(s[17]=c=>{var u;return(u=h.unref(r))==null?void 0:u.chain().focus().setHorizontalRule().run()})}," horizontal rule "),h.createElementVNode("button",{class:"btn btn-light",onClick:s[18]||(s[18]=c=>{var u;return(u=h.unref(r))==null?void 0:u.chain().focus().setHardBreak().run()})}," hard break "),h.createElementVNode("button",{class:"btn btn-light",onClick:s[19]||(s[19]=c=>{var u;return(u=h.unref(r))==null?void 0:u.chain().focus().undo().run()}),disabled:!h.unref(r).can().chain().focus().undo().run()}," undo ",8,nS),h.createElementVNode("button",{class:"btn btn-light",onClick:s[20]||(s[20]=c=>{var u;return(u=h.unref(r))==null?void 0:u.chain().focus().redo().run()}),disabled:!h.unref(r).can().chain().focus().redo().run()}," redo ",8,rS),h.createElementVNode("button",{class:h.normalizeClass(["btn btn-light",{"is-active":h.unref(r).isActive("highlight")}]),onClick:s[21]||(s[21]=c=>{var u;return(u=h.unref(r))==null?void 0:u.chain().focus().toggleHighlight().run()})}," highlight ",2),h.createElementVNode("button",{class:h.normalizeClass(["btn btn-light",{"is-active":h.unref(r).isActive({textAlign:"left"})}]),onClick:s[22]||(s[22]=c=>{var u;return(u=h.unref(r))==null?void 0:u.chain().focus().setTextAlign("left").run()})},[h.createVNode(a,{symbol:"align-left"})],2),h.createElementVNode("button",{class:h.normalizeClass(["btn btn-light",{"is-active":h.unref(r).isActive({textAlign:"center"})}]),onClick:s[23]||(s[23]=c=>{var u;return(u=h.unref(r))==null?void 0:u.chain().focus().setTextAlign("center").run()})},[h.createVNode(a,{symbol:"align-center"})],2),h.createElementVNode("button",{class:h.normalizeClass(["btn btn-light",{"is-active":h.unref(r).isActive({textAlign:"right"})}]),onClick:s[24]||(s[24]=c=>{var u;return(u=h.unref(r))==null?void 0:u.chain().focus().setTextAlign("right").run()})},[h.createVNode(a,{symbol:"align-right"})],2)])):h.createCommentVNode("",!0),h.createVNode(h.unref(Y1),{class:"rte-editor__content",editor:h.unref(r)},null,8,["editor"])])}}}),S$="",sS={class:"input-color"},oS={class:"base-input__color-swatch"},aS=["name","id","disabled","read-only","required","aria-label"],lS=h.defineComponent({__name:"input-color",props:{modelValue:{type:[String,Number,Boolean,Date],default:""},type:{type:String,default:"text"},name:{type:String,default:()=>$e()},id:{type:String,default:()=>$e()},label:{type:String,default:""},placeholder:{type:String,default:""},variant:{type:String,default:""},disabled:{type:Boolean,default:!1},readOnly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},maxlength:{type:Number},pattern:{type:String,default:null}},emits:["update:modelValue"],setup(t,{emit:e}){const A=t,n=e,r=h.computed({get(){return A.modelValue},set(i){n("update:modelValue",i)}});return(i,s)=>{const a=h.resolveComponent("base-input");return h.openBlock(),h.createElementBlock("div",sS,[h.createVNode(a,{modelValue:r.value,"onUpdate:modelValue":s[1]||(s[1]=c=>r.value=c),type:t.type==="color"?"text":t.type,id:t.id,name:t.name,placeholder:t.placeholder,pattern:t.pattern,label:t.label,disabled:t.disabled,"read-only":t.readOnly,required:t.required,maxlength:t.maxlength},{"input-append":h.withCtx(c=>[h.createElementVNode("span",oS,[h.withDirectives(h.createElementVNode("input",{"onUpdate:modelValue":s[0]||(s[0]=u=>r.value=u),type:"color",name:`${t.name}-color`,id:`${t.id}-color`,disabled:t.disabled,"read-only":t.readOnly,required:t.required,class:"form-control","aria-label":t.label},null,8,aS),[[h.vModelText,r.value]])])]),_:1},8,["modelValue","type","id","name","placeholder","pattern","label","disabled","read-only","required","maxlength"])])}}}),T$="",cS={class:"color-palette"},uS=["for"],fS=h.defineComponent({__name:"color-palette",props:{modelValue:{type:[String],default:""},colors:{type:Array,default:["#000000","#FFFFFF"]},name:{type:String,default:()=>$e()},id:{type:String,default:()=>$e()},label:{type:String},disabled:{type:Boolean,default:!1},required:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(t,{emit:e}){const A=t,n=e,r=h.computed({get(){return A.modelValue},set(i){n("update:modelValue",i)}});return(i,s)=>(h.openBlock(),h.createElementBlock("div",cS,[h.createVNode(Ho,{modelValue:r.value,"onUpdate:modelValue":s[0]||(s[0]=a=>r.value=a),options:t.colors,name:t.name,id:t.id,label:t.label,disabled:t.disabled,required:t.required,class:"d-flex flex-wrap flex-row gap-2"},{"option-label":h.withCtx(a=>[h.createElementVNode("label",{for:`${t.id}-${a.index}`,class:"d-block rounded-circle",style:h.normalizeStyle({backgroundColor:a.option})},null,12,uS)]),_:1},8,["modelValue","options","name","id","label","disabled","required"])]))}}),_$="";/*!
118
- * shared v9.13.1
119
- * (c) 2024 kazuya kawaguchi
120
- * Released under the MIT License.
121
- */const Mn=typeof window<"u";let St,ii;if(process.env.NODE_ENV!=="production"){const t=Mn&&window.performance;t&&t.mark&&t.measure&&t.clearMarks&&t.clearMeasures&&(St=e=>{t.mark(e)},ii=(e,A,n)=>{t.measure(e,A,n),t.clearMarks(A),t.clearMarks(n)})}const dS=/\{([0-9a-zA-Z]+)\}/g;function Tu(t,...e){return e.length===1&&We(e[0])&&(e=e[0]),(!e||!e.hasOwnProperty)&&(e={}),t.replace(dS,(A,n)=>e.hasOwnProperty(n)?e[n]:"")}const Rn=(t,e=!1)=>e?Symbol.for(t):Symbol(t),hS=(t,e,A)=>pS({l:t,k:e,s:A}),pS=t=>JSON.stringify(t).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),zA=t=>typeof t=="number"&&isFinite(t),gS=t=>Fm(t)==="[object Date]",Pi=t=>Fm(t)==="[object RegExp]",Ea=t=>_e(t)&&Object.keys(t).length===0,qA=Object.assign;let ym;const Kn=()=>ym||(ym=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Em(t){return t.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")}const mS=Object.prototype.hasOwnProperty;function Qa(t,e){return mS.call(t,e)}const bA=Array.isArray,cA=t=>typeof t=="function",te=t=>typeof t=="string",rA=t=>typeof t=="boolean",We=t=>t!==null&&typeof t=="object",BS=t=>We(t)&&cA(t.then)&&cA(t.catch),Qm=Object.prototype.toString,Fm=t=>Qm.call(t),_e=t=>{if(!We(t))return!1;const e=Object.getPrototypeOf(t);return e===null||e.constructor===Object},wS=t=>t==null?"":bA(t)||_e(t)&&t.toString===Qm?JSON.stringify(t,null,2):String(t);function CS(t,e=""){return t.reduce((A,n,r)=>r===0?A+n:A+e+n,"")}const bm=2;function yS(t,e=0,A=t.length){const n=t.split(/\r?\n/);let r=0;const i=[];for(let s=0;s<n.length;s++)if(r+=n[s].length+1,r>=e){for(let a=s-bm;a<=s+bm||A>r;a++){if(a<0||a>=n.length)continue;const c=a+1;i.push(`${c}${" ".repeat(3-String(c).length)}| ${n[a]}`);const u=n[a].length;if(a===s){const f=e-(r-u)+1,p=Math.max(1,A>r?u-f:A-e);i.push(" | "+" ".repeat(f)+"^".repeat(p))}else if(a>s){if(A>r){const f=Math.max(Math.min(A-r,u),1);i.push(" | "+"^".repeat(f))}r+=u+1}}break}return i.join(`
122
- `)}function Fa(t){let e=t;return()=>++e}function Vn(t,e){typeof console<"u"&&(console.warn("[intlify] "+t),e&&console.warn(e.stack))}const Um={};function vm(t){Um[t]||(Um[t]=!0,Vn(t))}function ES(){const t=new Map;return{events:t,on(A,n){const r=t.get(A);r&&r.push(n)||t.set(A,[n])},off(A,n){const r=t.get(A);r&&r.splice(r.indexOf(n)>>>0,1)},emit(A,n){(t.get(A)||[]).slice().map(r=>r(n)),(t.get("*")||[]).slice().map(r=>r(A,n))}}}const ba=t=>!We(t)||bA(t);function Ua(t,e){if(ba(t)||ba(e))throw new Error("Invalid value");const A=[{src:t,des:e}];for(;A.length;){const{src:n,des:r}=A.pop();Object.keys(n).forEach(i=>{ba(n[i])||ba(r[i])?r[i]=n[i]:A.push({src:n[i],des:r[i]})})}}/*!
123
- * message-compiler v9.13.1
124
- * (c) 2024 kazuya kawaguchi
125
- * Released under the MIT License.
126
- */function QS(t,e,A){return{line:t,column:e,offset:A}}function va(t,e,A){const n={start:t,end:e};return A!=null&&(n.source=A),n}const FS=/\{([0-9a-zA-Z]+)\}/g;function Im(t,...e){return e.length===1&&bS(e[0])&&(e=e[0]),(!e||!e.hasOwnProperty)&&(e={}),t.replace(FS,(A,n)=>e.hasOwnProperty(n)?e[n]:"")}const Sm=Object.assign,Tm=t=>typeof t=="string",bS=t=>t!==null&&typeof t=="object";function _m(t,e=""){return t.reduce((A,n,r)=>r===0?A+n:A+e+n,"")}const Ia={USE_MODULO_SYNTAX:1,__EXTEND_POINT__:2},US={[Ia.USE_MODULO_SYNTAX]:"Use modulo before '{{0}}'."};function vS(t,e,...A){const n=Im(US[t]||"",...A||[]),r={message:String(n),code:t};return e&&(r.location=e),r}const ge={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,UNHANDLED_CODEGEN_NODE_TYPE:15,UNHANDLED_MINIFIER_NODE_TYPE:16,__EXTEND_POINT__:17},IS={[ge.EXPECTED_TOKEN]:"Expected token: '{0}'",[ge.INVALID_TOKEN_IN_PLACEHOLDER]:"Invalid token in placeholder: '{0}'",[ge.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]:"Unterminated single quote in placeholder",[ge.UNKNOWN_ESCAPE_SEQUENCE]:"Unknown escape sequence: \\{0}",[ge.INVALID_UNICODE_ESCAPE_SEQUENCE]:"Invalid unicode escape sequence: {0}",[ge.UNBALANCED_CLOSING_BRACE]:"Unbalanced closing brace",[ge.UNTERMINATED_CLOSING_BRACE]:"Unterminated closing brace",[ge.EMPTY_PLACEHOLDER]:"Empty placeholder",[ge.NOT_ALLOW_NEST_PLACEHOLDER]:"Not allowed nest placeholder",[ge.INVALID_LINKED_FORMAT]:"Invalid linked format",[ge.MUST_HAVE_MESSAGES_IN_PLURAL]:"Plural must have messages",[ge.UNEXPECTED_EMPTY_LINKED_MODIFIER]:"Unexpected empty linked modifier",[ge.UNEXPECTED_EMPTY_LINKED_KEY]:"Unexpected empty linked key",[ge.UNEXPECTED_LEXICAL_ANALYSIS]:"Unexpected lexical analysis in token: '{0}'",[ge.UNHANDLED_CODEGEN_NODE_TYPE]:"unhandled codegen node type: '{0}'",[ge.UNHANDLED_MINIFIER_NODE_TYPE]:"unhandled mimifier node type: '{0}'"};function Gi(t,e,A={}){const{domain:n,messages:r,args:i}=A,s=Im((r||IS)[t]||"",...i||[]),a=new SyntaxError(String(s));return a.code=t,e&&(a.location=e),a.domain=n,a}function SS(t){throw t}const TS=/<\/?[\w\s="/.':;#-\/]+>/,_S=t=>TS.test(t),Pn=" ",xS="\r",ot=`
127
- `,OS=String.fromCharCode(8232),LS=String.fromCharCode(8233);function kS(t){const e=t;let A=0,n=1,r=1,i=0;const s=N=>e[N]===xS&&e[N+1]===ot,a=N=>e[N]===ot,c=N=>e[N]===LS,u=N=>e[N]===OS,f=N=>s(N)||a(N)||c(N)||u(N),p=()=>A,g=()=>n,B=()=>r,w=()=>i,Q=N=>s(N)||c(N)||u(N)?ot:e[N],b=()=>Q(A),v=()=>Q(A+i);function _(){return i=0,f(A)&&(n++,r=0),s(A)&&A++,A++,r++,e[A]}function S(){return s(A+i)&&i++,i++,e[A+i]}function E(){A=0,n=1,r=1,i=0}function L(N=0){i=N}function U(){const N=A+i;for(;N!==A;)_();i=0}return{index:p,line:g,column:B,peekOffset:w,charAt:Q,currentChar:b,currentPeek:v,next:_,peek:S,reset:E,resetPeek:L,skipToPeek:U}}const Cr=void 0,HS=".",xm="'",NS="tokenizer";function DS(t,e={}){const A=e.location!==!1,n=kS(t),r=()=>n.index(),i=()=>QS(n.line(),n.column(),n.index()),s=i(),a=r(),c={currentType:14,offset:a,startLoc:s,endLoc:s,lastType:14,lastOffset:a,lastStartLoc:s,lastEndLoc:s,braceNest:0,inLinked:!1,text:""},u=()=>c,{onError:f}=e;function p(T,x,W,...oe){const nA=u();if(x.column+=W,x.offset+=W,f){const Ne=A?va(nA.startLoc,x):null,Ve=Gi(T,Ne,{domain:NS,args:oe});f(Ve)}}function g(T,x,W){T.endLoc=i(),T.currentType=x;const oe={type:x};return A&&(oe.loc=va(T.startLoc,T.endLoc)),W!=null&&(oe.value=W),oe}const B=T=>g(T,14);function w(T,x){return T.currentChar()===x?(T.next(),x):(p(ge.EXPECTED_TOKEN,i(),0,x),"")}function Q(T){let x="";for(;T.currentPeek()===Pn||T.currentPeek()===ot;)x+=T.currentPeek(),T.peek();return x}function b(T){const x=Q(T);return T.skipToPeek(),x}function v(T){if(T===Cr)return!1;const x=T.charCodeAt(0);return x>=97&&x<=122||x>=65&&x<=90||x===95}function _(T){if(T===Cr)return!1;const x=T.charCodeAt(0);return x>=48&&x<=57}function S(T,x){const{currentType:W}=x;if(W!==2)return!1;Q(T);const oe=v(T.currentPeek());return T.resetPeek(),oe}function E(T,x){const{currentType:W}=x;if(W!==2)return!1;Q(T);const oe=T.currentPeek()==="-"?T.peek():T.currentPeek(),nA=_(oe);return T.resetPeek(),nA}function L(T,x){const{currentType:W}=x;if(W!==2)return!1;Q(T);const oe=T.currentPeek()===xm;return T.resetPeek(),oe}function U(T,x){const{currentType:W}=x;if(W!==8)return!1;Q(T);const oe=T.currentPeek()===".";return T.resetPeek(),oe}function N(T,x){const{currentType:W}=x;if(W!==9)return!1;Q(T);const oe=v(T.currentPeek());return T.resetPeek(),oe}function V(T,x){const{currentType:W}=x;if(!(W===8||W===12))return!1;Q(T);const oe=T.currentPeek()===":";return T.resetPeek(),oe}function D(T,x){const{currentType:W}=x;if(W!==10)return!1;const oe=()=>{const Ne=T.currentPeek();return Ne==="{"?v(T.peek()):Ne==="@"||Ne==="%"||Ne==="|"||Ne===":"||Ne==="."||Ne===Pn||!Ne?!1:Ne===ot?(T.peek(),oe()):ne(T,!1)},nA=oe();return T.resetPeek(),nA}function se(T){Q(T);const x=T.currentPeek()==="|";return T.resetPeek(),x}function Be(T){const x=Q(T),W=T.currentPeek()==="%"&&T.peek()==="{";return T.resetPeek(),{isModulo:W,hasSpace:x.length>0}}function ne(T,x=!0){const W=(nA=!1,Ne="",Ve=!1)=>{const R=T.currentPeek();return R==="{"?Ne==="%"?!1:nA:R==="@"||!R?Ne==="%"?!0:nA:R==="%"?(T.peek(),W(nA,"%",!0)):R==="|"?Ne==="%"||Ve?!0:!(Ne===Pn||Ne===ot):R===Pn?(T.peek(),W(!0,Pn,Ve)):R===ot?(T.peek(),W(!0,ot,Ve)):!0},oe=W();return x&&T.resetPeek(),oe}function ce(T,x){const W=T.currentChar();return W===Cr?Cr:x(W)?(T.next(),W):null}function Le(T){const x=T.charCodeAt(0);return x>=97&&x<=122||x>=65&&x<=90||x>=48&&x<=57||x===95||x===36}function aA(T){return ce(T,Le)}function Re(T){const x=T.charCodeAt(0);return x>=97&&x<=122||x>=65&&x<=90||x>=48&&x<=57||x===95||x===36||x===45}function ke(T){return ce(T,Re)}function re(T){const x=T.charCodeAt(0);return x>=48&&x<=57}function me(T){return ce(T,re)}function Ye(T){const x=T.charCodeAt(0);return x>=48&&x<=57||x>=65&&x<=70||x>=97&&x<=102}function He(T){return ce(T,Ye)}function Ge(T){let x="",W="";for(;x=me(T);)W+=x;return W}function Ke(T){b(T);const x=T.currentChar();return x!=="%"&&p(ge.EXPECTED_TOKEN,i(),0,x),T.next(),"%"}function AA(T){let x="";for(;;){const W=T.currentChar();if(W==="{"||W==="}"||W==="@"||W==="|"||!W)break;if(W==="%")if(ne(T))x+=W,T.next();else break;else if(W===Pn||W===ot)if(ne(T))x+=W,T.next();else{if(se(T))break;x+=W,T.next()}else x+=W,T.next()}return x}function tA(T){b(T);let x="",W="";for(;x=ke(T);)W+=x;return T.currentChar()===Cr&&p(ge.UNTERMINATED_CLOSING_BRACE,i(),0),W}function qe(T){b(T);let x="";return T.currentChar()==="-"?(T.next(),x+=`-${Ge(T)}`):x+=Ge(T),T.currentChar()===Cr&&p(ge.UNTERMINATED_CLOSING_BRACE,i(),0),x}function pA(T){return T!==xm&&T!==ot}function ct(T){b(T),w(T,"'");let x="",W="";for(;x=ce(T,pA);)x==="\\"?W+=et(T):W+=x;const oe=T.currentChar();return oe===ot||oe===Cr?(p(ge.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,i(),0),oe===ot&&(T.next(),w(T,"'")),W):(w(T,"'"),W)}function et(T){const x=T.currentChar();switch(x){case"\\":case"'":return T.next(),`\\${x}`;case"u":return ut(T,x,4);case"U":return ut(T,x,6);default:return p(ge.UNKNOWN_ESCAPE_SEQUENCE,i(),0,x),""}}function ut(T,x,W){w(T,x);let oe="";for(let nA=0;nA<W;nA++){const Ne=He(T);if(!Ne){p(ge.INVALID_UNICODE_ESCAPE_SEQUENCE,i(),0,`\\${x}${oe}${T.currentChar()}`);break}oe+=Ne}return`\\${x}${oe}`}function _t(T){return T!=="{"&&T!=="}"&&T!==Pn&&T!==ot}function xt(T){b(T);let x="",W="";for(;x=ce(T,_t);)W+=x;return W}function un(T){let x="",W="";for(;x=aA(T);)W+=x;return W}function z(T){const x=W=>{const oe=T.currentChar();return oe==="{"||oe==="%"||oe==="@"||oe==="|"||oe==="("||oe===")"||!oe||oe===Pn?W:(W+=oe,T.next(),x(W))};return x("")}function Ue(T){b(T);const x=w(T,"|");return b(T),x}function Sn(T,x){let W=null;switch(T.currentChar()){case"{":return x.braceNest>=1&&p(ge.NOT_ALLOW_NEST_PLACEHOLDER,i(),0),T.next(),W=g(x,2,"{"),b(T),x.braceNest++,W;case"}":return x.braceNest>0&&x.currentType===2&&p(ge.EMPTY_PLACEHOLDER,i(),0),T.next(),W=g(x,3,"}"),x.braceNest--,x.braceNest>0&&b(T),x.inLinked&&x.braceNest===0&&(x.inLinked=!1),W;case"@":return x.braceNest>0&&p(ge.UNTERMINATED_CLOSING_BRACE,i(),0),W=vA(T,x)||B(x),x.braceNest=0,W;default:{let nA=!0,Ne=!0,Ve=!0;if(se(T))return x.braceNest>0&&p(ge.UNTERMINATED_CLOSING_BRACE,i(),0),W=g(x,1,Ue(T)),x.braceNest=0,x.inLinked=!1,W;if(x.braceNest>0&&(x.currentType===5||x.currentType===6||x.currentType===7))return p(ge.UNTERMINATED_CLOSING_BRACE,i(),0),x.braceNest=0,fn(T,x);if(nA=S(T,x))return W=g(x,5,tA(T)),b(T),W;if(Ne=E(T,x))return W=g(x,6,qe(T)),b(T),W;if(Ve=L(T,x))return W=g(x,7,ct(T)),b(T),W;if(!nA&&!Ne&&!Ve)return W=g(x,13,xt(T)),p(ge.INVALID_TOKEN_IN_PLACEHOLDER,i(),0,W.value),b(T),W;break}}return W}function vA(T,x){const{currentType:W}=x;let oe=null;const nA=T.currentChar();switch((W===8||W===9||W===12||W===10)&&(nA===ot||nA===Pn)&&p(ge.INVALID_LINKED_FORMAT,i(),0),nA){case"@":return T.next(),oe=g(x,8,"@"),x.inLinked=!0,oe;case".":return b(T),T.next(),g(x,9,".");case":":return b(T),T.next(),g(x,10,":");default:return se(T)?(oe=g(x,1,Ue(T)),x.braceNest=0,x.inLinked=!1,oe):U(T,x)||V(T,x)?(b(T),vA(T,x)):N(T,x)?(b(T),g(x,12,un(T))):D(T,x)?(b(T),nA==="{"?Sn(T,x)||oe:g(x,11,z(T))):(W===8&&p(ge.INVALID_LINKED_FORMAT,i(),0),x.braceNest=0,x.inLinked=!1,fn(T,x))}}function fn(T,x){let W={type:14};if(x.braceNest>0)return Sn(T,x)||B(x);if(x.inLinked)return vA(T,x)||B(x);switch(T.currentChar()){case"{":return Sn(T,x)||B(x);case"}":return p(ge.UNBALANCED_CLOSING_BRACE,i(),0),T.next(),g(x,3,"}");case"@":return vA(T,x)||B(x);default:{if(se(T))return W=g(x,1,Ue(T)),x.braceNest=0,x.inLinked=!1,W;const{isModulo:nA,hasSpace:Ne}=Be(T);if(nA)return Ne?g(x,0,AA(T)):g(x,4,Ke(T));if(ne(T))return g(x,0,AA(T));break}}return W}function xr(){const{currentType:T,offset:x,startLoc:W,endLoc:oe}=c;return c.lastType=T,c.lastOffset=x,c.lastStartLoc=W,c.lastEndLoc=oe,c.offset=r(),c.startLoc=i(),n.currentChar()===Cr?g(c,14):fn(n,c)}return{nextToken:xr,currentOffset:r,currentPosition:i,context:u}}const MS="parser",RS=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function KS(t,e,A){switch(t){case"\\\\":return"\\";case"\\'":return"'";default:{const n=parseInt(e||A,16);return n<=55295||n>=57344?String.fromCodePoint(n):"�"}}}function VS(t={}){const e=t.location!==!1,{onError:A,onWarn:n}=t;function r(S,E,L,U,...N){const V=S.currentPosition();if(V.offset+=U,V.column+=U,A){const D=e?va(L,V):null,se=Gi(E,D,{domain:MS,args:N});A(se)}}function i(S,E,L,U,...N){const V=S.currentPosition();if(V.offset+=U,V.column+=U,n){const D=e?va(L,V):null;n(vS(E,D,N))}}function s(S,E,L){const U={type:S};return e&&(U.start=E,U.end=E,U.loc={start:L,end:L}),U}function a(S,E,L,U){U&&(S.type=U),e&&(S.end=E,S.loc&&(S.loc.end=L))}function c(S,E){const L=S.context(),U=s(3,L.offset,L.startLoc);return U.value=E,a(U,S.currentOffset(),S.currentPosition()),U}function u(S,E){const L=S.context(),{lastOffset:U,lastStartLoc:N}=L,V=s(5,U,N);return V.index=parseInt(E,10),S.nextToken(),a(V,S.currentOffset(),S.currentPosition()),V}function f(S,E,L){const U=S.context(),{lastOffset:N,lastStartLoc:V}=U,D=s(4,N,V);return D.key=E,L===!0&&(D.modulo=!0),S.nextToken(),a(D,S.currentOffset(),S.currentPosition()),D}function p(S,E){const L=S.context(),{lastOffset:U,lastStartLoc:N}=L,V=s(9,U,N);return V.value=E.replace(RS,KS),S.nextToken(),a(V,S.currentOffset(),S.currentPosition()),V}function g(S){const E=S.nextToken(),L=S.context(),{lastOffset:U,lastStartLoc:N}=L,V=s(8,U,N);return E.type!==12?(r(S,ge.UNEXPECTED_EMPTY_LINKED_MODIFIER,L.lastStartLoc,0),V.value="",a(V,U,N),{nextConsumeToken:E,node:V}):(E.value==null&&r(S,ge.UNEXPECTED_LEXICAL_ANALYSIS,L.lastStartLoc,0,an(E)),V.value=E.value||"",a(V,S.currentOffset(),S.currentPosition()),{node:V})}function B(S,E){const L=S.context(),U=s(7,L.offset,L.startLoc);return U.value=E,a(U,S.currentOffset(),S.currentPosition()),U}function w(S){const E=S.context(),L=s(6,E.offset,E.startLoc);let U=S.nextToken();if(U.type===9){const N=g(S);L.modifier=N.node,U=N.nextConsumeToken||S.nextToken()}switch(U.type!==10&&r(S,ge.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,an(U)),U=S.nextToken(),U.type===2&&(U=S.nextToken()),U.type){case 11:U.value==null&&r(S,ge.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,an(U)),L.key=B(S,U.value||"");break;case 5:U.value==null&&r(S,ge.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,an(U)),L.key=f(S,U.value||"");break;case 6:U.value==null&&r(S,ge.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,an(U)),L.key=u(S,U.value||"");break;case 7:U.value==null&&r(S,ge.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,an(U)),L.key=p(S,U.value||"");break;default:{r(S,ge.UNEXPECTED_EMPTY_LINKED_KEY,E.lastStartLoc,0);const N=S.context(),V=s(7,N.offset,N.startLoc);return V.value="",a(V,N.offset,N.startLoc),L.key=V,a(L,N.offset,N.startLoc),{nextConsumeToken:U,node:L}}}return a(L,S.currentOffset(),S.currentPosition()),{node:L}}function Q(S){const E=S.context(),L=E.currentType===1?S.currentOffset():E.offset,U=E.currentType===1?E.endLoc:E.startLoc,N=s(2,L,U);N.items=[];let V=null,D=null;do{const ne=V||S.nextToken();switch(V=null,ne.type){case 0:ne.value==null&&r(S,ge.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,an(ne)),N.items.push(c(S,ne.value||""));break;case 6:ne.value==null&&r(S,ge.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,an(ne)),N.items.push(u(S,ne.value||""));break;case 4:D=!0;break;case 5:ne.value==null&&r(S,ge.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,an(ne)),N.items.push(f(S,ne.value||"",!!D)),D&&(i(S,Ia.USE_MODULO_SYNTAX,E.lastStartLoc,0,an(ne)),D=null);break;case 7:ne.value==null&&r(S,ge.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,an(ne)),N.items.push(p(S,ne.value||""));break;case 8:{const ce=w(S);N.items.push(ce.node),V=ce.nextConsumeToken||null;break}}}while(E.currentType!==14&&E.currentType!==1);const se=E.currentType===1?E.lastOffset:S.currentOffset(),Be=E.currentType===1?E.lastEndLoc:S.currentPosition();return a(N,se,Be),N}function b(S,E,L,U){const N=S.context();let V=U.items.length===0;const D=s(1,E,L);D.cases=[],D.cases.push(U);do{const se=Q(S);V||(V=se.items.length===0),D.cases.push(se)}while(N.currentType!==14);return V&&r(S,ge.MUST_HAVE_MESSAGES_IN_PLURAL,L,0),a(D,S.currentOffset(),S.currentPosition()),D}function v(S){const E=S.context(),{offset:L,startLoc:U}=E,N=Q(S);return E.currentType===14?N:b(S,L,U,N)}function _(S){const E=DS(S,Sm({},t)),L=E.context(),U=s(0,L.offset,L.startLoc);return e&&U.loc&&(U.loc.source=S),U.body=v(E),t.onCacheKey&&(U.cacheKey=t.onCacheKey(S)),L.currentType!==14&&r(E,ge.UNEXPECTED_LEXICAL_ANALYSIS,L.lastStartLoc,0,S[L.offset]||""),a(U,E.currentOffset(),E.currentPosition()),U}return{parse:_}}function an(t){if(t.type===14)return"EOF";const e=(t.value||"").replace(/\r?\n/gu,"\\n");return e.length>10?e.slice(0,9)+"…":e}function PS(t,e={}){const A={ast:t,helpers:new Set};return{context:()=>A,helper:i=>(A.helpers.add(i),i)}}function Om(t,e){for(let A=0;A<t.length;A++)_u(t[A],e)}function _u(t,e){switch(t.type){case 1:Om(t.cases,e),e.helper("plural");break;case 2:Om(t.items,e);break;case 6:{_u(t.key,e),e.helper("linked"),e.helper("type");break}case 5:e.helper("interpolate"),e.helper("list");break;case 4:e.helper("interpolate"),e.helper("named");break}}function GS(t,e={}){const A=PS(t);A.helper("normalize"),t.body&&_u(t.body,A);const n=A.context();t.helpers=Array.from(n.helpers)}function $S(t){const e=t.body;return e.type===2?Lm(e):e.cases.forEach(A=>Lm(A)),t}function Lm(t){if(t.items.length===1){const e=t.items[0];(e.type===3||e.type===9)&&(t.static=e.value,delete e.value)}else{const e=[];for(let A=0;A<t.items.length;A++){const n=t.items[A];if(!(n.type===3||n.type===9)||n.value==null)break;e.push(n.value)}if(e.length===t.items.length){t.static=_m(e);for(let A=0;A<t.items.length;A++){const n=t.items[A];(n.type===3||n.type===9)&&delete n.value}}}}const WS="minifier";function $i(t){switch(t.t=t.type,t.type){case 0:{const e=t;$i(e.body),e.b=e.body,delete e.body;break}case 1:{const e=t,A=e.cases;for(let n=0;n<A.length;n++)$i(A[n]);e.c=A,delete e.cases;break}case 2:{const e=t,A=e.items;for(let n=0;n<A.length;n++)$i(A[n]);e.i=A,delete e.items,e.static&&(e.s=e.static,delete e.static);break}case 3:case 9:case 8:case 7:{const e=t;e.value&&(e.v=e.value,delete e.value);break}case 6:{const e=t;$i(e.key),e.k=e.key,delete e.key,e.modifier&&($i(e.modifier),e.m=e.modifier,delete e.modifier);break}case 5:{const e=t;e.i=e.index,delete e.index;break}case 4:{const e=t;e.k=e.key,delete e.key;break}default:throw Gi(ge.UNHANDLED_MINIFIER_NODE_TYPE,null,{domain:WS,args:[t.type]})}delete t.type}const JS="parser";function XS(t,e){const{sourceMap:A,filename:n,breakLineCode:r,needIndent:i}=e,s=e.location!==!1,a={filename:n,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:r,needIndent:i,indentLevel:0};s&&t.loc&&(a.source=t.loc.source);const c=()=>a;function u(b,v){a.code+=b}function f(b,v=!0){const _=v?r:"";u(i?_+" ".repeat(b):_)}function p(b=!0){const v=++a.indentLevel;b&&f(v)}function g(b=!0){const v=--a.indentLevel;b&&f(v)}function B(){f(a.indentLevel)}return{context:c,push:u,indent:p,deindent:g,newline:B,helper:b=>`_${b}`,needIndent:()=>a.needIndent}}function YS(t,e){const{helper:A}=t;t.push(`${A("linked")}(`),Wi(t,e.key),e.modifier?(t.push(", "),Wi(t,e.modifier),t.push(", _type")):t.push(", undefined, _type"),t.push(")")}function zS(t,e){const{helper:A,needIndent:n}=t;t.push(`${A("normalize")}([`),t.indent(n());const r=e.items.length;for(let i=0;i<r&&(Wi(t,e.items[i]),i!==r-1);i++)t.push(", ");t.deindent(n()),t.push("])")}function qS(t,e){const{helper:A,needIndent:n}=t;if(e.cases.length>1){t.push(`${A("plural")}([`),t.indent(n());const r=e.cases.length;for(let i=0;i<r&&(Wi(t,e.cases[i]),i!==r-1);i++)t.push(", ");t.deindent(n()),t.push("])")}}function ZS(t,e){e.body?Wi(t,e.body):t.push("null")}function Wi(t,e){const{helper:A}=t;switch(e.type){case 0:ZS(t,e);break;case 1:qS(t,e);break;case 2:zS(t,e);break;case 6:YS(t,e);break;case 8:t.push(JSON.stringify(e.value),e);break;case 7:t.push(JSON.stringify(e.value),e);break;case 5:t.push(`${A("interpolate")}(${A("list")}(${e.index}))`,e);break;case 4:t.push(`${A("interpolate")}(${A("named")}(${JSON.stringify(e.key)}))`,e);break;case 9:t.push(JSON.stringify(e.value),e);break;case 3:t.push(JSON.stringify(e.value),e);break;default:throw Gi(ge.UNHANDLED_CODEGEN_NODE_TYPE,null,{domain:JS,args:[e.type]})}}const jS=(t,e={})=>{const A=Tm(e.mode)?e.mode:"normal",n=Tm(e.filename)?e.filename:"message.intl",r=!!e.sourceMap,i=e.breakLineCode!=null?e.breakLineCode:A==="arrow"?";":`
128
- `,s=e.needIndent?e.needIndent:A!=="arrow",a=t.helpers||[],c=XS(t,{mode:A,filename:n,sourceMap:r,breakLineCode:i,needIndent:s});c.push(A==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),c.indent(s),a.length>0&&(c.push(`const { ${_m(a.map(p=>`${p}: _${p}`),", ")} } = ctx`),c.newline()),c.push("return "),Wi(c,t),c.deindent(s),c.push("}"),delete t.helpers;const{code:u,map:f}=c.context();return{ast:t,code:u,map:f?f.toJSON():void 0}};function eT(t,e={}){const A=Sm({},e),n=!!A.jit,r=!!A.minify,i=A.optimize==null?!0:A.optimize,a=VS(A).parse(t);return n?(i&&$S(a),r&&$i(a),{ast:a,code:""}):(GS(a,A),jS(a,A))}/*!
129
- * core-base v9.13.1
130
- * (c) 2024 kazuya kawaguchi
131
- * Released under the MIT License.
132
- */function AT(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Kn().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(Kn().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Kn().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}const yr=[];yr[0]={w:[0],i:[3,0],"[":[4],o:[7]},yr[1]={w:[1],".":[2],"[":[4],o:[7]},yr[2]={w:[2],i:[3,0],0:[3,0]},yr[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},yr[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},yr[5]={"'":[4,0],o:8,l:[5,0]},yr[6]={'"':[4,0],o:8,l:[6,0]};const tT=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function nT(t){return tT.test(t)}function rT(t){const e=t.charCodeAt(0),A=t.charCodeAt(t.length-1);return e===A&&(e===34||e===39)?t.slice(1,-1):t}function iT(t){if(t==null)return"o";switch(t.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return t;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function sT(t){const e=t.trim();return t.charAt(0)==="0"&&isNaN(parseInt(t))?!1:nT(e)?rT(e):"*"+e}function oT(t){const e=[];let A=-1,n=0,r=0,i,s,a,c,u,f,p;const g=[];g[0]=()=>{s===void 0?s=a:s+=a},g[1]=()=>{s!==void 0&&(e.push(s),s=void 0)},g[2]=()=>{g[0](),r++},g[3]=()=>{if(r>0)r--,n=4,g[0]();else{if(r=0,s===void 0||(s=sT(s),s===!1))return!1;g[1]()}};function B(){const w=t[A+1];if(n===5&&w==="'"||n===6&&w==='"')return A++,a="\\"+w,g[0](),!0}for(;n!==null;)if(A++,i=t[A],!(i==="\\"&&B())){if(c=iT(i),p=yr[n],u=p[c]||p.l||8,u===8||(n=u[0],u[1]!==void 0&&(f=g[u[1]],f&&(a=i,f()===!1))))return;if(n===7)return e}}const km=new Map;function aT(t,e){return We(t)?t[e]:null}function lT(t,e){if(!We(t))return null;let A=km.get(e);if(A||(A=oT(e),A&&km.set(e,A)),!A)return null;const n=A.length;let r=t,i=0;for(;i<n;){const s=r[A[i]];if(s===void 0||cA(r))return null;r=s,i++}return r}const cT=t=>t,uT=t=>"",fT="text",dT=t=>t.length===0?"":CS(t),hT=wS;function Hm(t,e){return t=Math.abs(t),e===2?t?t>1?1:0:1:t?Math.min(t,2):0}function pT(t){const e=zA(t.pluralIndex)?t.pluralIndex:-1;return t.named&&(zA(t.named.count)||zA(t.named.n))?zA(t.named.count)?t.named.count:zA(t.named.n)?t.named.n:e:e}function gT(t,e){e.count||(e.count=t),e.n||(e.n=t)}function mT(t={}){const e=t.locale,A=pT(t),n=We(t.pluralRules)&&te(e)&&cA(t.pluralRules[e])?t.pluralRules[e]:Hm,r=We(t.pluralRules)&&te(e)&&cA(t.pluralRules[e])?Hm:void 0,i=v=>v[n(A,v.length,r)],s=t.list||[],a=v=>s[v],c=t.named||{};zA(t.pluralIndex)&&gT(A,c);const u=v=>c[v];function f(v){const _=cA(t.messages)?t.messages(v):We(t.messages)?t.messages[v]:!1;return _||(t.parent?t.parent.message(v):uT)}const p=v=>t.modifiers?t.modifiers[v]:cT,g=_e(t.processor)&&cA(t.processor.normalize)?t.processor.normalize:dT,B=_e(t.processor)&&cA(t.processor.interpolate)?t.processor.interpolate:hT,w=_e(t.processor)&&te(t.processor.type)?t.processor.type:fT,b={list:a,named:u,plural:i,linked:(v,..._)=>{const[S,E]=_;let L="text",U="";_.length===1?We(S)?(U=S.modifier||U,L=S.type||L):te(S)&&(U=S||U):_.length===2&&(te(S)&&(U=S||U),te(E)&&(L=E||L));const N=f(v)(b),V=L==="vnode"&&bA(N)&&U?N[0]:N;return U?p(U)(V,L):V},message:f,type:w,interpolate:B,normalize:g,values:qA({},s,c)};return b}let $s=null;function BT(t){$s=t}function wT(t,e,A){$s&&$s.emit("i18n:init",{timestamp:Date.now(),i18n:t,version:e,meta:A})}const CT=yT("function:translate");function yT(t){return e=>$s&&$s.emit(t,e)}const Nm=Ia.__EXTEND_POINT__,si=Fa(Nm),at={NOT_FOUND_KEY:Nm,FALLBACK_TO_TRANSLATE:si(),CANNOT_FORMAT_NUMBER:si(),FALLBACK_TO_NUMBER_FORMAT:si(),CANNOT_FORMAT_DATE:si(),FALLBACK_TO_DATE_FORMAT:si(),EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER:si(),__EXTEND_POINT__:si()},ET={[at.NOT_FOUND_KEY]:"Not found '{key}' key in '{locale}' locale messages.",[at.FALLBACK_TO_TRANSLATE]:"Fall back to translate '{key}' key with '{target}' locale.",[at.CANNOT_FORMAT_NUMBER]:"Cannot format a number value due to not supported Intl.NumberFormat.",[at.FALLBACK_TO_NUMBER_FORMAT]:"Fall back to number format '{key}' key with '{target}' locale.",[at.CANNOT_FORMAT_DATE]:"Cannot format a date value due to not supported Intl.DateTimeFormat.",[at.FALLBACK_TO_DATE_FORMAT]:"Fall back to datetime format '{key}' key with '{target}' locale.",[at.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER]:"This project is using Custom Message Compiler, which is an experimental feature. It may receive breaking changes or be removed in the future."};function oi(t,...e){return Tu(ET[t],...e)}const Dm=ge.__EXTEND_POINT__,ai=Fa(Dm),HA={INVALID_ARGUMENT:Dm,INVALID_DATE_ARGUMENT:ai(),INVALID_ISO_DATE_ARGUMENT:ai(),NOT_SUPPORT_NON_STRING_MESSAGE:ai(),NOT_SUPPORT_LOCALE_PROMISE_VALUE:ai(),NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:ai(),NOT_SUPPORT_LOCALE_TYPE:ai(),__EXTEND_POINT__:ai()};function bn(t){return Gi(t,null,process.env.NODE_ENV!=="production"?{messages:QT}:void 0)}const QT={[HA.INVALID_ARGUMENT]:"Invalid arguments",[HA.INVALID_DATE_ARGUMENT]:"The date provided is an invalid Date object.Make sure your Date represents a valid date.",[HA.INVALID_ISO_DATE_ARGUMENT]:"The argument provided is not a valid ISO date string",[HA.NOT_SUPPORT_NON_STRING_MESSAGE]:"Not support non-string message",[HA.NOT_SUPPORT_LOCALE_PROMISE_VALUE]:"cannot support promise value",[HA.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION]:"cannot support async function",[HA.NOT_SUPPORT_LOCALE_TYPE]:"cannot support locale type"};function xu(t,e){return e.locale!=null?Mm(e.locale):Mm(t.locale)}let Ou;function Mm(t){if(te(t))return t;if(cA(t)){if(t.resolvedOnce&&Ou!=null)return Ou;if(t.constructor.name==="Function"){const e=t();if(BS(e))throw bn(HA.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return Ou=e}else throw bn(HA.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw bn(HA.NOT_SUPPORT_LOCALE_TYPE)}function FT(t,e,A){return[...new Set([A,...bA(e)?e:We(e)?Object.keys(e):te(e)?[e]:[A]])]}function Rm(t,e,A){const n=te(A)?A:Ws,r=t;r.__localeChainCache||(r.__localeChainCache=new Map);let i=r.__localeChainCache.get(n);if(!i){i=[];let s=[A];for(;bA(s);)s=Km(i,s,e);const a=bA(e)||!_e(e)?e:e.default?e.default:null;s=te(a)?[a]:a,bA(s)&&Km(i,s,!1),r.__localeChainCache.set(n,i)}return i}function Km(t,e,A){let n=!0;for(let r=0;r<e.length&&rA(n);r++){const i=e[r];te(i)&&(n=bT(t,e[r],A))}return n}function bT(t,e,A){let n;const r=e.split("-");do{const i=r.join("-");n=UT(t,i,A),r.splice(-1,1)}while(r.length&&n===!0);return n}function UT(t,e,A){let n=!1;if(!t.includes(e)&&(n=!0,e)){n=e[e.length-1]!=="!";const r=e.replace(/!/g,"");t.push(r),(bA(A)||_e(A))&&A[r]&&(n=A[r])}return n}const vT="9.13.1",Sa=-1,Ws="en-US",Ta="",Vm=t=>`${t.charAt(0).toLocaleUpperCase()}${t.substr(1)}`;function IT(){return{upper:(t,e)=>e==="text"&&te(t)?t.toUpperCase():e==="vnode"&&We(t)&&"__v_isVNode"in t?t.children.toUpperCase():t,lower:(t,e)=>e==="text"&&te(t)?t.toLowerCase():e==="vnode"&&We(t)&&"__v_isVNode"in t?t.children.toLowerCase():t,capitalize:(t,e)=>e==="text"&&te(t)?Vm(t):e==="vnode"&&We(t)&&"__v_isVNode"in t?Vm(t.children):t}}let Pm;function Gm(t){Pm=t}let $m;function ST(t){$m=t}let Wm;function TT(t){Wm=t}let Jm=null;const _T=t=>{Jm=t},xT=()=>Jm;let Xm=null;const Ym=t=>{Xm=t},OT=()=>Xm;let zm=0;function LT(t={}){const e=cA(t.onWarn)?t.onWarn:Vn,A=te(t.version)?t.version:vT,n=te(t.locale)||cA(t.locale)?t.locale:Ws,r=cA(n)?Ws:n,i=bA(t.fallbackLocale)||_e(t.fallbackLocale)||te(t.fallbackLocale)||t.fallbackLocale===!1?t.fallbackLocale:r,s=_e(t.messages)?t.messages:{[r]:{}},a=_e(t.datetimeFormats)?t.datetimeFormats:{[r]:{}},c=_e(t.numberFormats)?t.numberFormats:{[r]:{}},u=qA({},t.modifiers||{},IT()),f=t.pluralRules||{},p=cA(t.missing)?t.missing:null,g=rA(t.missingWarn)||Pi(t.missingWarn)?t.missingWarn:!0,B=rA(t.fallbackWarn)||Pi(t.fallbackWarn)?t.fallbackWarn:!0,w=!!t.fallbackFormat,Q=!!t.unresolving,b=cA(t.postTranslation)?t.postTranslation:null,v=_e(t.processor)?t.processor:null,_=rA(t.warnHtmlMessage)?t.warnHtmlMessage:!0,S=!!t.escapeParameter,E=cA(t.messageCompiler)?t.messageCompiler:Pm;process.env.NODE_ENV!=="production"&&cA(t.messageCompiler)&&vm(oi(at.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));const L=cA(t.messageResolver)?t.messageResolver:$m||aT,U=cA(t.localeFallbacker)?t.localeFallbacker:Wm||FT,N=We(t.fallbackContext)?t.fallbackContext:void 0,V=t,D=We(V.__datetimeFormatters)?V.__datetimeFormatters:new Map,se=We(V.__numberFormatters)?V.__numberFormatters:new Map,Be=We(V.__meta)?V.__meta:{};zm++;const ne={version:A,cid:zm,locale:n,fallbackLocale:i,messages:s,modifiers:u,pluralRules:f,missing:p,missingWarn:g,fallbackWarn:B,fallbackFormat:w,unresolving:Q,postTranslation:b,processor:v,warnHtmlMessage:_,escapeParameter:S,messageCompiler:E,messageResolver:L,localeFallbacker:U,fallbackContext:N,onWarn:e,__meta:Be};return ne.datetimeFormats=a,ne.numberFormats=c,ne.__datetimeFormatters=D,ne.__numberFormatters=se,process.env.NODE_ENV!=="production"&&(ne.__v_emitter=V.__v_emitter!=null?V.__v_emitter:void 0),(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__)&&wT(ne,A,Be),ne}function _a(t,e){return t instanceof RegExp?t.test(e):t}function qm(t,e){return t instanceof RegExp?t.test(e):t}function Lu(t,e,A,n,r){const{missing:i,onWarn:s}=t;if(process.env.NODE_ENV!=="production"){const a=t.__v_emitter;a&&a.emit("missing",{locale:A,key:e,type:r,groupId:`${r}:${e}`})}if(i!==null){const a=i(t,A,e,r);return te(a)?a:e}else return process.env.NODE_ENV!=="production"&&qm(n,e)&&s(oi(at.NOT_FOUND_KEY,{key:e,locale:A})),e}function Js(t,e,A){const n=t;n.__localeChainCache=new Map,t.localeFallbacker(t,A,e)}function Zm(t,e){return t===e?!1:t.split("-")[0]===e.split("-")[0]}function kT(t,e){const A=e.indexOf(t);if(A===-1)return!1;for(let n=A+1;n<e.length;n++)if(Zm(t,e[n]))return!0;return!1}function ku(t){return A=>HT(A,t)}function HT(t,e){const A=e.b||e.body;if((A.t||A.type)===1){const n=A,r=n.c||n.cases;return t.plural(r.reduce((i,s)=>[...i,jm(t,s)],[]))}else return jm(t,A)}function jm(t,e){const A=e.s||e.static;if(A)return t.type==="text"?A:t.normalize([A]);{const n=(e.i||e.items).reduce((r,i)=>[...r,Hu(t,i)],[]);return t.normalize(n)}}function Hu(t,e){const A=e.t||e.type;switch(A){case 3:{const n=e;return n.v||n.value}case 9:{const n=e;return n.v||n.value}case 4:{const n=e;return t.interpolate(t.named(n.k||n.key))}case 5:{const n=e;return t.interpolate(t.list(n.i!=null?n.i:n.index))}case 6:{const n=e,r=n.m||n.modifier;return t.linked(Hu(t,n.k||n.key),r?Hu(t,r):void 0,t.type)}case 7:{const n=e;return n.v||n.value}case 8:{const n=e;return n.v||n.value}default:throw new Error(`unhandled node type on format message part: ${A}`)}}const NT="Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS.";function eB(t,e){e&&_S(t)&&Vn(Tu(NT,{source:t}))}const AB=t=>t;let Ji=Object.create(null);function tB(t){t.code===Ia.USE_MODULO_SYNTAX&&Vn(`The use of named interpolation with modulo syntax is deprecated. It will be removed in v10.
133
- reference: https://vue-i18n.intlify.dev/guide/essentials/syntax#rails-i18n-format
134
- (message compiler warning message: ${t.message})`)}const li=t=>We(t)&&(t.t===0||t.type===0)&&("b"in t||"body"in t);function nB(t,e={}){let A=!1;const n=e.onError||SS;return e.onError=r=>{A=!0,n(r)},{...eT(t,e),detectError:A}}const DT=(t,e)=>{if(!te(t))throw bn(HA.NOT_SUPPORT_NON_STRING_MESSAGE);process.env.NODE_ENV!=="production"&&(e.onWarn=tB);{const A=rA(e.warnHtmlMessage)?e.warnHtmlMessage:!0;process.env.NODE_ENV!=="production"&&eB(t,A);const r=(e.onCacheKey||AB)(t),i=Ji[r];if(i)return i;const{code:s,detectError:a}=nB(t,e),c=new Function(`return ${s}`)();return a?c:Ji[r]=c}};function MT(t,e){if(process.env.NODE_ENV!=="production"&&(e.onWarn=tB),__INTLIFY_JIT_COMPILATION__&&!__INTLIFY_DROP_MESSAGE_COMPILER__&&te(t)){const A=rA(e.warnHtmlMessage)?e.warnHtmlMessage:!0;process.env.NODE_ENV!=="production"&&eB(t,A);const r=(e.onCacheKey||AB)(t),i=Ji[r];if(i)return i;const{ast:s,detectError:a}=nB(t,{...e,location:process.env.NODE_ENV!=="production",jit:!0}),c=ku(s);return a?c:Ji[r]=c}else{if(process.env.NODE_ENV!=="production"&&!li(t))return Vn(`the message that is resolve with key '${e.key}' is not supported for jit compilation`),()=>t;const A=t.cacheKey;if(A){const n=Ji[A];return n||(Ji[A]=ku(t))}else return ku(t)}}const rB=()=>"",Vt=t=>cA(t);function iB(t,...e){const{fallbackFormat:A,postTranslation:n,unresolving:r,messageCompiler:i,fallbackLocale:s,messages:a}=t,[c,u]=Nu(...e),f=rA(u.missingWarn)?u.missingWarn:t.missingWarn,p=rA(u.fallbackWarn)?u.fallbackWarn:t.fallbackWarn,g=rA(u.escapeParameter)?u.escapeParameter:t.escapeParameter,B=!!u.resolvedMessage,w=te(u.default)||rA(u.default)?rA(u.default)?i?c:()=>c:u.default:A?i?c:()=>c:"",Q=A||w!=="",b=xu(t,u);g&&RT(u);let[v,_,S]=B?[c,b,a[b]||{}]:sB(t,c,b,s,p,f),E=v,L=c;if(!B&&!(te(E)||li(E)||Vt(E))&&Q&&(E=w,L=E),!B&&(!(te(E)||li(E)||Vt(E))||!te(_)))return r?Sa:c;if(process.env.NODE_ENV!=="production"&&te(E)&&t.messageCompiler==null)return Vn(`The message format compilation is not supported in this build. Because message compiler isn't included. You need to pre-compilation all message format. So translate function return '${c}'.`),c;let U=!1;const N=()=>{U=!0},V=Vt(E)?E:oB(t,c,_,E,L,N);if(U)return E;const D=GT(t,_,S,u),se=mT(D),Be=KT(t,V,se),ne=n?n(Be,c):Be;if(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const ce={timestamp:Date.now(),key:te(c)?c:Vt(E)?E.key:"",locale:_||(Vt(E)?E.locale:""),format:te(E)?E:Vt(E)?E.source:"",message:ne};ce.meta=qA({},t.__meta,xT()||{}),CT(ce)}return ne}function RT(t){bA(t.list)?t.list=t.list.map(e=>te(e)?Em(e):e):We(t.named)&&Object.keys(t.named).forEach(e=>{te(t.named[e])&&(t.named[e]=Em(t.named[e]))})}function sB(t,e,A,n,r,i){const{messages:s,onWarn:a,messageResolver:c,localeFallbacker:u}=t,f=u(t,n,A);let p={},g,B=null,w=A,Q=null;const b="translate";for(let v=0;v<f.length;v++){if(g=Q=f[v],process.env.NODE_ENV!=="production"&&A!==g&&!Zm(A,g)&&_a(r,e)&&a(oi(at.FALLBACK_TO_TRANSLATE,{key:e,target:g})),process.env.NODE_ENV!=="production"&&A!==g){const L=t.__v_emitter;L&&L.emit("fallback",{type:b,key:e,from:w,to:Q,groupId:`${b}:${e}`})}p=s[g]||{};let _=null,S,E;if(process.env.NODE_ENV!=="production"&&Mn&&(_=window.performance.now(),S="intlify-message-resolve-start",E="intlify-message-resolve-end",St&&St(S)),(B=c(p,e))===null&&(B=p[e]),process.env.NODE_ENV!=="production"&&Mn){const L=window.performance.now(),U=t.__v_emitter;U&&_&&B&&U.emit("message-resolve",{type:"message-resolve",key:e,message:B,time:L-_,groupId:`${b}:${e}`}),S&&E&&St&&ii&&(St(E),ii("intlify message resolve",S,E))}if(te(B)||li(B)||Vt(B))break;if(!kT(g,f)){const L=Lu(t,e,g,i,b);L!==e&&(B=L)}w=Q}return[B,g,p]}function oB(t,e,A,n,r,i){const{messageCompiler:s,warnHtmlMessage:a}=t;if(Vt(n)){const g=n;return g.locale=g.locale||A,g.key=g.key||e,g}if(s==null){const g=()=>n;return g.locale=A,g.key=e,g}let c=null,u,f;process.env.NODE_ENV!=="production"&&Mn&&(c=window.performance.now(),u="intlify-message-compilation-start",f="intlify-message-compilation-end",St&&St(u));const p=s(n,VT(t,A,r,n,a,i));if(process.env.NODE_ENV!=="production"&&Mn){const g=window.performance.now(),B=t.__v_emitter;B&&c&&B.emit("message-compilation",{type:"message-compilation",message:n,time:g-c,groupId:`translate:${e}`}),u&&f&&St&&ii&&(St(f),ii("intlify message compilation",u,f))}return p.locale=A,p.key=e,p.source=n,p}function KT(t,e,A){let n=null,r,i;process.env.NODE_ENV!=="production"&&Mn&&(n=window.performance.now(),r="intlify-message-evaluation-start",i="intlify-message-evaluation-end",St&&St(r));const s=e(A);if(process.env.NODE_ENV!=="production"&&Mn){const a=window.performance.now(),c=t.__v_emitter;c&&n&&c.emit("message-evaluation",{type:"message-evaluation",value:s,time:a-n,groupId:`translate:${e.key}`}),r&&i&&St&&ii&&(St(i),ii("intlify message evaluation",r,i))}return s}function Nu(...t){const[e,A,n]=t,r={};if(!te(e)&&!zA(e)&&!Vt(e)&&!li(e))throw bn(HA.INVALID_ARGUMENT);const i=zA(e)?String(e):(Vt(e),e);return zA(A)?r.plural=A:te(A)?r.default=A:_e(A)&&!Ea(A)?r.named=A:bA(A)&&(r.list=A),zA(n)?r.plural=n:te(n)?r.default=n:_e(n)&&qA(r,n),[i,r]}function VT(t,e,A,n,r,i){return{locale:e,key:A,warnHtmlMessage:r,onError:s=>{if(i&&i(s),process.env.NODE_ENV!=="production"){const a=PT(n),c=`Message compilation error: ${s.message}`,u=s.location&&a&&yS(a,s.location.start.offset,s.location.end.offset),f=t.__v_emitter;f&&a&&f.emit("compile-error",{message:a,error:s.message,start:s.location&&s.location.start.offset,end:s.location&&s.location.end.offset,groupId:`translate:${A}`}),console.error(u?`${c}
135
- ${u}`:c)}else throw s},onCacheKey:s=>hS(e,A,s)}}function PT(t){if(te(t))return t;if(t.loc&&t.loc.source)return t.loc.source}function GT(t,e,A,n){const{modifiers:r,pluralRules:i,messageResolver:s,fallbackLocale:a,fallbackWarn:c,missingWarn:u,fallbackContext:f}=t,g={locale:e,modifiers:r,pluralRules:i,messages:B=>{let w=s(A,B);if(w==null&&f){const[,,Q]=sB(f,B,e,a,c,u);w=s(Q,B)}if(te(w)||li(w)){let Q=!1;const v=oB(t,B,e,w,B,()=>{Q=!0});return Q?rB:v}else return Vt(w)?w:rB}};return t.processor&&(g.processor=t.processor),n.list&&(g.list=n.list),n.named&&(g.named=n.named),zA(n.plural)&&(g.pluralIndex=n.plural),g}const aB=typeof Intl<"u",lB={dateTimeFormat:aB&&typeof Intl.DateTimeFormat<"u",numberFormat:aB&&typeof Intl.NumberFormat<"u"};function cB(t,...e){const{datetimeFormats:A,unresolving:n,fallbackLocale:r,onWarn:i,localeFallbacker:s}=t,{__datetimeFormatters:a}=t;if(process.env.NODE_ENV!=="production"&&!lB.dateTimeFormat)return i(oi(at.CANNOT_FORMAT_DATE)),Ta;const[c,u,f,p]=Du(...e),g=rA(f.missingWarn)?f.missingWarn:t.missingWarn,B=rA(f.fallbackWarn)?f.fallbackWarn:t.fallbackWarn,w=!!f.part,Q=xu(t,f),b=s(t,r,Q);if(!te(c)||c==="")return new Intl.DateTimeFormat(Q,p).format(u);let v={},_,S=null,E=Q,L=null;const U="datetime format";for(let D=0;D<b.length;D++){if(_=L=b[D],process.env.NODE_ENV!=="production"&&Q!==_&&_a(B,c)&&i(oi(at.FALLBACK_TO_DATE_FORMAT,{key:c,target:_})),process.env.NODE_ENV!=="production"&&Q!==_){const se=t.__v_emitter;se&&se.emit("fallback",{type:U,key:c,from:E,to:L,groupId:`${U}:${c}`})}if(v=A[_]||{},S=v[c],_e(S))break;Lu(t,c,_,g,U),E=L}if(!_e(S)||!te(_))return n?Sa:c;let N=`${_}__${c}`;Ea(p)||(N=`${N}__${JSON.stringify(p)}`);let V=a.get(N);return V||(V=new Intl.DateTimeFormat(_,qA({},S,p)),a.set(N,V)),w?V.formatToParts(u):V.format(u)}const uB=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function Du(...t){const[e,A,n,r]=t,i={};let s={},a;if(te(e)){const c=e.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!c)throw bn(HA.INVALID_ISO_DATE_ARGUMENT);const u=c[3]?c[3].trim().startsWith("T")?`${c[1].trim()}${c[3].trim()}`:`${c[1].trim()}T${c[3].trim()}`:c[1].trim();a=new Date(u);try{a.toISOString()}catch{throw bn(HA.INVALID_ISO_DATE_ARGUMENT)}}else if(gS(e)){if(isNaN(e.getTime()))throw bn(HA.INVALID_DATE_ARGUMENT);a=e}else if(zA(e))a=e;else throw bn(HA.INVALID_ARGUMENT);return te(A)?i.key=A:_e(A)&&Object.keys(A).forEach(c=>{uB.includes(c)?s[c]=A[c]:i[c]=A[c]}),te(n)?i.locale=n:_e(n)&&(s=n),_e(r)&&(s=r),[i.key||"",a,i,s]}function fB(t,e,A){const n=t;for(const r in A){const i=`${e}__${r}`;n.__datetimeFormatters.has(i)&&n.__datetimeFormatters.delete(i)}}function dB(t,...e){const{numberFormats:A,unresolving:n,fallbackLocale:r,onWarn:i,localeFallbacker:s}=t,{__numberFormatters:a}=t;if(process.env.NODE_ENV!=="production"&&!lB.numberFormat)return i(oi(at.CANNOT_FORMAT_NUMBER)),Ta;const[c,u,f,p]=Mu(...e),g=rA(f.missingWarn)?f.missingWarn:t.missingWarn,B=rA(f.fallbackWarn)?f.fallbackWarn:t.fallbackWarn,w=!!f.part,Q=xu(t,f),b=s(t,r,Q);if(!te(c)||c==="")return new Intl.NumberFormat(Q,p).format(u);let v={},_,S=null,E=Q,L=null;const U="number format";for(let D=0;D<b.length;D++){if(_=L=b[D],process.env.NODE_ENV!=="production"&&Q!==_&&_a(B,c)&&i(oi(at.FALLBACK_TO_NUMBER_FORMAT,{key:c,target:_})),process.env.NODE_ENV!=="production"&&Q!==_){const se=t.__v_emitter;se&&se.emit("fallback",{type:U,key:c,from:E,to:L,groupId:`${U}:${c}`})}if(v=A[_]||{},S=v[c],_e(S))break;Lu(t,c,_,g,U),E=L}if(!_e(S)||!te(_))return n?Sa:c;let N=`${_}__${c}`;Ea(p)||(N=`${N}__${JSON.stringify(p)}`);let V=a.get(N);return V||(V=new Intl.NumberFormat(_,qA({},S,p)),a.set(N,V)),w?V.formatToParts(u):V.format(u)}const hB=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function Mu(...t){const[e,A,n,r]=t,i={};let s={};if(!zA(e))throw bn(HA.INVALID_ARGUMENT);const a=e;return te(A)?i.key=A:_e(A)&&Object.keys(A).forEach(c=>{hB.includes(c)?s[c]=A[c]:i[c]=A[c]}),te(n)?i.locale=n:_e(n)&&(s=n),_e(r)&&(s=r),[i.key||"",a,i,s]}function pB(t,e,A){const n=t;for(const r in A){const i=`${e}__${r}`;n.__numberFormatters.has(i)&&n.__numberFormatters.delete(i)}}AT();/*!
136
- * vue-i18n v9.13.1
137
- * (c) 2024 kazuya kawaguchi
138
- * Released under the MIT License.
139
- */const $T="9.13.1";function WT(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(Kn().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(Kn().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(Kn().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Kn().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Kn().__INTLIFY_PROD_DEVTOOLS__=!1)}const gB=at.__EXTEND_POINT__,Gn=Fa(gB),mt={FALLBACK_TO_ROOT:gB,NOT_SUPPORTED_PRESERVE:Gn(),NOT_SUPPORTED_FORMATTER:Gn(),NOT_SUPPORTED_PRESERVE_DIRECTIVE:Gn(),NOT_SUPPORTED_GET_CHOICE_INDEX:Gn(),COMPONENT_NAME_LEGACY_COMPATIBLE:Gn(),NOT_FOUND_PARENT_SCOPE:Gn(),IGNORE_OBJ_FLATTEN:Gn(),NOTICE_DROP_ALLOW_COMPOSITION:Gn(),NOTICE_DROP_TRANSLATE_EXIST_COMPATIBLE_FLAG:Gn()},JT={[mt.FALLBACK_TO_ROOT]:"Fall back to {type} '{key}' with root locale.",[mt.NOT_SUPPORTED_PRESERVE]:"Not supported 'preserve'.",[mt.NOT_SUPPORTED_FORMATTER]:"Not supported 'formatter'.",[mt.NOT_SUPPORTED_PRESERVE_DIRECTIVE]:"Not supported 'preserveDirectiveContent'.",[mt.NOT_SUPPORTED_GET_CHOICE_INDEX]:"Not supported 'getChoiceIndex'.",[mt.COMPONENT_NAME_LEGACY_COMPATIBLE]:"Component name legacy compatible: '{name}' -> 'i18n'",[mt.NOT_FOUND_PARENT_SCOPE]:"Not found parent scope. use the global scope.",[mt.IGNORE_OBJ_FLATTEN]:"Ignore object flatten: '{key}' key has an string value",[mt.NOTICE_DROP_ALLOW_COMPOSITION]:"'allowComposition' option will be dropped in the next major version. For more information, please see 👉 https://tinyurl.com/2p97mcze",[mt.NOTICE_DROP_TRANSLATE_EXIST_COMPATIBLE_FLAG]:"'translateExistCompatible' option will be dropped in the next major version."};function xa(t,...e){return Tu(JT[t],...e)}const mB=HA.__EXTEND_POINT__,Bt=Fa(mB),hA={UNEXPECTED_RETURN_TYPE:mB,INVALID_ARGUMENT:Bt(),MUST_BE_CALL_SETUP_TOP:Bt(),NOT_INSTALLED:Bt(),NOT_AVAILABLE_IN_LEGACY_MODE:Bt(),REQUIRED_VALUE:Bt(),INVALID_VALUE:Bt(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:Bt(),NOT_INSTALLED_WITH_PROVIDE:Bt(),UNEXPECTED_ERROR:Bt(),NOT_COMPATIBLE_LEGACY_VUE_I18N:Bt(),BRIDGE_SUPPORT_VUE_2_ONLY:Bt(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:Bt(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:Bt(),__EXTEND_POINT__:Bt()};function Er(t,...e){return Gi(t,null,process.env.NODE_ENV!=="production"?{messages:XT,args:e}:void 0)}const XT={[hA.UNEXPECTED_RETURN_TYPE]:"Unexpected return type in composer",[hA.INVALID_ARGUMENT]:"Invalid argument",[hA.MUST_BE_CALL_SETUP_TOP]:"Must be called at the top of a `setup` function",[hA.NOT_INSTALLED]:"Need to install with `app.use` function",[hA.UNEXPECTED_ERROR]:"Unexpected error",[hA.NOT_AVAILABLE_IN_LEGACY_MODE]:"Not available in legacy mode",[hA.REQUIRED_VALUE]:"Required in value: {0}",[hA.INVALID_VALUE]:"Invalid value",[hA.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN]:"Cannot setup vue-devtools plugin",[hA.NOT_INSTALLED_WITH_PROVIDE]:"Need to install with `provide` function",[hA.NOT_COMPATIBLE_LEGACY_VUE_I18N]:"Not compatible legacy VueI18n.",[hA.BRIDGE_SUPPORT_VUE_2_ONLY]:"vue-i18n-bridge support Vue 2.x only",[hA.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION]:"Must define ‘i18n’ option or custom block in Composition API with using local scope in Legacy API mode",[hA.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]:"Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"},Ru=Rn("__translateVNode"),Ku=Rn("__datetimeParts"),Vu=Rn("__numberParts"),Pu=Rn("__enableEmitter"),Gu=Rn("__disableEmitter"),YT=Rn("__setPluralRules"),BB=Rn("__injectWithOption"),$u=Rn("__dispose");function Xs(t){if(!We(t))return t;for(const e in t)if(Qa(t,e))if(!e.includes("."))We(t[e])&&Xs(t[e]);else{const A=e.split("."),n=A.length-1;let r=t,i=!1;for(let s=0;s<n;s++){if(A[s]in r||(r[A[s]]={}),!We(r[A[s]])){process.env.NODE_ENV!=="production"&&Vn(xa(mt.IGNORE_OBJ_FLATTEN,{key:A[s]})),i=!0;break}r=r[A[s]]}i||(r[A[n]]=t[e],delete t[e]),We(r[A[n]])&&Xs(r[A[n]])}return t}function Wu(t,e){const{messages:A,__i18n:n,messageResolver:r,flatJson:i}=e,s=_e(A)?A:bA(n)?{}:{[t]:{}};if(bA(n)&&n.forEach(a=>{if("locale"in a&&"resource"in a){const{locale:c,resource:u}=a;c?(s[c]=s[c]||{},Ua(u,s[c])):Ua(u,s)}else te(a)&&Ua(JSON.parse(a),s)}),r==null&&i)for(const a in s)Qa(s,a)&&Xs(s[a]);return s}function wB(t){return t.type}function zT(t,e,A){let n=We(e.messages)?e.messages:{};"__i18nGlobal"in A&&(n=Wu(t.locale.value,{messages:n,__i18n:A.__i18nGlobal}));const r=Object.keys(n);r.length&&r.forEach(i=>{t.mergeLocaleMessage(i,n[i])});{if(We(e.datetimeFormats)){const i=Object.keys(e.datetimeFormats);i.length&&i.forEach(s=>{t.mergeDateTimeFormat(s,e.datetimeFormats[s])})}if(We(e.numberFormats)){const i=Object.keys(e.numberFormats);i.length&&i.forEach(s=>{t.mergeNumberFormat(s,e.numberFormats[s])})}}}function CB(t){return h.createVNode(h.Text,null,t,0)}const yB="__INTLIFY_META__",EB=()=>[],qT=()=>!1;let QB=0;function FB(t){return(e,A,n,r)=>t(A,n,h.getCurrentInstance()||void 0,r)}const ZT=()=>{const t=h.getCurrentInstance();let e=null;return t&&(e=wB(t)[yB])?{[yB]:e}:null};function jT(t={},e){const{__root:A,__injectWithOption:n}=t,r=A===void 0,i=t.flatJson,s=Mn?h.ref:h.shallowRef,a=!!t.translateExistCompatible;process.env.NODE_ENV!=="production"&&a&&vm(xa(mt.NOTICE_DROP_TRANSLATE_EXIST_COMPATIBLE_FLAG));let c=rA(t.inheritLocale)?t.inheritLocale:!0;const u=s(A&&c?A.locale.value:te(t.locale)?t.locale:Ws),f=s(A&&c?A.fallbackLocale.value:te(t.fallbackLocale)||bA(t.fallbackLocale)||_e(t.fallbackLocale)||t.fallbackLocale===!1?t.fallbackLocale:u.value),p=s(Wu(u.value,t)),g=s(_e(t.datetimeFormats)?t.datetimeFormats:{[u.value]:{}}),B=s(_e(t.numberFormats)?t.numberFormats:{[u.value]:{}});let w=A?A.missingWarn:rA(t.missingWarn)||Pi(t.missingWarn)?t.missingWarn:!0,Q=A?A.fallbackWarn:rA(t.fallbackWarn)||Pi(t.fallbackWarn)?t.fallbackWarn:!0,b=A?A.fallbackRoot:rA(t.fallbackRoot)?t.fallbackRoot:!0,v=!!t.fallbackFormat,_=cA(t.missing)?t.missing:null,S=cA(t.missing)?FB(t.missing):null,E=cA(t.postTranslation)?t.postTranslation:null,L=A?A.warnHtmlMessage:rA(t.warnHtmlMessage)?t.warnHtmlMessage:!0,U=!!t.escapeParameter;const N=A?A.modifiers:_e(t.modifiers)?t.modifiers:{};let V=t.pluralRules||A&&A.pluralRules,D;D=(()=>{r&&Ym(null);const R={version:$T,locale:u.value,fallbackLocale:f.value,messages:p.value,modifiers:N,pluralRules:V,missing:S===null?void 0:S,missingWarn:w,fallbackWarn:Q,fallbackFormat:v,unresolving:!0,postTranslation:E===null?void 0:E,warnHtmlMessage:L,escapeParameter:U,messageResolver:t.messageResolver,messageCompiler:t.messageCompiler,__meta:{framework:"vue"}};R.datetimeFormats=g.value,R.numberFormats=B.value,R.__datetimeFormatters=_e(D)?D.__datetimeFormatters:void 0,R.__numberFormatters=_e(D)?D.__numberFormatters:void 0,process.env.NODE_ENV!=="production"&&(R.__v_emitter=_e(D)?D.__v_emitter:void 0);const X=LT(R);return r&&Ym(X),X})(),Js(D,u.value,f.value);function Be(){return[u.value,f.value,p.value,g.value,B.value]}const ne=h.computed({get:()=>u.value,set:R=>{u.value=R,D.locale=u.value}}),ce=h.computed({get:()=>f.value,set:R=>{f.value=R,D.fallbackLocale=f.value,Js(D,u.value,R)}}),Le=h.computed(()=>p.value),aA=h.computed(()=>g.value),Re=h.computed(()=>B.value);function ke(){return cA(E)?E:null}function re(R){E=R,D.postTranslation=R}function me(){return _}function Ye(R){R!==null&&(S=FB(R)),_=R,D.missing=S}function He(R,X){return R!=="translate"||!X.resolvedMessage}const Ge=(R,X,Se,iA,Ct,Tn)=>{Be();let Jt;try{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,r||(D.fallbackContext=A?OT():void 0),Jt=R(D)}finally{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,r||(D.fallbackContext=void 0)}if(Se!=="translate exists"&&zA(Jt)&&Jt===Sa||Se==="translate exists"&&!Jt){const[K,ie]=X();if(process.env.NODE_ENV!=="production"&&A&&te(K)&&He(Se,ie)&&(b&&(_a(Q,K)||qm(w,K))&&Vn(xa(mt.FALLBACK_TO_ROOT,{key:K,type:Se})),process.env.NODE_ENV!=="production")){const{__v_emitter:ue}=D;ue&&b&&ue.emit("fallback",{type:Se,key:K,to:"global",groupId:`${Se}:${K}`})}return A&&b?iA(A):Ct(K)}else{if(Tn(Jt))return Jt;throw Er(hA.UNEXPECTED_RETURN_TYPE)}};function Ke(...R){return Ge(X=>Reflect.apply(iB,null,[X,...R]),()=>Nu(...R),"translate",X=>Reflect.apply(X.t,X,[...R]),X=>X,X=>te(X))}function AA(...R){const[X,Se,iA]=R;if(iA&&!We(iA))throw Er(hA.INVALID_ARGUMENT);return Ke(X,Se,qA({resolvedMessage:!0},iA||{}))}function tA(...R){return Ge(X=>Reflect.apply(cB,null,[X,...R]),()=>Du(...R),"datetime format",X=>Reflect.apply(X.d,X,[...R]),()=>Ta,X=>te(X))}function qe(...R){return Ge(X=>Reflect.apply(dB,null,[X,...R]),()=>Mu(...R),"number format",X=>Reflect.apply(X.n,X,[...R]),()=>Ta,X=>te(X))}function pA(R){return R.map(X=>te(X)||zA(X)||rA(X)?CB(String(X)):X)}const et={normalize:pA,interpolate:R=>R,type:"vnode"};function ut(...R){return Ge(X=>{let Se;const iA=X;try{iA.processor=et,Se=Reflect.apply(iB,null,[iA,...R])}finally{iA.processor=null}return Se},()=>Nu(...R),"translate",X=>X[Ru](...R),X=>[CB(X)],X=>bA(X))}function _t(...R){return Ge(X=>Reflect.apply(dB,null,[X,...R]),()=>Mu(...R),"number format",X=>X[Vu](...R),EB,X=>te(X)||bA(X))}function xt(...R){return Ge(X=>Reflect.apply(cB,null,[X,...R]),()=>Du(...R),"datetime format",X=>X[Ku](...R),EB,X=>te(X)||bA(X))}function un(R){V=R,D.pluralRules=V}function z(R,X){return Ge(()=>{if(!R)return!1;const Se=te(X)?X:u.value,iA=vA(Se),Ct=D.messageResolver(iA,R);return a?Ct!=null:li(Ct)||Vt(Ct)||te(Ct)},()=>[R],"translate exists",Se=>Reflect.apply(Se.te,Se,[R,X]),qT,Se=>rA(Se))}function Ue(R){let X=null;const Se=Rm(D,f.value,u.value);for(let iA=0;iA<Se.length;iA++){const Ct=p.value[Se[iA]]||{},Tn=D.messageResolver(Ct,R);if(Tn!=null){X=Tn;break}}return X}function Sn(R){const X=Ue(R);return X??(A?A.tm(R)||{}:{})}function vA(R){return p.value[R]||{}}function fn(R,X){if(i){const Se={[R]:X};for(const iA in Se)Qa(Se,iA)&&Xs(Se[iA]);X=Se[R]}p.value[R]=X,D.messages=p.value}function xr(R,X){p.value[R]=p.value[R]||{};const Se={[R]:X};if(i)for(const iA in Se)Qa(Se,iA)&&Xs(Se[iA]);X=Se[R],Ua(X,p.value[R]),D.messages=p.value}function T(R){return g.value[R]||{}}function x(R,X){g.value[R]=X,D.datetimeFormats=g.value,fB(D,R,X)}function W(R,X){g.value[R]=qA(g.value[R]||{},X),D.datetimeFormats=g.value,fB(D,R,X)}function oe(R){return B.value[R]||{}}function nA(R,X){B.value[R]=X,D.numberFormats=B.value,pB(D,R,X)}function Ne(R,X){B.value[R]=qA(B.value[R]||{},X),D.numberFormats=B.value,pB(D,R,X)}QB++,A&&Mn&&(h.watch(A.locale,R=>{c&&(u.value=R,D.locale=R,Js(D,u.value,f.value))}),h.watch(A.fallbackLocale,R=>{c&&(f.value=R,D.fallbackLocale=R,Js(D,u.value,f.value))}));const Ve={id:QB,locale:ne,fallbackLocale:ce,get inheritLocale(){return c},set inheritLocale(R){c=R,R&&A&&(u.value=A.locale.value,f.value=A.fallbackLocale.value,Js(D,u.value,f.value))},get availableLocales(){return Object.keys(p.value).sort()},messages:Le,get modifiers(){return N},get pluralRules(){return V||{}},get isGlobal(){return r},get missingWarn(){return w},set missingWarn(R){w=R,D.missingWarn=w},get fallbackWarn(){return Q},set fallbackWarn(R){Q=R,D.fallbackWarn=Q},get fallbackRoot(){return b},set fallbackRoot(R){b=R},get fallbackFormat(){return v},set fallbackFormat(R){v=R,D.fallbackFormat=v},get warnHtmlMessage(){return L},set warnHtmlMessage(R){L=R,D.warnHtmlMessage=R},get escapeParameter(){return U},set escapeParameter(R){U=R,D.escapeParameter=R},t:Ke,getLocaleMessage:vA,setLocaleMessage:fn,mergeLocaleMessage:xr,getPostTranslationHandler:ke,setPostTranslationHandler:re,getMissingHandler:me,setMissingHandler:Ye,[YT]:un};return Ve.datetimeFormats=aA,Ve.numberFormats=Re,Ve.rt=AA,Ve.te=z,Ve.tm=Sn,Ve.d=tA,Ve.n=qe,Ve.getDateTimeFormat=T,Ve.setDateTimeFormat=x,Ve.mergeDateTimeFormat=W,Ve.getNumberFormat=oe,Ve.setNumberFormat=nA,Ve.mergeNumberFormat=Ne,Ve[BB]=n,Ve[Ru]=ut,Ve[Ku]=xt,Ve[Vu]=_t,process.env.NODE_ENV!=="production"&&(Ve[Pu]=R=>{D.__v_emitter=R},Ve[Gu]=()=>{D.__v_emitter=void 0}),Ve}const Ju={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:t=>t==="parent"||t==="global",default:"parent"},i18n:{type:Object}};function e_({slots:t},e){return e.length===1&&e[0]==="default"?(t.default?t.default():[]).reduce((n,r)=>[...n,...r.type===h.Fragment?r.children:[r]],[]):e.reduce((A,n)=>{const r=t[n];return r&&(A[n]=r()),A},{})}function bB(t){return h.Fragment}qA({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:t=>zA(t)||!isNaN(t)}},Ju);function A_(t){return bA(t)&&!te(t[0])}function UB(t,e,A,n){const{slots:r,attrs:i}=e;return()=>{const s={part:!0};let a={};t.locale&&(s.locale=t.locale),te(t.format)?s.key=t.format:We(t.format)&&(te(t.format.key)&&(s.key=t.format.key),a=Object.keys(t.format).reduce((g,B)=>A.includes(B)?qA({},g,{[B]:t.format[B]}):g,{}));const c=n(t.value,s,a);let u=[s.key];bA(c)?u=c.map((g,B)=>{const w=r[g.type],Q=w?w({[g.type]:g.value,index:B,parts:c}):[g.value];return A_(Q)&&(Q[0].key=`${g.type}-${B}`),Q}):te(c)&&(u=[c]);const f=qA({},i),p=te(t.tag)||We(t.tag)?t.tag:bB();return h.h(p,f,u)}}qA({value:{type:Number,required:!0},format:{type:[String,Object]}},Ju),qA({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},Ju);function vB(t,e){}const t_=Rn("global-vue-i18n");function Oa(t={}){const e=h.getCurrentInstance();if(e==null)throw Er(hA.MUST_BE_CALL_SETUP_TOP);if(!e.isCE&&e.appContext.app!=null&&!e.appContext.app.__VUE_I18N_SYMBOL__)throw Er(hA.NOT_INSTALLED);const A=n_(e),n=i_(A),r=wB(e),i=r_(t,r);if(__VUE_I18N_LEGACY_API__&&A.mode==="legacy"&&!t.__useComponent){if(!A.allowComposition)throw Er(hA.NOT_AVAILABLE_IN_LEGACY_MODE);return l_(e,i,n,t)}if(i==="global")return zT(n,t,r),n;if(i==="parent"){let c=s_(A,e,t.__useComponent);return c==null&&(process.env.NODE_ENV!=="production"&&Vn(xa(mt.NOT_FOUND_PARENT_SCOPE)),c=n),c}const s=A;let a=s.__getInstance(e);if(a==null){const c=qA({},t);"__i18n"in r&&(c.__i18n=r.__i18n),n&&(c.__root=n),a=jT(c),s.__composerExtend&&(a[$u]=s.__composerExtend(a)),a_(s,e,a),s.__setInstance(e,a)}return a}function n_(t){{const e=h.inject(t.isCE?t_:t.appContext.app.__VUE_I18N_SYMBOL__);if(!e)throw Er(t.isCE?hA.NOT_INSTALLED_WITH_PROVIDE:hA.UNEXPECTED_ERROR);return e}}function r_(t,e){return Ea(t)?"__i18n"in e?"local":"global":t.useScope?t.useScope:"local"}function i_(t){return t.mode==="composition"?t.global:t.global.__composer}function s_(t,e,A=!1){let n=null;const r=e.root;let i=o_(e,A);for(;i!=null;){const s=t;if(t.mode==="composition")n=s.__getInstance(i);else if(__VUE_I18N_LEGACY_API__){const a=s.__getInstance(i);a!=null&&(n=a.__composer,A&&n&&!n[BB]&&(n=null))}if(n!=null||r===i)break;i=i.parent}return n}function o_(t,e=!1){return t==null?null:e&&t.vnode.ctx||t.parent}function a_(t,e,A){let n=null;h.onMounted(()=>{if(process.env.NODE_ENV!=="production"&&e.vnode.el){e.vnode.el.__VUE_I18N__=A,n=ES();const r=A;r[Pu]&&r[Pu](n),n.on("*",vB)}},e),h.onUnmounted(()=>{const r=A;process.env.NODE_ENV!=="production"&&e.vnode.el&&e.vnode.el.__VUE_I18N__&&(n&&n.off("*",vB),r[Gu]&&r[Gu](),delete e.vnode.el.__VUE_I18N__),t.__deleteInstance(e);const i=r[$u];i&&(i(),delete r[$u])},e)}function l_(t,e,A,n={}){const r=e==="local",i=h.shallowRef(null);if(r&&t.proxy&&!(t.proxy.$options.i18n||t.proxy.$options.__i18n))throw Er(hA.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const s=rA(n.inheritLocale)?n.inheritLocale:!te(n.locale),a=h.ref(!r||s?A.locale.value:te(n.locale)?n.locale:Ws),c=h.ref(!r||s?A.fallbackLocale.value:te(n.fallbackLocale)||bA(n.fallbackLocale)||_e(n.fallbackLocale)||n.fallbackLocale===!1?n.fallbackLocale:a.value),u=h.ref(Wu(a.value,n)),f=h.ref(_e(n.datetimeFormats)?n.datetimeFormats:{[a.value]:{}}),p=h.ref(_e(n.numberFormats)?n.numberFormats:{[a.value]:{}}),g=r?A.missingWarn:rA(n.missingWarn)||Pi(n.missingWarn)?n.missingWarn:!0,B=r?A.fallbackWarn:rA(n.fallbackWarn)||Pi(n.fallbackWarn)?n.fallbackWarn:!0,w=r?A.fallbackRoot:rA(n.fallbackRoot)?n.fallbackRoot:!0,Q=!!n.fallbackFormat,b=cA(n.missing)?n.missing:null,v=cA(n.postTranslation)?n.postTranslation:null,_=r?A.warnHtmlMessage:rA(n.warnHtmlMessage)?n.warnHtmlMessage:!0,S=!!n.escapeParameter,E=r?A.modifiers:_e(n.modifiers)?n.modifiers:{},L=n.pluralRules||r&&A.pluralRules;function U(){return[a.value,c.value,u.value,f.value,p.value]}const N=h.computed({get:()=>i.value?i.value.locale.value:a.value,set:z=>{i.value&&(i.value.locale.value=z),a.value=z}}),V=h.computed({get:()=>i.value?i.value.fallbackLocale.value:c.value,set:z=>{i.value&&(i.value.fallbackLocale.value=z),c.value=z}}),D=h.computed(()=>i.value?i.value.messages.value:u.value),se=h.computed(()=>f.value),Be=h.computed(()=>p.value);function ne(){return i.value?i.value.getPostTranslationHandler():v}function ce(z){i.value&&i.value.setPostTranslationHandler(z)}function Le(){return i.value?i.value.getMissingHandler():b}function aA(z){i.value&&i.value.setMissingHandler(z)}function Re(z){return U(),z()}function ke(...z){return i.value?Re(()=>Reflect.apply(i.value.t,null,[...z])):Re(()=>"")}function re(...z){return i.value?Reflect.apply(i.value.rt,null,[...z]):""}function me(...z){return i.value?Re(()=>Reflect.apply(i.value.d,null,[...z])):Re(()=>"")}function Ye(...z){return i.value?Re(()=>Reflect.apply(i.value.n,null,[...z])):Re(()=>"")}function He(z){return i.value?i.value.tm(z):{}}function Ge(z,Ue){return i.value?i.value.te(z,Ue):!1}function Ke(z){return i.value?i.value.getLocaleMessage(z):{}}function AA(z,Ue){i.value&&(i.value.setLocaleMessage(z,Ue),u.value[z]=Ue)}function tA(z,Ue){i.value&&i.value.mergeLocaleMessage(z,Ue)}function qe(z){return i.value?i.value.getDateTimeFormat(z):{}}function pA(z,Ue){i.value&&(i.value.setDateTimeFormat(z,Ue),f.value[z]=Ue)}function ct(z,Ue){i.value&&i.value.mergeDateTimeFormat(z,Ue)}function et(z){return i.value?i.value.getNumberFormat(z):{}}function ut(z,Ue){i.value&&(i.value.setNumberFormat(z,Ue),p.value[z]=Ue)}function _t(z,Ue){i.value&&i.value.mergeNumberFormat(z,Ue)}const xt={get id(){return i.value?i.value.id:-1},locale:N,fallbackLocale:V,messages:D,datetimeFormats:se,numberFormats:Be,get inheritLocale(){return i.value?i.value.inheritLocale:s},set inheritLocale(z){i.value&&(i.value.inheritLocale=z)},get availableLocales(){return i.value?i.value.availableLocales:Object.keys(u.value)},get modifiers(){return i.value?i.value.modifiers:E},get pluralRules(){return i.value?i.value.pluralRules:L},get isGlobal(){return i.value?i.value.isGlobal:!1},get missingWarn(){return i.value?i.value.missingWarn:g},set missingWarn(z){i.value&&(i.value.missingWarn=z)},get fallbackWarn(){return i.value?i.value.fallbackWarn:B},set fallbackWarn(z){i.value&&(i.value.missingWarn=z)},get fallbackRoot(){return i.value?i.value.fallbackRoot:w},set fallbackRoot(z){i.value&&(i.value.fallbackRoot=z)},get fallbackFormat(){return i.value?i.value.fallbackFormat:Q},set fallbackFormat(z){i.value&&(i.value.fallbackFormat=z)},get warnHtmlMessage(){return i.value?i.value.warnHtmlMessage:_},set warnHtmlMessage(z){i.value&&(i.value.warnHtmlMessage=z)},get escapeParameter(){return i.value?i.value.escapeParameter:S},set escapeParameter(z){i.value&&(i.value.escapeParameter=z)},t:ke,getPostTranslationHandler:ne,setPostTranslationHandler:ce,getMissingHandler:Le,setMissingHandler:aA,rt:re,d:me,n:Ye,tm:He,te:Ge,getLocaleMessage:Ke,setLocaleMessage:AA,mergeLocaleMessage:tA,getDateTimeFormat:qe,setDateTimeFormat:pA,mergeDateTimeFormat:ct,getNumberFormat:et,setNumberFormat:ut,mergeNumberFormat:_t};function un(z){z.locale.value=a.value,z.fallbackLocale.value=c.value,Object.keys(u.value).forEach(Ue=>{z.mergeLocaleMessage(Ue,u.value[Ue])}),Object.keys(f.value).forEach(Ue=>{z.mergeDateTimeFormat(Ue,f.value[Ue])}),Object.keys(p.value).forEach(Ue=>{z.mergeNumberFormat(Ue,p.value[Ue])}),z.escapeParameter=S,z.fallbackFormat=Q,z.fallbackRoot=w,z.fallbackWarn=B,z.missingWarn=g,z.warnHtmlMessage=_}return h.onBeforeMount(()=>{if(t.proxy==null||t.proxy.$i18n==null)throw Er(hA.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const z=i.value=t.proxy.$i18n.__composer;e==="global"?(a.value=z.locale.value,c.value=z.fallbackLocale.value,u.value=z.messages.value,f.value=z.datetimeFormats.value,p.value=z.numberFormats.value):r&&un(z)}),xt}if(WT(),__INTLIFY_JIT_COMPILATION__?Gm(MT):Gm(DT),ST(lT),TT(Rm),process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const t=Kn();t.__INTLIFY__=!0,BT(t.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}process.env.NODE_ENV;const c_={class:"input input-dropdown"},u_={class:"dropdown"},f_={class:"caption"},d_=["innerHTML"],h_={class:"caption__text"},p_={class:"d-block text-truncate"},g_={class:"dropdown-menu"},m_={class:"form-check"},B_=["value","id","name","label","required","disabled"],w_=["value","id","name","label","required","disabled"],C_=["for"],y_=h.defineComponent({__name:"input-dropdown",props:{id:{type:String},name:{type:String,default:()=>`dropdown-${$e()}`},label:{type:String,default:()=>`dropdown-${$e()}`},error:{type:String},disabled:{type:Boolean,default:!1},readOnly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},modelValue:{type:null},options:{type:Array,required:!0},multiple:{type:Boolean,default:!1},showSelectionCount:{type:Boolean,default:!1},toggleCaption:{type:String},placeholder:{type:String,default:""},icon:{default:"chevron-down",type:String},variant:{type:String,default:""},color:{type:String,default:""},outlined:{type:Boolean,default:!1},exactMatch:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(t,{emit:e}){const{t:A}=Oa(),n=t,r=e,i=h.computed({get(){return n.multiple&&!n.modelValue?[]:n.modelValue},set(c){r("update:modelValue",c)}}),s=h.computed(()=>n.options&&n.options.map(c=>(c=typeof c=="string"?{text:c,value:c}:c,{...c,active:n.modelValue&&c.value&&(n.exactMatch?n.modelValue===c.value:n.multiple?n.modelValue.includes(c.value):n.modelValue===c.value)}))),a=h.computed(()=>{if(!n.modelValue)return n.placeholder||`${A("common.select")}`;if(n.multiple&&Array.isArray(n.modelValue)&&n.modelValue.length)return s.value.reduce((c,u)=>n.modelValue.includes(u.value)?`${c}${c?", ":""}${u.text}`:c,"");if(!n.multiple){const c=s.value.find(u=>u.value===n.modelValue);return c?c.text:n.placeholder||`${A("common.select")}`}return n.placeholder||`${A("common.select")}`});return(c,u)=>{const f=h.resolveComponent("base-button");return h.openBlock(),h.createElementBlock("div",c_,[h.createElementVNode("div",u_,[h.createVNode(f,{"data-bs-toggle":"dropdown",role:"button",type:"button",title:a.value,class:"btn dropdown-toggle",color:t.color,outlined:t.outlined,disabled:t.disabled},{default:h.withCtx(()=>[h.createElementVNode("span",f_,[h.createVNode(h.Transition,{name:"bounce"},{default:h.withCtx(()=>[t.showSelectionCount&&t.modelValue.length?(h.openBlock(),h.createElementBlock("i",{key:0,class:"caption__count",innerHTML:t.modelValue.length},null,8,d_)):h.createCommentVNode("",!0)]),_:1}),h.createElementVNode("span",h_,[h.createElementVNode("span",p_,h.toDisplayString(t.toggleCaption||a.value),1)])])]),_:1},8,["title","color","outlined","disabled"]),h.createElementVNode("ul",g_,[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(s.value,(p,g)=>(h.openBlock(),h.createElementBlock("li",{key:`${p.value}-${g}`},[h.createElementVNode("div",{class:h.normalizeClass(["dropdown-item",p.active&&"active"])},[h.createElementVNode("div",m_,[t.multiple?h.withDirectives((h.openBlock(),h.createElementBlock("input",{type:"checkbox","onUpdate:modelValue":u[0]||(u[0]=B=>i.value=B),value:p.value,key:`${t.name}-${p.value}-${g}__if`,id:`${t.name}-${p.value}-${g}`,name:t.name,label:p.text,required:t.required,disabled:p.selectable===!1,class:"form-check-input"},null,8,B_)),[[h.vModelCheckbox,i.value]]):h.withDirectives((h.openBlock(),h.createElementBlock("input",{type:"radio","onUpdate:modelValue":u[1]||(u[1]=B=>i.value=B),value:p.value,key:`${t.name}-${p.value}-${g}__else`,id:`${t.name}-${p.value}-${g}`,name:t.name,label:p.text,required:t.required,disabled:p.selectable===!1,class:"form-check-input visually-hidden"},null,8,w_)),[[h.vModelRadio,i.value]]),h.createElementVNode("label",{class:"form-check-label flex-grow-1",onclick:"event.stopPropagation",for:`${t.name}-${p.value}-${g}`},h.toDisplayString(p.text),9,C_)])],2)]))),128))])])])}}}),x$="",E_={key:0,class:"auto-suggest__suggestions position-relative"},Q_={class:"suggestions dropdown-menu show w-100 mt-2"},F_=["onClick"],b_=["innerHTML"],U_=h.defineComponent({__name:"auto-suggest",props:{modelValue:{type:String},id:{type:String},name:{type:String},label:{type:String},error:{type:String},disabled:{type:Boolean,default:!1},readOnly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},options:{type:Array,default:[]},color:{type:String,default:""},outlined:{type:Boolean,default:!1},selection:{type:String}},emits:["update:modelValue","update:selection"],setup(t,{emit:e}){const A=t,n=e,r=h.ref(),i=h.ref(!1),s=h.computed({get(){return A.modelValue},set(B){n("update:modelValue",B)}}),a=h.computed(()=>{const B=new RegExp(`(${s.value})`,"i");return s.value?A.options.filter(w=>B.test(w)):A.options}),c=h.computed(()=>{const B=new RegExp(`(${s.value})`,"i");return a.value.map(w=>w.replace(B,"<strong>$1</strong>"))});h.watch(()=>A.options,(B,w)=>{B.length&&(i.value=!0)},{deep:!0});function u(){A.options.length&&(i.value=!0)}function f(B){i.value=!1;const w=a.value[B];n("update:modelValue",w),n("update:selection",w)}const p=h.ref();function g(B){const w=B.target;i.value&&w&&!r.value.contains(w)&&(i.value=!1)}return h.onBeforeMount(()=>{p.value=document.addEventListener("click",g)}),h.onBeforeUnmount(()=>{document.removeEventListener("click",p.value)}),(B,w)=>{const Q=h.resolveComponent("base-input");return h.openBlock(),h.createElementBlock("div",{class:"auto-suggest",ref_key:"container",ref:r},[h.createElementVNode("div",{class:"auto-suggest__input",onFocusCapture:u},[h.renderSlot(B.$slots,"default",{},()=>[h.createVNode(Q,h.mergeProps({modelValue:s.value,"onUpdate:modelValue":w[0]||(w[0]=b=>s.value=b)},B.$props),null,16,["modelValue"])])],32),i.value&&a.value.length?(h.openBlock(),h.createElementBlock("div",E_,[h.createElementVNode("ul",Q_,[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(c.value,(b,v)=>(h.openBlock(),h.createElementBlock("li",{key:b,class:"suggestions__item dropdown-item",onClick:h.withModifiers(_=>f(v),["prevent"])},[h.createElementVNode("p",{class:"text-truncate my-2",innerHTML:b},null,8,b_)],8,F_))),128))])])):h.createCommentVNode("",!0)],512)}}}),O$="";var Ys=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},La={exports:{}};/**
139
+ `,"2) content: () => element.cloneNode(true)"].join(" "))}var s=r.reduce(function(c,d){var f=d&&SL(d,n);return f&&c.push(f),c},[]);return ks(t)?s[0]:s}go.defaultProps=yn,go.setDefaultProps=UL,go.currentInput=br,Object.assign({},ni.applyStyles,{effect:function(e){var A=e.state,n={popper:{position:A.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(A.elements.popper.style,n.popper),A.styles=n,A.elements.arrow&&Object.assign(A.elements.arrow.style,n.arrow)}}),go.setDefaultProps({render:AC});class TL{constructor({editor:e,element:A,view:n,tippyOptions:r={},updateDelay:i=250,shouldShow:a}){this.preventHide=!1,this.shouldShow=({view:s,state:c,from:d,to:f})=>{const{doc:h,selection:m}=c,{empty:g}=m,B=!h.textBetween(d,f).length&&jf(c.selection),y=this.element.contains(document.activeElement);return!(!(s.hasFocus()||y)||g||B||!this.editor.isEditable)},this.mousedownHandler=()=>{this.preventHide=!0},this.dragstartHandler=()=>{this.hide()},this.focusHandler=()=>{setTimeout(()=>this.update(this.editor.view))},this.blurHandler=({event:s})=>{var c;if(this.preventHide){this.preventHide=!1;return}s!=null&&s.relatedTarget&&(!((c=this.element.parentNode)===null||c===void 0)&&c.contains(s.relatedTarget))||this.hide()},this.tippyBlurHandler=s=>{this.blurHandler({event:s})},this.handleDebouncedUpdate=(s,c)=>{const d=!(c!=null&&c.selection.eq(s.state.selection)),f=!(c!=null&&c.doc.eq(s.state.doc));!d&&!f||(this.updateDebounceTimer&&clearTimeout(this.updateDebounceTimer),this.updateDebounceTimer=window.setTimeout(()=>{this.updateHandler(s,d,f,c)},this.updateDelay))},this.updateHandler=(s,c,d,f)=>{var h,m,g;const{state:B,composing:y}=s,{selection:v}=B;if(y||!c&&!d)return;this.createTooltip();const{ranges:k}=v,F=Math.min(...k.map(E=>E.$from.pos)),C=Math.max(...k.map(E=>E.$to.pos));if(!((h=this.shouldShow)===null||h===void 0?void 0:h.call(this,{editor:this.editor,view:s,state:B,oldState:f,from:F,to:C}))){this.hide();return}(m=this.tippy)===null||m===void 0||m.setProps({getReferenceClientRect:((g=this.tippyOptions)===null||g===void 0?void 0:g.getReferenceClientRect)||(()=>{if(DO(B.selection)){let E=s.nodeDOM(F);const x=E.dataset.nodeViewWrapper?E:E.querySelector("[data-node-view-wrapper]");if(x&&(E=x.firstChild),E)return E.getBoundingClientRect()}return Ey(s,F,C)})}),this.show()},this.editor=e,this.element=A,this.view=n,this.updateDelay=i,a&&(this.shouldShow=a),this.element.addEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.view.dom.addEventListener("dragstart",this.dragstartHandler),this.editor.on("focus",this.focusHandler),this.editor.on("blur",this.blurHandler),this.tippyOptions=r,this.element.remove(),this.element.style.visibility="visible"}createTooltip(){const{element:e}=this.editor.options,A=!!e.parentElement;this.tippy||!A||(this.tippy=go(e,{duration:0,getReferenceClientRect:null,content:this.element,interactive:!0,trigger:"manual",placement:"top",hideOnClick:"toggle",...this.tippyOptions}),this.tippy.popper.firstChild&&this.tippy.popper.firstChild.addEventListener("blur",this.tippyBlurHandler))}update(e,A){const{state:n}=e,r=n.selection.$from.pos!==n.selection.$to.pos;if(this.updateDelay>0&&r){this.handleDebouncedUpdate(e,A);return}const i=!(A!=null&&A.selection.eq(e.state.selection)),a=!(A!=null&&A.doc.eq(e.state.doc));this.updateHandler(e,i,a,A)}show(){var e;(e=this.tippy)===null||e===void 0||e.show()}hide(){var e;(e=this.tippy)===null||e===void 0||e.hide()}destroy(){var e,A;!((e=this.tippy)===null||e===void 0)&&e.popper.firstChild&&this.tippy.popper.firstChild.removeEventListener("blur",this.tippyBlurHandler),(A=this.tippy)===null||A===void 0||A.destroy(),this.element.removeEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.view.dom.removeEventListener("dragstart",this.dragstartHandler),this.editor.off("focus",this.focusHandler),this.editor.off("blur",this.blurHandler)}}const nC=t=>new sn({key:typeof t.pluginKey=="string"?new gr(t.pluginKey):t.pluginKey,view:e=>new TL({view:e,...t})});LA.create({name:"bubbleMenu",addOptions(){return{element:null,tippyOptions:{},pluginKey:"bubbleMenu",updateDelay:void 0,shouldShow:null}},addProseMirrorPlugins(){return this.options.element?[nC({pluginKey:this.options.pluginKey,editor:this.editor,element:this.options.element,tippyOptions:this.options.tippyOptions,updateDelay:this.options.updateDelay,shouldShow:this.options.shouldShow})]:[]}});class xL{constructor({editor:e,element:A,view:n,tippyOptions:r={},shouldShow:i}){this.preventHide=!1,this.shouldShow=({view:a,state:s})=>{const{selection:c}=s,{$anchor:d,empty:f}=c,h=d.depth===1,m=d.parent.isTextblock&&!d.parent.type.spec.code&&!d.parent.textContent;return!(!a.hasFocus()||!f||!h||!m||!this.editor.isEditable)},this.mousedownHandler=()=>{this.preventHide=!0},this.focusHandler=()=>{setTimeout(()=>this.update(this.editor.view))},this.blurHandler=({event:a})=>{var s;if(this.preventHide){this.preventHide=!1;return}a!=null&&a.relatedTarget&&(!((s=this.element.parentNode)===null||s===void 0)&&s.contains(a.relatedTarget))||this.hide()},this.tippyBlurHandler=a=>{this.blurHandler({event:a})},this.editor=e,this.element=A,this.view=n,i&&(this.shouldShow=i),this.element.addEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.editor.on("focus",this.focusHandler),this.editor.on("blur",this.blurHandler),this.tippyOptions=r,this.element.remove(),this.element.style.visibility="visible"}createTooltip(){const{element:e}=this.editor.options,A=!!e.parentElement;this.tippy||!A||(this.tippy=go(e,{duration:0,getReferenceClientRect:null,content:this.element,interactive:!0,trigger:"manual",placement:"right",hideOnClick:"toggle",...this.tippyOptions}),this.tippy.popper.firstChild&&this.tippy.popper.firstChild.addEventListener("blur",this.tippyBlurHandler))}update(e,A){var n,r,i;const{state:a}=e,{doc:s,selection:c}=a,{from:d,to:f}=c;if(A&&A.doc.eq(s)&&A.selection.eq(c))return;if(this.createTooltip(),!((n=this.shouldShow)===null||n===void 0?void 0:n.call(this,{editor:this.editor,view:e,state:a,oldState:A}))){this.hide();return}(r=this.tippy)===null||r===void 0||r.setProps({getReferenceClientRect:((i=this.tippyOptions)===null||i===void 0?void 0:i.getReferenceClientRect)||(()=>Ey(e,d,f))}),this.show()}show(){var e;(e=this.tippy)===null||e===void 0||e.show()}hide(){var e;(e=this.tippy)===null||e===void 0||e.hide()}destroy(){var e,A;!((e=this.tippy)===null||e===void 0)&&e.popper.firstChild&&this.tippy.popper.firstChild.removeEventListener("blur",this.tippyBlurHandler),(A=this.tippy)===null||A===void 0||A.destroy(),this.element.removeEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.editor.off("focus",this.focusHandler),this.editor.off("blur",this.blurHandler)}}const rC=t=>new sn({key:typeof t.pluginKey=="string"?new gr(t.pluginKey):t.pluginKey,view:e=>new xL({view:e,...t})});LA.create({name:"floatingMenu",addOptions(){return{element:null,tippyOptions:{},pluginKey:"floatingMenu",shouldShow:null}},addProseMirrorPlugins(){return this.options.element?[rC({pluginKey:this.options.pluginKey,editor:this.editor,element:this.options.element,tippyOptions:this.options.tippyOptions,shouldShow:this.options.shouldShow})]:[]}}),o.defineComponent({name:"BubbleMenu",props:{pluginKey:{type:[String,Object],default:"bubbleMenu"},editor:{type:Object,required:!0},updateDelay:{type:Number,default:void 0},tippyOptions:{type:Object,default:()=>({})},shouldShow:{type:Function,default:null}},setup(t,{slots:e}){const A=o.ref(null);return o.onMounted(()=>{const{updateDelay:n,editor:r,pluginKey:i,shouldShow:a,tippyOptions:s}=t;r.registerPlugin(nC({updateDelay:n,editor:r,element:A.value,pluginKey:i,shouldShow:a,tippyOptions:s}))}),o.onBeforeUnmount(()=>{const{pluginKey:n,editor:r}=t;r.unregisterPlugin(n)}),()=>{var n;return o.h("div",{ref:A},(n=e.default)===null||n===void 0?void 0:n.call(e))}}});function iC(t){return o.customRef((e,A)=>({get(){return e(),t},set(n){t=n,requestAnimationFrame(()=>{requestAnimationFrame(()=>{A()})})}}))}class DL extends jO{constructor(e={}){return super(e),this.vueRenderers=o.reactive(new Map),this.contentComponent=null,this.reactiveState=iC(this.view.state),this.reactiveExtensionStorage=iC(this.extensionStorage),this.on("transaction",()=>{this.reactiveState.value=this.view.state,this.reactiveExtensionStorage.value=this.extensionStorage}),o.markRaw(this)}get state(){return this.reactiveState?this.reactiveState.value:this.view.state}get storage(){return this.reactiveExtensionStorage?this.reactiveExtensionStorage.value:super.storage}registerPlugin(e,A){super.registerPlugin(e,A),this.reactiveState.value=this.view.state}unregisterPlugin(e){super.unregisterPlugin(e),this.reactiveState.value=this.view.state}}const ML=o.defineComponent({name:"EditorContent",props:{editor:{default:null,type:Object}},setup(t){const e=o.ref(),A=o.getCurrentInstance();return o.watchEffect(()=>{const n=t.editor;n&&n.options.element&&e.value&&o.nextTick(()=>{if(!e.value||!n.options.element.firstChild)return;const r=o.unref(e.value);e.value.append(...n.options.element.childNodes),n.contentComponent=A.ctx._,n.setOptions({element:r}),n.createNodeViews()})}),o.onBeforeUnmount(()=>{const n=t.editor;if(!n||(n.isDestroyed||n.view.setProps({nodeViews:{}}),n.contentComponent=null,!n.options.element.firstChild))return;const r=document.createElement("div");r.append(...n.options.element.childNodes),n.setOptions({element:r})}),{rootEl:e}},render(){const t=[];return this.editor&&this.editor.vueRenderers.forEach(e=>{const A=o.h(o.Teleport,{to:e.teleportElement,key:e.id},o.h(e.component,{ref:e.id,...e.props}));t.push(A)}),o.h("div",{ref:e=>{this.rootEl=e}},...t)}});o.defineComponent({name:"FloatingMenu",props:{pluginKey:{type:null,default:"floatingMenu"},editor:{type:Object,required:!0},tippyOptions:{type:Object,default:()=>({})},shouldShow:{type:Function,default:null}},setup(t,{slots:e}){const A=o.ref(null);return o.onMounted(()=>{const{pluginKey:n,editor:r,tippyOptions:i,shouldShow:a}=t;r.registerPlugin(rC({pluginKey:n,editor:r,element:A.value,tippyOptions:i,shouldShow:a}))}),o.onBeforeUnmount(()=>{const{pluginKey:n,editor:r}=t;r.unregisterPlugin(n)}),()=>{var n;return o.h("div",{ref:A},(n=e.default)===null||n===void 0?void 0:n.call(e))}}}),o.defineComponent({name:"NodeViewContent",props:{as:{type:String,default:"div"}},render(){return o.h(this.as,{style:{whiteSpace:"pre-wrap"},"data-node-view-content":""})}}),o.defineComponent({name:"NodeViewWrapper",props:{as:{type:String,default:"div"}},inject:["onDragStart","decorationClasses"],render(){var t,e;return o.h(this.as,{class:this.decorationClasses,style:{whiteSpace:"normal"},"data-node-view-wrapper":"",onDragstart:this.onDragStart},(e=(t=this.$slots).default)===null||e===void 0?void 0:e.call(t))}});const OL=(t={})=>{const e=o.shallowRef();return o.onMounted(()=>{e.value=new DL(t)}),o.onBeforeUnmount(()=>{var A;(A=e.value)===null||A===void 0||A.destroy()}),e},NL={class:"rte-editor"},LL={key:0,class:"rte-editor__controls"},HL=["disabled"],RL=["disabled"],PL=["disabled"],VL=["disabled"],KL=["disabled"],$L=["disabled"],GL=o.defineComponent({__name:"rte-editor",props:{modelValue:{type:String,default:"<p>I’m running Tiptap with Vue.js. 🎉</p>"},disabled:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(t,{emit:e}){const A=t,n=e,r=OL({content:A.modelValue,onUpdate:()=>{var i;n("update:modelValue",(i=r.value)==null?void 0:i.getHTML())},extensions:[nL,nN.configure({types:["heading","paragraph"]}),AN]});return o.watch(()=>A.modelValue,(i,a)=>{if(r.value){if(r.value.getHTML()===i)return;r.value.commands.setContent(i,!1)}}),(i,a)=>{const s=o.resolveComponent("svg-icon");return o.openBlock(),o.createElementBlock("div",NL,[o.unref(r)?(o.openBlock(),o.createElementBlock("div",LL,[o.createElementVNode("button",{class:o.normalizeClass(["btn btn-light",{"is-active":o.unref(r).isActive("bold")}]),onClick:a[0]||(a[0]=c=>{var d;return(d=o.unref(r))==null?void 0:d.chain().focus().toggleBold().run()}),disabled:!o.unref(r).can().chain().focus().toggleBold().run()},[o.createVNode(s,{symbol:"bold"})],10,HL),o.createElementVNode("button",{class:o.normalizeClass(["btn btn-light",{"is-active":o.unref(r).isActive("italic")}]),onClick:a[1]||(a[1]=c=>{var d;return(d=o.unref(r))==null?void 0:d.chain().focus().toggleItalic().run()}),disabled:!o.unref(r).can().chain().focus().toggleItalic().run()},[o.createVNode(s,{symbol:"italic"})],10,RL),o.createElementVNode("button",{class:o.normalizeClass(["btn btn-light",{"is-active":o.unref(r).isActive("strike")}]),onClick:a[2]||(a[2]=c=>{var d;return(d=o.unref(r))==null?void 0:d.chain().focus().toggleStrike().run()}),disabled:!o.unref(r).can().chain().focus().toggleStrike().run()}," strikethrough ",10,PL),o.createElementVNode("button",{class:o.normalizeClass(["btn btn-light",{"is-active":o.unref(r).isActive("code")}]),onClick:a[3]||(a[3]=c=>{var d;return(d=o.unref(r))==null?void 0:d.chain().focus().toggleCode().run()}),disabled:!o.unref(r).can().chain().focus().toggleCode().run()},[o.createVNode(s,{symbol:"code"})],10,VL),o.createElementVNode("button",{class:"btn btn-light",onClick:a[4]||(a[4]=c=>{var d;return(d=o.unref(r))==null?void 0:d.chain().focus().unsetAllMarks().run()})}," clear marks "),o.createElementVNode("button",{class:"btn btn-light",onClick:a[5]||(a[5]=c=>{var d;return(d=o.unref(r))==null?void 0:d.chain().focus().clearNodes().run()})}," clear nodes "),o.createElementVNode("button",{class:o.normalizeClass(["btn btn-light",{"is-active":o.unref(r).isActive("paragraph")}]),onClick:a[6]||(a[6]=c=>{var d;return(d=o.unref(r))==null?void 0:d.chain().focus().setParagraph().run()})}," paragraph ",2),o.createElementVNode("button",{class:o.normalizeClass(["btn btn-light",{"is-active":o.unref(r).isActive("heading",{level:1})}]),onClick:a[7]||(a[7]=c=>{var d;return(d=o.unref(r))==null?void 0:d.chain().focus().toggleHeading({level:1}).run()})}," h1 ",2),o.createElementVNode("button",{class:o.normalizeClass(["btn btn-light",{"is-active":o.unref(r).isActive("heading",{level:2})}]),onClick:a[8]||(a[8]=c=>{var d;return(d=o.unref(r))==null?void 0:d.chain().focus().toggleHeading({level:2}).run()})}," h2 ",2),o.createElementVNode("button",{class:o.normalizeClass(["btn btn-light",{"is-active":o.unref(r).isActive("heading",{level:3})}]),onClick:a[9]||(a[9]=c=>{var d;return(d=o.unref(r))==null?void 0:d.chain().focus().toggleHeading({level:3}).run()})}," h3 ",2),o.createElementVNode("button",{class:o.normalizeClass(["btn btn-light",{"is-active":o.unref(r).isActive("heading",{level:4})}]),onClick:a[10]||(a[10]=c=>{var d;return(d=o.unref(r))==null?void 0:d.chain().focus().toggleHeading({level:4}).run()})}," h4 ",2),o.createElementVNode("button",{class:o.normalizeClass(["btn btn-light",{"is-active":o.unref(r).isActive("heading",{level:5})}]),onClick:a[11]||(a[11]=c=>{var d;return(d=o.unref(r))==null?void 0:d.chain().focus().toggleHeading({level:5}).run()})}," h5 ",2),o.createElementVNode("button",{class:o.normalizeClass(["btn btn-light",{"is-active":o.unref(r).isActive("heading",{level:6})}]),onClick:a[12]||(a[12]=c=>{var d;return(d=o.unref(r))==null?void 0:d.chain().focus().toggleHeading({level:6}).run()})}," h6 ",2),o.createElementVNode("button",{class:o.normalizeClass(["btn btn-light",{"is-active":o.unref(r).isActive("bulletList")}]),onClick:a[13]||(a[13]=c=>{var d;return(d=o.unref(r))==null?void 0:d.chain().focus().toggleBulletList().run()})},[o.createVNode(s,{id:"list"})],2),o.createElementVNode("button",{class:o.normalizeClass(["btn btn-light",{"is-active":o.unref(r).isActive("orderedList")}]),onClick:a[14]||(a[14]=c=>{var d;return(d=o.unref(r))==null?void 0:d.chain().focus().toggleOrderedList().run()})}," ordered list ",2),o.createElementVNode("button",{class:o.normalizeClass(["btn btn-light",{"is-active":o.unref(r).isActive("codeBlock")}]),onClick:a[15]||(a[15]=c=>{var d;return(d=o.unref(r))==null?void 0:d.chain().focus().toggleCodeBlock().run()})}," code block ",2),o.createElementVNode("button",{class:o.normalizeClass(["btn btn-light",{"is-active":o.unref(r).isActive("blockquote")}]),onClick:a[16]||(a[16]=c=>{var d;return(d=o.unref(r))==null?void 0:d.chain().focus().toggleBlockquote().run()})}," blockquote ",2),o.createElementVNode("button",{class:"btn btn-light",onClick:a[17]||(a[17]=c=>{var d;return(d=o.unref(r))==null?void 0:d.chain().focus().setHorizontalRule().run()})}," horizontal rule "),o.createElementVNode("button",{class:"btn btn-light",onClick:a[18]||(a[18]=c=>{var d;return(d=o.unref(r))==null?void 0:d.chain().focus().setHardBreak().run()})}," hard break "),o.createElementVNode("button",{class:"btn btn-light",onClick:a[19]||(a[19]=c=>{var d;return(d=o.unref(r))==null?void 0:d.chain().focus().undo().run()}),disabled:!o.unref(r).can().chain().focus().undo().run()}," undo ",8,KL),o.createElementVNode("button",{class:"btn btn-light",onClick:a[20]||(a[20]=c=>{var d;return(d=o.unref(r))==null?void 0:d.chain().focus().redo().run()}),disabled:!o.unref(r).can().chain().focus().redo().run()}," redo ",8,$L),o.createElementVNode("button",{class:o.normalizeClass(["btn btn-light",{"is-active":o.unref(r).isActive("highlight")}]),onClick:a[21]||(a[21]=c=>{var d;return(d=o.unref(r))==null?void 0:d.chain().focus().toggleHighlight().run()})}," highlight ",2),o.createElementVNode("button",{class:o.normalizeClass(["btn btn-light",{"is-active":o.unref(r).isActive({textAlign:"left"})}]),onClick:a[22]||(a[22]=c=>{var d;return(d=o.unref(r))==null?void 0:d.chain().focus().setTextAlign("left").run()})},[o.createVNode(s,{symbol:"align-left"})],2),o.createElementVNode("button",{class:o.normalizeClass(["btn btn-light",{"is-active":o.unref(r).isActive({textAlign:"center"})}]),onClick:a[23]||(a[23]=c=>{var d;return(d=o.unref(r))==null?void 0:d.chain().focus().setTextAlign("center").run()})},[o.createVNode(s,{symbol:"align-center"})],2),o.createElementVNode("button",{class:o.normalizeClass(["btn btn-light",{"is-active":o.unref(r).isActive({textAlign:"right"})}]),onClick:a[24]||(a[24]=c=>{var d;return(d=o.unref(r))==null?void 0:d.chain().focus().setTextAlign("right").run()})},[o.createVNode(s,{symbol:"align-right"})],2)])):o.createCommentVNode("",!0),o.createVNode(o.unref(ML),{class:"rte-editor__content",editor:o.unref(r)},null,8,["editor"])])}}}),EJ="",WL={class:"input-color"},YL={class:"base-input__color-swatch"},zL=["name","id","disabled","read-only","required","aria-label"],JL=o.defineComponent({__name:"input-color",props:{modelValue:{type:[String,Number,Boolean,Date],default:""},type:{type:String,default:"text"},name:{type:String,default:()=>Ct()},id:{type:String,default:()=>Ct()},label:{type:String,default:""},placeholder:{type:String,default:""},variant:{type:String,default:""},disabled:{type:Boolean,default:!1},readOnly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},maxlength:{type:Number},pattern:{type:String,default:null}},emits:["update:modelValue"],setup(t,{emit:e}){const A=t,n=e,r=o.computed({get(){return A.modelValue},set(i){n("update:modelValue",i)}});return(i,a)=>{const s=o.resolveComponent("base-input");return o.openBlock(),o.createElementBlock("div",WL,[o.createVNode(s,{modelValue:r.value,"onUpdate:modelValue":a[1]||(a[1]=c=>r.value=c),type:t.type==="color"?"text":t.type,id:t.id,name:t.name,placeholder:t.placeholder,pattern:t.pattern,label:t.label,disabled:t.disabled,"read-only":t.readOnly,required:t.required,maxlength:t.maxlength},{"input-append":o.withCtx(c=>[o.createElementVNode("span",YL,[o.withDirectives(o.createElementVNode("input",{"onUpdate:modelValue":a[0]||(a[0]=d=>r.value=d),type:"color",name:`${t.name}-color`,id:`${t.id}-color`,disabled:t.disabled,"read-only":t.readOnly,required:t.required,class:"form-control","aria-label":t.label},null,8,zL),[[o.vModelText,r.value]])])]),_:1},8,["modelValue","type","id","name","placeholder","pattern","label","disabled","read-only","required","maxlength"])])}}}),QJ="",XL={class:"color-palette"},qL=["for"],jL=o.defineComponent({__name:"color-palette",props:{modelValue:{type:[String],default:""},colors:{type:Array,default:["#000000","#FFFFFF"]},name:{type:String,default:()=>Ct()},id:{type:String,default:()=>Ct()},label:{type:String},disabled:{type:Boolean,default:!1},required:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(t,{emit:e}){const A=t,n=e,r=o.computed({get(){return A.modelValue},set(i){n("update:modelValue",i)}});return(i,a)=>(o.openBlock(),o.createElementBlock("div",XL,[o.createVNode(xl,{modelValue:r.value,"onUpdate:modelValue":a[0]||(a[0]=s=>r.value=s),options:t.colors,name:t.name,id:t.id,label:t.label,disabled:t.disabled,required:t.required,class:"d-flex flex-wrap flex-row gap-2"},{"option-label":o.withCtx(s=>[o.createElementVNode("label",{for:`${t.id}-${s.index}`,class:"d-block rounded-circle",style:o.normalizeStyle({backgroundColor:s.option})},null,12,qL)]),_:1},8,["modelValue","options","name","id","label","disabled","required"])]))}}),FJ="",ZL={class:"input input-dropdown"},eH={class:"dropdown"},tH={class:"caption"},AH=["innerHTML"],nH={class:"caption__text"},rH={class:"d-block text-truncate"},iH={class:"dropdown-menu"},aH={class:"form-check"},oH=["value","id","name","label","required","disabled"],sH=["value","id","name","label","required","disabled"],lH=["for"],cH=o.defineComponent({__name:"input-dropdown",props:{id:{type:String},name:{type:String,default:()=>`dropdown-${Ct()}`},label:{type:String,default:()=>`dropdown-${Ct()}`},error:{type:String},disabled:{type:Boolean,default:!1},readOnly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},modelValue:{type:null},options:{type:Array,required:!0},multiple:{type:Boolean,default:!1},showSelectionCount:{type:Boolean,default:!1},toggleCaption:{type:String},placeholder:{type:String,default:""},icon:{default:"chevron-down",type:String},variant:{type:String,default:""},color:{type:String,default:""},outlined:{type:Boolean,default:!1},exactMatch:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(t,{emit:e}){const{t:A}=as(),n=t,r=e,i=o.computed({get(){return n.multiple&&!n.modelValue?[]:n.modelValue},set(c){r("update:modelValue",c)}}),a=o.computed(()=>n.options&&n.options.map(c=>(c=typeof c=="string"?{text:c,value:c}:c,{...c,active:n.modelValue&&c.value&&(n.exactMatch?n.modelValue===c.value:n.multiple?n.modelValue.includes(c.value):n.modelValue===c.value)}))),s=o.computed(()=>{if(!n.modelValue)return n.placeholder||`${A("common.select")}`;if(n.multiple&&Array.isArray(n.modelValue)&&n.modelValue.length)return a.value.reduce((c,d)=>n.modelValue.includes(d.value)?`${c}${c?", ":""}${d.text}`:c,"");if(!n.multiple){const c=a.value.find(d=>d.value===n.modelValue);return c?c.text:n.placeholder||`${A("common.select")}`}return n.placeholder||`${A("common.select")}`});return(c,d)=>{const f=o.resolveComponent("base-button");return o.openBlock(),o.createElementBlock("div",ZL,[o.createElementVNode("div",eH,[o.createVNode(f,{"data-bs-toggle":"dropdown",role:"button",type:"button",title:s.value,class:"btn dropdown-toggle",color:t.color,outlined:t.outlined,disabled:t.disabled},{default:o.withCtx(()=>[o.createElementVNode("span",tH,[o.createVNode(o.Transition,{name:"bounce"},{default:o.withCtx(()=>[t.showSelectionCount&&t.modelValue.length?(o.openBlock(),o.createElementBlock("i",{key:0,class:"caption__count",innerHTML:t.modelValue.length},null,8,AH)):o.createCommentVNode("",!0)]),_:1}),o.createElementVNode("span",nH,[o.createElementVNode("span",rH,o.toDisplayString(t.toggleCaption||s.value),1)])])]),_:1},8,["title","color","outlined","disabled"]),o.createElementVNode("ul",iH,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(a.value,(h,m)=>(o.openBlock(),o.createElementBlock("li",{key:`${h.value}-${m}`},[o.createElementVNode("div",{class:o.normalizeClass(["dropdown-item",h.active&&"active"])},[o.createElementVNode("div",aH,[t.multiple?o.withDirectives((o.openBlock(),o.createElementBlock("input",{type:"checkbox","onUpdate:modelValue":d[0]||(d[0]=g=>i.value=g),value:h.value,key:`${t.name}-${h.value}-${m}__if`,id:`${t.name}-${h.value}-${m}`,name:t.name,label:h.text,required:t.required,disabled:h.selectable===!1,class:"form-check-input"},null,8,oH)),[[o.vModelCheckbox,i.value]]):o.withDirectives((o.openBlock(),o.createElementBlock("input",{type:"radio","onUpdate:modelValue":d[1]||(d[1]=g=>i.value=g),value:h.value,key:`${t.name}-${h.value}-${m}__else`,id:`${t.name}-${h.value}-${m}`,name:t.name,label:h.text,required:t.required,disabled:h.selectable===!1,class:"form-check-input visually-hidden"},null,8,sH)),[[o.vModelRadio,i.value]]),o.createElementVNode("label",{class:"form-check-label flex-grow-1",onclick:"event.stopPropagation",for:`${t.name}-${h.value}-${m}`},o.toDisplayString(h.text),9,lH)])],2)]))),128))])])])}}}),UJ="",uH={key:0,class:"auto-suggest__suggestions position-relative"},dH={class:"suggestions dropdown-menu show w-100 mt-2"},fH=["onClick"],hH=["innerHTML"],pH=o.defineComponent({__name:"auto-suggest",props:{modelValue:{type:String},id:{type:String},name:{type:String},label:{type:String},error:{type:String},disabled:{type:Boolean,default:!1},readOnly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},options:{type:Array,default:[]},color:{type:String,default:""},outlined:{type:Boolean,default:!1},selection:{type:String}},emits:["update:modelValue","update:selection"],setup(t,{emit:e}){const A=t,n=e,r=o.ref(),i=o.ref(!1),a=o.computed({get(){return A.modelValue},set(g){n("update:modelValue",g)}}),s=o.computed(()=>{const g=new RegExp(`(${a.value})`,"i");return a.value?A.options.filter(B=>g.test(B)):A.options}),c=o.computed(()=>{const g=new RegExp(`(${a.value})`,"i");return s.value.map(B=>B.replace(g,"<strong>$1</strong>"))});o.watch(()=>A.options,(g,B)=>{g.length&&(i.value=!0)},{deep:!0});function d(){A.options.length&&(i.value=!0)}function f(g){i.value=!1;const B=s.value[g];n("update:modelValue",B),n("update:selection",B)}const h=o.ref();function m(g){const B=g.target;i.value&&B&&!r.value.contains(B)&&(i.value=!1)}return o.onBeforeMount(()=>{h.value=document.addEventListener("click",m)}),o.onBeforeUnmount(()=>{document.removeEventListener("click",h.value)}),(g,B)=>{const y=o.resolveComponent("base-input");return o.openBlock(),o.createElementBlock("div",{class:"auto-suggest",ref_key:"container",ref:r},[o.createElementVNode("div",{class:"auto-suggest__input",onFocusCapture:d},[o.renderSlot(g.$slots,"default",{},()=>[o.createVNode(y,o.mergeProps({modelValue:a.value,"onUpdate:modelValue":B[0]||(B[0]=v=>a.value=v)},g.$props),null,16,["modelValue"])])],32),i.value&&s.value.length?(o.openBlock(),o.createElementBlock("div",uH,[o.createElementVNode("ul",dH,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(c.value,(v,Q)=>(o.openBlock(),o.createElementBlock("li",{key:v,class:"suggestions__item dropdown-item",onClick:o.withModifiers(k=>f(Q),["prevent"])},[o.createElementVNode("p",{class:"text-truncate my-2",innerHTML:v},null,8,hH)],8,fH))),128))])])):o.createCommentVNode("",!0)],512)}}}),kJ="";var Is=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},wc={exports:{}};/**
140
140
  * @license
141
141
  * Lodash <https://lodash.com/>
142
142
  * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
143
143
  * Released under MIT license <https://lodash.com/license>
144
144
  * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
145
145
  * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
146
- */La.exports,function(t,e){(function(){var A,n="4.17.21",r=200,i="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",s="Expected a function",a="Invalid `variable` option passed into `_.template`",c="__lodash_hash_undefined__",u=500,f="__lodash_placeholder__",p=1,g=2,B=4,w=1,Q=2,b=1,v=2,_=4,S=8,E=16,L=32,U=64,N=128,V=256,D=512,se=30,Be="...",ne=800,ce=16,Le=1,aA=2,Re=3,ke=1/0,re=9007199254740991,me=17976931348623157e292,Ye=0/0,He=4294967295,Ge=He-1,Ke=He>>>1,AA=[["ary",N],["bind",b],["bindKey",v],["curry",S],["curryRight",E],["flip",D],["partial",L],["partialRight",U],["rearg",V]],tA="[object Arguments]",qe="[object Array]",pA="[object AsyncFunction]",ct="[object Boolean]",et="[object Date]",ut="[object DOMException]",_t="[object Error]",xt="[object Function]",un="[object GeneratorFunction]",z="[object Map]",Ue="[object Number]",Sn="[object Null]",vA="[object Object]",fn="[object Promise]",xr="[object Proxy]",T="[object RegExp]",x="[object Set]",W="[object String]",oe="[object Symbol]",nA="[object Undefined]",Ne="[object WeakMap]",Ve="[object WeakSet]",R="[object ArrayBuffer]",X="[object DataView]",Se="[object Float32Array]",iA="[object Float64Array]",Ct="[object Int8Array]",Tn="[object Int16Array]",Jt="[object Int32Array]",K="[object Uint8Array]",ie="[object Uint8ClampedArray]",ue="[object Uint16Array]",Pe="[object Uint32Array]",De=/\b__p \+= '';/g,GA=/\b(__p \+=) '' \+/g,yt=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Yn=/&(?:amp|lt|gt|quot|#39);/g,Bo=/[&<>"']/g,zn=RegExp(Yn.source),wo=RegExp(Bo.source),ss=/<%-([\s\S]+?)%>/g,Or=/<%([\s\S]+?)%>/g,Il=/<%=([\s\S]+?)%>/g,Co=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,as=/^\w*$/,DM=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,qf=/[\\^$.*+?()[\]{}|]/g,MM=RegExp(qf.source),Zf=/^\s+/,RM=/\s/,KM=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,VM=/\{\n\/\* \[wrapped with (.+)\] \*/,PM=/,? & /,GM=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,$M=/[()=,{}\[\]\/\s]/,WM=/\\(\\)?/g,JM=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,RC=/\w*$/,XM=/^[-+]0x[0-9a-f]+$/i,YM=/^0b[01]+$/i,zM=/^\[object .+?Constructor\]$/,qM=/^0o[0-7]+$/i,ZM=/^(?:0|[1-9]\d*)$/,jM=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Sl=/($^)/,eR=/['\n\r\u2028\u2029\\]/g,Tl="\\ud800-\\udfff",AR="\\u0300-\\u036f",tR="\\ufe20-\\ufe2f",nR="\\u20d0-\\u20ff",KC=AR+tR+nR,VC="\\u2700-\\u27bf",PC="a-z\\xdf-\\xf6\\xf8-\\xff",rR="\\xac\\xb1\\xd7\\xf7",iR="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",sR="\\u2000-\\u206f",oR=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",GC="A-Z\\xc0-\\xd6\\xd8-\\xde",$C="\\ufe0e\\ufe0f",WC=rR+iR+sR+oR,jf="['’]",aR="["+Tl+"]",JC="["+WC+"]",_l="["+KC+"]",XC="\\d+",lR="["+VC+"]",YC="["+PC+"]",zC="[^"+Tl+WC+XC+VC+PC+GC+"]",ed="\\ud83c[\\udffb-\\udfff]",cR="(?:"+_l+"|"+ed+")",qC="[^"+Tl+"]",Ad="(?:\\ud83c[\\udde6-\\uddff]){2}",td="[\\ud800-\\udbff][\\udc00-\\udfff]",ls="["+GC+"]",ZC="\\u200d",jC="(?:"+YC+"|"+zC+")",uR="(?:"+ls+"|"+zC+")",e0="(?:"+jf+"(?:d|ll|m|re|s|t|ve))?",A0="(?:"+jf+"(?:D|LL|M|RE|S|T|VE))?",t0=cR+"?",n0="["+$C+"]?",fR="(?:"+ZC+"(?:"+[qC,Ad,td].join("|")+")"+n0+t0+")*",dR="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",hR="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",r0=n0+t0+fR,pR="(?:"+[lR,Ad,td].join("|")+")"+r0,gR="(?:"+[qC+_l+"?",_l,Ad,td,aR].join("|")+")",mR=RegExp(jf,"g"),BR=RegExp(_l,"g"),nd=RegExp(ed+"(?="+ed+")|"+gR+r0,"g"),wR=RegExp([ls+"?"+YC+"+"+e0+"(?="+[JC,ls,"$"].join("|")+")",uR+"+"+A0+"(?="+[JC,ls+jC,"$"].join("|")+")",ls+"?"+jC+"+"+e0,ls+"+"+A0,hR,dR,XC,pR].join("|"),"g"),CR=RegExp("["+ZC+Tl+KC+$C+"]"),yR=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ER=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],QR=-1,uA={};uA[Se]=uA[iA]=uA[Ct]=uA[Tn]=uA[Jt]=uA[K]=uA[ie]=uA[ue]=uA[Pe]=!0,uA[tA]=uA[qe]=uA[R]=uA[ct]=uA[X]=uA[et]=uA[_t]=uA[xt]=uA[z]=uA[Ue]=uA[vA]=uA[T]=uA[x]=uA[W]=uA[Ne]=!1;var lA={};lA[tA]=lA[qe]=lA[R]=lA[X]=lA[ct]=lA[et]=lA[Se]=lA[iA]=lA[Ct]=lA[Tn]=lA[Jt]=lA[z]=lA[Ue]=lA[vA]=lA[T]=lA[x]=lA[W]=lA[oe]=lA[K]=lA[ie]=lA[ue]=lA[Pe]=!0,lA[_t]=lA[xt]=lA[Ne]=!1;var FR={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},bR={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},UR={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},vR={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},IR=parseFloat,SR=parseInt,i0=typeof Ys=="object"&&Ys&&Ys.Object===Object&&Ys,TR=typeof self=="object"&&self&&self.Object===Object&&self,$A=i0||TR||Function("return this")(),rd=e&&!e.nodeType&&e,pi=rd&&!0&&t&&!t.nodeType&&t,s0=pi&&pi.exports===rd,id=s0&&i0.process,Xt=function(){try{var k=pi&&pi.require&&pi.require("util").types;return k||id&&id.binding&&id.binding("util")}catch{}}(),o0=Xt&&Xt.isArrayBuffer,a0=Xt&&Xt.isDate,l0=Xt&&Xt.isMap,c0=Xt&&Xt.isRegExp,u0=Xt&&Xt.isSet,f0=Xt&&Xt.isTypedArray;function Ot(k,P,M){switch(M.length){case 0:return k.call(P);case 1:return k.call(P,M[0]);case 2:return k.call(P,M[0],M[1]);case 3:return k.call(P,M[0],M[1],M[2])}return k.apply(P,M)}function _R(k,P,M,Ae){for(var we=-1,Je=k==null?0:k.length;++we<Je;){var TA=k[we];P(Ae,TA,M(TA),k)}return Ae}function Yt(k,P){for(var M=-1,Ae=k==null?0:k.length;++M<Ae&&P(k[M],M,k)!==!1;);return k}function xR(k,P){for(var M=k==null?0:k.length;M--&&P(k[M],M,k)!==!1;);return k}function d0(k,P){for(var M=-1,Ae=k==null?0:k.length;++M<Ae;)if(!P(k[M],M,k))return!1;return!0}function Lr(k,P){for(var M=-1,Ae=k==null?0:k.length,we=0,Je=[];++M<Ae;){var TA=k[M];P(TA,M,k)&&(Je[we++]=TA)}return Je}function xl(k,P){var M=k==null?0:k.length;return!!M&&cs(k,P,0)>-1}function sd(k,P,M){for(var Ae=-1,we=k==null?0:k.length;++Ae<we;)if(M(P,k[Ae]))return!0;return!1}function dA(k,P){for(var M=-1,Ae=k==null?0:k.length,we=Array(Ae);++M<Ae;)we[M]=P(k[M],M,k);return we}function kr(k,P){for(var M=-1,Ae=P.length,we=k.length;++M<Ae;)k[we+M]=P[M];return k}function od(k,P,M,Ae){var we=-1,Je=k==null?0:k.length;for(Ae&&Je&&(M=k[++we]);++we<Je;)M=P(M,k[we],we,k);return M}function OR(k,P,M,Ae){var we=k==null?0:k.length;for(Ae&&we&&(M=k[--we]);we--;)M=P(M,k[we],we,k);return M}function ad(k,P){for(var M=-1,Ae=k==null?0:k.length;++M<Ae;)if(P(k[M],M,k))return!0;return!1}var LR=ld("length");function kR(k){return k.split("")}function HR(k){return k.match(GM)||[]}function h0(k,P,M){var Ae;return M(k,function(we,Je,TA){if(P(we,Je,TA))return Ae=Je,!1}),Ae}function Ol(k,P,M,Ae){for(var we=k.length,Je=M+(Ae?1:-1);Ae?Je--:++Je<we;)if(P(k[Je],Je,k))return Je;return-1}function cs(k,P,M){return P===P?XR(k,P,M):Ol(k,p0,M)}function NR(k,P,M,Ae){for(var we=M-1,Je=k.length;++we<Je;)if(Ae(k[we],P))return we;return-1}function p0(k){return k!==k}function g0(k,P){var M=k==null?0:k.length;return M?ud(k,P)/M:Ye}function ld(k){return function(P){return P==null?A:P[k]}}function cd(k){return function(P){return k==null?A:k[P]}}function m0(k,P,M,Ae,we){return we(k,function(Je,TA,sA){M=Ae?(Ae=!1,Je):P(M,Je,TA,sA)}),M}function DR(k,P){var M=k.length;for(k.sort(P);M--;)k[M]=k[M].value;return k}function ud(k,P){for(var M,Ae=-1,we=k.length;++Ae<we;){var Je=P(k[Ae]);Je!==A&&(M=M===A?Je:M+Je)}return M}function fd(k,P){for(var M=-1,Ae=Array(k);++M<k;)Ae[M]=P(M);return Ae}function MR(k,P){return dA(P,function(M){return[M,k[M]]})}function B0(k){return k&&k.slice(0,E0(k)+1).replace(Zf,"")}function Lt(k){return function(P){return k(P)}}function dd(k,P){return dA(P,function(M){return k[M]})}function yo(k,P){return k.has(P)}function w0(k,P){for(var M=-1,Ae=k.length;++M<Ae&&cs(P,k[M],0)>-1;);return M}function C0(k,P){for(var M=k.length;M--&&cs(P,k[M],0)>-1;);return M}function RR(k,P){for(var M=k.length,Ae=0;M--;)k[M]===P&&++Ae;return Ae}var KR=cd(FR),VR=cd(bR);function PR(k){return"\\"+vR[k]}function GR(k,P){return k==null?A:k[P]}function us(k){return CR.test(k)}function $R(k){return yR.test(k)}function WR(k){for(var P,M=[];!(P=k.next()).done;)M.push(P.value);return M}function hd(k){var P=-1,M=Array(k.size);return k.forEach(function(Ae,we){M[++P]=[we,Ae]}),M}function y0(k,P){return function(M){return k(P(M))}}function Hr(k,P){for(var M=-1,Ae=k.length,we=0,Je=[];++M<Ae;){var TA=k[M];(TA===P||TA===f)&&(k[M]=f,Je[we++]=M)}return Je}function Ll(k){var P=-1,M=Array(k.size);return k.forEach(function(Ae){M[++P]=Ae}),M}function JR(k){var P=-1,M=Array(k.size);return k.forEach(function(Ae){M[++P]=[Ae,Ae]}),M}function XR(k,P,M){for(var Ae=M-1,we=k.length;++Ae<we;)if(k[Ae]===P)return Ae;return-1}function YR(k,P,M){for(var Ae=M+1;Ae--;)if(k[Ae]===P)return Ae;return Ae}function fs(k){return us(k)?qR(k):LR(k)}function dn(k){return us(k)?ZR(k):kR(k)}function E0(k){for(var P=k.length;P--&&RM.test(k.charAt(P)););return P}var zR=cd(UR);function qR(k){for(var P=nd.lastIndex=0;nd.test(k);)++P;return P}function ZR(k){return k.match(nd)||[]}function jR(k){return k.match(wR)||[]}var e4=function k(P){P=P==null?$A:ds.defaults($A.Object(),P,ds.pick($A,ER));var M=P.Array,Ae=P.Date,we=P.Error,Je=P.Function,TA=P.Math,sA=P.Object,pd=P.RegExp,A4=P.String,zt=P.TypeError,kl=M.prototype,t4=Je.prototype,hs=sA.prototype,Hl=P["__core-js_shared__"],Nl=t4.toString,Ze=hs.hasOwnProperty,n4=0,Q0=function(){var o=/[^.]+$/.exec(Hl&&Hl.keys&&Hl.keys.IE_PROTO||"");return o?"Symbol(src)_1."+o:""}(),Dl=hs.toString,r4=Nl.call(sA),i4=$A._,s4=pd("^"+Nl.call(Ze).replace(qf,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ml=s0?P.Buffer:A,Nr=P.Symbol,Rl=P.Uint8Array,F0=Ml?Ml.allocUnsafe:A,Kl=y0(sA.getPrototypeOf,sA),b0=sA.create,U0=hs.propertyIsEnumerable,Vl=kl.splice,v0=Nr?Nr.isConcatSpreadable:A,Eo=Nr?Nr.iterator:A,gi=Nr?Nr.toStringTag:A,Pl=function(){try{var o=yi(sA,"defineProperty");return o({},"",{}),o}catch{}}(),o4=P.clearTimeout!==$A.clearTimeout&&P.clearTimeout,a4=Ae&&Ae.now!==$A.Date.now&&Ae.now,l4=P.setTimeout!==$A.setTimeout&&P.setTimeout,Gl=TA.ceil,$l=TA.floor,gd=sA.getOwnPropertySymbols,c4=Ml?Ml.isBuffer:A,I0=P.isFinite,u4=kl.join,f4=y0(sA.keys,sA),_A=TA.max,At=TA.min,d4=Ae.now,h4=P.parseInt,S0=TA.random,p4=kl.reverse,md=yi(P,"DataView"),Qo=yi(P,"Map"),Bd=yi(P,"Promise"),ps=yi(P,"Set"),Fo=yi(P,"WeakMap"),bo=yi(sA,"create"),Wl=Fo&&new Fo,gs={},g4=Ei(md),m4=Ei(Qo),B4=Ei(Bd),w4=Ei(ps),C4=Ei(Fo),Jl=Nr?Nr.prototype:A,Uo=Jl?Jl.valueOf:A,T0=Jl?Jl.toString:A;function y(o){if(BA(o)&&!Ee(o)&&!(o instanceof Oe)){if(o instanceof qt)return o;if(Ze.call(o,"__wrapped__"))return _y(o)}return new qt(o)}var ms=function(){function o(){}return function(l){if(!gA(l))return{};if(b0)return b0(l);o.prototype=l;var d=new o;return o.prototype=A,d}}();function Xl(){}function qt(o,l){this.__wrapped__=o,this.__actions__=[],this.__chain__=!!l,this.__index__=0,this.__values__=A}y.templateSettings={escape:ss,evaluate:Or,interpolate:Il,variable:"",imports:{_:y}},y.prototype=Xl.prototype,y.prototype.constructor=y,qt.prototype=ms(Xl.prototype),qt.prototype.constructor=qt;function Oe(o){this.__wrapped__=o,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=He,this.__views__=[]}function y4(){var o=new Oe(this.__wrapped__);return o.__actions__=Et(this.__actions__),o.__dir__=this.__dir__,o.__filtered__=this.__filtered__,o.__iteratees__=Et(this.__iteratees__),o.__takeCount__=this.__takeCount__,o.__views__=Et(this.__views__),o}function E4(){if(this.__filtered__){var o=new Oe(this);o.__dir__=-1,o.__filtered__=!0}else o=this.clone(),o.__dir__*=-1;return o}function Q4(){var o=this.__wrapped__.value(),l=this.__dir__,d=Ee(o),m=l<0,C=d?o.length:0,F=kK(0,C,this.__views__),I=F.start,O=F.end,H=O-I,G=m?O:I-1,$=this.__iteratees__,J=$.length,q=0,le=At(H,this.__takeCount__);if(!d||!m&&C==H&&le==H)return ey(o,this.__actions__);var he=[];e:for(;H--&&q<le;){G+=l;for(var ve=-1,pe=o[G];++ve<J;){var Te=$[ve],Me=Te.iteratee,Nt=Te.type,ht=Me(pe);if(Nt==aA)pe=ht;else if(!ht){if(Nt==Le)continue e;break e}}he[q++]=pe}return he}Oe.prototype=ms(Xl.prototype),Oe.prototype.constructor=Oe;function mi(o){var l=-1,d=o==null?0:o.length;for(this.clear();++l<d;){var m=o[l];this.set(m[0],m[1])}}function F4(){this.__data__=bo?bo(null):{},this.size=0}function b4(o){var l=this.has(o)&&delete this.__data__[o];return this.size-=l?1:0,l}function U4(o){var l=this.__data__;if(bo){var d=l[o];return d===c?A:d}return Ze.call(l,o)?l[o]:A}function v4(o){var l=this.__data__;return bo?l[o]!==A:Ze.call(l,o)}function I4(o,l){var d=this.__data__;return this.size+=this.has(o)?0:1,d[o]=bo&&l===A?c:l,this}mi.prototype.clear=F4,mi.prototype.delete=b4,mi.prototype.get=U4,mi.prototype.has=v4,mi.prototype.set=I4;function qn(o){var l=-1,d=o==null?0:o.length;for(this.clear();++l<d;){var m=o[l];this.set(m[0],m[1])}}function S4(){this.__data__=[],this.size=0}function T4(o){var l=this.__data__,d=Yl(l,o);if(d<0)return!1;var m=l.length-1;return d==m?l.pop():Vl.call(l,d,1),--this.size,!0}function _4(o){var l=this.__data__,d=Yl(l,o);return d<0?A:l[d][1]}function x4(o){return Yl(this.__data__,o)>-1}function O4(o,l){var d=this.__data__,m=Yl(d,o);return m<0?(++this.size,d.push([o,l])):d[m][1]=l,this}qn.prototype.clear=S4,qn.prototype.delete=T4,qn.prototype.get=_4,qn.prototype.has=x4,qn.prototype.set=O4;function Zn(o){var l=-1,d=o==null?0:o.length;for(this.clear();++l<d;){var m=o[l];this.set(m[0],m[1])}}function L4(){this.size=0,this.__data__={hash:new mi,map:new(Qo||qn),string:new mi}}function k4(o){var l=oc(this,o).delete(o);return this.size-=l?1:0,l}function H4(o){return oc(this,o).get(o)}function N4(o){return oc(this,o).has(o)}function D4(o,l){var d=oc(this,o),m=d.size;return d.set(o,l),this.size+=d.size==m?0:1,this}Zn.prototype.clear=L4,Zn.prototype.delete=k4,Zn.prototype.get=H4,Zn.prototype.has=N4,Zn.prototype.set=D4;function Bi(o){var l=-1,d=o==null?0:o.length;for(this.__data__=new Zn;++l<d;)this.add(o[l])}function M4(o){return this.__data__.set(o,c),this}function R4(o){return this.__data__.has(o)}Bi.prototype.add=Bi.prototype.push=M4,Bi.prototype.has=R4;function hn(o){var l=this.__data__=new qn(o);this.size=l.size}function K4(){this.__data__=new qn,this.size=0}function V4(o){var l=this.__data__,d=l.delete(o);return this.size=l.size,d}function P4(o){return this.__data__.get(o)}function G4(o){return this.__data__.has(o)}function $4(o,l){var d=this.__data__;if(d instanceof qn){var m=d.__data__;if(!Qo||m.length<r-1)return m.push([o,l]),this.size=++d.size,this;d=this.__data__=new Zn(m)}return d.set(o,l),this.size=d.size,this}hn.prototype.clear=K4,hn.prototype.delete=V4,hn.prototype.get=P4,hn.prototype.has=G4,hn.prototype.set=$4;function _0(o,l){var d=Ee(o),m=!d&&Qi(o),C=!d&&!m&&Vr(o),F=!d&&!m&&!C&&ys(o),I=d||m||C||F,O=I?fd(o.length,A4):[],H=O.length;for(var G in o)(l||Ze.call(o,G))&&!(I&&(G=="length"||C&&(G=="offset"||G=="parent")||F&&(G=="buffer"||G=="byteLength"||G=="byteOffset")||tr(G,H)))&&O.push(G);return O}function x0(o){var l=o.length;return l?o[Sd(0,l-1)]:A}function W4(o,l){return ac(Et(o),wi(l,0,o.length))}function J4(o){return ac(Et(o))}function wd(o,l,d){(d!==A&&!pn(o[l],d)||d===A&&!(l in o))&&jn(o,l,d)}function vo(o,l,d){var m=o[l];(!(Ze.call(o,l)&&pn(m,d))||d===A&&!(l in o))&&jn(o,l,d)}function Yl(o,l){for(var d=o.length;d--;)if(pn(o[d][0],l))return d;return-1}function X4(o,l,d,m){return Dr(o,function(C,F,I){l(m,C,d(C),I)}),m}function O0(o,l){return o&&xn(l,DA(l),o)}function Y4(o,l){return o&&xn(l,Ft(l),o)}function jn(o,l,d){l=="__proto__"&&Pl?Pl(o,l,{configurable:!0,enumerable:!0,value:d,writable:!0}):o[l]=d}function Cd(o,l){for(var d=-1,m=l.length,C=M(m),F=o==null;++d<m;)C[d]=F?A:eh(o,l[d]);return C}function wi(o,l,d){return o===o&&(d!==A&&(o=o<=d?o:d),l!==A&&(o=o>=l?o:l)),o}function Zt(o,l,d,m,C,F){var I,O=l&p,H=l&g,G=l&B;if(d&&(I=C?d(o,m,C,F):d(o)),I!==A)return I;if(!gA(o))return o;var $=Ee(o);if($){if(I=NK(o),!O)return Et(o,I)}else{var J=tt(o),q=J==xt||J==un;if(Vr(o))return ny(o,O);if(J==vA||J==tA||q&&!C){if(I=H||q?{}:Ey(o),!O)return H?UK(o,Y4(I,o)):bK(o,O0(I,o))}else{if(!lA[J])return C?o:{};I=DK(o,J,O)}}F||(F=new hn);var le=F.get(o);if(le)return le;F.set(o,I),qy(o)?o.forEach(function(pe){I.add(Zt(pe,l,d,pe,o,F))}):Yy(o)&&o.forEach(function(pe,Te){I.set(Te,Zt(pe,l,d,Te,o,F))});var he=G?H?Rd:Md:H?Ft:DA,ve=$?A:he(o);return Yt(ve||o,function(pe,Te){ve&&(Te=pe,pe=o[Te]),vo(I,Te,Zt(pe,l,d,Te,o,F))}),I}function z4(o){var l=DA(o);return function(d){return L0(d,o,l)}}function L0(o,l,d){var m=d.length;if(o==null)return!m;for(o=sA(o);m--;){var C=d[m],F=l[C],I=o[C];if(I===A&&!(C in o)||!F(I))return!1}return!0}function k0(o,l,d){if(typeof o!="function")throw new zt(s);return Lo(function(){o.apply(A,d)},l)}function Io(o,l,d,m){var C=-1,F=xl,I=!0,O=o.length,H=[],G=l.length;if(!O)return H;d&&(l=dA(l,Lt(d))),m?(F=sd,I=!1):l.length>=r&&(F=yo,I=!1,l=new Bi(l));e:for(;++C<O;){var $=o[C],J=d==null?$:d($);if($=m||$!==0?$:0,I&&J===J){for(var q=G;q--;)if(l[q]===J)continue e;H.push($)}else F(l,J,m)||H.push($)}return H}var Dr=ay(_n),H0=ay(Ed,!0);function q4(o,l){var d=!0;return Dr(o,function(m,C,F){return d=!!l(m,C,F),d}),d}function zl(o,l,d){for(var m=-1,C=o.length;++m<C;){var F=o[m],I=l(F);if(I!=null&&(O===A?I===I&&!Ht(I):d(I,O)))var O=I,H=F}return H}function Z4(o,l,d,m){var C=o.length;for(d=Qe(d),d<0&&(d=-d>C?0:C+d),m=m===A||m>C?C:Qe(m),m<0&&(m+=C),m=d>m?0:jy(m);d<m;)o[d++]=l;return o}function N0(o,l){var d=[];return Dr(o,function(m,C,F){l(m,C,F)&&d.push(m)}),d}function WA(o,l,d,m,C){var F=-1,I=o.length;for(d||(d=RK),C||(C=[]);++F<I;){var O=o[F];l>0&&d(O)?l>1?WA(O,l-1,d,m,C):kr(C,O):m||(C[C.length]=O)}return C}var yd=ly(),D0=ly(!0);function _n(o,l){return o&&yd(o,l,DA)}function Ed(o,l){return o&&D0(o,l,DA)}function ql(o,l){return Lr(l,function(d){return nr(o[d])})}function Ci(o,l){l=Rr(l,o);for(var d=0,m=l.length;o!=null&&d<m;)o=o[On(l[d++])];return d&&d==m?o:A}function M0(o,l,d){var m=l(o);return Ee(o)?m:kr(m,d(o))}function ft(o){return o==null?o===A?nA:Sn:gi&&gi in sA(o)?LK(o):JK(o)}function Qd(o,l){return o>l}function j4(o,l){return o!=null&&Ze.call(o,l)}function eK(o,l){return o!=null&&l in sA(o)}function AK(o,l,d){return o>=At(l,d)&&o<_A(l,d)}function Fd(o,l,d){for(var m=d?sd:xl,C=o[0].length,F=o.length,I=F,O=M(F),H=1/0,G=[];I--;){var $=o[I];I&&l&&($=dA($,Lt(l))),H=At($.length,H),O[I]=!d&&(l||C>=120&&$.length>=120)?new Bi(I&&$):A}$=o[0];var J=-1,q=O[0];e:for(;++J<C&&G.length<H;){var le=$[J],he=l?l(le):le;if(le=d||le!==0?le:0,!(q?yo(q,he):m(G,he,d))){for(I=F;--I;){var ve=O[I];if(!(ve?yo(ve,he):m(o[I],he,d)))continue e}q&&q.push(he),G.push(le)}}return G}function tK(o,l,d,m){return _n(o,function(C,F,I){l(m,d(C),F,I)}),m}function So(o,l,d){l=Rr(l,o),o=Uy(o,l);var m=o==null?o:o[On(en(l))];return m==null?A:Ot(m,o,d)}function R0(o){return BA(o)&&ft(o)==tA}function nK(o){return BA(o)&&ft(o)==R}function rK(o){return BA(o)&&ft(o)==et}function To(o,l,d,m,C){return o===l?!0:o==null||l==null||!BA(o)&&!BA(l)?o!==o&&l!==l:iK(o,l,d,m,To,C)}function iK(o,l,d,m,C,F){var I=Ee(o),O=Ee(l),H=I?qe:tt(o),G=O?qe:tt(l);H=H==tA?vA:H,G=G==tA?vA:G;var $=H==vA,J=G==vA,q=H==G;if(q&&Vr(o)){if(!Vr(l))return!1;I=!0,$=!1}if(q&&!$)return F||(F=new hn),I||ys(o)?wy(o,l,d,m,C,F):xK(o,l,H,d,m,C,F);if(!(d&w)){var le=$&&Ze.call(o,"__wrapped__"),he=J&&Ze.call(l,"__wrapped__");if(le||he){var ve=le?o.value():o,pe=he?l.value():l;return F||(F=new hn),C(ve,pe,d,m,F)}}return q?(F||(F=new hn),OK(o,l,d,m,C,F)):!1}function sK(o){return BA(o)&&tt(o)==z}function bd(o,l,d,m){var C=d.length,F=C,I=!m;if(o==null)return!F;for(o=sA(o);C--;){var O=d[C];if(I&&O[2]?O[1]!==o[O[0]]:!(O[0]in o))return!1}for(;++C<F;){O=d[C];var H=O[0],G=o[H],$=O[1];if(I&&O[2]){if(G===A&&!(H in o))return!1}else{var J=new hn;if(m)var q=m(G,$,H,o,l,J);if(!(q===A?To($,G,w|Q,m,J):q))return!1}}return!0}function K0(o){if(!gA(o)||VK(o))return!1;var l=nr(o)?s4:zM;return l.test(Ei(o))}function oK(o){return BA(o)&&ft(o)==T}function aK(o){return BA(o)&&tt(o)==x}function lK(o){return BA(o)&&hc(o.length)&&!!uA[ft(o)]}function V0(o){return typeof o=="function"?o:o==null?bt:typeof o=="object"?Ee(o)?$0(o[0],o[1]):G0(o):cE(o)}function Ud(o){if(!Oo(o))return f4(o);var l=[];for(var d in sA(o))Ze.call(o,d)&&d!="constructor"&&l.push(d);return l}function cK(o){if(!gA(o))return WK(o);var l=Oo(o),d=[];for(var m in o)m=="constructor"&&(l||!Ze.call(o,m))||d.push(m);return d}function vd(o,l){return o<l}function P0(o,l){var d=-1,m=Qt(o)?M(o.length):[];return Dr(o,function(C,F,I){m[++d]=l(C,F,I)}),m}function G0(o){var l=Vd(o);return l.length==1&&l[0][2]?Fy(l[0][0],l[0][1]):function(d){return d===o||bd(d,o,l)}}function $0(o,l){return Gd(o)&&Qy(l)?Fy(On(o),l):function(d){var m=eh(d,o);return m===A&&m===l?Ah(d,o):To(l,m,w|Q)}}function Zl(o,l,d,m,C){o!==l&&yd(l,function(F,I){if(C||(C=new hn),gA(F))uK(o,l,I,d,Zl,m,C);else{var O=m?m(Wd(o,I),F,I+"",o,l,C):A;O===A&&(O=F),wd(o,I,O)}},Ft)}function uK(o,l,d,m,C,F,I){var O=Wd(o,d),H=Wd(l,d),G=I.get(H);if(G){wd(o,d,G);return}var $=F?F(O,H,d+"",o,l,I):A,J=$===A;if(J){var q=Ee(H),le=!q&&Vr(H),he=!q&&!le&&ys(H);$=H,q||le||he?Ee(O)?$=O:yA(O)?$=Et(O):le?(J=!1,$=ny(H,!0)):he?(J=!1,$=ry(H,!0)):$=[]:ko(H)||Qi(H)?($=O,Qi(O)?$=eE(O):(!gA(O)||nr(O))&&($=Ey(H))):J=!1}J&&(I.set(H,$),C($,H,m,F,I),I.delete(H)),wd(o,d,$)}function W0(o,l){var d=o.length;if(d)return l+=l<0?d:0,tr(l,d)?o[l]:A}function J0(o,l,d){l.length?l=dA(l,function(F){return Ee(F)?function(I){return Ci(I,F.length===1?F[0]:F)}:F}):l=[bt];var m=-1;l=dA(l,Lt(de()));var C=P0(o,function(F,I,O){var H=dA(l,function(G){return G(F)});return{criteria:H,index:++m,value:F}});return DR(C,function(F,I){return FK(F,I,d)})}function fK(o,l){return X0(o,l,function(d,m){return Ah(o,m)})}function X0(o,l,d){for(var m=-1,C=l.length,F={};++m<C;){var I=l[m],O=Ci(o,I);d(O,I)&&_o(F,Rr(I,o),O)}return F}function dK(o){return function(l){return Ci(l,o)}}function Id(o,l,d,m){var C=m?NR:cs,F=-1,I=l.length,O=o;for(o===l&&(l=Et(l)),d&&(O=dA(o,Lt(d)));++F<I;)for(var H=0,G=l[F],$=d?d(G):G;(H=C(O,$,H,m))>-1;)O!==o&&Vl.call(O,H,1),Vl.call(o,H,1);return o}function Y0(o,l){for(var d=o?l.length:0,m=d-1;d--;){var C=l[d];if(d==m||C!==F){var F=C;tr(C)?Vl.call(o,C,1):xd(o,C)}}return o}function Sd(o,l){return o+$l(S0()*(l-o+1))}function hK(o,l,d,m){for(var C=-1,F=_A(Gl((l-o)/(d||1)),0),I=M(F);F--;)I[m?F:++C]=o,o+=d;return I}function Td(o,l){var d="";if(!o||l<1||l>re)return d;do l%2&&(d+=o),l=$l(l/2),l&&(o+=o);while(l);return d}function Ie(o,l){return Jd(by(o,l,bt),o+"")}function pK(o){return x0(Es(o))}function gK(o,l){var d=Es(o);return ac(d,wi(l,0,d.length))}function _o(o,l,d,m){if(!gA(o))return o;l=Rr(l,o);for(var C=-1,F=l.length,I=F-1,O=o;O!=null&&++C<F;){var H=On(l[C]),G=d;if(H==="__proto__"||H==="constructor"||H==="prototype")return o;if(C!=I){var $=O[H];G=m?m($,H,O):A,G===A&&(G=gA($)?$:tr(l[C+1])?[]:{})}vo(O,H,G),O=O[H]}return o}var z0=Wl?function(o,l){return Wl.set(o,l),o}:bt,mK=Pl?function(o,l){return Pl(o,"toString",{configurable:!0,enumerable:!1,value:nh(l),writable:!0})}:bt;function BK(o){return ac(Es(o))}function jt(o,l,d){var m=-1,C=o.length;l<0&&(l=-l>C?0:C+l),d=d>C?C:d,d<0&&(d+=C),C=l>d?0:d-l>>>0,l>>>=0;for(var F=M(C);++m<C;)F[m]=o[m+l];return F}function wK(o,l){var d;return Dr(o,function(m,C,F){return d=l(m,C,F),!d}),!!d}function jl(o,l,d){var m=0,C=o==null?m:o.length;if(typeof l=="number"&&l===l&&C<=Ke){for(;m<C;){var F=m+C>>>1,I=o[F];I!==null&&!Ht(I)&&(d?I<=l:I<l)?m=F+1:C=F}return C}return _d(o,l,bt,d)}function _d(o,l,d,m){var C=0,F=o==null?0:o.length;if(F===0)return 0;l=d(l);for(var I=l!==l,O=l===null,H=Ht(l),G=l===A;C<F;){var $=$l((C+F)/2),J=d(o[$]),q=J!==A,le=J===null,he=J===J,ve=Ht(J);if(I)var pe=m||he;else G?pe=he&&(m||q):O?pe=he&&q&&(m||!le):H?pe=he&&q&&!le&&(m||!ve):le||ve?pe=!1:pe=m?J<=l:J<l;pe?C=$+1:F=$}return At(F,Ge)}function q0(o,l){for(var d=-1,m=o.length,C=0,F=[];++d<m;){var I=o[d],O=l?l(I):I;if(!d||!pn(O,H)){var H=O;F[C++]=I===0?0:I}}return F}function Z0(o){return typeof o=="number"?o:Ht(o)?Ye:+o}function kt(o){if(typeof o=="string")return o;if(Ee(o))return dA(o,kt)+"";if(Ht(o))return T0?T0.call(o):"";var l=o+"";return l=="0"&&1/o==-ke?"-0":l}function Mr(o,l,d){var m=-1,C=xl,F=o.length,I=!0,O=[],H=O;if(d)I=!1,C=sd;else if(F>=r){var G=l?null:TK(o);if(G)return Ll(G);I=!1,C=yo,H=new Bi}else H=l?[]:O;e:for(;++m<F;){var $=o[m],J=l?l($):$;if($=d||$!==0?$:0,I&&J===J){for(var q=H.length;q--;)if(H[q]===J)continue e;l&&H.push(J),O.push($)}else C(H,J,d)||(H!==O&&H.push(J),O.push($))}return O}function xd(o,l){return l=Rr(l,o),o=Uy(o,l),o==null||delete o[On(en(l))]}function j0(o,l,d,m){return _o(o,l,d(Ci(o,l)),m)}function ec(o,l,d,m){for(var C=o.length,F=m?C:-1;(m?F--:++F<C)&&l(o[F],F,o););return d?jt(o,m?0:F,m?F+1:C):jt(o,m?F+1:0,m?C:F)}function ey(o,l){var d=o;return d instanceof Oe&&(d=d.value()),od(l,function(m,C){return C.func.apply(C.thisArg,kr([m],C.args))},d)}function Od(o,l,d){var m=o.length;if(m<2)return m?Mr(o[0]):[];for(var C=-1,F=M(m);++C<m;)for(var I=o[C],O=-1;++O<m;)O!=C&&(F[C]=Io(F[C]||I,o[O],l,d));return Mr(WA(F,1),l,d)}function Ay(o,l,d){for(var m=-1,C=o.length,F=l.length,I={};++m<C;){var O=m<F?l[m]:A;d(I,o[m],O)}return I}function Ld(o){return yA(o)?o:[]}function kd(o){return typeof o=="function"?o:bt}function Rr(o,l){return Ee(o)?o:Gd(o,l)?[o]:Ty(ze(o))}var CK=Ie;function Kr(o,l,d){var m=o.length;return d=d===A?m:d,!l&&d>=m?o:jt(o,l,d)}var ty=o4||function(o){return $A.clearTimeout(o)};function ny(o,l){if(l)return o.slice();var d=o.length,m=F0?F0(d):new o.constructor(d);return o.copy(m),m}function Hd(o){var l=new o.constructor(o.byteLength);return new Rl(l).set(new Rl(o)),l}function yK(o,l){var d=l?Hd(o.buffer):o.buffer;return new o.constructor(d,o.byteOffset,o.byteLength)}function EK(o){var l=new o.constructor(o.source,RC.exec(o));return l.lastIndex=o.lastIndex,l}function QK(o){return Uo?sA(Uo.call(o)):{}}function ry(o,l){var d=l?Hd(o.buffer):o.buffer;return new o.constructor(d,o.byteOffset,o.length)}function iy(o,l){if(o!==l){var d=o!==A,m=o===null,C=o===o,F=Ht(o),I=l!==A,O=l===null,H=l===l,G=Ht(l);if(!O&&!G&&!F&&o>l||F&&I&&H&&!O&&!G||m&&I&&H||!d&&H||!C)return 1;if(!m&&!F&&!G&&o<l||G&&d&&C&&!m&&!F||O&&d&&C||!I&&C||!H)return-1}return 0}function FK(o,l,d){for(var m=-1,C=o.criteria,F=l.criteria,I=C.length,O=d.length;++m<I;){var H=iy(C[m],F[m]);if(H){if(m>=O)return H;var G=d[m];return H*(G=="desc"?-1:1)}}return o.index-l.index}function sy(o,l,d,m){for(var C=-1,F=o.length,I=d.length,O=-1,H=l.length,G=_A(F-I,0),$=M(H+G),J=!m;++O<H;)$[O]=l[O];for(;++C<I;)(J||C<F)&&($[d[C]]=o[C]);for(;G--;)$[O++]=o[C++];return $}function oy(o,l,d,m){for(var C=-1,F=o.length,I=-1,O=d.length,H=-1,G=l.length,$=_A(F-O,0),J=M($+G),q=!m;++C<$;)J[C]=o[C];for(var le=C;++H<G;)J[le+H]=l[H];for(;++I<O;)(q||C<F)&&(J[le+d[I]]=o[C++]);return J}function Et(o,l){var d=-1,m=o.length;for(l||(l=M(m));++d<m;)l[d]=o[d];return l}function xn(o,l,d,m){var C=!d;d||(d={});for(var F=-1,I=l.length;++F<I;){var O=l[F],H=m?m(d[O],o[O],O,d,o):A;H===A&&(H=o[O]),C?jn(d,O,H):vo(d,O,H)}return d}function bK(o,l){return xn(o,Pd(o),l)}function UK(o,l){return xn(o,Cy(o),l)}function Ac(o,l){return function(d,m){var C=Ee(d)?_R:X4,F=l?l():{};return C(d,o,de(m,2),F)}}function Bs(o){return Ie(function(l,d){var m=-1,C=d.length,F=C>1?d[C-1]:A,I=C>2?d[2]:A;for(F=o.length>3&&typeof F=="function"?(C--,F):A,I&&dt(d[0],d[1],I)&&(F=C<3?A:F,C=1),l=sA(l);++m<C;){var O=d[m];O&&o(l,O,m,F)}return l})}function ay(o,l){return function(d,m){if(d==null)return d;if(!Qt(d))return o(d,m);for(var C=d.length,F=l?C:-1,I=sA(d);(l?F--:++F<C)&&m(I[F],F,I)!==!1;);return d}}function ly(o){return function(l,d,m){for(var C=-1,F=sA(l),I=m(l),O=I.length;O--;){var H=I[o?O:++C];if(d(F[H],H,F)===!1)break}return l}}function vK(o,l,d){var m=l&b,C=xo(o);function F(){var I=this&&this!==$A&&this instanceof F?C:o;return I.apply(m?d:this,arguments)}return F}function cy(o){return function(l){l=ze(l);var d=us(l)?dn(l):A,m=d?d[0]:l.charAt(0),C=d?Kr(d,1).join(""):l.slice(1);return m[o]()+C}}function ws(o){return function(l){return od(aE(oE(l).replace(mR,"")),o,"")}}function xo(o){return function(){var l=arguments;switch(l.length){case 0:return new o;case 1:return new o(l[0]);case 2:return new o(l[0],l[1]);case 3:return new o(l[0],l[1],l[2]);case 4:return new o(l[0],l[1],l[2],l[3]);case 5:return new o(l[0],l[1],l[2],l[3],l[4]);case 6:return new o(l[0],l[1],l[2],l[3],l[4],l[5]);case 7:return new o(l[0],l[1],l[2],l[3],l[4],l[5],l[6])}var d=ms(o.prototype),m=o.apply(d,l);return gA(m)?m:d}}function IK(o,l,d){var m=xo(o);function C(){for(var F=arguments.length,I=M(F),O=F,H=Cs(C);O--;)I[O]=arguments[O];var G=F<3&&I[0]!==H&&I[F-1]!==H?[]:Hr(I,H);if(F-=G.length,F<d)return py(o,l,tc,C.placeholder,A,I,G,A,A,d-F);var $=this&&this!==$A&&this instanceof C?m:o;return Ot($,this,I)}return C}function uy(o){return function(l,d,m){var C=sA(l);if(!Qt(l)){var F=de(d,3);l=DA(l),d=function(O){return F(C[O],O,C)}}var I=o(l,d,m);return I>-1?C[F?l[I]:I]:A}}function fy(o){return Ar(function(l){var d=l.length,m=d,C=qt.prototype.thru;for(o&&l.reverse();m--;){var F=l[m];if(typeof F!="function")throw new zt(s);if(C&&!I&&sc(F)=="wrapper")var I=new qt([],!0)}for(m=I?m:d;++m<d;){F=l[m];var O=sc(F),H=O=="wrapper"?Kd(F):A;H&&$d(H[0])&&H[1]==(N|S|L|V)&&!H[4].length&&H[9]==1?I=I[sc(H[0])].apply(I,H[3]):I=F.length==1&&$d(F)?I[O]():I.thru(F)}return function(){var G=arguments,$=G[0];if(I&&G.length==1&&Ee($))return I.plant($).value();for(var J=0,q=d?l[J].apply(this,G):$;++J<d;)q=l[J].call(this,q);return q}})}function tc(o,l,d,m,C,F,I,O,H,G){var $=l&N,J=l&b,q=l&v,le=l&(S|E),he=l&D,ve=q?A:xo(o);function pe(){for(var Te=arguments.length,Me=M(Te),Nt=Te;Nt--;)Me[Nt]=arguments[Nt];if(le)var ht=Cs(pe),Dt=RR(Me,ht);if(m&&(Me=sy(Me,m,C,le)),F&&(Me=oy(Me,F,I,le)),Te-=Dt,le&&Te<G){var EA=Hr(Me,ht);return py(o,l,tc,pe.placeholder,d,Me,EA,O,H,G-Te)}var gn=J?d:this,ir=q?gn[o]:o;return Te=Me.length,O?Me=XK(Me,O):he&&Te>1&&Me.reverse(),$&&H<Te&&(Me.length=H),this&&this!==$A&&this instanceof pe&&(ir=ve||xo(ir)),ir.apply(gn,Me)}return pe}function dy(o,l){return function(d,m){return tK(d,o,l(m),{})}}function nc(o,l){return function(d,m){var C;if(d===A&&m===A)return l;if(d!==A&&(C=d),m!==A){if(C===A)return m;typeof d=="string"||typeof m=="string"?(d=kt(d),m=kt(m)):(d=Z0(d),m=Z0(m)),C=o(d,m)}return C}}function Nd(o){return Ar(function(l){return l=dA(l,Lt(de())),Ie(function(d){var m=this;return o(l,function(C){return Ot(C,m,d)})})})}function rc(o,l){l=l===A?" ":kt(l);var d=l.length;if(d<2)return d?Td(l,o):l;var m=Td(l,Gl(o/fs(l)));return us(l)?Kr(dn(m),0,o).join(""):m.slice(0,o)}function SK(o,l,d,m){var C=l&b,F=xo(o);function I(){for(var O=-1,H=arguments.length,G=-1,$=m.length,J=M($+H),q=this&&this!==$A&&this instanceof I?F:o;++G<$;)J[G]=m[G];for(;H--;)J[G++]=arguments[++O];return Ot(q,C?d:this,J)}return I}function hy(o){return function(l,d,m){return m&&typeof m!="number"&&dt(l,d,m)&&(d=m=A),l=rr(l),d===A?(d=l,l=0):d=rr(d),m=m===A?l<d?1:-1:rr(m),hK(l,d,m,o)}}function ic(o){return function(l,d){return typeof l=="string"&&typeof d=="string"||(l=An(l),d=An(d)),o(l,d)}}function py(o,l,d,m,C,F,I,O,H,G){var $=l&S,J=$?I:A,q=$?A:I,le=$?F:A,he=$?A:F;l|=$?L:U,l&=~($?U:L),l&_||(l&=~(b|v));var ve=[o,l,C,le,J,he,q,O,H,G],pe=d.apply(A,ve);return $d(o)&&vy(pe,ve),pe.placeholder=m,Iy(pe,o,l)}function Dd(o){var l=TA[o];return function(d,m){if(d=An(d),m=m==null?0:At(Qe(m),292),m&&I0(d)){var C=(ze(d)+"e").split("e"),F=l(C[0]+"e"+(+C[1]+m));return C=(ze(F)+"e").split("e"),+(C[0]+"e"+(+C[1]-m))}return l(d)}}var TK=ps&&1/Ll(new ps([,-0]))[1]==ke?function(o){return new ps(o)}:sh;function gy(o){return function(l){var d=tt(l);return d==z?hd(l):d==x?JR(l):MR(l,o(l))}}function er(o,l,d,m,C,F,I,O){var H=l&v;if(!H&&typeof o!="function")throw new zt(s);var G=m?m.length:0;if(G||(l&=~(L|U),m=C=A),I=I===A?I:_A(Qe(I),0),O=O===A?O:Qe(O),G-=C?C.length:0,l&U){var $=m,J=C;m=C=A}var q=H?A:Kd(o),le=[o,l,d,m,C,$,J,F,I,O];if(q&&$K(le,q),o=le[0],l=le[1],d=le[2],m=le[3],C=le[4],O=le[9]=le[9]===A?H?0:o.length:_A(le[9]-G,0),!O&&l&(S|E)&&(l&=~(S|E)),!l||l==b)var he=vK(o,l,d);else l==S||l==E?he=IK(o,l,O):(l==L||l==(b|L))&&!C.length?he=SK(o,l,d,m):he=tc.apply(A,le);var ve=q?z0:vy;return Iy(ve(he,le),o,l)}function my(o,l,d,m){return o===A||pn(o,hs[d])&&!Ze.call(m,d)?l:o}function By(o,l,d,m,C,F){return gA(o)&&gA(l)&&(F.set(l,o),Zl(o,l,A,By,F),F.delete(l)),o}function _K(o){return ko(o)?A:o}function wy(o,l,d,m,C,F){var I=d&w,O=o.length,H=l.length;if(O!=H&&!(I&&H>O))return!1;var G=F.get(o),$=F.get(l);if(G&&$)return G==l&&$==o;var J=-1,q=!0,le=d&Q?new Bi:A;for(F.set(o,l),F.set(l,o);++J<O;){var he=o[J],ve=l[J];if(m)var pe=I?m(ve,he,J,l,o,F):m(he,ve,J,o,l,F);if(pe!==A){if(pe)continue;q=!1;break}if(le){if(!ad(l,function(Te,Me){if(!yo(le,Me)&&(he===Te||C(he,Te,d,m,F)))return le.push(Me)})){q=!1;break}}else if(!(he===ve||C(he,ve,d,m,F))){q=!1;break}}return F.delete(o),F.delete(l),q}function xK(o,l,d,m,C,F,I){switch(d){case X:if(o.byteLength!=l.byteLength||o.byteOffset!=l.byteOffset)return!1;o=o.buffer,l=l.buffer;case R:return!(o.byteLength!=l.byteLength||!F(new Rl(o),new Rl(l)));case ct:case et:case Ue:return pn(+o,+l);case _t:return o.name==l.name&&o.message==l.message;case T:case W:return o==l+"";case z:var O=hd;case x:var H=m&w;if(O||(O=Ll),o.size!=l.size&&!H)return!1;var G=I.get(o);if(G)return G==l;m|=Q,I.set(o,l);var $=wy(O(o),O(l),m,C,F,I);return I.delete(o),$;case oe:if(Uo)return Uo.call(o)==Uo.call(l)}return!1}function OK(o,l,d,m,C,F){var I=d&w,O=Md(o),H=O.length,G=Md(l),$=G.length;if(H!=$&&!I)return!1;for(var J=H;J--;){var q=O[J];if(!(I?q in l:Ze.call(l,q)))return!1}var le=F.get(o),he=F.get(l);if(le&&he)return le==l&&he==o;var ve=!0;F.set(o,l),F.set(l,o);for(var pe=I;++J<H;){q=O[J];var Te=o[q],Me=l[q];if(m)var Nt=I?m(Me,Te,q,l,o,F):m(Te,Me,q,o,l,F);if(!(Nt===A?Te===Me||C(Te,Me,d,m,F):Nt)){ve=!1;break}pe||(pe=q=="constructor")}if(ve&&!pe){var ht=o.constructor,Dt=l.constructor;ht!=Dt&&"constructor"in o&&"constructor"in l&&!(typeof ht=="function"&&ht instanceof ht&&typeof Dt=="function"&&Dt instanceof Dt)&&(ve=!1)}return F.delete(o),F.delete(l),ve}function Ar(o){return Jd(by(o,A,Ly),o+"")}function Md(o){return M0(o,DA,Pd)}function Rd(o){return M0(o,Ft,Cy)}var Kd=Wl?function(o){return Wl.get(o)}:sh;function sc(o){for(var l=o.name+"",d=gs[l],m=Ze.call(gs,l)?d.length:0;m--;){var C=d[m],F=C.func;if(F==null||F==o)return C.name}return l}function Cs(o){var l=Ze.call(y,"placeholder")?y:o;return l.placeholder}function de(){var o=y.iteratee||rh;return o=o===rh?V0:o,arguments.length?o(arguments[0],arguments[1]):o}function oc(o,l){var d=o.__data__;return KK(l)?d[typeof l=="string"?"string":"hash"]:d.map}function Vd(o){for(var l=DA(o),d=l.length;d--;){var m=l[d],C=o[m];l[d]=[m,C,Qy(C)]}return l}function yi(o,l){var d=GR(o,l);return K0(d)?d:A}function LK(o){var l=Ze.call(o,gi),d=o[gi];try{o[gi]=A;var m=!0}catch{}var C=Dl.call(o);return m&&(l?o[gi]=d:delete o[gi]),C}var Pd=gd?function(o){return o==null?[]:(o=sA(o),Lr(gd(o),function(l){return U0.call(o,l)}))}:oh,Cy=gd?function(o){for(var l=[];o;)kr(l,Pd(o)),o=Kl(o);return l}:oh,tt=ft;(md&&tt(new md(new ArrayBuffer(1)))!=X||Qo&&tt(new Qo)!=z||Bd&&tt(Bd.resolve())!=fn||ps&&tt(new ps)!=x||Fo&&tt(new Fo)!=Ne)&&(tt=function(o){var l=ft(o),d=l==vA?o.constructor:A,m=d?Ei(d):"";if(m)switch(m){case g4:return X;case m4:return z;case B4:return fn;case w4:return x;case C4:return Ne}return l});function kK(o,l,d){for(var m=-1,C=d.length;++m<C;){var F=d[m],I=F.size;switch(F.type){case"drop":o+=I;break;case"dropRight":l-=I;break;case"take":l=At(l,o+I);break;case"takeRight":o=_A(o,l-I);break}}return{start:o,end:l}}function HK(o){var l=o.match(VM);return l?l[1].split(PM):[]}function yy(o,l,d){l=Rr(l,o);for(var m=-1,C=l.length,F=!1;++m<C;){var I=On(l[m]);if(!(F=o!=null&&d(o,I)))break;o=o[I]}return F||++m!=C?F:(C=o==null?0:o.length,!!C&&hc(C)&&tr(I,C)&&(Ee(o)||Qi(o)))}function NK(o){var l=o.length,d=new o.constructor(l);return l&&typeof o[0]=="string"&&Ze.call(o,"index")&&(d.index=o.index,d.input=o.input),d}function Ey(o){return typeof o.constructor=="function"&&!Oo(o)?ms(Kl(o)):{}}function DK(o,l,d){var m=o.constructor;switch(l){case R:return Hd(o);case ct:case et:return new m(+o);case X:return yK(o,d);case Se:case iA:case Ct:case Tn:case Jt:case K:case ie:case ue:case Pe:return ry(o,d);case z:return new m;case Ue:case W:return new m(o);case T:return EK(o);case x:return new m;case oe:return QK(o)}}function MK(o,l){var d=l.length;if(!d)return o;var m=d-1;return l[m]=(d>1?"& ":"")+l[m],l=l.join(d>2?", ":" "),o.replace(KM,`{
147
- /* [wrapped with `+l+`] */
148
- `)}function RK(o){return Ee(o)||Qi(o)||!!(v0&&o&&o[v0])}function tr(o,l){var d=typeof o;return l=l??re,!!l&&(d=="number"||d!="symbol"&&ZM.test(o))&&o>-1&&o%1==0&&o<l}function dt(o,l,d){if(!gA(d))return!1;var m=typeof l;return(m=="number"?Qt(d)&&tr(l,d.length):m=="string"&&l in d)?pn(d[l],o):!1}function Gd(o,l){if(Ee(o))return!1;var d=typeof o;return d=="number"||d=="symbol"||d=="boolean"||o==null||Ht(o)?!0:as.test(o)||!Co.test(o)||l!=null&&o in sA(l)}function KK(o){var l=typeof o;return l=="string"||l=="number"||l=="symbol"||l=="boolean"?o!=="__proto__":o===null}function $d(o){var l=sc(o),d=y[l];if(typeof d!="function"||!(l in Oe.prototype))return!1;if(o===d)return!0;var m=Kd(d);return!!m&&o===m[0]}function VK(o){return!!Q0&&Q0 in o}var PK=Hl?nr:ah;function Oo(o){var l=o&&o.constructor,d=typeof l=="function"&&l.prototype||hs;return o===d}function Qy(o){return o===o&&!gA(o)}function Fy(o,l){return function(d){return d==null?!1:d[o]===l&&(l!==A||o in sA(d))}}function GK(o){var l=fc(o,function(m){return d.size===u&&d.clear(),m}),d=l.cache;return l}function $K(o,l){var d=o[1],m=l[1],C=d|m,F=C<(b|v|N),I=m==N&&d==S||m==N&&d==V&&o[7].length<=l[8]||m==(N|V)&&l[7].length<=l[8]&&d==S;if(!(F||I))return o;m&b&&(o[2]=l[2],C|=d&b?0:_);var O=l[3];if(O){var H=o[3];o[3]=H?sy(H,O,l[4]):O,o[4]=H?Hr(o[3],f):l[4]}return O=l[5],O&&(H=o[5],o[5]=H?oy(H,O,l[6]):O,o[6]=H?Hr(o[5],f):l[6]),O=l[7],O&&(o[7]=O),m&N&&(o[8]=o[8]==null?l[8]:At(o[8],l[8])),o[9]==null&&(o[9]=l[9]),o[0]=l[0],o[1]=C,o}function WK(o){var l=[];if(o!=null)for(var d in sA(o))l.push(d);return l}function JK(o){return Dl.call(o)}function by(o,l,d){return l=_A(l===A?o.length-1:l,0),function(){for(var m=arguments,C=-1,F=_A(m.length-l,0),I=M(F);++C<F;)I[C]=m[l+C];C=-1;for(var O=M(l+1);++C<l;)O[C]=m[C];return O[l]=d(I),Ot(o,this,O)}}function Uy(o,l){return l.length<2?o:Ci(o,jt(l,0,-1))}function XK(o,l){for(var d=o.length,m=At(l.length,d),C=Et(o);m--;){var F=l[m];o[m]=tr(F,d)?C[F]:A}return o}function Wd(o,l){if(!(l==="constructor"&&typeof o[l]=="function")&&l!="__proto__")return o[l]}var vy=Sy(z0),Lo=l4||function(o,l){return $A.setTimeout(o,l)},Jd=Sy(mK);function Iy(o,l,d){var m=l+"";return Jd(o,MK(m,YK(HK(m),d)))}function Sy(o){var l=0,d=0;return function(){var m=d4(),C=ce-(m-d);if(d=m,C>0){if(++l>=ne)return arguments[0]}else l=0;return o.apply(A,arguments)}}function ac(o,l){var d=-1,m=o.length,C=m-1;for(l=l===A?m:l;++d<l;){var F=Sd(d,C),I=o[F];o[F]=o[d],o[d]=I}return o.length=l,o}var Ty=GK(function(o){var l=[];return o.charCodeAt(0)===46&&l.push(""),o.replace(DM,function(d,m,C,F){l.push(C?F.replace(WM,"$1"):m||d)}),l});function On(o){if(typeof o=="string"||Ht(o))return o;var l=o+"";return l=="0"&&1/o==-ke?"-0":l}function Ei(o){if(o!=null){try{return Nl.call(o)}catch{}try{return o+""}catch{}}return""}function YK(o,l){return Yt(AA,function(d){var m="_."+d[0];l&d[1]&&!xl(o,m)&&o.push(m)}),o.sort()}function _y(o){if(o instanceof Oe)return o.clone();var l=new qt(o.__wrapped__,o.__chain__);return l.__actions__=Et(o.__actions__),l.__index__=o.__index__,l.__values__=o.__values__,l}function zK(o,l,d){(d?dt(o,l,d):l===A)?l=1:l=_A(Qe(l),0);var m=o==null?0:o.length;if(!m||l<1)return[];for(var C=0,F=0,I=M(Gl(m/l));C<m;)I[F++]=jt(o,C,C+=l);return I}function qK(o){for(var l=-1,d=o==null?0:o.length,m=0,C=[];++l<d;){var F=o[l];F&&(C[m++]=F)}return C}function ZK(){var o=arguments.length;if(!o)return[];for(var l=M(o-1),d=arguments[0],m=o;m--;)l[m-1]=arguments[m];return kr(Ee(d)?Et(d):[d],WA(l,1))}var jK=Ie(function(o,l){return yA(o)?Io(o,WA(l,1,yA,!0)):[]}),eV=Ie(function(o,l){var d=en(l);return yA(d)&&(d=A),yA(o)?Io(o,WA(l,1,yA,!0),de(d,2)):[]}),AV=Ie(function(o,l){var d=en(l);return yA(d)&&(d=A),yA(o)?Io(o,WA(l,1,yA,!0),A,d):[]});function tV(o,l,d){var m=o==null?0:o.length;return m?(l=d||l===A?1:Qe(l),jt(o,l<0?0:l,m)):[]}function nV(o,l,d){var m=o==null?0:o.length;return m?(l=d||l===A?1:Qe(l),l=m-l,jt(o,0,l<0?0:l)):[]}function rV(o,l){return o&&o.length?ec(o,de(l,3),!0,!0):[]}function iV(o,l){return o&&o.length?ec(o,de(l,3),!0):[]}function sV(o,l,d,m){var C=o==null?0:o.length;return C?(d&&typeof d!="number"&&dt(o,l,d)&&(d=0,m=C),Z4(o,l,d,m)):[]}function xy(o,l,d){var m=o==null?0:o.length;if(!m)return-1;var C=d==null?0:Qe(d);return C<0&&(C=_A(m+C,0)),Ol(o,de(l,3),C)}function Oy(o,l,d){var m=o==null?0:o.length;if(!m)return-1;var C=m-1;return d!==A&&(C=Qe(d),C=d<0?_A(m+C,0):At(C,m-1)),Ol(o,de(l,3),C,!0)}function Ly(o){var l=o==null?0:o.length;return l?WA(o,1):[]}function oV(o){var l=o==null?0:o.length;return l?WA(o,ke):[]}function aV(o,l){var d=o==null?0:o.length;return d?(l=l===A?1:Qe(l),WA(o,l)):[]}function lV(o){for(var l=-1,d=o==null?0:o.length,m={};++l<d;){var C=o[l];m[C[0]]=C[1]}return m}function ky(o){return o&&o.length?o[0]:A}function cV(o,l,d){var m=o==null?0:o.length;if(!m)return-1;var C=d==null?0:Qe(d);return C<0&&(C=_A(m+C,0)),cs(o,l,C)}function uV(o){var l=o==null?0:o.length;return l?jt(o,0,-1):[]}var fV=Ie(function(o){var l=dA(o,Ld);return l.length&&l[0]===o[0]?Fd(l):[]}),dV=Ie(function(o){var l=en(o),d=dA(o,Ld);return l===en(d)?l=A:d.pop(),d.length&&d[0]===o[0]?Fd(d,de(l,2)):[]}),hV=Ie(function(o){var l=en(o),d=dA(o,Ld);return l=typeof l=="function"?l:A,l&&d.pop(),d.length&&d[0]===o[0]?Fd(d,A,l):[]});function pV(o,l){return o==null?"":u4.call(o,l)}function en(o){var l=o==null?0:o.length;return l?o[l-1]:A}function gV(o,l,d){var m=o==null?0:o.length;if(!m)return-1;var C=m;return d!==A&&(C=Qe(d),C=C<0?_A(m+C,0):At(C,m-1)),l===l?YR(o,l,C):Ol(o,p0,C,!0)}function mV(o,l){return o&&o.length?W0(o,Qe(l)):A}var BV=Ie(Hy);function Hy(o,l){return o&&o.length&&l&&l.length?Id(o,l):o}function wV(o,l,d){return o&&o.length&&l&&l.length?Id(o,l,de(d,2)):o}function CV(o,l,d){return o&&o.length&&l&&l.length?Id(o,l,A,d):o}var yV=Ar(function(o,l){var d=o==null?0:o.length,m=Cd(o,l);return Y0(o,dA(l,function(C){return tr(C,d)?+C:C}).sort(iy)),m});function EV(o,l){var d=[];if(!(o&&o.length))return d;var m=-1,C=[],F=o.length;for(l=de(l,3);++m<F;){var I=o[m];l(I,m,o)&&(d.push(I),C.push(m))}return Y0(o,C),d}function Xd(o){return o==null?o:p4.call(o)}function QV(o,l,d){var m=o==null?0:o.length;return m?(d&&typeof d!="number"&&dt(o,l,d)?(l=0,d=m):(l=l==null?0:Qe(l),d=d===A?m:Qe(d)),jt(o,l,d)):[]}function FV(o,l){return jl(o,l)}function bV(o,l,d){return _d(o,l,de(d,2))}function UV(o,l){var d=o==null?0:o.length;if(d){var m=jl(o,l);if(m<d&&pn(o[m],l))return m}return-1}function vV(o,l){return jl(o,l,!0)}function IV(o,l,d){return _d(o,l,de(d,2),!0)}function SV(o,l){var d=o==null?0:o.length;if(d){var m=jl(o,l,!0)-1;if(pn(o[m],l))return m}return-1}function TV(o){return o&&o.length?q0(o):[]}function _V(o,l){return o&&o.length?q0(o,de(l,2)):[]}function xV(o){var l=o==null?0:o.length;return l?jt(o,1,l):[]}function OV(o,l,d){return o&&o.length?(l=d||l===A?1:Qe(l),jt(o,0,l<0?0:l)):[]}function LV(o,l,d){var m=o==null?0:o.length;return m?(l=d||l===A?1:Qe(l),l=m-l,jt(o,l<0?0:l,m)):[]}function kV(o,l){return o&&o.length?ec(o,de(l,3),!1,!0):[]}function HV(o,l){return o&&o.length?ec(o,de(l,3)):[]}var NV=Ie(function(o){return Mr(WA(o,1,yA,!0))}),DV=Ie(function(o){var l=en(o);return yA(l)&&(l=A),Mr(WA(o,1,yA,!0),de(l,2))}),MV=Ie(function(o){var l=en(o);return l=typeof l=="function"?l:A,Mr(WA(o,1,yA,!0),A,l)});function RV(o){return o&&o.length?Mr(o):[]}function KV(o,l){return o&&o.length?Mr(o,de(l,2)):[]}function VV(o,l){return l=typeof l=="function"?l:A,o&&o.length?Mr(o,A,l):[]}function Yd(o){if(!(o&&o.length))return[];var l=0;return o=Lr(o,function(d){if(yA(d))return l=_A(d.length,l),!0}),fd(l,function(d){return dA(o,ld(d))})}function Ny(o,l){if(!(o&&o.length))return[];var d=Yd(o);return l==null?d:dA(d,function(m){return Ot(l,A,m)})}var PV=Ie(function(o,l){return yA(o)?Io(o,l):[]}),GV=Ie(function(o){return Od(Lr(o,yA))}),$V=Ie(function(o){var l=en(o);return yA(l)&&(l=A),Od(Lr(o,yA),de(l,2))}),WV=Ie(function(o){var l=en(o);return l=typeof l=="function"?l:A,Od(Lr(o,yA),A,l)}),JV=Ie(Yd);function XV(o,l){return Ay(o||[],l||[],vo)}function YV(o,l){return Ay(o||[],l||[],_o)}var zV=Ie(function(o){var l=o.length,d=l>1?o[l-1]:A;return d=typeof d=="function"?(o.pop(),d):A,Ny(o,d)});function Dy(o){var l=y(o);return l.__chain__=!0,l}function qV(o,l){return l(o),o}function lc(o,l){return l(o)}var ZV=Ar(function(o){var l=o.length,d=l?o[0]:0,m=this.__wrapped__,C=function(F){return Cd(F,o)};return l>1||this.__actions__.length||!(m instanceof Oe)||!tr(d)?this.thru(C):(m=m.slice(d,+d+(l?1:0)),m.__actions__.push({func:lc,args:[C],thisArg:A}),new qt(m,this.__chain__).thru(function(F){return l&&!F.length&&F.push(A),F}))});function jV(){return Dy(this)}function eP(){return new qt(this.value(),this.__chain__)}function AP(){this.__values__===A&&(this.__values__=Zy(this.value()));var o=this.__index__>=this.__values__.length,l=o?A:this.__values__[this.__index__++];return{done:o,value:l}}function tP(){return this}function nP(o){for(var l,d=this;d instanceof Xl;){var m=_y(d);m.__index__=0,m.__values__=A,l?C.__wrapped__=m:l=m;var C=m;d=d.__wrapped__}return C.__wrapped__=o,l}function rP(){var o=this.__wrapped__;if(o instanceof Oe){var l=o;return this.__actions__.length&&(l=new Oe(this)),l=l.reverse(),l.__actions__.push({func:lc,args:[Xd],thisArg:A}),new qt(l,this.__chain__)}return this.thru(Xd)}function iP(){return ey(this.__wrapped__,this.__actions__)}var sP=Ac(function(o,l,d){Ze.call(o,d)?++o[d]:jn(o,d,1)});function oP(o,l,d){var m=Ee(o)?d0:q4;return d&&dt(o,l,d)&&(l=A),m(o,de(l,3))}function aP(o,l){var d=Ee(o)?Lr:N0;return d(o,de(l,3))}var lP=uy(xy),cP=uy(Oy);function uP(o,l){return WA(cc(o,l),1)}function fP(o,l){return WA(cc(o,l),ke)}function dP(o,l,d){return d=d===A?1:Qe(d),WA(cc(o,l),d)}function My(o,l){var d=Ee(o)?Yt:Dr;return d(o,de(l,3))}function Ry(o,l){var d=Ee(o)?xR:H0;return d(o,de(l,3))}var hP=Ac(function(o,l,d){Ze.call(o,d)?o[d].push(l):jn(o,d,[l])});function pP(o,l,d,m){o=Qt(o)?o:Es(o),d=d&&!m?Qe(d):0;var C=o.length;return d<0&&(d=_A(C+d,0)),pc(o)?d<=C&&o.indexOf(l,d)>-1:!!C&&cs(o,l,d)>-1}var gP=Ie(function(o,l,d){var m=-1,C=typeof l=="function",F=Qt(o)?M(o.length):[];return Dr(o,function(I){F[++m]=C?Ot(l,I,d):So(I,l,d)}),F}),mP=Ac(function(o,l,d){jn(o,d,l)});function cc(o,l){var d=Ee(o)?dA:P0;return d(o,de(l,3))}function BP(o,l,d,m){return o==null?[]:(Ee(l)||(l=l==null?[]:[l]),d=m?A:d,Ee(d)||(d=d==null?[]:[d]),J0(o,l,d))}var wP=Ac(function(o,l,d){o[d?0:1].push(l)},function(){return[[],[]]});function CP(o,l,d){var m=Ee(o)?od:m0,C=arguments.length<3;return m(o,de(l,4),d,C,Dr)}function yP(o,l,d){var m=Ee(o)?OR:m0,C=arguments.length<3;return m(o,de(l,4),d,C,H0)}function EP(o,l){var d=Ee(o)?Lr:N0;return d(o,dc(de(l,3)))}function QP(o){var l=Ee(o)?x0:pK;return l(o)}function FP(o,l,d){(d?dt(o,l,d):l===A)?l=1:l=Qe(l);var m=Ee(o)?W4:gK;return m(o,l)}function bP(o){var l=Ee(o)?J4:BK;return l(o)}function UP(o){if(o==null)return 0;if(Qt(o))return pc(o)?fs(o):o.length;var l=tt(o);return l==z||l==x?o.size:Ud(o).length}function vP(o,l,d){var m=Ee(o)?ad:wK;return d&&dt(o,l,d)&&(l=A),m(o,de(l,3))}var IP=Ie(function(o,l){if(o==null)return[];var d=l.length;return d>1&&dt(o,l[0],l[1])?l=[]:d>2&&dt(l[0],l[1],l[2])&&(l=[l[0]]),J0(o,WA(l,1),[])}),uc=a4||function(){return $A.Date.now()};function SP(o,l){if(typeof l!="function")throw new zt(s);return o=Qe(o),function(){if(--o<1)return l.apply(this,arguments)}}function Ky(o,l,d){return l=d?A:l,l=o&&l==null?o.length:l,er(o,N,A,A,A,A,l)}function Vy(o,l){var d;if(typeof l!="function")throw new zt(s);return o=Qe(o),function(){return--o>0&&(d=l.apply(this,arguments)),o<=1&&(l=A),d}}var zd=Ie(function(o,l,d){var m=b;if(d.length){var C=Hr(d,Cs(zd));m|=L}return er(o,m,l,d,C)}),Py=Ie(function(o,l,d){var m=b|v;if(d.length){var C=Hr(d,Cs(Py));m|=L}return er(l,m,o,d,C)});function Gy(o,l,d){l=d?A:l;var m=er(o,S,A,A,A,A,A,l);return m.placeholder=Gy.placeholder,m}function $y(o,l,d){l=d?A:l;var m=er(o,E,A,A,A,A,A,l);return m.placeholder=$y.placeholder,m}function Wy(o,l,d){var m,C,F,I,O,H,G=0,$=!1,J=!1,q=!0;if(typeof o!="function")throw new zt(s);l=An(l)||0,gA(d)&&($=!!d.leading,J="maxWait"in d,F=J?_A(An(d.maxWait)||0,l):F,q="trailing"in d?!!d.trailing:q);function le(EA){var gn=m,ir=C;return m=C=A,G=EA,I=o.apply(ir,gn),I}function he(EA){return G=EA,O=Lo(Te,l),$?le(EA):I}function ve(EA){var gn=EA-H,ir=EA-G,uE=l-gn;return J?At(uE,F-ir):uE}function pe(EA){var gn=EA-H,ir=EA-G;return H===A||gn>=l||gn<0||J&&ir>=F}function Te(){var EA=uc();if(pe(EA))return Me(EA);O=Lo(Te,ve(EA))}function Me(EA){return O=A,q&&m?le(EA):(m=C=A,I)}function Nt(){O!==A&&ty(O),G=0,m=H=C=O=A}function ht(){return O===A?I:Me(uc())}function Dt(){var EA=uc(),gn=pe(EA);if(m=arguments,C=this,H=EA,gn){if(O===A)return he(H);if(J)return ty(O),O=Lo(Te,l),le(H)}return O===A&&(O=Lo(Te,l)),I}return Dt.cancel=Nt,Dt.flush=ht,Dt}var TP=Ie(function(o,l){return k0(o,1,l)}),_P=Ie(function(o,l,d){return k0(o,An(l)||0,d)});function xP(o){return er(o,D)}function fc(o,l){if(typeof o!="function"||l!=null&&typeof l!="function")throw new zt(s);var d=function(){var m=arguments,C=l?l.apply(this,m):m[0],F=d.cache;if(F.has(C))return F.get(C);var I=o.apply(this,m);return d.cache=F.set(C,I)||F,I};return d.cache=new(fc.Cache||Zn),d}fc.Cache=Zn;function dc(o){if(typeof o!="function")throw new zt(s);return function(){var l=arguments;switch(l.length){case 0:return!o.call(this);case 1:return!o.call(this,l[0]);case 2:return!o.call(this,l[0],l[1]);case 3:return!o.call(this,l[0],l[1],l[2])}return!o.apply(this,l)}}function OP(o){return Vy(2,o)}var LP=CK(function(o,l){l=l.length==1&&Ee(l[0])?dA(l[0],Lt(de())):dA(WA(l,1),Lt(de()));var d=l.length;return Ie(function(m){for(var C=-1,F=At(m.length,d);++C<F;)m[C]=l[C].call(this,m[C]);return Ot(o,this,m)})}),qd=Ie(function(o,l){var d=Hr(l,Cs(qd));return er(o,L,A,l,d)}),Jy=Ie(function(o,l){var d=Hr(l,Cs(Jy));return er(o,U,A,l,d)}),kP=Ar(function(o,l){return er(o,V,A,A,A,l)});function HP(o,l){if(typeof o!="function")throw new zt(s);return l=l===A?l:Qe(l),Ie(o,l)}function NP(o,l){if(typeof o!="function")throw new zt(s);return l=l==null?0:_A(Qe(l),0),Ie(function(d){var m=d[l],C=Kr(d,0,l);return m&&kr(C,m),Ot(o,this,C)})}function DP(o,l,d){var m=!0,C=!0;if(typeof o!="function")throw new zt(s);return gA(d)&&(m="leading"in d?!!d.leading:m,C="trailing"in d?!!d.trailing:C),Wy(o,l,{leading:m,maxWait:l,trailing:C})}function MP(o){return Ky(o,1)}function RP(o,l){return qd(kd(l),o)}function KP(){if(!arguments.length)return[];var o=arguments[0];return Ee(o)?o:[o]}function VP(o){return Zt(o,B)}function PP(o,l){return l=typeof l=="function"?l:A,Zt(o,B,l)}function GP(o){return Zt(o,p|B)}function $P(o,l){return l=typeof l=="function"?l:A,Zt(o,p|B,l)}function WP(o,l){return l==null||L0(o,l,DA(l))}function pn(o,l){return o===l||o!==o&&l!==l}var JP=ic(Qd),XP=ic(function(o,l){return o>=l}),Qi=R0(function(){return arguments}())?R0:function(o){return BA(o)&&Ze.call(o,"callee")&&!U0.call(o,"callee")},Ee=M.isArray,YP=o0?Lt(o0):nK;function Qt(o){return o!=null&&hc(o.length)&&!nr(o)}function yA(o){return BA(o)&&Qt(o)}function zP(o){return o===!0||o===!1||BA(o)&&ft(o)==ct}var Vr=c4||ah,qP=a0?Lt(a0):rK;function ZP(o){return BA(o)&&o.nodeType===1&&!ko(o)}function jP(o){if(o==null)return!0;if(Qt(o)&&(Ee(o)||typeof o=="string"||typeof o.splice=="function"||Vr(o)||ys(o)||Qi(o)))return!o.length;var l=tt(o);if(l==z||l==x)return!o.size;if(Oo(o))return!Ud(o).length;for(var d in o)if(Ze.call(o,d))return!1;return!0}function e2(o,l){return To(o,l)}function A2(o,l,d){d=typeof d=="function"?d:A;var m=d?d(o,l):A;return m===A?To(o,l,A,d):!!m}function Zd(o){if(!BA(o))return!1;var l=ft(o);return l==_t||l==ut||typeof o.message=="string"&&typeof o.name=="string"&&!ko(o)}function t2(o){return typeof o=="number"&&I0(o)}function nr(o){if(!gA(o))return!1;var l=ft(o);return l==xt||l==un||l==pA||l==xr}function Xy(o){return typeof o=="number"&&o==Qe(o)}function hc(o){return typeof o=="number"&&o>-1&&o%1==0&&o<=re}function gA(o){var l=typeof o;return o!=null&&(l=="object"||l=="function")}function BA(o){return o!=null&&typeof o=="object"}var Yy=l0?Lt(l0):sK;function n2(o,l){return o===l||bd(o,l,Vd(l))}function r2(o,l,d){return d=typeof d=="function"?d:A,bd(o,l,Vd(l),d)}function i2(o){return zy(o)&&o!=+o}function s2(o){if(PK(o))throw new we(i);return K0(o)}function o2(o){return o===null}function a2(o){return o==null}function zy(o){return typeof o=="number"||BA(o)&&ft(o)==Ue}function ko(o){if(!BA(o)||ft(o)!=vA)return!1;var l=Kl(o);if(l===null)return!0;var d=Ze.call(l,"constructor")&&l.constructor;return typeof d=="function"&&d instanceof d&&Nl.call(d)==r4}var jd=c0?Lt(c0):oK;function l2(o){return Xy(o)&&o>=-re&&o<=re}var qy=u0?Lt(u0):aK;function pc(o){return typeof o=="string"||!Ee(o)&&BA(o)&&ft(o)==W}function Ht(o){return typeof o=="symbol"||BA(o)&&ft(o)==oe}var ys=f0?Lt(f0):lK;function c2(o){return o===A}function u2(o){return BA(o)&&tt(o)==Ne}function f2(o){return BA(o)&&ft(o)==Ve}var d2=ic(vd),h2=ic(function(o,l){return o<=l});function Zy(o){if(!o)return[];if(Qt(o))return pc(o)?dn(o):Et(o);if(Eo&&o[Eo])return WR(o[Eo]());var l=tt(o),d=l==z?hd:l==x?Ll:Es;return d(o)}function rr(o){if(!o)return o===0?o:0;if(o=An(o),o===ke||o===-ke){var l=o<0?-1:1;return l*me}return o===o?o:0}function Qe(o){var l=rr(o),d=l%1;return l===l?d?l-d:l:0}function jy(o){return o?wi(Qe(o),0,He):0}function An(o){if(typeof o=="number")return o;if(Ht(o))return Ye;if(gA(o)){var l=typeof o.valueOf=="function"?o.valueOf():o;o=gA(l)?l+"":l}if(typeof o!="string")return o===0?o:+o;o=B0(o);var d=YM.test(o);return d||qM.test(o)?SR(o.slice(2),d?2:8):XM.test(o)?Ye:+o}function eE(o){return xn(o,Ft(o))}function p2(o){return o?wi(Qe(o),-re,re):o===0?o:0}function ze(o){return o==null?"":kt(o)}var g2=Bs(function(o,l){if(Oo(l)||Qt(l)){xn(l,DA(l),o);return}for(var d in l)Ze.call(l,d)&&vo(o,d,l[d])}),AE=Bs(function(o,l){xn(l,Ft(l),o)}),gc=Bs(function(o,l,d,m){xn(l,Ft(l),o,m)}),m2=Bs(function(o,l,d,m){xn(l,DA(l),o,m)}),B2=Ar(Cd);function w2(o,l){var d=ms(o);return l==null?d:O0(d,l)}var C2=Ie(function(o,l){o=sA(o);var d=-1,m=l.length,C=m>2?l[2]:A;for(C&&dt(l[0],l[1],C)&&(m=1);++d<m;)for(var F=l[d],I=Ft(F),O=-1,H=I.length;++O<H;){var G=I[O],$=o[G];($===A||pn($,hs[G])&&!Ze.call(o,G))&&(o[G]=F[G])}return o}),y2=Ie(function(o){return o.push(A,By),Ot(tE,A,o)});function E2(o,l){return h0(o,de(l,3),_n)}function Q2(o,l){return h0(o,de(l,3),Ed)}function F2(o,l){return o==null?o:yd(o,de(l,3),Ft)}function b2(o,l){return o==null?o:D0(o,de(l,3),Ft)}function U2(o,l){return o&&_n(o,de(l,3))}function v2(o,l){return o&&Ed(o,de(l,3))}function I2(o){return o==null?[]:ql(o,DA(o))}function S2(o){return o==null?[]:ql(o,Ft(o))}function eh(o,l,d){var m=o==null?A:Ci(o,l);return m===A?d:m}function T2(o,l){return o!=null&&yy(o,l,j4)}function Ah(o,l){return o!=null&&yy(o,l,eK)}var _2=dy(function(o,l,d){l!=null&&typeof l.toString!="function"&&(l=Dl.call(l)),o[l]=d},nh(bt)),x2=dy(function(o,l,d){l!=null&&typeof l.toString!="function"&&(l=Dl.call(l)),Ze.call(o,l)?o[l].push(d):o[l]=[d]},de),O2=Ie(So);function DA(o){return Qt(o)?_0(o):Ud(o)}function Ft(o){return Qt(o)?_0(o,!0):cK(o)}function L2(o,l){var d={};return l=de(l,3),_n(o,function(m,C,F){jn(d,l(m,C,F),m)}),d}function k2(o,l){var d={};return l=de(l,3),_n(o,function(m,C,F){jn(d,C,l(m,C,F))}),d}var H2=Bs(function(o,l,d){Zl(o,l,d)}),tE=Bs(function(o,l,d,m){Zl(o,l,d,m)}),N2=Ar(function(o,l){var d={};if(o==null)return d;var m=!1;l=dA(l,function(F){return F=Rr(F,o),m||(m=F.length>1),F}),xn(o,Rd(o),d),m&&(d=Zt(d,p|g|B,_K));for(var C=l.length;C--;)xd(d,l[C]);return d});function D2(o,l){return nE(o,dc(de(l)))}var M2=Ar(function(o,l){return o==null?{}:fK(o,l)});function nE(o,l){if(o==null)return{};var d=dA(Rd(o),function(m){return[m]});return l=de(l),X0(o,d,function(m,C){return l(m,C[0])})}function R2(o,l,d){l=Rr(l,o);var m=-1,C=l.length;for(C||(C=1,o=A);++m<C;){var F=o==null?A:o[On(l[m])];F===A&&(m=C,F=d),o=nr(F)?F.call(o):F}return o}function K2(o,l,d){return o==null?o:_o(o,l,d)}function V2(o,l,d,m){return m=typeof m=="function"?m:A,o==null?o:_o(o,l,d,m)}var rE=gy(DA),iE=gy(Ft);function P2(o,l,d){var m=Ee(o),C=m||Vr(o)||ys(o);if(l=de(l,4),d==null){var F=o&&o.constructor;C?d=m?new F:[]:gA(o)?d=nr(F)?ms(Kl(o)):{}:d={}}return(C?Yt:_n)(o,function(I,O,H){return l(d,I,O,H)}),d}function G2(o,l){return o==null?!0:xd(o,l)}function $2(o,l,d){return o==null?o:j0(o,l,kd(d))}function W2(o,l,d,m){return m=typeof m=="function"?m:A,o==null?o:j0(o,l,kd(d),m)}function Es(o){return o==null?[]:dd(o,DA(o))}function J2(o){return o==null?[]:dd(o,Ft(o))}function X2(o,l,d){return d===A&&(d=l,l=A),d!==A&&(d=An(d),d=d===d?d:0),l!==A&&(l=An(l),l=l===l?l:0),wi(An(o),l,d)}function Y2(o,l,d){return l=rr(l),d===A?(d=l,l=0):d=rr(d),o=An(o),AK(o,l,d)}function z2(o,l,d){if(d&&typeof d!="boolean"&&dt(o,l,d)&&(l=d=A),d===A&&(typeof l=="boolean"?(d=l,l=A):typeof o=="boolean"&&(d=o,o=A)),o===A&&l===A?(o=0,l=1):(o=rr(o),l===A?(l=o,o=0):l=rr(l)),o>l){var m=o;o=l,l=m}if(d||o%1||l%1){var C=S0();return At(o+C*(l-o+IR("1e-"+((C+"").length-1))),l)}return Sd(o,l)}var q2=ws(function(o,l,d){return l=l.toLowerCase(),o+(d?sE(l):l)});function sE(o){return th(ze(o).toLowerCase())}function oE(o){return o=ze(o),o&&o.replace(jM,KR).replace(BR,"")}function Z2(o,l,d){o=ze(o),l=kt(l);var m=o.length;d=d===A?m:wi(Qe(d),0,m);var C=d;return d-=l.length,d>=0&&o.slice(d,C)==l}function j2(o){return o=ze(o),o&&wo.test(o)?o.replace(Bo,VR):o}function eG(o){return o=ze(o),o&&MM.test(o)?o.replace(qf,"\\$&"):o}var AG=ws(function(o,l,d){return o+(d?"-":"")+l.toLowerCase()}),tG=ws(function(o,l,d){return o+(d?" ":"")+l.toLowerCase()}),nG=cy("toLowerCase");function rG(o,l,d){o=ze(o),l=Qe(l);var m=l?fs(o):0;if(!l||m>=l)return o;var C=(l-m)/2;return rc($l(C),d)+o+rc(Gl(C),d)}function iG(o,l,d){o=ze(o),l=Qe(l);var m=l?fs(o):0;return l&&m<l?o+rc(l-m,d):o}function sG(o,l,d){o=ze(o),l=Qe(l);var m=l?fs(o):0;return l&&m<l?rc(l-m,d)+o:o}function oG(o,l,d){return d||l==null?l=0:l&&(l=+l),h4(ze(o).replace(Zf,""),l||0)}function aG(o,l,d){return(d?dt(o,l,d):l===A)?l=1:l=Qe(l),Td(ze(o),l)}function lG(){var o=arguments,l=ze(o[0]);return o.length<3?l:l.replace(o[1],o[2])}var cG=ws(function(o,l,d){return o+(d?"_":"")+l.toLowerCase()});function uG(o,l,d){return d&&typeof d!="number"&&dt(o,l,d)&&(l=d=A),d=d===A?He:d>>>0,d?(o=ze(o),o&&(typeof l=="string"||l!=null&&!jd(l))&&(l=kt(l),!l&&us(o))?Kr(dn(o),0,d):o.split(l,d)):[]}var fG=ws(function(o,l,d){return o+(d?" ":"")+th(l)});function dG(o,l,d){return o=ze(o),d=d==null?0:wi(Qe(d),0,o.length),l=kt(l),o.slice(d,d+l.length)==l}function hG(o,l,d){var m=y.templateSettings;d&&dt(o,l,d)&&(l=A),o=ze(o),l=gc({},l,m,my);var C=gc({},l.imports,m.imports,my),F=DA(C),I=dd(C,F),O,H,G=0,$=l.interpolate||Sl,J="__p += '",q=pd((l.escape||Sl).source+"|"+$.source+"|"+($===Il?JM:Sl).source+"|"+(l.evaluate||Sl).source+"|$","g"),le="//# sourceURL="+(Ze.call(l,"sourceURL")?(l.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++QR+"]")+`
149
- `;o.replace(q,function(pe,Te,Me,Nt,ht,Dt){return Me||(Me=Nt),J+=o.slice(G,Dt).replace(eR,PR),Te&&(O=!0,J+=`' +
150
- __e(`+Te+`) +
151
- '`),ht&&(H=!0,J+=`';
152
- `+ht+`;
153
- __p += '`),Me&&(J+=`' +
154
- ((__t = (`+Me+`)) == null ? '' : __t) +
155
- '`),G=Dt+pe.length,pe}),J+=`';
156
- `;var he=Ze.call(l,"variable")&&l.variable;if(!he)J=`with (obj) {
157
- `+J+`
146
+ */wc.exports,function(t,e){(function(){var A,n="4.17.21",r=200,i="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",a="Expected a function",s="Invalid `variable` option passed into `_.template`",c="__lodash_hash_undefined__",d=500,f="__lodash_placeholder__",h=1,m=2,g=4,B=1,y=2,v=1,Q=2,k=4,F=8,C=16,D=32,E=64,x=128,O=256,S=512,K=30,de="...",ce=800,ge=16,V=1,X=2,$=3,re=1/0,te=9007199254740991,q=17976931348623157e292,me=0/0,j=4294967295,Ee=j-1,R=j>>>1,J=[["ary",x],["bind",v],["bindKey",Q],["curry",F],["curryRight",C],["flip",S],["partial",D],["partialRight",E],["rearg",O]],Ae="[object Arguments]",se="[object Array]",U="[object AsyncFunction]",Z="[object Boolean]",Ue="[object Date]",At="[object DOMException]",ie="[object Error]",Ge="[object Function]",Be="[object GeneratorFunction]",Y="[object Map]",T="[object Number]",Fe="[object Null]",Ce="[object Object]",ke="[object Promise]",nt="[object Proxy]",M="[object RegExp]",N="[object Set]",le="[object String]",H="[object Symbol]",we="[object Undefined]",Me="[object WeakMap]",We="[object WeakSet]",ne="[object ArrayBuffer]",ee="[object DataView]",$e="[object Float32Array]",dt="[object Float64Array]",vA="[object Int8Array]",en="[object Int16Array]",PA="[object Int32Array]",oe="[object Uint8Array]",xe="[object Uint8ClampedArray]",Ke="[object Uint16Array]",ft="[object Uint32Array]",G=/\b__p \+= '';/g,ye=/\b(__p \+=) '' \+/g,Ne=/(__e\(.*?\)|\b__t\)) \+\n'';/g,et=/&(?:amp|lt|gt|quot|#39);/g,fe=/[&<>"']/g,_e=RegExp(et.source),Pe=RegExp(fe.source),VA=/<%-([\s\S]+?)%>/g,dA=/<%([\s\S]+?)%>/g,Nn=/<%=([\s\S]+?)%>/g,un=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Fr=/^\w*$/,Bp=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,wp=/[\\^$.*+?()[\]{}|]/g,U$=RegExp(wp.source),yp=/^\s+/,k$=/\s/,_$=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,I$=/\{\n\/\* \[wrapped with (.+)\] \*/,S$=/,? & /,T$=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,x$=/[()=,{}\[\]\/\s]/,D$=/\\(\\)?/g,M$=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Bv=/\w*$/,O$=/^[-+]0x[0-9a-f]+$/i,N$=/^0b[01]+$/i,L$=/^\[object .+?Constructor\]$/,H$=/^0o[0-7]+$/i,R$=/^(?:0|[1-9]\d*)$/,P$=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,fu=/($^)/,V$=/['\n\r\u2028\u2029\\]/g,hu="\\ud800-\\udfff",K$="\\u0300-\\u036f",$$="\\ufe20-\\ufe2f",G$="\\u20d0-\\u20ff",wv=K$+$$+G$,yv="\\u2700-\\u27bf",Cv="a-z\\xdf-\\xf6\\xf8-\\xff",W$="\\xac\\xb1\\xd7\\xf7",Y$="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",z$="\\u2000-\\u206f",J$=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",bv="A-Z\\xc0-\\xd6\\xd8-\\xde",vv="\\ufe0e\\ufe0f",Ev=W$+Y$+z$+J$,Cp="['’]",X$="["+hu+"]",Qv="["+Ev+"]",pu="["+wv+"]",Fv="\\d+",q$="["+yv+"]",Uv="["+Cv+"]",kv="[^"+hu+Ev+Fv+yv+Cv+bv+"]",bp="\\ud83c[\\udffb-\\udfff]",j$="(?:"+pu+"|"+bp+")",_v="[^"+hu+"]",vp="(?:\\ud83c[\\udde6-\\uddff]){2}",Ep="[\\ud800-\\udbff][\\udc00-\\udfff]",Io="["+bv+"]",Iv="\\u200d",Sv="(?:"+Uv+"|"+kv+")",Z$="(?:"+Io+"|"+kv+")",Tv="(?:"+Cp+"(?:d|ll|m|re|s|t|ve))?",xv="(?:"+Cp+"(?:D|LL|M|RE|S|T|VE))?",Dv=j$+"?",Mv="["+vv+"]?",eG="(?:"+Iv+"(?:"+[_v,vp,Ep].join("|")+")"+Mv+Dv+")*",tG="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",AG="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Ov=Mv+Dv+eG,nG="(?:"+[q$,vp,Ep].join("|")+")"+Ov,rG="(?:"+[_v+pu+"?",pu,vp,Ep,X$].join("|")+")",iG=RegExp(Cp,"g"),aG=RegExp(pu,"g"),Qp=RegExp(bp+"(?="+bp+")|"+rG+Ov,"g"),oG=RegExp([Io+"?"+Uv+"+"+Tv+"(?="+[Qv,Io,"$"].join("|")+")",Z$+"+"+xv+"(?="+[Qv,Io+Sv,"$"].join("|")+")",Io+"?"+Sv+"+"+Tv,Io+"+"+xv,AG,tG,Fv,nG].join("|"),"g"),sG=RegExp("["+Iv+hu+wv+vv+"]"),lG=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,cG=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],uG=-1,Rt={};Rt[$e]=Rt[dt]=Rt[vA]=Rt[en]=Rt[PA]=Rt[oe]=Rt[xe]=Rt[Ke]=Rt[ft]=!0,Rt[Ae]=Rt[se]=Rt[ne]=Rt[Z]=Rt[ee]=Rt[Ue]=Rt[ie]=Rt[Ge]=Rt[Y]=Rt[T]=Rt[Ce]=Rt[M]=Rt[N]=Rt[le]=Rt[Me]=!1;var Ot={};Ot[Ae]=Ot[se]=Ot[ne]=Ot[ee]=Ot[Z]=Ot[Ue]=Ot[$e]=Ot[dt]=Ot[vA]=Ot[en]=Ot[PA]=Ot[Y]=Ot[T]=Ot[Ce]=Ot[M]=Ot[N]=Ot[le]=Ot[H]=Ot[oe]=Ot[xe]=Ot[Ke]=Ot[ft]=!0,Ot[ie]=Ot[Ge]=Ot[Me]=!1;var dG={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},fG={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},hG={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},pG={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},mG=parseFloat,gG=parseInt,Nv=typeof Is=="object"&&Is&&Is.Object===Object&&Is,BG=typeof self=="object"&&self&&self.Object===Object&&self,IA=Nv||BG||Function("return this")(),Fp=e&&!e.nodeType&&e,Qa=Fp&&!0&&t&&!t.nodeType&&t,Lv=Qa&&Qa.exports===Fp,Up=Lv&&Nv.process,Ln=function(){try{var W=Qa&&Qa.require&&Qa.require("util").types;return W||Up&&Up.binding&&Up.binding("util")}catch{}}(),Hv=Ln&&Ln.isArrayBuffer,Rv=Ln&&Ln.isDate,Pv=Ln&&Ln.isMap,Vv=Ln&&Ln.isRegExp,Kv=Ln&&Ln.isSet,$v=Ln&&Ln.isTypedArray;function bn(W,ue,ae){switch(ae.length){case 0:return W.call(ue);case 1:return W.call(ue,ae[0]);case 2:return W.call(ue,ae[0],ae[1]);case 3:return W.call(ue,ae[0],ae[1],ae[2])}return W.apply(ue,ae)}function wG(W,ue,ae,Le){for(var rt=-1,Et=W==null?0:W.length;++rt<Et;){var fA=W[rt];ue(Le,fA,ae(fA),W)}return Le}function Hn(W,ue){for(var ae=-1,Le=W==null?0:W.length;++ae<Le&&ue(W[ae],ae,W)!==!1;);return W}function yG(W,ue){for(var ae=W==null?0:W.length;ae--&&ue(W[ae],ae,W)!==!1;);return W}function Gv(W,ue){for(var ae=-1,Le=W==null?0:W.length;++ae<Le;)if(!ue(W[ae],ae,W))return!1;return!0}function Li(W,ue){for(var ae=-1,Le=W==null?0:W.length,rt=0,Et=[];++ae<Le;){var fA=W[ae];ue(fA,ae,W)&&(Et[rt++]=fA)}return Et}function mu(W,ue){var ae=W==null?0:W.length;return!!ae&&So(W,ue,0)>-1}function kp(W,ue,ae){for(var Le=-1,rt=W==null?0:W.length;++Le<rt;)if(ae(ue,W[Le]))return!0;return!1}function Kt(W,ue){for(var ae=-1,Le=W==null?0:W.length,rt=Array(Le);++ae<Le;)rt[ae]=ue(W[ae],ae,W);return rt}function Hi(W,ue){for(var ae=-1,Le=ue.length,rt=W.length;++ae<Le;)W[rt+ae]=ue[ae];return W}function _p(W,ue,ae,Le){var rt=-1,Et=W==null?0:W.length;for(Le&&Et&&(ae=W[++rt]);++rt<Et;)ae=ue(ae,W[rt],rt,W);return ae}function CG(W,ue,ae,Le){var rt=W==null?0:W.length;for(Le&&rt&&(ae=W[--rt]);rt--;)ae=ue(ae,W[rt],rt,W);return ae}function Ip(W,ue){for(var ae=-1,Le=W==null?0:W.length;++ae<Le;)if(ue(W[ae],ae,W))return!0;return!1}var bG=Sp("length");function vG(W){return W.split("")}function EG(W){return W.match(T$)||[]}function Wv(W,ue,ae){var Le;return ae(W,function(rt,Et,fA){if(ue(rt,Et,fA))return Le=Et,!1}),Le}function gu(W,ue,ae,Le){for(var rt=W.length,Et=ae+(Le?1:-1);Le?Et--:++Et<rt;)if(ue(W[Et],Et,W))return Et;return-1}function So(W,ue,ae){return ue===ue?OG(W,ue,ae):gu(W,Yv,ae)}function QG(W,ue,ae,Le){for(var rt=ae-1,Et=W.length;++rt<Et;)if(Le(W[rt],ue))return rt;return-1}function Yv(W){return W!==W}function zv(W,ue){var ae=W==null?0:W.length;return ae?xp(W,ue)/ae:me}function Sp(W){return function(ue){return ue==null?A:ue[W]}}function Tp(W){return function(ue){return W==null?A:W[ue]}}function Jv(W,ue,ae,Le,rt){return rt(W,function(Et,fA,Dt){ae=Le?(Le=!1,Et):ue(ae,Et,fA,Dt)}),ae}function FG(W,ue){var ae=W.length;for(W.sort(ue);ae--;)W[ae]=W[ae].value;return W}function xp(W,ue){for(var ae,Le=-1,rt=W.length;++Le<rt;){var Et=ue(W[Le]);Et!==A&&(ae=ae===A?Et:ae+Et)}return ae}function Dp(W,ue){for(var ae=-1,Le=Array(W);++ae<W;)Le[ae]=ue(ae);return Le}function UG(W,ue){return Kt(ue,function(ae){return[ae,W[ae]]})}function Xv(W){return W&&W.slice(0,eE(W)+1).replace(yp,"")}function vn(W){return function(ue){return W(ue)}}function Mp(W,ue){return Kt(ue,function(ae){return W[ae]})}function js(W,ue){return W.has(ue)}function qv(W,ue){for(var ae=-1,Le=W.length;++ae<Le&&So(ue,W[ae],0)>-1;);return ae}function jv(W,ue){for(var ae=W.length;ae--&&So(ue,W[ae],0)>-1;);return ae}function kG(W,ue){for(var ae=W.length,Le=0;ae--;)W[ae]===ue&&++Le;return Le}var _G=Tp(dG),IG=Tp(fG);function SG(W){return"\\"+pG[W]}function TG(W,ue){return W==null?A:W[ue]}function To(W){return sG.test(W)}function xG(W){return lG.test(W)}function DG(W){for(var ue,ae=[];!(ue=W.next()).done;)ae.push(ue.value);return ae}function Op(W){var ue=-1,ae=Array(W.size);return W.forEach(function(Le,rt){ae[++ue]=[rt,Le]}),ae}function Zv(W,ue){return function(ae){return W(ue(ae))}}function Ri(W,ue){for(var ae=-1,Le=W.length,rt=0,Et=[];++ae<Le;){var fA=W[ae];(fA===ue||fA===f)&&(W[ae]=f,Et[rt++]=ae)}return Et}function Bu(W){var ue=-1,ae=Array(W.size);return W.forEach(function(Le){ae[++ue]=Le}),ae}function MG(W){var ue=-1,ae=Array(W.size);return W.forEach(function(Le){ae[++ue]=[Le,Le]}),ae}function OG(W,ue,ae){for(var Le=ae-1,rt=W.length;++Le<rt;)if(W[Le]===ue)return Le;return-1}function NG(W,ue,ae){for(var Le=ae+1;Le--;)if(W[Le]===ue)return Le;return Le}function xo(W){return To(W)?HG(W):bG(W)}function ar(W){return To(W)?RG(W):vG(W)}function eE(W){for(var ue=W.length;ue--&&k$.test(W.charAt(ue)););return ue}var LG=Tp(hG);function HG(W){for(var ue=Qp.lastIndex=0;Qp.test(W);)++ue;return ue}function RG(W){return W.match(Qp)||[]}function PG(W){return W.match(oG)||[]}var VG=function W(ue){ue=ue==null?IA:Do.defaults(IA.Object(),ue,Do.pick(IA,cG));var ae=ue.Array,Le=ue.Date,rt=ue.Error,Et=ue.Function,fA=ue.Math,Dt=ue.Object,Np=ue.RegExp,KG=ue.String,Rn=ue.TypeError,wu=ae.prototype,$G=Et.prototype,Mo=Dt.prototype,yu=ue["__core-js_shared__"],Cu=$G.toString,_t=Mo.hasOwnProperty,GG=0,tE=function(){var l=/[^.]+$/.exec(yu&&yu.keys&&yu.keys.IE_PROTO||"");return l?"Symbol(src)_1."+l:""}(),bu=Mo.toString,WG=Cu.call(Dt),YG=IA._,zG=Np("^"+Cu.call(_t).replace(wp,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),vu=Lv?ue.Buffer:A,Pi=ue.Symbol,Eu=ue.Uint8Array,AE=vu?vu.allocUnsafe:A,Qu=Zv(Dt.getPrototypeOf,Dt),nE=Dt.create,rE=Mo.propertyIsEnumerable,Fu=wu.splice,iE=Pi?Pi.isConcatSpreadable:A,Zs=Pi?Pi.iterator:A,Fa=Pi?Pi.toStringTag:A,Uu=function(){try{var l=Sa(Dt,"defineProperty");return l({},"",{}),l}catch{}}(),JG=ue.clearTimeout!==IA.clearTimeout&&ue.clearTimeout,XG=Le&&Le.now!==IA.Date.now&&Le.now,qG=ue.setTimeout!==IA.setTimeout&&ue.setTimeout,ku=fA.ceil,_u=fA.floor,Lp=Dt.getOwnPropertySymbols,jG=vu?vu.isBuffer:A,aE=ue.isFinite,ZG=wu.join,eW=Zv(Dt.keys,Dt),hA=fA.max,KA=fA.min,tW=Le.now,AW=ue.parseInt,oE=fA.random,nW=wu.reverse,Hp=Sa(ue,"DataView"),el=Sa(ue,"Map"),Rp=Sa(ue,"Promise"),Oo=Sa(ue,"Set"),tl=Sa(ue,"WeakMap"),Al=Sa(Dt,"create"),Iu=tl&&new tl,No={},rW=Ta(Hp),iW=Ta(el),aW=Ta(Rp),oW=Ta(Oo),sW=Ta(tl),Su=Pi?Pi.prototype:A,nl=Su?Su.valueOf:A,sE=Su?Su.toString:A;function _(l){if(Xt(l)&&!at(l)&&!(l instanceof wt)){if(l instanceof Pn)return l;if(_t.call(l,"__wrapped__"))return l1(l)}return new Pn(l)}var Lo=function(){function l(){}return function(u){if(!Wt(u))return{};if(nE)return nE(u);l.prototype=u;var p=new l;return l.prototype=A,p}}();function Tu(){}function Pn(l,u){this.__wrapped__=l,this.__actions__=[],this.__chain__=!!u,this.__index__=0,this.__values__=A}_.templateSettings={escape:VA,evaluate:dA,interpolate:Nn,variable:"",imports:{_}},_.prototype=Tu.prototype,_.prototype.constructor=_,Pn.prototype=Lo(Tu.prototype),Pn.prototype.constructor=Pn;function wt(l){this.__wrapped__=l,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=j,this.__views__=[]}function lW(){var l=new wt(this.__wrapped__);return l.__actions__=dn(this.__actions__),l.__dir__=this.__dir__,l.__filtered__=this.__filtered__,l.__iteratees__=dn(this.__iteratees__),l.__takeCount__=this.__takeCount__,l.__views__=dn(this.__views__),l}function cW(){if(this.__filtered__){var l=new wt(this);l.__dir__=-1,l.__filtered__=!0}else l=this.clone(),l.__dir__*=-1;return l}function uW(){var l=this.__wrapped__.value(),u=this.__dir__,p=at(l),w=u<0,b=p?l.length:0,I=vY(0,b,this.__views__),L=I.start,P=I.end,z=P-L,he=w?P:L-1,pe=this.__iteratees__,be=pe.length,Ie=0,Ve=KA(z,this.__takeCount__);if(!p||!w&&b==z&&Ve==z)return TE(l,this.__actions__);var qe=[];e:for(;z--&&Ie<Ve;){he+=u;for(var ct=-1,je=l[he];++ct<be;){var ht=pe[ct],yt=ht.iteratee,Fn=ht.type,nn=yt(je);if(Fn==X)je=nn;else if(!nn){if(Fn==V)continue e;break e}}qe[Ie++]=je}return qe}wt.prototype=Lo(Tu.prototype),wt.prototype.constructor=wt;function Ua(l){var u=-1,p=l==null?0:l.length;for(this.clear();++u<p;){var w=l[u];this.set(w[0],w[1])}}function dW(){this.__data__=Al?Al(null):{},this.size=0}function fW(l){var u=this.has(l)&&delete this.__data__[l];return this.size-=u?1:0,u}function hW(l){var u=this.__data__;if(Al){var p=u[l];return p===c?A:p}return _t.call(u,l)?u[l]:A}function pW(l){var u=this.__data__;return Al?u[l]!==A:_t.call(u,l)}function mW(l,u){var p=this.__data__;return this.size+=this.has(l)?0:1,p[l]=Al&&u===A?c:u,this}Ua.prototype.clear=dW,Ua.prototype.delete=fW,Ua.prototype.get=hW,Ua.prototype.has=pW,Ua.prototype.set=mW;function zr(l){var u=-1,p=l==null?0:l.length;for(this.clear();++u<p;){var w=l[u];this.set(w[0],w[1])}}function gW(){this.__data__=[],this.size=0}function BW(l){var u=this.__data__,p=xu(u,l);if(p<0)return!1;var w=u.length-1;return p==w?u.pop():Fu.call(u,p,1),--this.size,!0}function wW(l){var u=this.__data__,p=xu(u,l);return p<0?A:u[p][1]}function yW(l){return xu(this.__data__,l)>-1}function CW(l,u){var p=this.__data__,w=xu(p,l);return w<0?(++this.size,p.push([l,u])):p[w][1]=u,this}zr.prototype.clear=gW,zr.prototype.delete=BW,zr.prototype.get=wW,zr.prototype.has=yW,zr.prototype.set=CW;function Jr(l){var u=-1,p=l==null?0:l.length;for(this.clear();++u<p;){var w=l[u];this.set(w[0],w[1])}}function bW(){this.size=0,this.__data__={hash:new Ua,map:new(el||zr),string:new Ua}}function vW(l){var u=Gu(this,l).delete(l);return this.size-=u?1:0,u}function EW(l){return Gu(this,l).get(l)}function QW(l){return Gu(this,l).has(l)}function FW(l,u){var p=Gu(this,l),w=p.size;return p.set(l,u),this.size+=p.size==w?0:1,this}Jr.prototype.clear=bW,Jr.prototype.delete=vW,Jr.prototype.get=EW,Jr.prototype.has=QW,Jr.prototype.set=FW;function ka(l){var u=-1,p=l==null?0:l.length;for(this.__data__=new Jr;++u<p;)this.add(l[u])}function UW(l){return this.__data__.set(l,c),this}function kW(l){return this.__data__.has(l)}ka.prototype.add=ka.prototype.push=UW,ka.prototype.has=kW;function or(l){var u=this.__data__=new zr(l);this.size=u.size}function _W(){this.__data__=new zr,this.size=0}function IW(l){var u=this.__data__,p=u.delete(l);return this.size=u.size,p}function SW(l){return this.__data__.get(l)}function TW(l){return this.__data__.has(l)}function xW(l,u){var p=this.__data__;if(p instanceof zr){var w=p.__data__;if(!el||w.length<r-1)return w.push([l,u]),this.size=++p.size,this;p=this.__data__=new Jr(w)}return p.set(l,u),this.size=p.size,this}or.prototype.clear=_W,or.prototype.delete=IW,or.prototype.get=SW,or.prototype.has=TW,or.prototype.set=xW;function lE(l,u){var p=at(l),w=!p&&xa(l),b=!p&&!w&&Wi(l),I=!p&&!w&&!b&&Vo(l),L=p||w||b||I,P=L?Dp(l.length,KG):[],z=P.length;for(var he in l)(u||_t.call(l,he))&&!(L&&(he=="length"||b&&(he=="offset"||he=="parent")||I&&(he=="buffer"||he=="byteLength"||he=="byteOffset")||Zr(he,z)))&&P.push(he);return P}function cE(l){var u=l.length;return u?l[qp(0,u-1)]:A}function DW(l,u){return Wu(dn(l),_a(u,0,l.length))}function MW(l){return Wu(dn(l))}function Pp(l,u,p){(p!==A&&!sr(l[u],p)||p===A&&!(u in l))&&Xr(l,u,p)}function rl(l,u,p){var w=l[u];(!(_t.call(l,u)&&sr(w,p))||p===A&&!(u in l))&&Xr(l,u,p)}function xu(l,u){for(var p=l.length;p--;)if(sr(l[p][0],u))return p;return-1}function OW(l,u,p,w){return Vi(l,function(b,I,L){u(w,b,p(b),L)}),w}function uE(l,u){return l&&kr(u,EA(u),l)}function NW(l,u){return l&&kr(u,hn(u),l)}function Xr(l,u,p){u=="__proto__"&&Uu?Uu(l,u,{configurable:!0,enumerable:!0,value:p,writable:!0}):l[u]=p}function Vp(l,u){for(var p=-1,w=u.length,b=ae(w),I=l==null;++p<w;)b[p]=I?A:bm(l,u[p]);return b}function _a(l,u,p){return l===l&&(p!==A&&(l=l<=p?l:p),u!==A&&(l=l>=u?l:u)),l}function Vn(l,u,p,w,b,I){var L,P=u&h,z=u&m,he=u&g;if(p&&(L=b?p(l,w,b,I):p(l)),L!==A)return L;if(!Wt(l))return l;var pe=at(l);if(pe){if(L=QY(l),!P)return dn(l,L)}else{var be=$A(l),Ie=be==Ge||be==Be;if(Wi(l))return ME(l,P);if(be==Ce||be==Ae||Ie&&!b){if(L=z||Ie?{}:e1(l),!P)return z?hY(l,NW(L,l)):fY(l,uE(L,l))}else{if(!Ot[be])return b?l:{};L=FY(l,be,P)}}I||(I=new or);var Ve=I.get(l);if(Ve)return Ve;I.set(l,L),_1(l)?l.forEach(function(je){L.add(Vn(je,u,p,je,l,I))}):U1(l)&&l.forEach(function(je,ht){L.set(ht,Vn(je,u,p,ht,l,I))});var qe=he?z?sm:om:z?hn:EA,ct=pe?A:qe(l);return Hn(ct||l,function(je,ht){ct&&(ht=je,je=l[ht]),rl(L,ht,Vn(je,u,p,ht,l,I))}),L}function LW(l){var u=EA(l);return function(p){return dE(p,l,u)}}function dE(l,u,p){var w=p.length;if(l==null)return!w;for(l=Dt(l);w--;){var b=p[w],I=u[b],L=l[b];if(L===A&&!(b in l)||!I(L))return!1}return!0}function fE(l,u,p){if(typeof l!="function")throw new Rn(a);return ul(function(){l.apply(A,p)},u)}function il(l,u,p,w){var b=-1,I=mu,L=!0,P=l.length,z=[],he=u.length;if(!P)return z;p&&(u=Kt(u,vn(p))),w?(I=kp,L=!1):u.length>=r&&(I=js,L=!1,u=new ka(u));e:for(;++b<P;){var pe=l[b],be=p==null?pe:p(pe);if(pe=w||pe!==0?pe:0,L&&be===be){for(var Ie=he;Ie--;)if(u[Ie]===be)continue e;z.push(pe)}else I(u,be,w)||z.push(pe)}return z}var Vi=RE(Ur),hE=RE($p,!0);function HW(l,u){var p=!0;return Vi(l,function(w,b,I){return p=!!u(w,b,I),p}),p}function Du(l,u,p){for(var w=-1,b=l.length;++w<b;){var I=l[w],L=u(I);if(L!=null&&(P===A?L===L&&!Qn(L):p(L,P)))var P=L,z=I}return z}function RW(l,u,p,w){var b=l.length;for(p=ot(p),p<0&&(p=-p>b?0:b+p),w=w===A||w>b?b:ot(w),w<0&&(w+=b),w=p>w?0:S1(w);p<w;)l[p++]=u;return l}function pE(l,u){var p=[];return Vi(l,function(w,b,I){u(w,b,I)&&p.push(w)}),p}function SA(l,u,p,w,b){var I=-1,L=l.length;for(p||(p=kY),b||(b=[]);++I<L;){var P=l[I];u>0&&p(P)?u>1?SA(P,u-1,p,w,b):Hi(b,P):w||(b[b.length]=P)}return b}var Kp=PE(),mE=PE(!0);function Ur(l,u){return l&&Kp(l,u,EA)}function $p(l,u){return l&&mE(l,u,EA)}function Mu(l,u){return Li(u,function(p){return ei(l[p])})}function Ia(l,u){u=$i(u,l);for(var p=0,w=u.length;l!=null&&p<w;)l=l[_r(u[p++])];return p&&p==w?l:A}function gE(l,u,p){var w=u(l);return at(l)?w:Hi(w,p(l))}function tn(l){return l==null?l===A?we:Fe:Fa&&Fa in Dt(l)?bY(l):MY(l)}function Gp(l,u){return l>u}function PW(l,u){return l!=null&&_t.call(l,u)}function VW(l,u){return l!=null&&u in Dt(l)}function KW(l,u,p){return l>=KA(u,p)&&l<hA(u,p)}function Wp(l,u,p){for(var w=p?kp:mu,b=l[0].length,I=l.length,L=I,P=ae(I),z=1/0,he=[];L--;){var pe=l[L];L&&u&&(pe=Kt(pe,vn(u))),z=KA(pe.length,z),P[L]=!p&&(u||b>=120&&pe.length>=120)?new ka(L&&pe):A}pe=l[0];var be=-1,Ie=P[0];e:for(;++be<b&&he.length<z;){var Ve=pe[be],qe=u?u(Ve):Ve;if(Ve=p||Ve!==0?Ve:0,!(Ie?js(Ie,qe):w(he,qe,p))){for(L=I;--L;){var ct=P[L];if(!(ct?js(ct,qe):w(l[L],qe,p)))continue e}Ie&&Ie.push(qe),he.push(Ve)}}return he}function $W(l,u,p,w){return Ur(l,function(b,I,L){u(w,p(b),I,L)}),w}function al(l,u,p){u=$i(u,l),l=r1(l,u);var w=l==null?l:l[_r($n(u))];return w==null?A:bn(w,l,p)}function BE(l){return Xt(l)&&tn(l)==Ae}function GW(l){return Xt(l)&&tn(l)==ne}function WW(l){return Xt(l)&&tn(l)==Ue}function ol(l,u,p,w,b){return l===u?!0:l==null||u==null||!Xt(l)&&!Xt(u)?l!==l&&u!==u:YW(l,u,p,w,ol,b)}function YW(l,u,p,w,b,I){var L=at(l),P=at(u),z=L?se:$A(l),he=P?se:$A(u);z=z==Ae?Ce:z,he=he==Ae?Ce:he;var pe=z==Ce,be=he==Ce,Ie=z==he;if(Ie&&Wi(l)){if(!Wi(u))return!1;L=!0,pe=!1}if(Ie&&!pe)return I||(I=new or),L||Vo(l)?qE(l,u,p,w,b,I):yY(l,u,z,p,w,b,I);if(!(p&B)){var Ve=pe&&_t.call(l,"__wrapped__"),qe=be&&_t.call(u,"__wrapped__");if(Ve||qe){var ct=Ve?l.value():l,je=qe?u.value():u;return I||(I=new or),b(ct,je,p,w,I)}}return Ie?(I||(I=new or),CY(l,u,p,w,b,I)):!1}function zW(l){return Xt(l)&&$A(l)==Y}function Yp(l,u,p,w){var b=p.length,I=b,L=!w;if(l==null)return!I;for(l=Dt(l);b--;){var P=p[b];if(L&&P[2]?P[1]!==l[P[0]]:!(P[0]in l))return!1}for(;++b<I;){P=p[b];var z=P[0],he=l[z],pe=P[1];if(L&&P[2]){if(he===A&&!(z in l))return!1}else{var be=new or;if(w)var Ie=w(he,pe,z,l,u,be);if(!(Ie===A?ol(pe,he,B|y,w,be):Ie))return!1}}return!0}function wE(l){if(!Wt(l)||IY(l))return!1;var u=ei(l)?zG:L$;return u.test(Ta(l))}function JW(l){return Xt(l)&&tn(l)==M}function XW(l){return Xt(l)&&$A(l)==N}function qW(l){return Xt(l)&&ju(l.length)&&!!Rt[tn(l)]}function yE(l){return typeof l=="function"?l:l==null?pn:typeof l=="object"?at(l)?vE(l[0],l[1]):bE(l):V1(l)}function zp(l){if(!cl(l))return eW(l);var u=[];for(var p in Dt(l))_t.call(l,p)&&p!="constructor"&&u.push(p);return u}function jW(l){if(!Wt(l))return DY(l);var u=cl(l),p=[];for(var w in l)w=="constructor"&&(u||!_t.call(l,w))||p.push(w);return p}function Jp(l,u){return l<u}function CE(l,u){var p=-1,w=fn(l)?ae(l.length):[];return Vi(l,function(b,I,L){w[++p]=u(b,I,L)}),w}function bE(l){var u=cm(l);return u.length==1&&u[0][2]?A1(u[0][0],u[0][1]):function(p){return p===l||Yp(p,l,u)}}function vE(l,u){return dm(l)&&t1(u)?A1(_r(l),u):function(p){var w=bm(p,l);return w===A&&w===u?vm(p,l):ol(u,w,B|y)}}function Ou(l,u,p,w,b){l!==u&&Kp(u,function(I,L){if(b||(b=new or),Wt(I))ZW(l,u,L,p,Ou,w,b);else{var P=w?w(hm(l,L),I,L+"",l,u,b):A;P===A&&(P=I),Pp(l,L,P)}},hn)}function ZW(l,u,p,w,b,I,L){var P=hm(l,p),z=hm(u,p),he=L.get(z);if(he){Pp(l,p,he);return}var pe=I?I(P,z,p+"",l,u,L):A,be=pe===A;if(be){var Ie=at(z),Ve=!Ie&&Wi(z),qe=!Ie&&!Ve&&Vo(z);pe=z,Ie||Ve||qe?at(P)?pe=P:nA(P)?pe=dn(P):Ve?(be=!1,pe=ME(z,!0)):qe?(be=!1,pe=OE(z,!0)):pe=[]:dl(z)||xa(z)?(pe=P,xa(P)?pe=T1(P):(!Wt(P)||ei(P))&&(pe=e1(z))):be=!1}be&&(L.set(z,pe),b(pe,z,w,I,L),L.delete(z)),Pp(l,p,pe)}function EE(l,u){var p=l.length;if(p)return u+=u<0?p:0,Zr(u,p)?l[u]:A}function QE(l,u,p){u.length?u=Kt(u,function(I){return at(I)?function(L){return Ia(L,I.length===1?I[0]:I)}:I}):u=[pn];var w=-1;u=Kt(u,vn(Je()));var b=CE(l,function(I,L,P){var z=Kt(u,function(he){return he(I)});return{criteria:z,index:++w,value:I}});return FG(b,function(I,L){return dY(I,L,p)})}function eY(l,u){return FE(l,u,function(p,w){return vm(l,w)})}function FE(l,u,p){for(var w=-1,b=u.length,I={};++w<b;){var L=u[w],P=Ia(l,L);p(P,L)&&sl(I,$i(L,l),P)}return I}function tY(l){return function(u){return Ia(u,l)}}function Xp(l,u,p,w){var b=w?QG:So,I=-1,L=u.length,P=l;for(l===u&&(u=dn(u)),p&&(P=Kt(l,vn(p)));++I<L;)for(var z=0,he=u[I],pe=p?p(he):he;(z=b(P,pe,z,w))>-1;)P!==l&&Fu.call(P,z,1),Fu.call(l,z,1);return l}function UE(l,u){for(var p=l?u.length:0,w=p-1;p--;){var b=u[p];if(p==w||b!==I){var I=b;Zr(b)?Fu.call(l,b,1):em(l,b)}}return l}function qp(l,u){return l+_u(oE()*(u-l+1))}function AY(l,u,p,w){for(var b=-1,I=hA(ku((u-l)/(p||1)),0),L=ae(I);I--;)L[w?I:++b]=l,l+=p;return L}function jp(l,u){var p="";if(!l||u<1||u>te)return p;do u%2&&(p+=l),u=_u(u/2),u&&(l+=l);while(u);return p}function ut(l,u){return pm(n1(l,u,pn),l+"")}function nY(l){return cE(Ko(l))}function rY(l,u){var p=Ko(l);return Wu(p,_a(u,0,p.length))}function sl(l,u,p,w){if(!Wt(l))return l;u=$i(u,l);for(var b=-1,I=u.length,L=I-1,P=l;P!=null&&++b<I;){var z=_r(u[b]),he=p;if(z==="__proto__"||z==="constructor"||z==="prototype")return l;if(b!=L){var pe=P[z];he=w?w(pe,z,P):A,he===A&&(he=Wt(pe)?pe:Zr(u[b+1])?[]:{})}rl(P,z,he),P=P[z]}return l}var kE=Iu?function(l,u){return Iu.set(l,u),l}:pn,iY=Uu?function(l,u){return Uu(l,"toString",{configurable:!0,enumerable:!1,value:Qm(u),writable:!0})}:pn;function aY(l){return Wu(Ko(l))}function Kn(l,u,p){var w=-1,b=l.length;u<0&&(u=-u>b?0:b+u),p=p>b?b:p,p<0&&(p+=b),b=u>p?0:p-u>>>0,u>>>=0;for(var I=ae(b);++w<b;)I[w]=l[w+u];return I}function oY(l,u){var p;return Vi(l,function(w,b,I){return p=u(w,b,I),!p}),!!p}function Nu(l,u,p){var w=0,b=l==null?w:l.length;if(typeof u=="number"&&u===u&&b<=R){for(;w<b;){var I=w+b>>>1,L=l[I];L!==null&&!Qn(L)&&(p?L<=u:L<u)?w=I+1:b=I}return b}return Zp(l,u,pn,p)}function Zp(l,u,p,w){var b=0,I=l==null?0:l.length;if(I===0)return 0;u=p(u);for(var L=u!==u,P=u===null,z=Qn(u),he=u===A;b<I;){var pe=_u((b+I)/2),be=p(l[pe]),Ie=be!==A,Ve=be===null,qe=be===be,ct=Qn(be);if(L)var je=w||qe;else he?je=qe&&(w||Ie):P?je=qe&&Ie&&(w||!Ve):z?je=qe&&Ie&&!Ve&&(w||!ct):Ve||ct?je=!1:je=w?be<=u:be<u;je?b=pe+1:I=pe}return KA(I,Ee)}function _E(l,u){for(var p=-1,w=l.length,b=0,I=[];++p<w;){var L=l[p],P=u?u(L):L;if(!p||!sr(P,z)){var z=P;I[b++]=L===0?0:L}}return I}function IE(l){return typeof l=="number"?l:Qn(l)?me:+l}function En(l){if(typeof l=="string")return l;if(at(l))return Kt(l,En)+"";if(Qn(l))return sE?sE.call(l):"";var u=l+"";return u=="0"&&1/l==-re?"-0":u}function Ki(l,u,p){var w=-1,b=mu,I=l.length,L=!0,P=[],z=P;if(p)L=!1,b=kp;else if(I>=r){var he=u?null:BY(l);if(he)return Bu(he);L=!1,b=js,z=new ka}else z=u?[]:P;e:for(;++w<I;){var pe=l[w],be=u?u(pe):pe;if(pe=p||pe!==0?pe:0,L&&be===be){for(var Ie=z.length;Ie--;)if(z[Ie]===be)continue e;u&&z.push(be),P.push(pe)}else b(z,be,p)||(z!==P&&z.push(be),P.push(pe))}return P}function em(l,u){return u=$i(u,l),l=r1(l,u),l==null||delete l[_r($n(u))]}function SE(l,u,p,w){return sl(l,u,p(Ia(l,u)),w)}function Lu(l,u,p,w){for(var b=l.length,I=w?b:-1;(w?I--:++I<b)&&u(l[I],I,l););return p?Kn(l,w?0:I,w?I+1:b):Kn(l,w?I+1:0,w?b:I)}function TE(l,u){var p=l;return p instanceof wt&&(p=p.value()),_p(u,function(w,b){return b.func.apply(b.thisArg,Hi([w],b.args))},p)}function tm(l,u,p){var w=l.length;if(w<2)return w?Ki(l[0]):[];for(var b=-1,I=ae(w);++b<w;)for(var L=l[b],P=-1;++P<w;)P!=b&&(I[b]=il(I[b]||L,l[P],u,p));return Ki(SA(I,1),u,p)}function xE(l,u,p){for(var w=-1,b=l.length,I=u.length,L={};++w<b;){var P=w<I?u[w]:A;p(L,l[w],P)}return L}function Am(l){return nA(l)?l:[]}function nm(l){return typeof l=="function"?l:pn}function $i(l,u){return at(l)?l:dm(l,u)?[l]:s1(Ft(l))}var sY=ut;function Gi(l,u,p){var w=l.length;return p=p===A?w:p,!u&&p>=w?l:Kn(l,u,p)}var DE=JG||function(l){return IA.clearTimeout(l)};function ME(l,u){if(u)return l.slice();var p=l.length,w=AE?AE(p):new l.constructor(p);return l.copy(w),w}function rm(l){var u=new l.constructor(l.byteLength);return new Eu(u).set(new Eu(l)),u}function lY(l,u){var p=u?rm(l.buffer):l.buffer;return new l.constructor(p,l.byteOffset,l.byteLength)}function cY(l){var u=new l.constructor(l.source,Bv.exec(l));return u.lastIndex=l.lastIndex,u}function uY(l){return nl?Dt(nl.call(l)):{}}function OE(l,u){var p=u?rm(l.buffer):l.buffer;return new l.constructor(p,l.byteOffset,l.length)}function NE(l,u){if(l!==u){var p=l!==A,w=l===null,b=l===l,I=Qn(l),L=u!==A,P=u===null,z=u===u,he=Qn(u);if(!P&&!he&&!I&&l>u||I&&L&&z&&!P&&!he||w&&L&&z||!p&&z||!b)return 1;if(!w&&!I&&!he&&l<u||he&&p&&b&&!w&&!I||P&&p&&b||!L&&b||!z)return-1}return 0}function dY(l,u,p){for(var w=-1,b=l.criteria,I=u.criteria,L=b.length,P=p.length;++w<L;){var z=NE(b[w],I[w]);if(z){if(w>=P)return z;var he=p[w];return z*(he=="desc"?-1:1)}}return l.index-u.index}function LE(l,u,p,w){for(var b=-1,I=l.length,L=p.length,P=-1,z=u.length,he=hA(I-L,0),pe=ae(z+he),be=!w;++P<z;)pe[P]=u[P];for(;++b<L;)(be||b<I)&&(pe[p[b]]=l[b]);for(;he--;)pe[P++]=l[b++];return pe}function HE(l,u,p,w){for(var b=-1,I=l.length,L=-1,P=p.length,z=-1,he=u.length,pe=hA(I-P,0),be=ae(pe+he),Ie=!w;++b<pe;)be[b]=l[b];for(var Ve=b;++z<he;)be[Ve+z]=u[z];for(;++L<P;)(Ie||b<I)&&(be[Ve+p[L]]=l[b++]);return be}function dn(l,u){var p=-1,w=l.length;for(u||(u=ae(w));++p<w;)u[p]=l[p];return u}function kr(l,u,p,w){var b=!p;p||(p={});for(var I=-1,L=u.length;++I<L;){var P=u[I],z=w?w(p[P],l[P],P,p,l):A;z===A&&(z=l[P]),b?Xr(p,P,z):rl(p,P,z)}return p}function fY(l,u){return kr(l,um(l),u)}function hY(l,u){return kr(l,jE(l),u)}function Hu(l,u){return function(p,w){var b=at(p)?wG:OW,I=u?u():{};return b(p,l,Je(w,2),I)}}function Ho(l){return ut(function(u,p){var w=-1,b=p.length,I=b>1?p[b-1]:A,L=b>2?p[2]:A;for(I=l.length>3&&typeof I=="function"?(b--,I):A,L&&An(p[0],p[1],L)&&(I=b<3?A:I,b=1),u=Dt(u);++w<b;){var P=p[w];P&&l(u,P,w,I)}return u})}function RE(l,u){return function(p,w){if(p==null)return p;if(!fn(p))return l(p,w);for(var b=p.length,I=u?b:-1,L=Dt(p);(u?I--:++I<b)&&w(L[I],I,L)!==!1;);return p}}function PE(l){return function(u,p,w){for(var b=-1,I=Dt(u),L=w(u),P=L.length;P--;){var z=L[l?P:++b];if(p(I[z],z,I)===!1)break}return u}}function pY(l,u,p){var w=u&v,b=ll(l);function I(){var L=this&&this!==IA&&this instanceof I?b:l;return L.apply(w?p:this,arguments)}return I}function VE(l){return function(u){u=Ft(u);var p=To(u)?ar(u):A,w=p?p[0]:u.charAt(0),b=p?Gi(p,1).join(""):u.slice(1);return w[l]()+b}}function Ro(l){return function(u){return _p(R1(H1(u).replace(iG,"")),l,"")}}function ll(l){return function(){var u=arguments;switch(u.length){case 0:return new l;case 1:return new l(u[0]);case 2:return new l(u[0],u[1]);case 3:return new l(u[0],u[1],u[2]);case 4:return new l(u[0],u[1],u[2],u[3]);case 5:return new l(u[0],u[1],u[2],u[3],u[4]);case 6:return new l(u[0],u[1],u[2],u[3],u[4],u[5]);case 7:return new l(u[0],u[1],u[2],u[3],u[4],u[5],u[6])}var p=Lo(l.prototype),w=l.apply(p,u);return Wt(w)?w:p}}function mY(l,u,p){var w=ll(l);function b(){for(var I=arguments.length,L=ae(I),P=I,z=Po(b);P--;)L[P]=arguments[P];var he=I<3&&L[0]!==z&&L[I-1]!==z?[]:Ri(L,z);if(I-=he.length,I<p)return YE(l,u,Ru,b.placeholder,A,L,he,A,A,p-I);var pe=this&&this!==IA&&this instanceof b?w:l;return bn(pe,this,L)}return b}function KE(l){return function(u,p,w){var b=Dt(u);if(!fn(u)){var I=Je(p,3);u=EA(u),p=function(P){return I(b[P],P,b)}}var L=l(u,p,w);return L>-1?b[I?u[L]:L]:A}}function $E(l){return jr(function(u){var p=u.length,w=p,b=Pn.prototype.thru;for(l&&u.reverse();w--;){var I=u[w];if(typeof I!="function")throw new Rn(a);if(b&&!L&&$u(I)=="wrapper")var L=new Pn([],!0)}for(w=L?w:p;++w<p;){I=u[w];var P=$u(I),z=P=="wrapper"?lm(I):A;z&&fm(z[0])&&z[1]==(x|F|D|O)&&!z[4].length&&z[9]==1?L=L[$u(z[0])].apply(L,z[3]):L=I.length==1&&fm(I)?L[P]():L.thru(I)}return function(){var he=arguments,pe=he[0];if(L&&he.length==1&&at(pe))return L.plant(pe).value();for(var be=0,Ie=p?u[be].apply(this,he):pe;++be<p;)Ie=u[be].call(this,Ie);return Ie}})}function Ru(l,u,p,w,b,I,L,P,z,he){var pe=u&x,be=u&v,Ie=u&Q,Ve=u&(F|C),qe=u&S,ct=Ie?A:ll(l);function je(){for(var ht=arguments.length,yt=ae(ht),Fn=ht;Fn--;)yt[Fn]=arguments[Fn];if(Ve)var nn=Po(je),Un=kG(yt,nn);if(w&&(yt=LE(yt,w,b,Ve)),I&&(yt=HE(yt,I,L,Ve)),ht-=Un,Ve&&ht<he){var rA=Ri(yt,nn);return YE(l,u,Ru,je.placeholder,p,yt,rA,P,z,he-ht)}var lr=be?p:this,Ai=Ie?lr[l]:l;return ht=yt.length,P?yt=OY(yt,P):qe&&ht>1&&yt.reverse(),pe&&z<ht&&(yt.length=z),this&&this!==IA&&this instanceof je&&(Ai=ct||ll(Ai)),Ai.apply(lr,yt)}return je}function GE(l,u){return function(p,w){return $W(p,l,u(w),{})}}function Pu(l,u){return function(p,w){var b;if(p===A&&w===A)return u;if(p!==A&&(b=p),w!==A){if(b===A)return w;typeof p=="string"||typeof w=="string"?(p=En(p),w=En(w)):(p=IE(p),w=IE(w)),b=l(p,w)}return b}}function im(l){return jr(function(u){return u=Kt(u,vn(Je())),ut(function(p){var w=this;return l(u,function(b){return bn(b,w,p)})})})}function Vu(l,u){u=u===A?" ":En(u);var p=u.length;if(p<2)return p?jp(u,l):u;var w=jp(u,ku(l/xo(u)));return To(u)?Gi(ar(w),0,l).join(""):w.slice(0,l)}function gY(l,u,p,w){var b=u&v,I=ll(l);function L(){for(var P=-1,z=arguments.length,he=-1,pe=w.length,be=ae(pe+z),Ie=this&&this!==IA&&this instanceof L?I:l;++he<pe;)be[he]=w[he];for(;z--;)be[he++]=arguments[++P];return bn(Ie,b?p:this,be)}return L}function WE(l){return function(u,p,w){return w&&typeof w!="number"&&An(u,p,w)&&(p=w=A),u=ti(u),p===A?(p=u,u=0):p=ti(p),w=w===A?u<p?1:-1:ti(w),AY(u,p,w,l)}}function Ku(l){return function(u,p){return typeof u=="string"&&typeof p=="string"||(u=Gn(u),p=Gn(p)),l(u,p)}}function YE(l,u,p,w,b,I,L,P,z,he){var pe=u&F,be=pe?L:A,Ie=pe?A:L,Ve=pe?I:A,qe=pe?A:I;u|=pe?D:E,u&=~(pe?E:D),u&k||(u&=~(v|Q));var ct=[l,u,b,Ve,be,qe,Ie,P,z,he],je=p.apply(A,ct);return fm(l)&&i1(je,ct),je.placeholder=w,a1(je,l,u)}function am(l){var u=fA[l];return function(p,w){if(p=Gn(p),w=w==null?0:KA(ot(w),292),w&&aE(p)){var b=(Ft(p)+"e").split("e"),I=u(b[0]+"e"+(+b[1]+w));return b=(Ft(I)+"e").split("e"),+(b[0]+"e"+(+b[1]-w))}return u(p)}}var BY=Oo&&1/Bu(new Oo([,-0]))[1]==re?function(l){return new Oo(l)}:km;function zE(l){return function(u){var p=$A(u);return p==Y?Op(u):p==N?MG(u):UG(u,l(u))}}function qr(l,u,p,w,b,I,L,P){var z=u&Q;if(!z&&typeof l!="function")throw new Rn(a);var he=w?w.length:0;if(he||(u&=~(D|E),w=b=A),L=L===A?L:hA(ot(L),0),P=P===A?P:ot(P),he-=b?b.length:0,u&E){var pe=w,be=b;w=b=A}var Ie=z?A:lm(l),Ve=[l,u,p,w,b,pe,be,I,L,P];if(Ie&&xY(Ve,Ie),l=Ve[0],u=Ve[1],p=Ve[2],w=Ve[3],b=Ve[4],P=Ve[9]=Ve[9]===A?z?0:l.length:hA(Ve[9]-he,0),!P&&u&(F|C)&&(u&=~(F|C)),!u||u==v)var qe=pY(l,u,p);else u==F||u==C?qe=mY(l,u,P):(u==D||u==(v|D))&&!b.length?qe=gY(l,u,p,w):qe=Ru.apply(A,Ve);var ct=Ie?kE:i1;return a1(ct(qe,Ve),l,u)}function JE(l,u,p,w){return l===A||sr(l,Mo[p])&&!_t.call(w,p)?u:l}function XE(l,u,p,w,b,I){return Wt(l)&&Wt(u)&&(I.set(u,l),Ou(l,u,A,XE,I),I.delete(u)),l}function wY(l){return dl(l)?A:l}function qE(l,u,p,w,b,I){var L=p&B,P=l.length,z=u.length;if(P!=z&&!(L&&z>P))return!1;var he=I.get(l),pe=I.get(u);if(he&&pe)return he==u&&pe==l;var be=-1,Ie=!0,Ve=p&y?new ka:A;for(I.set(l,u),I.set(u,l);++be<P;){var qe=l[be],ct=u[be];if(w)var je=L?w(ct,qe,be,u,l,I):w(qe,ct,be,l,u,I);if(je!==A){if(je)continue;Ie=!1;break}if(Ve){if(!Ip(u,function(ht,yt){if(!js(Ve,yt)&&(qe===ht||b(qe,ht,p,w,I)))return Ve.push(yt)})){Ie=!1;break}}else if(!(qe===ct||b(qe,ct,p,w,I))){Ie=!1;break}}return I.delete(l),I.delete(u),Ie}function yY(l,u,p,w,b,I,L){switch(p){case ee:if(l.byteLength!=u.byteLength||l.byteOffset!=u.byteOffset)return!1;l=l.buffer,u=u.buffer;case ne:return!(l.byteLength!=u.byteLength||!I(new Eu(l),new Eu(u)));case Z:case Ue:case T:return sr(+l,+u);case ie:return l.name==u.name&&l.message==u.message;case M:case le:return l==u+"";case Y:var P=Op;case N:var z=w&B;if(P||(P=Bu),l.size!=u.size&&!z)return!1;var he=L.get(l);if(he)return he==u;w|=y,L.set(l,u);var pe=qE(P(l),P(u),w,b,I,L);return L.delete(l),pe;case H:if(nl)return nl.call(l)==nl.call(u)}return!1}function CY(l,u,p,w,b,I){var L=p&B,P=om(l),z=P.length,he=om(u),pe=he.length;if(z!=pe&&!L)return!1;for(var be=z;be--;){var Ie=P[be];if(!(L?Ie in u:_t.call(u,Ie)))return!1}var Ve=I.get(l),qe=I.get(u);if(Ve&&qe)return Ve==u&&qe==l;var ct=!0;I.set(l,u),I.set(u,l);for(var je=L;++be<z;){Ie=P[be];var ht=l[Ie],yt=u[Ie];if(w)var Fn=L?w(yt,ht,Ie,u,l,I):w(ht,yt,Ie,l,u,I);if(!(Fn===A?ht===yt||b(ht,yt,p,w,I):Fn)){ct=!1;break}je||(je=Ie=="constructor")}if(ct&&!je){var nn=l.constructor,Un=u.constructor;nn!=Un&&"constructor"in l&&"constructor"in u&&!(typeof nn=="function"&&nn instanceof nn&&typeof Un=="function"&&Un instanceof Un)&&(ct=!1)}return I.delete(l),I.delete(u),ct}function jr(l){return pm(n1(l,A,d1),l+"")}function om(l){return gE(l,EA,um)}function sm(l){return gE(l,hn,jE)}var lm=Iu?function(l){return Iu.get(l)}:km;function $u(l){for(var u=l.name+"",p=No[u],w=_t.call(No,u)?p.length:0;w--;){var b=p[w],I=b.func;if(I==null||I==l)return b.name}return u}function Po(l){var u=_t.call(_,"placeholder")?_:l;return u.placeholder}function Je(){var l=_.iteratee||Fm;return l=l===Fm?yE:l,arguments.length?l(arguments[0],arguments[1]):l}function Gu(l,u){var p=l.__data__;return _Y(u)?p[typeof u=="string"?"string":"hash"]:p.map}function cm(l){for(var u=EA(l),p=u.length;p--;){var w=u[p],b=l[w];u[p]=[w,b,t1(b)]}return u}function Sa(l,u){var p=TG(l,u);return wE(p)?p:A}function bY(l){var u=_t.call(l,Fa),p=l[Fa];try{l[Fa]=A;var w=!0}catch{}var b=bu.call(l);return w&&(u?l[Fa]=p:delete l[Fa]),b}var um=Lp?function(l){return l==null?[]:(l=Dt(l),Li(Lp(l),function(u){return rE.call(l,u)}))}:_m,jE=Lp?function(l){for(var u=[];l;)Hi(u,um(l)),l=Qu(l);return u}:_m,$A=tn;(Hp&&$A(new Hp(new ArrayBuffer(1)))!=ee||el&&$A(new el)!=Y||Rp&&$A(Rp.resolve())!=ke||Oo&&$A(new Oo)!=N||tl&&$A(new tl)!=Me)&&($A=function(l){var u=tn(l),p=u==Ce?l.constructor:A,w=p?Ta(p):"";if(w)switch(w){case rW:return ee;case iW:return Y;case aW:return ke;case oW:return N;case sW:return Me}return u});function vY(l,u,p){for(var w=-1,b=p.length;++w<b;){var I=p[w],L=I.size;switch(I.type){case"drop":l+=L;break;case"dropRight":u-=L;break;case"take":u=KA(u,l+L);break;case"takeRight":l=hA(l,u-L);break}}return{start:l,end:u}}function EY(l){var u=l.match(I$);return u?u[1].split(S$):[]}function ZE(l,u,p){u=$i(u,l);for(var w=-1,b=u.length,I=!1;++w<b;){var L=_r(u[w]);if(!(I=l!=null&&p(l,L)))break;l=l[L]}return I||++w!=b?I:(b=l==null?0:l.length,!!b&&ju(b)&&Zr(L,b)&&(at(l)||xa(l)))}function QY(l){var u=l.length,p=new l.constructor(u);return u&&typeof l[0]=="string"&&_t.call(l,"index")&&(p.index=l.index,p.input=l.input),p}function e1(l){return typeof l.constructor=="function"&&!cl(l)?Lo(Qu(l)):{}}function FY(l,u,p){var w=l.constructor;switch(u){case ne:return rm(l);case Z:case Ue:return new w(+l);case ee:return lY(l,p);case $e:case dt:case vA:case en:case PA:case oe:case xe:case Ke:case ft:return OE(l,p);case Y:return new w;case T:case le:return new w(l);case M:return cY(l);case N:return new w;case H:return uY(l)}}function UY(l,u){var p=u.length;if(!p)return l;var w=p-1;return u[w]=(p>1?"& ":"")+u[w],u=u.join(p>2?", ":" "),l.replace(_$,`{
147
+ /* [wrapped with `+u+`] */
148
+ `)}function kY(l){return at(l)||xa(l)||!!(iE&&l&&l[iE])}function Zr(l,u){var p=typeof l;return u=u??te,!!u&&(p=="number"||p!="symbol"&&R$.test(l))&&l>-1&&l%1==0&&l<u}function An(l,u,p){if(!Wt(p))return!1;var w=typeof u;return(w=="number"?fn(p)&&Zr(u,p.length):w=="string"&&u in p)?sr(p[u],l):!1}function dm(l,u){if(at(l))return!1;var p=typeof l;return p=="number"||p=="symbol"||p=="boolean"||l==null||Qn(l)?!0:Fr.test(l)||!un.test(l)||u!=null&&l in Dt(u)}function _Y(l){var u=typeof l;return u=="string"||u=="number"||u=="symbol"||u=="boolean"?l!=="__proto__":l===null}function fm(l){var u=$u(l),p=_[u];if(typeof p!="function"||!(u in wt.prototype))return!1;if(l===p)return!0;var w=lm(p);return!!w&&l===w[0]}function IY(l){return!!tE&&tE in l}var SY=yu?ei:Im;function cl(l){var u=l&&l.constructor,p=typeof u=="function"&&u.prototype||Mo;return l===p}function t1(l){return l===l&&!Wt(l)}function A1(l,u){return function(p){return p==null?!1:p[l]===u&&(u!==A||l in Dt(p))}}function TY(l){var u=Xu(l,function(w){return p.size===d&&p.clear(),w}),p=u.cache;return u}function xY(l,u){var p=l[1],w=u[1],b=p|w,I=b<(v|Q|x),L=w==x&&p==F||w==x&&p==O&&l[7].length<=u[8]||w==(x|O)&&u[7].length<=u[8]&&p==F;if(!(I||L))return l;w&v&&(l[2]=u[2],b|=p&v?0:k);var P=u[3];if(P){var z=l[3];l[3]=z?LE(z,P,u[4]):P,l[4]=z?Ri(l[3],f):u[4]}return P=u[5],P&&(z=l[5],l[5]=z?HE(z,P,u[6]):P,l[6]=z?Ri(l[5],f):u[6]),P=u[7],P&&(l[7]=P),w&x&&(l[8]=l[8]==null?u[8]:KA(l[8],u[8])),l[9]==null&&(l[9]=u[9]),l[0]=u[0],l[1]=b,l}function DY(l){var u=[];if(l!=null)for(var p in Dt(l))u.push(p);return u}function MY(l){return bu.call(l)}function n1(l,u,p){return u=hA(u===A?l.length-1:u,0),function(){for(var w=arguments,b=-1,I=hA(w.length-u,0),L=ae(I);++b<I;)L[b]=w[u+b];b=-1;for(var P=ae(u+1);++b<u;)P[b]=w[b];return P[u]=p(L),bn(l,this,P)}}function r1(l,u){return u.length<2?l:Ia(l,Kn(u,0,-1))}function OY(l,u){for(var p=l.length,w=KA(u.length,p),b=dn(l);w--;){var I=u[w];l[w]=Zr(I,p)?b[I]:A}return l}function hm(l,u){if(!(u==="constructor"&&typeof l[u]=="function")&&u!="__proto__")return l[u]}var i1=o1(kE),ul=qG||function(l,u){return IA.setTimeout(l,u)},pm=o1(iY);function a1(l,u,p){var w=u+"";return pm(l,UY(w,NY(EY(w),p)))}function o1(l){var u=0,p=0;return function(){var w=tW(),b=ge-(w-p);if(p=w,b>0){if(++u>=ce)return arguments[0]}else u=0;return l.apply(A,arguments)}}function Wu(l,u){var p=-1,w=l.length,b=w-1;for(u=u===A?w:u;++p<u;){var I=qp(p,b),L=l[I];l[I]=l[p],l[p]=L}return l.length=u,l}var s1=TY(function(l){var u=[];return l.charCodeAt(0)===46&&u.push(""),l.replace(Bp,function(p,w,b,I){u.push(b?I.replace(D$,"$1"):w||p)}),u});function _r(l){if(typeof l=="string"||Qn(l))return l;var u=l+"";return u=="0"&&1/l==-re?"-0":u}function Ta(l){if(l!=null){try{return Cu.call(l)}catch{}try{return l+""}catch{}}return""}function NY(l,u){return Hn(J,function(p){var w="_."+p[0];u&p[1]&&!mu(l,w)&&l.push(w)}),l.sort()}function l1(l){if(l instanceof wt)return l.clone();var u=new Pn(l.__wrapped__,l.__chain__);return u.__actions__=dn(l.__actions__),u.__index__=l.__index__,u.__values__=l.__values__,u}function LY(l,u,p){(p?An(l,u,p):u===A)?u=1:u=hA(ot(u),0);var w=l==null?0:l.length;if(!w||u<1)return[];for(var b=0,I=0,L=ae(ku(w/u));b<w;)L[I++]=Kn(l,b,b+=u);return L}function HY(l){for(var u=-1,p=l==null?0:l.length,w=0,b=[];++u<p;){var I=l[u];I&&(b[w++]=I)}return b}function RY(){var l=arguments.length;if(!l)return[];for(var u=ae(l-1),p=arguments[0],w=l;w--;)u[w-1]=arguments[w];return Hi(at(p)?dn(p):[p],SA(u,1))}var PY=ut(function(l,u){return nA(l)?il(l,SA(u,1,nA,!0)):[]}),VY=ut(function(l,u){var p=$n(u);return nA(p)&&(p=A),nA(l)?il(l,SA(u,1,nA,!0),Je(p,2)):[]}),KY=ut(function(l,u){var p=$n(u);return nA(p)&&(p=A),nA(l)?il(l,SA(u,1,nA,!0),A,p):[]});function $Y(l,u,p){var w=l==null?0:l.length;return w?(u=p||u===A?1:ot(u),Kn(l,u<0?0:u,w)):[]}function GY(l,u,p){var w=l==null?0:l.length;return w?(u=p||u===A?1:ot(u),u=w-u,Kn(l,0,u<0?0:u)):[]}function WY(l,u){return l&&l.length?Lu(l,Je(u,3),!0,!0):[]}function YY(l,u){return l&&l.length?Lu(l,Je(u,3),!0):[]}function zY(l,u,p,w){var b=l==null?0:l.length;return b?(p&&typeof p!="number"&&An(l,u,p)&&(p=0,w=b),RW(l,u,p,w)):[]}function c1(l,u,p){var w=l==null?0:l.length;if(!w)return-1;var b=p==null?0:ot(p);return b<0&&(b=hA(w+b,0)),gu(l,Je(u,3),b)}function u1(l,u,p){var w=l==null?0:l.length;if(!w)return-1;var b=w-1;return p!==A&&(b=ot(p),b=p<0?hA(w+b,0):KA(b,w-1)),gu(l,Je(u,3),b,!0)}function d1(l){var u=l==null?0:l.length;return u?SA(l,1):[]}function JY(l){var u=l==null?0:l.length;return u?SA(l,re):[]}function XY(l,u){var p=l==null?0:l.length;return p?(u=u===A?1:ot(u),SA(l,u)):[]}function qY(l){for(var u=-1,p=l==null?0:l.length,w={};++u<p;){var b=l[u];w[b[0]]=b[1]}return w}function f1(l){return l&&l.length?l[0]:A}function jY(l,u,p){var w=l==null?0:l.length;if(!w)return-1;var b=p==null?0:ot(p);return b<0&&(b=hA(w+b,0)),So(l,u,b)}function ZY(l){var u=l==null?0:l.length;return u?Kn(l,0,-1):[]}var e8=ut(function(l){var u=Kt(l,Am);return u.length&&u[0]===l[0]?Wp(u):[]}),t8=ut(function(l){var u=$n(l),p=Kt(l,Am);return u===$n(p)?u=A:p.pop(),p.length&&p[0]===l[0]?Wp(p,Je(u,2)):[]}),A8=ut(function(l){var u=$n(l),p=Kt(l,Am);return u=typeof u=="function"?u:A,u&&p.pop(),p.length&&p[0]===l[0]?Wp(p,A,u):[]});function n8(l,u){return l==null?"":ZG.call(l,u)}function $n(l){var u=l==null?0:l.length;return u?l[u-1]:A}function r8(l,u,p){var w=l==null?0:l.length;if(!w)return-1;var b=w;return p!==A&&(b=ot(p),b=b<0?hA(w+b,0):KA(b,w-1)),u===u?NG(l,u,b):gu(l,Yv,b,!0)}function i8(l,u){return l&&l.length?EE(l,ot(u)):A}var a8=ut(h1);function h1(l,u){return l&&l.length&&u&&u.length?Xp(l,u):l}function o8(l,u,p){return l&&l.length&&u&&u.length?Xp(l,u,Je(p,2)):l}function s8(l,u,p){return l&&l.length&&u&&u.length?Xp(l,u,A,p):l}var l8=jr(function(l,u){var p=l==null?0:l.length,w=Vp(l,u);return UE(l,Kt(u,function(b){return Zr(b,p)?+b:b}).sort(NE)),w});function c8(l,u){var p=[];if(!(l&&l.length))return p;var w=-1,b=[],I=l.length;for(u=Je(u,3);++w<I;){var L=l[w];u(L,w,l)&&(p.push(L),b.push(w))}return UE(l,b),p}function mm(l){return l==null?l:nW.call(l)}function u8(l,u,p){var w=l==null?0:l.length;return w?(p&&typeof p!="number"&&An(l,u,p)?(u=0,p=w):(u=u==null?0:ot(u),p=p===A?w:ot(p)),Kn(l,u,p)):[]}function d8(l,u){return Nu(l,u)}function f8(l,u,p){return Zp(l,u,Je(p,2))}function h8(l,u){var p=l==null?0:l.length;if(p){var w=Nu(l,u);if(w<p&&sr(l[w],u))return w}return-1}function p8(l,u){return Nu(l,u,!0)}function m8(l,u,p){return Zp(l,u,Je(p,2),!0)}function g8(l,u){var p=l==null?0:l.length;if(p){var w=Nu(l,u,!0)-1;if(sr(l[w],u))return w}return-1}function B8(l){return l&&l.length?_E(l):[]}function w8(l,u){return l&&l.length?_E(l,Je(u,2)):[]}function y8(l){var u=l==null?0:l.length;return u?Kn(l,1,u):[]}function C8(l,u,p){return l&&l.length?(u=p||u===A?1:ot(u),Kn(l,0,u<0?0:u)):[]}function b8(l,u,p){var w=l==null?0:l.length;return w?(u=p||u===A?1:ot(u),u=w-u,Kn(l,u<0?0:u,w)):[]}function v8(l,u){return l&&l.length?Lu(l,Je(u,3),!1,!0):[]}function E8(l,u){return l&&l.length?Lu(l,Je(u,3)):[]}var Q8=ut(function(l){return Ki(SA(l,1,nA,!0))}),F8=ut(function(l){var u=$n(l);return nA(u)&&(u=A),Ki(SA(l,1,nA,!0),Je(u,2))}),U8=ut(function(l){var u=$n(l);return u=typeof u=="function"?u:A,Ki(SA(l,1,nA,!0),A,u)});function k8(l){return l&&l.length?Ki(l):[]}function _8(l,u){return l&&l.length?Ki(l,Je(u,2)):[]}function I8(l,u){return u=typeof u=="function"?u:A,l&&l.length?Ki(l,A,u):[]}function gm(l){if(!(l&&l.length))return[];var u=0;return l=Li(l,function(p){if(nA(p))return u=hA(p.length,u),!0}),Dp(u,function(p){return Kt(l,Sp(p))})}function p1(l,u){if(!(l&&l.length))return[];var p=gm(l);return u==null?p:Kt(p,function(w){return bn(u,A,w)})}var S8=ut(function(l,u){return nA(l)?il(l,u):[]}),T8=ut(function(l){return tm(Li(l,nA))}),x8=ut(function(l){var u=$n(l);return nA(u)&&(u=A),tm(Li(l,nA),Je(u,2))}),D8=ut(function(l){var u=$n(l);return u=typeof u=="function"?u:A,tm(Li(l,nA),A,u)}),M8=ut(gm);function O8(l,u){return xE(l||[],u||[],rl)}function N8(l,u){return xE(l||[],u||[],sl)}var L8=ut(function(l){var u=l.length,p=u>1?l[u-1]:A;return p=typeof p=="function"?(l.pop(),p):A,p1(l,p)});function m1(l){var u=_(l);return u.__chain__=!0,u}function H8(l,u){return u(l),l}function Yu(l,u){return u(l)}var R8=jr(function(l){var u=l.length,p=u?l[0]:0,w=this.__wrapped__,b=function(I){return Vp(I,l)};return u>1||this.__actions__.length||!(w instanceof wt)||!Zr(p)?this.thru(b):(w=w.slice(p,+p+(u?1:0)),w.__actions__.push({func:Yu,args:[b],thisArg:A}),new Pn(w,this.__chain__).thru(function(I){return u&&!I.length&&I.push(A),I}))});function P8(){return m1(this)}function V8(){return new Pn(this.value(),this.__chain__)}function K8(){this.__values__===A&&(this.__values__=I1(this.value()));var l=this.__index__>=this.__values__.length,u=l?A:this.__values__[this.__index__++];return{done:l,value:u}}function $8(){return this}function G8(l){for(var u,p=this;p instanceof Tu;){var w=l1(p);w.__index__=0,w.__values__=A,u?b.__wrapped__=w:u=w;var b=w;p=p.__wrapped__}return b.__wrapped__=l,u}function W8(){var l=this.__wrapped__;if(l instanceof wt){var u=l;return this.__actions__.length&&(u=new wt(this)),u=u.reverse(),u.__actions__.push({func:Yu,args:[mm],thisArg:A}),new Pn(u,this.__chain__)}return this.thru(mm)}function Y8(){return TE(this.__wrapped__,this.__actions__)}var z8=Hu(function(l,u,p){_t.call(l,p)?++l[p]:Xr(l,p,1)});function J8(l,u,p){var w=at(l)?Gv:HW;return p&&An(l,u,p)&&(u=A),w(l,Je(u,3))}function X8(l,u){var p=at(l)?Li:pE;return p(l,Je(u,3))}var q8=KE(c1),j8=KE(u1);function Z8(l,u){return SA(zu(l,u),1)}function e5(l,u){return SA(zu(l,u),re)}function t5(l,u,p){return p=p===A?1:ot(p),SA(zu(l,u),p)}function g1(l,u){var p=at(l)?Hn:Vi;return p(l,Je(u,3))}function B1(l,u){var p=at(l)?yG:hE;return p(l,Je(u,3))}var A5=Hu(function(l,u,p){_t.call(l,p)?l[p].push(u):Xr(l,p,[u])});function n5(l,u,p,w){l=fn(l)?l:Ko(l),p=p&&!w?ot(p):0;var b=l.length;return p<0&&(p=hA(b+p,0)),Zu(l)?p<=b&&l.indexOf(u,p)>-1:!!b&&So(l,u,p)>-1}var r5=ut(function(l,u,p){var w=-1,b=typeof u=="function",I=fn(l)?ae(l.length):[];return Vi(l,function(L){I[++w]=b?bn(u,L,p):al(L,u,p)}),I}),i5=Hu(function(l,u,p){Xr(l,p,u)});function zu(l,u){var p=at(l)?Kt:CE;return p(l,Je(u,3))}function a5(l,u,p,w){return l==null?[]:(at(u)||(u=u==null?[]:[u]),p=w?A:p,at(p)||(p=p==null?[]:[p]),QE(l,u,p))}var o5=Hu(function(l,u,p){l[p?0:1].push(u)},function(){return[[],[]]});function s5(l,u,p){var w=at(l)?_p:Jv,b=arguments.length<3;return w(l,Je(u,4),p,b,Vi)}function l5(l,u,p){var w=at(l)?CG:Jv,b=arguments.length<3;return w(l,Je(u,4),p,b,hE)}function c5(l,u){var p=at(l)?Li:pE;return p(l,qu(Je(u,3)))}function u5(l){var u=at(l)?cE:nY;return u(l)}function d5(l,u,p){(p?An(l,u,p):u===A)?u=1:u=ot(u);var w=at(l)?DW:rY;return w(l,u)}function f5(l){var u=at(l)?MW:aY;return u(l)}function h5(l){if(l==null)return 0;if(fn(l))return Zu(l)?xo(l):l.length;var u=$A(l);return u==Y||u==N?l.size:zp(l).length}function p5(l,u,p){var w=at(l)?Ip:oY;return p&&An(l,u,p)&&(u=A),w(l,Je(u,3))}var m5=ut(function(l,u){if(l==null)return[];var p=u.length;return p>1&&An(l,u[0],u[1])?u=[]:p>2&&An(u[0],u[1],u[2])&&(u=[u[0]]),QE(l,SA(u,1),[])}),Ju=XG||function(){return IA.Date.now()};function g5(l,u){if(typeof u!="function")throw new Rn(a);return l=ot(l),function(){if(--l<1)return u.apply(this,arguments)}}function w1(l,u,p){return u=p?A:u,u=l&&u==null?l.length:u,qr(l,x,A,A,A,A,u)}function y1(l,u){var p;if(typeof u!="function")throw new Rn(a);return l=ot(l),function(){return--l>0&&(p=u.apply(this,arguments)),l<=1&&(u=A),p}}var Bm=ut(function(l,u,p){var w=v;if(p.length){var b=Ri(p,Po(Bm));w|=D}return qr(l,w,u,p,b)}),C1=ut(function(l,u,p){var w=v|Q;if(p.length){var b=Ri(p,Po(C1));w|=D}return qr(u,w,l,p,b)});function b1(l,u,p){u=p?A:u;var w=qr(l,F,A,A,A,A,A,u);return w.placeholder=b1.placeholder,w}function v1(l,u,p){u=p?A:u;var w=qr(l,C,A,A,A,A,A,u);return w.placeholder=v1.placeholder,w}function E1(l,u,p){var w,b,I,L,P,z,he=0,pe=!1,be=!1,Ie=!0;if(typeof l!="function")throw new Rn(a);u=Gn(u)||0,Wt(p)&&(pe=!!p.leading,be="maxWait"in p,I=be?hA(Gn(p.maxWait)||0,u):I,Ie="trailing"in p?!!p.trailing:Ie);function Ve(rA){var lr=w,Ai=b;return w=b=A,he=rA,L=l.apply(Ai,lr),L}function qe(rA){return he=rA,P=ul(ht,u),pe?Ve(rA):L}function ct(rA){var lr=rA-z,Ai=rA-he,K1=u-lr;return be?KA(K1,I-Ai):K1}function je(rA){var lr=rA-z,Ai=rA-he;return z===A||lr>=u||lr<0||be&&Ai>=I}function ht(){var rA=Ju();if(je(rA))return yt(rA);P=ul(ht,ct(rA))}function yt(rA){return P=A,Ie&&w?Ve(rA):(w=b=A,L)}function Fn(){P!==A&&DE(P),he=0,w=z=b=P=A}function nn(){return P===A?L:yt(Ju())}function Un(){var rA=Ju(),lr=je(rA);if(w=arguments,b=this,z=rA,lr){if(P===A)return qe(z);if(be)return DE(P),P=ul(ht,u),Ve(z)}return P===A&&(P=ul(ht,u)),L}return Un.cancel=Fn,Un.flush=nn,Un}var B5=ut(function(l,u){return fE(l,1,u)}),w5=ut(function(l,u,p){return fE(l,Gn(u)||0,p)});function y5(l){return qr(l,S)}function Xu(l,u){if(typeof l!="function"||u!=null&&typeof u!="function")throw new Rn(a);var p=function(){var w=arguments,b=u?u.apply(this,w):w[0],I=p.cache;if(I.has(b))return I.get(b);var L=l.apply(this,w);return p.cache=I.set(b,L)||I,L};return p.cache=new(Xu.Cache||Jr),p}Xu.Cache=Jr;function qu(l){if(typeof l!="function")throw new Rn(a);return function(){var u=arguments;switch(u.length){case 0:return!l.call(this);case 1:return!l.call(this,u[0]);case 2:return!l.call(this,u[0],u[1]);case 3:return!l.call(this,u[0],u[1],u[2])}return!l.apply(this,u)}}function C5(l){return y1(2,l)}var b5=sY(function(l,u){u=u.length==1&&at(u[0])?Kt(u[0],vn(Je())):Kt(SA(u,1),vn(Je()));var p=u.length;return ut(function(w){for(var b=-1,I=KA(w.length,p);++b<I;)w[b]=u[b].call(this,w[b]);return bn(l,this,w)})}),wm=ut(function(l,u){var p=Ri(u,Po(wm));return qr(l,D,A,u,p)}),Q1=ut(function(l,u){var p=Ri(u,Po(Q1));return qr(l,E,A,u,p)}),v5=jr(function(l,u){return qr(l,O,A,A,A,u)});function E5(l,u){if(typeof l!="function")throw new Rn(a);return u=u===A?u:ot(u),ut(l,u)}function Q5(l,u){if(typeof l!="function")throw new Rn(a);return u=u==null?0:hA(ot(u),0),ut(function(p){var w=p[u],b=Gi(p,0,u);return w&&Hi(b,w),bn(l,this,b)})}function F5(l,u,p){var w=!0,b=!0;if(typeof l!="function")throw new Rn(a);return Wt(p)&&(w="leading"in p?!!p.leading:w,b="trailing"in p?!!p.trailing:b),E1(l,u,{leading:w,maxWait:u,trailing:b})}function U5(l){return w1(l,1)}function k5(l,u){return wm(nm(u),l)}function _5(){if(!arguments.length)return[];var l=arguments[0];return at(l)?l:[l]}function I5(l){return Vn(l,g)}function S5(l,u){return u=typeof u=="function"?u:A,Vn(l,g,u)}function T5(l){return Vn(l,h|g)}function x5(l,u){return u=typeof u=="function"?u:A,Vn(l,h|g,u)}function D5(l,u){return u==null||dE(l,u,EA(u))}function sr(l,u){return l===u||l!==l&&u!==u}var M5=Ku(Gp),O5=Ku(function(l,u){return l>=u}),xa=BE(function(){return arguments}())?BE:function(l){return Xt(l)&&_t.call(l,"callee")&&!rE.call(l,"callee")},at=ae.isArray,N5=Hv?vn(Hv):GW;function fn(l){return l!=null&&ju(l.length)&&!ei(l)}function nA(l){return Xt(l)&&fn(l)}function L5(l){return l===!0||l===!1||Xt(l)&&tn(l)==Z}var Wi=jG||Im,H5=Rv?vn(Rv):WW;function R5(l){return Xt(l)&&l.nodeType===1&&!dl(l)}function P5(l){if(l==null)return!0;if(fn(l)&&(at(l)||typeof l=="string"||typeof l.splice=="function"||Wi(l)||Vo(l)||xa(l)))return!l.length;var u=$A(l);if(u==Y||u==N)return!l.size;if(cl(l))return!zp(l).length;for(var p in l)if(_t.call(l,p))return!1;return!0}function V5(l,u){return ol(l,u)}function K5(l,u,p){p=typeof p=="function"?p:A;var w=p?p(l,u):A;return w===A?ol(l,u,A,p):!!w}function ym(l){if(!Xt(l))return!1;var u=tn(l);return u==ie||u==At||typeof l.message=="string"&&typeof l.name=="string"&&!dl(l)}function $5(l){return typeof l=="number"&&aE(l)}function ei(l){if(!Wt(l))return!1;var u=tn(l);return u==Ge||u==Be||u==U||u==nt}function F1(l){return typeof l=="number"&&l==ot(l)}function ju(l){return typeof l=="number"&&l>-1&&l%1==0&&l<=te}function Wt(l){var u=typeof l;return l!=null&&(u=="object"||u=="function")}function Xt(l){return l!=null&&typeof l=="object"}var U1=Pv?vn(Pv):zW;function G5(l,u){return l===u||Yp(l,u,cm(u))}function W5(l,u,p){return p=typeof p=="function"?p:A,Yp(l,u,cm(u),p)}function Y5(l){return k1(l)&&l!=+l}function z5(l){if(SY(l))throw new rt(i);return wE(l)}function J5(l){return l===null}function X5(l){return l==null}function k1(l){return typeof l=="number"||Xt(l)&&tn(l)==T}function dl(l){if(!Xt(l)||tn(l)!=Ce)return!1;var u=Qu(l);if(u===null)return!0;var p=_t.call(u,"constructor")&&u.constructor;return typeof p=="function"&&p instanceof p&&Cu.call(p)==WG}var Cm=Vv?vn(Vv):JW;function q5(l){return F1(l)&&l>=-te&&l<=te}var _1=Kv?vn(Kv):XW;function Zu(l){return typeof l=="string"||!at(l)&&Xt(l)&&tn(l)==le}function Qn(l){return typeof l=="symbol"||Xt(l)&&tn(l)==H}var Vo=$v?vn($v):qW;function j5(l){return l===A}function Z5(l){return Xt(l)&&$A(l)==Me}function ez(l){return Xt(l)&&tn(l)==We}var tz=Ku(Jp),Az=Ku(function(l,u){return l<=u});function I1(l){if(!l)return[];if(fn(l))return Zu(l)?ar(l):dn(l);if(Zs&&l[Zs])return DG(l[Zs]());var u=$A(l),p=u==Y?Op:u==N?Bu:Ko;return p(l)}function ti(l){if(!l)return l===0?l:0;if(l=Gn(l),l===re||l===-re){var u=l<0?-1:1;return u*q}return l===l?l:0}function ot(l){var u=ti(l),p=u%1;return u===u?p?u-p:u:0}function S1(l){return l?_a(ot(l),0,j):0}function Gn(l){if(typeof l=="number")return l;if(Qn(l))return me;if(Wt(l)){var u=typeof l.valueOf=="function"?l.valueOf():l;l=Wt(u)?u+"":u}if(typeof l!="string")return l===0?l:+l;l=Xv(l);var p=N$.test(l);return p||H$.test(l)?gG(l.slice(2),p?2:8):O$.test(l)?me:+l}function T1(l){return kr(l,hn(l))}function nz(l){return l?_a(ot(l),-te,te):l===0?l:0}function Ft(l){return l==null?"":En(l)}var rz=Ho(function(l,u){if(cl(u)||fn(u)){kr(u,EA(u),l);return}for(var p in u)_t.call(u,p)&&rl(l,p,u[p])}),x1=Ho(function(l,u){kr(u,hn(u),l)}),ed=Ho(function(l,u,p,w){kr(u,hn(u),l,w)}),iz=Ho(function(l,u,p,w){kr(u,EA(u),l,w)}),az=jr(Vp);function oz(l,u){var p=Lo(l);return u==null?p:uE(p,u)}var sz=ut(function(l,u){l=Dt(l);var p=-1,w=u.length,b=w>2?u[2]:A;for(b&&An(u[0],u[1],b)&&(w=1);++p<w;)for(var I=u[p],L=hn(I),P=-1,z=L.length;++P<z;){var he=L[P],pe=l[he];(pe===A||sr(pe,Mo[he])&&!_t.call(l,he))&&(l[he]=I[he])}return l}),lz=ut(function(l){return l.push(A,XE),bn(D1,A,l)});function cz(l,u){return Wv(l,Je(u,3),Ur)}function uz(l,u){return Wv(l,Je(u,3),$p)}function dz(l,u){return l==null?l:Kp(l,Je(u,3),hn)}function fz(l,u){return l==null?l:mE(l,Je(u,3),hn)}function hz(l,u){return l&&Ur(l,Je(u,3))}function pz(l,u){return l&&$p(l,Je(u,3))}function mz(l){return l==null?[]:Mu(l,EA(l))}function gz(l){return l==null?[]:Mu(l,hn(l))}function bm(l,u,p){var w=l==null?A:Ia(l,u);return w===A?p:w}function Bz(l,u){return l!=null&&ZE(l,u,PW)}function vm(l,u){return l!=null&&ZE(l,u,VW)}var wz=GE(function(l,u,p){u!=null&&typeof u.toString!="function"&&(u=bu.call(u)),l[u]=p},Qm(pn)),yz=GE(function(l,u,p){u!=null&&typeof u.toString!="function"&&(u=bu.call(u)),_t.call(l,u)?l[u].push(p):l[u]=[p]},Je),Cz=ut(al);function EA(l){return fn(l)?lE(l):zp(l)}function hn(l){return fn(l)?lE(l,!0):jW(l)}function bz(l,u){var p={};return u=Je(u,3),Ur(l,function(w,b,I){Xr(p,u(w,b,I),w)}),p}function vz(l,u){var p={};return u=Je(u,3),Ur(l,function(w,b,I){Xr(p,b,u(w,b,I))}),p}var Ez=Ho(function(l,u,p){Ou(l,u,p)}),D1=Ho(function(l,u,p,w){Ou(l,u,p,w)}),Qz=jr(function(l,u){var p={};if(l==null)return p;var w=!1;u=Kt(u,function(I){return I=$i(I,l),w||(w=I.length>1),I}),kr(l,sm(l),p),w&&(p=Vn(p,h|m|g,wY));for(var b=u.length;b--;)em(p,u[b]);return p});function Fz(l,u){return M1(l,qu(Je(u)))}var Uz=jr(function(l,u){return l==null?{}:eY(l,u)});function M1(l,u){if(l==null)return{};var p=Kt(sm(l),function(w){return[w]});return u=Je(u),FE(l,p,function(w,b){return u(w,b[0])})}function kz(l,u,p){u=$i(u,l);var w=-1,b=u.length;for(b||(b=1,l=A);++w<b;){var I=l==null?A:l[_r(u[w])];I===A&&(w=b,I=p),l=ei(I)?I.call(l):I}return l}function _z(l,u,p){return l==null?l:sl(l,u,p)}function Iz(l,u,p,w){return w=typeof w=="function"?w:A,l==null?l:sl(l,u,p,w)}var O1=zE(EA),N1=zE(hn);function Sz(l,u,p){var w=at(l),b=w||Wi(l)||Vo(l);if(u=Je(u,4),p==null){var I=l&&l.constructor;b?p=w?new I:[]:Wt(l)?p=ei(I)?Lo(Qu(l)):{}:p={}}return(b?Hn:Ur)(l,function(L,P,z){return u(p,L,P,z)}),p}function Tz(l,u){return l==null?!0:em(l,u)}function xz(l,u,p){return l==null?l:SE(l,u,nm(p))}function Dz(l,u,p,w){return w=typeof w=="function"?w:A,l==null?l:SE(l,u,nm(p),w)}function Ko(l){return l==null?[]:Mp(l,EA(l))}function Mz(l){return l==null?[]:Mp(l,hn(l))}function Oz(l,u,p){return p===A&&(p=u,u=A),p!==A&&(p=Gn(p),p=p===p?p:0),u!==A&&(u=Gn(u),u=u===u?u:0),_a(Gn(l),u,p)}function Nz(l,u,p){return u=ti(u),p===A?(p=u,u=0):p=ti(p),l=Gn(l),KW(l,u,p)}function Lz(l,u,p){if(p&&typeof p!="boolean"&&An(l,u,p)&&(u=p=A),p===A&&(typeof u=="boolean"?(p=u,u=A):typeof l=="boolean"&&(p=l,l=A)),l===A&&u===A?(l=0,u=1):(l=ti(l),u===A?(u=l,l=0):u=ti(u)),l>u){var w=l;l=u,u=w}if(p||l%1||u%1){var b=oE();return KA(l+b*(u-l+mG("1e-"+((b+"").length-1))),u)}return qp(l,u)}var Hz=Ro(function(l,u,p){return u=u.toLowerCase(),l+(p?L1(u):u)});function L1(l){return Em(Ft(l).toLowerCase())}function H1(l){return l=Ft(l),l&&l.replace(P$,_G).replace(aG,"")}function Rz(l,u,p){l=Ft(l),u=En(u);var w=l.length;p=p===A?w:_a(ot(p),0,w);var b=p;return p-=u.length,p>=0&&l.slice(p,b)==u}function Pz(l){return l=Ft(l),l&&Pe.test(l)?l.replace(fe,IG):l}function Vz(l){return l=Ft(l),l&&U$.test(l)?l.replace(wp,"\\$&"):l}var Kz=Ro(function(l,u,p){return l+(p?"-":"")+u.toLowerCase()}),$z=Ro(function(l,u,p){return l+(p?" ":"")+u.toLowerCase()}),Gz=VE("toLowerCase");function Wz(l,u,p){l=Ft(l),u=ot(u);var w=u?xo(l):0;if(!u||w>=u)return l;var b=(u-w)/2;return Vu(_u(b),p)+l+Vu(ku(b),p)}function Yz(l,u,p){l=Ft(l),u=ot(u);var w=u?xo(l):0;return u&&w<u?l+Vu(u-w,p):l}function zz(l,u,p){l=Ft(l),u=ot(u);var w=u?xo(l):0;return u&&w<u?Vu(u-w,p)+l:l}function Jz(l,u,p){return p||u==null?u=0:u&&(u=+u),AW(Ft(l).replace(yp,""),u||0)}function Xz(l,u,p){return(p?An(l,u,p):u===A)?u=1:u=ot(u),jp(Ft(l),u)}function qz(){var l=arguments,u=Ft(l[0]);return l.length<3?u:u.replace(l[1],l[2])}var jz=Ro(function(l,u,p){return l+(p?"_":"")+u.toLowerCase()});function Zz(l,u,p){return p&&typeof p!="number"&&An(l,u,p)&&(u=p=A),p=p===A?j:p>>>0,p?(l=Ft(l),l&&(typeof u=="string"||u!=null&&!Cm(u))&&(u=En(u),!u&&To(l))?Gi(ar(l),0,p):l.split(u,p)):[]}var e6=Ro(function(l,u,p){return l+(p?" ":"")+Em(u)});function t6(l,u,p){return l=Ft(l),p=p==null?0:_a(ot(p),0,l.length),u=En(u),l.slice(p,p+u.length)==u}function A6(l,u,p){var w=_.templateSettings;p&&An(l,u,p)&&(u=A),l=Ft(l),u=ed({},u,w,JE);var b=ed({},u.imports,w.imports,JE),I=EA(b),L=Mp(b,I),P,z,he=0,pe=u.interpolate||fu,be="__p += '",Ie=Np((u.escape||fu).source+"|"+pe.source+"|"+(pe===Nn?M$:fu).source+"|"+(u.evaluate||fu).source+"|$","g"),Ve="//# sourceURL="+(_t.call(u,"sourceURL")?(u.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++uG+"]")+`
149
+ `;l.replace(Ie,function(je,ht,yt,Fn,nn,Un){return yt||(yt=Fn),be+=l.slice(he,Un).replace(V$,SG),ht&&(P=!0,be+=`' +
150
+ __e(`+ht+`) +
151
+ '`),nn&&(z=!0,be+=`';
152
+ `+nn+`;
153
+ __p += '`),yt&&(be+=`' +
154
+ ((__t = (`+yt+`)) == null ? '' : __t) +
155
+ '`),he=Un+je.length,je}),be+=`';
156
+ `;var qe=_t.call(u,"variable")&&u.variable;if(!qe)be=`with (obj) {
157
+ `+be+`
158
158
  }
159
- `;else if($M.test(he))throw new we(a);J=(H?J.replace(De,""):J).replace(GA,"$1").replace(yt,"$1;"),J="function("+(he||"obj")+`) {
160
- `+(he?"":`obj || (obj = {});
161
- `)+"var __t, __p = ''"+(O?", __e = _.escape":"")+(H?`, __j = Array.prototype.join;
159
+ `;else if(x$.test(qe))throw new rt(s);be=(z?be.replace(G,""):be).replace(ye,"$1").replace(Ne,"$1;"),be="function("+(qe||"obj")+`) {
160
+ `+(qe?"":`obj || (obj = {});
161
+ `)+"var __t, __p = ''"+(P?", __e = _.escape":"")+(z?`, __j = Array.prototype.join;
162
162
  function print() { __p += __j.call(arguments, '') }
163
163
  `:`;
164
- `)+J+`return __p
165
- }`;var ve=lE(function(){return Je(F,le+"return "+J).apply(A,I)});if(ve.source=J,Zd(ve))throw ve;return ve}function pG(o){return ze(o).toLowerCase()}function gG(o){return ze(o).toUpperCase()}function mG(o,l,d){if(o=ze(o),o&&(d||l===A))return B0(o);if(!o||!(l=kt(l)))return o;var m=dn(o),C=dn(l),F=w0(m,C),I=C0(m,C)+1;return Kr(m,F,I).join("")}function BG(o,l,d){if(o=ze(o),o&&(d||l===A))return o.slice(0,E0(o)+1);if(!o||!(l=kt(l)))return o;var m=dn(o),C=C0(m,dn(l))+1;return Kr(m,0,C).join("")}function wG(o,l,d){if(o=ze(o),o&&(d||l===A))return o.replace(Zf,"");if(!o||!(l=kt(l)))return o;var m=dn(o),C=w0(m,dn(l));return Kr(m,C).join("")}function CG(o,l){var d=se,m=Be;if(gA(l)){var C="separator"in l?l.separator:C;d="length"in l?Qe(l.length):d,m="omission"in l?kt(l.omission):m}o=ze(o);var F=o.length;if(us(o)){var I=dn(o);F=I.length}if(d>=F)return o;var O=d-fs(m);if(O<1)return m;var H=I?Kr(I,0,O).join(""):o.slice(0,O);if(C===A)return H+m;if(I&&(O+=H.length-O),jd(C)){if(o.slice(O).search(C)){var G,$=H;for(C.global||(C=pd(C.source,ze(RC.exec(C))+"g")),C.lastIndex=0;G=C.exec($);)var J=G.index;H=H.slice(0,J===A?O:J)}}else if(o.indexOf(kt(C),O)!=O){var q=H.lastIndexOf(C);q>-1&&(H=H.slice(0,q))}return H+m}function yG(o){return o=ze(o),o&&zn.test(o)?o.replace(Yn,zR):o}var EG=ws(function(o,l,d){return o+(d?" ":"")+l.toUpperCase()}),th=cy("toUpperCase");function aE(o,l,d){return o=ze(o),l=d?A:l,l===A?$R(o)?jR(o):HR(o):o.match(l)||[]}var lE=Ie(function(o,l){try{return Ot(o,A,l)}catch(d){return Zd(d)?d:new we(d)}}),QG=Ar(function(o,l){return Yt(l,function(d){d=On(d),jn(o,d,zd(o[d],o))}),o});function FG(o){var l=o==null?0:o.length,d=de();return o=l?dA(o,function(m){if(typeof m[1]!="function")throw new zt(s);return[d(m[0]),m[1]]}):[],Ie(function(m){for(var C=-1;++C<l;){var F=o[C];if(Ot(F[0],this,m))return Ot(F[1],this,m)}})}function bG(o){return z4(Zt(o,p))}function nh(o){return function(){return o}}function UG(o,l){return o==null||o!==o?l:o}var vG=fy(),IG=fy(!0);function bt(o){return o}function rh(o){return V0(typeof o=="function"?o:Zt(o,p))}function SG(o){return G0(Zt(o,p))}function TG(o,l){return $0(o,Zt(l,p))}var _G=Ie(function(o,l){return function(d){return So(d,o,l)}}),xG=Ie(function(o,l){return function(d){return So(o,d,l)}});function ih(o,l,d){var m=DA(l),C=ql(l,m);d==null&&!(gA(l)&&(C.length||!m.length))&&(d=l,l=o,o=this,C=ql(l,DA(l)));var F=!(gA(d)&&"chain"in d)||!!d.chain,I=nr(o);return Yt(C,function(O){var H=l[O];o[O]=H,I&&(o.prototype[O]=function(){var G=this.__chain__;if(F||G){var $=o(this.__wrapped__),J=$.__actions__=Et(this.__actions__);return J.push({func:H,args:arguments,thisArg:o}),$.__chain__=G,$}return H.apply(o,kr([this.value()],arguments))})}),o}function OG(){return $A._===this&&($A._=i4),this}function sh(){}function LG(o){return o=Qe(o),Ie(function(l){return W0(l,o)})}var kG=Nd(dA),HG=Nd(d0),NG=Nd(ad);function cE(o){return Gd(o)?ld(On(o)):dK(o)}function DG(o){return function(l){return o==null?A:Ci(o,l)}}var MG=hy(),RG=hy(!0);function oh(){return[]}function ah(){return!1}function KG(){return{}}function VG(){return""}function PG(){return!0}function GG(o,l){if(o=Qe(o),o<1||o>re)return[];var d=He,m=At(o,He);l=de(l),o-=He;for(var C=fd(m,l);++d<o;)l(d);return C}function $G(o){return Ee(o)?dA(o,On):Ht(o)?[o]:Et(Ty(ze(o)))}function WG(o){var l=++n4;return ze(o)+l}var JG=nc(function(o,l){return o+l},0),XG=Dd("ceil"),YG=nc(function(o,l){return o/l},1),zG=Dd("floor");function qG(o){return o&&o.length?zl(o,bt,Qd):A}function ZG(o,l){return o&&o.length?zl(o,de(l,2),Qd):A}function jG(o){return g0(o,bt)}function e$(o,l){return g0(o,de(l,2))}function A$(o){return o&&o.length?zl(o,bt,vd):A}function t$(o,l){return o&&o.length?zl(o,de(l,2),vd):A}var n$=nc(function(o,l){return o*l},1),r$=Dd("round"),i$=nc(function(o,l){return o-l},0);function s$(o){return o&&o.length?ud(o,bt):0}function o$(o,l){return o&&o.length?ud(o,de(l,2)):0}return y.after=SP,y.ary=Ky,y.assign=g2,y.assignIn=AE,y.assignInWith=gc,y.assignWith=m2,y.at=B2,y.before=Vy,y.bind=zd,y.bindAll=QG,y.bindKey=Py,y.castArray=KP,y.chain=Dy,y.chunk=zK,y.compact=qK,y.concat=ZK,y.cond=FG,y.conforms=bG,y.constant=nh,y.countBy=sP,y.create=w2,y.curry=Gy,y.curryRight=$y,y.debounce=Wy,y.defaults=C2,y.defaultsDeep=y2,y.defer=TP,y.delay=_P,y.difference=jK,y.differenceBy=eV,y.differenceWith=AV,y.drop=tV,y.dropRight=nV,y.dropRightWhile=rV,y.dropWhile=iV,y.fill=sV,y.filter=aP,y.flatMap=uP,y.flatMapDeep=fP,y.flatMapDepth=dP,y.flatten=Ly,y.flattenDeep=oV,y.flattenDepth=aV,y.flip=xP,y.flow=vG,y.flowRight=IG,y.fromPairs=lV,y.functions=I2,y.functionsIn=S2,y.groupBy=hP,y.initial=uV,y.intersection=fV,y.intersectionBy=dV,y.intersectionWith=hV,y.invert=_2,y.invertBy=x2,y.invokeMap=gP,y.iteratee=rh,y.keyBy=mP,y.keys=DA,y.keysIn=Ft,y.map=cc,y.mapKeys=L2,y.mapValues=k2,y.matches=SG,y.matchesProperty=TG,y.memoize=fc,y.merge=H2,y.mergeWith=tE,y.method=_G,y.methodOf=xG,y.mixin=ih,y.negate=dc,y.nthArg=LG,y.omit=N2,y.omitBy=D2,y.once=OP,y.orderBy=BP,y.over=kG,y.overArgs=LP,y.overEvery=HG,y.overSome=NG,y.partial=qd,y.partialRight=Jy,y.partition=wP,y.pick=M2,y.pickBy=nE,y.property=cE,y.propertyOf=DG,y.pull=BV,y.pullAll=Hy,y.pullAllBy=wV,y.pullAllWith=CV,y.pullAt=yV,y.range=MG,y.rangeRight=RG,y.rearg=kP,y.reject=EP,y.remove=EV,y.rest=HP,y.reverse=Xd,y.sampleSize=FP,y.set=K2,y.setWith=V2,y.shuffle=bP,y.slice=QV,y.sortBy=IP,y.sortedUniq=TV,y.sortedUniqBy=_V,y.split=uG,y.spread=NP,y.tail=xV,y.take=OV,y.takeRight=LV,y.takeRightWhile=kV,y.takeWhile=HV,y.tap=qV,y.throttle=DP,y.thru=lc,y.toArray=Zy,y.toPairs=rE,y.toPairsIn=iE,y.toPath=$G,y.toPlainObject=eE,y.transform=P2,y.unary=MP,y.union=NV,y.unionBy=DV,y.unionWith=MV,y.uniq=RV,y.uniqBy=KV,y.uniqWith=VV,y.unset=G2,y.unzip=Yd,y.unzipWith=Ny,y.update=$2,y.updateWith=W2,y.values=Es,y.valuesIn=J2,y.without=PV,y.words=aE,y.wrap=RP,y.xor=GV,y.xorBy=$V,y.xorWith=WV,y.zip=JV,y.zipObject=XV,y.zipObjectDeep=YV,y.zipWith=zV,y.entries=rE,y.entriesIn=iE,y.extend=AE,y.extendWith=gc,ih(y,y),y.add=JG,y.attempt=lE,y.camelCase=q2,y.capitalize=sE,y.ceil=XG,y.clamp=X2,y.clone=VP,y.cloneDeep=GP,y.cloneDeepWith=$P,y.cloneWith=PP,y.conformsTo=WP,y.deburr=oE,y.defaultTo=UG,y.divide=YG,y.endsWith=Z2,y.eq=pn,y.escape=j2,y.escapeRegExp=eG,y.every=oP,y.find=lP,y.findIndex=xy,y.findKey=E2,y.findLast=cP,y.findLastIndex=Oy,y.findLastKey=Q2,y.floor=zG,y.forEach=My,y.forEachRight=Ry,y.forIn=F2,y.forInRight=b2,y.forOwn=U2,y.forOwnRight=v2,y.get=eh,y.gt=JP,y.gte=XP,y.has=T2,y.hasIn=Ah,y.head=ky,y.identity=bt,y.includes=pP,y.indexOf=cV,y.inRange=Y2,y.invoke=O2,y.isArguments=Qi,y.isArray=Ee,y.isArrayBuffer=YP,y.isArrayLike=Qt,y.isArrayLikeObject=yA,y.isBoolean=zP,y.isBuffer=Vr,y.isDate=qP,y.isElement=ZP,y.isEmpty=jP,y.isEqual=e2,y.isEqualWith=A2,y.isError=Zd,y.isFinite=t2,y.isFunction=nr,y.isInteger=Xy,y.isLength=hc,y.isMap=Yy,y.isMatch=n2,y.isMatchWith=r2,y.isNaN=i2,y.isNative=s2,y.isNil=a2,y.isNull=o2,y.isNumber=zy,y.isObject=gA,y.isObjectLike=BA,y.isPlainObject=ko,y.isRegExp=jd,y.isSafeInteger=l2,y.isSet=qy,y.isString=pc,y.isSymbol=Ht,y.isTypedArray=ys,y.isUndefined=c2,y.isWeakMap=u2,y.isWeakSet=f2,y.join=pV,y.kebabCase=AG,y.last=en,y.lastIndexOf=gV,y.lowerCase=tG,y.lowerFirst=nG,y.lt=d2,y.lte=h2,y.max=qG,y.maxBy=ZG,y.mean=jG,y.meanBy=e$,y.min=A$,y.minBy=t$,y.stubArray=oh,y.stubFalse=ah,y.stubObject=KG,y.stubString=VG,y.stubTrue=PG,y.multiply=n$,y.nth=mV,y.noConflict=OG,y.noop=sh,y.now=uc,y.pad=rG,y.padEnd=iG,y.padStart=sG,y.parseInt=oG,y.random=z2,y.reduce=CP,y.reduceRight=yP,y.repeat=aG,y.replace=lG,y.result=R2,y.round=r$,y.runInContext=k,y.sample=QP,y.size=UP,y.snakeCase=cG,y.some=vP,y.sortedIndex=FV,y.sortedIndexBy=bV,y.sortedIndexOf=UV,y.sortedLastIndex=vV,y.sortedLastIndexBy=IV,y.sortedLastIndexOf=SV,y.startCase=fG,y.startsWith=dG,y.subtract=i$,y.sum=s$,y.sumBy=o$,y.template=hG,y.times=GG,y.toFinite=rr,y.toInteger=Qe,y.toLength=jy,y.toLower=pG,y.toNumber=An,y.toSafeInteger=p2,y.toString=ze,y.toUpper=gG,y.trim=mG,y.trimEnd=BG,y.trimStart=wG,y.truncate=CG,y.unescape=yG,y.uniqueId=WG,y.upperCase=EG,y.upperFirst=th,y.each=My,y.eachRight=Ry,y.first=ky,ih(y,function(){var o={};return _n(y,function(l,d){Ze.call(y.prototype,d)||(o[d]=l)}),o}(),{chain:!1}),y.VERSION=n,Yt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(o){y[o].placeholder=y}),Yt(["drop","take"],function(o,l){Oe.prototype[o]=function(d){d=d===A?1:_A(Qe(d),0);var m=this.__filtered__&&!l?new Oe(this):this.clone();return m.__filtered__?m.__takeCount__=At(d,m.__takeCount__):m.__views__.push({size:At(d,He),type:o+(m.__dir__<0?"Right":"")}),m},Oe.prototype[o+"Right"]=function(d){return this.reverse()[o](d).reverse()}}),Yt(["filter","map","takeWhile"],function(o,l){var d=l+1,m=d==Le||d==Re;Oe.prototype[o]=function(C){var F=this.clone();return F.__iteratees__.push({iteratee:de(C,3),type:d}),F.__filtered__=F.__filtered__||m,F}}),Yt(["head","last"],function(o,l){var d="take"+(l?"Right":"");Oe.prototype[o]=function(){return this[d](1).value()[0]}}),Yt(["initial","tail"],function(o,l){var d="drop"+(l?"":"Right");Oe.prototype[o]=function(){return this.__filtered__?new Oe(this):this[d](1)}}),Oe.prototype.compact=function(){return this.filter(bt)},Oe.prototype.find=function(o){return this.filter(o).head()},Oe.prototype.findLast=function(o){return this.reverse().find(o)},Oe.prototype.invokeMap=Ie(function(o,l){return typeof o=="function"?new Oe(this):this.map(function(d){return So(d,o,l)})}),Oe.prototype.reject=function(o){return this.filter(dc(de(o)))},Oe.prototype.slice=function(o,l){o=Qe(o);var d=this;return d.__filtered__&&(o>0||l<0)?new Oe(d):(o<0?d=d.takeRight(-o):o&&(d=d.drop(o)),l!==A&&(l=Qe(l),d=l<0?d.dropRight(-l):d.take(l-o)),d)},Oe.prototype.takeRightWhile=function(o){return this.reverse().takeWhile(o).reverse()},Oe.prototype.toArray=function(){return this.take(He)},_n(Oe.prototype,function(o,l){var d=/^(?:filter|find|map|reject)|While$/.test(l),m=/^(?:head|last)$/.test(l),C=y[m?"take"+(l=="last"?"Right":""):l],F=m||/^find/.test(l);C&&(y.prototype[l]=function(){var I=this.__wrapped__,O=m?[1]:arguments,H=I instanceof Oe,G=O[0],$=H||Ee(I),J=function(Te){var Me=C.apply(y,kr([Te],O));return m&&q?Me[0]:Me};$&&d&&typeof G=="function"&&G.length!=1&&(H=$=!1);var q=this.__chain__,le=!!this.__actions__.length,he=F&&!q,ve=H&&!le;if(!F&&$){I=ve?I:new Oe(this);var pe=o.apply(I,O);return pe.__actions__.push({func:lc,args:[J],thisArg:A}),new qt(pe,q)}return he&&ve?o.apply(this,O):(pe=this.thru(J),he?m?pe.value()[0]:pe.value():pe)})}),Yt(["pop","push","shift","sort","splice","unshift"],function(o){var l=kl[o],d=/^(?:push|sort|unshift)$/.test(o)?"tap":"thru",m=/^(?:pop|shift)$/.test(o);y.prototype[o]=function(){var C=arguments;if(m&&!this.__chain__){var F=this.value();return l.apply(Ee(F)?F:[],C)}return this[d](function(I){return l.apply(Ee(I)?I:[],C)})}}),_n(Oe.prototype,function(o,l){var d=y[l];if(d){var m=d.name+"";Ze.call(gs,m)||(gs[m]=[]),gs[m].push({name:l,func:d})}}),gs[tc(A,v).name]=[{name:"wrapper",func:A}],Oe.prototype.clone=y4,Oe.prototype.reverse=E4,Oe.prototype.value=Q4,y.prototype.at=ZV,y.prototype.chain=jV,y.prototype.commit=eP,y.prototype.next=AP,y.prototype.plant=nP,y.prototype.reverse=rP,y.prototype.toJSON=y.prototype.valueOf=y.prototype.value=iP,y.prototype.first=y.prototype.head,Eo&&(y.prototype[Eo]=tP),y},ds=e4();pi?((pi.exports=ds)._=ds,rd._=ds):$A._=ds}).call(Ys)}(La,La.exports);var IB=La.exports;const v_="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAABAAAAAQACAYAAAB/HSuDAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAHkJJREFUeNrs3Q1u8zaXgNHS8JK4/xVwTyzytgnS1HZsixR/7jlAgZkMBl+hT6Z1H1FyqrX+BQAAAOzt4hAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAEA0V4cAANaTc64j//NLKcl/CwCwllRrdRQAwJDfjDgAAHPyCAAAGP79uwOAAAAAAAAIAAAAAIAAAAAAAAgAAAAAwEn8CgAATOq3l+mNetv+rP9eAIAAAAAAAOF5BAAAAAAEAAAAAEAAAAAAAJZwdQgA2N2tl9Z5UZ1zwjkBQDReAghAmAHPwIdzA4DI7AAAINxwB8+eR0IAADuxAwCA0IO/Ac954jwBQAAAgE2HOUOd88Z5A0BEHgEAINwABy3OPyEAgNXYAQBAyMHf8OZcci4BIAAAwKbDmkEN5xcAAgAAGMxwvjnfABAAAGC1QcwQhnMQAAQAAAxd4JwEQAAAAEMWOEcBEAAAYKrBylCF8xUABAAANh2kDFE4hwFAAADA0ATOaQC44eIQAGBQgvcdOTdb/fQgADzDDgAADP7gXAdAAACAMQORYQjnPQAIAAAYgMDnAAAEAAAMPLD+58JnAgABAADDP/h8AIAAAMA6w43BBp8VnxUABAAADDPgs+OzA0BDF4cAgDMZYMBnAYAxrg4BAIYdGPu5ePf9AADwCjsAADD8g88IAAHYAQCAoQYm+rzYDQBAL3YAAGD4B58dAALwKwAANPF519LwAj5XAAgAAAAAwCAeAQAAAAABAAAAABAAAAAAAAEAAAAAEAAAAAAAAQAAAAAQAAAAAAABAAAAABAAAAAAQAAAAAAABAAAAABAAAAAAAAEAAAAAEAAAAAAAAQAAAAAQAAAAAAABAAAAAAQAAAAAAABAAAAABAAAAAAAAEAAAAAEAAAAAAAAQAAAAAQAAAiyznXj38cCcA6A8AjqVZrOcCqF+S3/l5KSY4OYJ0B4Cc7AAA2uigHsAYBIAAAuDAHsJYACAAAuCgHsBYBCAAALHPB7dlcoIVn1hIRAEAAAGDQ8A9gbQJAAAAIcIHt7j/Q0rNriggAIAAAMOGFOoC1BUAAAGBCnvsHVogAdgEACAAAGP4BEQAAAQAAAAAQAAACc/cfmI1dAAACAACGf0AEEAEABAAADP+ACACAAAAAAAAIAACRuPsPrMIuAAABAADDPyACiAAAAgAAAAAgAAAE5e4/sCq7AAAEAAAM/4AIIAIACAAAAACAAAAQhLv/wC7sAgAQAADofEENYM0CQAAAmJg7YYC1DwABAMAFsDtpwJI8CgAgAADQ+AIawBoGgAAAMDF3vgCshQACAADunAHWMgAEAIDVueMFYE0EEAAAXOi6YwZsxQsBAQQAAAz/gLUNAAEAYD/ucAFYIwEEAADcIQOscQAIAACrc2cLwFoJIAAA4M4YYK0DQAAAWJ07WgDWTAABAAB3xABrHgACAMDq3MkCsHYCCAAAuBMGWPsAEAAAVvfbHSwXwIAI8P4aCoAAAAAAAAgAAHNw9x/AWgggAAAAAAACAMDq3PECsCYCCAAAAABAN6lWL1kF6OXzTdbucgFYLwEEAAAAAKA7jwAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAACgEMAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAIAAAAAAAAgAAJHknOvHP44EgHUaYGWpVmslwL0Lyp9/K6UkRwbAWg2wIjsAAJ68oHz0dwCs1QACAAAAACAAAAAAAAIAwOlsHQWwlgMIAADBebEUAAACAAAAnEiUBRAAAAAAAAEA4D7PjAJY0wEEAAAAAEAAANidZ00BrM0AAgAAAAAgAAAAAAACAMAUvCwKwNoOIAAAAAAAAgDA7rxkCsAaDSAAAAAAAAIAAAAAIAAATMFLogCs8QACAAAAACAAAOzOy6UArNUAAgAAAAAgAAAAAAACAAAAACAAAJzD26EBrPUAAgAAAAAgAADszlulAazZAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAEAjfhYKwJoPIAAAAAAAAgDA7vycFIC1G0AAAAAAAAQAAAAAQAAAAAAABAAAAABAAAAAAAAEAAAAAEAAAPiSc66OAoC1H0AAAAjM70gDWMMBBAAAAABAAAAAAAAEAAAAAEAAAAAAAAQAAAAAQAAAAAAABAAAAAAQAAAAAAABACCMUkpyFACs5QACAICLQwCs/QDLSbVWRwEAAAA2ZwcAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAAAgADgEAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAABAc1eHAIgs51x//q2UkhwZAGs8wG7sAABcGD75dwCs8QACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAAAgAAFH5nWgAaziAAACwiVJKchQArP0AAgAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAIAAAMC/cs7VUQCwdgMIAAAbKKUkRwHAmg8gAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAA04fekAazZAAIAwCb8LjSAtR5AAAAAAAAEAAAAAEAAAAAAAAQAAAAAQAAAAAAABAAAAABAAABoxu9KA1irAQQAgE34fWgAAAQAAABYmMgLIAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAMBu/Lw1gjQYQAAA24WeiAKztAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAAIAwEv8XBSANR1AAABwEQmANRpgWanW6igAAADA5uwAAAAAAAEAAAAAEAAAAAAAAQAAAAAQAAAAAAABAAAAABAAAAAAAAEAAAAAEAAAAABAAAAAAAAEAAAAAEAAAAAAAAQAAAAAQAAAAAAABAAAAABAAAAAAAAEAAAAABAAAAAAAAEAAAAAEAAAAAAAAQAAAAAQAAAAAAABAAAAABAAAAAAAAEAAAAABACHAAAAAAQAAAAAQAAAAAAABAAAAABAAAAAAAAEAAAAAEAAAAAAAAQAAAAAQAAAAAAAAQAAAAAQAAAAAAABAAAAABAAAAAAgLNdHQKA1+Wc6+f/XEpJjgiAtRdgdqnW6igAvHHx+Z0LUQDrL8DsPAIA0PHCFABrLIAAAAAAAAgAAAAAgAAAAAAACAAAAOzA8/8AAgCAi1QAABAAAPrwc1MA1mQAAQAAAAAQAAAAAAABAAAAABAAANbgRYAA1lQAAQBgE146BWAtBhAAAAAAAAEAAAAAEAAAtuCZVQBrKYAAAAAAAAgAAKvw8ikAazCAAAAAAAAIAAAAAIAAALAFL68CsIYCCAAAAACAAACwCi+hArD2AggAAAAAgAAAAAAACAAAW/ASKwBrJ4AAALAJz6ICWHMBBAAAAABAAAAAAAAEAIAteJYVwJoJIAAAAAAAAgDAKryUCsBaCyAAAAAAAAIAQASeaQWwVgIIAAAAAIAAALAKz6YCWGMBBAAAAABAAACIwLOtAAAIAAAAhCaSAggAAEvxjCqAtRVAAAAAAAAEAAAAAEAAANiCZ1wBrI0AAgDAJjyrCmBNBRAAAAAAAAEAIAJbXQGsiQACAAAAACAAAKzCM6sA1lIAAQAAAAAQAAAAAAABAGAZ97au2tIKYK0EEAAANr+wdUELYK0EGCnV6tdXAAAAYHd2AAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAKAQwAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAgAAAAAAACAAAAACAAADAQTnn+vGPIwFYvwBoJdVqfQaY6cL51t9LKcnRAaxfABxhBwAAAAAIAADMwHZawBoFgAAAAAAACAAAu3CHDbA2ASAAAAAAAAIAwCq8LRuwpgEgAABgqy1gTQJAAAAAAAAEAIBl2DILWMsAEAAAsOUWsBYBIAAAAAAAAgDAMn7bOuvOGzDSb2uQ7f8AAgAAAAAgAAAAAAACAEAwHgMAZmT7P4AAAAAAAAgAALzDnTTAmgWAAACAxwAAaw4AAgAAAAAgAAAsw8sAgRl4+R+AAAAAAAAIAAC04M4aYI0CQAAAwGMAgDUGAAEAAAAAEAAAluFlgMAIXv4HIAAAAAAAAgAAPdgFAJzJ3X8AAQAAAAAQAAAAAAABAIBDPAYAnMH2fwABAAAAABAAADiDXQBAT+7+AwgAAAAAgAAAwJnsAgB6cPcfQAAAAAAABAAAAABAAACgC48BAC3Z/g8gAAAAAAACAAAj2QUAtODuP4AAAAAAAAgAAMzALgDgCHf/AQQAAAAAQAAAYCZ2AQDvcPcfQAAAAAAABAAAZuROHWBNAUAAAAAAAAEAAAAAEAAAWIYtu4C1BIBbUq1eCg0AAAC7swMAAAAABAAAAABAAAAAAAAEAAAAAEAAAAAAAAQAAAAAQAAAAAAABAAAAABAAAAAAAABAAAAABAAAAAAAAEAAAAAEAAAAAAAAQAAAAAQAAAAAAABAAAAABAAAAAAQAAAAAAABAAAAABAAAAAAAAEAAAAAEAAAAAAAAQAAAAAQAAAAAAABAAAAAAQABwCAAAAEAAAAAAAAQAAAAAQAAAAAAABAAAAABAAAAAAAAEAAAAAEAAAAAAAAQAAAAAEAAD4JudcP/5xJMDnE4B1pVp9XwBwf7D4+bdSSnJkwGcUgPXYAQDA04PFo78DPqMACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAAAgAAQfkZMfAZBkAAAAAAAAQAAHZXSkmOAvgsAiAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAABAHDnn6igAIAAAYGgAABAAAOA2vzsOPpMACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAfMk5V0cBfKYBEAAACMzvjYPPJgACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAABf/F44+GwDIAAAAAAAAgAAuyulJEcBfEYBEAAAAAAAAQAAAAAQAAAAAAABAAAAABAAAAAAAAEAAAAAEAAA+CPnXB0F8BkHQAAAIDC/Lw4+qwAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAAIAAA8xc+Kgc8sAAIAAAAAsJBUa3UUAPgj5/z1peBOIvgsAyAAAAAAAIvxCAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAADAIVeHAGAeOef682+llOTIANYwAI5KtVZHAWCSC+V7XEAD1jQAjrIDAGCyC2OAiGuiKAAgAAAY9AECr5/CAIAAAGDQBwi83goDAAIAgCEfIPgaLQ4A3OYlgICLyMkHfReygPXUegogAABsdGHqAhWw7lp3AQQAABeeANZl6zKAAACwykWmi0qANdZs6zWwIy8BBHDhCDDdmulFrAACAIAhHyD4GisOAAgAAAZ9gMDrsjAAIAAAGPQBAq/jwgDAP7wEENjWvQs+gz4AvicAAQAAAADY0sUhAAAAAAEAAAAAEAAAAACAFfgVAOBXt16S5AVJAOC7GViLlwACT11U3OJCAwB8TwPrsAMA8PvIABDg+10QAAQAcEEAAAgCgAAAGPgBAEEAEAAAAz8AIAgAS/ASQDD0v8VFAQD43gcEAGDDL35f/gDgmsA1AQgAgC93AMA1AyAAAL68AQDXFIAAAPhyBgBccwACAPjy9eULALgmAQQA8CXryxUAcK0CCAAQ6wvVlygA4PoFuOfqEMC6fGECAGdfb4x4ZAAQAMDADwAgCAACABj4AQAEAeCTdwDAyR59KRr4AQDXPoAAAAAAALzt4hAAAACAAAAAAAAIAAAAAIAAACf4eLGMt80CAOB6Ex7zEkCWXIAf/d+9TRYAANed8H9Xh4AdFl8AABh5jSoGIACAoR8AADEABAAw9AMAIAaAAIChHwAAxAAQADD0AwCAGADP8isAbDH0W0ABAHAtCwIAFkoAAHCNiwAgALDSomhBBADAdS8IAFj8AADA9TAIAKy00FnkAABwjewaGQGATRc1CxoAAK6bXTcjAGDxAgAA19OupxEAWGmhskgBAIBrbAQALEoAAOCa2zU3AgCrLUIWIAAAcB2OAIAFBwAAcF2OAMBqi4zFBQAAXKczr6tDwFEWFAAA6H+93foXBBAAwOAPAABCAAIAGPwBAEAIYEXeAcB/3FtEDP0AAOA6HgGAjRcPCwYAALiWRwAAAAAAFnFxCAAAAEAAAAAAAAQAAAAAQAAAAAAABAAAAABAAAAAAAAEAAAAAEAAAAAAAAQAAAAAEAAAAAAAAQAAAAAQAAAAAAABAAAAABAAAAAAAAEAAAAAEAAAAACAG64OwRg55/r5P5dSkiMCAACYgegp1VodhUEn/Xc+AAAAgDmInjwCMMFJDwAAYEaiN48AOKkBAACGz0t2A/RnB4DhHwAAwOwkAOAEBgAAMEMJADQ5cW11AQAAdvbKzCMC9ONXAAYO/oZ/AADAvGReOosdAE5mAACAU7w6A9kNIAAY/gEAAEQAXuQRgJOHf4M/AACAWWoEOwCcsAAAAEN4OaAAYPgHAAAQAUQAAcDwDwAAIALwKu8A6Dj4G/4BAADMWwLA5iejExEAAMDsNROPADgBAQAApuKRAAHA8A8AACACiAACgOEfAABABEAAMPwDAACIAAIAhn8AAAARQAAw/Bv+AQAARAABwPAPAACACCAAGP4BAAAQAQQAwz8AAAAigABg+AcAAEAEEAAM/wAAACKACCAAGP4BAABEABEgcgAw/AMAAIgAAgCGfwAAALObALC6Z4uPEwgAAGC/CBB1F0C4AGD4BwAAEAEiRoBQAcDwDwAAIAJEjQBhAoDhHwAAQASIHAG8BNDwDwAAYMYTAJwYAAAAmPUEACcEAAAAZj4BwIkAAACA2U8AGP5fthMAAAAgdgSINBemWquzAAAAADbnHQAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAIAA4BAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAANHId/S+Qc64//1ZKSf6rAQAAYFUzzrqX2Q7Io78DAADAisP/DLOuRwAAAAAggGEBwF1+AAAAohk5C9sBAAAAAAEMCQC/FQ8vAQQAAGBXo3YB2AEAAAAADc16U/v0AODuPwAAANEjwIhdAHYAAAAAQACnBgB3/wEAAIhitl0AdgAAAABAAKcFAHf/AQAAiGamXQB2AAAAAEAApwQAd/8BAACIapZdAHYAAAAAQADdA8CI3zYEAACAlZwxOw/fAWD7PwAAALubYfb1CAAAAAAE0DUAePkfAAAAPDcD934MwA4AAAAACKBbAHD3HwAAAF6bhXvuArADAAAAAAIYEgDc/QcAACCqUTNxlwBwxu8XAgAAwI56zdQeAQAAAIAAmgcAL/8DAACAx0a8DNAOAAAAAAjg1ADg7j8AAACMmZGbBgAv/wMAAIA5Z2yPAAAAAEAApwUA2/8BAABg3KzcLADY/g8AAABttZy1PQIAAAAAAZwSAGz/BwAAgLEzc5MAYPs/AAAA9NFq5vYIAAAAAATQPQDY/g8AAADjZ+fDAcD2fwAAAOirxeztEQAAAAAIoGsAsP0fAAAA5pihDwUA2/8BAADgHEdncI8AAAAAQADdAoDt/wAAADDPLG0HAAAAAATwdgDw/D8AAACc68gsbgcAAAAABNAlAHj+HwAAAOaaqe0AAAAAgADeDgD3ioS7/wAAAHBMj5n70vJfyPAPAAAAfSLA0Zk71epl/gAAALA77wAAAAAAAQAAAAAQAAAAAAABAAAAABAAAAAAAAEAAAAAEAAAAAAAAQAAAAAQAAAAAEAAAAAAAAQAAAAAQAAAAAAABAAAAABAAAAAAAAEAAAAAEAAAAAAAAQAAAAAEAAAAAAAAQAAAAAQAAAAAAABAAAAABAAAAAAAAEAAAAAEAAAAAAAAQAAAAAEAIcAAAAABAAAAABAAAAAAAAEAAAAAEAAAAAAAAQAAAAAQAAAAAAABAAAAABAAAAAAAABAAAAABAAAAAAAAEAAAAAEAAAAACAs13f+X/KOdfv/3spJTmUAAAA0EeLOfxy9D/03t8AAACA9sP/u3O4RwAAAAAggJcCgDv9AAAAMIdXZ3Q7AAAAACAAAQAAAAAEAAAAAEAAAADgb3bsWAAAAABgkL/1IPYWRgAgAAAAAAABAAAAAAgAAAAAQAAAAAAAAgAAAAAQAAAAACAAAAAAAAEAAAAACAAAAABAAAAAAAACAAAAABAAAAAAgAAAAAAABAAAAAAIAAAAAEAAAAAAAAIAAAAAEAAAAACAAAAAAAAEAAAAALAkwACd6iSVhnRezwAAAABJRU5ErkJggg==",I_={class:"camera__preview"},S_={key:0,class:"camera__bg-notification"},T_=["innerHTML"],__=["width","height"],x_={key:1,class:"camera__countdown-overlay"},O_=["innerHTML","data-countdown"],L_=["src"],k_={class:"camera__controls"},H_={class:"container"},N_={class:"row"},D_={class:"col"},M_={class:"btn-group"},R_={key:0},K_={key:1},V_={key:0,class:"camera__switch-cam"},P_={key:1,class:"base-camera__devices"},G_={name:"BaseCamera",inheritAttrs:!1};function $_(t){const e=atob(t.split(",")[1]),A=new ArrayBuffer(e.length),n=new Uint8Array(A);for(let r=0;r<e.length;r++)n[r]=e.charCodeAt(r);return new Blob([A],{type:"image/png"})}const W_=h.defineComponent({...G_,props:{modelValue:{type:null},enableSwitchCamera:{type:Boolean,default:!0},defaultRearCamera:{type:Boolean,default:!1},enableMirrorCamera:{type:Boolean,default:!1},enableGuide:{type:Boolean,default:!0},guideSrc:{type:String,default:()=>v_},countdown:{type:Number,default:0},ratio:{type:String,default:"3x4"},enableAudio:{type:Boolean,default:!1},enableSelectDevice:{type:Boolean,default:!1},enableCropImage:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(t,{expose:e,emit:A}){const n={"1x1":{width:720,height:720},"3x2":{width:1080,height:720},"2x3":{width:720,height:1080},"4x3":{width:960,height:720},"3x4":{width:720,height:960},"16x9":{width:1280,height:720},"9x16":{width:720,height:1280}},r=t,i=A,s=h.ref(),a=h.ref(),c=h.ref(!1),u=h.ref([]),f=h.ref(),p=h.ref(),g=h.ref(!1),B=h.ref(!1),w=h.ref(0),Q=h.ref(0),b=h.ref(),v=h.computed(()=>u.value.filter(re=>re.kind==="videoinput")),_=h.computed(()=>u.value.filter(re=>re.kind==="audioinput")),S=h.computed({get(){return f.value&&f.value.deviceId},set(re){f.value=v.value.find(me=>me.deviceId===re)}}),E=h.computed({get(){return p.value&&p.value.deviceId},set(re){p.value=_.value.find(me=>me.deviceId===re)}}),L=h.computed(()=>{const re=f.value&&v.value.findIndex(me=>me.deviceId===f.value.deviceId);return r.enableMirrorCamera&&re===0?"mirror-cam":""}),U=h.computed(()=>{const re=f.value&&u.value.findIndex(me=>me.deviceId===f.value.deviceId);return L.value?`${L.value} mirror-device-${re}`:""});function N(){w.value=n[r.ratio]?n[r.ratio].width:s.value.parentElement&&s.value.parentElement.clientWidth,Q.value=n[r.ratio]?n[r.ratio].height:s.value.parentElement&&s.value.parentElement.clientHeight}const V=IB.debounce(()=>{N()},300,{trailing:!0,leading:!1});async function D(){const re={audio:r.enableAudio&&{...p.value?{deviceId:p.value.deviceId}:{}},video:{...f.value?{deviceId:f.value.deviceId}:{},width:{ideal:1024},height:{ideal:1024}}};return navigator.mediaDevices.getUserMedia(re).catch(me=>{console.error(me,"navigator.mediaDevices.getUserMedia: failed")})}function se(){s.value&&s.value.srcObject&&s.value.srcObject.getTracks().forEach(me=>{me.stop()})}async function Be(){return s.value.srcObject=await D(),u.value=await navigator.mediaDevices.enumerateDevices(),{stream:s.value.srcObject,devices:u.value}}function ne(){g.value?(g.value=!1,B.value=!1,se()):(g.value=!0,Be())}function ce(){u.value.length>1&&(se(),f.value=f.value&&f.value.deviceId===v.value[0].deviceId?v.value[v.value.length-1]:v.value[0],Be())}async function Le(re,me){se(),re&&(!me||re.deviceId!==me.deviceId)&&await Be()}h.watch(()=>f.value,Le),h.watch(()=>p.value,Le);function aA(){r.countdown?(b.value=b.value?b.value-1:r.countdown,b.value?setTimeout(aA,1e3):Re()):Re()}e({onCapture:aA});function Re(){B.value=!0;const re=a.value.getContext("2d"),me=s.value,Ye=me&&me.srcObject&&me.srcObject.getTracks(),{aspectRatio:He,width:Ge,height:Ke}=Ye.length&&Ye[0].getSettings(),AA=n[r.ratio],tA=AA.width/AA.height;let qe=AA.width,pA=AA.height;r.enableCropImage?He>tA?qe=pA*He:He<tA&&(pA=qe/He):(qe=Ge,pA=Ke,a.value.width=qe,a.value.height=pA);const ct=L.value?-1:1;re.save(),re.scale(ct,1),re.drawImage(me,qe>a.value.width?(a.value.width-qe)/2:0,pA>a.value.height?(a.value.height-pA)/2:0,qe*ct,pA),re.restore();const et=a.value.toDataURL("image/png");ke(et)}function ke(re){const me=$_(re);i("update:modelValue",{name:`cam-pic-${new Date().toISOString()}`,id:`cam-pic-${new Date().toISOString()}`,blob:me,size:me.size})}return h.onMounted(async()=>{se(),await Be(),f.value=v.value[0],r.enableAudio&&(p.value=_.value[0]),navigator.mediaDevices.addEventListener("devicechange",async re=>{await Be()}),r.defaultRearCamera&&ce(),ne(),window.addEventListener("resize",V),N(),await h.nextTick(),c.value=!0}),h.onBeforeUnmount(()=>{g.value=!1,B.value=!1,se(),window.removeEventListener("resize",V)}),(re,me)=>{const Ye=h.resolveComponent("loading-spinner"),He=h.resolveComponent("svg-icon"),Ge=h.resolveComponent("input-dropdown");return h.openBlock(),h.createElementBlock("div",{class:h.normalizeClass(["camera",U.value])},[h.createElementVNode("div",I_,[c.value?h.createCommentVNode("",!0):(h.openBlock(),h.createElementBlock("div",S_,[h.createVNode(Ye,{color:"#000"},{default:h.withCtx(()=>[h.createElementVNode("span",{class:h.normalizeClass("d-block text-center"),innerHTML:re.$t("camera.waitForCameraNotification")},null,8,T_)]),_:1})])),h.withDirectives(h.createElementVNode("video",{ref_key:"camera",ref:s,class:h.normalizeClass(["camera__video",`aspect-ratio--${r.ratio}`]),autoplay:"",playsinline:""},null,2),[[h.vShow,c.value]]),h.withDirectives(h.createElementVNode("canvas",{ref_key:"canvas",ref:a,class:"camera__canvas",width:w.value,height:Q.value},null,8,__),[[h.vShow,B.value]]),b.value?(h.openBlock(),h.createElementBlock("div",x_,[(h.openBlock(),h.createElementBlock("p",{class:"countdown",key:b.value,innerHTML:b.value,"data-countdown":b.value},null,8,O_))])):h.createCommentVNode("",!0),t.enableGuide&&g.value&&c.value?(h.openBlock(),h.createElementBlock("img",{key:2,class:"camera__guide",src:t.guideSrc},null,8,L_)):h.createCommentVNode("",!0)]),h.createElementVNode("div",k_,[h.createElementVNode("div",H_,[h.createElementVNode("div",N_,[h.createElementVNode("div",D_,[h.createElementVNode("div",M_,[h.createElementVNode("button",{type:"button",class:"camera__toggle btn btn-primary",onClick:ne},[g.value?(h.openBlock(),h.createElementBlock("span",K_,h.toDisplayString(re.$t("common.pause")),1)):(h.openBlock(),h.createElementBlock("span",R_,h.toDisplayString(re.$t("common.play")),1))]),h.createElementVNode("button",{type:"button",class:"camera__capture btn btn-primary",onClick:aA},h.toDisplayString(re.$t("camera.capture")),1)])])])])]),t.enableSwitchCamera&&v.value&&v.value.length>1?(h.openBlock(),h.createElementBlock("div",V_,[h.createElementVNode("button",{class:"btn",onClick:h.withModifiers(ce,["prevent"])},[h.createVNode(He,{symbol:"switch-camera"})])])):h.createCommentVNode("",!0),t.enableSelectDevice?(h.openBlock(),h.createElementBlock("div",P_,[_.value.length&&p.value?(h.openBlock(),h.createBlock(Ge,{key:0,modelValue:E.value,"onUpdate:modelValue":me[0]||(me[0]=Ke=>E.value=Ke),options:_.value.map((Ke,AA)=>({text:Ke.label||`Microphone ${AA+1}`,value:Ke.deviceId}))},null,8,["modelValue","options"])):h.createCommentVNode("",!0),v.value.length?(h.openBlock(),h.createBlock(Ge,{key:1,modelValue:S.value,"onUpdate:modelValue":me[1]||(me[1]=Ke=>S.value=Ke),options:v.value.map((Ke,AA)=>({text:Ke.label||`Camera ${AA+1}`,value:Ke.deviceId}))},null,8,["modelValue","options"])):h.createCommentVNode("",!0)])):h.createCommentVNode("",!0)],2)}}}),L$="",J_=/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,X_=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,Y_=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function z_(t,e){if(t==="__proto__"||t==="constructor"&&e&&typeof e=="object"&&"prototype"in e){q_(t);return}return e}function q_(t){console.warn(`[destr] Dropping "${t}" key to prevent prototype pollution.`)}function Z_(t,e={}){if(typeof t!="string")return t;const A=t.trim();if(t[0]==='"'&&t.endsWith('"')&&!t.includes("\\"))return A.slice(1,-1);if(A.length<=9){const n=A.toLowerCase();if(n==="true")return!0;if(n==="false")return!1;if(n==="undefined")return;if(n==="null")return null;if(n==="nan")return Number.NaN;if(n==="infinity")return Number.POSITIVE_INFINITY;if(n==="-infinity")return Number.NEGATIVE_INFINITY}if(!Y_.test(t)){if(e.strict)throw new SyntaxError("[destr] Invalid JSON");return t}try{if(J_.test(t)||X_.test(t)){if(e.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(t,z_)}return JSON.parse(t)}catch(n){if(e.strict)throw n;return t}}const j_=/#/g,ex=/&/g,Ax=/\//g,tx=/=/g,Xu=/\+/g,nx=/%5e/gi,rx=/%60/gi,ix=/%7c/gi,sx=/%20/gi;function ox(t){return encodeURI(""+t).replace(ix,"|")}function Yu(t){return ox(typeof t=="string"?t:JSON.stringify(t)).replace(Xu,"%2B").replace(sx,"+").replace(j_,"%23").replace(ex,"%26").replace(rx,"`").replace(nx,"^").replace(Ax,"%2F")}function zu(t){return Yu(t).replace(tx,"%3D")}function SB(t=""){try{return decodeURIComponent(""+t)}catch{return""+t}}function ax(t){return SB(t.replace(Xu," "))}function lx(t){return SB(t.replace(Xu," "))}function cx(t=""){const e={};t[0]==="?"&&(t=t.slice(1));for(const A of t.split("&")){const n=A.match(/([^=]+)=?(.*)/)||[];if(n.length<2)continue;const r=ax(n[1]);if(r==="__proto__"||r==="constructor")continue;const i=lx(n[2]||"");e[r]===void 0?e[r]=i:Array.isArray(e[r])?e[r].push(i):e[r]=[e[r],i]}return e}function ux(t,e){return(typeof e=="number"||typeof e=="boolean")&&(e=String(e)),e?Array.isArray(e)?e.map(A=>`${zu(t)}=${Yu(A)}`).join("&"):`${zu(t)}=${Yu(e)}`:zu(t)}function fx(t){return Object.keys(t).filter(e=>t[e]!==void 0).map(e=>ux(e,t[e])).filter(Boolean).join("&")}const dx=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,hx=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,px=/^([/\\]\s*){2,}[^/\\]/,gx=/\/$|\/\?|\/#/,mx=/^\.?\//;function TB(t,e={}){return typeof e=="boolean"&&(e={acceptRelative:e}),e.strict?dx.test(t):hx.test(t)||(e.acceptRelative?px.test(t):!1)}function qu(t="",e){return e?gx.test(t):t.endsWith("/")}function Bx(t="",e){if(!e)return(qu(t)?t.slice(0,-1):t)||"/";if(!qu(t,!0))return t||"/";let A=t,n="";const r=t.indexOf("#");r>=0&&(A=t.slice(0,r),n=t.slice(r));const[i,...s]=A.split("?");return((i.endsWith("/")?i.slice(0,-1):i)||"/")+(s.length>0?`?${s.join("?")}`:"")+n}function wx(t="",e){if(!e)return t.endsWith("/")?t:t+"/";if(qu(t,!0))return t||"/";let A=t,n="";const r=t.indexOf("#");if(r>=0&&(A=t.slice(0,r),n=t.slice(r),!A))return n;const[i,...s]=A.split("?");return i+"/"+(s.length>0?`?${s.join("?")}`:"")+n}function Cx(t,e){if(Ex(e)||TB(t))return t;const A=Bx(e);return t.startsWith(A)?t:Fx(A,t)}function yx(t,e){const A=xB(t),n={...cx(A.search),...e};return A.search=fx(n),bx(A)}function Ex(t){return!t||t==="/"}function Qx(t){return t&&t!=="/"}function Fx(t,...e){let A=t||"";for(const n of e.filter(r=>Qx(r)))if(A){const r=n.replace(mx,"");A=wx(A)+r}else A=n;return A}const _B=Symbol.for("ufo:protocolRelative");function xB(t="",e){const A=t.match(/^[\s\0]*(blob:|data:|javascript:|vbscript:)(.*)/i);if(A){const[,p,g=""]=A;return{protocol:p.toLowerCase(),pathname:g,href:p+g,auth:"",host:"",search:"",hash:""}}if(!TB(t,{acceptRelative:!0}))return e?xB(e+t):OB(t);const[,n="",r,i=""]=t.replace(/\\/g,"/").match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/)||[],[,s="",a=""]=i.match(/([^#/?]*)(.*)?/)||[],{pathname:c,search:u,hash:f}=OB(a.replace(/\/(?=[A-Za-z]:)/,""));return{protocol:n.toLowerCase(),auth:r?r.slice(0,Math.max(0,r.length-1)):"",host:s,pathname:c,search:u,hash:f,[_B]:!n}}function OB(t=""){const[e="",A="",n=""]=(t.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:e,search:A,hash:n}}function bx(t){const e=t.pathname||"",A=t.search?(t.search.startsWith("?")?"":"?")+t.search:"",n=t.hash||"",r=t.auth?t.auth+"@":"",i=t.host||"";return(t.protocol||t[_B]?(t.protocol||"")+"//":"")+r+i+e+A+n}class Ux extends Error{constructor(e,A){super(e,A),this.name="FetchError",A!=null&&A.cause&&!this.cause&&(this.cause=A.cause)}}function vx(t){var c,u,f,p,g;const e=((c=t.error)==null?void 0:c.message)||((u=t.error)==null?void 0:u.toString())||"",A=((f=t.request)==null?void 0:f.method)||((p=t.options)==null?void 0:p.method)||"GET",n=((g=t.request)==null?void 0:g.url)||String(t.request)||"/",r=`[${A}] ${JSON.stringify(n)}`,i=t.response?`${t.response.status} ${t.response.statusText}`:"<no response>",s=`${r}: ${i}${e?` ${e}`:""}`,a=new Ux(s,t.error?{cause:t.error}:void 0);for(const B of["request","options","response"])Object.defineProperty(a,B,{get(){return t[B]}});for(const[B,w]of[["data","_data"],["status","status"],["statusCode","status"],["statusText","statusText"],["statusMessage","statusText"]])Object.defineProperty(a,B,{get(){return t.response&&t.response[w]}});return a}const Ix=new Set(Object.freeze(["PATCH","POST","PUT","DELETE"]));function LB(t="GET"){return Ix.has(t.toUpperCase())}function Sx(t){if(t===void 0)return!1;const e=typeof t;return e==="string"||e==="number"||e==="boolean"||e===null?!0:e!=="object"?!1:Array.isArray(t)?!0:t.buffer?!1:t.constructor&&t.constructor.name==="Object"||typeof t.toJSON=="function"}const Tx=new Set(["image/svg","application/xml","application/xhtml","application/html"]),_x=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function xx(t=""){if(!t)return"json";const e=t.split(";").shift()||"";return _x.test(e)?"json":Tx.has(e)||e.startsWith("text/")?"text":"blob"}function Ox(t,e,A=globalThis.Headers){const n={...e,...t};if(e!=null&&e.params&&(t!=null&&t.params)&&(n.params={...e==null?void 0:e.params,...t==null?void 0:t.params}),e!=null&&e.query&&(t!=null&&t.query)&&(n.query={...e==null?void 0:e.query,...t==null?void 0:t.query}),e!=null&&e.headers&&(t!=null&&t.headers)){n.headers=new A((e==null?void 0:e.headers)||{});for(const[r,i]of new A((t==null?void 0:t.headers)||{}))n.headers.set(r,i)}return n}const Lx=new Set([408,409,425,429,500,502,503,504]),kx=new Set([101,204,205,304]);function kB(t={}){const{fetch:e=globalThis.fetch,Headers:A=globalThis.Headers,AbortController:n=globalThis.AbortController}=t;async function r(a){const c=a.error&&a.error.name==="AbortError"&&!a.options.timeout||!1;if(a.options.retry!==!1&&!c){let f;typeof a.options.retry=="number"?f=a.options.retry:f=LB(a.options.method)?0:1;const p=a.response&&a.response.status||500;if(f>0&&(Array.isArray(a.options.retryStatusCodes)?a.options.retryStatusCodes.includes(p):Lx.has(p))){const g=a.options.retryDelay||0;return g>0&&await new Promise(B=>setTimeout(B,g)),i(a.request,{...a.options,retry:f-1})}}const u=vx(a);throw Error.captureStackTrace&&Error.captureStackTrace(u,i),u}const i=async function(c,u={}){var B;const f={request:c,options:Ox(u,t.defaults,A),response:void 0,error:void 0};f.options.method=(B=f.options.method)==null?void 0:B.toUpperCase(),f.options.onRequest&&await f.options.onRequest(f),typeof f.request=="string"&&(f.options.baseURL&&(f.request=Cx(f.request,f.options.baseURL)),(f.options.query||f.options.params)&&(f.request=yx(f.request,{...f.options.params,...f.options.query}))),f.options.body&&LB(f.options.method)&&(Sx(f.options.body)?(f.options.body=typeof f.options.body=="string"?f.options.body:JSON.stringify(f.options.body),f.options.headers=new A(f.options.headers||{}),f.options.headers.has("content-type")||f.options.headers.set("content-type","application/json"),f.options.headers.has("accept")||f.options.headers.set("accept","application/json")):("pipeTo"in f.options.body&&typeof f.options.body.pipeTo=="function"||typeof f.options.body.pipe=="function")&&("duplex"in f.options||(f.options.duplex="half")));let p;if(!f.options.signal&&f.options.timeout){const w=new n;p=setTimeout(()=>w.abort(),f.options.timeout),f.options.signal=w.signal}try{f.response=await e(f.request,f.options)}catch(w){return f.error=w,f.options.onRequestError&&await f.options.onRequestError(f),await r(f)}finally{p&&clearTimeout(p)}if(f.response.body&&!kx.has(f.response.status)&&f.options.method!=="HEAD"){const w=(f.options.parseResponse?"json":f.options.responseType)||xx(f.response.headers.get("content-type")||"");switch(w){case"json":{const Q=await f.response.text(),b=f.options.parseResponse||Z_;f.response._data=b(Q);break}case"stream":{f.response._data=f.response.body;break}default:f.response._data=await f.response[w]()}}return f.options.onResponse&&await f.options.onResponse(f),!f.options.ignoreResponseError&&f.response.status>=400&&f.response.status<600?(f.options.onResponseError&&await f.options.onResponseError(f),await r(f)):f.response},s=async function(c,u){return(await i(c,u))._data};return s.raw=i,s.native=(...a)=>e(...a),s.create=(a={})=>kB({...t,defaults:{...t.defaults,...a}}),s}const Zu=function(){if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("unable to locate global object")}(),Hx=Zu.fetch||(()=>Promise.reject(new Error("[ofetch] global.fetch is not supported!"))),Nx=Zu.Headers,Dx=Zu.AbortController,Mx=kB({fetch:Hx,Headers:Nx,AbortController:Dx}),Rx={class:"file-upload"},Kx=["src"],Vx=["onClick"],Px=["onClick"],Gx=["for"],$x=["innerHTML"],Wx={key:0,class:"file-upload__loading-spinner"},Jx=[h.createElementVNode("span",{class:"spinner-border",role:"status"},[h.createElementVNode("span",{class:"visually-hidden"},"Loading...")],-1)];async function Xx(t){return await new Promise(e=>{let A=new FileReader;A.onload=()=>e(A.result),A.readAsDataURL(t)})}const Yx=h.defineComponent({__name:"file-upload",props:{modelValue:{type:Array,default:[]},src:{type:String},name:{type:String,default:()=>$e()},id:{type:String,default:()=>$e()},label:{type:String,default:"Select file"},placeholder:{type:String,default:""},variant:{type:String,default:""},disabled:{type:Boolean,default:!1},readOnly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},pattern:{type:String,default:null},multiple:{type:Boolean,default:!1},accept:{type:String,default:"image/*"},endpoint:{type:String,default:""},toDataUrl:{type:Boolean,default:!0},authToken:{type:String,default:""},customFetch:null,baseResponsePath:{type:String,default:"/media"},enablePreview:{type:Boolean,default:!0},previewWidth:{type:Number,default:0}},emits:["update:modelValue","update:src"],setup(t,{emit:e}){const A=t,n=e,r=h.ref([]),i=h.ref([]),s=h.ref(!1),a=h.computed(()=>A.modelValue.length?A.modelValue:A.src?[{type:"",src:A.src}]:i.value);h.watch(()=>r.value,async f=>{i.value=await Promise.all(f.map(async p=>({src:A.toDataUrl?await Xx(p):await u(p),type:p.type})))},{deep:!0}),h.watch(()=>i.value,async f=>{const p=A.multiple?f:f[0];n("update:modelValue",p),A.multiple||n("update:src",f[0]&&f[0].src)},{deep:!0});function c(f){r.value.splice(f,1),(!i.value||!i.value.length)&&n("update:src","")}async function u(f){const p=new FormData;p.append("file",f),s.value=!0;const B=await(A.customFetch||Mx)(A.endpoint,{method:"POST",...A.customFetch?{}:{headers:{Accept:"application/json",...A.authToken?{Authorization:`Bearer ${A.authToken}`}:{}}},body:p}).catch(Q=>{console.error("Error",Q)});return s.value=!1,`${A.baseResponsePath==="/media"&&B.path.endsWith(".svg")?"/api/v1/assets":A.baseResponsePath}/${B.path}`}return(f,p)=>{const g=h.resolveComponent("svg-icon"),B=h.resolveComponent("input-file");return h.openBlock(),h.createElementBlock("div",Rx,[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(a.value,(w,Q)=>(h.openBlock(),h.createElementBlock("div",{key:w.src,class:h.normalizeClass(t.enablePreview?"file-upload__thumbnail":"file-upload__reset")},[t.enablePreview?(h.openBlock(),h.createElementBlock(h.Fragment,{key:0},[h.createElementVNode("img",{src:`${w.src}${t.previewWidth?`?width=${t.previewWidth}`:""}`,class:"img-thumbnail rounded"},null,8,Kx),h.createElementVNode("button",{onClick:h.withModifiers(b=>c(Q),["prevent"]),class:"btn btn--close"},[h.createVNode(g,{symbol:"x"})],8,Vx)],64)):(h.openBlock(),h.createElementBlock("button",{key:1,onClick:h.withModifiers(b=>c(Q),["prevent"]),class:"btn btn--close btn-outline-dark"},[h.createVNode(g,{symbol:"x"})],8,Px))],2))),128)),h.createVNode(B,{modelValue:r.value,"onUpdate:modelValue":p[0]||(p[0]=w=>r.value=w),id:t.id,name:t.name,accept:t.accept,class:"d-none"},null,8,["modelValue","id","name","accept"]),h.createElementVNode("label",{for:t.id,class:"file-upload__label"},[h.renderSlot(f.$slots,"button",{},()=>[h.createElementVNode("span",{class:"btn btn-outline-dark",innerHTML:t.label},null,8,$x)]),h.createVNode(h.Transition,{name:"fade"},{default:h.withCtx(()=>[s.value?(h.openBlock(),h.createElementBlock("span",Wx,Jx)):h.createCommentVNode("",!0)]),_:1})],8,Gx)])}}}),H$="",zx={class:"upload-group"},qx=["innerHTML"],Zx={class:"upload-group__list"},jx={class:"img-container"},eO=["src"],AO=["onClick"],tO={role:"button",class:"img-thumbnail d-flex justify-content-center align-items-center"},HB=h.defineComponent({__name:"upload-group",props:{modelValue:{type:Array,default:()=>[]},name:{type:String,default:()=>$e()},id:{type:String,default:()=>$e()},label:{type:String,default:""},variant:{type:String,default:""},disabled:{type:Boolean,default:!1},required:{type:Boolean,default:!1},accept:{type:String,default:"image/*"},endpoint:{type:String,default:""},authToken:{type:String,default:""},customFetch:null,baseResponsePath:{type:String,default:"/media"},previewWidth:{type:Number,default:0}},emits:["update:modelValue"],setup(t,{emit:e}){const A=t,n=e,r=h.ref(""),i=h.computed({get(){return A.modelValue},set(a){n("update:modelValue",a)}});function s(a){i.value.splice(a,1),n("update:modelValue",i.value)}return h.watch(r,(a,c)=>{a&&(n("update:modelValue",[...i.value,a]),r.value="")}),(a,c)=>{const u=h.resolveComponent("svg-icon"),f=h.resolveComponent("file-upload"),p=h.resolveComponent("sortable-list");return h.openBlock(),h.createElementBlock("div",zx,[t.label?(h.openBlock(),h.createElementBlock("label",{key:0,innerHTML:t.label},null,8,qx)):h.createCommentVNode("",!0),h.createElementVNode("div",Zx,[h.createVNode(p,{modelValue:i.value,"onUpdate:modelValue":c[1]||(c[1]=g=>i.value=g),vertical:!1,class:"mb-3"},{"list-item":h.withCtx(({item:g,index:B})=>[h.createElementVNode("div",jx,[h.createElementVNode("img",{src:`${g}${t.previewWidth?`?width=${t.previewWidth}`:""}`,class:"img-thumbnail"},null,8,eO),h.createElementVNode("button",{onClick:h.withModifiers(w=>s(B),["prevent"]),class:"btn btn--close"},[h.createVNode(u,{symbol:"x"})],8,AO)])]),"list-append":h.withCtx(()=>[h.createVNode(f,{src:r.value,"onUpdate:src":c[0]||(c[0]=g=>r.value=g),multiple:!1,endpoint:t.endpoint,"custom-fetch":t.customFetch,"to-data-url":!t.endpoint,"auth-token":t.authToken,disabled:t.disabled,"base-response-path":t.baseResponsePath},{button:h.withCtx(()=>[h.createElementVNode("span",tO,[h.createVNode(u,{symbol:"plus"})])]),_:1},8,["src","endpoint","custom-fetch","to-data-url","auth-token","disabled","base-response-path"])]),_:1},8,["modelValue"])])])}}}),N$="",nO={class:"asset-uploader"},rO=["innerHTML"],iO=h.defineComponent({__name:"asset-uploader",props:{modelValue:{type:Array,default:()=>[]},name:{type:String,default:()=>$e()},id:{type:String,default:()=>$e()},type:{type:String,default:""},label:{type:String,default:""},variant:{type:String,default:""},disabled:{type:Boolean,default:!1},required:{type:Boolean,default:!1},accept:{type:String,default:"image/*"},endpoint:{type:String,default:""},authToken:{type:String,default:""},customFetch:null,mediaTypeMap:{type:Object,default:()=>({svg:"Svg",png:"Image",jpg:"Image"})},baseResponsePath:{type:String,default:"/media"},previewWidth:{type:Number,default:0}},emits:["update:modelValue"],setup(t,{emit:e}){const A=t,n=e,r=h.computed({get(){return A.modelValue.map(i=>i.src)},set(i){n("update:modelValue",i.map((s,a)=>({mediaType:A.modelValue[a]&&A.modelValue[a].mediaType||s.includes("data:image")?s.includes("data:image/svg")?"Svg":"Image":A.mediaTypeMap[s.split(".")[1]],src:s,name:A.modelValue[a]&&A.modelValue[a].name||`${A.name}-${a}`,...A.type?{type:A.type}:{}})))}});return(i,s)=>(h.openBlock(),h.createElementBlock("div",nO,[t.label?(h.openBlock(),h.createElementBlock("label",{key:0,innerHTML:t.label},null,8,rO)):h.createCommentVNode("",!0),h.createVNode(HB,{modelValue:r.value,"onUpdate:modelValue":s[0]||(s[0]=a=>r.value=a),endpoint:t.endpoint,"custom-fetch":t.customFetch,"auth-token":t.authToken,disabled:t.disabled,"preview-width":t.previewWidth,"base-response-path":t.baseResponsePath},null,8,["modelValue","endpoint","custom-fetch","auth-token","disabled","preview-width","base-response-path"])]))}}),D$="",sO={class:"carousel d-flex"},oO=["onClick"],NB=h.defineComponent({__name:"base-carousel",props:{modelValue:{type:Number,default:-1},config:{type:Object,default:null},messages:{type:Object,default:{}},items:{type:Array,default:[]},navigation:{type:Boolean,default:!0}},emits:["update:modelValue","select"],setup(t,{emit:e}){const A=e,n=h.ref(),r=h.ref();function i(){n.value.scrollTo({top:0,left:n.value.scrollLeft-n.value.clientWidth>0?n.value.scrollLeft-n.value.clientWidth:0,behavior:"smooth"})}function s(){console.log(n.value.clientWidth,n.value.scrollLeft),n.value.scrollTo({top:0,left:n.value.scrollLeft-n.value.clientWidth<=r.value.clientWidth?n.value.scrollLeft+n.value.clientWidth:r.value.clientWidth,behavior:"smooth"})}function a(c){A("update:modelValue",c)}return(c,u)=>{const f=h.resolveComponent("svg-icon");return h.openBlock(),h.createElementBlock("div",sO,[t.navigation?(h.openBlock(),h.createElementBlock("button",{key:0,class:"carousel__control btn btn-link text-light",type:"button",onClick:h.withModifiers(i,["prevent","stop"])},[h.createVNode(f,{symbol:"chevron-left"})])):h.createCommentVNode("",!0),h.createElementVNode("div",{ref_key:"viewport",ref:n,class:"carousel__viewport flex-grow-1"},[h.createElementVNode("div",{ref_key:"track",ref:r,class:"carousel__track d-flex justify-center align-items-center"},[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(t.items,(p,g)=>h.renderSlot(c.$slots,"carousel-item",{key:p.src,item:p,index:g},()=>[h.createElementVNode("div",{class:h.normalizeClass(["carousel__item",g===t.modelValue?"selected":""]),onClick:B=>a(g)},h.toDisplayString(p),11,oO)])),128))],512)],512),t.navigation?(h.openBlock(),h.createElementBlock("button",{key:1,class:"carousel__control btn btn-link text-light",type:"button",onClick:h.withModifiers(s,["prevent","stop"])},[h.createVNode(f,{symbol:"chevron-right"})])):h.createCommentVNode("",!0)])}}}),M$="",aO={class:"media-thumbnails"},lO=["onClick"],cO={class:"img-container"},uO=h.defineComponent({__name:"media-thumbnails",props:{modelValue:{default:null},config:{type:Object,default:null},messages:{type:Object,default:{}},assets:{type:Array,default:[]}},emits:["update:modelValue","select"],setup(t,{emit:e}){const A=e,n=h.ref(-1);function r(i){n.value=i,A("update:modelValue",i),A("select",i)}return(i,s)=>{const a=h.resolveComponent("base-image");return h.openBlock(),h.createElementBlock("div",aO,[h.createVNode(NB,{items:t.assets},{"carousel-item":h.withCtx(c=>[h.createElementVNode("a",{role:"button",class:h.normalizeClass(["carousel__item media-thumbnails__thumbnail",c.index===t.modelValue||c.index===n.value?"is-active":""]),onClick:u=>r(c.index)},[h.createElementVNode("div",cO,[h.createVNode(a,{src:c.item.thumbnail||c.item.src,class:"img-fluid"},null,8,["src"])])],10,lO)]),_:1},8,["items"])])}}}),R$="",fO={class:"progress-steps"},dO={class:"progress-steps__list"},hO={class:"progress-step"},pO=["checked","id","value","disabled","read-only","required","onChange"],gO=["for"],mO=["innerHTML"],BO=["for"],wO=["innerHTML"],CO=h.defineComponent({__name:"progress-steps",props:{modelValue:{type:Number,default:0},progress:{type:Number,default:0},steps:{type:Array},label:{type:String,default:""},reveal:{type:Boolean,default:!1}},emits:["update:modelValue","update:progress"],setup(t,{emit:e}){const A=t,n=e;function r(i){n("update:modelValue",i),i>=A.progress&&n("update:progress",i)}return(i,s)=>(h.openBlock(),h.createElementBlock("div",fO,[h.createElementVNode("ul",dO,[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(t.steps,(a,c)=>(h.openBlock(),h.createElementBlock("li",{key:c,class:h.normalizeClass(["progress-steps__step",{"progress-steps__step--disabled":c>t.progress+(t.reveal?1:0),"progress-steps__step--active":c===(t.modelValue||0)}])},[h.renderSlot(i.$slots,"step",{},()=>[h.createElementVNode("div",hO,[h.createElementVNode("input",{type:"radio",checked:c<=(t.progress||0),id:`step-${c}`,name:"step",class:"form-check-input",value:a.value,disabled:a.disabled||c>t.progress+(t.reveal?1:0),"read-only":a.readOnly,required:a.required,onChange:u=>r(c)},null,40,pO),h.createElementVNode("label",{for:`step-${c}`},[h.renderSlot(i.$slots,"button",{step:a},()=>[h.createElementVNode("span",{class:"btn rounded-circle",innerHTML:a.text},null,8,mO)])],8,gO),h.createElementVNode("label",{for:`step-${c}`},[h.renderSlot(i.$slots,"label",{step:a},()=>[h.createElementVNode("span",{class:"form-check-label",innerHTML:a.label},null,8,wO)])],8,BO)])])],2))),128))])]))}}),K$="";/*!
164
+ `)+be+`return __p
165
+ }`;var ct=P1(function(){return Et(I,Ve+"return "+be).apply(A,L)});if(ct.source=be,ym(ct))throw ct;return ct}function n6(l){return Ft(l).toLowerCase()}function r6(l){return Ft(l).toUpperCase()}function i6(l,u,p){if(l=Ft(l),l&&(p||u===A))return Xv(l);if(!l||!(u=En(u)))return l;var w=ar(l),b=ar(u),I=qv(w,b),L=jv(w,b)+1;return Gi(w,I,L).join("")}function a6(l,u,p){if(l=Ft(l),l&&(p||u===A))return l.slice(0,eE(l)+1);if(!l||!(u=En(u)))return l;var w=ar(l),b=jv(w,ar(u))+1;return Gi(w,0,b).join("")}function o6(l,u,p){if(l=Ft(l),l&&(p||u===A))return l.replace(yp,"");if(!l||!(u=En(u)))return l;var w=ar(l),b=qv(w,ar(u));return Gi(w,b).join("")}function s6(l,u){var p=K,w=de;if(Wt(u)){var b="separator"in u?u.separator:b;p="length"in u?ot(u.length):p,w="omission"in u?En(u.omission):w}l=Ft(l);var I=l.length;if(To(l)){var L=ar(l);I=L.length}if(p>=I)return l;var P=p-xo(w);if(P<1)return w;var z=L?Gi(L,0,P).join(""):l.slice(0,P);if(b===A)return z+w;if(L&&(P+=z.length-P),Cm(b)){if(l.slice(P).search(b)){var he,pe=z;for(b.global||(b=Np(b.source,Ft(Bv.exec(b))+"g")),b.lastIndex=0;he=b.exec(pe);)var be=he.index;z=z.slice(0,be===A?P:be)}}else if(l.indexOf(En(b),P)!=P){var Ie=z.lastIndexOf(b);Ie>-1&&(z=z.slice(0,Ie))}return z+w}function l6(l){return l=Ft(l),l&&_e.test(l)?l.replace(et,LG):l}var c6=Ro(function(l,u,p){return l+(p?" ":"")+u.toUpperCase()}),Em=VE("toUpperCase");function R1(l,u,p){return l=Ft(l),u=p?A:u,u===A?xG(l)?PG(l):EG(l):l.match(u)||[]}var P1=ut(function(l,u){try{return bn(l,A,u)}catch(p){return ym(p)?p:new rt(p)}}),u6=jr(function(l,u){return Hn(u,function(p){p=_r(p),Xr(l,p,Bm(l[p],l))}),l});function d6(l){var u=l==null?0:l.length,p=Je();return l=u?Kt(l,function(w){if(typeof w[1]!="function")throw new Rn(a);return[p(w[0]),w[1]]}):[],ut(function(w){for(var b=-1;++b<u;){var I=l[b];if(bn(I[0],this,w))return bn(I[1],this,w)}})}function f6(l){return LW(Vn(l,h))}function Qm(l){return function(){return l}}function h6(l,u){return l==null||l!==l?u:l}var p6=$E(),m6=$E(!0);function pn(l){return l}function Fm(l){return yE(typeof l=="function"?l:Vn(l,h))}function g6(l){return bE(Vn(l,h))}function B6(l,u){return vE(l,Vn(u,h))}var w6=ut(function(l,u){return function(p){return al(p,l,u)}}),y6=ut(function(l,u){return function(p){return al(l,p,u)}});function Um(l,u,p){var w=EA(u),b=Mu(u,w);p==null&&!(Wt(u)&&(b.length||!w.length))&&(p=u,u=l,l=this,b=Mu(u,EA(u)));var I=!(Wt(p)&&"chain"in p)||!!p.chain,L=ei(l);return Hn(b,function(P){var z=u[P];l[P]=z,L&&(l.prototype[P]=function(){var he=this.__chain__;if(I||he){var pe=l(this.__wrapped__),be=pe.__actions__=dn(this.__actions__);return be.push({func:z,args:arguments,thisArg:l}),pe.__chain__=he,pe}return z.apply(l,Hi([this.value()],arguments))})}),l}function C6(){return IA._===this&&(IA._=YG),this}function km(){}function b6(l){return l=ot(l),ut(function(u){return EE(u,l)})}var v6=im(Kt),E6=im(Gv),Q6=im(Ip);function V1(l){return dm(l)?Sp(_r(l)):tY(l)}function F6(l){return function(u){return l==null?A:Ia(l,u)}}var U6=WE(),k6=WE(!0);function _m(){return[]}function Im(){return!1}function _6(){return{}}function I6(){return""}function S6(){return!0}function T6(l,u){if(l=ot(l),l<1||l>te)return[];var p=j,w=KA(l,j);u=Je(u),l-=j;for(var b=Dp(w,u);++p<l;)u(p);return b}function x6(l){return at(l)?Kt(l,_r):Qn(l)?[l]:dn(s1(Ft(l)))}function D6(l){var u=++GG;return Ft(l)+u}var M6=Pu(function(l,u){return l+u},0),O6=am("ceil"),N6=Pu(function(l,u){return l/u},1),L6=am("floor");function H6(l){return l&&l.length?Du(l,pn,Gp):A}function R6(l,u){return l&&l.length?Du(l,Je(u,2),Gp):A}function P6(l){return zv(l,pn)}function V6(l,u){return zv(l,Je(u,2))}function K6(l){return l&&l.length?Du(l,pn,Jp):A}function $6(l,u){return l&&l.length?Du(l,Je(u,2),Jp):A}var G6=Pu(function(l,u){return l*u},1),W6=am("round"),Y6=Pu(function(l,u){return l-u},0);function z6(l){return l&&l.length?xp(l,pn):0}function J6(l,u){return l&&l.length?xp(l,Je(u,2)):0}return _.after=g5,_.ary=w1,_.assign=rz,_.assignIn=x1,_.assignInWith=ed,_.assignWith=iz,_.at=az,_.before=y1,_.bind=Bm,_.bindAll=u6,_.bindKey=C1,_.castArray=_5,_.chain=m1,_.chunk=LY,_.compact=HY,_.concat=RY,_.cond=d6,_.conforms=f6,_.constant=Qm,_.countBy=z8,_.create=oz,_.curry=b1,_.curryRight=v1,_.debounce=E1,_.defaults=sz,_.defaultsDeep=lz,_.defer=B5,_.delay=w5,_.difference=PY,_.differenceBy=VY,_.differenceWith=KY,_.drop=$Y,_.dropRight=GY,_.dropRightWhile=WY,_.dropWhile=YY,_.fill=zY,_.filter=X8,_.flatMap=Z8,_.flatMapDeep=e5,_.flatMapDepth=t5,_.flatten=d1,_.flattenDeep=JY,_.flattenDepth=XY,_.flip=y5,_.flow=p6,_.flowRight=m6,_.fromPairs=qY,_.functions=mz,_.functionsIn=gz,_.groupBy=A5,_.initial=ZY,_.intersection=e8,_.intersectionBy=t8,_.intersectionWith=A8,_.invert=wz,_.invertBy=yz,_.invokeMap=r5,_.iteratee=Fm,_.keyBy=i5,_.keys=EA,_.keysIn=hn,_.map=zu,_.mapKeys=bz,_.mapValues=vz,_.matches=g6,_.matchesProperty=B6,_.memoize=Xu,_.merge=Ez,_.mergeWith=D1,_.method=w6,_.methodOf=y6,_.mixin=Um,_.negate=qu,_.nthArg=b6,_.omit=Qz,_.omitBy=Fz,_.once=C5,_.orderBy=a5,_.over=v6,_.overArgs=b5,_.overEvery=E6,_.overSome=Q6,_.partial=wm,_.partialRight=Q1,_.partition=o5,_.pick=Uz,_.pickBy=M1,_.property=V1,_.propertyOf=F6,_.pull=a8,_.pullAll=h1,_.pullAllBy=o8,_.pullAllWith=s8,_.pullAt=l8,_.range=U6,_.rangeRight=k6,_.rearg=v5,_.reject=c5,_.remove=c8,_.rest=E5,_.reverse=mm,_.sampleSize=d5,_.set=_z,_.setWith=Iz,_.shuffle=f5,_.slice=u8,_.sortBy=m5,_.sortedUniq=B8,_.sortedUniqBy=w8,_.split=Zz,_.spread=Q5,_.tail=y8,_.take=C8,_.takeRight=b8,_.takeRightWhile=v8,_.takeWhile=E8,_.tap=H8,_.throttle=F5,_.thru=Yu,_.toArray=I1,_.toPairs=O1,_.toPairsIn=N1,_.toPath=x6,_.toPlainObject=T1,_.transform=Sz,_.unary=U5,_.union=Q8,_.unionBy=F8,_.unionWith=U8,_.uniq=k8,_.uniqBy=_8,_.uniqWith=I8,_.unset=Tz,_.unzip=gm,_.unzipWith=p1,_.update=xz,_.updateWith=Dz,_.values=Ko,_.valuesIn=Mz,_.without=S8,_.words=R1,_.wrap=k5,_.xor=T8,_.xorBy=x8,_.xorWith=D8,_.zip=M8,_.zipObject=O8,_.zipObjectDeep=N8,_.zipWith=L8,_.entries=O1,_.entriesIn=N1,_.extend=x1,_.extendWith=ed,Um(_,_),_.add=M6,_.attempt=P1,_.camelCase=Hz,_.capitalize=L1,_.ceil=O6,_.clamp=Oz,_.clone=I5,_.cloneDeep=T5,_.cloneDeepWith=x5,_.cloneWith=S5,_.conformsTo=D5,_.deburr=H1,_.defaultTo=h6,_.divide=N6,_.endsWith=Rz,_.eq=sr,_.escape=Pz,_.escapeRegExp=Vz,_.every=J8,_.find=q8,_.findIndex=c1,_.findKey=cz,_.findLast=j8,_.findLastIndex=u1,_.findLastKey=uz,_.floor=L6,_.forEach=g1,_.forEachRight=B1,_.forIn=dz,_.forInRight=fz,_.forOwn=hz,_.forOwnRight=pz,_.get=bm,_.gt=M5,_.gte=O5,_.has=Bz,_.hasIn=vm,_.head=f1,_.identity=pn,_.includes=n5,_.indexOf=jY,_.inRange=Nz,_.invoke=Cz,_.isArguments=xa,_.isArray=at,_.isArrayBuffer=N5,_.isArrayLike=fn,_.isArrayLikeObject=nA,_.isBoolean=L5,_.isBuffer=Wi,_.isDate=H5,_.isElement=R5,_.isEmpty=P5,_.isEqual=V5,_.isEqualWith=K5,_.isError=ym,_.isFinite=$5,_.isFunction=ei,_.isInteger=F1,_.isLength=ju,_.isMap=U1,_.isMatch=G5,_.isMatchWith=W5,_.isNaN=Y5,_.isNative=z5,_.isNil=X5,_.isNull=J5,_.isNumber=k1,_.isObject=Wt,_.isObjectLike=Xt,_.isPlainObject=dl,_.isRegExp=Cm,_.isSafeInteger=q5,_.isSet=_1,_.isString=Zu,_.isSymbol=Qn,_.isTypedArray=Vo,_.isUndefined=j5,_.isWeakMap=Z5,_.isWeakSet=ez,_.join=n8,_.kebabCase=Kz,_.last=$n,_.lastIndexOf=r8,_.lowerCase=$z,_.lowerFirst=Gz,_.lt=tz,_.lte=Az,_.max=H6,_.maxBy=R6,_.mean=P6,_.meanBy=V6,_.min=K6,_.minBy=$6,_.stubArray=_m,_.stubFalse=Im,_.stubObject=_6,_.stubString=I6,_.stubTrue=S6,_.multiply=G6,_.nth=i8,_.noConflict=C6,_.noop=km,_.now=Ju,_.pad=Wz,_.padEnd=Yz,_.padStart=zz,_.parseInt=Jz,_.random=Lz,_.reduce=s5,_.reduceRight=l5,_.repeat=Xz,_.replace=qz,_.result=kz,_.round=W6,_.runInContext=W,_.sample=u5,_.size=h5,_.snakeCase=jz,_.some=p5,_.sortedIndex=d8,_.sortedIndexBy=f8,_.sortedIndexOf=h8,_.sortedLastIndex=p8,_.sortedLastIndexBy=m8,_.sortedLastIndexOf=g8,_.startCase=e6,_.startsWith=t6,_.subtract=Y6,_.sum=z6,_.sumBy=J6,_.template=A6,_.times=T6,_.toFinite=ti,_.toInteger=ot,_.toLength=S1,_.toLower=n6,_.toNumber=Gn,_.toSafeInteger=nz,_.toString=Ft,_.toUpper=r6,_.trim=i6,_.trimEnd=a6,_.trimStart=o6,_.truncate=s6,_.unescape=l6,_.uniqueId=D6,_.upperCase=c6,_.upperFirst=Em,_.each=g1,_.eachRight=B1,_.first=f1,Um(_,function(){var l={};return Ur(_,function(u,p){_t.call(_.prototype,p)||(l[p]=u)}),l}(),{chain:!1}),_.VERSION=n,Hn(["bind","bindKey","curry","curryRight","partial","partialRight"],function(l){_[l].placeholder=_}),Hn(["drop","take"],function(l,u){wt.prototype[l]=function(p){p=p===A?1:hA(ot(p),0);var w=this.__filtered__&&!u?new wt(this):this.clone();return w.__filtered__?w.__takeCount__=KA(p,w.__takeCount__):w.__views__.push({size:KA(p,j),type:l+(w.__dir__<0?"Right":"")}),w},wt.prototype[l+"Right"]=function(p){return this.reverse()[l](p).reverse()}}),Hn(["filter","map","takeWhile"],function(l,u){var p=u+1,w=p==V||p==$;wt.prototype[l]=function(b){var I=this.clone();return I.__iteratees__.push({iteratee:Je(b,3),type:p}),I.__filtered__=I.__filtered__||w,I}}),Hn(["head","last"],function(l,u){var p="take"+(u?"Right":"");wt.prototype[l]=function(){return this[p](1).value()[0]}}),Hn(["initial","tail"],function(l,u){var p="drop"+(u?"":"Right");wt.prototype[l]=function(){return this.__filtered__?new wt(this):this[p](1)}}),wt.prototype.compact=function(){return this.filter(pn)},wt.prototype.find=function(l){return this.filter(l).head()},wt.prototype.findLast=function(l){return this.reverse().find(l)},wt.prototype.invokeMap=ut(function(l,u){return typeof l=="function"?new wt(this):this.map(function(p){return al(p,l,u)})}),wt.prototype.reject=function(l){return this.filter(qu(Je(l)))},wt.prototype.slice=function(l,u){l=ot(l);var p=this;return p.__filtered__&&(l>0||u<0)?new wt(p):(l<0?p=p.takeRight(-l):l&&(p=p.drop(l)),u!==A&&(u=ot(u),p=u<0?p.dropRight(-u):p.take(u-l)),p)},wt.prototype.takeRightWhile=function(l){return this.reverse().takeWhile(l).reverse()},wt.prototype.toArray=function(){return this.take(j)},Ur(wt.prototype,function(l,u){var p=/^(?:filter|find|map|reject)|While$/.test(u),w=/^(?:head|last)$/.test(u),b=_[w?"take"+(u=="last"?"Right":""):u],I=w||/^find/.test(u);b&&(_.prototype[u]=function(){var L=this.__wrapped__,P=w?[1]:arguments,z=L instanceof wt,he=P[0],pe=z||at(L),be=function(ht){var yt=b.apply(_,Hi([ht],P));return w&&Ie?yt[0]:yt};pe&&p&&typeof he=="function"&&he.length!=1&&(z=pe=!1);var Ie=this.__chain__,Ve=!!this.__actions__.length,qe=I&&!Ie,ct=z&&!Ve;if(!I&&pe){L=ct?L:new wt(this);var je=l.apply(L,P);return je.__actions__.push({func:Yu,args:[be],thisArg:A}),new Pn(je,Ie)}return qe&&ct?l.apply(this,P):(je=this.thru(be),qe?w?je.value()[0]:je.value():je)})}),Hn(["pop","push","shift","sort","splice","unshift"],function(l){var u=wu[l],p=/^(?:push|sort|unshift)$/.test(l)?"tap":"thru",w=/^(?:pop|shift)$/.test(l);_.prototype[l]=function(){var b=arguments;if(w&&!this.__chain__){var I=this.value();return u.apply(at(I)?I:[],b)}return this[p](function(L){return u.apply(at(L)?L:[],b)})}}),Ur(wt.prototype,function(l,u){var p=_[u];if(p){var w=p.name+"";_t.call(No,w)||(No[w]=[]),No[w].push({name:u,func:p})}}),No[Ru(A,Q).name]=[{name:"wrapper",func:A}],wt.prototype.clone=lW,wt.prototype.reverse=cW,wt.prototype.value=uW,_.prototype.at=R8,_.prototype.chain=P8,_.prototype.commit=V8,_.prototype.next=K8,_.prototype.plant=G8,_.prototype.reverse=W8,_.prototype.toJSON=_.prototype.valueOf=_.prototype.value=Y8,_.prototype.first=_.prototype.head,Zs&&(_.prototype[Zs]=$8),_},Do=VG();Qa?((Qa.exports=Do)._=Do,Fp._=Do):IA._=Do}).call(Is)}(wc,wc.exports);var aC=wc.exports;const mH="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAABAAAAAQACAYAAAB/HSuDAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAHkJJREFUeNrs3Q1u8zaXgNHS8JK4/xVwTyzytgnS1HZsixR/7jlAgZkMBl+hT6Z1H1FyqrX+BQAAAOzt4hAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAEA0V4cAANaTc64j//NLKcl/CwCwllRrdRQAwJDfjDgAAHPyCAAAGP79uwOAAAAAAAAIAAAAAIAAAAAAAAgAAAAAwEn8CgAATOq3l+mNetv+rP9eAIAAAAAAAOF5BAAAAAAEAAAAAEAAAAAAAJZwdQgA2N2tl9Z5UZ1zwjkBQDReAghAmAHPwIdzA4DI7AAAINxwB8+eR0IAADuxAwCA0IO/Ac954jwBQAAAgE2HOUOd88Z5A0BEHgEAINwABy3OPyEAgNXYAQBAyMHf8OZcci4BIAAAwKbDmkEN5xcAAgAAGMxwvjnfABAAAGC1QcwQhnMQAAQAAAxd4JwEQAAAAEMWOEcBEAAAYKrBylCF8xUABAAANh2kDFE4hwFAAADA0ATOaQC44eIQAGBQgvcdOTdb/fQgADzDDgAADP7gXAdAAACAMQORYQjnPQAIAAAYgMDnAAAEAAAMPLD+58JnAgABAADDP/h8AIAAAMA6w43BBp8VnxUABAAADDPgs+OzA0BDF4cAgDMZYMBnAYAxrg4BAIYdGPu5ePf9AADwCjsAADD8g88IAAHYAQCAoQYm+rzYDQBAL3YAAGD4B58dAALwKwAANPF519LwAj5XAAgAAAAAwCAeAQAAAAABAAAAABAAAAAAAAEAAAAAEAAAAAAAAQAAAAAQAAAAAAABAAAAABAAAAAAQAAAAAAABAAAAABAAAAAAAAEAAAAAEAAAAAAAAQAAAAAQAAAAAAABAAAAAAQAAAAAAABAAAAABAAAAAAAAEAAAAAEAAAAAAAAQAAAAAQAAAiyznXj38cCcA6A8AjqVZrOcCqF+S3/l5KSY4OYJ0B4Cc7AAA2uigHsAYBIAAAuDAHsJYACAAAuCgHsBYBCAAALHPB7dlcoIVn1hIRAEAAAGDQ8A9gbQJAAAAIcIHt7j/Q0rNriggAIAAAMOGFOoC1BUAAAGBCnvsHVogAdgEACAAAGP4BEQAAAQAAAAAQAAACc/cfmI1dAAACAACGf0AEEAEABAAADP+ACACAAAAAAAAIAACRuPsPrMIuAAABAADDPyACiAAAAgAAAAAgAAAE5e4/sCq7AAAEAAAM/4AIIAIACAAAAACAAAAQhLv/wC7sAgAQAADofEENYM0CQAAAmJg7YYC1DwABAMAFsDtpwJI8CgAgAADQ+AIawBoGgAAAMDF3vgCshQACAADunAHWMgAEAIDVueMFYE0EEAAAXOi6YwZsxQsBAQQAAAz/gLUNAAEAYD/ucAFYIwEEAADcIQOscQAIAACrc2cLwFoJIAAA4M4YYK0DQAAAWJ07WgDWTAABAAB3xABrHgACAMDq3MkCsHYCCAAAuBMGWPsAEAAAVvfbHSwXwIAI8P4aCoAAAAAAAAgAAHNw9x/AWgggAAAAAAACAMDq3PECsCYCCAAAAABAN6lWL1kF6OXzTdbucgFYLwEEAAAAAKA7jwAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAACgEMAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAIAAAAAAAAgAAJHknOvHP44EgHUaYGWpVmslwL0Lyp9/K6UkRwbAWg2wIjsAAJ68oHz0dwCs1QACAAAAACAAAAAAAAIAwOlsHQWwlgMIAADBebEUAAACAAAAnEiUBRAAAAAAAAEA4D7PjAJY0wEEAAAAAEAAANidZ00BrM0AAgAAAAAgAAAAAAACAMAUvCwKwNoOIAAAAAAAAgDA7rxkCsAaDSAAAAAAAAIAAAAAIAAATMFLogCs8QACAAAAACAAAOzOy6UArNUAAgAAAAAgAAAAAAACAAAAACAAAJzD26EBrPUAAgAAAAAgAADszlulAazZAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAEAjfhYKwJoPIAAAAAAAAgDA7vycFIC1G0AAAAAAAAQAAAAAQAAAAAAABAAAAABAAAAAAAAEAAAAAEAAAPiSc66OAoC1H0AAAAjM70gDWMMBBAAAAABAAAAAAAAEAAAAAEAAAAAAAAQAAAAAQAAAAAAABAAAAAAQAAAAAAABACCMUkpyFACs5QACAICLQwCs/QDLSbVWRwEAAAA2ZwcAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAAAgADgEAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAABAc1eHAIgs51x//q2UkhwZAGs8wG7sAABcGD75dwCs8QACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAAAgAAFH5nWgAaziAAACwiVJKchQArP0AAgAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAIAAAMC/cs7VUQCwdgMIAAAbKKUkRwHAmg8gAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAA04fekAazZAAIAwCb8LjSAtR5AAAAAAAAEAAAAAEAAAAAAAAQAAAAAQAAAAAAABAAAAABAAABoxu9KA1irAQQAgE34fWgAAAQAAABYmMgLIAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAMBu/Lw1gjQYQAAA24WeiAKztAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAAIAwEv8XBSANR1AAABwEQmANRpgWanW6igAAADA5uwAAAAAAAEAAAAAEAAAAAAAAQAAAAAQAAAAAAABAAAAABAAAAAAAAEAAAAAEAAAAABAAAAAAAAEAAAAAEAAAAAAAAQAAAAAQAAAAAAABAAAAABAAAAAAAAEAAAAABAAAAAAAAEAAAAAEAAAAAAAAQAAAAAQAAAAAAABAAAAABAAAAAAAAEAAAAABACHAAAAAAQAAAAAQAAAAAAABAAAAABAAAAAAAAEAAAAAEAAAAAAAAQAAAAAQAAAAAAAAQAAAAAQAAAAAAABAAAAABAAAAAAgLNdHQKA1+Wc6+f/XEpJjgiAtRdgdqnW6igAvHHx+Z0LUQDrL8DsPAIA0PHCFABrLIAAAAAAAAgAAAAAgAAAAAAACAAAAOzA8/8AAgCAi1QAABAAAPrwc1MA1mQAAQAAAAAQAAAAAAABAAAAABAAANbgRYAA1lQAAQBgE146BWAtBhAAAAAAAAEAAAAAEAAAtuCZVQBrKYAAAAAAAAgAAKvw8ikAazCAAAAAAAAIAAAAAIAAALAFL68CsIYCCAAAAACAAACwCi+hArD2AggAAAAAgAAAAAAACAAAW/ASKwBrJ4AAALAJz6ICWHMBBAAAAABAAAAAAAAEAIAteJYVwJoJIAAAAAAAAgDAKryUCsBaCyAAAAAAAAIAQASeaQWwVgIIAAAAAIAAALAKz6YCWGMBBAAAAABAAACIwLOtAAAIAAAAhCaSAggAAEvxjCqAtRVAAAAAAAAEAAAAAEAAANiCZ1wBrI0AAgDAJjyrCmBNBRAAAAAAAAEAIAJbXQGsiQACAAAAACAAAKzCM6sA1lIAAQAAAAAQAAAAAAABAGAZ97au2tIKYK0EEAAANr+wdUELYK0EGCnV6tdXAAAAYHd2AAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAKAQwAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAgAAAAAAACAAAAACAAADAQTnn+vGPIwFYvwBoJdVqfQaY6cL51t9LKcnRAaxfABxhBwAAAAAIAADMwHZawBoFgAAAAAAACAAAu3CHDbA2ASAAAAAAAAIAwCq8LRuwpgEgAABgqy1gTQJAAAAAAAAEAIBl2DILWMsAEAAAsOUWsBYBIAAAAAAAAgDAMn7bOuvOGzDSb2uQ7f8AAgAAAAAgAAAAAAACAEAwHgMAZmT7P4AAAAAAAAgAALzDnTTAmgWAAACAxwAAaw4AAgAAAAAgAAAsw8sAgRl4+R+AAAAAAAAIAAC04M4aYI0CQAAAwGMAgDUGAAEAAAAAEAAAluFlgMAIXv4HIAAAAAAAAgAAPdgFAJzJ3X8AAQAAAAAQAAAAAAABAIBDPAYAnMH2fwABAAAAABAAADiDXQBAT+7+AwgAAAAAgAAAwJnsAgB6cPcfQAAAAAAABAAAAABAAACgC48BAC3Z/g8gAAAAAAACAAAj2QUAtODuP4AAAAAAAAgAAMzALgDgCHf/AQQAAAAAQAAAYCZ2AQDvcPcfQAAAAAAABAAAZuROHWBNAUAAAAAAAAEAAAAAEAAAWIYtu4C1BIBbUq1eCg0AAAC7swMAAAAABAAAAABAAAAAAAAEAAAAAEAAAAAAAAQAAAAAQAAAAAAABAAAAABAAAAAAAABAAAAABAAAAAAAAEAAAAAEAAAAAAAAQAAAAAQAAAAAAABAAAAABAAAAAAQAAAAAAABAAAAABAAAAAAAAEAAAAAEAAAAAAAAQAAAAAQAAAAAAABAAAAAAQABwCAAAAEAAAAAAAAQAAAAAQAAAAAAABAAAAABAAAAAAAAEAAAAAEAAAAAAAAQAAAAAEAAD4JudcP/5xJMDnE4B1pVp9XwBwf7D4+bdSSnJkwGcUgPXYAQDA04PFo78DPqMACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAAAgAAQfkZMfAZBkAAAAAAAAQAAHZXSkmOAvgsAiAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAABAHDnn6igAIAAAYGgAABAAAOA2vzsOPpMACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAfMk5V0cBfKYBEAAACMzvjYPPJgACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAABf/F44+GwDIAAAAAAAAgAAuyulJEcBfEYBEAAAAAAAAQAAAAAQAAAAAAABAAAAABAAAAAAAAEAAAAAEAAA+CPnXB0F8BkHQAAAIDC/Lw4+qwAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAAIAAA8xc+Kgc8sAAIAAAAAsJBUa3UUAPgj5/z1peBOIvgsAyAAAAAAAIvxCAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAADAIVeHAGAeOef682+llOTIANYwAI5KtVZHAWCSC+V7XEAD1jQAjrIDAGCyC2OAiGuiKAAgAAAY9AECr5/CAIAAAGDQBwi83goDAAIAgCEfIPgaLQ4A3OYlgICLyMkHfReygPXUegogAABsdGHqAhWw7lp3AQQAABeeANZl6zKAAACwykWmi0qANdZs6zWwIy8BBHDhCDDdmulFrAACAIAhHyD4GisOAAgAAAZ9gMDrsjAAIAAAGPQBAq/jwgDAP7wEENjWvQs+gz4AvicAAQAAAADY0sUhAAAAAAEAAAAAEAAAAACAFfgVAOBXt16S5AVJAOC7GViLlwACT11U3OJCAwB8TwPrsAMA8PvIABDg+10QAAQAcEEAAAgCgAAAGPgBAEEAEAAAAz8AIAgAS/ASQDD0v8VFAQD43gcEAGDDL35f/gDgmsA1AQgAgC93AMA1AyAAAL68AQDXFIAAAPhyBgBccwACAPjy9eULALgmAQQA8CXryxUAcK0CCAAQ6wvVlygA4PoFuOfqEMC6fGECAGdfb4x4ZAAQAMDADwAgCAACABj4AQAEAeCTdwDAyR59KRr4AQDXPoAAAAAAALzt4hAAAACAAAAAAAAIAAAAAIAAACf4eLGMt80CAOB6Ex7zEkCWXIAf/d+9TRYAANed8H9Xh4AdFl8AABh5jSoGIACAoR8AADEABAAw9AMAIAaAAIChHwAAxAAQADD0AwCAGADP8isAbDH0W0ABAHAtCwIAFkoAAHCNiwAgALDSomhBBADAdS8IAFj8AADA9TAIAKy00FnkAABwjewaGQGATRc1CxoAAK6bXTcjAGDxAgAA19OupxEAWGmhskgBAIBrbAQALEoAAOCa2zU3AgCrLUIWIAAAcB2OAIAFBwAAcF2OAMBqi4zFBQAAXKczr6tDwFEWFAAA6H+93foXBBAAwOAPAABCAAIAGPwBAEAIYEXeAcB/3FtEDP0AAOA6HgGAjRcPCwYAALiWRwAAAAAAFnFxCAAAAEAAAAAAAAQAAAAAQAAAAAAABAAAAABAAAAAAAAEAAAAAEAAAAAAAAQAAAAAEAAAAAAAAQAAAAAQAAAAAAABAAAAABAAAAAAAAEAAAAAEAAAAACAG64OwRg55/r5P5dSkiMCAACYgegp1VodhUEn/Xc+AAAAgDmInjwCMMFJDwAAYEaiN48AOKkBAACGz0t2A/RnB4DhHwAAwOwkAOAEBgAAMEMJADQ5cW11AQAAdvbKzCMC9ONXAAYO/oZ/AADAvGReOosdAE5mAACAU7w6A9kNIAAY/gEAAEQAXuQRgJOHf4M/AACAWWoEOwCcsAAAAEN4OaAAYPgHAAAQAUQAAcDwDwAAIALwKu8A6Dj4G/4BAADMWwLA5iejExEAAMDsNROPADgBAQAApuKRAAHA8A8AACACiAACgOEfAABABEAAMPwDAACIAAIAhn8AAAARQAAw/Bv+AQAARAABwPAPAACACCAAGP4BAAAQAQQAwz8AAAAigABg+AcAAEAEEAAM/wAAACKACCAAGP4BAABEABEgcgAw/AMAAIgAAgCGfwAAALObALC6Z4uPEwgAAGC/CBB1F0C4AGD4BwAAEAEiRoBQAcDwDwAAIAJEjQBhAoDhHwAAQASIHAG8BNDwDwAAYMYTAJwYAAAAmPUEACcEAAAAZj4BwIkAAACA2U8AGP5fthMAAAAgdgSINBemWquzAAAAADbnHQAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAIAA4BAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAANHId/S+Qc64//1ZKSf6rAQAAYFUzzrqX2Q7Io78DAADAisP/DLOuRwAAAAAggGEBwF1+AAAAohk5C9sBAAAAAAEMCQC/FQ8vAQQAAGBXo3YB2AEAAAAADc16U/v0AODuPwAAANEjwIhdAHYAAAAAQACnBgB3/wEAAIhitl0AdgAAAABAAKcFAHf/AQAAiGamXQB2AAAAAEAApwQAd/8BAACIapZdAHYAAAAAQADdA8CI3zYEAACAlZwxOw/fAWD7PwAAALubYfb1CAAAAAAE0DUAePkfAAAAPDcD934MwA4AAAAACKBbAHD3HwAAAF6bhXvuArADAAAAAAIYEgDc/QcAACCqUTNxlwBwxu8XAgAAwI56zdQeAQAAAIAAmgcAL/8DAACAx0a8DNAOAAAAAAjg1ADg7j8AAACMmZGbBgAv/wMAAIA5Z2yPAAAAAEAApwUA2/8BAABg3KzcLADY/g8AAABttZy1PQIAAAAAAZwSAGz/BwAAgLEzc5MAYPs/AAAA9NFq5vYIAAAAAATQPQDY/g8AAADjZ+fDAcD2fwAAAOirxeztEQAAAAAIoGsAsP0fAAAA5pihDwUA2/8BAADgHEdncI8AAAAAQADdAoDt/wAAADDPLG0HAAAAAATwdgDw/D8AAACc68gsbgcAAAAABNAlAHj+HwAAAOaaqe0AAAAAgADeDgD3ioS7/wAAAHBMj5n70vJfyPAPAAAAfSLA0Zk71epl/gAAALA77wAAAAAAAQAAAAAQAAAAAAABAAAAABAAAAAAAAEAAAAAEAAAAAAAAQAAAAAQAAAAAEAAAAAAAAQAAAAAQAAAAAAABAAAAABAAAAAAAAEAAAAAEAAAAAAAAQAAAAAEAAAAAAAAQAAAAAQAAAAAAABAAAAABAAAAAAAAEAAAAAEAAAAAAAAQAAAAAEAIcAAAAABAAAAABAAAAAAAAEAAAAAEAAAAAAAAQAAAAAQAAAAAAABAAAAABAAAAAAAABAAAAABAAAAAAAAEAAAAAEAAAAACAs13f+X/KOdfv/3spJTmUAAAA0EeLOfxy9D/03t8AAACA9sP/u3O4RwAAAAAggJcCgDv9AAAAMIdXZ3Q7AAAAACAAAQAAAAAEAAAAAEAAAADgb3bsWAAAAABgkL/1IPYWRgAgAAAAAAABAAAAAAgAAAAAQAAAAAAAAgAAAAAQAAAAACAAAAAAAAEAAAAACAAAAABAAAAAAAACAAAAABAAAAAAgAAAAAAABAAAAAAIAAAAAEAAAAAAAAIAAAAAEAAAAACAAAAAAAAEAAAAALAkwACd6iSVhnRezwAAAABJRU5ErkJggg==",gH={class:"camera__preview"},BH={key:0,class:"camera__bg-notification"},wH=["innerHTML"],yH=["width","height"],CH={key:1,class:"camera__countdown-overlay"},bH=["innerHTML","data-countdown"],vH=["src"],EH={class:"camera__controls"},QH={class:"container"},FH={class:"row"},UH={class:"col"},kH={class:"btn-group"},_H={key:0},IH={key:1},SH={key:0,class:"camera__switch-cam"},TH={key:1,class:"base-camera__devices"},xH={name:"BaseCamera",inheritAttrs:!1};function DH(t){const e=atob(t.split(",")[1]),A=new ArrayBuffer(e.length),n=new Uint8Array(A);for(let r=0;r<e.length;r++)n[r]=e.charCodeAt(r);return new Blob([A],{type:"image/png"})}const MH=o.defineComponent({...xH,props:{modelValue:{type:null},enableSwitchCamera:{type:Boolean,default:!0},defaultRearCamera:{type:Boolean,default:!1},enableMirrorCamera:{type:Boolean,default:!1},enableGuide:{type:Boolean,default:!0},guideSrc:{type:String,default:()=>mH},countdown:{type:Number,default:0},ratio:{type:String,default:"3x4"},enableAudio:{type:Boolean,default:!1},enableSelectDevice:{type:Boolean,default:!1},enableCropImage:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(t,{expose:e,emit:A}){const n={"1x1":{width:720,height:720},"3x2":{width:1080,height:720},"2x3":{width:720,height:1080},"4x3":{width:960,height:720},"3x4":{width:720,height:960},"16x9":{width:1280,height:720},"9x16":{width:720,height:1280}},r=t,i=A,a=o.ref(),s=o.ref(),c=o.ref(!1),d=o.ref([]),f=o.ref(),h=o.ref(),m=o.ref(!1),g=o.ref(!1),B=o.ref(0),y=o.ref(0),v=o.ref(),Q=o.computed(()=>d.value.filter(te=>te.kind==="videoinput")),k=o.computed(()=>d.value.filter(te=>te.kind==="audioinput")),F=o.computed({get(){return f.value&&f.value.deviceId},set(te){f.value=Q.value.find(q=>q.deviceId===te)}}),C=o.computed({get(){return h.value&&h.value.deviceId},set(te){h.value=k.value.find(q=>q.deviceId===te)}}),D=o.computed(()=>{const te=f.value&&Q.value.findIndex(q=>q.deviceId===f.value.deviceId);return r.enableMirrorCamera&&te===0?"mirror-cam":""}),E=o.computed(()=>{const te=f.value&&d.value.findIndex(q=>q.deviceId===f.value.deviceId);return D.value?`${D.value} mirror-device-${te}`:""});function x(){B.value=n[r.ratio]?n[r.ratio].width:a.value.parentElement&&a.value.parentElement.clientWidth,y.value=n[r.ratio]?n[r.ratio].height:a.value.parentElement&&a.value.parentElement.clientHeight}const O=aC.debounce(()=>{x()},300,{trailing:!0,leading:!1});async function S(){const te={audio:r.enableAudio&&{...h.value?{deviceId:h.value.deviceId}:{}},video:{...f.value?{deviceId:f.value.deviceId}:{},width:{ideal:1024},height:{ideal:1024}}};return navigator.mediaDevices.getUserMedia(te).catch(q=>{console.error(q,"navigator.mediaDevices.getUserMedia: failed")})}function K(){a.value&&a.value.srcObject&&a.value.srcObject.getTracks().forEach(q=>{q.stop()})}async function de(){return a.value.srcObject=await S(),d.value=await navigator.mediaDevices.enumerateDevices(),{stream:a.value.srcObject,devices:d.value}}function ce(){m.value?(m.value=!1,g.value=!1,K()):(m.value=!0,de())}function ge(){d.value.length>1&&(K(),f.value=f.value&&f.value.deviceId===Q.value[0].deviceId?Q.value[Q.value.length-1]:Q.value[0],de())}async function V(te,q){K(),te&&(!q||te.deviceId!==q.deviceId)&&await de()}o.watch(()=>f.value,V),o.watch(()=>h.value,V);function X(){r.countdown?(v.value=v.value?v.value-1:r.countdown,v.value?setTimeout(X,1e3):$()):$()}e({onCapture:X});function $(){g.value=!0;const te=s.value.getContext("2d"),q=a.value,me=q&&q.srcObject&&q.srcObject.getTracks(),{aspectRatio:j,width:Ee,height:R}=me.length&&me[0].getSettings(),J=n[r.ratio],Ae=J.width/J.height;let se=J.width,U=J.height;r.enableCropImage?j>Ae?se=U*j:j<Ae&&(U=se/j):(se=Ee,U=R,s.value.width=se,s.value.height=U);const Z=D.value?-1:1;te.save(),te.scale(Z,1),te.drawImage(q,se>s.value.width?(s.value.width-se)/2:0,U>s.value.height?(s.value.height-U)/2:0,se*Z,U),te.restore();const Ue=s.value.toDataURL("image/png");re(Ue)}function re(te){const q=DH(te);i("update:modelValue",{name:`cam-pic-${new Date().toISOString()}`,id:`cam-pic-${new Date().toISOString()}`,blob:q,size:q.size})}return o.onMounted(async()=>{K(),await de(),f.value=Q.value[0],r.enableAudio&&(h.value=k.value[0]),navigator.mediaDevices.addEventListener("devicechange",async te=>{await de()}),r.defaultRearCamera&&ge(),ce(),window.addEventListener("resize",O),x(),await o.nextTick(),c.value=!0}),o.onBeforeUnmount(()=>{m.value=!1,g.value=!1,K(),window.removeEventListener("resize",O)}),(te,q)=>{const me=o.resolveComponent("loading-spinner"),j=o.resolveComponent("svg-icon"),Ee=o.resolveComponent("input-dropdown");return o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["camera",E.value])},[o.createElementVNode("div",gH,[c.value?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",BH,[o.createVNode(me,{color:"#000"},{default:o.withCtx(()=>[o.createElementVNode("span",{class:o.normalizeClass("d-block text-center"),innerHTML:te.$t("camera.waitForCameraNotification")},null,8,wH)]),_:1})])),o.withDirectives(o.createElementVNode("video",{ref_key:"camera",ref:a,class:o.normalizeClass(["camera__video",`aspect-ratio--${r.ratio}`]),autoplay:"",playsinline:""},null,2),[[o.vShow,c.value]]),o.withDirectives(o.createElementVNode("canvas",{ref_key:"canvas",ref:s,class:"camera__canvas",width:B.value,height:y.value},null,8,yH),[[o.vShow,g.value]]),v.value?(o.openBlock(),o.createElementBlock("div",CH,[(o.openBlock(),o.createElementBlock("p",{class:"countdown",key:v.value,innerHTML:v.value,"data-countdown":v.value},null,8,bH))])):o.createCommentVNode("",!0),t.enableGuide&&m.value&&c.value?(o.openBlock(),o.createElementBlock("img",{key:2,class:"camera__guide",src:t.guideSrc},null,8,vH)):o.createCommentVNode("",!0)]),o.createElementVNode("div",EH,[o.createElementVNode("div",QH,[o.createElementVNode("div",FH,[o.createElementVNode("div",UH,[o.createElementVNode("div",kH,[o.createElementVNode("button",{type:"button",class:"camera__toggle btn btn-primary",onClick:ce},[m.value?(o.openBlock(),o.createElementBlock("span",IH,o.toDisplayString(te.$t("common.pause")),1)):(o.openBlock(),o.createElementBlock("span",_H,o.toDisplayString(te.$t("common.play")),1))]),o.createElementVNode("button",{type:"button",class:"camera__capture btn btn-primary",onClick:X},o.toDisplayString(te.$t("camera.capture")),1)])])])])]),t.enableSwitchCamera&&Q.value&&Q.value.length>1?(o.openBlock(),o.createElementBlock("div",SH,[o.createElementVNode("button",{class:"btn",onClick:o.withModifiers(ge,["prevent"])},[o.createVNode(j,{symbol:"switch-camera"})])])):o.createCommentVNode("",!0),t.enableSelectDevice?(o.openBlock(),o.createElementBlock("div",TH,[k.value.length&&h.value?(o.openBlock(),o.createBlock(Ee,{key:0,modelValue:C.value,"onUpdate:modelValue":q[0]||(q[0]=R=>C.value=R),options:k.value.map((R,J)=>({text:R.label||`Microphone ${J+1}`,value:R.deviceId}))},null,8,["modelValue","options"])):o.createCommentVNode("",!0),Q.value.length?(o.openBlock(),o.createBlock(Ee,{key:1,modelValue:F.value,"onUpdate:modelValue":q[1]||(q[1]=R=>F.value=R),options:Q.value.map((R,J)=>({text:R.label||`Camera ${J+1}`,value:R.deviceId}))},null,8,["modelValue","options"])):o.createCommentVNode("",!0)])):o.createCommentVNode("",!0)],2)}}}),_J="",OH=/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,NH=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,LH=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function HH(t,e){if(t==="__proto__"||t==="constructor"&&e&&typeof e=="object"&&"prototype"in e){RH(t);return}return e}function RH(t){console.warn(`[destr] Dropping "${t}" key to prevent prototype pollution.`)}function PH(t,e={}){if(typeof t!="string")return t;const A=t.trim();if(t[0]==='"'&&t.endsWith('"')&&!t.includes("\\"))return A.slice(1,-1);if(A.length<=9){const n=A.toLowerCase();if(n==="true")return!0;if(n==="false")return!1;if(n==="undefined")return;if(n==="null")return null;if(n==="nan")return Number.NaN;if(n==="infinity")return Number.POSITIVE_INFINITY;if(n==="-infinity")return Number.NEGATIVE_INFINITY}if(!LH.test(t)){if(e.strict)throw new SyntaxError("[destr] Invalid JSON");return t}try{if(OH.test(t)||NH.test(t)){if(e.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(t,HH)}return JSON.parse(t)}catch(n){if(e.strict)throw n;return t}}const VH=/#/g,KH=/&/g,$H=/\//g,GH=/=/g,mh=/\+/g,WH=/%5e/gi,YH=/%60/gi,zH=/%7c/gi,JH=/%20/gi;function XH(t){return encodeURI(""+t).replace(zH,"|")}function gh(t){return XH(typeof t=="string"?t:JSON.stringify(t)).replace(mh,"%2B").replace(JH,"+").replace(VH,"%23").replace(KH,"%26").replace(YH,"`").replace(WH,"^").replace($H,"%2F")}function Bh(t){return gh(t).replace(GH,"%3D")}function oC(t=""){try{return decodeURIComponent(""+t)}catch{return""+t}}function qH(t){return oC(t.replace(mh," "))}function jH(t){return oC(t.replace(mh," "))}function ZH(t=""){const e={};t[0]==="?"&&(t=t.slice(1));for(const A of t.split("&")){const n=A.match(/([^=]+)=?(.*)/)||[];if(n.length<2)continue;const r=qH(n[1]);if(r==="__proto__"||r==="constructor")continue;const i=jH(n[2]||"");e[r]===void 0?e[r]=i:Array.isArray(e[r])?e[r].push(i):e[r]=[e[r],i]}return e}function eR(t,e){return(typeof e=="number"||typeof e=="boolean")&&(e=String(e)),e?Array.isArray(e)?e.map(A=>`${Bh(t)}=${gh(A)}`).join("&"):`${Bh(t)}=${gh(e)}`:Bh(t)}function tR(t){return Object.keys(t).filter(e=>t[e]!==void 0).map(e=>eR(e,t[e])).filter(Boolean).join("&")}const AR=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,nR=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,rR=/^([/\\]\s*){2,}[^/\\]/,iR=/\/$|\/\?|\/#/,aR=/^\.?\//;function sC(t,e={}){return typeof e=="boolean"&&(e={acceptRelative:e}),e.strict?AR.test(t):nR.test(t)||(e.acceptRelative?rR.test(t):!1)}function wh(t="",e){return e?iR.test(t):t.endsWith("/")}function oR(t="",e){if(!e)return(wh(t)?t.slice(0,-1):t)||"/";if(!wh(t,!0))return t||"/";let A=t,n="";const r=t.indexOf("#");r>=0&&(A=t.slice(0,r),n=t.slice(r));const[i,...a]=A.split("?");return((i.endsWith("/")?i.slice(0,-1):i)||"/")+(a.length>0?`?${a.join("?")}`:"")+n}function sR(t="",e){if(!e)return t.endsWith("/")?t:t+"/";if(wh(t,!0))return t||"/";let A=t,n="";const r=t.indexOf("#");if(r>=0&&(A=t.slice(0,r),n=t.slice(r),!A))return n;const[i,...a]=A.split("?");return i+"/"+(a.length>0?`?${a.join("?")}`:"")+n}function lR(t,e){if(uR(e)||sC(t))return t;const A=oR(e);return t.startsWith(A)?t:fR(A,t)}function cR(t,e){const A=cC(t),n={...ZH(A.search),...e};return A.search=tR(n),hR(A)}function uR(t){return!t||t==="/"}function dR(t){return t&&t!=="/"}function fR(t,...e){let A=t||"";for(const n of e.filter(r=>dR(r)))if(A){const r=n.replace(aR,"");A=sR(A)+r}else A=n;return A}const lC=Symbol.for("ufo:protocolRelative");function cC(t="",e){const A=t.match(/^[\s\0]*(blob:|data:|javascript:|vbscript:)(.*)/i);if(A){const[,h,m=""]=A;return{protocol:h.toLowerCase(),pathname:m,href:h+m,auth:"",host:"",search:"",hash:""}}if(!sC(t,{acceptRelative:!0}))return e?cC(e+t):uC(t);const[,n="",r,i=""]=t.replace(/\\/g,"/").match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/)||[],[,a="",s=""]=i.match(/([^#/?]*)(.*)?/)||[],{pathname:c,search:d,hash:f}=uC(s.replace(/\/(?=[A-Za-z]:)/,""));return{protocol:n.toLowerCase(),auth:r?r.slice(0,Math.max(0,r.length-1)):"",host:a,pathname:c,search:d,hash:f,[lC]:!n}}function uC(t=""){const[e="",A="",n=""]=(t.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:e,search:A,hash:n}}function hR(t){const e=t.pathname||"",A=t.search?(t.search.startsWith("?")?"":"?")+t.search:"",n=t.hash||"",r=t.auth?t.auth+"@":"",i=t.host||"";return(t.protocol||t[lC]?(t.protocol||"")+"//":"")+r+i+e+A+n}class pR extends Error{constructor(e,A){super(e,A),this.name="FetchError",A!=null&&A.cause&&!this.cause&&(this.cause=A.cause)}}function mR(t){var c,d,f,h,m;const e=((c=t.error)==null?void 0:c.message)||((d=t.error)==null?void 0:d.toString())||"",A=((f=t.request)==null?void 0:f.method)||((h=t.options)==null?void 0:h.method)||"GET",n=((m=t.request)==null?void 0:m.url)||String(t.request)||"/",r=`[${A}] ${JSON.stringify(n)}`,i=t.response?`${t.response.status} ${t.response.statusText}`:"<no response>",a=`${r}: ${i}${e?` ${e}`:""}`,s=new pR(a,t.error?{cause:t.error}:void 0);for(const g of["request","options","response"])Object.defineProperty(s,g,{get(){return t[g]}});for(const[g,B]of[["data","_data"],["status","status"],["statusCode","status"],["statusText","statusText"],["statusMessage","statusText"]])Object.defineProperty(s,g,{get(){return t.response&&t.response[B]}});return s}const gR=new Set(Object.freeze(["PATCH","POST","PUT","DELETE"]));function dC(t="GET"){return gR.has(t.toUpperCase())}function BR(t){if(t===void 0)return!1;const e=typeof t;return e==="string"||e==="number"||e==="boolean"||e===null?!0:e!=="object"?!1:Array.isArray(t)?!0:t.buffer?!1:t.constructor&&t.constructor.name==="Object"||typeof t.toJSON=="function"}const wR=new Set(["image/svg","application/xml","application/xhtml","application/html"]),yR=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function CR(t=""){if(!t)return"json";const e=t.split(";").shift()||"";return yR.test(e)?"json":wR.has(e)||e.startsWith("text/")?"text":"blob"}function bR(t,e,A=globalThis.Headers){const n={...e,...t};if(e!=null&&e.params&&(t!=null&&t.params)&&(n.params={...e==null?void 0:e.params,...t==null?void 0:t.params}),e!=null&&e.query&&(t!=null&&t.query)&&(n.query={...e==null?void 0:e.query,...t==null?void 0:t.query}),e!=null&&e.headers&&(t!=null&&t.headers)){n.headers=new A((e==null?void 0:e.headers)||{});for(const[r,i]of new A((t==null?void 0:t.headers)||{}))n.headers.set(r,i)}return n}const vR=new Set([408,409,425,429,500,502,503,504]),ER=new Set([101,204,205,304]);function fC(t={}){const{fetch:e=globalThis.fetch,Headers:A=globalThis.Headers,AbortController:n=globalThis.AbortController}=t;async function r(s){const c=s.error&&s.error.name==="AbortError"&&!s.options.timeout||!1;if(s.options.retry!==!1&&!c){let f;typeof s.options.retry=="number"?f=s.options.retry:f=dC(s.options.method)?0:1;const h=s.response&&s.response.status||500;if(f>0&&(Array.isArray(s.options.retryStatusCodes)?s.options.retryStatusCodes.includes(h):vR.has(h))){const m=s.options.retryDelay||0;return m>0&&await new Promise(g=>setTimeout(g,m)),i(s.request,{...s.options,retry:f-1})}}const d=mR(s);throw Error.captureStackTrace&&Error.captureStackTrace(d,i),d}const i=async function(c,d={}){var g;const f={request:c,options:bR(d,t.defaults,A),response:void 0,error:void 0};f.options.method=(g=f.options.method)==null?void 0:g.toUpperCase(),f.options.onRequest&&await f.options.onRequest(f),typeof f.request=="string"&&(f.options.baseURL&&(f.request=lR(f.request,f.options.baseURL)),(f.options.query||f.options.params)&&(f.request=cR(f.request,{...f.options.params,...f.options.query}))),f.options.body&&dC(f.options.method)&&(BR(f.options.body)?(f.options.body=typeof f.options.body=="string"?f.options.body:JSON.stringify(f.options.body),f.options.headers=new A(f.options.headers||{}),f.options.headers.has("content-type")||f.options.headers.set("content-type","application/json"),f.options.headers.has("accept")||f.options.headers.set("accept","application/json")):("pipeTo"in f.options.body&&typeof f.options.body.pipeTo=="function"||typeof f.options.body.pipe=="function")&&("duplex"in f.options||(f.options.duplex="half")));let h;if(!f.options.signal&&f.options.timeout){const B=new n;h=setTimeout(()=>B.abort(),f.options.timeout),f.options.signal=B.signal}try{f.response=await e(f.request,f.options)}catch(B){return f.error=B,f.options.onRequestError&&await f.options.onRequestError(f),await r(f)}finally{h&&clearTimeout(h)}if(f.response.body&&!ER.has(f.response.status)&&f.options.method!=="HEAD"){const B=(f.options.parseResponse?"json":f.options.responseType)||CR(f.response.headers.get("content-type")||"");switch(B){case"json":{const y=await f.response.text(),v=f.options.parseResponse||PH;f.response._data=v(y);break}case"stream":{f.response._data=f.response.body;break}default:f.response._data=await f.response[B]()}}return f.options.onResponse&&await f.options.onResponse(f),!f.options.ignoreResponseError&&f.response.status>=400&&f.response.status<600?(f.options.onResponseError&&await f.options.onResponseError(f),await r(f)):f.response},a=async function(c,d){return(await i(c,d))._data};return a.raw=i,a.native=(...s)=>e(...s),a.create=(s={})=>fC({...t,defaults:{...t.defaults,...s}}),a}const yh=function(){if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("unable to locate global object")}(),QR=yh.fetch||(()=>Promise.reject(new Error("[ofetch] global.fetch is not supported!"))),FR=yh.Headers,UR=yh.AbortController,kR=fC({fetch:QR,Headers:FR,AbortController:UR}),_R={class:"file-upload"},IR=["src"],SR=["onClick"],TR=["onClick"],xR=["for"],DR=["innerHTML"],MR={key:0,class:"file-upload__loading-spinner"},OR=[o.createElementVNode("span",{class:"spinner-border",role:"status"},[o.createElementVNode("span",{class:"visually-hidden"},"Loading...")],-1)];async function NR(t){return await new Promise(e=>{let A=new FileReader;A.onload=()=>e(A.result),A.readAsDataURL(t)})}const LR=o.defineComponent({__name:"file-upload",props:{modelValue:{type:Array,default:[]},src:{type:String},name:{type:String,default:()=>Ct()},id:{type:String,default:()=>Ct()},label:{type:String,default:"Select file"},placeholder:{type:String,default:""},variant:{type:String,default:""},disabled:{type:Boolean,default:!1},readOnly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},pattern:{type:String,default:null},multiple:{type:Boolean,default:!1},accept:{type:String,default:"image/*"},endpoint:{type:String,default:""},toDataUrl:{type:Boolean,default:!0},authToken:{type:String,default:""},customFetch:null,baseResponsePath:{type:String,default:"/media"},enablePreview:{type:Boolean,default:!0},previewWidth:{type:Number,default:0}},emits:["update:modelValue","update:src"],setup(t,{emit:e}){const A=t,n=e,r=o.ref([]),i=o.ref([]),a=o.ref(!1),s=o.computed(()=>A.modelValue.length?A.modelValue:A.src?[{type:"",src:A.src}]:i.value);o.watch(()=>r.value,async f=>{i.value=await Promise.all(f.map(async h=>({src:A.toDataUrl?await NR(h):await d(h),type:h.type})))},{deep:!0}),o.watch(()=>i.value,async f=>{const h=A.multiple?f:f[0];n("update:modelValue",h),A.multiple||n("update:src",f[0]&&f[0].src)},{deep:!0});function c(f){r.value.splice(f,1),(!i.value||!i.value.length)&&n("update:src","")}async function d(f){const h=new FormData;h.append("file",f),a.value=!0;const g=await(A.customFetch||kR)(A.endpoint,{method:"POST",...A.customFetch?{}:{headers:{Accept:"application/json",...A.authToken?{Authorization:`Bearer ${A.authToken}`}:{}}},body:h}).catch(y=>{console.error("Error",y)});return a.value=!1,`${A.baseResponsePath==="/media"&&g.path.endsWith(".svg")?"/api/v1/assets":A.baseResponsePath}/${g.path}`}return(f,h)=>{const m=o.resolveComponent("svg-icon"),g=o.resolveComponent("input-file");return o.openBlock(),o.createElementBlock("div",_R,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(s.value,(B,y)=>(o.openBlock(),o.createElementBlock("div",{key:B.src,class:o.normalizeClass(t.enablePreview?"file-upload__thumbnail":"file-upload__reset")},[t.enablePreview?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createElementVNode("img",{src:`${B.src}${t.previewWidth?`?width=${t.previewWidth}`:""}`,class:"img-thumbnail rounded"},null,8,IR),o.createElementVNode("button",{onClick:o.withModifiers(v=>c(y),["prevent"]),class:"btn btn--close"},[o.createVNode(m,{symbol:"x"})],8,SR)],64)):(o.openBlock(),o.createElementBlock("button",{key:1,onClick:o.withModifiers(v=>c(y),["prevent"]),class:"btn btn--close btn-outline-dark"},[o.createVNode(m,{symbol:"x"})],8,TR))],2))),128)),o.createVNode(g,{modelValue:r.value,"onUpdate:modelValue":h[0]||(h[0]=B=>r.value=B),id:t.id,name:t.name,accept:t.accept,class:"d-none"},null,8,["modelValue","id","name","accept"]),o.createElementVNode("label",{for:t.id,class:"file-upload__label"},[o.renderSlot(f.$slots,"button",{},()=>[o.createElementVNode("span",{class:"btn btn-outline-dark",innerHTML:t.label},null,8,DR)]),o.createVNode(o.Transition,{name:"fade"},{default:o.withCtx(()=>[a.value?(o.openBlock(),o.createElementBlock("span",MR,OR)):o.createCommentVNode("",!0)]),_:1})],8,xR)])}}}),SJ="",HR={class:"upload-group"},RR=["innerHTML"],PR={class:"upload-group__list"},VR={class:"img-container"},KR=["src"],$R=["onClick"],GR={role:"button",class:"img-thumbnail d-flex justify-content-center align-items-center"},hC=o.defineComponent({__name:"upload-group",props:{modelValue:{type:Array,default:()=>[]},name:{type:String,default:()=>Ct()},id:{type:String,default:()=>Ct()},label:{type:String,default:""},variant:{type:String,default:""},disabled:{type:Boolean,default:!1},required:{type:Boolean,default:!1},accept:{type:String,default:"image/*"},endpoint:{type:String,default:""},authToken:{type:String,default:""},customFetch:null,baseResponsePath:{type:String,default:"/media"},previewWidth:{type:Number,default:0}},emits:["update:modelValue"],setup(t,{emit:e}){const A=t,n=e,r=o.ref(""),i=o.computed({get(){return A.modelValue},set(s){n("update:modelValue",s)}});function a(s){i.value.splice(s,1),n("update:modelValue",i.value)}return o.watch(r,(s,c)=>{s&&(n("update:modelValue",[...i.value,s]),r.value="")}),(s,c)=>{const d=o.resolveComponent("svg-icon"),f=o.resolveComponent("file-upload"),h=o.resolveComponent("sortable-list");return o.openBlock(),o.createElementBlock("div",HR,[t.label?(o.openBlock(),o.createElementBlock("label",{key:0,innerHTML:t.label},null,8,RR)):o.createCommentVNode("",!0),o.createElementVNode("div",PR,[o.createVNode(h,{modelValue:i.value,"onUpdate:modelValue":c[1]||(c[1]=m=>i.value=m),vertical:!1,class:"mb-3"},{"list-item":o.withCtx(({item:m,index:g})=>[o.createElementVNode("div",VR,[o.createElementVNode("img",{src:`${m}${t.previewWidth?`?width=${t.previewWidth}`:""}`,class:"img-thumbnail"},null,8,KR),o.createElementVNode("button",{onClick:o.withModifiers(B=>a(g),["prevent"]),class:"btn btn--close"},[o.createVNode(d,{symbol:"x"})],8,$R)])]),"list-append":o.withCtx(()=>[o.createVNode(f,{src:r.value,"onUpdate:src":c[0]||(c[0]=m=>r.value=m),multiple:!1,endpoint:t.endpoint,"custom-fetch":t.customFetch,"to-data-url":!t.endpoint,"auth-token":t.authToken,disabled:t.disabled,"base-response-path":t.baseResponsePath},{button:o.withCtx(()=>[o.createElementVNode("span",GR,[o.createVNode(d,{symbol:"plus"})])]),_:1},8,["src","endpoint","custom-fetch","to-data-url","auth-token","disabled","base-response-path"])]),_:1},8,["modelValue"])])])}}}),TJ="",WR={class:"asset-uploader"},YR=["innerHTML"],zR=o.defineComponent({__name:"asset-uploader",props:{modelValue:{type:Array,default:()=>[]},name:{type:String,default:()=>Ct()},id:{type:String,default:()=>Ct()},type:{type:String,default:""},label:{type:String,default:""},variant:{type:String,default:""},disabled:{type:Boolean,default:!1},required:{type:Boolean,default:!1},accept:{type:String,default:"image/*"},endpoint:{type:String,default:""},authToken:{type:String,default:""},customFetch:null,mediaTypeMap:{type:Object,default:()=>({svg:"Svg",png:"Image",jpg:"Image"})},baseResponsePath:{type:String,default:"/media"},previewWidth:{type:Number,default:0}},emits:["update:modelValue"],setup(t,{emit:e}){const A=t,n=e,r=o.computed({get(){return A.modelValue.map(i=>i.src)},set(i){n("update:modelValue",i.map((a,s)=>({mediaType:A.modelValue[s]&&A.modelValue[s].mediaType||a.includes("data:image")?a.includes("data:image/svg")?"Svg":"Image":A.mediaTypeMap[a.split(".")[1]],src:a,name:A.modelValue[s]&&A.modelValue[s].name||`${A.name}-${s}`,...A.type?{type:A.type}:{}})))}});return(i,a)=>(o.openBlock(),o.createElementBlock("div",WR,[t.label?(o.openBlock(),o.createElementBlock("label",{key:0,innerHTML:t.label},null,8,YR)):o.createCommentVNode("",!0),o.createVNode(hC,{modelValue:r.value,"onUpdate:modelValue":a[0]||(a[0]=s=>r.value=s),endpoint:t.endpoint,"custom-fetch":t.customFetch,"auth-token":t.authToken,disabled:t.disabled,"preview-width":t.previewWidth,"base-response-path":t.baseResponsePath},null,8,["modelValue","endpoint","custom-fetch","auth-token","disabled","preview-width","base-response-path"])]))}}),xJ="",JR={class:"carousel d-flex"},XR=["onClick"],pC=o.defineComponent({__name:"base-carousel",props:{modelValue:{type:Number,default:-1},config:{type:Object,default:null},messages:{type:Object,default:{}},items:{type:Array,default:[]},navigation:{type:Boolean,default:!0}},emits:["update:modelValue","select"],setup(t,{emit:e}){const A=e,n=o.ref(),r=o.ref();function i(){n.value.scrollTo({top:0,left:n.value.scrollLeft-n.value.clientWidth>0?n.value.scrollLeft-n.value.clientWidth:0,behavior:"smooth"})}function a(){console.log(n.value.clientWidth,n.value.scrollLeft),n.value.scrollTo({top:0,left:n.value.scrollLeft-n.value.clientWidth<=r.value.clientWidth?n.value.scrollLeft+n.value.clientWidth:r.value.clientWidth,behavior:"smooth"})}function s(c){A("update:modelValue",c)}return(c,d)=>{const f=o.resolveComponent("svg-icon");return o.openBlock(),o.createElementBlock("div",JR,[t.navigation?(o.openBlock(),o.createElementBlock("button",{key:0,class:"carousel__control btn btn-link text-light",type:"button",onClick:o.withModifiers(i,["prevent","stop"])},[o.createVNode(f,{symbol:"chevron-left"})])):o.createCommentVNode("",!0),o.createElementVNode("div",{ref_key:"viewport",ref:n,class:"carousel__viewport flex-grow-1"},[o.createElementVNode("div",{ref_key:"track",ref:r,class:"carousel__track d-flex justify-center align-items-center"},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.items,(h,m)=>o.renderSlot(c.$slots,"carousel-item",{key:h.src,item:h,index:m},()=>[o.createElementVNode("div",{class:o.normalizeClass(["carousel__item",m===t.modelValue?"selected":""]),onClick:g=>s(m)},o.toDisplayString(h),11,XR)])),128))],512)],512),t.navigation?(o.openBlock(),o.createElementBlock("button",{key:1,class:"carousel__control btn btn-link text-light",type:"button",onClick:o.withModifiers(a,["prevent","stop"])},[o.createVNode(f,{symbol:"chevron-right"})])):o.createCommentVNode("",!0)])}}}),DJ="",qR={class:"media-thumbnails"},jR=["onClick"],ZR={class:"img-container"},eP=o.defineComponent({__name:"media-thumbnails",props:{modelValue:{default:null},config:{type:Object,default:null},messages:{type:Object,default:{}},assets:{type:Array,default:[]}},emits:["update:modelValue","select"],setup(t,{emit:e}){const A=e,n=o.ref(-1);function r(i){n.value=i,A("update:modelValue",i),A("select",i)}return(i,a)=>{const s=o.resolveComponent("base-image");return o.openBlock(),o.createElementBlock("div",qR,[o.createVNode(pC,{items:t.assets},{"carousel-item":o.withCtx(c=>[o.createElementVNode("a",{role:"button",class:o.normalizeClass(["carousel__item media-thumbnails__thumbnail",c.index===t.modelValue||c.index===n.value?"is-active":""]),onClick:d=>r(c.index)},[o.createElementVNode("div",ZR,[o.createVNode(s,{src:c.item.thumbnail||c.item.src,class:"img-fluid"},null,8,["src"])])],10,jR)]),_:1},8,["items"])])}}}),MJ="",tP={class:"progress-steps"},AP={class:"progress-steps__list"},nP={class:"progress-step"},rP=["checked","id","value","disabled","read-only","required","onChange"],iP=["for"],aP=["innerHTML"],oP=["for"],sP=["innerHTML"],lP=o.defineComponent({__name:"progress-steps",props:{modelValue:{type:Number,default:0},progress:{type:Number,default:0},steps:{type:Array},label:{type:String,default:""},reveal:{type:Boolean,default:!1}},emits:["update:modelValue","update:progress"],setup(t,{emit:e}){const A=t,n=e;function r(i){n("update:modelValue",i),i>=A.progress&&n("update:progress",i)}return(i,a)=>(o.openBlock(),o.createElementBlock("div",tP,[o.createElementVNode("ul",AP,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.steps,(s,c)=>(o.openBlock(),o.createElementBlock("li",{key:c,class:o.normalizeClass(["progress-steps__step",{"progress-steps__step--disabled":c>t.progress+(t.reveal?1:0),"progress-steps__step--active":c===(t.modelValue||0)}])},[o.renderSlot(i.$slots,"step",{},()=>[o.createElementVNode("div",nP,[o.createElementVNode("input",{type:"radio",checked:c<=(t.progress||0),id:`step-${c}`,name:"step",class:"form-check-input",value:s.value,disabled:s.disabled||c>t.progress+(t.reveal?1:0),"read-only":s.readOnly,required:s.required,onChange:d=>r(c)},null,40,rP),o.createElementVNode("label",{for:`step-${c}`},[o.renderSlot(i.$slots,"button",{step:s},()=>[o.createElementVNode("span",{class:"btn rounded-circle",innerHTML:s.text},null,8,aP)])],8,iP),o.createElementVNode("label",{for:`step-${c}`},[o.renderSlot(i.$slots,"label",{step:s},()=>[o.createElementVNode("span",{class:"form-check-label",innerHTML:s.label},null,8,sP)])],8,oP)])])],2))),128))])]))}}),OJ="";/*!
166
166
  * html2canvas 1.4.1 <https://html2canvas.hertzen.com>
167
167
  * Copyright (c) 2022 Niklas von Hertzen <https://hertzen.com>
168
168
  * Released under MIT License
@@ -179,8 +179,8 @@ function print() { __p += __j.call(arguments, '') }
179
179
  LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
180
180
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
181
181
  PERFORMANCE OF THIS SOFTWARE.
182
- ***************************************************************************** */var ju=function(t,e){return ju=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(A,n){A.__proto__=n}||function(A,n){for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(A[r]=n[r])},ju(t,e)};function ln(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");ju(t,e);function A(){this.constructor=t}t.prototype=e===null?Object.create(e):(A.prototype=e.prototype,new A)}var ef=function(){return ef=Object.assign||function(e){for(var A,n=1,r=arguments.length;n<r;n++){A=arguments[n];for(var i in A)Object.prototype.hasOwnProperty.call(A,i)&&(e[i]=A[i])}return e},ef.apply(this,arguments)};function lt(t,e,A,n){function r(i){return i instanceof A?i:new A(function(s){s(i)})}return new(A||(A=Promise))(function(i,s){function a(f){try{u(n.next(f))}catch(p){s(p)}}function c(f){try{u(n.throw(f))}catch(p){s(p)}}function u(f){f.done?i(f.value):r(f.value).then(a,c)}u((n=n.apply(t,e||[])).next())})}function ZA(t,e){var A={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,r,i,s;return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(u){return function(f){return c([u,f])}}function c(u){if(n)throw new TypeError("Generator is already executing.");for(;A;)try{if(n=1,r&&(i=u[0]&2?r.return:u[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,u[1])).done)return i;switch(r=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return A.label++,{value:u[1],done:!1};case 5:A.label++,r=u[1],u=[0];continue;case 7:u=A.ops.pop(),A.trys.pop();continue;default:if(i=A.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){A=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]<i[3])){A.label=u[1];break}if(u[0]===6&&A.label<i[1]){A.label=i[1],i=u;break}if(i&&A.label<i[2]){A.label=i[2],A.ops.push(u);break}i[2]&&A.ops.pop(),A.trys.pop();continue}u=e.call(t,A)}catch(f){u=[6,f],r=0}finally{n=i=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}function ka(t,e,A){if(A||arguments.length===2)for(var n=0,r=e.length,i;n<r;n++)(i||!(n in e))&&(i||(i=Array.prototype.slice.call(e,0,n)),i[n]=e[n]);return t.concat(i||e)}for(var $n=function(){function t(e,A,n,r){this.left=e,this.top=A,this.width=n,this.height=r}return t.prototype.add=function(e,A,n,r){return new t(this.left+e,this.top+A,this.width+n,this.height+r)},t.fromClientRect=function(e,A){return new t(A.left+e.windowBounds.left,A.top+e.windowBounds.top,A.width,A.height)},t.fromDOMRectList=function(e,A){var n=Array.from(A).find(function(r){return r.width!==0});return n?new t(n.left+e.windowBounds.left,n.top+e.windowBounds.top,n.width,n.height):t.EMPTY},t.EMPTY=new t(0,0,0,0),t}(),Ha=function(t,e){return $n.fromClientRect(t,e.getBoundingClientRect())},yO=function(t){var e=t.body,A=t.documentElement;if(!e||!A)throw new Error("Unable to get document size");var n=Math.max(Math.max(e.scrollWidth,A.scrollWidth),Math.max(e.offsetWidth,A.offsetWidth),Math.max(e.clientWidth,A.clientWidth)),r=Math.max(Math.max(e.scrollHeight,A.scrollHeight),Math.max(e.offsetHeight,A.offsetHeight),Math.max(e.clientHeight,A.clientHeight));return new $n(0,0,n,r)},Na=function(t){for(var e=[],A=0,n=t.length;A<n;){var r=t.charCodeAt(A++);if(r>=55296&&r<=56319&&A<n){var i=t.charCodeAt(A++);(i&64512)===56320?e.push(((r&1023)<<10)+(i&1023)+65536):(e.push(r),A--)}else e.push(r)}return e},wA=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(String.fromCodePoint)return String.fromCodePoint.apply(String,t);var A=t.length;if(!A)return"";for(var n=[],r=-1,i="";++r<A;){var s=t[r];s<=65535?n.push(s):(s-=65536,n.push((s>>10)+55296,s%1024+56320)),(r+1===A||n.length>16384)&&(i+=String.fromCharCode.apply(String,n),n.length=0)}return i},DB="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",EO=typeof Uint8Array>"u"?[]:new Uint8Array(256),Da=0;Da<DB.length;Da++)EO[DB.charCodeAt(Da)]=Da;for(var MB="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",zs=typeof Uint8Array>"u"?[]:new Uint8Array(256),Ma=0;Ma<MB.length;Ma++)zs[MB.charCodeAt(Ma)]=Ma;for(var QO=function(t){var e=t.length*.75,A=t.length,n,r=0,i,s,a,c;t[t.length-1]==="="&&(e--,t[t.length-2]==="="&&e--);var u=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(e):new Array(e),f=Array.isArray(u)?u:new Uint8Array(u);for(n=0;n<A;n+=4)i=zs[t.charCodeAt(n)],s=zs[t.charCodeAt(n+1)],a=zs[t.charCodeAt(n+2)],c=zs[t.charCodeAt(n+3)],f[r++]=i<<2|s>>4,f[r++]=(s&15)<<4|a>>2,f[r++]=(a&3)<<6|c&63;return u},FO=function(t){for(var e=t.length,A=[],n=0;n<e;n+=2)A.push(t[n+1]<<8|t[n]);return A},bO=function(t){for(var e=t.length,A=[],n=0;n<e;n+=4)A.push(t[n+3]<<24|t[n+2]<<16|t[n+1]<<8|t[n]);return A},ci=5,Af=6+5,tf=2,UO=Af-ci,RB=65536>>ci,vO=1<<ci,nf=vO-1,IO=1024>>ci,SO=RB+IO,TO=SO,_O=32,xO=TO+_O,OO=65536>>Af,LO=1<<UO,kO=LO-1,KB=function(t,e,A){return t.slice?t.slice(e,A):new Uint16Array(Array.prototype.slice.call(t,e,A))},HO=function(t,e,A){return t.slice?t.slice(e,A):new Uint32Array(Array.prototype.slice.call(t,e,A))},NO=function(t,e){var A=QO(t),n=Array.isArray(A)?bO(A):new Uint32Array(A),r=Array.isArray(A)?FO(A):new Uint16Array(A),i=24,s=KB(r,i/2,n[4]/2),a=n[5]===2?KB(r,(i+n[4])/2):HO(n,Math.ceil((i+n[4])/4));return new DO(n[0],n[1],n[2],n[3],s,a)},DO=function(){function t(e,A,n,r,i,s){this.initialValue=e,this.errorValue=A,this.highStart=n,this.highValueIndex=r,this.index=i,this.data=s}return t.prototype.get=function(e){var A;if(e>=0){if(e<55296||e>56319&&e<=65535)return A=this.index[e>>ci],A=(A<<tf)+(e&nf),this.data[A];if(e<=65535)return A=this.index[RB+(e-55296>>ci)],A=(A<<tf)+(e&nf),this.data[A];if(e<this.highStart)return A=xO-OO+(e>>Af),A=this.index[A],A+=e>>ci&kO,A=this.index[A],A=(A<<tf)+(e&nf),this.data[A];if(e<=1114111)return this.data[this.highValueIndex]}return this.errorValue},t}(),VB="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",MO=typeof Uint8Array>"u"?[]:new Uint8Array(256),Ra=0;Ra<VB.length;Ra++)MO[VB.charCodeAt(Ra)]=Ra;var RO="KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF8AZwBgAGgAcQB5AHUAfQCFAI0AlQCdAKIAqgCyALoAYABoAGAAaABgAGgAwgDKAGAAaADGAM4A0wDbAOEA6QDxAPkAAQEJAQ8BFwF1AH0AHAEkASwBNAE6AUIBQQFJAVEBWQFhAWgBcAF4ATAAgAGGAY4BlQGXAZ8BpwGvAbUBvQHFAc0B0wHbAeMB6wHxAfkBAQIJAvEBEQIZAiECKQIxAjgCQAJGAk4CVgJeAmQCbAJ0AnwCgQKJApECmQKgAqgCsAK4ArwCxAIwAMwC0wLbAjAA4wLrAvMC+AIAAwcDDwMwABcDHQMlAy0DNQN1AD0DQQNJA0kDSQNRA1EDVwNZA1kDdQB1AGEDdQBpA20DdQN1AHsDdQCBA4kDkQN1AHUAmQOhA3UAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AKYDrgN1AHUAtgO+A8YDzgPWAxcD3gPjA+sD8wN1AHUA+wMDBAkEdQANBBUEHQQlBCoEFwMyBDgEYABABBcDSARQBFgEYARoBDAAcAQzAXgEgASIBJAEdQCXBHUAnwSnBK4EtgS6BMIEyAR1AHUAdQB1AHUAdQCVANAEYABgAGAAYABgAGAAYABgANgEYADcBOQEYADsBPQE/AQEBQwFFAUcBSQFLAU0BWQEPAVEBUsFUwVbBWAAYgVgAGoFcgV6BYIFigWRBWAAmQWfBaYFYABgAGAAYABgAKoFYACxBbAFuQW6BcEFwQXHBcEFwQXPBdMF2wXjBeoF8gX6BQIGCgYSBhoGIgYqBjIGOgZgAD4GRgZMBmAAUwZaBmAAYABgAGAAYABgAGAAYABgAGAAYABgAGIGYABpBnAGYABgAGAAYABgAGAAYABgAGAAYAB4Bn8GhQZgAGAAYAB1AHcDFQSLBmAAYABgAJMGdQA9A3UAmwajBqsGqwaVALMGuwbDBjAAywbSBtIG1QbSBtIG0gbSBtIG0gbdBuMG6wbzBvsGAwcLBxMHAwcbByMHJwcsBywHMQcsB9IGOAdAB0gHTgfSBkgHVgfSBtIG0gbSBtIG0gbSBtIG0gbSBiwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdgAGAALAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdbB2MHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB2kH0gZwB64EdQB1AHUAdQB1AHUAdQB1AHUHfQdgAIUHjQd1AHUAlQedB2AAYAClB6sHYACzB7YHvgfGB3UAzgfWBzMB3gfmB1EB7gf1B/0HlQENAQUIDQh1ABUIHQglCBcDLQg1CD0IRQhNCEEDUwh1AHUAdQBbCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIcAh3CHoIMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIgggwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAALAcsBywHLAcsBywHLAcsBywHLAcsB4oILAcsB44I0gaWCJ4Ipgh1AHUAqgiyCHUAdQB1AHUAdQB1AHUAdQB1AHUAtwh8AXUAvwh1AMUIyQjRCNkI4AjoCHUAdQB1AO4I9gj+CAYJDgkTCS0HGwkjCYIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiAAIAAAAFAAYABgAGIAXwBgAHEAdQBFAJUAogCyAKAAYABgAEIA4ABGANMA4QDxAMEBDwE1AFwBLAE6AQEBUQF4QkhCmEKoQrhCgAHIQsAB0MLAAcABwAHAAeDC6ABoAHDCwMMAAcABwAHAAdDDGMMAAcAB6MM4wwjDWMNow3jDaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAEjDqABWw6bDqABpg6gAaABoAHcDvwOPA+gAaABfA/8DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DpcPAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcAB9cPKwkyCToJMAB1AHUAdQBCCUoJTQl1AFUJXAljCWcJawkwADAAMAAwAHMJdQB2CX4JdQCECYoJjgmWCXUAngkwAGAAYABxAHUApgn3A64JtAl1ALkJdQDACTAAMAAwADAAdQB1AHUAdQB1AHUAdQB1AHUAowYNBMUIMAAwADAAMADICcsJ0wnZCRUE4QkwAOkJ8An4CTAAMAB1AAAKvwh1AAgKDwoXCh8KdQAwACcKLgp1ADYKqAmICT4KRgowADAAdQB1AE4KMAB1AFYKdQBeCnUAZQowADAAMAAwADAAMAAwADAAMAAVBHUAbQowADAAdQC5CXUKMAAwAHwBxAijBogEMgF9CoQKiASMCpQKmgqIBKIKqgquCogEDQG2Cr4KxgrLCjAAMADTCtsKCgHjCusK8Qr5CgELMAAwADAAMAB1AIsECQsRC3UANAEZCzAAMAAwADAAMAB1ACELKQswAHUANAExCzkLdQBBC0kLMABRC1kLMAAwADAAMAAwADAAdQBhCzAAMAAwAGAAYABpC3ELdwt/CzAAMACHC4sLkwubC58Lpwt1AK4Ltgt1APsDMAAwADAAMAAwADAAMAAwAL4LwwvLC9IL1wvdCzAAMADlC+kL8Qv5C/8LSQswADAAMAAwADAAMAAwADAAMAAHDDAAMAAwADAAMAAODBYMHgx1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1ACYMMAAwADAAdQB1AHUALgx1AHUAdQB1AHUAdQA2DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AD4MdQBGDHUAdQB1AHUAdQB1AEkMdQB1AHUAdQB1AFAMMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQBYDHUAdQB1AF8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUA+wMVBGcMMAAwAHwBbwx1AHcMfwyHDI8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAYABgAJcMMAAwADAAdQB1AJ8MlQClDDAAMACtDCwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB7UMLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AA0EMAC9DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAsBywHLAcsBywHLAcsBywHLQcwAMEMyAwsBywHLAcsBywHLAcsBywHLAcsBywHzAwwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1ANQM2QzhDDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMABgAGAAYABgAGAAYABgAOkMYADxDGAA+AwADQYNYABhCWAAYAAODTAAMAAwADAAFg1gAGAAHg37AzAAMAAwADAAYABgACYNYAAsDTQNPA1gAEMNPg1LDWAAYABgAGAAYABgAGAAYABgAGAAUg1aDYsGVglhDV0NcQBnDW0NdQ15DWAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAlQCBDZUAiA2PDZcNMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAnw2nDTAAMAAwADAAMAAwAHUArw23DTAAMAAwADAAMAAwADAAMAAwADAAMAB1AL8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQDHDTAAYABgAM8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA1w11ANwNMAAwAD0B5A0wADAAMAAwADAAMADsDfQN/A0EDgwOFA4wABsOMAAwADAAMAAwADAAMAAwANIG0gbSBtIG0gbSBtIG0gYjDigOwQUuDsEFMw7SBjoO0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGQg5KDlIOVg7SBtIGXg5lDm0OdQ7SBtIGfQ6EDooOjQ6UDtIGmg6hDtIG0gaoDqwO0ga0DrwO0gZgAGAAYADEDmAAYAAkBtIGzA5gANIOYADaDokO0gbSBt8O5w7SBu8O0gb1DvwO0gZgAGAAxA7SBtIG0gbSBtIGYABgAGAAYAAED2AAsAUMD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHJA8sBywHLAcsBywHLAccDywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywPLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAc0D9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHPA/SBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gYUD0QPlQCVAJUAMAAwADAAMACVAJUAlQCVAJUAlQCVAEwPMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA//8EAAQABAAEAAQABAAEAAQABAANAAMAAQABAAIABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQACgATABcAHgAbABoAHgAXABYAEgAeABsAGAAPABgAHABLAEsASwBLAEsASwBLAEsASwBLABgAGAAeAB4AHgATAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABYAGwASAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWAA0AEQAeAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAFAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJABYAGgAbABsAGwAeAB0AHQAeAE8AFwAeAA0AHgAeABoAGwBPAE8ADgBQAB0AHQAdAE8ATwAXAE8ATwBPABYAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAFAATwBAAE8ATwBPAEAATwBQAFAATwBQAB4AHgAeAB4AHgAeAB0AHQAdAB0AHgAdAB4ADgBQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgBQAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAkACQAJAAkACQAJAAkABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAFAAHgAeAB4AKwArAFAAUABQAFAAGABQACsAKwArACsAHgAeAFAAHgBQAFAAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUAAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAYAA0AKwArAB4AHgAbACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAB4ABAAEAB4ABAAEABMABAArACsAKwArACsAKwArACsAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAKwArACsAKwBWAFYAVgBWAB4AHgArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AGgAaABoAGAAYAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQAEwAEACsAEwATAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABLAEsASwBLAEsASwBLAEsASwBLABoAGQAZAB4AUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABMAUAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABABQAFAABAAEAB4ABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUAAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAFAABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQAUABQAB4AHgAYABMAUAArACsABAAbABsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAFAABAAEAAQABAAEAFAABAAEAAQAUAAEAAQABAAEAAQAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArACsAHgArAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAUAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEAA0ADQBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUAArACsAKwBQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABABQACsAKwArACsAKwArACsAKwAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUAAaABoAUABQAFAAUABQAEwAHgAbAFAAHgAEACsAKwAEAAQABAArAFAAUABQAFAAUABQACsAKwArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQACsAUABQACsAKwAEACsABAAEAAQABAAEACsAKwArACsABAAEACsAKwAEAAQABAArACsAKwAEACsAKwArACsAKwArACsAUABQAFAAUAArAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLAAQABABQAFAAUAAEAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAArACsAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AGwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAKwArACsAKwArAAQABAAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAAQAUAArAFAAUABQAFAAUABQACsAKwArAFAAUABQACsAUABQAFAAUAArACsAKwBQAFAAKwBQACsAUABQACsAKwArAFAAUAArACsAKwBQAFAAUAArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAAQABAAEAAQABAArACsAKwAEAAQABAArAAQABAAEAAQAKwArAFAAKwArACsAKwArACsABAArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAHgAeAB4AHgAeAB4AGwAeACsAKwArACsAKwAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAUABQAFAAKwArACsAKwArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwAOAFAAUABQAFAAUABQAFAAHgBQAAQABAAEAA4AUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAKwArAAQAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAKwArACsAKwArACsAUAArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABABQAB4AKwArACsAKwBQAFAAUAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQABoAUABQAFAAUABQAFAAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQACsAUAArACsAUABQAFAAUABQAFAAUAArACsAKwAEACsAKwArACsABAAEAAQABAAEAAQAKwAEACsABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgAqACsAKwArACsAGwBcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAeAEsASwBLAEsASwBLAEsASwBLAEsADQANACsAKwArACsAKwBcAFwAKwBcACsAXABcAFwAXABcACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAXAArAFwAXABcAFwAXABcAFwAXABcAFwAKgBcAFwAKgAqACoAKgAqACoAKgAqACoAXAArACsAXABcAFwAXABcACsAXAArACoAKgAqACoAKgAqACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwBcAFwAXABcAFAADgAOAA4ADgAeAA4ADgAJAA4ADgANAAkAEwATABMAEwATAAkAHgATAB4AHgAeAAQABAAeAB4AHgAeAB4AHgBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQAFAADQAEAB4ABAAeAAQAFgARABYAEQAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAAQABAAEAAQADQAEAAQAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAA0ADQAeAB4AHgAeAB4AHgAEAB4AHgAeAB4AHgAeACsAHgAeAA4ADgANAA4AHgAeAB4AHgAeAAkACQArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgBcAEsASwBLAEsASwBLAEsASwBLAEsADQANAB4AHgAeAB4AXABcAFwAXABcAFwAKgAqACoAKgBcAFwAXABcACoAKgAqAFwAKgAqACoAXABcACoAKgAqACoAKgAqACoAXABcAFwAKgAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqAFwAKgBLAEsASwBLAEsASwBLAEsASwBLACoAKgAqACoAKgAqAFAAUABQAFAAUABQACsAUAArACsAKwArACsAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAKwBQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsABAAEAAQAHgANAB4AHgAeAB4AHgAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUAArACsADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWABEAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQANAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAANAA0AKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUAArAAQABAArACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqAA0ADQAVAFwADQAeAA0AGwBcACoAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwAeAB4AEwATAA0ADQAOAB4AEwATAB4ABAAEAAQACQArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAHgArACsAKwATABMASwBLAEsASwBLAEsASwBLAEsASwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAXABcAFwAXABcACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAXAArACsAKwAqACoAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsAHgAeAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKwAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKwArAAQASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACoAKgAqACoAKgAqACoAXAAqACoAKgAqACoAKgArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABABQAFAAUABQAFAAUABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwANAA0AHgANAA0ADQANAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwAeAB4AHgAeAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArAA0ADQANAA0ADQBLAEsASwBLAEsASwBLAEsASwBLACsAKwArAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUAAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAAQAUABQAFAAUABQAFAABABQAFAABAAEAAQAUAArACsAKwArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQACsAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAFAAUABQACsAHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQACsAKwAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQACsAHgAeAB4AHgAeAB4AHgAOAB4AKwANAA0ADQANAA0ADQANAAkADQANAA0ACAAEAAsABAAEAA0ACQANAA0ADAAdAB0AHgAXABcAFgAXABcAFwAWABcAHQAdAB4AHgAUABQAFAANAAEAAQAEAAQABAAEAAQACQAaABoAGgAaABoAGgAaABoAHgAXABcAHQAVABUAHgAeAB4AHgAeAB4AGAAWABEAFQAVABUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ADQAeAA0ADQANAA0AHgANAA0ADQAHAB4AHgAeAB4AKwAEAAQABAAEAAQABAAEAAQABAAEAFAAUAArACsATwBQAFAAUABQAFAAHgAeAB4AFgARAE8AUABPAE8ATwBPAFAAUABQAFAAUAAeAB4AHgAWABEAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArABsAGwAbABsAGwAbABsAGgAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGgAbABsAGwAbABoAGwAbABoAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAHgAeAFAAGgAeAB0AHgBQAB4AGgAeAB4AHgAeAB4AHgAeAB4AHgBPAB4AUAAbAB4AHgBQAFAAUABQAFAAHgAeAB4AHQAdAB4AUAAeAFAAHgBQAB4AUABPAFAAUAAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgBQAFAAUABQAE8ATwBQAFAAUABQAFAATwBQAFAATwBQAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAUABQAFAATwBPAE8ATwBPAE8ATwBPAE8ATwBQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABPAB4AHgArACsAKwArAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHQAdAB4AHgAeAB0AHQAeAB4AHQAeAB4AHgAdAB4AHQAbABsAHgAdAB4AHgAeAB4AHQAeAB4AHQAdAB0AHQAeAB4AHQAeAB0AHgAdAB0AHQAdAB0AHQAeAB0AHgAeAB4AHgAeAB0AHQAdAB0AHgAeAB4AHgAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHgAeAB0AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAeAB0AHQAdAB0AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAdAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAWABEAHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAWABEAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AHQAdAB0AHgAeAB0AHgAeAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlAB4AHQAdAB4AHgAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AJQAlAB0AHQAlAB4AJQAlACUAIAAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAdAB0AHQAeAB0AJQAdAB0AHgAdAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAdAB0AHQAdACUAHgAlACUAJQAdACUAJQAdAB0AHQAlACUAHQAdACUAHQAdACUAJQAlAB4AHQAeAB4AHgAeAB0AHQAlAB0AHQAdAB0AHQAdACUAJQAlACUAJQAdACUAJQAgACUAHQAdACUAJQAlACUAJQAlACUAJQAeAB4AHgAlACUAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AFwAXABcAFwAXABcAHgATABMAJQAeAB4AHgAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARABYAEQAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAEAAQABAAeAB4AKwArACsAKwArABMADQANAA0AUAATAA0AUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUAANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAA0ADQANAA0ADQANAA0ADQAeAA0AFgANAB4AHgAXABcAHgAeABcAFwAWABEAFgARABYAEQAWABEADQANAA0ADQATAFAADQANAB4ADQANAB4AHgAeAB4AHgAMAAwADQANAA0AHgANAA0AFgANAA0ADQANAA0ADQANAA0AHgANAB4ADQANAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArAA0AEQARACUAJQBHAFcAVwAWABEAFgARABYAEQAWABEAFgARACUAJQAWABEAFgARABYAEQAWABEAFQAWABEAEQAlAFcAVwBXAFcAVwBXAFcAVwBXAAQABAAEAAQABAAEACUAVwBXAFcAVwA2ACUAJQBXAFcAVwBHAEcAJQAlACUAKwBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBRAFcAUQBXAFEAVwBXAFcAVwBXAFcAUQBXAFcAVwBXAFcAVwBRAFEAKwArAAQABAAVABUARwBHAFcAFQBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBRAFcAVwBXAFcAVwBXAFEAUQBXAFcAVwBXABUAUQBHAEcAVwArACsAKwArACsAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwAlACUAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACsAKwArACsAKwArACsAKwArACsAKwArAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBPAE8ATwBPAE8ATwBPAE8AJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADQATAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABLAEsASwBLAEsASwBLAEsASwBLAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAABAAEAAQABAAeAAQABAAEAAQABAAEAAQABAAEAAQAHgBQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAeAA0ADQANAA0ADQArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAAQAUABQAFAABABQAFAAUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAeAB4AHgAeAAQAKwArACsAUABQAFAAUABQAFAAHgAeABoAHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADgAOABMAEwArACsAKwArACsAKwArACsABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUAAeAB4AHgBQAA4AUABQAAQAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAB4AWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYACsAKwArAAQAHgAeAB4AHgAeAB4ADQANAA0AHgAeAB4AHgArAFAASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArAB4AHgBcAFwAXABcAFwAKgBcAFwAXABcAFwAXABcAFwAXABcAEsASwBLAEsASwBLAEsASwBLAEsAXABcAFwAXABcACsAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAFAAUABQAAQAUABQAFAAUABQAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAHgANAA0ADQBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAKgAqACoAXABcACoAKgBcAFwAXABcAFwAKgAqAFwAKgBcACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAA0ADQBQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQADQAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAVABVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBUAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVACsAKwArACsAKwArACsAKwArACsAKwArAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAKwArACsAKwBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAKwArACsAKwAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAKwArACsAKwArAFYABABWAFYAVgBWAFYAVgBWAFYAVgBWAB4AVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgArAFYAVgBWAFYAVgArAFYAKwBWAFYAKwBWAFYAKwBWAFYAVgBWAFYAVgBWAFYAVgBWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAEQAWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAaAB4AKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAGAARABEAGAAYABMAEwAWABEAFAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACUAJQAlACUAJQAWABEAFgARABYAEQAWABEAFgARABYAEQAlACUAFgARACUAJQAlACUAJQAlACUAEQAlABEAKwAVABUAEwATACUAFgARABYAEQAWABEAJQAlACUAJQAlACUAJQAlACsAJQAbABoAJQArACsAKwArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAcAKwATACUAJQAbABoAJQAlABYAEQAlACUAEQAlABEAJQBXAFcAVwBXAFcAVwBXAFcAVwBXABUAFQAlACUAJQATACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXABYAJQARACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAWACUAEQAlABYAEQARABYAEQARABUAVwBRAFEAUQBRAFEAUQBRAFEAUQBRAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcARwArACsAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXACsAKwBXAFcAVwBXAFcAVwArACsAVwBXAFcAKwArACsAGgAbACUAJQAlABsAGwArAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAAQAB0AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsADQANAA0AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAA0AUABQAFAAUAArACsAKwArAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwBQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAUABQAFAAUABQAAQABAAEACsABAAEACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAKwBQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAA0ADQANAA0ADQANAA0ADQAeACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAArACsAKwArAFAAUABQAFAAUAANAA0ADQANAA0ADQAUACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsADQANAA0ADQANAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArAAQABAANACsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAB4AHgAeAB4AHgArACsAKwArACsAKwAEAAQABAAEAAQABAAEAA0ADQAeAB4AHgAeAB4AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsASwBLAEsASwBLAEsASwBLAEsASwANAA0ADQANAFAABAAEAFAAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAeAA4AUAArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAADQANAB4ADQAEAAQABAAEAB4ABAAEAEsASwBLAEsASwBLAEsASwBLAEsAUAAOAFAADQANAA0AKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAA0AHgANAA0AHgAEACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAA0AKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsABAAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAUAArACsAKwArACsAKwAEACsAKwArACsAKwBQAFAAUABQAFAABAAEACsAKwAEAAQABAAEAAQABAAEACsAKwArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABABQAFAAUABQAA0ADQANAA0AHgBLAEsASwBLAEsASwBLAEsASwBLAA0ADQArAB4ABABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUAAeAFAAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABAAEAAQADgANAA0AEwATAB4AHgAeAA0ADQANAA0ADQANAA0ADQANAA0ADQANAA0ADQANAFAAUABQAFAABAAEACsAKwAEAA0ADQAeAFAAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKwArACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBcAFwADQANAA0AKgBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQAKwAEAAQAKwArAAQABAAEAAQAUAAEAFAABAAEAA0ADQANACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABABQAA4AUAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAOAB4ADQANAA0ADQAOAB4ABAArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAA0ADQANAFAADgAOAA4ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAFAADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAOABMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAArACsAKwAEACsABAAEACsABAAEAAQABAAEAAQABABQAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAaABoAGgAaAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABIAEgAQwBDAEMAUABQAFAAUABDAFAAUABQAEgAQwBIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABDAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAJAAkACQAJAAkACQAJABYAEQArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwANAA0AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAANACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQANAB4AHgAeAB4AHgAeAFAAUABQAFAADQAeACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAA0AHgAeACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAARwBHABUARwAJACsAKwArACsAKwArACsAKwArACsAKwAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUQBRAFEAKwArACsAKwArACsAKwArACsAKwArACsAKwBRAFEAUQBRACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAHgAEAAQADQAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQABAAEAAQABAAeAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQAHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAKwArAFAAKwArAFAAUAArACsAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUAArAFAAUABQAFAAUABQAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAHgAeAFAAUABQAFAAUAArAFAAKwArACsAUABQAFAAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeACsAKwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4ABAAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAHgAeAA0ADQANAA0AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArAAQABAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwBQAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArABsAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAB4AHgAeAB4ABAAEAAQABAAEAAQABABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArABYAFgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAGgBQAFAAUAAaAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUAArACsAKwArACsAKwBQACsAKwArACsAUAArAFAAKwBQACsAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUAArAFAAKwBQACsAUAArAFAAUAArAFAAKwArAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAKwBQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AJQAlACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeACUAJQAlAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAlACUAJQAlACUAHgAlACUAJQAlACUAIAAgACAAJQAlACAAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACEAIQAhACEAIQAlACUAIAAgACUAJQAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAIAAlACUAJQAlACAAIAAgACUAIAAgACAAJQAlACUAJQAlACUAJQAgACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAlAB4AJQAeACUAJQAlACUAJQAgACUAJQAlACUAHgAlAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACAAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABcAFwAXABUAFQAVAB4AHgAeAB4AJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAgACUAJQAgACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAIAAgACUAJQAgACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACAAIAAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACAAIAAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAA==",PB=50,KO=1,GB=2,$B=3,VO=4,PO=5,WB=7,JB=8,XB=9,Qr=10,rf=11,YB=12,sf=13,GO=14,qs=15,of=16,Ka=17,Zs=18,$O=19,zB=20,af=21,js=22,lf=23,Xi=24,Tt=25,eo=26,Ao=27,Yi=28,WO=29,ui=30,JO=31,Va=32,Pa=33,cf=34,uf=35,ff=36,to=37,df=38,Ga=39,$a=40,hf=41,qB=42,XO=43,YO=[9001,65288],ZB="!",xe="×",Wa="÷",pf=NO(RO),Wn=[ui,ff],gf=[KO,GB,$B,PO],jB=[Qr,JB],ew=[Ao,eo],zO=gf.concat(jB),Aw=[df,Ga,$a,cf,uf],qO=[qs,sf],ZO=function(t,e){e===void 0&&(e="strict");var A=[],n=[],r=[];return t.forEach(function(i,s){var a=pf.get(i);if(a>PB?(r.push(!0),a-=PB):r.push(!1),["normal","auto","loose"].indexOf(e)!==-1&&[8208,8211,12316,12448].indexOf(i)!==-1)return n.push(s),A.push(of);if(a===VO||a===rf){if(s===0)return n.push(s),A.push(ui);var c=A[s-1];return zO.indexOf(c)===-1?(n.push(n[s-1]),A.push(c)):(n.push(s),A.push(ui))}if(n.push(s),a===JO)return A.push(e==="strict"?af:to);if(a===qB||a===WO)return A.push(ui);if(a===XO)return i>=131072&&i<=196605||i>=196608&&i<=262141?A.push(to):A.push(ui);A.push(a)}),[n,A,r]},mf=function(t,e,A,n){var r=n[A];if(Array.isArray(t)?t.indexOf(r)!==-1:t===r)for(var i=A;i<=n.length;){i++;var s=n[i];if(s===e)return!0;if(s!==Qr)break}if(r===Qr)for(var i=A;i>0;){i--;var a=n[i];if(Array.isArray(t)?t.indexOf(a)!==-1:t===a)for(var c=A;c<=n.length;){c++;var s=n[c];if(s===e)return!0;if(s!==Qr)break}if(a!==Qr)break}return!1},tw=function(t,e){for(var A=t;A>=0;){var n=e[A];if(n===Qr)A--;else return n}return 0},jO=function(t,e,A,n,r){if(A[n]===0)return xe;var i=n-1;if(Array.isArray(r)&&r[i]===!0)return xe;var s=i-1,a=i+1,c=e[i],u=s>=0?e[s]:0,f=e[a];if(c===GB&&f===$B)return xe;if(gf.indexOf(c)!==-1)return ZB;if(gf.indexOf(f)!==-1||jB.indexOf(f)!==-1)return xe;if(tw(i,e)===JB)return Wa;if(pf.get(t[i])===rf||(c===Va||c===Pa)&&pf.get(t[a])===rf||c===WB||f===WB||c===XB||[Qr,sf,qs].indexOf(c)===-1&&f===XB||[Ka,Zs,$O,Xi,Yi].indexOf(f)!==-1||tw(i,e)===js||mf(lf,js,i,e)||mf([Ka,Zs],af,i,e)||mf(YB,YB,i,e))return xe;if(c===Qr)return Wa;if(c===lf||f===lf)return xe;if(f===of||c===of)return Wa;if([sf,qs,af].indexOf(f)!==-1||c===GO||u===ff&&qO.indexOf(c)!==-1||c===Yi&&f===ff||f===zB||Wn.indexOf(f)!==-1&&c===Tt||Wn.indexOf(c)!==-1&&f===Tt||c===Ao&&[to,Va,Pa].indexOf(f)!==-1||[to,Va,Pa].indexOf(c)!==-1&&f===eo||Wn.indexOf(c)!==-1&&ew.indexOf(f)!==-1||ew.indexOf(c)!==-1&&Wn.indexOf(f)!==-1||[Ao,eo].indexOf(c)!==-1&&(f===Tt||[js,qs].indexOf(f)!==-1&&e[a+1]===Tt)||[js,qs].indexOf(c)!==-1&&f===Tt||c===Tt&&[Tt,Yi,Xi].indexOf(f)!==-1)return xe;if([Tt,Yi,Xi,Ka,Zs].indexOf(f)!==-1)for(var p=i;p>=0;){var g=e[p];if(g===Tt)return xe;if([Yi,Xi].indexOf(g)!==-1)p--;else break}if([Ao,eo].indexOf(f)!==-1)for(var p=[Ka,Zs].indexOf(c)!==-1?s:i;p>=0;){var g=e[p];if(g===Tt)return xe;if([Yi,Xi].indexOf(g)!==-1)p--;else break}if(df===c&&[df,Ga,cf,uf].indexOf(f)!==-1||[Ga,cf].indexOf(c)!==-1&&[Ga,$a].indexOf(f)!==-1||[$a,uf].indexOf(c)!==-1&&f===$a||Aw.indexOf(c)!==-1&&[zB,eo].indexOf(f)!==-1||Aw.indexOf(f)!==-1&&c===Ao||Wn.indexOf(c)!==-1&&Wn.indexOf(f)!==-1||c===Xi&&Wn.indexOf(f)!==-1||Wn.concat(Tt).indexOf(c)!==-1&&f===js&&YO.indexOf(t[a])===-1||Wn.concat(Tt).indexOf(f)!==-1&&c===Zs)return xe;if(c===hf&&f===hf){for(var B=A[i],w=1;B>0&&(B--,e[B]===hf);)w++;if(w%2!==0)return xe}return c===Va&&f===Pa?xe:Wa},eL=function(t,e){e||(e={lineBreak:"normal",wordBreak:"normal"});var A=ZO(t,e.lineBreak),n=A[0],r=A[1],i=A[2];(e.wordBreak==="break-all"||e.wordBreak==="break-word")&&(r=r.map(function(a){return[Tt,ui,qB].indexOf(a)!==-1?to:a}));var s=e.wordBreak==="keep-all"?i.map(function(a,c){return a&&t[c]>=19968&&t[c]<=40959}):void 0;return[n,r,s]},AL=function(){function t(e,A,n,r){this.codePoints=e,this.required=A===ZB,this.start=n,this.end=r}return t.prototype.slice=function(){return wA.apply(void 0,this.codePoints.slice(this.start,this.end))},t}(),tL=function(t,e){var A=Na(t),n=eL(A,e),r=n[0],i=n[1],s=n[2],a=A.length,c=0,u=0;return{next:function(){if(u>=a)return{done:!0,value:null};for(var f=xe;u<a&&(f=jO(A,i,r,++u,s))===xe;);if(f!==xe||u===a){var p=new AL(A,f,c,u);return c=u,{value:p,done:!1}}return{done:!0,value:null}}}},nL=1,rL=2,no=4,nw=8,Ja=10,rw=47,ro=92,iL=9,sL=32,Xa=34,io=61,oL=35,aL=36,lL=37,Ya=39,za=40,so=41,cL=95,wt=45,uL=33,fL=60,dL=62,hL=64,pL=91,gL=93,mL=61,BL=123,qa=63,wL=125,iw=124,CL=126,yL=128,sw=65533,Bf=42,fi=43,EL=44,QL=58,FL=59,oo=46,bL=0,UL=8,vL=11,IL=14,SL=31,TL=127,Un=-1,ow=48,aw=97,lw=101,_L=102,xL=117,OL=122,cw=65,uw=69,fw=70,LL=85,kL=90,jA=function(t){return t>=ow&&t<=57},HL=function(t){return t>=55296&&t<=57343},zi=function(t){return jA(t)||t>=cw&&t<=fw||t>=aw&&t<=_L},NL=function(t){return t>=aw&&t<=OL},DL=function(t){return t>=cw&&t<=kL},ML=function(t){return NL(t)||DL(t)},RL=function(t){return t>=yL},Za=function(t){return t===Ja||t===iL||t===sL},ja=function(t){return ML(t)||RL(t)||t===cL},dw=function(t){return ja(t)||jA(t)||t===wt},KL=function(t){return t>=bL&&t<=UL||t===vL||t>=IL&&t<=SL||t===TL},Fr=function(t,e){return t!==ro?!1:e!==Ja},el=function(t,e,A){return t===wt?ja(e)||Fr(e,A):ja(t)?!0:!!(t===ro&&Fr(t,e))},wf=function(t,e,A){return t===fi||t===wt?jA(e)?!0:e===oo&&jA(A):jA(t===oo?e:t)},VL=function(t){var e=0,A=1;(t[e]===fi||t[e]===wt)&&(t[e]===wt&&(A=-1),e++);for(var n=[];jA(t[e]);)n.push(t[e++]);var r=n.length?parseInt(wA.apply(void 0,n),10):0;t[e]===oo&&e++;for(var i=[];jA(t[e]);)i.push(t[e++]);var s=i.length,a=s?parseInt(wA.apply(void 0,i),10):0;(t[e]===uw||t[e]===lw)&&e++;var c=1;(t[e]===fi||t[e]===wt)&&(t[e]===wt&&(c=-1),e++);for(var u=[];jA(t[e]);)u.push(t[e++]);var f=u.length?parseInt(wA.apply(void 0,u),10):0;return A*(r+a*Math.pow(10,-s))*Math.pow(10,c*f)},PL={type:2},GL={type:3},$L={type:4},WL={type:13},JL={type:8},XL={type:21},YL={type:9},zL={type:10},qL={type:11},ZL={type:12},jL={type:14},Al={type:23},ek={type:1},Ak={type:25},tk={type:24},nk={type:26},rk={type:27},ik={type:28},sk={type:29},ok={type:31},Cf={type:32},hw=function(){function t(){this._value=[]}return t.prototype.write=function(e){this._value=this._value.concat(Na(e))},t.prototype.read=function(){for(var e=[],A=this.consumeToken();A!==Cf;)e.push(A),A=this.consumeToken();return e},t.prototype.consumeToken=function(){var e=this.consumeCodePoint();switch(e){case Xa:return this.consumeStringToken(Xa);case oL:var A=this.peekCodePoint(0),n=this.peekCodePoint(1),r=this.peekCodePoint(2);if(dw(A)||Fr(n,r)){var i=el(A,n,r)?rL:nL,s=this.consumeName();return{type:5,value:s,flags:i}}break;case aL:if(this.peekCodePoint(0)===io)return this.consumeCodePoint(),WL;break;case Ya:return this.consumeStringToken(Ya);case za:return PL;case so:return GL;case Bf:if(this.peekCodePoint(0)===io)return this.consumeCodePoint(),jL;break;case fi:if(wf(e,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(e),this.consumeNumericToken();break;case EL:return $L;case wt:var a=e,c=this.peekCodePoint(0),u=this.peekCodePoint(1);if(wf(a,c,u))return this.reconsumeCodePoint(e),this.consumeNumericToken();if(el(a,c,u))return this.reconsumeCodePoint(e),this.consumeIdentLikeToken();if(c===wt&&u===dL)return this.consumeCodePoint(),this.consumeCodePoint(),tk;break;case oo:if(wf(e,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(e),this.consumeNumericToken();break;case rw:if(this.peekCodePoint(0)===Bf)for(this.consumeCodePoint();;){var f=this.consumeCodePoint();if(f===Bf&&(f=this.consumeCodePoint(),f===rw))return this.consumeToken();if(f===Un)return this.consumeToken()}break;case QL:return nk;case FL:return rk;case fL:if(this.peekCodePoint(0)===uL&&this.peekCodePoint(1)===wt&&this.peekCodePoint(2)===wt)return this.consumeCodePoint(),this.consumeCodePoint(),Ak;break;case hL:var p=this.peekCodePoint(0),g=this.peekCodePoint(1),B=this.peekCodePoint(2);if(el(p,g,B)){var s=this.consumeName();return{type:7,value:s}}break;case pL:return ik;case ro:if(Fr(e,this.peekCodePoint(0)))return this.reconsumeCodePoint(e),this.consumeIdentLikeToken();break;case gL:return sk;case mL:if(this.peekCodePoint(0)===io)return this.consumeCodePoint(),JL;break;case BL:return qL;case wL:return ZL;case xL:case LL:var w=this.peekCodePoint(0),Q=this.peekCodePoint(1);return w===fi&&(zi(Q)||Q===qa)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(e),this.consumeIdentLikeToken();case iw:if(this.peekCodePoint(0)===io)return this.consumeCodePoint(),YL;if(this.peekCodePoint(0)===iw)return this.consumeCodePoint(),XL;break;case CL:if(this.peekCodePoint(0)===io)return this.consumeCodePoint(),zL;break;case Un:return Cf}return Za(e)?(this.consumeWhiteSpace(),ok):jA(e)?(this.reconsumeCodePoint(e),this.consumeNumericToken()):ja(e)?(this.reconsumeCodePoint(e),this.consumeIdentLikeToken()):{type:6,value:wA(e)}},t.prototype.consumeCodePoint=function(){var e=this._value.shift();return typeof e>"u"?-1:e},t.prototype.reconsumeCodePoint=function(e){this._value.unshift(e)},t.prototype.peekCodePoint=function(e){return e>=this._value.length?-1:this._value[e]},t.prototype.consumeUnicodeRangeToken=function(){for(var e=[],A=this.consumeCodePoint();zi(A)&&e.length<6;)e.push(A),A=this.consumeCodePoint();for(var n=!1;A===qa&&e.length<6;)e.push(A),A=this.consumeCodePoint(),n=!0;if(n){var r=parseInt(wA.apply(void 0,e.map(function(c){return c===qa?ow:c})),16),i=parseInt(wA.apply(void 0,e.map(function(c){return c===qa?fw:c})),16);return{type:30,start:r,end:i}}var s=parseInt(wA.apply(void 0,e),16);if(this.peekCodePoint(0)===wt&&zi(this.peekCodePoint(1))){this.consumeCodePoint(),A=this.consumeCodePoint();for(var a=[];zi(A)&&a.length<6;)a.push(A),A=this.consumeCodePoint();var i=parseInt(wA.apply(void 0,a),16);return{type:30,start:s,end:i}}else return{type:30,start:s,end:s}},t.prototype.consumeIdentLikeToken=function(){var e=this.consumeName();return e.toLowerCase()==="url"&&this.peekCodePoint(0)===za?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===za?(this.consumeCodePoint(),{type:19,value:e}):{type:20,value:e}},t.prototype.consumeUrlToken=function(){var e=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===Un)return{type:22,value:""};var A=this.peekCodePoint(0);if(A===Ya||A===Xa){var n=this.consumeStringToken(this.consumeCodePoint());return n.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===Un||this.peekCodePoint(0)===so)?(this.consumeCodePoint(),{type:22,value:n.value}):(this.consumeBadUrlRemnants(),Al)}for(;;){var r=this.consumeCodePoint();if(r===Un||r===so)return{type:22,value:wA.apply(void 0,e)};if(Za(r))return this.consumeWhiteSpace(),this.peekCodePoint(0)===Un||this.peekCodePoint(0)===so?(this.consumeCodePoint(),{type:22,value:wA.apply(void 0,e)}):(this.consumeBadUrlRemnants(),Al);if(r===Xa||r===Ya||r===za||KL(r))return this.consumeBadUrlRemnants(),Al;if(r===ro)if(Fr(r,this.peekCodePoint(0)))e.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),Al;else e.push(r)}},t.prototype.consumeWhiteSpace=function(){for(;Za(this.peekCodePoint(0));)this.consumeCodePoint()},t.prototype.consumeBadUrlRemnants=function(){for(;;){var e=this.consumeCodePoint();if(e===so||e===Un)return;Fr(e,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},t.prototype.consumeStringSlice=function(e){for(var A=5e4,n="";e>0;){var r=Math.min(A,e);n+=wA.apply(void 0,this._value.splice(0,r)),e-=r}return this._value.shift(),n},t.prototype.consumeStringToken=function(e){var A="",n=0;do{var r=this._value[n];if(r===Un||r===void 0||r===e)return A+=this.consumeStringSlice(n),{type:0,value:A};if(r===Ja)return this._value.splice(0,n),ek;if(r===ro){var i=this._value[n+1];i!==Un&&i!==void 0&&(i===Ja?(A+=this.consumeStringSlice(n),n=-1,this._value.shift()):Fr(r,i)&&(A+=this.consumeStringSlice(n),A+=wA(this.consumeEscapedCodePoint()),n=-1))}n++}while(!0)},t.prototype.consumeNumber=function(){var e=[],A=no,n=this.peekCodePoint(0);for((n===fi||n===wt)&&e.push(this.consumeCodePoint());jA(this.peekCodePoint(0));)e.push(this.consumeCodePoint());n=this.peekCodePoint(0);var r=this.peekCodePoint(1);if(n===oo&&jA(r))for(e.push(this.consumeCodePoint(),this.consumeCodePoint()),A=nw;jA(this.peekCodePoint(0));)e.push(this.consumeCodePoint());n=this.peekCodePoint(0),r=this.peekCodePoint(1);var i=this.peekCodePoint(2);if((n===uw||n===lw)&&((r===fi||r===wt)&&jA(i)||jA(r)))for(e.push(this.consumeCodePoint(),this.consumeCodePoint()),A=nw;jA(this.peekCodePoint(0));)e.push(this.consumeCodePoint());return[VL(e),A]},t.prototype.consumeNumericToken=function(){var e=this.consumeNumber(),A=e[0],n=e[1],r=this.peekCodePoint(0),i=this.peekCodePoint(1),s=this.peekCodePoint(2);if(el(r,i,s)){var a=this.consumeName();return{type:15,number:A,flags:n,unit:a}}return r===lL?(this.consumeCodePoint(),{type:16,number:A,flags:n}):{type:17,number:A,flags:n}},t.prototype.consumeEscapedCodePoint=function(){var e=this.consumeCodePoint();if(zi(e)){for(var A=wA(e);zi(this.peekCodePoint(0))&&A.length<6;)A+=wA(this.consumeCodePoint());Za(this.peekCodePoint(0))&&this.consumeCodePoint();var n=parseInt(A,16);return n===0||HL(n)||n>1114111?sw:n}return e===Un?sw:e},t.prototype.consumeName=function(){for(var e="";;){var A=this.consumeCodePoint();if(dw(A))e+=wA(A);else if(Fr(A,this.peekCodePoint(0)))e+=wA(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(A),e}},t}(),pw=function(){function t(e){this._tokens=e}return t.create=function(e){var A=new hw;return A.write(e),new t(A.read())},t.parseValue=function(e){return t.create(e).parseComponentValue()},t.parseValues=function(e){return t.create(e).parseComponentValues()},t.prototype.parseComponentValue=function(){for(var e=this.consumeToken();e.type===31;)e=this.consumeToken();if(e.type===32)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(e);var A=this.consumeComponentValue();do e=this.consumeToken();while(e.type===31);if(e.type===32)return A;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},t.prototype.parseComponentValues=function(){for(var e=[];;){var A=this.consumeComponentValue();if(A.type===32)return e;e.push(A),e.push()}},t.prototype.consumeComponentValue=function(){var e=this.consumeToken();switch(e.type){case 11:case 28:case 2:return this.consumeSimpleBlock(e.type);case 19:return this.consumeFunction(e)}return e},t.prototype.consumeSimpleBlock=function(e){for(var A={type:e,values:[]},n=this.consumeToken();;){if(n.type===32||lk(n,e))return A;this.reconsumeToken(n),A.values.push(this.consumeComponentValue()),n=this.consumeToken()}},t.prototype.consumeFunction=function(e){for(var A={name:e.value,values:[],type:18};;){var n=this.consumeToken();if(n.type===32||n.type===3)return A;this.reconsumeToken(n),A.values.push(this.consumeComponentValue())}},t.prototype.consumeToken=function(){var e=this._tokens.shift();return typeof e>"u"?Cf:e},t.prototype.reconsumeToken=function(e){this._tokens.unshift(e)},t}(),ao=function(t){return t.type===15},qi=function(t){return t.type===17},eA=function(t){return t.type===20},ak=function(t){return t.type===0},yf=function(t,e){return eA(t)&&t.value===e},gw=function(t){return t.type!==31},Zi=function(t){return t.type!==31&&t.type!==4},vn=function(t){var e=[],A=[];return t.forEach(function(n){if(n.type===4){if(A.length===0)throw new Error("Error parsing function args, zero tokens for arg");e.push(A),A=[];return}n.type!==31&&A.push(n)}),A.length&&e.push(A),e},lk=function(t,e){return e===11&&t.type===12||e===28&&t.type===29?!0:e===2&&t.type===3},br=function(t){return t.type===17||t.type===15},UA=function(t){return t.type===16||br(t)},mw=function(t){return t.length>1?[t[0],t[1]]:[t[0]]},VA={type:17,number:0,flags:no},Ef={type:16,number:50,flags:no},Ur={type:16,number:100,flags:no},lo=function(t,e,A){var n=t[0],r=t[1];return[oA(n,e),oA(typeof r<"u"?r:n,A)]},oA=function(t,e){if(t.type===16)return t.number/100*e;if(ao(t))switch(t.unit){case"rem":case"em":return 16*t.number;case"px":default:return t.number}return t.number},Bw="deg",ww="grad",Cw="rad",yw="turn",tl={name:"angle",parse:function(t,e){if(e.type===15)switch(e.unit){case Bw:return Math.PI*e.number/180;case ww:return Math.PI/200*e.number;case Cw:return e.number;case yw:return Math.PI*2*e.number}throw new Error("Unsupported angle type")}},Ew=function(t){return t.type===15&&(t.unit===Bw||t.unit===ww||t.unit===Cw||t.unit===yw)},Qw=function(t){var e=t.filter(eA).map(function(A){return A.value}).join(" ");switch(e){case"to bottom right":case"to right bottom":case"left top":case"top left":return[VA,VA];case"to top":case"bottom":return Pt(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[VA,Ur];case"to right":case"left":return Pt(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[Ur,Ur];case"to bottom":case"top":return Pt(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[Ur,VA];case"to left":case"right":return Pt(270)}return 0},Pt=function(t){return Math.PI*t/180},vr={name:"color",parse:function(t,e){if(e.type===18){var A=ck[e.name];if(typeof A>"u")throw new Error('Attempting to parse an unsupported color function "'+e.name+'"');return A(t,e.values)}if(e.type===5){if(e.value.length===3){var n=e.value.substring(0,1),r=e.value.substring(1,2),i=e.value.substring(2,3);return Sr(parseInt(n+n,16),parseInt(r+r,16),parseInt(i+i,16),1)}if(e.value.length===4){var n=e.value.substring(0,1),r=e.value.substring(1,2),i=e.value.substring(2,3),s=e.value.substring(3,4);return Sr(parseInt(n+n,16),parseInt(r+r,16),parseInt(i+i,16),parseInt(s+s,16)/255)}if(e.value.length===6){var n=e.value.substring(0,2),r=e.value.substring(2,4),i=e.value.substring(4,6);return Sr(parseInt(n,16),parseInt(r,16),parseInt(i,16),1)}if(e.value.length===8){var n=e.value.substring(0,2),r=e.value.substring(2,4),i=e.value.substring(4,6),s=e.value.substring(6,8);return Sr(parseInt(n,16),parseInt(r,16),parseInt(i,16),parseInt(s,16)/255)}}if(e.type===20){var a=Jn[e.value.toUpperCase()];if(typeof a<"u")return a}return Jn.TRANSPARENT}},Ir=function(t){return(255&t)===0},NA=function(t){var e=255&t,A=255&t>>8,n=255&t>>16,r=255&t>>24;return e<255?"rgba("+r+","+n+","+A+","+e/255+")":"rgb("+r+","+n+","+A+")"},Sr=function(t,e,A,n){return(t<<24|e<<16|A<<8|Math.round(n*255)<<0)>>>0},Fw=function(t,e){if(t.type===17)return t.number;if(t.type===16){var A=e===3?1:255;return e===3?t.number/100*A:Math.round(t.number/100*A)}return 0},bw=function(t,e){var A=e.filter(Zi);if(A.length===3){var n=A.map(Fw),r=n[0],i=n[1],s=n[2];return Sr(r,i,s,1)}if(A.length===4){var a=A.map(Fw),r=a[0],i=a[1],s=a[2],c=a[3];return Sr(r,i,s,c)}return 0};function Qf(t,e,A){return A<0&&(A+=1),A>=1&&(A-=1),A<1/6?(e-t)*A*6+t:A<1/2?e:A<2/3?(e-t)*6*(2/3-A)+t:t}var Uw=function(t,e){var A=e.filter(Zi),n=A[0],r=A[1],i=A[2],s=A[3],a=(n.type===17?Pt(n.number):tl.parse(t,n))/(Math.PI*2),c=UA(r)?r.number/100:0,u=UA(i)?i.number/100:0,f=typeof s<"u"&&UA(s)?oA(s,1):1;if(c===0)return Sr(u*255,u*255,u*255,1);var p=u<=.5?u*(c+1):u+c-u*c,g=u*2-p,B=Qf(g,p,a+1/3),w=Qf(g,p,a),Q=Qf(g,p,a-1/3);return Sr(B*255,w*255,Q*255,f)},ck={hsl:Uw,hsla:Uw,rgb:bw,rgba:bw},co=function(t,e){return vr.parse(t,pw.create(e).parseComponentValue())},Jn={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:4041641215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199},uk={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(t,e){return e.map(function(A){if(eA(A))switch(A.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},fk={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},nl=function(t,e){var A=vr.parse(t,e[0]),n=e[1];return n&&UA(n)?{color:A,stop:n}:{color:A,stop:null}},vw=function(t,e){var A=t[0],n=t[t.length-1];A.stop===null&&(A.stop=VA),n.stop===null&&(n.stop=Ur);for(var r=[],i=0,s=0;s<t.length;s++){var a=t[s].stop;if(a!==null){var c=oA(a,e);c>i?r.push(c):r.push(i),i=c}else r.push(null)}for(var u=null,s=0;s<r.length;s++){var f=r[s];if(f===null)u===null&&(u=s);else if(u!==null){for(var p=s-u,g=r[u-1],B=(f-g)/(p+1),w=1;w<=p;w++)r[u+w-1]=B*w;u=null}}return t.map(function(Q,b){var v=Q.color;return{color:v,stop:Math.max(Math.min(1,r[b]/e),0)}})},dk=function(t,e,A){var n=e/2,r=A/2,i=oA(t[0],e)-n,s=r-oA(t[1],A);return(Math.atan2(s,i)+Math.PI*2)%(Math.PI*2)},hk=function(t,e,A){var n=typeof t=="number"?t:dk(t,e,A),r=Math.abs(e*Math.sin(n))+Math.abs(A*Math.cos(n)),i=e/2,s=A/2,a=r/2,c=Math.sin(n-Math.PI/2)*a,u=Math.cos(n-Math.PI/2)*a;return[r,i-u,i+u,s-c,s+c]},cn=function(t,e){return Math.sqrt(t*t+e*e)},Iw=function(t,e,A,n,r){var i=[[0,0],[0,e],[t,0],[t,e]];return i.reduce(function(s,a){var c=a[0],u=a[1],f=cn(A-c,n-u);return(r?f<s.optimumDistance:f>s.optimumDistance)?{optimumCorner:a,optimumDistance:f}:s},{optimumDistance:r?1/0:-1/0,optimumCorner:null}).optimumCorner},pk=function(t,e,A,n,r){var i=0,s=0;switch(t.size){case 0:t.shape===0?i=s=Math.min(Math.abs(e),Math.abs(e-n),Math.abs(A),Math.abs(A-r)):t.shape===1&&(i=Math.min(Math.abs(e),Math.abs(e-n)),s=Math.min(Math.abs(A),Math.abs(A-r)));break;case 2:if(t.shape===0)i=s=Math.min(cn(e,A),cn(e,A-r),cn(e-n,A),cn(e-n,A-r));else if(t.shape===1){var a=Math.min(Math.abs(A),Math.abs(A-r))/Math.min(Math.abs(e),Math.abs(e-n)),c=Iw(n,r,e,A,!0),u=c[0],f=c[1];i=cn(u-e,(f-A)/a),s=a*i}break;case 1:t.shape===0?i=s=Math.max(Math.abs(e),Math.abs(e-n),Math.abs(A),Math.abs(A-r)):t.shape===1&&(i=Math.max(Math.abs(e),Math.abs(e-n)),s=Math.max(Math.abs(A),Math.abs(A-r)));break;case 3:if(t.shape===0)i=s=Math.max(cn(e,A),cn(e,A-r),cn(e-n,A),cn(e-n,A-r));else if(t.shape===1){var a=Math.max(Math.abs(A),Math.abs(A-r))/Math.max(Math.abs(e),Math.abs(e-n)),p=Iw(n,r,e,A,!1),u=p[0],f=p[1];i=cn(u-e,(f-A)/a),s=a*i}break}return Array.isArray(t.size)&&(i=oA(t.size[0],n),s=t.size.length===2?oA(t.size[1],r):i),[i,s]},gk=function(t,e){var A=Pt(180),n=[];return vn(e).forEach(function(r,i){if(i===0){var s=r[0];if(s.type===20&&s.value==="to"){A=Qw(r);return}else if(Ew(s)){A=tl.parse(t,s);return}}var a=nl(t,r);n.push(a)}),{angle:A,stops:n,type:1}},rl=function(t,e){var A=Pt(180),n=[];return vn(e).forEach(function(r,i){if(i===0){var s=r[0];if(s.type===20&&["top","left","right","bottom"].indexOf(s.value)!==-1){A=Qw(r);return}else if(Ew(s)){A=(tl.parse(t,s)+Pt(270))%Pt(360);return}}var a=nl(t,r);n.push(a)}),{angle:A,stops:n,type:1}},mk=function(t,e){var A=Pt(180),n=[],r=1,i=0,s=3,a=[];return vn(e).forEach(function(c,u){var f=c[0];if(u===0){if(eA(f)&&f.value==="linear"){r=1;return}else if(eA(f)&&f.value==="radial"){r=2;return}}if(f.type===18){if(f.name==="from"){var p=vr.parse(t,f.values[0]);n.push({stop:VA,color:p})}else if(f.name==="to"){var p=vr.parse(t,f.values[0]);n.push({stop:Ur,color:p})}else if(f.name==="color-stop"){var g=f.values.filter(Zi);if(g.length===2){var p=vr.parse(t,g[1]),B=g[0];qi(B)&&n.push({stop:{type:16,number:B.number*100,flags:B.flags},color:p})}}}}),r===1?{angle:(A+Pt(180))%Pt(360),stops:n,type:r}:{size:s,shape:i,stops:n,position:a,type:r}},Sw="closest-side",Tw="farthest-side",_w="closest-corner",xw="farthest-corner",Ow="circle",Lw="ellipse",kw="cover",Hw="contain",Bk=function(t,e){var A=0,n=3,r=[],i=[];return vn(e).forEach(function(s,a){var c=!0;if(a===0){var u=!1;c=s.reduce(function(p,g){if(u)if(eA(g))switch(g.value){case"center":return i.push(Ef),p;case"top":case"left":return i.push(VA),p;case"right":case"bottom":return i.push(Ur),p}else(UA(g)||br(g))&&i.push(g);else if(eA(g))switch(g.value){case Ow:return A=0,!1;case Lw:return A=1,!1;case"at":return u=!0,!1;case Sw:return n=0,!1;case kw:case Tw:return n=1,!1;case Hw:case _w:return n=2,!1;case xw:return n=3,!1}else if(br(g)||UA(g))return Array.isArray(n)||(n=[]),n.push(g),!1;return p},c)}if(c){var f=nl(t,s);r.push(f)}}),{size:n,shape:A,stops:r,position:i,type:2}},il=function(t,e){var A=0,n=3,r=[],i=[];return vn(e).forEach(function(s,a){var c=!0;if(a===0?c=s.reduce(function(f,p){if(eA(p))switch(p.value){case"center":return i.push(Ef),!1;case"top":case"left":return i.push(VA),!1;case"right":case"bottom":return i.push(Ur),!1}else if(UA(p)||br(p))return i.push(p),!1;return f},c):a===1&&(c=s.reduce(function(f,p){if(eA(p))switch(p.value){case Ow:return A=0,!1;case Lw:return A=1,!1;case Hw:case Sw:return n=0,!1;case Tw:return n=1,!1;case _w:return n=2,!1;case kw:case xw:return n=3,!1}else if(br(p)||UA(p))return Array.isArray(n)||(n=[]),n.push(p),!1;return f},c)),c){var u=nl(t,s);r.push(u)}}),{size:n,shape:A,stops:r,position:i,type:2}},wk=function(t){return t.type===1},Ck=function(t){return t.type===2},Ff={name:"image",parse:function(t,e){if(e.type===22){var A={url:e.value,type:0};return t.cache.addImage(e.value),A}if(e.type===18){var n=Nw[e.name];if(typeof n>"u")throw new Error('Attempting to parse an unsupported image function "'+e.name+'"');return n(t,e.values)}throw new Error("Unsupported image type "+e.type)}};function yk(t){return!(t.type===20&&t.value==="none")&&(t.type!==18||!!Nw[t.name])}var Nw={"linear-gradient":gk,"-moz-linear-gradient":rl,"-ms-linear-gradient":rl,"-o-linear-gradient":rl,"-webkit-linear-gradient":rl,"radial-gradient":Bk,"-moz-radial-gradient":il,"-ms-radial-gradient":il,"-o-radial-gradient":il,"-webkit-radial-gradient":il,"-webkit-gradient":mk},Ek={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(t,e){if(e.length===0)return[];var A=e[0];return A.type===20&&A.value==="none"?[]:e.filter(function(n){return Zi(n)&&yk(n)}).map(function(n){return Ff.parse(t,n)})}},Qk={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(t,e){return e.map(function(A){if(eA(A))switch(A.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},Fk={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(t,e){return vn(e).map(function(A){return A.filter(UA)}).map(mw)}},bk={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(t,e){return vn(e).map(function(A){return A.filter(eA).map(function(n){return n.value}).join(" ")}).map(Uk)}},Uk=function(t){switch(t){case"no-repeat":return 1;case"repeat-x":case"repeat no-repeat":return 2;case"repeat-y":case"no-repeat repeat":return 3;case"repeat":default:return 0}},ji;(function(t){t.AUTO="auto",t.CONTAIN="contain",t.COVER="cover"})(ji||(ji={}));var vk={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(t,e){return vn(e).map(function(A){return A.filter(Ik)})}},Ik=function(t){return eA(t)||UA(t)},sl=function(t){return{name:"border-"+t+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},Sk=sl("top"),Tk=sl("right"),_k=sl("bottom"),xk=sl("left"),ol=function(t){return{name:"border-radius-"+t,initialValue:"0 0",prefix:!1,type:1,parse:function(e,A){return mw(A.filter(UA))}}},Ok=ol("top-left"),Lk=ol("top-right"),kk=ol("bottom-right"),Hk=ol("bottom-left"),al=function(t){return{name:"border-"+t+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(e,A){switch(A){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},Nk=al("top"),Dk=al("right"),Mk=al("bottom"),Rk=al("left"),ll=function(t){return{name:"border-"+t+"-width",initialValue:"0",type:0,prefix:!1,parse:function(e,A){return ao(A)?A.number:0}}},Kk=ll("top"),Vk=ll("right"),Pk=ll("bottom"),Gk=ll("left"),$k={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Wk={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(t,e){switch(e){case"rtl":return 1;case"ltr":default:return 0}}},Jk={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(t,e){return e.filter(eA).reduce(function(A,n){return A|Xk(n.value)},0)}},Xk=function(t){switch(t){case"block":case"-webkit-box":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0},Yk={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(t,e){switch(e){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},zk={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(t,e){return e.type===20&&e.value==="normal"?0:e.type===17||e.type===15?e.number:0}},cl;(function(t){t.NORMAL="normal",t.STRICT="strict"})(cl||(cl={}));var qk={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(t,e){switch(e){case"strict":return cl.STRICT;case"normal":default:return cl.NORMAL}}},Zk={name:"line-height",initialValue:"normal",prefix:!1,type:4},Dw=function(t,e){return eA(t)&&t.value==="normal"?1.2*e:t.type===17?e*t.number:UA(t)?oA(t,e):e},jk={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(t,e){return e.type===20&&e.value==="none"?null:Ff.parse(t,e)}},eH={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(t,e){switch(e){case"inside":return 0;case"outside":default:return 1}}},bf={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(t,e){switch(e){case"disc":return 0;case"circle":return 1;case"square":return 2;case"decimal":return 3;case"cjk-decimal":return 4;case"decimal-leading-zero":return 5;case"lower-roman":return 6;case"upper-roman":return 7;case"lower-greek":return 8;case"lower-alpha":return 9;case"upper-alpha":return 10;case"arabic-indic":return 11;case"armenian":return 12;case"bengali":return 13;case"cambodian":return 14;case"cjk-earthly-branch":return 15;case"cjk-heavenly-stem":return 16;case"cjk-ideographic":return 17;case"devanagari":return 18;case"ethiopic-numeric":return 19;case"georgian":return 20;case"gujarati":return 21;case"gurmukhi":return 22;case"hebrew":return 22;case"hiragana":return 23;case"hiragana-iroha":return 24;case"japanese-formal":return 25;case"japanese-informal":return 26;case"kannada":return 27;case"katakana":return 28;case"katakana-iroha":return 29;case"khmer":return 30;case"korean-hangul-formal":return 31;case"korean-hanja-formal":return 32;case"korean-hanja-informal":return 33;case"lao":return 34;case"lower-armenian":return 35;case"malayalam":return 36;case"mongolian":return 37;case"myanmar":return 38;case"oriya":return 39;case"persian":return 40;case"simp-chinese-formal":return 41;case"simp-chinese-informal":return 42;case"tamil":return 43;case"telugu":return 44;case"thai":return 45;case"tibetan":return 46;case"trad-chinese-formal":return 47;case"trad-chinese-informal":return 48;case"upper-armenian":return 49;case"disclosure-open":return 50;case"disclosure-closed":return 51;case"none":default:return-1}}},ul=function(t){return{name:"margin-"+t,initialValue:"0",prefix:!1,type:4}},AH=ul("top"),tH=ul("right"),nH=ul("bottom"),rH=ul("left"),iH={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(t,e){return e.filter(eA).map(function(A){switch(A.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;case"visible":default:return 0}})}},sH={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(t,e){switch(e){case"break-word":return"break-word";case"normal":default:return"normal"}}},fl=function(t){return{name:"padding-"+t,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},oH=fl("top"),aH=fl("right"),lH=fl("bottom"),cH=fl("left"),uH={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(t,e){switch(e){case"right":return 2;case"center":case"justify":return 1;case"left":default:return 0}}},fH={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(t,e){switch(e){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},dH={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(t,e){return e.length===1&&yf(e[0],"none")?[]:vn(e).map(function(A){for(var n={color:Jn.TRANSPARENT,offsetX:VA,offsetY:VA,blur:VA},r=0,i=0;i<A.length;i++){var s=A[i];br(s)?(r===0?n.offsetX=s:r===1?n.offsetY=s:n.blur=s,r++):n.color=vr.parse(t,s)}return n})}},hH={name:"text-transform",initialValue:"none",prefix:!1,type:2,parse:function(t,e){switch(e){case"uppercase":return 2;case"lowercase":return 1;case"capitalize":return 3}return 0}},pH={name:"transform",initialValue:"none",prefix:!0,type:0,parse:function(t,e){if(e.type===20&&e.value==="none")return null;if(e.type===18){var A=BH[e.name];if(typeof A>"u")throw new Error('Attempting to parse an unsupported transform function "'+e.name+'"');return A(e.values)}return null}},gH=function(t){var e=t.filter(function(A){return A.type===17}).map(function(A){return A.number});return e.length===6?e:null},mH=function(t){var e=t.filter(function(c){return c.type===17}).map(function(c){return c.number}),A=e[0],n=e[1];e[2],e[3];var r=e[4],i=e[5];e[6],e[7],e[8],e[9],e[10],e[11];var s=e[12],a=e[13];return e[14],e[15],e.length===16?[A,n,r,i,s,a]:null},BH={matrix:gH,matrix3d:mH},Mw={type:16,number:50,flags:no},wH=[Mw,Mw],CH={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(t,e){var A=e.filter(UA);return A.length!==2?wH:[A[0],A[1]]}},yH={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(t,e){switch(e){case"hidden":return 1;case"collapse":return 2;case"visible":default:return 0}}},uo;(function(t){t.NORMAL="normal",t.BREAK_ALL="break-all",t.KEEP_ALL="keep-all"})(uo||(uo={}));for(var EH={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(t,e){switch(e){case"break-all":return uo.BREAK_ALL;case"keep-all":return uo.KEEP_ALL;case"normal":default:return uo.NORMAL}}},QH={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(t,e){if(e.type===20)return{auto:!0,order:0};if(qi(e))return{auto:!1,order:e.number};throw new Error("Invalid z-index number parsed")}},Rw={name:"time",parse:function(t,e){if(e.type===15)switch(e.unit.toLowerCase()){case"s":return 1e3*e.number;case"ms":return e.number}throw new Error("Unsupported time type")}},FH={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(t,e){return qi(e)?e.number:1}},bH={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},UH={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(t,e){return e.filter(eA).map(function(A){switch(A.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0}).filter(function(A){return A!==0})}},vH={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(t,e){var A=[],n=[];return e.forEach(function(r){switch(r.type){case 20:case 0:A.push(r.value);break;case 17:A.push(r.number.toString());break;case 4:n.push(A.join(" ")),A.length=0;break}}),A.length&&n.push(A.join(" ")),n.map(function(r){return r.indexOf(" ")===-1?r:"'"+r+"'"})}},IH={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},SH={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(t,e){if(qi(e))return e.number;if(eA(e))switch(e.value){case"bold":return 700;case"normal":default:return 400}return 400}},TH={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(t,e){return e.filter(eA).map(function(A){return A.value})}},_H={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(t,e){switch(e){case"oblique":return"oblique";case"italic":return"italic";case"normal":default:return"normal"}}},SA=function(t,e){return(t&e)!==0},xH={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(t,e){if(e.length===0)return[];var A=e[0];return A.type===20&&A.value==="none"?[]:e}},OH={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(t,e){if(e.length===0)return null;var A=e[0];if(A.type===20&&A.value==="none")return null;for(var n=[],r=e.filter(gw),i=0;i<r.length;i++){var s=r[i],a=r[i+1];if(s.type===20){var c=a&&qi(a)?a.number:1;n.push({counter:s.value,increment:c})}}return n}},LH={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(t,e){if(e.length===0)return[];for(var A=[],n=e.filter(gw),r=0;r<n.length;r++){var i=n[r],s=n[r+1];if(eA(i)&&i.value!=="none"){var a=s&&qi(s)?s.number:0;A.push({counter:i.value,reset:a})}}return A}},kH={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(t,e){return e.filter(ao).map(function(A){return Rw.parse(t,A)})}},HH={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:function(t,e){if(e.length===0)return null;var A=e[0];if(A.type===20&&A.value==="none")return null;var n=[],r=e.filter(ak);if(r.length%2!==0)return null;for(var i=0;i<r.length;i+=2){var s=r[i].value,a=r[i+1].value;n.push({open:s,close:a})}return n}},Kw=function(t,e,A){if(!t)return"";var n=t[Math.min(e,t.length-1)];return n?A?n.open:n.close:""},NH={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(t,e){return e.length===1&&yf(e[0],"none")?[]:vn(e).map(function(A){for(var n={color:255,offsetX:VA,offsetY:VA,blur:VA,spread:VA,inset:!1},r=0,i=0;i<A.length;i++){var s=A[i];yf(s,"inset")?n.inset=!0:br(s)?(r===0?n.offsetX=s:r===1?n.offsetY=s:r===2?n.blur=s:n.spread=s,r++):n.color=vr.parse(t,s)}return n})}},DH={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function(t,e){var A=[0,1,2],n=[];return e.filter(eA).forEach(function(r){switch(r.value){case"stroke":n.push(1);break;case"fill":n.push(0);break;case"markers":n.push(2);break}}),A.forEach(function(r){n.indexOf(r)===-1&&n.push(r)}),n}},MH={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},RH={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:function(t,e){return ao(e)?e.number:0}},KH=function(){function t(e,A){var n,r;this.animationDuration=ee(e,kH,A.animationDuration),this.backgroundClip=ee(e,uk,A.backgroundClip),this.backgroundColor=ee(e,fk,A.backgroundColor),this.backgroundImage=ee(e,Ek,A.backgroundImage),this.backgroundOrigin=ee(e,Qk,A.backgroundOrigin),this.backgroundPosition=ee(e,Fk,A.backgroundPosition),this.backgroundRepeat=ee(e,bk,A.backgroundRepeat),this.backgroundSize=ee(e,vk,A.backgroundSize),this.borderTopColor=ee(e,Sk,A.borderTopColor),this.borderRightColor=ee(e,Tk,A.borderRightColor),this.borderBottomColor=ee(e,_k,A.borderBottomColor),this.borderLeftColor=ee(e,xk,A.borderLeftColor),this.borderTopLeftRadius=ee(e,Ok,A.borderTopLeftRadius),this.borderTopRightRadius=ee(e,Lk,A.borderTopRightRadius),this.borderBottomRightRadius=ee(e,kk,A.borderBottomRightRadius),this.borderBottomLeftRadius=ee(e,Hk,A.borderBottomLeftRadius),this.borderTopStyle=ee(e,Nk,A.borderTopStyle),this.borderRightStyle=ee(e,Dk,A.borderRightStyle),this.borderBottomStyle=ee(e,Mk,A.borderBottomStyle),this.borderLeftStyle=ee(e,Rk,A.borderLeftStyle),this.borderTopWidth=ee(e,Kk,A.borderTopWidth),this.borderRightWidth=ee(e,Vk,A.borderRightWidth),this.borderBottomWidth=ee(e,Pk,A.borderBottomWidth),this.borderLeftWidth=ee(e,Gk,A.borderLeftWidth),this.boxShadow=ee(e,NH,A.boxShadow),this.color=ee(e,$k,A.color),this.direction=ee(e,Wk,A.direction),this.display=ee(e,Jk,A.display),this.float=ee(e,Yk,A.cssFloat),this.fontFamily=ee(e,vH,A.fontFamily),this.fontSize=ee(e,IH,A.fontSize),this.fontStyle=ee(e,_H,A.fontStyle),this.fontVariant=ee(e,TH,A.fontVariant),this.fontWeight=ee(e,SH,A.fontWeight),this.letterSpacing=ee(e,zk,A.letterSpacing),this.lineBreak=ee(e,qk,A.lineBreak),this.lineHeight=ee(e,Zk,A.lineHeight),this.listStyleImage=ee(e,jk,A.listStyleImage),this.listStylePosition=ee(e,eH,A.listStylePosition),this.listStyleType=ee(e,bf,A.listStyleType),this.marginTop=ee(e,AH,A.marginTop),this.marginRight=ee(e,tH,A.marginRight),this.marginBottom=ee(e,nH,A.marginBottom),this.marginLeft=ee(e,rH,A.marginLeft),this.opacity=ee(e,FH,A.opacity);var i=ee(e,iH,A.overflow);this.overflowX=i[0],this.overflowY=i[i.length>1?1:0],this.overflowWrap=ee(e,sH,A.overflowWrap),this.paddingTop=ee(e,oH,A.paddingTop),this.paddingRight=ee(e,aH,A.paddingRight),this.paddingBottom=ee(e,lH,A.paddingBottom),this.paddingLeft=ee(e,cH,A.paddingLeft),this.paintOrder=ee(e,DH,A.paintOrder),this.position=ee(e,fH,A.position),this.textAlign=ee(e,uH,A.textAlign),this.textDecorationColor=ee(e,bH,(n=A.textDecorationColor)!==null&&n!==void 0?n:A.color),this.textDecorationLine=ee(e,UH,(r=A.textDecorationLine)!==null&&r!==void 0?r:A.textDecoration),this.textShadow=ee(e,dH,A.textShadow),this.textTransform=ee(e,hH,A.textTransform),this.transform=ee(e,pH,A.transform),this.transformOrigin=ee(e,CH,A.transformOrigin),this.visibility=ee(e,yH,A.visibility),this.webkitTextStrokeColor=ee(e,MH,A.webkitTextStrokeColor),this.webkitTextStrokeWidth=ee(e,RH,A.webkitTextStrokeWidth),this.wordBreak=ee(e,EH,A.wordBreak),this.zIndex=ee(e,QH,A.zIndex)}return t.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===0},t.prototype.isTransparent=function(){return Ir(this.backgroundColor)},t.prototype.isTransformed=function(){return this.transform!==null},t.prototype.isPositioned=function(){return this.position!==0},t.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},t.prototype.isFloating=function(){return this.float!==0},t.prototype.isInlineLevel=function(){return SA(this.display,4)||SA(this.display,33554432)||SA(this.display,268435456)||SA(this.display,536870912)||SA(this.display,67108864)||SA(this.display,134217728)},t}(),VH=function(){function t(e,A){this.content=ee(e,xH,A.content),this.quotes=ee(e,HH,A.quotes)}return t}(),Vw=function(){function t(e,A){this.counterIncrement=ee(e,OH,A.counterIncrement),this.counterReset=ee(e,LH,A.counterReset)}return t}(),ee=function(t,e,A){var n=new hw,r=A!==null&&typeof A<"u"?A.toString():e.initialValue;n.write(r);var i=new pw(n.read());switch(e.type){case 2:var s=i.parseComponentValue();return e.parse(t,eA(s)?s.value:e.initialValue);case 0:return e.parse(t,i.parseComponentValue());case 1:return e.parse(t,i.parseComponentValues());case 4:return i.parseComponentValue();case 3:switch(e.format){case"angle":return tl.parse(t,i.parseComponentValue());case"color":return vr.parse(t,i.parseComponentValue());case"image":return Ff.parse(t,i.parseComponentValue());case"length":var a=i.parseComponentValue();return br(a)?a:VA;case"length-percentage":var c=i.parseComponentValue();return UA(c)?c:VA;case"time":return Rw.parse(t,i.parseComponentValue())}break}},PH="data-html2canvas-debug",GH=function(t){var e=t.getAttribute(PH);switch(e){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},Uf=function(t,e){var A=GH(t);return A===1||e===A},In=function(){function t(e,A){if(this.context=e,this.textNodes=[],this.elements=[],this.flags=0,Uf(A,3))debugger;this.styles=new KH(e,window.getComputedStyle(A,null)),Rf(A)&&(this.styles.animationDuration.some(function(n){return n>0})&&(A.style.animationDuration="0s"),this.styles.transform!==null&&(A.style.transform="none")),this.bounds=Ha(this.context,A),Uf(A,4)&&(this.flags|=16)}return t}(),$H="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAQADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUAAAAFAAUAAAAFAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAQAAAAUABQAFAAUABQAFAAAAAAAFAAUAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAFAAUAAQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAAABwAHAAcAAAAHAAcABwAFAAEAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAcABwAFAAUAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAQABAAAAAAAAAAAAAAAFAAUABQAFAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAHAAcAAAAHAAcAAAAAAAUABQAHAAUAAQAHAAEABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwABAAUABQAFAAUAAAAAAAAAAAAAAAEAAQABAAEAAQABAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABQANAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAABQAHAAUABQAFAAAAAAAAAAcABQAFAAUABQAFAAQABAAEAAQABAAEAAQABAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUAAAAFAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAUAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAcABwAFAAcABwAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUABwAHAAUABQAFAAUAAAAAAAcABwAAAAAABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAAAAAAAAAAABQAFAAAAAAAFAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAFAAUABQAFAAUAAAAFAAUABwAAAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABwAFAAUABQAFAAAAAAAHAAcAAAAAAAcABwAFAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAAAAAAAAAHAAcABwAAAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAUABQAFAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAHAAcABQAHAAcAAAAFAAcABwAAAAcABwAFAAUAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAFAAcABwAFAAUABQAAAAUAAAAHAAcABwAHAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAHAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUAAAAFAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAUAAAAFAAUAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABwAFAAUABQAFAAUABQAAAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABQAFAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAFAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAHAAUABQAFAAUABQAFAAUABwAHAAcABwAHAAcABwAHAAUABwAHAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABwAHAAcABwAFAAUABwAHAAcAAAAAAAAAAAAHAAcABQAHAAcABwAHAAcABwAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAUABQAFAAUABQAFAAUAAAAFAAAABQAAAAAABQAFAAUABQAFAAUABQAFAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAUABQAFAAUABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABwAFAAcABwAHAAcABwAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAUABQAFAAUABwAHAAUABQAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABQAFAAcABwAHAAUABwAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAcABQAFAAUABQAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAAAAAABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAAAAAAAAAFAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAUABQAHAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAFAAUABQAFAAcABwAFAAUABwAHAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAcABwAFAAUABwAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABQAAAAAABQAFAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAcABwAAAAAAAAAAAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAcABwAFAAcABwAAAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAFAAUABQAAAAUABQAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABwAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAHAAcABQAHAAUABQAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAAABwAHAAAAAAAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAFAAUABwAFAAcABwAFAAcABQAFAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAAAAAABwAHAAcABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAFAAcABwAFAAUABQAFAAUABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAUABQAFAAcABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABQAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAAAAAAFAAUABwAHAAcABwAFAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAHAAUABQAFAAUABQAFAAUABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAABQAAAAUABQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAHAAcAAAAFAAUAAAAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABQAFAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAABQAFAAUABQAFAAUABQAAAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAFAAUABQAFAAUADgAOAA4ADgAOAA4ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAMAAwADAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAAAAAAAAAAAAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAAAAAAAAAAAAsADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwACwAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAADgAOAA4AAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAAAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4AAAAOAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAAAAAAAAAAAA4AAAAOAAAAAAAAAAAADgAOAA4AAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=",Pw="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",fo=typeof Uint8Array>"u"?[]:new Uint8Array(256),dl=0;dl<Pw.length;dl++)fo[Pw.charCodeAt(dl)]=dl;for(var WH=function(t){var e=t.length*.75,A=t.length,n,r=0,i,s,a,c;t[t.length-1]==="="&&(e--,t[t.length-2]==="="&&e--);var u=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(e):new Array(e),f=Array.isArray(u)?u:new Uint8Array(u);for(n=0;n<A;n+=4)i=fo[t.charCodeAt(n)],s=fo[t.charCodeAt(n+1)],a=fo[t.charCodeAt(n+2)],c=fo[t.charCodeAt(n+3)],f[r++]=i<<2|s>>4,f[r++]=(s&15)<<4|a>>2,f[r++]=(a&3)<<6|c&63;return u},JH=function(t){for(var e=t.length,A=[],n=0;n<e;n+=2)A.push(t[n+1]<<8|t[n]);return A},XH=function(t){for(var e=t.length,A=[],n=0;n<e;n+=4)A.push(t[n+3]<<24|t[n+2]<<16|t[n+1]<<8|t[n]);return A},di=5,vf=6+5,If=2,YH=vf-di,Gw=65536>>di,zH=1<<di,Sf=zH-1,qH=1024>>di,ZH=Gw+qH,jH=ZH,eN=32,AN=jH+eN,tN=65536>>vf,nN=1<<YH,rN=nN-1,$w=function(t,e,A){return t.slice?t.slice(e,A):new Uint16Array(Array.prototype.slice.call(t,e,A))},iN=function(t,e,A){return t.slice?t.slice(e,A):new Uint32Array(Array.prototype.slice.call(t,e,A))},sN=function(t,e){var A=WH(t),n=Array.isArray(A)?XH(A):new Uint32Array(A),r=Array.isArray(A)?JH(A):new Uint16Array(A),i=24,s=$w(r,i/2,n[4]/2),a=n[5]===2?$w(r,(i+n[4])/2):iN(n,Math.ceil((i+n[4])/4));return new oN(n[0],n[1],n[2],n[3],s,a)},oN=function(){function t(e,A,n,r,i,s){this.initialValue=e,this.errorValue=A,this.highStart=n,this.highValueIndex=r,this.index=i,this.data=s}return t.prototype.get=function(e){var A;if(e>=0){if(e<55296||e>56319&&e<=65535)return A=this.index[e>>di],A=(A<<If)+(e&Sf),this.data[A];if(e<=65535)return A=this.index[Gw+(e-55296>>di)],A=(A<<If)+(e&Sf),this.data[A];if(e<this.highStart)return A=AN-tN+(e>>vf),A=this.index[A],A+=e>>di&rN,A=this.index[A],A=(A<<If)+(e&Sf),this.data[A];if(e<=1114111)return this.data[this.highValueIndex]}return this.errorValue},t}(),Ww="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",aN=typeof Uint8Array>"u"?[]:new Uint8Array(256),hl=0;hl<Ww.length;hl++)aN[Ww.charCodeAt(hl)]=hl;var lN=1,Tf=2,_f=3,Jw=4,Xw=5,cN=7,Yw=8,xf=9,Of=10,zw=11,qw=12,Zw=13,jw=14,Lf=15,uN=function(t){for(var e=[],A=0,n=t.length;A<n;){var r=t.charCodeAt(A++);if(r>=55296&&r<=56319&&A<n){var i=t.charCodeAt(A++);(i&64512)===56320?e.push(((r&1023)<<10)+(i&1023)+65536):(e.push(r),A--)}else e.push(r)}return e},fN=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(String.fromCodePoint)return String.fromCodePoint.apply(String,t);var A=t.length;if(!A)return"";for(var n=[],r=-1,i="";++r<A;){var s=t[r];s<=65535?n.push(s):(s-=65536,n.push((s>>10)+55296,s%1024+56320)),(r+1===A||n.length>16384)&&(i+=String.fromCharCode.apply(String,n),n.length=0)}return i},dN=sN($H),Gt="×",kf="÷",hN=function(t){return dN.get(t)},pN=function(t,e,A){var n=A-2,r=e[n],i=e[A-1],s=e[A];if(i===Tf&&s===_f)return Gt;if(i===Tf||i===_f||i===Jw||s===Tf||s===_f||s===Jw)return kf;if(i===Yw&&[Yw,xf,zw,qw].indexOf(s)!==-1||(i===zw||i===xf)&&(s===xf||s===Of)||(i===qw||i===Of)&&s===Of||s===Zw||s===Xw||s===cN||i===lN)return Gt;if(i===Zw&&s===jw){for(;r===Xw;)r=e[--n];if(r===jw)return Gt}if(i===Lf&&s===Lf){for(var a=0;r===Lf;)a++,r=e[--n];if(a%2===0)return Gt}return kf},gN=function(t){var e=uN(t),A=e.length,n=0,r=0,i=e.map(hN);return{next:function(){if(n>=A)return{done:!0,value:null};for(var s=Gt;n<A&&(s=pN(e,i,++n))===Gt;);if(s!==Gt||n===A){var a=fN.apply(null,e.slice(r,n));return r=n,{value:a,done:!1}}return{done:!0,value:null}}}},mN=function(t){for(var e=gN(t),A=[],n;!(n=e.next()).done;)n.value&&A.push(n.value.slice());return A},BN=function(t){var e=123;if(t.createRange){var A=t.createRange();if(A.getBoundingClientRect){var n=t.createElement("boundtest");n.style.height=e+"px",n.style.display="block",t.body.appendChild(n),A.selectNode(n);var r=A.getBoundingClientRect(),i=Math.round(r.height);if(t.body.removeChild(n),i===e)return!0}}return!1},wN=function(t){var e=t.createElement("boundtest");e.style.width="50px",e.style.display="block",e.style.fontSize="12px",e.style.letterSpacing="0px",e.style.wordSpacing="0px",t.body.appendChild(e);var A=t.createRange();e.innerHTML=typeof"".repeat=="function"?"&#128104;".repeat(10):"";var n=e.firstChild,r=Na(n.data).map(function(c){return wA(c)}),i=0,s={},a=r.every(function(c,u){A.setStart(n,i),A.setEnd(n,i+c.length);var f=A.getBoundingClientRect();i+=c.length;var p=f.x>s.x||f.y>s.y;return s=f,u===0?!0:p});return t.body.removeChild(e),a},CN=function(){return typeof new Image().crossOrigin<"u"},yN=function(){return typeof new XMLHttpRequest().responseType=="string"},EN=function(t){var e=new Image,A=t.createElement("canvas"),n=A.getContext("2d");if(!n)return!1;e.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{n.drawImage(e,0,0),A.toDataURL()}catch{return!1}return!0},eC=function(t){return t[0]===0&&t[1]===255&&t[2]===0&&t[3]===255},QN=function(t){var e=t.createElement("canvas"),A=100;e.width=A,e.height=A;var n=e.getContext("2d");if(!n)return Promise.reject(!1);n.fillStyle="rgb(0, 255, 0)",n.fillRect(0,0,A,A);var r=new Image,i=e.toDataURL();r.src=i;var s=Hf(A,A,0,0,r);return n.fillStyle="red",n.fillRect(0,0,A,A),AC(s).then(function(a){n.drawImage(a,0,0);var c=n.getImageData(0,0,A,A).data;n.fillStyle="red",n.fillRect(0,0,A,A);var u=t.createElement("div");return u.style.backgroundImage="url("+i+")",u.style.height=A+"px",eC(c)?AC(Hf(A,A,0,0,u)):Promise.reject(!1)}).then(function(a){return n.drawImage(a,0,0),eC(n.getImageData(0,0,A,A).data)}).catch(function(){return!1})},Hf=function(t,e,A,n,r){var i="http://www.w3.org/2000/svg",s=document.createElementNS(i,"svg"),a=document.createElementNS(i,"foreignObject");return s.setAttributeNS(null,"width",t.toString()),s.setAttributeNS(null,"height",e.toString()),a.setAttributeNS(null,"width","100%"),a.setAttributeNS(null,"height","100%"),a.setAttributeNS(null,"x",A.toString()),a.setAttributeNS(null,"y",n.toString()),a.setAttributeNS(null,"externalResourcesRequired","true"),s.appendChild(a),a.appendChild(r),s},AC=function(t){return new Promise(function(e,A){var n=new Image;n.onload=function(){return e(n)},n.onerror=A,n.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(t))})},PA={get SUPPORT_RANGE_BOUNDS(){var t=BN(document);return Object.defineProperty(PA,"SUPPORT_RANGE_BOUNDS",{value:t}),t},get SUPPORT_WORD_BREAKING(){var t=PA.SUPPORT_RANGE_BOUNDS&&wN(document);return Object.defineProperty(PA,"SUPPORT_WORD_BREAKING",{value:t}),t},get SUPPORT_SVG_DRAWING(){var t=EN(document);return Object.defineProperty(PA,"SUPPORT_SVG_DRAWING",{value:t}),t},get SUPPORT_FOREIGNOBJECT_DRAWING(){var t=typeof Array.from=="function"&&typeof window.fetch=="function"?QN(document):Promise.resolve(!1);return Object.defineProperty(PA,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:t}),t},get SUPPORT_CORS_IMAGES(){var t=CN();return Object.defineProperty(PA,"SUPPORT_CORS_IMAGES",{value:t}),t},get SUPPORT_RESPONSE_TYPE(){var t=yN();return Object.defineProperty(PA,"SUPPORT_RESPONSE_TYPE",{value:t}),t},get SUPPORT_CORS_XHR(){var t="withCredentials"in new XMLHttpRequest;return Object.defineProperty(PA,"SUPPORT_CORS_XHR",{value:t}),t},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var t=!!(typeof Intl<"u"&&Intl.Segmenter);return Object.defineProperty(PA,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:t}),t}},ho=function(){function t(e,A){this.text=e,this.bounds=A}return t}(),FN=function(t,e,A,n){var r=vN(e,A),i=[],s=0;return r.forEach(function(a){if(A.textDecorationLine.length||a.trim().length>0)if(PA.SUPPORT_RANGE_BOUNDS){var c=tC(n,s,a.length).getClientRects();if(c.length>1){var u=Nf(a),f=0;u.forEach(function(g){i.push(new ho(g,$n.fromDOMRectList(t,tC(n,f+s,g.length).getClientRects()))),f+=g.length})}else i.push(new ho(a,$n.fromDOMRectList(t,c)))}else{var p=n.splitText(a.length);i.push(new ho(a,bN(t,n))),n=p}else PA.SUPPORT_RANGE_BOUNDS||(n=n.splitText(a.length));s+=a.length}),i},bN=function(t,e){var A=e.ownerDocument;if(A){var n=A.createElement("html2canvaswrapper");n.appendChild(e.cloneNode(!0));var r=e.parentNode;if(r){r.replaceChild(n,e);var i=Ha(t,n);return n.firstChild&&r.replaceChild(n.firstChild,n),i}}return $n.EMPTY},tC=function(t,e,A){var n=t.ownerDocument;if(!n)throw new Error("Node has no owner document");var r=n.createRange();return r.setStart(t,e),r.setEnd(t,e+A),r},Nf=function(t){if(PA.SUPPORT_NATIVE_TEXT_SEGMENTATION){var e=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(e.segment(t)).map(function(A){return A.segment})}return mN(t)},UN=function(t,e){if(PA.SUPPORT_NATIVE_TEXT_SEGMENTATION){var A=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(A.segment(t)).map(function(n){return n.segment})}return SN(t,e)},vN=function(t,e){return e.letterSpacing!==0?Nf(t):UN(t,e)},IN=[32,160,4961,65792,65793,4153,4241],SN=function(t,e){for(var A=tL(t,{lineBreak:e.lineBreak,wordBreak:e.overflowWrap==="break-word"?"break-word":e.wordBreak}),n=[],r,i=function(){if(r.value){var s=r.value.slice(),a=Na(s),c="";a.forEach(function(u){IN.indexOf(u)===-1?c+=wA(u):(c.length&&n.push(c),n.push(wA(u)),c="")}),c.length&&n.push(c)}};!(r=A.next()).done;)i();return n},TN=function(){function t(e,A,n){this.text=_N(A.data,n.textTransform),this.textBounds=FN(e,this.text,n,A)}return t}(),_N=function(t,e){switch(e){case 1:return t.toLowerCase();case 3:return t.replace(xN,ON);case 2:return t.toUpperCase();default:return t}},xN=/(^|\s|:|-|\(|\))([a-z])/g,ON=function(t,e,A){return t.length>0?e+A.toUpperCase():t},nC=function(t){ln(e,t);function e(A,n){var r=t.call(this,A,n)||this;return r.src=n.currentSrc||n.src,r.intrinsicWidth=n.naturalWidth,r.intrinsicHeight=n.naturalHeight,r.context.cache.addImage(r.src),r}return e}(In),rC=function(t){ln(e,t);function e(A,n){var r=t.call(this,A,n)||this;return r.canvas=n,r.intrinsicWidth=n.width,r.intrinsicHeight=n.height,r}return e}(In),iC=function(t){ln(e,t);function e(A,n){var r=t.call(this,A,n)||this,i=new XMLSerializer,s=Ha(A,n);return n.setAttribute("width",s.width+"px"),n.setAttribute("height",s.height+"px"),r.svg="data:image/svg+xml,"+encodeURIComponent(i.serializeToString(n)),r.intrinsicWidth=n.width.baseVal.value,r.intrinsicHeight=n.height.baseVal.value,r.context.cache.addImage(r.svg),r}return e}(In),sC=function(t){ln(e,t);function e(A,n){var r=t.call(this,A,n)||this;return r.value=n.value,r}return e}(In),Df=function(t){ln(e,t);function e(A,n){var r=t.call(this,A,n)||this;return r.start=n.start,r.reversed=typeof n.reversed=="boolean"&&n.reversed===!0,r}return e}(In),LN=[{type:15,flags:0,unit:"px",number:3}],kN=[{type:16,flags:0,number:50}],HN=function(t){return t.width>t.height?new $n(t.left+(t.width-t.height)/2,t.top,t.height,t.height):t.width<t.height?new $n(t.left,t.top+(t.height-t.width)/2,t.width,t.width):t},NN=function(t){var e=t.type===DN?new Array(t.value.length+1).join("•"):t.value;return e.length===0?t.placeholder||"":e},pl="checkbox",gl="radio",DN="password",oC=707406591,Mf=function(t){ln(e,t);function e(A,n){var r=t.call(this,A,n)||this;switch(r.type=n.type.toLowerCase(),r.checked=n.checked,r.value=NN(n),(r.type===pl||r.type===gl)&&(r.styles.backgroundColor=3739148031,r.styles.borderTopColor=r.styles.borderRightColor=r.styles.borderBottomColor=r.styles.borderLeftColor=2779096575,r.styles.borderTopWidth=r.styles.borderRightWidth=r.styles.borderBottomWidth=r.styles.borderLeftWidth=1,r.styles.borderTopStyle=r.styles.borderRightStyle=r.styles.borderBottomStyle=r.styles.borderLeftStyle=1,r.styles.backgroundClip=[0],r.styles.backgroundOrigin=[0],r.bounds=HN(r.bounds)),r.type){case pl:r.styles.borderTopRightRadius=r.styles.borderTopLeftRadius=r.styles.borderBottomRightRadius=r.styles.borderBottomLeftRadius=LN;break;case gl:r.styles.borderTopRightRadius=r.styles.borderTopLeftRadius=r.styles.borderBottomRightRadius=r.styles.borderBottomLeftRadius=kN;break}return r}return e}(In),aC=function(t){ln(e,t);function e(A,n){var r=t.call(this,A,n)||this,i=n.options[n.selectedIndex||0];return r.value=i&&i.text||"",r}return e}(In),lC=function(t){ln(e,t);function e(A,n){var r=t.call(this,A,n)||this;return r.value=n.value,r}return e}(In),cC=function(t){ln(e,t);function e(A,n){var r=t.call(this,A,n)||this;r.src=n.src,r.width=parseInt(n.width,10)||0,r.height=parseInt(n.height,10)||0,r.backgroundColor=r.styles.backgroundColor;try{if(n.contentWindow&&n.contentWindow.document&&n.contentWindow.document.documentElement){r.tree=fC(A,n.contentWindow.document.documentElement);var i=n.contentWindow.document.documentElement?co(A,getComputedStyle(n.contentWindow.document.documentElement).backgroundColor):Jn.TRANSPARENT,s=n.contentWindow.document.body?co(A,getComputedStyle(n.contentWindow.document.body).backgroundColor):Jn.TRANSPARENT;r.backgroundColor=Ir(i)?Ir(s)?r.styles.backgroundColor:s:i}}catch{}return r}return e}(In),MN=["OL","UL","MENU"],ml=function(t,e,A,n){for(var r=e.firstChild,i=void 0;r;r=i)if(i=r.nextSibling,dC(r)&&r.data.trim().length>0)A.textNodes.push(new TN(t,r,A.styles));else if(es(r))if(wC(r)&&r.assignedNodes)r.assignedNodes().forEach(function(a){return ml(t,a,A,n)});else{var s=uC(t,r);s.styles.isVisible()&&(RN(r,s,n)?s.flags|=4:KN(s.styles)&&(s.flags|=2),MN.indexOf(r.tagName)!==-1&&(s.flags|=8),A.elements.push(s),r.slot,r.shadowRoot?ml(t,r.shadowRoot,s,n):!wl(r)&&!hC(r)&&!Cl(r)&&ml(t,r,s,n))}},uC=function(t,e){return Vf(e)?new nC(t,e):pC(e)?new rC(t,e):hC(e)?new iC(t,e):VN(e)?new sC(t,e):PN(e)?new Df(t,e):GN(e)?new Mf(t,e):Cl(e)?new aC(t,e):wl(e)?new lC(t,e):mC(e)?new cC(t,e):new In(t,e)},fC=function(t,e){var A=uC(t,e);return A.flags|=4,ml(t,e,A,A),A},RN=function(t,e,A){return e.styles.isPositionedWithZIndex()||e.styles.opacity<1||e.styles.isTransformed()||Kf(t)&&A.styles.isTransparent()},KN=function(t){return t.isPositioned()||t.isFloating()},dC=function(t){return t.nodeType===Node.TEXT_NODE},es=function(t){return t.nodeType===Node.ELEMENT_NODE},Rf=function(t){return es(t)&&typeof t.style<"u"&&!Bl(t)},Bl=function(t){return typeof t.className=="object"},VN=function(t){return t.tagName==="LI"},PN=function(t){return t.tagName==="OL"},GN=function(t){return t.tagName==="INPUT"},$N=function(t){return t.tagName==="HTML"},hC=function(t){return t.tagName==="svg"},Kf=function(t){return t.tagName==="BODY"},pC=function(t){return t.tagName==="CANVAS"},gC=function(t){return t.tagName==="VIDEO"},Vf=function(t){return t.tagName==="IMG"},mC=function(t){return t.tagName==="IFRAME"},BC=function(t){return t.tagName==="STYLE"},WN=function(t){return t.tagName==="SCRIPT"},wl=function(t){return t.tagName==="TEXTAREA"},Cl=function(t){return t.tagName==="SELECT"},wC=function(t){return t.tagName==="SLOT"},CC=function(t){return t.tagName.indexOf("-")>0},JN=function(){function t(){this.counters={}}return t.prototype.getCounterValue=function(e){var A=this.counters[e];return A&&A.length?A[A.length-1]:1},t.prototype.getCounterValues=function(e){var A=this.counters[e];return A||[]},t.prototype.pop=function(e){var A=this;e.forEach(function(n){return A.counters[n].pop()})},t.prototype.parse=function(e){var A=this,n=e.counterIncrement,r=e.counterReset,i=!0;n!==null&&n.forEach(function(a){var c=A.counters[a.counter];c&&a.increment!==0&&(i=!1,c.length||c.push(1),c[Math.max(0,c.length-1)]+=a.increment)});var s=[];return i&&r.forEach(function(a){var c=A.counters[a.counter];s.push(a.counter),c||(c=A.counters[a.counter]=[]),c.push(a.reset)}),s},t}(),yC={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]},EC={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},XN={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},YN={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","ყ","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},As=function(t,e,A,n,r,i){return t<e||t>A?go(t,r,i.length>0):n.integers.reduce(function(s,a,c){for(;t>=a;)t-=a,s+=n.values[c];return s},"")+i},QC=function(t,e,A,n){var r="";do A||t--,r=n(t)+r,t/=e;while(t*e>=e);return r},CA=function(t,e,A,n,r){var i=A-e+1;return(t<0?"-":"")+(QC(Math.abs(t),i,n,function(s){return wA(Math.floor(s%i)+e)})+r)},hi=function(t,e,A){A===void 0&&(A=". ");var n=e.length;return QC(Math.abs(t),n,!1,function(r){return e[Math.floor(r%n)]})+A},ts=1,Tr=2,_r=4,po=8,Xn=function(t,e,A,n,r,i){if(t<-9999||t>9999)return go(t,4,r.length>0);var s=Math.abs(t),a=r;if(s===0)return e[0]+a;for(var c=0;s>0&&c<=4;c++){var u=s%10;u===0&&SA(i,ts)&&a!==""?a=e[u]+a:u>1||u===1&&c===0||u===1&&c===1&&SA(i,Tr)||u===1&&c===1&&SA(i,_r)&&t>100||u===1&&c>1&&SA(i,po)?a=e[u]+(c>0?A[c-1]:"")+a:u===1&&c>0&&(a=A[c-1]+a),s=Math.floor(s/10)}return(t<0?n:"")+a},FC="十百千萬",bC="拾佰仟萬",UC="マイナス",Pf="마이너스",go=function(t,e,A){var n=A?". ":"",r=A?"、":"",i=A?", ":"",s=A?" ":"";switch(e){case 0:return"•"+s;case 1:return"◦"+s;case 2:return"◾"+s;case 5:var a=CA(t,48,57,!0,n);return a.length<4?"0"+a:a;case 4:return hi(t,"〇一二三四五六七八九",r);case 6:return As(t,1,3999,yC,3,n).toLowerCase();case 7:return As(t,1,3999,yC,3,n);case 8:return CA(t,945,969,!1,n);case 9:return CA(t,97,122,!1,n);case 10:return CA(t,65,90,!1,n);case 11:return CA(t,1632,1641,!0,n);case 12:case 49:return As(t,1,9999,EC,3,n);case 35:return As(t,1,9999,EC,3,n).toLowerCase();case 13:return CA(t,2534,2543,!0,n);case 14:case 30:return CA(t,6112,6121,!0,n);case 15:return hi(t,"子丑寅卯辰巳午未申酉戌亥",r);case 16:return hi(t,"甲乙丙丁戊己庚辛壬癸",r);case 17:case 48:return Xn(t,"零一二三四五六七八九",FC,"負",r,Tr|_r|po);case 47:return Xn(t,"零壹貳參肆伍陸柒捌玖",bC,"負",r,ts|Tr|_r|po);case 42:return Xn(t,"零一二三四五六七八九",FC,"负",r,Tr|_r|po);case 41:return Xn(t,"零壹贰叁肆伍陆柒捌玖",bC,"负",r,ts|Tr|_r|po);case 26:return Xn(t,"〇一二三四五六七八九","十百千万",UC,r,0);case 25:return Xn(t,"零壱弐参四伍六七八九","拾百千万",UC,r,ts|Tr|_r);case 31:return Xn(t,"영일이삼사오육칠팔구","십백천만",Pf,i,ts|Tr|_r);case 33:return Xn(t,"零一二三四五六七八九","十百千萬",Pf,i,0);case 32:return Xn(t,"零壹貳參四五六七八九","拾百千",Pf,i,ts|Tr|_r);case 18:return CA(t,2406,2415,!0,n);case 20:return As(t,1,19999,YN,3,n);case 21:return CA(t,2790,2799,!0,n);case 22:return CA(t,2662,2671,!0,n);case 22:return As(t,1,10999,XN,3,n);case 23:return hi(t,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case 24:return hi(t,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case 27:return CA(t,3302,3311,!0,n);case 28:return hi(t,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",r);case 29:return hi(t,"イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス",r);case 34:return CA(t,3792,3801,!0,n);case 37:return CA(t,6160,6169,!0,n);case 38:return CA(t,4160,4169,!0,n);case 39:return CA(t,2918,2927,!0,n);case 40:return CA(t,1776,1785,!0,n);case 43:return CA(t,3046,3055,!0,n);case 44:return CA(t,3174,3183,!0,n);case 45:return CA(t,3664,3673,!0,n);case 46:return CA(t,3872,3881,!0,n);case 3:default:return CA(t,48,57,!0,n)}},vC="data-html2canvas-ignore",IC=function(){function t(e,A,n){if(this.context=e,this.options=n,this.scrolledElements=[],this.referenceElement=A,this.counters=new JN,this.quoteDepth=0,!A.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(A.ownerDocument.documentElement,!1)}return t.prototype.toIFrame=function(e,A){var n=this,r=zN(e,A);if(!r.contentWindow)return Promise.reject("Unable to find iframe window");var i=e.defaultView.pageXOffset,s=e.defaultView.pageYOffset,a=r.contentWindow,c=a.document,u=jN(r).then(function(){return lt(n,void 0,void 0,function(){var f,p;return ZA(this,function(g){switch(g.label){case 0:return this.scrolledElements.forEach(nD),a&&(a.scrollTo(A.left,A.top),/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&(a.scrollY!==A.top||a.scrollX!==A.left)&&(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(a.scrollX-A.left,a.scrollY-A.top,0,0))),f=this.options.onclone,p=this.clonedReferenceElement,typeof p>"u"?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:c.fonts&&c.fonts.ready?[4,c.fonts.ready]:[3,2];case 1:g.sent(),g.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,ZN(c)]:[3,4];case 3:g.sent(),g.label=4;case 4:return typeof f=="function"?[2,Promise.resolve().then(function(){return f(c,p)}).then(function(){return r})]:[2,r]}})})});return c.open(),c.write(AD(document.doctype)+"<html></html>"),tD(this.referenceElement.ownerDocument,i,s),c.replaceChild(c.adoptNode(this.documentElement),c.documentElement),c.close(),u},t.prototype.createElementClone=function(e){if(Uf(e,2))debugger;if(pC(e))return this.createCanvasClone(e);if(gC(e))return this.createVideoClone(e);if(BC(e))return this.createStyleClone(e);var A=e.cloneNode(!1);return Vf(A)&&(Vf(e)&&e.currentSrc&&e.currentSrc!==e.src&&(A.src=e.currentSrc,A.srcset=""),A.loading==="lazy"&&(A.loading="eager")),CC(A)?this.createCustomElementClone(A):A},t.prototype.createCustomElementClone=function(e){var A=document.createElement("html2canvascustomelement");return Gf(e.style,A),A},t.prototype.createStyleClone=function(e){try{var A=e.sheet;if(A&&A.cssRules){var n=[].slice.call(A.cssRules,0).reduce(function(i,s){return s&&typeof s.cssText=="string"?i+s.cssText:i},""),r=e.cloneNode(!1);return r.textContent=n,r}}catch(i){if(this.context.logger.error("Unable to access cssRules property",i),i.name!=="SecurityError")throw i}return e.cloneNode(!1)},t.prototype.createCanvasClone=function(e){var A;if(this.options.inlineImages&&e.ownerDocument){var n=e.ownerDocument.createElement("img");try{return n.src=e.toDataURL(),n}catch{this.context.logger.info("Unable to inline canvas contents, canvas is tainted",e)}}var r=e.cloneNode(!1);try{r.width=e.width,r.height=e.height;var i=e.getContext("2d"),s=r.getContext("2d");if(s)if(!this.options.allowTaint&&i)s.putImageData(i.getImageData(0,0,e.width,e.height),0,0);else{var a=(A=e.getContext("webgl2"))!==null&&A!==void 0?A:e.getContext("webgl");if(a){var c=a.getContextAttributes();(c==null?void 0:c.preserveDrawingBuffer)===!1&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",e)}s.drawImage(e,0,0)}return r}catch{this.context.logger.info("Unable to clone canvas as it is tainted",e)}return r},t.prototype.createVideoClone=function(e){var A=e.ownerDocument.createElement("canvas");A.width=e.offsetWidth,A.height=e.offsetHeight;var n=A.getContext("2d");try{return n&&(n.drawImage(e,0,0,A.width,A.height),this.options.allowTaint||n.getImageData(0,0,A.width,A.height)),A}catch{this.context.logger.info("Unable to clone video as it is tainted",e)}var r=e.ownerDocument.createElement("canvas");return r.width=e.offsetWidth,r.height=e.offsetHeight,r},t.prototype.appendChildNode=function(e,A,n){(!es(A)||!WN(A)&&!A.hasAttribute(vC)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(A)))&&(!this.options.copyStyles||!es(A)||!BC(A))&&e.appendChild(this.cloneNode(A,n))},t.prototype.cloneChildNodes=function(e,A,n){for(var r=this,i=e.shadowRoot?e.shadowRoot.firstChild:e.firstChild;i;i=i.nextSibling)if(es(i)&&wC(i)&&typeof i.assignedNodes=="function"){var s=i.assignedNodes();s.length&&s.forEach(function(a){return r.appendChildNode(A,a,n)})}else this.appendChildNode(A,i,n)},t.prototype.cloneNode=function(e,A){if(dC(e))return document.createTextNode(e.data);if(!e.ownerDocument)return e.cloneNode(!1);var n=e.ownerDocument.defaultView;if(n&&es(e)&&(Rf(e)||Bl(e))){var r=this.createElementClone(e);r.style.transitionProperty="none";var i=n.getComputedStyle(e),s=n.getComputedStyle(e,":before"),a=n.getComputedStyle(e,":after");this.referenceElement===e&&Rf(r)&&(this.clonedReferenceElement=r),Kf(r)&&sD(r);var c=this.counters.parse(new Vw(this.context,i)),u=this.resolvePseudoContent(e,r,s,mo.BEFORE);CC(e)&&(A=!0),gC(e)||this.cloneChildNodes(e,r,A),u&&r.insertBefore(u,r.firstChild);var f=this.resolvePseudoContent(e,r,a,mo.AFTER);return f&&r.appendChild(f),this.counters.pop(c),(i&&(this.options.copyStyles||Bl(e))&&!mC(e)||A)&&Gf(i,r),(e.scrollTop!==0||e.scrollLeft!==0)&&this.scrolledElements.push([r,e.scrollLeft,e.scrollTop]),(wl(e)||Cl(e))&&(wl(r)||Cl(r))&&(r.value=e.value),r}return e.cloneNode(!1)},t.prototype.resolvePseudoContent=function(e,A,n,r){var i=this;if(n){var s=n.content,a=A.ownerDocument;if(!(!a||!s||s==="none"||s==="-moz-alt-content"||n.display==="none")){this.counters.parse(new Vw(this.context,n));var c=new VH(this.context,n),u=a.createElement("html2canvaspseudoelement");Gf(n,u),c.content.forEach(function(p){if(p.type===0)u.appendChild(a.createTextNode(p.value));else if(p.type===22){var g=a.createElement("img");g.src=p.value,g.style.opacity="1",u.appendChild(g)}else if(p.type===18){if(p.name==="attr"){var B=p.values.filter(eA);B.length&&u.appendChild(a.createTextNode(e.getAttribute(B[0].value)||""))}else if(p.name==="counter"){var w=p.values.filter(Zi),Q=w[0],b=w[1];if(Q&&eA(Q)){var v=i.counters.getCounterValue(Q.value),_=b&&eA(b)?bf.parse(i.context,b.value):3;u.appendChild(a.createTextNode(go(v,_,!1)))}}else if(p.name==="counters"){var S=p.values.filter(Zi),Q=S[0],E=S[1],b=S[2];if(Q&&eA(Q)){var L=i.counters.getCounterValues(Q.value),U=b&&eA(b)?bf.parse(i.context,b.value):3,N=E&&E.type===0?E.value:"",V=L.map(function(Be){return go(Be,U,!1)}).join(N);u.appendChild(a.createTextNode(V))}}}else if(p.type===20)switch(p.value){case"open-quote":u.appendChild(a.createTextNode(Kw(c.quotes,i.quoteDepth++,!0)));break;case"close-quote":u.appendChild(a.createTextNode(Kw(c.quotes,--i.quoteDepth,!1)));break;default:u.appendChild(a.createTextNode(p.value))}}),u.className=$f+" "+Wf;var f=r===mo.BEFORE?" "+$f:" "+Wf;return Bl(A)?A.className.baseValue+=f:A.className+=f,u}}},t.destroy=function(e){return e.parentNode?(e.parentNode.removeChild(e),!0):!1},t}(),mo;(function(t){t[t.BEFORE=0]="BEFORE",t[t.AFTER=1]="AFTER"})(mo||(mo={}));var zN=function(t,e){var A=t.createElement("iframe");return A.className="html2canvas-container",A.style.visibility="hidden",A.style.position="fixed",A.style.left="-10000px",A.style.top="0px",A.style.border="0",A.width=e.width.toString(),A.height=e.height.toString(),A.scrolling="no",A.setAttribute(vC,"true"),t.body.appendChild(A),A},qN=function(t){return new Promise(function(e){if(t.complete){e();return}if(!t.src){e();return}t.onload=e,t.onerror=e})},ZN=function(t){return Promise.all([].slice.call(t.images,0).map(qN))},jN=function(t){return new Promise(function(e,A){var n=t.contentWindow;if(!n)return A("No window assigned for iframe");var r=n.document;n.onload=t.onload=function(){n.onload=t.onload=null;var i=setInterval(function(){r.body.childNodes.length>0&&r.readyState==="complete"&&(clearInterval(i),e(t))},50)}})},eD=["all","d","content"],Gf=function(t,e){for(var A=t.length-1;A>=0;A--){var n=t.item(A);eD.indexOf(n)===-1&&e.style.setProperty(n,t.getPropertyValue(n))}return e},AD=function(t){var e="";return t&&(e+="<!DOCTYPE ",t.name&&(e+=t.name),t.internalSubset&&(e+=t.internalSubset),t.publicId&&(e+='"'+t.publicId+'"'),t.systemId&&(e+='"'+t.systemId+'"'),e+=">"),e},tD=function(t,e,A){t&&t.defaultView&&(e!==t.defaultView.pageXOffset||A!==t.defaultView.pageYOffset)&&t.defaultView.scrollTo(e,A)},nD=function(t){var e=t[0],A=t[1],n=t[2];e.scrollLeft=A,e.scrollTop=n},rD=":before",iD=":after",$f="___html2canvas___pseudoelement_before",Wf="___html2canvas___pseudoelement_after",SC=`{
182
+ ***************************************************************************** */var Ch=function(t,e){return Ch=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(A,n){A.__proto__=n}||function(A,n){for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(A[r]=n[r])},Ch(t,e)};function rr(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Ch(t,e);function A(){this.constructor=t}t.prototype=e===null?Object.create(e):(A.prototype=e.prototype,new A)}var bh=function(){return bh=Object.assign||function(e){for(var A,n=1,r=arguments.length;n<r;n++){A=arguments[n];for(var i in A)Object.prototype.hasOwnProperty.call(A,i)&&(e[i]=A[i])}return e},bh.apply(this,arguments)};function ZA(t,e,A,n){function r(i){return i instanceof A?i:new A(function(a){a(i)})}return new(A||(A=Promise))(function(i,a){function s(f){try{d(n.next(f))}catch(h){a(h)}}function c(f){try{d(n.throw(f))}catch(h){a(h)}}function d(f){f.done?i(f.value):r(f.value).then(s,c)}d((n=n.apply(t,e||[])).next())})}function HA(t,e){var A={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,r,i,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(d){return function(f){return c([d,f])}}function c(d){if(n)throw new TypeError("Generator is already executing.");for(;A;)try{if(n=1,r&&(i=d[0]&2?r.return:d[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,d[1])).done)return i;switch(r=0,i&&(d=[d[0]&2,i.value]),d[0]){case 0:case 1:i=d;break;case 4:return A.label++,{value:d[1],done:!1};case 5:A.label++,r=d[1],d=[0];continue;case 7:d=A.ops.pop(),A.trys.pop();continue;default:if(i=A.trys,!(i=i.length>0&&i[i.length-1])&&(d[0]===6||d[0]===2)){A=0;continue}if(d[0]===3&&(!i||d[1]>i[0]&&d[1]<i[3])){A.label=d[1];break}if(d[0]===6&&A.label<i[1]){A.label=i[1],i=d;break}if(i&&A.label<i[2]){A.label=i[2],A.ops.push(d);break}i[2]&&A.ops.pop(),A.trys.pop();continue}d=e.call(t,A)}catch(f){d=[6,f],r=0}finally{n=i=0}if(d[0]&5)throw d[1];return{value:d[0]?d[1]:void 0,done:!0}}}function yc(t,e,A){if(A||arguments.length===2)for(var n=0,r=e.length,i;n<r;n++)(i||!(n in e))&&(i||(i=Array.prototype.slice.call(e,0,n)),i[n]=e[n]);return t.concat(i||e)}for(var $r=function(){function t(e,A,n,r){this.left=e,this.top=A,this.width=n,this.height=r}return t.prototype.add=function(e,A,n,r){return new t(this.left+e,this.top+A,this.width+n,this.height+r)},t.fromClientRect=function(e,A){return new t(A.left+e.windowBounds.left,A.top+e.windowBounds.top,A.width,A.height)},t.fromDOMRectList=function(e,A){var n=Array.from(A).find(function(r){return r.width!==0});return n?new t(n.left+e.windowBounds.left,n.top+e.windowBounds.top,n.width,n.height):t.EMPTY},t.EMPTY=new t(0,0,0,0),t}(),Cc=function(t,e){return $r.fromClientRect(t,e.getBoundingClientRect())},cP=function(t){var e=t.body,A=t.documentElement;if(!e||!A)throw new Error("Unable to get document size");var n=Math.max(Math.max(e.scrollWidth,A.scrollWidth),Math.max(e.offsetWidth,A.offsetWidth),Math.max(e.clientWidth,A.clientWidth)),r=Math.max(Math.max(e.scrollHeight,A.scrollHeight),Math.max(e.offsetHeight,A.offsetHeight),Math.max(e.clientHeight,A.clientHeight));return new $r(0,0,n,r)},bc=function(t){for(var e=[],A=0,n=t.length;A<n;){var r=t.charCodeAt(A++);if(r>=55296&&r<=56319&&A<n){var i=t.charCodeAt(A++);(i&64512)===56320?e.push(((r&1023)<<10)+(i&1023)+65536):(e.push(r),A--)}else e.push(r)}return e},tA=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(String.fromCodePoint)return String.fromCodePoint.apply(String,t);var A=t.length;if(!A)return"";for(var n=[],r=-1,i="";++r<A;){var a=t[r];a<=65535?n.push(a):(a-=65536,n.push((a>>10)+55296,a%1024+56320)),(r+1===A||n.length>16384)&&(i+=String.fromCharCode.apply(String,n),n.length=0)}return i},mC="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",uP=typeof Uint8Array>"u"?[]:new Uint8Array(256),vc=0;vc<mC.length;vc++)uP[mC.charCodeAt(vc)]=vc;for(var gC="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ss=typeof Uint8Array>"u"?[]:new Uint8Array(256),Ec=0;Ec<gC.length;Ec++)Ss[gC.charCodeAt(Ec)]=Ec;for(var dP=function(t){var e=t.length*.75,A=t.length,n,r=0,i,a,s,c;t[t.length-1]==="="&&(e--,t[t.length-2]==="="&&e--);var d=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(e):new Array(e),f=Array.isArray(d)?d:new Uint8Array(d);for(n=0;n<A;n+=4)i=Ss[t.charCodeAt(n)],a=Ss[t.charCodeAt(n+1)],s=Ss[t.charCodeAt(n+2)],c=Ss[t.charCodeAt(n+3)],f[r++]=i<<2|a>>4,f[r++]=(a&15)<<4|s>>2,f[r++]=(s&3)<<6|c&63;return d},fP=function(t){for(var e=t.length,A=[],n=0;n<e;n+=2)A.push(t[n+1]<<8|t[n]);return A},hP=function(t){for(var e=t.length,A=[],n=0;n<e;n+=4)A.push(t[n+3]<<24|t[n+2]<<16|t[n+1]<<8|t[n]);return A},ya=5,vh=6+5,Eh=2,pP=vh-ya,BC=65536>>ya,mP=1<<ya,Qh=mP-1,gP=1024>>ya,BP=BC+gP,wP=BP,yP=32,CP=wP+yP,bP=65536>>vh,vP=1<<pP,EP=vP-1,wC=function(t,e,A){return t.slice?t.slice(e,A):new Uint16Array(Array.prototype.slice.call(t,e,A))},QP=function(t,e,A){return t.slice?t.slice(e,A):new Uint32Array(Array.prototype.slice.call(t,e,A))},FP=function(t,e){var A=dP(t),n=Array.isArray(A)?hP(A):new Uint32Array(A),r=Array.isArray(A)?fP(A):new Uint16Array(A),i=24,a=wC(r,i/2,n[4]/2),s=n[5]===2?wC(r,(i+n[4])/2):QP(n,Math.ceil((i+n[4])/4));return new UP(n[0],n[1],n[2],n[3],a,s)},UP=function(){function t(e,A,n,r,i,a){this.initialValue=e,this.errorValue=A,this.highStart=n,this.highValueIndex=r,this.index=i,this.data=a}return t.prototype.get=function(e){var A;if(e>=0){if(e<55296||e>56319&&e<=65535)return A=this.index[e>>ya],A=(A<<Eh)+(e&Qh),this.data[A];if(e<=65535)return A=this.index[BC+(e-55296>>ya)],A=(A<<Eh)+(e&Qh),this.data[A];if(e<this.highStart)return A=CP-bP+(e>>vh),A=this.index[A],A+=e>>ya&EP,A=this.index[A],A=(A<<Eh)+(e&Qh),this.data[A];if(e<=1114111)return this.data[this.highValueIndex]}return this.errorValue},t}(),yC="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",kP=typeof Uint8Array>"u"?[]:new Uint8Array(256),Qc=0;Qc<yC.length;Qc++)kP[yC.charCodeAt(Qc)]=Qc;var _P="KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF8AZwBgAGgAcQB5AHUAfQCFAI0AlQCdAKIAqgCyALoAYABoAGAAaABgAGgAwgDKAGAAaADGAM4A0wDbAOEA6QDxAPkAAQEJAQ8BFwF1AH0AHAEkASwBNAE6AUIBQQFJAVEBWQFhAWgBcAF4ATAAgAGGAY4BlQGXAZ8BpwGvAbUBvQHFAc0B0wHbAeMB6wHxAfkBAQIJAvEBEQIZAiECKQIxAjgCQAJGAk4CVgJeAmQCbAJ0AnwCgQKJApECmQKgAqgCsAK4ArwCxAIwAMwC0wLbAjAA4wLrAvMC+AIAAwcDDwMwABcDHQMlAy0DNQN1AD0DQQNJA0kDSQNRA1EDVwNZA1kDdQB1AGEDdQBpA20DdQN1AHsDdQCBA4kDkQN1AHUAmQOhA3UAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AKYDrgN1AHUAtgO+A8YDzgPWAxcD3gPjA+sD8wN1AHUA+wMDBAkEdQANBBUEHQQlBCoEFwMyBDgEYABABBcDSARQBFgEYARoBDAAcAQzAXgEgASIBJAEdQCXBHUAnwSnBK4EtgS6BMIEyAR1AHUAdQB1AHUAdQCVANAEYABgAGAAYABgAGAAYABgANgEYADcBOQEYADsBPQE/AQEBQwFFAUcBSQFLAU0BWQEPAVEBUsFUwVbBWAAYgVgAGoFcgV6BYIFigWRBWAAmQWfBaYFYABgAGAAYABgAKoFYACxBbAFuQW6BcEFwQXHBcEFwQXPBdMF2wXjBeoF8gX6BQIGCgYSBhoGIgYqBjIGOgZgAD4GRgZMBmAAUwZaBmAAYABgAGAAYABgAGAAYABgAGAAYABgAGIGYABpBnAGYABgAGAAYABgAGAAYABgAGAAYAB4Bn8GhQZgAGAAYAB1AHcDFQSLBmAAYABgAJMGdQA9A3UAmwajBqsGqwaVALMGuwbDBjAAywbSBtIG1QbSBtIG0gbSBtIG0gbdBuMG6wbzBvsGAwcLBxMHAwcbByMHJwcsBywHMQcsB9IGOAdAB0gHTgfSBkgHVgfSBtIG0gbSBtIG0gbSBtIG0gbSBiwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdgAGAALAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdbB2MHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB2kH0gZwB64EdQB1AHUAdQB1AHUAdQB1AHUHfQdgAIUHjQd1AHUAlQedB2AAYAClB6sHYACzB7YHvgfGB3UAzgfWBzMB3gfmB1EB7gf1B/0HlQENAQUIDQh1ABUIHQglCBcDLQg1CD0IRQhNCEEDUwh1AHUAdQBbCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIcAh3CHoIMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIgggwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAALAcsBywHLAcsBywHLAcsBywHLAcsB4oILAcsB44I0gaWCJ4Ipgh1AHUAqgiyCHUAdQB1AHUAdQB1AHUAdQB1AHUAtwh8AXUAvwh1AMUIyQjRCNkI4AjoCHUAdQB1AO4I9gj+CAYJDgkTCS0HGwkjCYIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiAAIAAAAFAAYABgAGIAXwBgAHEAdQBFAJUAogCyAKAAYABgAEIA4ABGANMA4QDxAMEBDwE1AFwBLAE6AQEBUQF4QkhCmEKoQrhCgAHIQsAB0MLAAcABwAHAAeDC6ABoAHDCwMMAAcABwAHAAdDDGMMAAcAB6MM4wwjDWMNow3jDaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAEjDqABWw6bDqABpg6gAaABoAHcDvwOPA+gAaABfA/8DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DpcPAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcAB9cPKwkyCToJMAB1AHUAdQBCCUoJTQl1AFUJXAljCWcJawkwADAAMAAwAHMJdQB2CX4JdQCECYoJjgmWCXUAngkwAGAAYABxAHUApgn3A64JtAl1ALkJdQDACTAAMAAwADAAdQB1AHUAdQB1AHUAdQB1AHUAowYNBMUIMAAwADAAMADICcsJ0wnZCRUE4QkwAOkJ8An4CTAAMAB1AAAKvwh1AAgKDwoXCh8KdQAwACcKLgp1ADYKqAmICT4KRgowADAAdQB1AE4KMAB1AFYKdQBeCnUAZQowADAAMAAwADAAMAAwADAAMAAVBHUAbQowADAAdQC5CXUKMAAwAHwBxAijBogEMgF9CoQKiASMCpQKmgqIBKIKqgquCogEDQG2Cr4KxgrLCjAAMADTCtsKCgHjCusK8Qr5CgELMAAwADAAMAB1AIsECQsRC3UANAEZCzAAMAAwADAAMAB1ACELKQswAHUANAExCzkLdQBBC0kLMABRC1kLMAAwADAAMAAwADAAdQBhCzAAMAAwAGAAYABpC3ELdwt/CzAAMACHC4sLkwubC58Lpwt1AK4Ltgt1APsDMAAwADAAMAAwADAAMAAwAL4LwwvLC9IL1wvdCzAAMADlC+kL8Qv5C/8LSQswADAAMAAwADAAMAAwADAAMAAHDDAAMAAwADAAMAAODBYMHgx1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1ACYMMAAwADAAdQB1AHUALgx1AHUAdQB1AHUAdQA2DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AD4MdQBGDHUAdQB1AHUAdQB1AEkMdQB1AHUAdQB1AFAMMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQBYDHUAdQB1AF8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUA+wMVBGcMMAAwAHwBbwx1AHcMfwyHDI8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAYABgAJcMMAAwADAAdQB1AJ8MlQClDDAAMACtDCwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB7UMLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AA0EMAC9DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAsBywHLAcsBywHLAcsBywHLQcwAMEMyAwsBywHLAcsBywHLAcsBywHLAcsBywHzAwwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1ANQM2QzhDDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMABgAGAAYABgAGAAYABgAOkMYADxDGAA+AwADQYNYABhCWAAYAAODTAAMAAwADAAFg1gAGAAHg37AzAAMAAwADAAYABgACYNYAAsDTQNPA1gAEMNPg1LDWAAYABgAGAAYABgAGAAYABgAGAAUg1aDYsGVglhDV0NcQBnDW0NdQ15DWAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAlQCBDZUAiA2PDZcNMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAnw2nDTAAMAAwADAAMAAwAHUArw23DTAAMAAwADAAMAAwADAAMAAwADAAMAB1AL8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQDHDTAAYABgAM8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA1w11ANwNMAAwAD0B5A0wADAAMAAwADAAMADsDfQN/A0EDgwOFA4wABsOMAAwADAAMAAwADAAMAAwANIG0gbSBtIG0gbSBtIG0gYjDigOwQUuDsEFMw7SBjoO0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGQg5KDlIOVg7SBtIGXg5lDm0OdQ7SBtIGfQ6EDooOjQ6UDtIGmg6hDtIG0gaoDqwO0ga0DrwO0gZgAGAAYADEDmAAYAAkBtIGzA5gANIOYADaDokO0gbSBt8O5w7SBu8O0gb1DvwO0gZgAGAAxA7SBtIG0gbSBtIGYABgAGAAYAAED2AAsAUMD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHJA8sBywHLAcsBywHLAccDywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywPLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAc0D9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHPA/SBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gYUD0QPlQCVAJUAMAAwADAAMACVAJUAlQCVAJUAlQCVAEwPMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA//8EAAQABAAEAAQABAAEAAQABAANAAMAAQABAAIABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQACgATABcAHgAbABoAHgAXABYAEgAeABsAGAAPABgAHABLAEsASwBLAEsASwBLAEsASwBLABgAGAAeAB4AHgATAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABYAGwASAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWAA0AEQAeAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAFAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJABYAGgAbABsAGwAeAB0AHQAeAE8AFwAeAA0AHgAeABoAGwBPAE8ADgBQAB0AHQAdAE8ATwAXAE8ATwBPABYAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAFAATwBAAE8ATwBPAEAATwBQAFAATwBQAB4AHgAeAB4AHgAeAB0AHQAdAB0AHgAdAB4ADgBQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgBQAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAkACQAJAAkACQAJAAkABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAFAAHgAeAB4AKwArAFAAUABQAFAAGABQACsAKwArACsAHgAeAFAAHgBQAFAAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUAAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAYAA0AKwArAB4AHgAbACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAB4ABAAEAB4ABAAEABMABAArACsAKwArACsAKwArACsAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAKwArACsAKwBWAFYAVgBWAB4AHgArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AGgAaABoAGAAYAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQAEwAEACsAEwATAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABLAEsASwBLAEsASwBLAEsASwBLABoAGQAZAB4AUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABMAUAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABABQAFAABAAEAB4ABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUAAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAFAABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQAUABQAB4AHgAYABMAUAArACsABAAbABsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAFAABAAEAAQABAAEAFAABAAEAAQAUAAEAAQABAAEAAQAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArACsAHgArAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAUAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEAA0ADQBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUAArACsAKwBQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABABQACsAKwArACsAKwArACsAKwAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUAAaABoAUABQAFAAUABQAEwAHgAbAFAAHgAEACsAKwAEAAQABAArAFAAUABQAFAAUABQACsAKwArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQACsAUABQACsAKwAEACsABAAEAAQABAAEACsAKwArACsABAAEACsAKwAEAAQABAArACsAKwAEACsAKwArACsAKwArACsAUABQAFAAUAArAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLAAQABABQAFAAUAAEAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAArACsAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AGwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAKwArACsAKwArAAQABAAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAAQAUAArAFAAUABQAFAAUABQACsAKwArAFAAUABQACsAUABQAFAAUAArACsAKwBQAFAAKwBQACsAUABQACsAKwArAFAAUAArACsAKwBQAFAAUAArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAAQABAAEAAQABAArACsAKwAEAAQABAArAAQABAAEAAQAKwArAFAAKwArACsAKwArACsABAArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAHgAeAB4AHgAeAB4AGwAeACsAKwArACsAKwAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAUABQAFAAKwArACsAKwArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwAOAFAAUABQAFAAUABQAFAAHgBQAAQABAAEAA4AUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAKwArAAQAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAKwArACsAKwArACsAUAArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABABQAB4AKwArACsAKwBQAFAAUAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQABoAUABQAFAAUABQAFAAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQACsAUAArACsAUABQAFAAUABQAFAAUAArACsAKwAEACsAKwArACsABAAEAAQABAAEAAQAKwAEACsABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgAqACsAKwArACsAGwBcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAeAEsASwBLAEsASwBLAEsASwBLAEsADQANACsAKwArACsAKwBcAFwAKwBcACsAXABcAFwAXABcACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAXAArAFwAXABcAFwAXABcAFwAXABcAFwAKgBcAFwAKgAqACoAKgAqACoAKgAqACoAXAArACsAXABcAFwAXABcACsAXAArACoAKgAqACoAKgAqACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwBcAFwAXABcAFAADgAOAA4ADgAeAA4ADgAJAA4ADgANAAkAEwATABMAEwATAAkAHgATAB4AHgAeAAQABAAeAB4AHgAeAB4AHgBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQAFAADQAEAB4ABAAeAAQAFgARABYAEQAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAAQABAAEAAQADQAEAAQAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAA0ADQAeAB4AHgAeAB4AHgAEAB4AHgAeAB4AHgAeACsAHgAeAA4ADgANAA4AHgAeAB4AHgAeAAkACQArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgBcAEsASwBLAEsASwBLAEsASwBLAEsADQANAB4AHgAeAB4AXABcAFwAXABcAFwAKgAqACoAKgBcAFwAXABcACoAKgAqAFwAKgAqACoAXABcACoAKgAqACoAKgAqACoAXABcAFwAKgAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqAFwAKgBLAEsASwBLAEsASwBLAEsASwBLACoAKgAqACoAKgAqAFAAUABQAFAAUABQACsAUAArACsAKwArACsAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAKwBQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsABAAEAAQAHgANAB4AHgAeAB4AHgAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUAArACsADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWABEAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQANAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAANAA0AKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUAArAAQABAArACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqAA0ADQAVAFwADQAeAA0AGwBcACoAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwAeAB4AEwATAA0ADQAOAB4AEwATAB4ABAAEAAQACQArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAHgArACsAKwATABMASwBLAEsASwBLAEsASwBLAEsASwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAXABcAFwAXABcACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAXAArACsAKwAqACoAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsAHgAeAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKwAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKwArAAQASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACoAKgAqACoAKgAqACoAXAAqACoAKgAqACoAKgArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABABQAFAAUABQAFAAUABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwANAA0AHgANAA0ADQANAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwAeAB4AHgAeAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArAA0ADQANAA0ADQBLAEsASwBLAEsASwBLAEsASwBLACsAKwArAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUAAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAAQAUABQAFAAUABQAFAABABQAFAABAAEAAQAUAArACsAKwArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQACsAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAFAAUABQACsAHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQACsAKwAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQACsAHgAeAB4AHgAeAB4AHgAOAB4AKwANAA0ADQANAA0ADQANAAkADQANAA0ACAAEAAsABAAEAA0ACQANAA0ADAAdAB0AHgAXABcAFgAXABcAFwAWABcAHQAdAB4AHgAUABQAFAANAAEAAQAEAAQABAAEAAQACQAaABoAGgAaABoAGgAaABoAHgAXABcAHQAVABUAHgAeAB4AHgAeAB4AGAAWABEAFQAVABUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ADQAeAA0ADQANAA0AHgANAA0ADQAHAB4AHgAeAB4AKwAEAAQABAAEAAQABAAEAAQABAAEAFAAUAArACsATwBQAFAAUABQAFAAHgAeAB4AFgARAE8AUABPAE8ATwBPAFAAUABQAFAAUAAeAB4AHgAWABEAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArABsAGwAbABsAGwAbABsAGgAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGgAbABsAGwAbABoAGwAbABoAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAHgAeAFAAGgAeAB0AHgBQAB4AGgAeAB4AHgAeAB4AHgAeAB4AHgBPAB4AUAAbAB4AHgBQAFAAUABQAFAAHgAeAB4AHQAdAB4AUAAeAFAAHgBQAB4AUABPAFAAUAAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgBQAFAAUABQAE8ATwBQAFAAUABQAFAATwBQAFAATwBQAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAUABQAFAATwBPAE8ATwBPAE8ATwBPAE8ATwBQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABPAB4AHgArACsAKwArAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHQAdAB4AHgAeAB0AHQAeAB4AHQAeAB4AHgAdAB4AHQAbABsAHgAdAB4AHgAeAB4AHQAeAB4AHQAdAB0AHQAeAB4AHQAeAB0AHgAdAB0AHQAdAB0AHQAeAB0AHgAeAB4AHgAeAB0AHQAdAB0AHgAeAB4AHgAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHgAeAB0AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAeAB0AHQAdAB0AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAdAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAWABEAHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAWABEAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AHQAdAB0AHgAeAB0AHgAeAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlAB4AHQAdAB4AHgAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AJQAlAB0AHQAlAB4AJQAlACUAIAAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAdAB0AHQAeAB0AJQAdAB0AHgAdAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAdAB0AHQAdACUAHgAlACUAJQAdACUAJQAdAB0AHQAlACUAHQAdACUAHQAdACUAJQAlAB4AHQAeAB4AHgAeAB0AHQAlAB0AHQAdAB0AHQAdACUAJQAlACUAJQAdACUAJQAgACUAHQAdACUAJQAlACUAJQAlACUAJQAeAB4AHgAlACUAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AFwAXABcAFwAXABcAHgATABMAJQAeAB4AHgAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARABYAEQAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAEAAQABAAeAB4AKwArACsAKwArABMADQANAA0AUAATAA0AUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUAANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAA0ADQANAA0ADQANAA0ADQAeAA0AFgANAB4AHgAXABcAHgAeABcAFwAWABEAFgARABYAEQAWABEADQANAA0ADQATAFAADQANAB4ADQANAB4AHgAeAB4AHgAMAAwADQANAA0AHgANAA0AFgANAA0ADQANAA0ADQANAA0AHgANAB4ADQANAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArAA0AEQARACUAJQBHAFcAVwAWABEAFgARABYAEQAWABEAFgARACUAJQAWABEAFgARABYAEQAWABEAFQAWABEAEQAlAFcAVwBXAFcAVwBXAFcAVwBXAAQABAAEAAQABAAEACUAVwBXAFcAVwA2ACUAJQBXAFcAVwBHAEcAJQAlACUAKwBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBRAFcAUQBXAFEAVwBXAFcAVwBXAFcAUQBXAFcAVwBXAFcAVwBRAFEAKwArAAQABAAVABUARwBHAFcAFQBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBRAFcAVwBXAFcAVwBXAFEAUQBXAFcAVwBXABUAUQBHAEcAVwArACsAKwArACsAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwAlACUAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACsAKwArACsAKwArACsAKwArACsAKwArAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBPAE8ATwBPAE8ATwBPAE8AJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADQATAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABLAEsASwBLAEsASwBLAEsASwBLAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAABAAEAAQABAAeAAQABAAEAAQABAAEAAQABAAEAAQAHgBQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAeAA0ADQANAA0ADQArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAAQAUABQAFAABABQAFAAUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAeAB4AHgAeAAQAKwArACsAUABQAFAAUABQAFAAHgAeABoAHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADgAOABMAEwArACsAKwArACsAKwArACsABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUAAeAB4AHgBQAA4AUABQAAQAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAB4AWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYACsAKwArAAQAHgAeAB4AHgAeAB4ADQANAA0AHgAeAB4AHgArAFAASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArAB4AHgBcAFwAXABcAFwAKgBcAFwAXABcAFwAXABcAFwAXABcAEsASwBLAEsASwBLAEsASwBLAEsAXABcAFwAXABcACsAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAFAAUABQAAQAUABQAFAAUABQAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAHgANAA0ADQBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAKgAqACoAXABcACoAKgBcAFwAXABcAFwAKgAqAFwAKgBcACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAA0ADQBQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQADQAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAVABVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBUAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVACsAKwArACsAKwArACsAKwArACsAKwArAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAKwArACsAKwBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAKwArACsAKwAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAKwArACsAKwArAFYABABWAFYAVgBWAFYAVgBWAFYAVgBWAB4AVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgArAFYAVgBWAFYAVgArAFYAKwBWAFYAKwBWAFYAKwBWAFYAVgBWAFYAVgBWAFYAVgBWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAEQAWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAaAB4AKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAGAARABEAGAAYABMAEwAWABEAFAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACUAJQAlACUAJQAWABEAFgARABYAEQAWABEAFgARABYAEQAlACUAFgARACUAJQAlACUAJQAlACUAEQAlABEAKwAVABUAEwATACUAFgARABYAEQAWABEAJQAlACUAJQAlACUAJQAlACsAJQAbABoAJQArACsAKwArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAcAKwATACUAJQAbABoAJQAlABYAEQAlACUAEQAlABEAJQBXAFcAVwBXAFcAVwBXAFcAVwBXABUAFQAlACUAJQATACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXABYAJQARACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAWACUAEQAlABYAEQARABYAEQARABUAVwBRAFEAUQBRAFEAUQBRAFEAUQBRAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcARwArACsAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXACsAKwBXAFcAVwBXAFcAVwArACsAVwBXAFcAKwArACsAGgAbACUAJQAlABsAGwArAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAAQAB0AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsADQANAA0AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAA0AUABQAFAAUAArACsAKwArAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwBQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAUABQAFAAUABQAAQABAAEACsABAAEACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAKwBQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAA0ADQANAA0ADQANAA0ADQAeACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAArACsAKwArAFAAUABQAFAAUAANAA0ADQANAA0ADQAUACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsADQANAA0ADQANAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArAAQABAANACsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAB4AHgAeAB4AHgArACsAKwArACsAKwAEAAQABAAEAAQABAAEAA0ADQAeAB4AHgAeAB4AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsASwBLAEsASwBLAEsASwBLAEsASwANAA0ADQANAFAABAAEAFAAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAeAA4AUAArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAADQANAB4ADQAEAAQABAAEAB4ABAAEAEsASwBLAEsASwBLAEsASwBLAEsAUAAOAFAADQANAA0AKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAA0AHgANAA0AHgAEACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAA0AKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsABAAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAUAArACsAKwArACsAKwAEACsAKwArACsAKwBQAFAAUABQAFAABAAEACsAKwAEAAQABAAEAAQABAAEACsAKwArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABABQAFAAUABQAA0ADQANAA0AHgBLAEsASwBLAEsASwBLAEsASwBLAA0ADQArAB4ABABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUAAeAFAAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABAAEAAQADgANAA0AEwATAB4AHgAeAA0ADQANAA0ADQANAA0ADQANAA0ADQANAA0ADQANAFAAUABQAFAABAAEACsAKwAEAA0ADQAeAFAAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKwArACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBcAFwADQANAA0AKgBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQAKwAEAAQAKwArAAQABAAEAAQAUAAEAFAABAAEAA0ADQANACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABABQAA4AUAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAOAB4ADQANAA0ADQAOAB4ABAArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAA0ADQANAFAADgAOAA4ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAFAADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAOABMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAArACsAKwAEACsABAAEACsABAAEAAQABAAEAAQABABQAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAaABoAGgAaAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABIAEgAQwBDAEMAUABQAFAAUABDAFAAUABQAEgAQwBIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABDAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAJAAkACQAJAAkACQAJABYAEQArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwANAA0AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAANACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQANAB4AHgAeAB4AHgAeAFAAUABQAFAADQAeACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAA0AHgAeACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAARwBHABUARwAJACsAKwArACsAKwArACsAKwArACsAKwAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUQBRAFEAKwArACsAKwArACsAKwArACsAKwArACsAKwBRAFEAUQBRACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAHgAEAAQADQAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQABAAEAAQABAAeAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQAHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAKwArAFAAKwArAFAAUAArACsAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUAArAFAAUABQAFAAUABQAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAHgAeAFAAUABQAFAAUAArAFAAKwArACsAUABQAFAAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeACsAKwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4ABAAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAHgAeAA0ADQANAA0AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArAAQABAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwBQAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArABsAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAB4AHgAeAB4ABAAEAAQABAAEAAQABABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArABYAFgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAGgBQAFAAUAAaAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUAArACsAKwArACsAKwBQACsAKwArACsAUAArAFAAKwBQACsAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUAArAFAAKwBQACsAUAArAFAAUAArAFAAKwArAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAKwBQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AJQAlACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeACUAJQAlAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAlACUAJQAlACUAHgAlACUAJQAlACUAIAAgACAAJQAlACAAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACEAIQAhACEAIQAlACUAIAAgACUAJQAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAIAAlACUAJQAlACAAIAAgACUAIAAgACAAJQAlACUAJQAlACUAJQAgACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAlAB4AJQAeACUAJQAlACUAJQAgACUAJQAlACUAHgAlAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACAAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABcAFwAXABUAFQAVAB4AHgAeAB4AJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAgACUAJQAgACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAIAAgACUAJQAgACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACAAIAAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACAAIAAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAA==",CC=50,IP=1,bC=2,vC=3,SP=4,TP=5,EC=7,QC=8,FC=9,_i=10,Fh=11,UC=12,Uh=13,xP=14,Ts=15,kh=16,Fc=17,xs=18,DP=19,kC=20,_h=21,Ds=22,Ih=23,Bo=24,Cn=25,Ms=26,Os=27,wo=28,MP=29,Ca=30,OP=31,Uc=32,kc=33,Sh=34,Th=35,xh=36,Ns=37,Dh=38,_c=39,Ic=40,Mh=41,_C=42,NP=43,LP=[9001,65288],IC="!",Bt="×",Sc="÷",Oh=FP(_P),Gr=[Ca,xh],Nh=[IP,bC,vC,TP],SC=[_i,QC],TC=[Os,Ms],HP=Nh.concat(SC),xC=[Dh,_c,Ic,Sh,Th],RP=[Ts,Uh],PP=function(t,e){e===void 0&&(e="strict");var A=[],n=[],r=[];return t.forEach(function(i,a){var s=Oh.get(i);if(s>CC?(r.push(!0),s-=CC):r.push(!1),["normal","auto","loose"].indexOf(e)!==-1&&[8208,8211,12316,12448].indexOf(i)!==-1)return n.push(a),A.push(kh);if(s===SP||s===Fh){if(a===0)return n.push(a),A.push(Ca);var c=A[a-1];return HP.indexOf(c)===-1?(n.push(n[a-1]),A.push(c)):(n.push(a),A.push(Ca))}if(n.push(a),s===OP)return A.push(e==="strict"?_h:Ns);if(s===_C||s===MP)return A.push(Ca);if(s===NP)return i>=131072&&i<=196605||i>=196608&&i<=262141?A.push(Ns):A.push(Ca);A.push(s)}),[n,A,r]},Lh=function(t,e,A,n){var r=n[A];if(Array.isArray(t)?t.indexOf(r)!==-1:t===r)for(var i=A;i<=n.length;){i++;var a=n[i];if(a===e)return!0;if(a!==_i)break}if(r===_i)for(var i=A;i>0;){i--;var s=n[i];if(Array.isArray(t)?t.indexOf(s)!==-1:t===s)for(var c=A;c<=n.length;){c++;var a=n[c];if(a===e)return!0;if(a!==_i)break}if(s!==_i)break}return!1},DC=function(t,e){for(var A=t;A>=0;){var n=e[A];if(n===_i)A--;else return n}return 0},VP=function(t,e,A,n,r){if(A[n]===0)return Bt;var i=n-1;if(Array.isArray(r)&&r[i]===!0)return Bt;var a=i-1,s=i+1,c=e[i],d=a>=0?e[a]:0,f=e[s];if(c===bC&&f===vC)return Bt;if(Nh.indexOf(c)!==-1)return IC;if(Nh.indexOf(f)!==-1||SC.indexOf(f)!==-1)return Bt;if(DC(i,e)===QC)return Sc;if(Oh.get(t[i])===Fh||(c===Uc||c===kc)&&Oh.get(t[s])===Fh||c===EC||f===EC||c===FC||[_i,Uh,Ts].indexOf(c)===-1&&f===FC||[Fc,xs,DP,Bo,wo].indexOf(f)!==-1||DC(i,e)===Ds||Lh(Ih,Ds,i,e)||Lh([Fc,xs],_h,i,e)||Lh(UC,UC,i,e))return Bt;if(c===_i)return Sc;if(c===Ih||f===Ih)return Bt;if(f===kh||c===kh)return Sc;if([Uh,Ts,_h].indexOf(f)!==-1||c===xP||d===xh&&RP.indexOf(c)!==-1||c===wo&&f===xh||f===kC||Gr.indexOf(f)!==-1&&c===Cn||Gr.indexOf(c)!==-1&&f===Cn||c===Os&&[Ns,Uc,kc].indexOf(f)!==-1||[Ns,Uc,kc].indexOf(c)!==-1&&f===Ms||Gr.indexOf(c)!==-1&&TC.indexOf(f)!==-1||TC.indexOf(c)!==-1&&Gr.indexOf(f)!==-1||[Os,Ms].indexOf(c)!==-1&&(f===Cn||[Ds,Ts].indexOf(f)!==-1&&e[s+1]===Cn)||[Ds,Ts].indexOf(c)!==-1&&f===Cn||c===Cn&&[Cn,wo,Bo].indexOf(f)!==-1)return Bt;if([Cn,wo,Bo,Fc,xs].indexOf(f)!==-1)for(var h=i;h>=0;){var m=e[h];if(m===Cn)return Bt;if([wo,Bo].indexOf(m)!==-1)h--;else break}if([Os,Ms].indexOf(f)!==-1)for(var h=[Fc,xs].indexOf(c)!==-1?a:i;h>=0;){var m=e[h];if(m===Cn)return Bt;if([wo,Bo].indexOf(m)!==-1)h--;else break}if(Dh===c&&[Dh,_c,Sh,Th].indexOf(f)!==-1||[_c,Sh].indexOf(c)!==-1&&[_c,Ic].indexOf(f)!==-1||[Ic,Th].indexOf(c)!==-1&&f===Ic||xC.indexOf(c)!==-1&&[kC,Ms].indexOf(f)!==-1||xC.indexOf(f)!==-1&&c===Os||Gr.indexOf(c)!==-1&&Gr.indexOf(f)!==-1||c===Bo&&Gr.indexOf(f)!==-1||Gr.concat(Cn).indexOf(c)!==-1&&f===Ds&&LP.indexOf(t[s])===-1||Gr.concat(Cn).indexOf(f)!==-1&&c===xs)return Bt;if(c===Mh&&f===Mh){for(var g=A[i],B=1;g>0&&(g--,e[g]===Mh);)B++;if(B%2!==0)return Bt}return c===Uc&&f===kc?Bt:Sc},KP=function(t,e){e||(e={lineBreak:"normal",wordBreak:"normal"});var A=PP(t,e.lineBreak),n=A[0],r=A[1],i=A[2];(e.wordBreak==="break-all"||e.wordBreak==="break-word")&&(r=r.map(function(s){return[Cn,Ca,_C].indexOf(s)!==-1?Ns:s}));var a=e.wordBreak==="keep-all"?i.map(function(s,c){return s&&t[c]>=19968&&t[c]<=40959}):void 0;return[n,r,a]},$P=function(){function t(e,A,n,r){this.codePoints=e,this.required=A===IC,this.start=n,this.end=r}return t.prototype.slice=function(){return tA.apply(void 0,this.codePoints.slice(this.start,this.end))},t}(),GP=function(t,e){var A=bc(t),n=KP(A,e),r=n[0],i=n[1],a=n[2],s=A.length,c=0,d=0;return{next:function(){if(d>=s)return{done:!0,value:null};for(var f=Bt;d<s&&(f=VP(A,i,r,++d,a))===Bt;);if(f!==Bt||d===s){var h=new $P(A,f,c,d);return c=d,{value:h,done:!1}}return{done:!0,value:null}}}},WP=1,YP=2,Ls=4,MC=8,Tc=10,OC=47,Hs=92,zP=9,JP=32,xc=34,Rs=61,XP=35,qP=36,jP=37,Dc=39,Mc=40,Ps=41,ZP=95,cn=45,eV=33,tV=60,AV=62,nV=64,rV=91,iV=93,aV=61,oV=123,Oc=63,sV=125,NC=124,lV=126,cV=128,LC=65533,Hh=42,ba=43,uV=44,dV=58,fV=59,Vs=46,hV=0,pV=8,mV=11,gV=14,BV=31,wV=127,vr=-1,HC=48,RC=97,PC=101,yV=102,CV=117,bV=122,VC=65,KC=69,$C=70,vV=85,EV=90,RA=function(t){return t>=HC&&t<=57},QV=function(t){return t>=55296&&t<=57343},yo=function(t){return RA(t)||t>=VC&&t<=$C||t>=RC&&t<=yV},FV=function(t){return t>=RC&&t<=bV},UV=function(t){return t>=VC&&t<=EV},kV=function(t){return FV(t)||UV(t)},_V=function(t){return t>=cV},Nc=function(t){return t===Tc||t===zP||t===JP},Lc=function(t){return kV(t)||_V(t)||t===ZP},GC=function(t){return Lc(t)||RA(t)||t===cn},IV=function(t){return t>=hV&&t<=pV||t===mV||t>=gV&&t<=BV||t===wV},Ii=function(t,e){return t!==Hs?!1:e!==Tc},Hc=function(t,e,A){return t===cn?Lc(e)||Ii(e,A):Lc(t)?!0:!!(t===Hs&&Ii(t,e))},Rh=function(t,e,A){return t===ba||t===cn?RA(e)?!0:e===Vs&&RA(A):RA(t===Vs?e:t)},SV=function(t){var e=0,A=1;(t[e]===ba||t[e]===cn)&&(t[e]===cn&&(A=-1),e++);for(var n=[];RA(t[e]);)n.push(t[e++]);var r=n.length?parseInt(tA.apply(void 0,n),10):0;t[e]===Vs&&e++;for(var i=[];RA(t[e]);)i.push(t[e++]);var a=i.length,s=a?parseInt(tA.apply(void 0,i),10):0;(t[e]===KC||t[e]===PC)&&e++;var c=1;(t[e]===ba||t[e]===cn)&&(t[e]===cn&&(c=-1),e++);for(var d=[];RA(t[e]);)d.push(t[e++]);var f=d.length?parseInt(tA.apply(void 0,d),10):0;return A*(r+s*Math.pow(10,-a))*Math.pow(10,c*f)},TV={type:2},xV={type:3},DV={type:4},MV={type:13},OV={type:8},NV={type:21},LV={type:9},HV={type:10},RV={type:11},PV={type:12},VV={type:14},Rc={type:23},KV={type:1},$V={type:25},GV={type:24},WV={type:26},YV={type:27},zV={type:28},JV={type:29},XV={type:31},Ph={type:32},WC=function(){function t(){this._value=[]}return t.prototype.write=function(e){this._value=this._value.concat(bc(e))},t.prototype.read=function(){for(var e=[],A=this.consumeToken();A!==Ph;)e.push(A),A=this.consumeToken();return e},t.prototype.consumeToken=function(){var e=this.consumeCodePoint();switch(e){case xc:return this.consumeStringToken(xc);case XP:var A=this.peekCodePoint(0),n=this.peekCodePoint(1),r=this.peekCodePoint(2);if(GC(A)||Ii(n,r)){var i=Hc(A,n,r)?YP:WP,a=this.consumeName();return{type:5,value:a,flags:i}}break;case qP:if(this.peekCodePoint(0)===Rs)return this.consumeCodePoint(),MV;break;case Dc:return this.consumeStringToken(Dc);case Mc:return TV;case Ps:return xV;case Hh:if(this.peekCodePoint(0)===Rs)return this.consumeCodePoint(),VV;break;case ba:if(Rh(e,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(e),this.consumeNumericToken();break;case uV:return DV;case cn:var s=e,c=this.peekCodePoint(0),d=this.peekCodePoint(1);if(Rh(s,c,d))return this.reconsumeCodePoint(e),this.consumeNumericToken();if(Hc(s,c,d))return this.reconsumeCodePoint(e),this.consumeIdentLikeToken();if(c===cn&&d===AV)return this.consumeCodePoint(),this.consumeCodePoint(),GV;break;case Vs:if(Rh(e,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(e),this.consumeNumericToken();break;case OC:if(this.peekCodePoint(0)===Hh)for(this.consumeCodePoint();;){var f=this.consumeCodePoint();if(f===Hh&&(f=this.consumeCodePoint(),f===OC))return this.consumeToken();if(f===vr)return this.consumeToken()}break;case dV:return WV;case fV:return YV;case tV:if(this.peekCodePoint(0)===eV&&this.peekCodePoint(1)===cn&&this.peekCodePoint(2)===cn)return this.consumeCodePoint(),this.consumeCodePoint(),$V;break;case nV:var h=this.peekCodePoint(0),m=this.peekCodePoint(1),g=this.peekCodePoint(2);if(Hc(h,m,g)){var a=this.consumeName();return{type:7,value:a}}break;case rV:return zV;case Hs:if(Ii(e,this.peekCodePoint(0)))return this.reconsumeCodePoint(e),this.consumeIdentLikeToken();break;case iV:return JV;case aV:if(this.peekCodePoint(0)===Rs)return this.consumeCodePoint(),OV;break;case oV:return RV;case sV:return PV;case CV:case vV:var B=this.peekCodePoint(0),y=this.peekCodePoint(1);return B===ba&&(yo(y)||y===Oc)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(e),this.consumeIdentLikeToken();case NC:if(this.peekCodePoint(0)===Rs)return this.consumeCodePoint(),LV;if(this.peekCodePoint(0)===NC)return this.consumeCodePoint(),NV;break;case lV:if(this.peekCodePoint(0)===Rs)return this.consumeCodePoint(),HV;break;case vr:return Ph}return Nc(e)?(this.consumeWhiteSpace(),XV):RA(e)?(this.reconsumeCodePoint(e),this.consumeNumericToken()):Lc(e)?(this.reconsumeCodePoint(e),this.consumeIdentLikeToken()):{type:6,value:tA(e)}},t.prototype.consumeCodePoint=function(){var e=this._value.shift();return typeof e>"u"?-1:e},t.prototype.reconsumeCodePoint=function(e){this._value.unshift(e)},t.prototype.peekCodePoint=function(e){return e>=this._value.length?-1:this._value[e]},t.prototype.consumeUnicodeRangeToken=function(){for(var e=[],A=this.consumeCodePoint();yo(A)&&e.length<6;)e.push(A),A=this.consumeCodePoint();for(var n=!1;A===Oc&&e.length<6;)e.push(A),A=this.consumeCodePoint(),n=!0;if(n){var r=parseInt(tA.apply(void 0,e.map(function(c){return c===Oc?HC:c})),16),i=parseInt(tA.apply(void 0,e.map(function(c){return c===Oc?$C:c})),16);return{type:30,start:r,end:i}}var a=parseInt(tA.apply(void 0,e),16);if(this.peekCodePoint(0)===cn&&yo(this.peekCodePoint(1))){this.consumeCodePoint(),A=this.consumeCodePoint();for(var s=[];yo(A)&&s.length<6;)s.push(A),A=this.consumeCodePoint();var i=parseInt(tA.apply(void 0,s),16);return{type:30,start:a,end:i}}else return{type:30,start:a,end:a}},t.prototype.consumeIdentLikeToken=function(){var e=this.consumeName();return e.toLowerCase()==="url"&&this.peekCodePoint(0)===Mc?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===Mc?(this.consumeCodePoint(),{type:19,value:e}):{type:20,value:e}},t.prototype.consumeUrlToken=function(){var e=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===vr)return{type:22,value:""};var A=this.peekCodePoint(0);if(A===Dc||A===xc){var n=this.consumeStringToken(this.consumeCodePoint());return n.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===vr||this.peekCodePoint(0)===Ps)?(this.consumeCodePoint(),{type:22,value:n.value}):(this.consumeBadUrlRemnants(),Rc)}for(;;){var r=this.consumeCodePoint();if(r===vr||r===Ps)return{type:22,value:tA.apply(void 0,e)};if(Nc(r))return this.consumeWhiteSpace(),this.peekCodePoint(0)===vr||this.peekCodePoint(0)===Ps?(this.consumeCodePoint(),{type:22,value:tA.apply(void 0,e)}):(this.consumeBadUrlRemnants(),Rc);if(r===xc||r===Dc||r===Mc||IV(r))return this.consumeBadUrlRemnants(),Rc;if(r===Hs)if(Ii(r,this.peekCodePoint(0)))e.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),Rc;else e.push(r)}},t.prototype.consumeWhiteSpace=function(){for(;Nc(this.peekCodePoint(0));)this.consumeCodePoint()},t.prototype.consumeBadUrlRemnants=function(){for(;;){var e=this.consumeCodePoint();if(e===Ps||e===vr)return;Ii(e,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},t.prototype.consumeStringSlice=function(e){for(var A=5e4,n="";e>0;){var r=Math.min(A,e);n+=tA.apply(void 0,this._value.splice(0,r)),e-=r}return this._value.shift(),n},t.prototype.consumeStringToken=function(e){var A="",n=0;do{var r=this._value[n];if(r===vr||r===void 0||r===e)return A+=this.consumeStringSlice(n),{type:0,value:A};if(r===Tc)return this._value.splice(0,n),KV;if(r===Hs){var i=this._value[n+1];i!==vr&&i!==void 0&&(i===Tc?(A+=this.consumeStringSlice(n),n=-1,this._value.shift()):Ii(r,i)&&(A+=this.consumeStringSlice(n),A+=tA(this.consumeEscapedCodePoint()),n=-1))}n++}while(!0)},t.prototype.consumeNumber=function(){var e=[],A=Ls,n=this.peekCodePoint(0);for((n===ba||n===cn)&&e.push(this.consumeCodePoint());RA(this.peekCodePoint(0));)e.push(this.consumeCodePoint());n=this.peekCodePoint(0);var r=this.peekCodePoint(1);if(n===Vs&&RA(r))for(e.push(this.consumeCodePoint(),this.consumeCodePoint()),A=MC;RA(this.peekCodePoint(0));)e.push(this.consumeCodePoint());n=this.peekCodePoint(0),r=this.peekCodePoint(1);var i=this.peekCodePoint(2);if((n===KC||n===PC)&&((r===ba||r===cn)&&RA(i)||RA(r)))for(e.push(this.consumeCodePoint(),this.consumeCodePoint()),A=MC;RA(this.peekCodePoint(0));)e.push(this.consumeCodePoint());return[SV(e),A]},t.prototype.consumeNumericToken=function(){var e=this.consumeNumber(),A=e[0],n=e[1],r=this.peekCodePoint(0),i=this.peekCodePoint(1),a=this.peekCodePoint(2);if(Hc(r,i,a)){var s=this.consumeName();return{type:15,number:A,flags:n,unit:s}}return r===jP?(this.consumeCodePoint(),{type:16,number:A,flags:n}):{type:17,number:A,flags:n}},t.prototype.consumeEscapedCodePoint=function(){var e=this.consumeCodePoint();if(yo(e)){for(var A=tA(e);yo(this.peekCodePoint(0))&&A.length<6;)A+=tA(this.consumeCodePoint());Nc(this.peekCodePoint(0))&&this.consumeCodePoint();var n=parseInt(A,16);return n===0||QV(n)||n>1114111?LC:n}return e===vr?LC:e},t.prototype.consumeName=function(){for(var e="";;){var A=this.consumeCodePoint();if(GC(A))e+=tA(A);else if(Ii(A,this.peekCodePoint(0)))e+=tA(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(A),e}},t}(),YC=function(){function t(e){this._tokens=e}return t.create=function(e){var A=new WC;return A.write(e),new t(A.read())},t.parseValue=function(e){return t.create(e).parseComponentValue()},t.parseValues=function(e){return t.create(e).parseComponentValues()},t.prototype.parseComponentValue=function(){for(var e=this.consumeToken();e.type===31;)e=this.consumeToken();if(e.type===32)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(e);var A=this.consumeComponentValue();do e=this.consumeToken();while(e.type===31);if(e.type===32)return A;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},t.prototype.parseComponentValues=function(){for(var e=[];;){var A=this.consumeComponentValue();if(A.type===32)return e;e.push(A),e.push()}},t.prototype.consumeComponentValue=function(){var e=this.consumeToken();switch(e.type){case 11:case 28:case 2:return this.consumeSimpleBlock(e.type);case 19:return this.consumeFunction(e)}return e},t.prototype.consumeSimpleBlock=function(e){for(var A={type:e,values:[]},n=this.consumeToken();;){if(n.type===32||jV(n,e))return A;this.reconsumeToken(n),A.values.push(this.consumeComponentValue()),n=this.consumeToken()}},t.prototype.consumeFunction=function(e){for(var A={name:e.value,values:[],type:18};;){var n=this.consumeToken();if(n.type===32||n.type===3)return A;this.reconsumeToken(n),A.values.push(this.consumeComponentValue())}},t.prototype.consumeToken=function(){var e=this._tokens.shift();return typeof e>"u"?Ph:e},t.prototype.reconsumeToken=function(e){this._tokens.unshift(e)},t}(),Ks=function(t){return t.type===15},Co=function(t){return t.type===17},Tt=function(t){return t.type===20},qV=function(t){return t.type===0},Vh=function(t,e){return Tt(t)&&t.value===e},zC=function(t){return t.type!==31},bo=function(t){return t.type!==31&&t.type!==4},Er=function(t){var e=[],A=[];return t.forEach(function(n){if(n.type===4){if(A.length===0)throw new Error("Error parsing function args, zero tokens for arg");e.push(A),A=[];return}n.type!==31&&A.push(n)}),A.length&&e.push(A),e},jV=function(t,e){return e===11&&t.type===12||e===28&&t.type===29?!0:e===2&&t.type===3},Si=function(t){return t.type===17||t.type===15},lA=function(t){return t.type===16||Si(t)},JC=function(t){return t.length>1?[t[0],t[1]]:[t[0]]},kA={type:17,number:0,flags:Ls},Kh={type:16,number:50,flags:Ls},Ti={type:16,number:100,flags:Ls},$s=function(t,e,A){var n=t[0],r=t[1];return[Mt(n,e),Mt(typeof r<"u"?r:n,A)]},Mt=function(t,e){if(t.type===16)return t.number/100*e;if(Ks(t))switch(t.unit){case"rem":case"em":return 16*t.number;case"px":default:return t.number}return t.number},XC="deg",qC="grad",jC="rad",ZC="turn",Pc={name:"angle",parse:function(t,e){if(e.type===15)switch(e.unit){case XC:return Math.PI*e.number/180;case qC:return Math.PI/200*e.number;case jC:return e.number;case ZC:return Math.PI*2*e.number}throw new Error("Unsupported angle type")}},eb=function(t){return t.type===15&&(t.unit===XC||t.unit===qC||t.unit===jC||t.unit===ZC)},tb=function(t){var e=t.filter(Tt).map(function(A){return A.value}).join(" ");switch(e){case"to bottom right":case"to right bottom":case"left top":case"top left":return[kA,kA];case"to top":case"bottom":return xn(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[kA,Ti];case"to right":case"left":return xn(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[Ti,Ti];case"to bottom":case"top":return xn(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[Ti,kA];case"to left":case"right":return xn(270)}return 0},xn=function(t){return Math.PI*t/180},xi={name:"color",parse:function(t,e){if(e.type===18){var A=ZV[e.name];if(typeof A>"u")throw new Error('Attempting to parse an unsupported color function "'+e.name+'"');return A(t,e.values)}if(e.type===5){if(e.value.length===3){var n=e.value.substring(0,1),r=e.value.substring(1,2),i=e.value.substring(2,3);return Mi(parseInt(n+n,16),parseInt(r+r,16),parseInt(i+i,16),1)}if(e.value.length===4){var n=e.value.substring(0,1),r=e.value.substring(1,2),i=e.value.substring(2,3),a=e.value.substring(3,4);return Mi(parseInt(n+n,16),parseInt(r+r,16),parseInt(i+i,16),parseInt(a+a,16)/255)}if(e.value.length===6){var n=e.value.substring(0,2),r=e.value.substring(2,4),i=e.value.substring(4,6);return Mi(parseInt(n,16),parseInt(r,16),parseInt(i,16),1)}if(e.value.length===8){var n=e.value.substring(0,2),r=e.value.substring(2,4),i=e.value.substring(4,6),a=e.value.substring(6,8);return Mi(parseInt(n,16),parseInt(r,16),parseInt(i,16),parseInt(a,16)/255)}}if(e.type===20){var s=Wr[e.value.toUpperCase()];if(typeof s<"u")return s}return Wr.TRANSPARENT}},Di=function(t){return(255&t)===0},bA=function(t){var e=255&t,A=255&t>>8,n=255&t>>16,r=255&t>>24;return e<255?"rgba("+r+","+n+","+A+","+e/255+")":"rgb("+r+","+n+","+A+")"},Mi=function(t,e,A,n){return(t<<24|e<<16|A<<8|Math.round(n*255)<<0)>>>0},Ab=function(t,e){if(t.type===17)return t.number;if(t.type===16){var A=e===3?1:255;return e===3?t.number/100*A:Math.round(t.number/100*A)}return 0},nb=function(t,e){var A=e.filter(bo);if(A.length===3){var n=A.map(Ab),r=n[0],i=n[1],a=n[2];return Mi(r,i,a,1)}if(A.length===4){var s=A.map(Ab),r=s[0],i=s[1],a=s[2],c=s[3];return Mi(r,i,a,c)}return 0};function $h(t,e,A){return A<0&&(A+=1),A>=1&&(A-=1),A<1/6?(e-t)*A*6+t:A<1/2?e:A<2/3?(e-t)*6*(2/3-A)+t:t}var rb=function(t,e){var A=e.filter(bo),n=A[0],r=A[1],i=A[2],a=A[3],s=(n.type===17?xn(n.number):Pc.parse(t,n))/(Math.PI*2),c=lA(r)?r.number/100:0,d=lA(i)?i.number/100:0,f=typeof a<"u"&&lA(a)?Mt(a,1):1;if(c===0)return Mi(d*255,d*255,d*255,1);var h=d<=.5?d*(c+1):d+c-d*c,m=d*2-h,g=$h(m,h,s+1/3),B=$h(m,h,s),y=$h(m,h,s-1/3);return Mi(g*255,B*255,y*255,f)},ZV={hsl:rb,hsla:rb,rgb:nb,rgba:nb},Gs=function(t,e){return xi.parse(t,YC.create(e).parseComponentValue())},Wr={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:4041641215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199},e2={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(t,e){return e.map(function(A){if(Tt(A))switch(A.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},t2={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Vc=function(t,e){var A=xi.parse(t,e[0]),n=e[1];return n&&lA(n)?{color:A,stop:n}:{color:A,stop:null}},ib=function(t,e){var A=t[0],n=t[t.length-1];A.stop===null&&(A.stop=kA),n.stop===null&&(n.stop=Ti);for(var r=[],i=0,a=0;a<t.length;a++){var s=t[a].stop;if(s!==null){var c=Mt(s,e);c>i?r.push(c):r.push(i),i=c}else r.push(null)}for(var d=null,a=0;a<r.length;a++){var f=r[a];if(f===null)d===null&&(d=a);else if(d!==null){for(var h=a-d,m=r[d-1],g=(f-m)/(h+1),B=1;B<=h;B++)r[d+B-1]=g*B;d=null}}return t.map(function(y,v){var Q=y.color;return{color:Q,stop:Math.max(Math.min(1,r[v]/e),0)}})},A2=function(t,e,A){var n=e/2,r=A/2,i=Mt(t[0],e)-n,a=r-Mt(t[1],A);return(Math.atan2(a,i)+Math.PI*2)%(Math.PI*2)},n2=function(t,e,A){var n=typeof t=="number"?t:A2(t,e,A),r=Math.abs(e*Math.sin(n))+Math.abs(A*Math.cos(n)),i=e/2,a=A/2,s=r/2,c=Math.sin(n-Math.PI/2)*s,d=Math.cos(n-Math.PI/2)*s;return[r,i-d,i+d,a-c,a+c]},ir=function(t,e){return Math.sqrt(t*t+e*e)},ab=function(t,e,A,n,r){var i=[[0,0],[0,e],[t,0],[t,e]];return i.reduce(function(a,s){var c=s[0],d=s[1],f=ir(A-c,n-d);return(r?f<a.optimumDistance:f>a.optimumDistance)?{optimumCorner:s,optimumDistance:f}:a},{optimumDistance:r?1/0:-1/0,optimumCorner:null}).optimumCorner},r2=function(t,e,A,n,r){var i=0,a=0;switch(t.size){case 0:t.shape===0?i=a=Math.min(Math.abs(e),Math.abs(e-n),Math.abs(A),Math.abs(A-r)):t.shape===1&&(i=Math.min(Math.abs(e),Math.abs(e-n)),a=Math.min(Math.abs(A),Math.abs(A-r)));break;case 2:if(t.shape===0)i=a=Math.min(ir(e,A),ir(e,A-r),ir(e-n,A),ir(e-n,A-r));else if(t.shape===1){var s=Math.min(Math.abs(A),Math.abs(A-r))/Math.min(Math.abs(e),Math.abs(e-n)),c=ab(n,r,e,A,!0),d=c[0],f=c[1];i=ir(d-e,(f-A)/s),a=s*i}break;case 1:t.shape===0?i=a=Math.max(Math.abs(e),Math.abs(e-n),Math.abs(A),Math.abs(A-r)):t.shape===1&&(i=Math.max(Math.abs(e),Math.abs(e-n)),a=Math.max(Math.abs(A),Math.abs(A-r)));break;case 3:if(t.shape===0)i=a=Math.max(ir(e,A),ir(e,A-r),ir(e-n,A),ir(e-n,A-r));else if(t.shape===1){var s=Math.max(Math.abs(A),Math.abs(A-r))/Math.max(Math.abs(e),Math.abs(e-n)),h=ab(n,r,e,A,!1),d=h[0],f=h[1];i=ir(d-e,(f-A)/s),a=s*i}break}return Array.isArray(t.size)&&(i=Mt(t.size[0],n),a=t.size.length===2?Mt(t.size[1],r):i),[i,a]},i2=function(t,e){var A=xn(180),n=[];return Er(e).forEach(function(r,i){if(i===0){var a=r[0];if(a.type===20&&a.value==="to"){A=tb(r);return}else if(eb(a)){A=Pc.parse(t,a);return}}var s=Vc(t,r);n.push(s)}),{angle:A,stops:n,type:1}},Kc=function(t,e){var A=xn(180),n=[];return Er(e).forEach(function(r,i){if(i===0){var a=r[0];if(a.type===20&&["top","left","right","bottom"].indexOf(a.value)!==-1){A=tb(r);return}else if(eb(a)){A=(Pc.parse(t,a)+xn(270))%xn(360);return}}var s=Vc(t,r);n.push(s)}),{angle:A,stops:n,type:1}},a2=function(t,e){var A=xn(180),n=[],r=1,i=0,a=3,s=[];return Er(e).forEach(function(c,d){var f=c[0];if(d===0){if(Tt(f)&&f.value==="linear"){r=1;return}else if(Tt(f)&&f.value==="radial"){r=2;return}}if(f.type===18){if(f.name==="from"){var h=xi.parse(t,f.values[0]);n.push({stop:kA,color:h})}else if(f.name==="to"){var h=xi.parse(t,f.values[0]);n.push({stop:Ti,color:h})}else if(f.name==="color-stop"){var m=f.values.filter(bo);if(m.length===2){var h=xi.parse(t,m[1]),g=m[0];Co(g)&&n.push({stop:{type:16,number:g.number*100,flags:g.flags},color:h})}}}}),r===1?{angle:(A+xn(180))%xn(360),stops:n,type:r}:{size:a,shape:i,stops:n,position:s,type:r}},ob="closest-side",sb="farthest-side",lb="closest-corner",cb="farthest-corner",ub="circle",db="ellipse",fb="cover",hb="contain",o2=function(t,e){var A=0,n=3,r=[],i=[];return Er(e).forEach(function(a,s){var c=!0;if(s===0){var d=!1;c=a.reduce(function(h,m){if(d)if(Tt(m))switch(m.value){case"center":return i.push(Kh),h;case"top":case"left":return i.push(kA),h;case"right":case"bottom":return i.push(Ti),h}else(lA(m)||Si(m))&&i.push(m);else if(Tt(m))switch(m.value){case ub:return A=0,!1;case db:return A=1,!1;case"at":return d=!0,!1;case ob:return n=0,!1;case fb:case sb:return n=1,!1;case hb:case lb:return n=2,!1;case cb:return n=3,!1}else if(Si(m)||lA(m))return Array.isArray(n)||(n=[]),n.push(m),!1;return h},c)}if(c){var f=Vc(t,a);r.push(f)}}),{size:n,shape:A,stops:r,position:i,type:2}},$c=function(t,e){var A=0,n=3,r=[],i=[];return Er(e).forEach(function(a,s){var c=!0;if(s===0?c=a.reduce(function(f,h){if(Tt(h))switch(h.value){case"center":return i.push(Kh),!1;case"top":case"left":return i.push(kA),!1;case"right":case"bottom":return i.push(Ti),!1}else if(lA(h)||Si(h))return i.push(h),!1;return f},c):s===1&&(c=a.reduce(function(f,h){if(Tt(h))switch(h.value){case ub:return A=0,!1;case db:return A=1,!1;case hb:case ob:return n=0,!1;case sb:return n=1,!1;case lb:return n=2,!1;case fb:case cb:return n=3,!1}else if(Si(h)||lA(h))return Array.isArray(n)||(n=[]),n.push(h),!1;return f},c)),c){var d=Vc(t,a);r.push(d)}}),{size:n,shape:A,stops:r,position:i,type:2}},s2=function(t){return t.type===1},l2=function(t){return t.type===2},Gh={name:"image",parse:function(t,e){if(e.type===22){var A={url:e.value,type:0};return t.cache.addImage(e.value),A}if(e.type===18){var n=pb[e.name];if(typeof n>"u")throw new Error('Attempting to parse an unsupported image function "'+e.name+'"');return n(t,e.values)}throw new Error("Unsupported image type "+e.type)}};function c2(t){return!(t.type===20&&t.value==="none")&&(t.type!==18||!!pb[t.name])}var pb={"linear-gradient":i2,"-moz-linear-gradient":Kc,"-ms-linear-gradient":Kc,"-o-linear-gradient":Kc,"-webkit-linear-gradient":Kc,"radial-gradient":o2,"-moz-radial-gradient":$c,"-ms-radial-gradient":$c,"-o-radial-gradient":$c,"-webkit-radial-gradient":$c,"-webkit-gradient":a2},u2={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(t,e){if(e.length===0)return[];var A=e[0];return A.type===20&&A.value==="none"?[]:e.filter(function(n){return bo(n)&&c2(n)}).map(function(n){return Gh.parse(t,n)})}},d2={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(t,e){return e.map(function(A){if(Tt(A))switch(A.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},f2={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(t,e){return Er(e).map(function(A){return A.filter(lA)}).map(JC)}},h2={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(t,e){return Er(e).map(function(A){return A.filter(Tt).map(function(n){return n.value}).join(" ")}).map(p2)}},p2=function(t){switch(t){case"no-repeat":return 1;case"repeat-x":case"repeat no-repeat":return 2;case"repeat-y":case"no-repeat repeat":return 3;case"repeat":default:return 0}},vo;(function(t){t.AUTO="auto",t.CONTAIN="contain",t.COVER="cover"})(vo||(vo={}));var m2={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(t,e){return Er(e).map(function(A){return A.filter(g2)})}},g2=function(t){return Tt(t)||lA(t)},Gc=function(t){return{name:"border-"+t+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},B2=Gc("top"),w2=Gc("right"),y2=Gc("bottom"),C2=Gc("left"),Wc=function(t){return{name:"border-radius-"+t,initialValue:"0 0",prefix:!1,type:1,parse:function(e,A){return JC(A.filter(lA))}}},b2=Wc("top-left"),v2=Wc("top-right"),E2=Wc("bottom-right"),Q2=Wc("bottom-left"),Yc=function(t){return{name:"border-"+t+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(e,A){switch(A){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},F2=Yc("top"),U2=Yc("right"),k2=Yc("bottom"),_2=Yc("left"),zc=function(t){return{name:"border-"+t+"-width",initialValue:"0",type:0,prefix:!1,parse:function(e,A){return Ks(A)?A.number:0}}},I2=zc("top"),S2=zc("right"),T2=zc("bottom"),x2=zc("left"),D2={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},M2={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(t,e){switch(e){case"rtl":return 1;case"ltr":default:return 0}}},O2={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(t,e){return e.filter(Tt).reduce(function(A,n){return A|N2(n.value)},0)}},N2=function(t){switch(t){case"block":case"-webkit-box":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0},L2={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(t,e){switch(e){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},H2={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(t,e){return e.type===20&&e.value==="normal"?0:e.type===17||e.type===15?e.number:0}},Jc;(function(t){t.NORMAL="normal",t.STRICT="strict"})(Jc||(Jc={}));var R2={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(t,e){switch(e){case"strict":return Jc.STRICT;case"normal":default:return Jc.NORMAL}}},P2={name:"line-height",initialValue:"normal",prefix:!1,type:4},mb=function(t,e){return Tt(t)&&t.value==="normal"?1.2*e:t.type===17?e*t.number:lA(t)?Mt(t,e):e},V2={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(t,e){return e.type===20&&e.value==="none"?null:Gh.parse(t,e)}},K2={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(t,e){switch(e){case"inside":return 0;case"outside":default:return 1}}},Wh={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(t,e){switch(e){case"disc":return 0;case"circle":return 1;case"square":return 2;case"decimal":return 3;case"cjk-decimal":return 4;case"decimal-leading-zero":return 5;case"lower-roman":return 6;case"upper-roman":return 7;case"lower-greek":return 8;case"lower-alpha":return 9;case"upper-alpha":return 10;case"arabic-indic":return 11;case"armenian":return 12;case"bengali":return 13;case"cambodian":return 14;case"cjk-earthly-branch":return 15;case"cjk-heavenly-stem":return 16;case"cjk-ideographic":return 17;case"devanagari":return 18;case"ethiopic-numeric":return 19;case"georgian":return 20;case"gujarati":return 21;case"gurmukhi":return 22;case"hebrew":return 22;case"hiragana":return 23;case"hiragana-iroha":return 24;case"japanese-formal":return 25;case"japanese-informal":return 26;case"kannada":return 27;case"katakana":return 28;case"katakana-iroha":return 29;case"khmer":return 30;case"korean-hangul-formal":return 31;case"korean-hanja-formal":return 32;case"korean-hanja-informal":return 33;case"lao":return 34;case"lower-armenian":return 35;case"malayalam":return 36;case"mongolian":return 37;case"myanmar":return 38;case"oriya":return 39;case"persian":return 40;case"simp-chinese-formal":return 41;case"simp-chinese-informal":return 42;case"tamil":return 43;case"telugu":return 44;case"thai":return 45;case"tibetan":return 46;case"trad-chinese-formal":return 47;case"trad-chinese-informal":return 48;case"upper-armenian":return 49;case"disclosure-open":return 50;case"disclosure-closed":return 51;case"none":default:return-1}}},Xc=function(t){return{name:"margin-"+t,initialValue:"0",prefix:!1,type:4}},$2=Xc("top"),G2=Xc("right"),W2=Xc("bottom"),Y2=Xc("left"),z2={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(t,e){return e.filter(Tt).map(function(A){switch(A.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;case"visible":default:return 0}})}},J2={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(t,e){switch(e){case"break-word":return"break-word";case"normal":default:return"normal"}}},qc=function(t){return{name:"padding-"+t,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},X2=qc("top"),q2=qc("right"),j2=qc("bottom"),Z2=qc("left"),e4={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(t,e){switch(e){case"right":return 2;case"center":case"justify":return 1;case"left":default:return 0}}},t4={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(t,e){switch(e){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},A4={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(t,e){return e.length===1&&Vh(e[0],"none")?[]:Er(e).map(function(A){for(var n={color:Wr.TRANSPARENT,offsetX:kA,offsetY:kA,blur:kA},r=0,i=0;i<A.length;i++){var a=A[i];Si(a)?(r===0?n.offsetX=a:r===1?n.offsetY=a:n.blur=a,r++):n.color=xi.parse(t,a)}return n})}},n4={name:"text-transform",initialValue:"none",prefix:!1,type:2,parse:function(t,e){switch(e){case"uppercase":return 2;case"lowercase":return 1;case"capitalize":return 3}return 0}},r4={name:"transform",initialValue:"none",prefix:!0,type:0,parse:function(t,e){if(e.type===20&&e.value==="none")return null;if(e.type===18){var A=o4[e.name];if(typeof A>"u")throw new Error('Attempting to parse an unsupported transform function "'+e.name+'"');return A(e.values)}return null}},i4=function(t){var e=t.filter(function(A){return A.type===17}).map(function(A){return A.number});return e.length===6?e:null},a4=function(t){var e=t.filter(function(c){return c.type===17}).map(function(c){return c.number}),A=e[0],n=e[1];e[2],e[3];var r=e[4],i=e[5];e[6],e[7],e[8],e[9],e[10],e[11];var a=e[12],s=e[13];return e[14],e[15],e.length===16?[A,n,r,i,a,s]:null},o4={matrix:i4,matrix3d:a4},gb={type:16,number:50,flags:Ls},s4=[gb,gb],l4={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(t,e){var A=e.filter(lA);return A.length!==2?s4:[A[0],A[1]]}},c4={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(t,e){switch(e){case"hidden":return 1;case"collapse":return 2;case"visible":default:return 0}}},Ws;(function(t){t.NORMAL="normal",t.BREAK_ALL="break-all",t.KEEP_ALL="keep-all"})(Ws||(Ws={}));for(var u4={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(t,e){switch(e){case"break-all":return Ws.BREAK_ALL;case"keep-all":return Ws.KEEP_ALL;case"normal":default:return Ws.NORMAL}}},d4={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(t,e){if(e.type===20)return{auto:!0,order:0};if(Co(e))return{auto:!1,order:e.number};throw new Error("Invalid z-index number parsed")}},Bb={name:"time",parse:function(t,e){if(e.type===15)switch(e.unit.toLowerCase()){case"s":return 1e3*e.number;case"ms":return e.number}throw new Error("Unsupported time type")}},f4={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(t,e){return Co(e)?e.number:1}},h4={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},p4={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(t,e){return e.filter(Tt).map(function(A){switch(A.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0}).filter(function(A){return A!==0})}},m4={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(t,e){var A=[],n=[];return e.forEach(function(r){switch(r.type){case 20:case 0:A.push(r.value);break;case 17:A.push(r.number.toString());break;case 4:n.push(A.join(" ")),A.length=0;break}}),A.length&&n.push(A.join(" ")),n.map(function(r){return r.indexOf(" ")===-1?r:"'"+r+"'"})}},g4={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},B4={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(t,e){if(Co(e))return e.number;if(Tt(e))switch(e.value){case"bold":return 700;case"normal":default:return 400}return 400}},w4={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(t,e){return e.filter(Tt).map(function(A){return A.value})}},y4={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(t,e){switch(e){case"oblique":return"oblique";case"italic":return"italic";case"normal":default:return"normal"}}},uA=function(t,e){return(t&e)!==0},C4={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(t,e){if(e.length===0)return[];var A=e[0];return A.type===20&&A.value==="none"?[]:e}},b4={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(t,e){if(e.length===0)return null;var A=e[0];if(A.type===20&&A.value==="none")return null;for(var n=[],r=e.filter(zC),i=0;i<r.length;i++){var a=r[i],s=r[i+1];if(a.type===20){var c=s&&Co(s)?s.number:1;n.push({counter:a.value,increment:c})}}return n}},v4={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(t,e){if(e.length===0)return[];for(var A=[],n=e.filter(zC),r=0;r<n.length;r++){var i=n[r],a=n[r+1];if(Tt(i)&&i.value!=="none"){var s=a&&Co(a)?a.number:0;A.push({counter:i.value,reset:s})}}return A}},E4={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(t,e){return e.filter(Ks).map(function(A){return Bb.parse(t,A)})}},Q4={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:function(t,e){if(e.length===0)return null;var A=e[0];if(A.type===20&&A.value==="none")return null;var n=[],r=e.filter(qV);if(r.length%2!==0)return null;for(var i=0;i<r.length;i+=2){var a=r[i].value,s=r[i+1].value;n.push({open:a,close:s})}return n}},wb=function(t,e,A){if(!t)return"";var n=t[Math.min(e,t.length-1)];return n?A?n.open:n.close:""},F4={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(t,e){return e.length===1&&Vh(e[0],"none")?[]:Er(e).map(function(A){for(var n={color:255,offsetX:kA,offsetY:kA,blur:kA,spread:kA,inset:!1},r=0,i=0;i<A.length;i++){var a=A[i];Vh(a,"inset")?n.inset=!0:Si(a)?(r===0?n.offsetX=a:r===1?n.offsetY=a:r===2?n.blur=a:n.spread=a,r++):n.color=xi.parse(t,a)}return n})}},U4={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function(t,e){var A=[0,1,2],n=[];return e.filter(Tt).forEach(function(r){switch(r.value){case"stroke":n.push(1);break;case"fill":n.push(0);break;case"markers":n.push(2);break}}),A.forEach(function(r){n.indexOf(r)===-1&&n.push(r)}),n}},k4={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},_4={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:function(t,e){return Ks(e)?e.number:0}},I4=function(){function t(e,A){var n,r;this.animationDuration=De(e,E4,A.animationDuration),this.backgroundClip=De(e,e2,A.backgroundClip),this.backgroundColor=De(e,t2,A.backgroundColor),this.backgroundImage=De(e,u2,A.backgroundImage),this.backgroundOrigin=De(e,d2,A.backgroundOrigin),this.backgroundPosition=De(e,f2,A.backgroundPosition),this.backgroundRepeat=De(e,h2,A.backgroundRepeat),this.backgroundSize=De(e,m2,A.backgroundSize),this.borderTopColor=De(e,B2,A.borderTopColor),this.borderRightColor=De(e,w2,A.borderRightColor),this.borderBottomColor=De(e,y2,A.borderBottomColor),this.borderLeftColor=De(e,C2,A.borderLeftColor),this.borderTopLeftRadius=De(e,b2,A.borderTopLeftRadius),this.borderTopRightRadius=De(e,v2,A.borderTopRightRadius),this.borderBottomRightRadius=De(e,E2,A.borderBottomRightRadius),this.borderBottomLeftRadius=De(e,Q2,A.borderBottomLeftRadius),this.borderTopStyle=De(e,F2,A.borderTopStyle),this.borderRightStyle=De(e,U2,A.borderRightStyle),this.borderBottomStyle=De(e,k2,A.borderBottomStyle),this.borderLeftStyle=De(e,_2,A.borderLeftStyle),this.borderTopWidth=De(e,I2,A.borderTopWidth),this.borderRightWidth=De(e,S2,A.borderRightWidth),this.borderBottomWidth=De(e,T2,A.borderBottomWidth),this.borderLeftWidth=De(e,x2,A.borderLeftWidth),this.boxShadow=De(e,F4,A.boxShadow),this.color=De(e,D2,A.color),this.direction=De(e,M2,A.direction),this.display=De(e,O2,A.display),this.float=De(e,L2,A.cssFloat),this.fontFamily=De(e,m4,A.fontFamily),this.fontSize=De(e,g4,A.fontSize),this.fontStyle=De(e,y4,A.fontStyle),this.fontVariant=De(e,w4,A.fontVariant),this.fontWeight=De(e,B4,A.fontWeight),this.letterSpacing=De(e,H2,A.letterSpacing),this.lineBreak=De(e,R2,A.lineBreak),this.lineHeight=De(e,P2,A.lineHeight),this.listStyleImage=De(e,V2,A.listStyleImage),this.listStylePosition=De(e,K2,A.listStylePosition),this.listStyleType=De(e,Wh,A.listStyleType),this.marginTop=De(e,$2,A.marginTop),this.marginRight=De(e,G2,A.marginRight),this.marginBottom=De(e,W2,A.marginBottom),this.marginLeft=De(e,Y2,A.marginLeft),this.opacity=De(e,f4,A.opacity);var i=De(e,z2,A.overflow);this.overflowX=i[0],this.overflowY=i[i.length>1?1:0],this.overflowWrap=De(e,J2,A.overflowWrap),this.paddingTop=De(e,X2,A.paddingTop),this.paddingRight=De(e,q2,A.paddingRight),this.paddingBottom=De(e,j2,A.paddingBottom),this.paddingLeft=De(e,Z2,A.paddingLeft),this.paintOrder=De(e,U4,A.paintOrder),this.position=De(e,t4,A.position),this.textAlign=De(e,e4,A.textAlign),this.textDecorationColor=De(e,h4,(n=A.textDecorationColor)!==null&&n!==void 0?n:A.color),this.textDecorationLine=De(e,p4,(r=A.textDecorationLine)!==null&&r!==void 0?r:A.textDecoration),this.textShadow=De(e,A4,A.textShadow),this.textTransform=De(e,n4,A.textTransform),this.transform=De(e,r4,A.transform),this.transformOrigin=De(e,l4,A.transformOrigin),this.visibility=De(e,c4,A.visibility),this.webkitTextStrokeColor=De(e,k4,A.webkitTextStrokeColor),this.webkitTextStrokeWidth=De(e,_4,A.webkitTextStrokeWidth),this.wordBreak=De(e,u4,A.wordBreak),this.zIndex=De(e,d4,A.zIndex)}return t.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===0},t.prototype.isTransparent=function(){return Di(this.backgroundColor)},t.prototype.isTransformed=function(){return this.transform!==null},t.prototype.isPositioned=function(){return this.position!==0},t.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},t.prototype.isFloating=function(){return this.float!==0},t.prototype.isInlineLevel=function(){return uA(this.display,4)||uA(this.display,33554432)||uA(this.display,268435456)||uA(this.display,536870912)||uA(this.display,67108864)||uA(this.display,134217728)},t}(),S4=function(){function t(e,A){this.content=De(e,C4,A.content),this.quotes=De(e,Q4,A.quotes)}return t}(),yb=function(){function t(e,A){this.counterIncrement=De(e,b4,A.counterIncrement),this.counterReset=De(e,v4,A.counterReset)}return t}(),De=function(t,e,A){var n=new WC,r=A!==null&&typeof A<"u"?A.toString():e.initialValue;n.write(r);var i=new YC(n.read());switch(e.type){case 2:var a=i.parseComponentValue();return e.parse(t,Tt(a)?a.value:e.initialValue);case 0:return e.parse(t,i.parseComponentValue());case 1:return e.parse(t,i.parseComponentValues());case 4:return i.parseComponentValue();case 3:switch(e.format){case"angle":return Pc.parse(t,i.parseComponentValue());case"color":return xi.parse(t,i.parseComponentValue());case"image":return Gh.parse(t,i.parseComponentValue());case"length":var s=i.parseComponentValue();return Si(s)?s:kA;case"length-percentage":var c=i.parseComponentValue();return lA(c)?c:kA;case"time":return Bb.parse(t,i.parseComponentValue())}break}},T4="data-html2canvas-debug",x4=function(t){var e=t.getAttribute(T4);switch(e){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},Yh=function(t,e){var A=x4(t);return A===1||e===A},Qr=function(){function t(e,A){if(this.context=e,this.textNodes=[],this.elements=[],this.flags=0,Yh(A,3))debugger;this.styles=new I4(e,window.getComputedStyle(A,null)),op(A)&&(this.styles.animationDuration.some(function(n){return n>0})&&(A.style.animationDuration="0s"),this.styles.transform!==null&&(A.style.transform="none")),this.bounds=Cc(this.context,A),Yh(A,4)&&(this.flags|=16)}return t}(),D4="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAQADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUAAAAFAAUAAAAFAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAQAAAAUABQAFAAUABQAFAAAAAAAFAAUAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAFAAUAAQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAAABwAHAAcAAAAHAAcABwAFAAEAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAcABwAFAAUAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAQABAAAAAAAAAAAAAAAFAAUABQAFAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAHAAcAAAAHAAcAAAAAAAUABQAHAAUAAQAHAAEABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwABAAUABQAFAAUAAAAAAAAAAAAAAAEAAQABAAEAAQABAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABQANAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAABQAHAAUABQAFAAAAAAAAAAcABQAFAAUABQAFAAQABAAEAAQABAAEAAQABAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUAAAAFAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAUAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAcABwAFAAcABwAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUABwAHAAUABQAFAAUAAAAAAAcABwAAAAAABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAAAAAAAAAAABQAFAAAAAAAFAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAFAAUABQAFAAUAAAAFAAUABwAAAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABwAFAAUABQAFAAAAAAAHAAcAAAAAAAcABwAFAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAAAAAAAAAHAAcABwAAAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAUABQAFAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAHAAcABQAHAAcAAAAFAAcABwAAAAcABwAFAAUAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAFAAcABwAFAAUABQAAAAUAAAAHAAcABwAHAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAHAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUAAAAFAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAUAAAAFAAUAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABwAFAAUABQAFAAUABQAAAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABQAFAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAFAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAHAAUABQAFAAUABQAFAAUABwAHAAcABwAHAAcABwAHAAUABwAHAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABwAHAAcABwAFAAUABwAHAAcAAAAAAAAAAAAHAAcABQAHAAcABwAHAAcABwAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAUABQAFAAUABQAFAAUAAAAFAAAABQAAAAAABQAFAAUABQAFAAUABQAFAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAUABQAFAAUABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABwAFAAcABwAHAAcABwAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAUABQAFAAUABwAHAAUABQAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABQAFAAcABwAHAAUABwAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAcABQAFAAUABQAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAAAAAABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAAAAAAAAAFAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAUABQAHAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAFAAUABQAFAAcABwAFAAUABwAHAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAcABwAFAAUABwAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABQAAAAAABQAFAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAcABwAAAAAAAAAAAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAcABwAFAAcABwAAAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAFAAUABQAAAAUABQAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABwAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAHAAcABQAHAAUABQAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAAABwAHAAAAAAAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAFAAUABwAFAAcABwAFAAcABQAFAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAAAAAABwAHAAcABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAFAAcABwAFAAUABQAFAAUABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAUABQAFAAcABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABQAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAAAAAAFAAUABwAHAAcABwAFAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAHAAUABQAFAAUABQAFAAUABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAABQAAAAUABQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAHAAcAAAAFAAUAAAAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABQAFAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAABQAFAAUABQAFAAUABQAAAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAFAAUABQAFAAUADgAOAA4ADgAOAA4ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAMAAwADAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAAAAAAAAAAAAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAAAAAAAAAAAAsADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwACwAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAADgAOAA4AAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAAAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4AAAAOAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAAAAAAAAAAAA4AAAAOAAAAAAAAAAAADgAOAA4AAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=",Cb="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ys=typeof Uint8Array>"u"?[]:new Uint8Array(256),jc=0;jc<Cb.length;jc++)Ys[Cb.charCodeAt(jc)]=jc;for(var M4=function(t){var e=t.length*.75,A=t.length,n,r=0,i,a,s,c;t[t.length-1]==="="&&(e--,t[t.length-2]==="="&&e--);var d=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(e):new Array(e),f=Array.isArray(d)?d:new Uint8Array(d);for(n=0;n<A;n+=4)i=Ys[t.charCodeAt(n)],a=Ys[t.charCodeAt(n+1)],s=Ys[t.charCodeAt(n+2)],c=Ys[t.charCodeAt(n+3)],f[r++]=i<<2|a>>4,f[r++]=(a&15)<<4|s>>2,f[r++]=(s&3)<<6|c&63;return d},O4=function(t){for(var e=t.length,A=[],n=0;n<e;n+=2)A.push(t[n+1]<<8|t[n]);return A},N4=function(t){for(var e=t.length,A=[],n=0;n<e;n+=4)A.push(t[n+3]<<24|t[n+2]<<16|t[n+1]<<8|t[n]);return A},va=5,zh=6+5,Jh=2,L4=zh-va,bb=65536>>va,H4=1<<va,Xh=H4-1,R4=1024>>va,P4=bb+R4,V4=P4,K4=32,$4=V4+K4,G4=65536>>zh,W4=1<<L4,Y4=W4-1,vb=function(t,e,A){return t.slice?t.slice(e,A):new Uint16Array(Array.prototype.slice.call(t,e,A))},z4=function(t,e,A){return t.slice?t.slice(e,A):new Uint32Array(Array.prototype.slice.call(t,e,A))},J4=function(t,e){var A=M4(t),n=Array.isArray(A)?N4(A):new Uint32Array(A),r=Array.isArray(A)?O4(A):new Uint16Array(A),i=24,a=vb(r,i/2,n[4]/2),s=n[5]===2?vb(r,(i+n[4])/2):z4(n,Math.ceil((i+n[4])/4));return new X4(n[0],n[1],n[2],n[3],a,s)},X4=function(){function t(e,A,n,r,i,a){this.initialValue=e,this.errorValue=A,this.highStart=n,this.highValueIndex=r,this.index=i,this.data=a}return t.prototype.get=function(e){var A;if(e>=0){if(e<55296||e>56319&&e<=65535)return A=this.index[e>>va],A=(A<<Jh)+(e&Xh),this.data[A];if(e<=65535)return A=this.index[bb+(e-55296>>va)],A=(A<<Jh)+(e&Xh),this.data[A];if(e<this.highStart)return A=$4-G4+(e>>zh),A=this.index[A],A+=e>>va&Y4,A=this.index[A],A=(A<<Jh)+(e&Xh),this.data[A];if(e<=1114111)return this.data[this.highValueIndex]}return this.errorValue},t}(),Eb="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",q4=typeof Uint8Array>"u"?[]:new Uint8Array(256),Zc=0;Zc<Eb.length;Zc++)q4[Eb.charCodeAt(Zc)]=Zc;var j4=1,qh=2,jh=3,Qb=4,Fb=5,Z4=7,Ub=8,Zh=9,ep=10,kb=11,_b=12,Ib=13,Sb=14,tp=15,eK=function(t){for(var e=[],A=0,n=t.length;A<n;){var r=t.charCodeAt(A++);if(r>=55296&&r<=56319&&A<n){var i=t.charCodeAt(A++);(i&64512)===56320?e.push(((r&1023)<<10)+(i&1023)+65536):(e.push(r),A--)}else e.push(r)}return e},tK=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(String.fromCodePoint)return String.fromCodePoint.apply(String,t);var A=t.length;if(!A)return"";for(var n=[],r=-1,i="";++r<A;){var a=t[r];a<=65535?n.push(a):(a-=65536,n.push((a>>10)+55296,a%1024+56320)),(r+1===A||n.length>16384)&&(i+=String.fromCharCode.apply(String,n),n.length=0)}return i},AK=J4(D4),Dn="×",Ap="÷",nK=function(t){return AK.get(t)},rK=function(t,e,A){var n=A-2,r=e[n],i=e[A-1],a=e[A];if(i===qh&&a===jh)return Dn;if(i===qh||i===jh||i===Qb||a===qh||a===jh||a===Qb)return Ap;if(i===Ub&&[Ub,Zh,kb,_b].indexOf(a)!==-1||(i===kb||i===Zh)&&(a===Zh||a===ep)||(i===_b||i===ep)&&a===ep||a===Ib||a===Fb||a===Z4||i===j4)return Dn;if(i===Ib&&a===Sb){for(;r===Fb;)r=e[--n];if(r===Sb)return Dn}if(i===tp&&a===tp){for(var s=0;r===tp;)s++,r=e[--n];if(s%2===0)return Dn}return Ap},iK=function(t){var e=eK(t),A=e.length,n=0,r=0,i=e.map(nK);return{next:function(){if(n>=A)return{done:!0,value:null};for(var a=Dn;n<A&&(a=rK(e,i,++n))===Dn;);if(a!==Dn||n===A){var s=tK.apply(null,e.slice(r,n));return r=n,{value:s,done:!1}}return{done:!0,value:null}}}},aK=function(t){for(var e=iK(t),A=[],n;!(n=e.next()).done;)n.value&&A.push(n.value.slice());return A},oK=function(t){var e=123;if(t.createRange){var A=t.createRange();if(A.getBoundingClientRect){var n=t.createElement("boundtest");n.style.height=e+"px",n.style.display="block",t.body.appendChild(n),A.selectNode(n);var r=A.getBoundingClientRect(),i=Math.round(r.height);if(t.body.removeChild(n),i===e)return!0}}return!1},sK=function(t){var e=t.createElement("boundtest");e.style.width="50px",e.style.display="block",e.style.fontSize="12px",e.style.letterSpacing="0px",e.style.wordSpacing="0px",t.body.appendChild(e);var A=t.createRange();e.innerHTML=typeof"".repeat=="function"?"&#128104;".repeat(10):"";var n=e.firstChild,r=bc(n.data).map(function(c){return tA(c)}),i=0,a={},s=r.every(function(c,d){A.setStart(n,i),A.setEnd(n,i+c.length);var f=A.getBoundingClientRect();i+=c.length;var h=f.x>a.x||f.y>a.y;return a=f,d===0?!0:h});return t.body.removeChild(e),s},lK=function(){return typeof new Image().crossOrigin<"u"},cK=function(){return typeof new XMLHttpRequest().responseType=="string"},uK=function(t){var e=new Image,A=t.createElement("canvas"),n=A.getContext("2d");if(!n)return!1;e.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{n.drawImage(e,0,0),A.toDataURL()}catch{return!1}return!0},Tb=function(t){return t[0]===0&&t[1]===255&&t[2]===0&&t[3]===255},dK=function(t){var e=t.createElement("canvas"),A=100;e.width=A,e.height=A;var n=e.getContext("2d");if(!n)return Promise.reject(!1);n.fillStyle="rgb(0, 255, 0)",n.fillRect(0,0,A,A);var r=new Image,i=e.toDataURL();r.src=i;var a=np(A,A,0,0,r);return n.fillStyle="red",n.fillRect(0,0,A,A),xb(a).then(function(s){n.drawImage(s,0,0);var c=n.getImageData(0,0,A,A).data;n.fillStyle="red",n.fillRect(0,0,A,A);var d=t.createElement("div");return d.style.backgroundImage="url("+i+")",d.style.height=A+"px",Tb(c)?xb(np(A,A,0,0,d)):Promise.reject(!1)}).then(function(s){return n.drawImage(s,0,0),Tb(n.getImageData(0,0,A,A).data)}).catch(function(){return!1})},np=function(t,e,A,n,r){var i="http://www.w3.org/2000/svg",a=document.createElementNS(i,"svg"),s=document.createElementNS(i,"foreignObject");return a.setAttributeNS(null,"width",t.toString()),a.setAttributeNS(null,"height",e.toString()),s.setAttributeNS(null,"width","100%"),s.setAttributeNS(null,"height","100%"),s.setAttributeNS(null,"x",A.toString()),s.setAttributeNS(null,"y",n.toString()),s.setAttributeNS(null,"externalResourcesRequired","true"),a.appendChild(s),s.appendChild(r),a},xb=function(t){return new Promise(function(e,A){var n=new Image;n.onload=function(){return e(n)},n.onerror=A,n.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(t))})},_A={get SUPPORT_RANGE_BOUNDS(){var t=oK(document);return Object.defineProperty(_A,"SUPPORT_RANGE_BOUNDS",{value:t}),t},get SUPPORT_WORD_BREAKING(){var t=_A.SUPPORT_RANGE_BOUNDS&&sK(document);return Object.defineProperty(_A,"SUPPORT_WORD_BREAKING",{value:t}),t},get SUPPORT_SVG_DRAWING(){var t=uK(document);return Object.defineProperty(_A,"SUPPORT_SVG_DRAWING",{value:t}),t},get SUPPORT_FOREIGNOBJECT_DRAWING(){var t=typeof Array.from=="function"&&typeof window.fetch=="function"?dK(document):Promise.resolve(!1);return Object.defineProperty(_A,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:t}),t},get SUPPORT_CORS_IMAGES(){var t=lK();return Object.defineProperty(_A,"SUPPORT_CORS_IMAGES",{value:t}),t},get SUPPORT_RESPONSE_TYPE(){var t=cK();return Object.defineProperty(_A,"SUPPORT_RESPONSE_TYPE",{value:t}),t},get SUPPORT_CORS_XHR(){var t="withCredentials"in new XMLHttpRequest;return Object.defineProperty(_A,"SUPPORT_CORS_XHR",{value:t}),t},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var t=!!(typeof Intl<"u"&&Intl.Segmenter);return Object.defineProperty(_A,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:t}),t}},zs=function(){function t(e,A){this.text=e,this.bounds=A}return t}(),fK=function(t,e,A,n){var r=mK(e,A),i=[],a=0;return r.forEach(function(s){if(A.textDecorationLine.length||s.trim().length>0)if(_A.SUPPORT_RANGE_BOUNDS){var c=Db(n,a,s.length).getClientRects();if(c.length>1){var d=rp(s),f=0;d.forEach(function(m){i.push(new zs(m,$r.fromDOMRectList(t,Db(n,f+a,m.length).getClientRects()))),f+=m.length})}else i.push(new zs(s,$r.fromDOMRectList(t,c)))}else{var h=n.splitText(s.length);i.push(new zs(s,hK(t,n))),n=h}else _A.SUPPORT_RANGE_BOUNDS||(n=n.splitText(s.length));a+=s.length}),i},hK=function(t,e){var A=e.ownerDocument;if(A){var n=A.createElement("html2canvaswrapper");n.appendChild(e.cloneNode(!0));var r=e.parentNode;if(r){r.replaceChild(n,e);var i=Cc(t,n);return n.firstChild&&r.replaceChild(n.firstChild,n),i}}return $r.EMPTY},Db=function(t,e,A){var n=t.ownerDocument;if(!n)throw new Error("Node has no owner document");var r=n.createRange();return r.setStart(t,e),r.setEnd(t,e+A),r},rp=function(t){if(_A.SUPPORT_NATIVE_TEXT_SEGMENTATION){var e=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(e.segment(t)).map(function(A){return A.segment})}return aK(t)},pK=function(t,e){if(_A.SUPPORT_NATIVE_TEXT_SEGMENTATION){var A=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(A.segment(t)).map(function(n){return n.segment})}return BK(t,e)},mK=function(t,e){return e.letterSpacing!==0?rp(t):pK(t,e)},gK=[32,160,4961,65792,65793,4153,4241],BK=function(t,e){for(var A=GP(t,{lineBreak:e.lineBreak,wordBreak:e.overflowWrap==="break-word"?"break-word":e.wordBreak}),n=[],r,i=function(){if(r.value){var a=r.value.slice(),s=bc(a),c="";s.forEach(function(d){gK.indexOf(d)===-1?c+=tA(d):(c.length&&n.push(c),n.push(tA(d)),c="")}),c.length&&n.push(c)}};!(r=A.next()).done;)i();return n},wK=function(){function t(e,A,n){this.text=yK(A.data,n.textTransform),this.textBounds=fK(e,this.text,n,A)}return t}(),yK=function(t,e){switch(e){case 1:return t.toLowerCase();case 3:return t.replace(CK,bK);case 2:return t.toUpperCase();default:return t}},CK=/(^|\s|:|-|\(|\))([a-z])/g,bK=function(t,e,A){return t.length>0?e+A.toUpperCase():t},Mb=function(t){rr(e,t);function e(A,n){var r=t.call(this,A,n)||this;return r.src=n.currentSrc||n.src,r.intrinsicWidth=n.naturalWidth,r.intrinsicHeight=n.naturalHeight,r.context.cache.addImage(r.src),r}return e}(Qr),Ob=function(t){rr(e,t);function e(A,n){var r=t.call(this,A,n)||this;return r.canvas=n,r.intrinsicWidth=n.width,r.intrinsicHeight=n.height,r}return e}(Qr),Nb=function(t){rr(e,t);function e(A,n){var r=t.call(this,A,n)||this,i=new XMLSerializer,a=Cc(A,n);return n.setAttribute("width",a.width+"px"),n.setAttribute("height",a.height+"px"),r.svg="data:image/svg+xml,"+encodeURIComponent(i.serializeToString(n)),r.intrinsicWidth=n.width.baseVal.value,r.intrinsicHeight=n.height.baseVal.value,r.context.cache.addImage(r.svg),r}return e}(Qr),Lb=function(t){rr(e,t);function e(A,n){var r=t.call(this,A,n)||this;return r.value=n.value,r}return e}(Qr),ip=function(t){rr(e,t);function e(A,n){var r=t.call(this,A,n)||this;return r.start=n.start,r.reversed=typeof n.reversed=="boolean"&&n.reversed===!0,r}return e}(Qr),vK=[{type:15,flags:0,unit:"px",number:3}],EK=[{type:16,flags:0,number:50}],QK=function(t){return t.width>t.height?new $r(t.left+(t.width-t.height)/2,t.top,t.height,t.height):t.width<t.height?new $r(t.left,t.top+(t.height-t.width)/2,t.width,t.width):t},FK=function(t){var e=t.type===UK?new Array(t.value.length+1).join("•"):t.value;return e.length===0?t.placeholder||"":e},eu="checkbox",tu="radio",UK="password",Hb=707406591,ap=function(t){rr(e,t);function e(A,n){var r=t.call(this,A,n)||this;switch(r.type=n.type.toLowerCase(),r.checked=n.checked,r.value=FK(n),(r.type===eu||r.type===tu)&&(r.styles.backgroundColor=3739148031,r.styles.borderTopColor=r.styles.borderRightColor=r.styles.borderBottomColor=r.styles.borderLeftColor=2779096575,r.styles.borderTopWidth=r.styles.borderRightWidth=r.styles.borderBottomWidth=r.styles.borderLeftWidth=1,r.styles.borderTopStyle=r.styles.borderRightStyle=r.styles.borderBottomStyle=r.styles.borderLeftStyle=1,r.styles.backgroundClip=[0],r.styles.backgroundOrigin=[0],r.bounds=QK(r.bounds)),r.type){case eu:r.styles.borderTopRightRadius=r.styles.borderTopLeftRadius=r.styles.borderBottomRightRadius=r.styles.borderBottomLeftRadius=vK;break;case tu:r.styles.borderTopRightRadius=r.styles.borderTopLeftRadius=r.styles.borderBottomRightRadius=r.styles.borderBottomLeftRadius=EK;break}return r}return e}(Qr),Rb=function(t){rr(e,t);function e(A,n){var r=t.call(this,A,n)||this,i=n.options[n.selectedIndex||0];return r.value=i&&i.text||"",r}return e}(Qr),Pb=function(t){rr(e,t);function e(A,n){var r=t.call(this,A,n)||this;return r.value=n.value,r}return e}(Qr),Vb=function(t){rr(e,t);function e(A,n){var r=t.call(this,A,n)||this;r.src=n.src,r.width=parseInt(n.width,10)||0,r.height=parseInt(n.height,10)||0,r.backgroundColor=r.styles.backgroundColor;try{if(n.contentWindow&&n.contentWindow.document&&n.contentWindow.document.documentElement){r.tree=$b(A,n.contentWindow.document.documentElement);var i=n.contentWindow.document.documentElement?Gs(A,getComputedStyle(n.contentWindow.document.documentElement).backgroundColor):Wr.TRANSPARENT,a=n.contentWindow.document.body?Gs(A,getComputedStyle(n.contentWindow.document.body).backgroundColor):Wr.TRANSPARENT;r.backgroundColor=Di(i)?Di(a)?r.styles.backgroundColor:a:i}}catch{}return r}return e}(Qr),kK=["OL","UL","MENU"],Au=function(t,e,A,n){for(var r=e.firstChild,i=void 0;r;r=i)if(i=r.nextSibling,Gb(r)&&r.data.trim().length>0)A.textNodes.push(new wK(t,r,A.styles));else if(Eo(r))if(qb(r)&&r.assignedNodes)r.assignedNodes().forEach(function(s){return Au(t,s,A,n)});else{var a=Kb(t,r);a.styles.isVisible()&&(_K(r,a,n)?a.flags|=4:IK(a.styles)&&(a.flags|=2),kK.indexOf(r.tagName)!==-1&&(a.flags|=8),A.elements.push(a),r.slot,r.shadowRoot?Au(t,r.shadowRoot,a,n):!ru(r)&&!Wb(r)&&!iu(r)&&Au(t,r,a,n))}},Kb=function(t,e){return lp(e)?new Mb(t,e):Yb(e)?new Ob(t,e):Wb(e)?new Nb(t,e):SK(e)?new Lb(t,e):TK(e)?new ip(t,e):xK(e)?new ap(t,e):iu(e)?new Rb(t,e):ru(e)?new Pb(t,e):Jb(e)?new Vb(t,e):new Qr(t,e)},$b=function(t,e){var A=Kb(t,e);return A.flags|=4,Au(t,e,A,A),A},_K=function(t,e,A){return e.styles.isPositionedWithZIndex()||e.styles.opacity<1||e.styles.isTransformed()||sp(t)&&A.styles.isTransparent()},IK=function(t){return t.isPositioned()||t.isFloating()},Gb=function(t){return t.nodeType===Node.TEXT_NODE},Eo=function(t){return t.nodeType===Node.ELEMENT_NODE},op=function(t){return Eo(t)&&typeof t.style<"u"&&!nu(t)},nu=function(t){return typeof t.className=="object"},SK=function(t){return t.tagName==="LI"},TK=function(t){return t.tagName==="OL"},xK=function(t){return t.tagName==="INPUT"},DK=function(t){return t.tagName==="HTML"},Wb=function(t){return t.tagName==="svg"},sp=function(t){return t.tagName==="BODY"},Yb=function(t){return t.tagName==="CANVAS"},zb=function(t){return t.tagName==="VIDEO"},lp=function(t){return t.tagName==="IMG"},Jb=function(t){return t.tagName==="IFRAME"},Xb=function(t){return t.tagName==="STYLE"},MK=function(t){return t.tagName==="SCRIPT"},ru=function(t){return t.tagName==="TEXTAREA"},iu=function(t){return t.tagName==="SELECT"},qb=function(t){return t.tagName==="SLOT"},jb=function(t){return t.tagName.indexOf("-")>0},OK=function(){function t(){this.counters={}}return t.prototype.getCounterValue=function(e){var A=this.counters[e];return A&&A.length?A[A.length-1]:1},t.prototype.getCounterValues=function(e){var A=this.counters[e];return A||[]},t.prototype.pop=function(e){var A=this;e.forEach(function(n){return A.counters[n].pop()})},t.prototype.parse=function(e){var A=this,n=e.counterIncrement,r=e.counterReset,i=!0;n!==null&&n.forEach(function(s){var c=A.counters[s.counter];c&&s.increment!==0&&(i=!1,c.length||c.push(1),c[Math.max(0,c.length-1)]+=s.increment)});var a=[];return i&&r.forEach(function(s){var c=A.counters[s.counter];a.push(s.counter),c||(c=A.counters[s.counter]=[]),c.push(s.reset)}),a},t}(),Zb={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]},ev={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},NK={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},LK={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","ყ","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},Qo=function(t,e,A,n,r,i){return t<e||t>A?Xs(t,r,i.length>0):n.integers.reduce(function(a,s,c){for(;t>=s;)t-=s,a+=n.values[c];return a},"")+i},tv=function(t,e,A,n){var r="";do A||t--,r=n(t)+r,t/=e;while(t*e>=e);return r},AA=function(t,e,A,n,r){var i=A-e+1;return(t<0?"-":"")+(tv(Math.abs(t),i,n,function(a){return tA(Math.floor(a%i)+e)})+r)},Ea=function(t,e,A){A===void 0&&(A=". ");var n=e.length;return tv(Math.abs(t),n,!1,function(r){return e[Math.floor(r%n)]})+A},Fo=1,Oi=2,Ni=4,Js=8,Yr=function(t,e,A,n,r,i){if(t<-9999||t>9999)return Xs(t,4,r.length>0);var a=Math.abs(t),s=r;if(a===0)return e[0]+s;for(var c=0;a>0&&c<=4;c++){var d=a%10;d===0&&uA(i,Fo)&&s!==""?s=e[d]+s:d>1||d===1&&c===0||d===1&&c===1&&uA(i,Oi)||d===1&&c===1&&uA(i,Ni)&&t>100||d===1&&c>1&&uA(i,Js)?s=e[d]+(c>0?A[c-1]:"")+s:d===1&&c>0&&(s=A[c-1]+s),a=Math.floor(a/10)}return(t<0?n:"")+s},Av="十百千萬",nv="拾佰仟萬",rv="マイナス",cp="마이너스",Xs=function(t,e,A){var n=A?". ":"",r=A?"、":"",i=A?", ":"",a=A?" ":"";switch(e){case 0:return"•"+a;case 1:return"◦"+a;case 2:return"◾"+a;case 5:var s=AA(t,48,57,!0,n);return s.length<4?"0"+s:s;case 4:return Ea(t,"〇一二三四五六七八九",r);case 6:return Qo(t,1,3999,Zb,3,n).toLowerCase();case 7:return Qo(t,1,3999,Zb,3,n);case 8:return AA(t,945,969,!1,n);case 9:return AA(t,97,122,!1,n);case 10:return AA(t,65,90,!1,n);case 11:return AA(t,1632,1641,!0,n);case 12:case 49:return Qo(t,1,9999,ev,3,n);case 35:return Qo(t,1,9999,ev,3,n).toLowerCase();case 13:return AA(t,2534,2543,!0,n);case 14:case 30:return AA(t,6112,6121,!0,n);case 15:return Ea(t,"子丑寅卯辰巳午未申酉戌亥",r);case 16:return Ea(t,"甲乙丙丁戊己庚辛壬癸",r);case 17:case 48:return Yr(t,"零一二三四五六七八九",Av,"負",r,Oi|Ni|Js);case 47:return Yr(t,"零壹貳參肆伍陸柒捌玖",nv,"負",r,Fo|Oi|Ni|Js);case 42:return Yr(t,"零一二三四五六七八九",Av,"负",r,Oi|Ni|Js);case 41:return Yr(t,"零壹贰叁肆伍陆柒捌玖",nv,"负",r,Fo|Oi|Ni|Js);case 26:return Yr(t,"〇一二三四五六七八九","十百千万",rv,r,0);case 25:return Yr(t,"零壱弐参四伍六七八九","拾百千万",rv,r,Fo|Oi|Ni);case 31:return Yr(t,"영일이삼사오육칠팔구","십백천만",cp,i,Fo|Oi|Ni);case 33:return Yr(t,"零一二三四五六七八九","十百千萬",cp,i,0);case 32:return Yr(t,"零壹貳參四五六七八九","拾百千",cp,i,Fo|Oi|Ni);case 18:return AA(t,2406,2415,!0,n);case 20:return Qo(t,1,19999,LK,3,n);case 21:return AA(t,2790,2799,!0,n);case 22:return AA(t,2662,2671,!0,n);case 22:return Qo(t,1,10999,NK,3,n);case 23:return Ea(t,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case 24:return Ea(t,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case 27:return AA(t,3302,3311,!0,n);case 28:return Ea(t,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",r);case 29:return Ea(t,"イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス",r);case 34:return AA(t,3792,3801,!0,n);case 37:return AA(t,6160,6169,!0,n);case 38:return AA(t,4160,4169,!0,n);case 39:return AA(t,2918,2927,!0,n);case 40:return AA(t,1776,1785,!0,n);case 43:return AA(t,3046,3055,!0,n);case 44:return AA(t,3174,3183,!0,n);case 45:return AA(t,3664,3673,!0,n);case 46:return AA(t,3872,3881,!0,n);case 3:default:return AA(t,48,57,!0,n)}},iv="data-html2canvas-ignore",av=function(){function t(e,A,n){if(this.context=e,this.options=n,this.scrolledElements=[],this.referenceElement=A,this.counters=new OK,this.quoteDepth=0,!A.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(A.ownerDocument.documentElement,!1)}return t.prototype.toIFrame=function(e,A){var n=this,r=HK(e,A);if(!r.contentWindow)return Promise.reject("Unable to find iframe window");var i=e.defaultView.pageXOffset,a=e.defaultView.pageYOffset,s=r.contentWindow,c=s.document,d=VK(r).then(function(){return ZA(n,void 0,void 0,function(){var f,h;return HA(this,function(m){switch(m.label){case 0:return this.scrolledElements.forEach(WK),s&&(s.scrollTo(A.left,A.top),/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&(s.scrollY!==A.top||s.scrollX!==A.left)&&(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(s.scrollX-A.left,s.scrollY-A.top,0,0))),f=this.options.onclone,h=this.clonedReferenceElement,typeof h>"u"?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:c.fonts&&c.fonts.ready?[4,c.fonts.ready]:[3,2];case 1:m.sent(),m.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,PK(c)]:[3,4];case 3:m.sent(),m.label=4;case 4:return typeof f=="function"?[2,Promise.resolve().then(function(){return f(c,h)}).then(function(){return r})]:[2,r]}})})});return c.open(),c.write($K(document.doctype)+"<html></html>"),GK(this.referenceElement.ownerDocument,i,a),c.replaceChild(c.adoptNode(this.documentElement),c.documentElement),c.close(),d},t.prototype.createElementClone=function(e){if(Yh(e,2))debugger;if(Yb(e))return this.createCanvasClone(e);if(zb(e))return this.createVideoClone(e);if(Xb(e))return this.createStyleClone(e);var A=e.cloneNode(!1);return lp(A)&&(lp(e)&&e.currentSrc&&e.currentSrc!==e.src&&(A.src=e.currentSrc,A.srcset=""),A.loading==="lazy"&&(A.loading="eager")),jb(A)?this.createCustomElementClone(A):A},t.prototype.createCustomElementClone=function(e){var A=document.createElement("html2canvascustomelement");return up(e.style,A),A},t.prototype.createStyleClone=function(e){try{var A=e.sheet;if(A&&A.cssRules){var n=[].slice.call(A.cssRules,0).reduce(function(i,a){return a&&typeof a.cssText=="string"?i+a.cssText:i},""),r=e.cloneNode(!1);return r.textContent=n,r}}catch(i){if(this.context.logger.error("Unable to access cssRules property",i),i.name!=="SecurityError")throw i}return e.cloneNode(!1)},t.prototype.createCanvasClone=function(e){var A;if(this.options.inlineImages&&e.ownerDocument){var n=e.ownerDocument.createElement("img");try{return n.src=e.toDataURL(),n}catch{this.context.logger.info("Unable to inline canvas contents, canvas is tainted",e)}}var r=e.cloneNode(!1);try{r.width=e.width,r.height=e.height;var i=e.getContext("2d"),a=r.getContext("2d");if(a)if(!this.options.allowTaint&&i)a.putImageData(i.getImageData(0,0,e.width,e.height),0,0);else{var s=(A=e.getContext("webgl2"))!==null&&A!==void 0?A:e.getContext("webgl");if(s){var c=s.getContextAttributes();(c==null?void 0:c.preserveDrawingBuffer)===!1&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",e)}a.drawImage(e,0,0)}return r}catch{this.context.logger.info("Unable to clone canvas as it is tainted",e)}return r},t.prototype.createVideoClone=function(e){var A=e.ownerDocument.createElement("canvas");A.width=e.offsetWidth,A.height=e.offsetHeight;var n=A.getContext("2d");try{return n&&(n.drawImage(e,0,0,A.width,A.height),this.options.allowTaint||n.getImageData(0,0,A.width,A.height)),A}catch{this.context.logger.info("Unable to clone video as it is tainted",e)}var r=e.ownerDocument.createElement("canvas");return r.width=e.offsetWidth,r.height=e.offsetHeight,r},t.prototype.appendChildNode=function(e,A,n){(!Eo(A)||!MK(A)&&!A.hasAttribute(iv)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(A)))&&(!this.options.copyStyles||!Eo(A)||!Xb(A))&&e.appendChild(this.cloneNode(A,n))},t.prototype.cloneChildNodes=function(e,A,n){for(var r=this,i=e.shadowRoot?e.shadowRoot.firstChild:e.firstChild;i;i=i.nextSibling)if(Eo(i)&&qb(i)&&typeof i.assignedNodes=="function"){var a=i.assignedNodes();a.length&&a.forEach(function(s){return r.appendChildNode(A,s,n)})}else this.appendChildNode(A,i,n)},t.prototype.cloneNode=function(e,A){if(Gb(e))return document.createTextNode(e.data);if(!e.ownerDocument)return e.cloneNode(!1);var n=e.ownerDocument.defaultView;if(n&&Eo(e)&&(op(e)||nu(e))){var r=this.createElementClone(e);r.style.transitionProperty="none";var i=n.getComputedStyle(e),a=n.getComputedStyle(e,":before"),s=n.getComputedStyle(e,":after");this.referenceElement===e&&op(r)&&(this.clonedReferenceElement=r),sp(r)&&JK(r);var c=this.counters.parse(new yb(this.context,i)),d=this.resolvePseudoContent(e,r,a,qs.BEFORE);jb(e)&&(A=!0),zb(e)||this.cloneChildNodes(e,r,A),d&&r.insertBefore(d,r.firstChild);var f=this.resolvePseudoContent(e,r,s,qs.AFTER);return f&&r.appendChild(f),this.counters.pop(c),(i&&(this.options.copyStyles||nu(e))&&!Jb(e)||A)&&up(i,r),(e.scrollTop!==0||e.scrollLeft!==0)&&this.scrolledElements.push([r,e.scrollLeft,e.scrollTop]),(ru(e)||iu(e))&&(ru(r)||iu(r))&&(r.value=e.value),r}return e.cloneNode(!1)},t.prototype.resolvePseudoContent=function(e,A,n,r){var i=this;if(n){var a=n.content,s=A.ownerDocument;if(!(!s||!a||a==="none"||a==="-moz-alt-content"||n.display==="none")){this.counters.parse(new yb(this.context,n));var c=new S4(this.context,n),d=s.createElement("html2canvaspseudoelement");up(n,d),c.content.forEach(function(h){if(h.type===0)d.appendChild(s.createTextNode(h.value));else if(h.type===22){var m=s.createElement("img");m.src=h.value,m.style.opacity="1",d.appendChild(m)}else if(h.type===18){if(h.name==="attr"){var g=h.values.filter(Tt);g.length&&d.appendChild(s.createTextNode(e.getAttribute(g[0].value)||""))}else if(h.name==="counter"){var B=h.values.filter(bo),y=B[0],v=B[1];if(y&&Tt(y)){var Q=i.counters.getCounterValue(y.value),k=v&&Tt(v)?Wh.parse(i.context,v.value):3;d.appendChild(s.createTextNode(Xs(Q,k,!1)))}}else if(h.name==="counters"){var F=h.values.filter(bo),y=F[0],C=F[1],v=F[2];if(y&&Tt(y)){var D=i.counters.getCounterValues(y.value),E=v&&Tt(v)?Wh.parse(i.context,v.value):3,x=C&&C.type===0?C.value:"",O=D.map(function(de){return Xs(de,E,!1)}).join(x);d.appendChild(s.createTextNode(O))}}}else if(h.type===20)switch(h.value){case"open-quote":d.appendChild(s.createTextNode(wb(c.quotes,i.quoteDepth++,!0)));break;case"close-quote":d.appendChild(s.createTextNode(wb(c.quotes,--i.quoteDepth,!1)));break;default:d.appendChild(s.createTextNode(h.value))}}),d.className=dp+" "+fp;var f=r===qs.BEFORE?" "+dp:" "+fp;return nu(A)?A.className.baseValue+=f:A.className+=f,d}}},t.destroy=function(e){return e.parentNode?(e.parentNode.removeChild(e),!0):!1},t}(),qs;(function(t){t[t.BEFORE=0]="BEFORE",t[t.AFTER=1]="AFTER"})(qs||(qs={}));var HK=function(t,e){var A=t.createElement("iframe");return A.className="html2canvas-container",A.style.visibility="hidden",A.style.position="fixed",A.style.left="-10000px",A.style.top="0px",A.style.border="0",A.width=e.width.toString(),A.height=e.height.toString(),A.scrolling="no",A.setAttribute(iv,"true"),t.body.appendChild(A),A},RK=function(t){return new Promise(function(e){if(t.complete){e();return}if(!t.src){e();return}t.onload=e,t.onerror=e})},PK=function(t){return Promise.all([].slice.call(t.images,0).map(RK))},VK=function(t){return new Promise(function(e,A){var n=t.contentWindow;if(!n)return A("No window assigned for iframe");var r=n.document;n.onload=t.onload=function(){n.onload=t.onload=null;var i=setInterval(function(){r.body.childNodes.length>0&&r.readyState==="complete"&&(clearInterval(i),e(t))},50)}})},KK=["all","d","content"],up=function(t,e){for(var A=t.length-1;A>=0;A--){var n=t.item(A);KK.indexOf(n)===-1&&e.style.setProperty(n,t.getPropertyValue(n))}return e},$K=function(t){var e="";return t&&(e+="<!DOCTYPE ",t.name&&(e+=t.name),t.internalSubset&&(e+=t.internalSubset),t.publicId&&(e+='"'+t.publicId+'"'),t.systemId&&(e+='"'+t.systemId+'"'),e+=">"),e},GK=function(t,e,A){t&&t.defaultView&&(e!==t.defaultView.pageXOffset||A!==t.defaultView.pageYOffset)&&t.defaultView.scrollTo(e,A)},WK=function(t){var e=t[0],A=t[1],n=t[2];e.scrollLeft=A,e.scrollTop=n},YK=":before",zK=":after",dp="___html2canvas___pseudoelement_before",fp="___html2canvas___pseudoelement_after",ov=`{
183
183
  content: "" !important;
184
184
  display: none !important;
185
- }`,sD=function(t){oD(t,"."+$f+rD+SC+`
186
- .`+Wf+iD+SC)},oD=function(t,e){var A=t.ownerDocument;if(A){var n=A.createElement("style");n.textContent=e,t.appendChild(n)}},TC=function(){function t(){}return t.getOrigin=function(e){var A=t._link;return A?(A.href=e,A.href=A.href,A.protocol+A.hostname+A.port):"about:blank"},t.isSameOrigin=function(e){return t.getOrigin(e)===t._origin},t.setContext=function(e){t._link=e.document.createElement("a"),t._origin=t.getOrigin(e.location.href)},t._origin="about:blank",t}(),aD=function(){function t(e,A){this.context=e,this._options=A,this._cache={}}return t.prototype.addImage=function(e){var A=Promise.resolve();return this.has(e)||(Xf(e)||fD(e))&&(this._cache[e]=this.loadImage(e)).catch(function(){}),A},t.prototype.match=function(e){return this._cache[e]},t.prototype.loadImage=function(e){return lt(this,void 0,void 0,function(){var A,n,r,i,s=this;return ZA(this,function(a){switch(a.label){case 0:return A=TC.isSameOrigin(e),n=!Jf(e)&&this._options.useCORS===!0&&PA.SUPPORT_CORS_IMAGES&&!A,r=!Jf(e)&&!A&&!Xf(e)&&typeof this._options.proxy=="string"&&PA.SUPPORT_CORS_XHR&&!n,!A&&this._options.allowTaint===!1&&!Jf(e)&&!Xf(e)&&!r&&!n?[2]:(i=e,r?[4,this.proxy(i)]:[3,2]);case 1:i=a.sent(),a.label=2;case 2:return this.context.logger.debug("Added image "+e.substring(0,256)),[4,new Promise(function(c,u){var f=new Image;f.onload=function(){return c(f)},f.onerror=u,(dD(i)||n)&&(f.crossOrigin="anonymous"),f.src=i,f.complete===!0&&setTimeout(function(){return c(f)},500),s._options.imageTimeout>0&&setTimeout(function(){return u("Timed out ("+s._options.imageTimeout+"ms) loading image")},s._options.imageTimeout)})];case 3:return[2,a.sent()]}})})},t.prototype.has=function(e){return typeof this._cache[e]<"u"},t.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},t.prototype.proxy=function(e){var A=this,n=this._options.proxy;if(!n)throw new Error("No proxy defined");var r=e.substring(0,256);return new Promise(function(i,s){var a=PA.SUPPORT_RESPONSE_TYPE?"blob":"text",c=new XMLHttpRequest;c.onload=function(){if(c.status===200)if(a==="text")i(c.response);else{var p=new FileReader;p.addEventListener("load",function(){return i(p.result)},!1),p.addEventListener("error",function(g){return s(g)},!1),p.readAsDataURL(c.response)}else s("Failed to proxy resource "+r+" with status code "+c.status)},c.onerror=s;var u=n.indexOf("?")>-1?"&":"?";if(c.open("GET",""+n+u+"url="+encodeURIComponent(e)+"&responseType="+a),a!=="text"&&c instanceof XMLHttpRequest&&(c.responseType=a),A._options.imageTimeout){var f=A._options.imageTimeout;c.timeout=f,c.ontimeout=function(){return s("Timed out ("+f+"ms) proxying "+r)}}c.send()})},t}(),lD=/^data:image\/svg\+xml/i,cD=/^data:image\/.*;base64,/i,uD=/^data:image\/.*/i,fD=function(t){return PA.SUPPORT_SVG_DRAWING||!hD(t)},Jf=function(t){return uD.test(t)},dD=function(t){return cD.test(t)},Xf=function(t){return t.substr(0,4)==="blob"},hD=function(t){return t.substr(-3).toLowerCase()==="svg"||lD.test(t)},Z=function(){function t(e,A){this.type=0,this.x=e,this.y=A}return t.prototype.add=function(e,A){return new t(this.x+e,this.y+A)},t}(),ns=function(t,e,A){return new Z(t.x+(e.x-t.x)*A,t.y+(e.y-t.y)*A)},yl=function(){function t(e,A,n,r){this.type=1,this.start=e,this.startControl=A,this.endControl=n,this.end=r}return t.prototype.subdivide=function(e,A){var n=ns(this.start,this.startControl,e),r=ns(this.startControl,this.endControl,e),i=ns(this.endControl,this.end,e),s=ns(n,r,e),a=ns(r,i,e),c=ns(s,a,e);return A?new t(this.start,n,s,c):new t(c,a,i,this.end)},t.prototype.add=function(e,A){return new t(this.start.add(e,A),this.startControl.add(e,A),this.endControl.add(e,A),this.end.add(e,A))},t.prototype.reverse=function(){return new t(this.end,this.endControl,this.startControl,this.start)},t}(),$t=function(t){return t.type===1},pD=function(){function t(e){var A=e.styles,n=e.bounds,r=lo(A.borderTopLeftRadius,n.width,n.height),i=r[0],s=r[1],a=lo(A.borderTopRightRadius,n.width,n.height),c=a[0],u=a[1],f=lo(A.borderBottomRightRadius,n.width,n.height),p=f[0],g=f[1],B=lo(A.borderBottomLeftRadius,n.width,n.height),w=B[0],Q=B[1],b=[];b.push((i+c)/n.width),b.push((w+p)/n.width),b.push((s+Q)/n.height),b.push((u+g)/n.height);var v=Math.max.apply(Math,b);v>1&&(i/=v,s/=v,c/=v,u/=v,p/=v,g/=v,w/=v,Q/=v);var _=n.width-c,S=n.height-g,E=n.width-p,L=n.height-Q,U=A.borderTopWidth,N=A.borderRightWidth,V=A.borderBottomWidth,D=A.borderLeftWidth,se=oA(A.paddingTop,e.bounds.width),Be=oA(A.paddingRight,e.bounds.width),ne=oA(A.paddingBottom,e.bounds.width),ce=oA(A.paddingLeft,e.bounds.width);this.topLeftBorderDoubleOuterBox=i>0||s>0?fA(n.left+D/3,n.top+U/3,i-D/3,s-U/3,Xe.TOP_LEFT):new Z(n.left+D/3,n.top+U/3),this.topRightBorderDoubleOuterBox=i>0||s>0?fA(n.left+_,n.top+U/3,c-N/3,u-U/3,Xe.TOP_RIGHT):new Z(n.left+n.width-N/3,n.top+U/3),this.bottomRightBorderDoubleOuterBox=p>0||g>0?fA(n.left+E,n.top+S,p-N/3,g-V/3,Xe.BOTTOM_RIGHT):new Z(n.left+n.width-N/3,n.top+n.height-V/3),this.bottomLeftBorderDoubleOuterBox=w>0||Q>0?fA(n.left+D/3,n.top+L,w-D/3,Q-V/3,Xe.BOTTOM_LEFT):new Z(n.left+D/3,n.top+n.height-V/3),this.topLeftBorderDoubleInnerBox=i>0||s>0?fA(n.left+D*2/3,n.top+U*2/3,i-D*2/3,s-U*2/3,Xe.TOP_LEFT):new Z(n.left+D*2/3,n.top+U*2/3),this.topRightBorderDoubleInnerBox=i>0||s>0?fA(n.left+_,n.top+U*2/3,c-N*2/3,u-U*2/3,Xe.TOP_RIGHT):new Z(n.left+n.width-N*2/3,n.top+U*2/3),this.bottomRightBorderDoubleInnerBox=p>0||g>0?fA(n.left+E,n.top+S,p-N*2/3,g-V*2/3,Xe.BOTTOM_RIGHT):new Z(n.left+n.width-N*2/3,n.top+n.height-V*2/3),this.bottomLeftBorderDoubleInnerBox=w>0||Q>0?fA(n.left+D*2/3,n.top+L,w-D*2/3,Q-V*2/3,Xe.BOTTOM_LEFT):new Z(n.left+D*2/3,n.top+n.height-V*2/3),this.topLeftBorderStroke=i>0||s>0?fA(n.left+D/2,n.top+U/2,i-D/2,s-U/2,Xe.TOP_LEFT):new Z(n.left+D/2,n.top+U/2),this.topRightBorderStroke=i>0||s>0?fA(n.left+_,n.top+U/2,c-N/2,u-U/2,Xe.TOP_RIGHT):new Z(n.left+n.width-N/2,n.top+U/2),this.bottomRightBorderStroke=p>0||g>0?fA(n.left+E,n.top+S,p-N/2,g-V/2,Xe.BOTTOM_RIGHT):new Z(n.left+n.width-N/2,n.top+n.height-V/2),this.bottomLeftBorderStroke=w>0||Q>0?fA(n.left+D/2,n.top+L,w-D/2,Q-V/2,Xe.BOTTOM_LEFT):new Z(n.left+D/2,n.top+n.height-V/2),this.topLeftBorderBox=i>0||s>0?fA(n.left,n.top,i,s,Xe.TOP_LEFT):new Z(n.left,n.top),this.topRightBorderBox=c>0||u>0?fA(n.left+_,n.top,c,u,Xe.TOP_RIGHT):new Z(n.left+n.width,n.top),this.bottomRightBorderBox=p>0||g>0?fA(n.left+E,n.top+S,p,g,Xe.BOTTOM_RIGHT):new Z(n.left+n.width,n.top+n.height),this.bottomLeftBorderBox=w>0||Q>0?fA(n.left,n.top+L,w,Q,Xe.BOTTOM_LEFT):new Z(n.left,n.top+n.height),this.topLeftPaddingBox=i>0||s>0?fA(n.left+D,n.top+U,Math.max(0,i-D),Math.max(0,s-U),Xe.TOP_LEFT):new Z(n.left+D,n.top+U),this.topRightPaddingBox=c>0||u>0?fA(n.left+Math.min(_,n.width-N),n.top+U,_>n.width+N?0:Math.max(0,c-N),Math.max(0,u-U),Xe.TOP_RIGHT):new Z(n.left+n.width-N,n.top+U),this.bottomRightPaddingBox=p>0||g>0?fA(n.left+Math.min(E,n.width-D),n.top+Math.min(S,n.height-V),Math.max(0,p-N),Math.max(0,g-V),Xe.BOTTOM_RIGHT):new Z(n.left+n.width-N,n.top+n.height-V),this.bottomLeftPaddingBox=w>0||Q>0?fA(n.left+D,n.top+Math.min(L,n.height-V),Math.max(0,w-D),Math.max(0,Q-V),Xe.BOTTOM_LEFT):new Z(n.left+D,n.top+n.height-V),this.topLeftContentBox=i>0||s>0?fA(n.left+D+ce,n.top+U+se,Math.max(0,i-(D+ce)),Math.max(0,s-(U+se)),Xe.TOP_LEFT):new Z(n.left+D+ce,n.top+U+se),this.topRightContentBox=c>0||u>0?fA(n.left+Math.min(_,n.width+D+ce),n.top+U+se,_>n.width+D+ce?0:c-D+ce,u-(U+se),Xe.TOP_RIGHT):new Z(n.left+n.width-(N+Be),n.top+U+se),this.bottomRightContentBox=p>0||g>0?fA(n.left+Math.min(E,n.width-(D+ce)),n.top+Math.min(S,n.height+U+se),Math.max(0,p-(N+Be)),g-(V+ne),Xe.BOTTOM_RIGHT):new Z(n.left+n.width-(N+Be),n.top+n.height-(V+ne)),this.bottomLeftContentBox=w>0||Q>0?fA(n.left+D+ce,n.top+L,Math.max(0,w-(D+ce)),Q-(V+ne),Xe.BOTTOM_LEFT):new Z(n.left+D+ce,n.top+n.height-(V+ne))}return t}(),Xe;(function(t){t[t.TOP_LEFT=0]="TOP_LEFT",t[t.TOP_RIGHT=1]="TOP_RIGHT",t[t.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",t[t.BOTTOM_LEFT=3]="BOTTOM_LEFT"})(Xe||(Xe={}));var fA=function(t,e,A,n,r){var i=4*((Math.sqrt(2)-1)/3),s=A*i,a=n*i,c=t+A,u=e+n;switch(r){case Xe.TOP_LEFT:return new yl(new Z(t,u),new Z(t,u-a),new Z(c-s,e),new Z(c,e));case Xe.TOP_RIGHT:return new yl(new Z(t,e),new Z(t+s,e),new Z(c,u-a),new Z(c,u));case Xe.BOTTOM_RIGHT:return new yl(new Z(c,e),new Z(c,e+a),new Z(t+s,u),new Z(t,u));case Xe.BOTTOM_LEFT:default:return new yl(new Z(c,u),new Z(c-s,u),new Z(t,e+a),new Z(t,e))}},El=function(t){return[t.topLeftBorderBox,t.topRightBorderBox,t.bottomRightBorderBox,t.bottomLeftBorderBox]},gD=function(t){return[t.topLeftContentBox,t.topRightContentBox,t.bottomRightContentBox,t.bottomLeftContentBox]},Ql=function(t){return[t.topLeftPaddingBox,t.topRightPaddingBox,t.bottomRightPaddingBox,t.bottomLeftPaddingBox]},mD=function(){function t(e,A,n){this.offsetX=e,this.offsetY=A,this.matrix=n,this.type=0,this.target=6}return t}(),Fl=function(){function t(e,A){this.path=e,this.target=A,this.type=1}return t}(),BD=function(){function t(e){this.opacity=e,this.type=2,this.target=6}return t}(),wD=function(t){return t.type===0},_C=function(t){return t.type===1},CD=function(t){return t.type===2},xC=function(t,e){return t.length===e.length?t.some(function(A,n){return A===e[n]}):!1},yD=function(t,e,A,n,r){return t.map(function(i,s){switch(s){case 0:return i.add(e,A);case 1:return i.add(e+n,A);case 2:return i.add(e+n,A+r);case 3:return i.add(e,A+r)}return i})},OC=function(){function t(e){this.element=e,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return t}(),LC=function(){function t(e,A){if(this.container=e,this.parent=A,this.effects=[],this.curves=new pD(this.container),this.container.styles.opacity<1&&this.effects.push(new BD(this.container.styles.opacity)),this.container.styles.transform!==null){var n=this.container.bounds.left+this.container.styles.transformOrigin[0].number,r=this.container.bounds.top+this.container.styles.transformOrigin[1].number,i=this.container.styles.transform;this.effects.push(new mD(n,r,i))}if(this.container.styles.overflowX!==0){var s=El(this.curves),a=Ql(this.curves);xC(s,a)?this.effects.push(new Fl(s,6)):(this.effects.push(new Fl(s,2)),this.effects.push(new Fl(a,4)))}}return t.prototype.getEffects=function(e){for(var A=[2,3].indexOf(this.container.styles.position)===-1,n=this.parent,r=this.effects.slice(0);n;){var i=n.effects.filter(function(c){return!_C(c)});if(A||n.container.styles.position!==0||!n.parent){if(r.unshift.apply(r,i),A=[2,3].indexOf(n.container.styles.position)===-1,n.container.styles.overflowX!==0){var s=El(n.curves),a=Ql(n.curves);xC(s,a)||r.unshift(new Fl(a,6))}}else r.unshift.apply(r,i);n=n.parent}return r.filter(function(c){return SA(c.target,e)})},t}(),Yf=function(t,e,A,n){t.container.elements.forEach(function(r){var i=SA(r.flags,4),s=SA(r.flags,2),a=new LC(r,t);SA(r.styles.display,2048)&&n.push(a);var c=SA(r.flags,8)?[]:n;if(i||s){var u=i||r.styles.isPositioned()?A:e,f=new OC(a);if(r.styles.isPositioned()||r.styles.opacity<1||r.styles.isTransformed()){var p=r.styles.zIndex.order;if(p<0){var g=0;u.negativeZIndex.some(function(w,Q){return p>w.element.container.styles.zIndex.order?(g=Q,!1):g>0}),u.negativeZIndex.splice(g,0,f)}else if(p>0){var B=0;u.positiveZIndex.some(function(w,Q){return p>=w.element.container.styles.zIndex.order?(B=Q+1,!1):B>0}),u.positiveZIndex.splice(B,0,f)}else u.zeroOrAutoZIndexOrTransformedOrOpacity.push(f)}else r.styles.isFloating()?u.nonPositionedFloats.push(f):u.nonPositionedInlineLevel.push(f);Yf(a,f,i?f:A,c)}else r.styles.isInlineLevel()?e.inlineLevel.push(a):e.nonInlineLevel.push(a),Yf(a,e,A,c);SA(r.flags,8)&&kC(r,c)})},kC=function(t,e){for(var A=t instanceof Df?t.start:1,n=t instanceof Df?t.reversed:!1,r=0;r<e.length;r++){var i=e[r];i.container instanceof sC&&typeof i.container.value=="number"&&i.container.value!==0&&(A=i.container.value),i.listValue=go(A,i.container.styles.listStyleType,!0),A+=n?-1:1}},ED=function(t){var e=new LC(t,null),A=new OC(e),n=[];return Yf(e,A,A,n),kC(e.container,n),A},HC=function(t,e){switch(e){case 0:return Wt(t.topLeftBorderBox,t.topLeftPaddingBox,t.topRightBorderBox,t.topRightPaddingBox);case 1:return Wt(t.topRightBorderBox,t.topRightPaddingBox,t.bottomRightBorderBox,t.bottomRightPaddingBox);case 2:return Wt(t.bottomRightBorderBox,t.bottomRightPaddingBox,t.bottomLeftBorderBox,t.bottomLeftPaddingBox);case 3:default:return Wt(t.bottomLeftBorderBox,t.bottomLeftPaddingBox,t.topLeftBorderBox,t.topLeftPaddingBox)}},QD=function(t,e){switch(e){case 0:return Wt(t.topLeftBorderBox,t.topLeftBorderDoubleOuterBox,t.topRightBorderBox,t.topRightBorderDoubleOuterBox);case 1:return Wt(t.topRightBorderBox,t.topRightBorderDoubleOuterBox,t.bottomRightBorderBox,t.bottomRightBorderDoubleOuterBox);case 2:return Wt(t.bottomRightBorderBox,t.bottomRightBorderDoubleOuterBox,t.bottomLeftBorderBox,t.bottomLeftBorderDoubleOuterBox);case 3:default:return Wt(t.bottomLeftBorderBox,t.bottomLeftBorderDoubleOuterBox,t.topLeftBorderBox,t.topLeftBorderDoubleOuterBox)}},FD=function(t,e){switch(e){case 0:return Wt(t.topLeftBorderDoubleInnerBox,t.topLeftPaddingBox,t.topRightBorderDoubleInnerBox,t.topRightPaddingBox);case 1:return Wt(t.topRightBorderDoubleInnerBox,t.topRightPaddingBox,t.bottomRightBorderDoubleInnerBox,t.bottomRightPaddingBox);case 2:return Wt(t.bottomRightBorderDoubleInnerBox,t.bottomRightPaddingBox,t.bottomLeftBorderDoubleInnerBox,t.bottomLeftPaddingBox);case 3:default:return Wt(t.bottomLeftBorderDoubleInnerBox,t.bottomLeftPaddingBox,t.topLeftBorderDoubleInnerBox,t.topLeftPaddingBox)}},bD=function(t,e){switch(e){case 0:return bl(t.topLeftBorderStroke,t.topRightBorderStroke);case 1:return bl(t.topRightBorderStroke,t.bottomRightBorderStroke);case 2:return bl(t.bottomRightBorderStroke,t.bottomLeftBorderStroke);case 3:default:return bl(t.bottomLeftBorderStroke,t.topLeftBorderStroke)}},bl=function(t,e){var A=[];return $t(t)?A.push(t.subdivide(.5,!1)):A.push(t),$t(e)?A.push(e.subdivide(.5,!0)):A.push(e),A},Wt=function(t,e,A,n){var r=[];return $t(t)?r.push(t.subdivide(.5,!1)):r.push(t),$t(A)?r.push(A.subdivide(.5,!0)):r.push(A),$t(n)?r.push(n.subdivide(.5,!0).reverse()):r.push(n),$t(e)?r.push(e.subdivide(.5,!1).reverse()):r.push(e),r},NC=function(t){var e=t.bounds,A=t.styles;return e.add(A.borderLeftWidth,A.borderTopWidth,-(A.borderRightWidth+A.borderLeftWidth),-(A.borderTopWidth+A.borderBottomWidth))},Ul=function(t){var e=t.styles,A=t.bounds,n=oA(e.paddingLeft,A.width),r=oA(e.paddingRight,A.width),i=oA(e.paddingTop,A.width),s=oA(e.paddingBottom,A.width);return A.add(n+e.borderLeftWidth,i+e.borderTopWidth,-(e.borderRightWidth+e.borderLeftWidth+n+r),-(e.borderTopWidth+e.borderBottomWidth+i+s))},UD=function(t,e){return t===0?e.bounds:t===2?Ul(e):NC(e)},vD=function(t,e){return t===0?e.bounds:t===2?Ul(e):NC(e)},zf=function(t,e,A){var n=UD(is(t.styles.backgroundOrigin,e),t),r=vD(is(t.styles.backgroundClip,e),t),i=ID(is(t.styles.backgroundSize,e),A,n),s=i[0],a=i[1],c=lo(is(t.styles.backgroundPosition,e),n.width-s,n.height-a),u=SD(is(t.styles.backgroundRepeat,e),c,i,n,r),f=Math.round(n.left+c[0]),p=Math.round(n.top+c[1]);return[u,f,p,s,a]},rs=function(t){return eA(t)&&t.value===ji.AUTO},vl=function(t){return typeof t=="number"},ID=function(t,e,A){var n=e[0],r=e[1],i=e[2],s=t[0],a=t[1];if(!s)return[0,0];if(UA(s)&&a&&UA(a))return[oA(s,A.width),oA(a,A.height)];var c=vl(i);if(eA(s)&&(s.value===ji.CONTAIN||s.value===ji.COVER)){if(vl(i)){var u=A.width/A.height;return u<i!=(s.value===ji.COVER)?[A.width,A.width/i]:[A.height*i,A.height]}return[A.width,A.height]}var f=vl(n),p=vl(r),g=f||p;if(rs(s)&&(!a||rs(a))){if(f&&p)return[n,r];if(!c&&!g)return[A.width,A.height];if(g&&c){var B=f?n:r*i,w=p?r:n/i;return[B,w]}var Q=f?n:A.width,b=p?r:A.height;return[Q,b]}if(c){var v=0,_=0;return UA(s)?v=oA(s,A.width):UA(a)&&(_=oA(a,A.height)),rs(s)?v=_*i:(!a||rs(a))&&(_=v/i),[v,_]}var S=null,E=null;if(UA(s)?S=oA(s,A.width):a&&UA(a)&&(E=oA(a,A.height)),S!==null&&(!a||rs(a))&&(E=f&&p?S/n*r:A.height),E!==null&&rs(s)&&(S=f&&p?E/r*n:A.width),S!==null&&E!==null)return[S,E];throw new Error("Unable to calculate background-size for element")},is=function(t,e){var A=t[e];return typeof A>"u"?t[0]:A},SD=function(t,e,A,n,r){var i=e[0],s=e[1],a=A[0],c=A[1];switch(t){case 2:return[new Z(Math.round(n.left),Math.round(n.top+s)),new Z(Math.round(n.left+n.width),Math.round(n.top+s)),new Z(Math.round(n.left+n.width),Math.round(c+n.top+s)),new Z(Math.round(n.left),Math.round(c+n.top+s))];case 3:return[new Z(Math.round(n.left+i),Math.round(n.top)),new Z(Math.round(n.left+i+a),Math.round(n.top)),new Z(Math.round(n.left+i+a),Math.round(n.height+n.top)),new Z(Math.round(n.left+i),Math.round(n.height+n.top))];case 1:return[new Z(Math.round(n.left+i),Math.round(n.top+s)),new Z(Math.round(n.left+i+a),Math.round(n.top+s)),new Z(Math.round(n.left+i+a),Math.round(n.top+s+c)),new Z(Math.round(n.left+i),Math.round(n.top+s+c))];default:return[new Z(Math.round(r.left),Math.round(r.top)),new Z(Math.round(r.left+r.width),Math.round(r.top)),new Z(Math.round(r.left+r.width),Math.round(r.height+r.top)),new Z(Math.round(r.left),Math.round(r.height+r.top))]}},TD="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",DC="Hidden Text",_D=function(){function t(e){this._data={},this._document=e}return t.prototype.parseMetrics=function(e,A){var n=this._document.createElement("div"),r=this._document.createElement("img"),i=this._document.createElement("span"),s=this._document.body;n.style.visibility="hidden",n.style.fontFamily=e,n.style.fontSize=A,n.style.margin="0",n.style.padding="0",n.style.whiteSpace="nowrap",s.appendChild(n),r.src=TD,r.width=1,r.height=1,r.style.margin="0",r.style.padding="0",r.style.verticalAlign="baseline",i.style.fontFamily=e,i.style.fontSize=A,i.style.margin="0",i.style.padding="0",i.appendChild(this._document.createTextNode(DC)),n.appendChild(i),n.appendChild(r);var a=r.offsetTop-i.offsetTop+2;n.removeChild(i),n.appendChild(this._document.createTextNode(DC)),n.style.lineHeight="normal",r.style.verticalAlign="super";var c=r.offsetTop-n.offsetTop+2;return s.removeChild(n),{baseline:a,middle:c}},t.prototype.getMetrics=function(e,A){var n=e+" "+A;return typeof this._data[n]>"u"&&(this._data[n]=this.parseMetrics(e,A)),this._data[n]},t}(),MC=function(){function t(e,A){this.context=e,this.options=A}return t}(),xD=1e4,OD=function(t){ln(e,t);function e(A,n){var r=t.call(this,A,n)||this;return r._activeEffects=[],r.canvas=n.canvas?n.canvas:document.createElement("canvas"),r.ctx=r.canvas.getContext("2d"),n.canvas||(r.canvas.width=Math.floor(n.width*n.scale),r.canvas.height=Math.floor(n.height*n.scale),r.canvas.style.width=n.width+"px",r.canvas.style.height=n.height+"px"),r.fontMetrics=new _D(document),r.ctx.scale(r.options.scale,r.options.scale),r.ctx.translate(-n.x,-n.y),r.ctx.textBaseline="bottom",r._activeEffects=[],r.context.logger.debug("Canvas renderer initialized ("+n.width+"x"+n.height+") with scale "+n.scale),r}return e.prototype.applyEffects=function(A){for(var n=this;this._activeEffects.length;)this.popEffect();A.forEach(function(r){return n.applyEffect(r)})},e.prototype.applyEffect=function(A){this.ctx.save(),CD(A)&&(this.ctx.globalAlpha=A.opacity),wD(A)&&(this.ctx.translate(A.offsetX,A.offsetY),this.ctx.transform(A.matrix[0],A.matrix[1],A.matrix[2],A.matrix[3],A.matrix[4],A.matrix[5]),this.ctx.translate(-A.offsetX,-A.offsetY)),_C(A)&&(this.path(A.path),this.ctx.clip()),this._activeEffects.push(A)},e.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},e.prototype.renderStack=function(A){return lt(this,void 0,void 0,function(){var n;return ZA(this,function(r){switch(r.label){case 0:return n=A.element.container.styles,n.isVisible()?[4,this.renderStackContent(A)]:[3,2];case 1:r.sent(),r.label=2;case 2:return[2]}})})},e.prototype.renderNode=function(A){return lt(this,void 0,void 0,function(){return ZA(this,function(n){switch(n.label){case 0:if(SA(A.container.flags,16))debugger;return A.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(A)]:[3,3];case 1:return n.sent(),[4,this.renderNodeContent(A)];case 2:n.sent(),n.label=3;case 3:return[2]}})})},e.prototype.renderTextWithLetterSpacing=function(A,n,r){var i=this;if(n===0)this.ctx.fillText(A.text,A.bounds.left,A.bounds.top+r);else{var s=Nf(A.text);s.reduce(function(a,c){return i.ctx.fillText(c,a,A.bounds.top+r),a+i.ctx.measureText(c).width},A.bounds.left)}},e.prototype.createFontStyle=function(A){var n=A.fontVariant.filter(function(s){return s==="normal"||s==="small-caps"}).join(""),r=DD(A.fontFamily).join(", "),i=ao(A.fontSize)?""+A.fontSize.number+A.fontSize.unit:A.fontSize.number+"px";return[[A.fontStyle,n,A.fontWeight,i,r].join(" "),r,i]},e.prototype.renderTextNode=function(A,n){return lt(this,void 0,void 0,function(){var r,i,s,a,c,u,f,p,g=this;return ZA(this,function(B){return r=this.createFontStyle(n),i=r[0],s=r[1],a=r[2],this.ctx.font=i,this.ctx.direction=n.direction===1?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",c=this.fontMetrics.getMetrics(s,a),u=c.baseline,f=c.middle,p=n.paintOrder,A.textBounds.forEach(function(w){p.forEach(function(Q){switch(Q){case 0:g.ctx.fillStyle=NA(n.color),g.renderTextWithLetterSpacing(w,n.letterSpacing,u);var b=n.textShadow;b.length&&w.text.trim().length&&(b.slice(0).reverse().forEach(function(v){g.ctx.shadowColor=NA(v.color),g.ctx.shadowOffsetX=v.offsetX.number*g.options.scale,g.ctx.shadowOffsetY=v.offsetY.number*g.options.scale,g.ctx.shadowBlur=v.blur.number,g.renderTextWithLetterSpacing(w,n.letterSpacing,u)}),g.ctx.shadowColor="",g.ctx.shadowOffsetX=0,g.ctx.shadowOffsetY=0,g.ctx.shadowBlur=0),n.textDecorationLine.length&&(g.ctx.fillStyle=NA(n.textDecorationColor||n.color),n.textDecorationLine.forEach(function(v){switch(v){case 1:g.ctx.fillRect(w.bounds.left,Math.round(w.bounds.top+u),w.bounds.width,1);break;case 2:g.ctx.fillRect(w.bounds.left,Math.round(w.bounds.top),w.bounds.width,1);break;case 3:g.ctx.fillRect(w.bounds.left,Math.ceil(w.bounds.top+f),w.bounds.width,1);break}}));break;case 1:n.webkitTextStrokeWidth&&w.text.trim().length&&(g.ctx.strokeStyle=NA(n.webkitTextStrokeColor),g.ctx.lineWidth=n.webkitTextStrokeWidth,g.ctx.lineJoin=window.chrome?"miter":"round",g.ctx.strokeText(w.text,w.bounds.left,w.bounds.top+u)),g.ctx.strokeStyle="",g.ctx.lineWidth=0,g.ctx.lineJoin="miter";break}})}),[2]})})},e.prototype.renderReplacedElement=function(A,n,r){if(r&&A.intrinsicWidth>0&&A.intrinsicHeight>0){var i=Ul(A),s=Ql(n);this.path(s),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(r,0,0,A.intrinsicWidth,A.intrinsicHeight,i.left,i.top,i.width,i.height),this.ctx.restore()}},e.prototype.renderNodeContent=function(A){return lt(this,void 0,void 0,function(){var n,r,i,s,a,c,_,_,u,f,p,g,E,B,w,L,Q,b,v,_,S,E,L;return ZA(this,function(U){switch(U.label){case 0:this.applyEffects(A.getEffects(4)),n=A.container,r=A.curves,i=n.styles,s=0,a=n.textNodes,U.label=1;case 1:return s<a.length?(c=a[s],[4,this.renderTextNode(c,i)]):[3,4];case 2:U.sent(),U.label=3;case 3:return s++,[3,1];case 4:if(!(n instanceof nC))return[3,8];U.label=5;case 5:return U.trys.push([5,7,,8]),[4,this.context.cache.match(n.src)];case 6:return _=U.sent(),this.renderReplacedElement(n,r,_),[3,8];case 7:return U.sent(),this.context.logger.error("Error loading image "+n.src),[3,8];case 8:if(n instanceof rC&&this.renderReplacedElement(n,r,n.canvas),!(n instanceof iC))return[3,12];U.label=9;case 9:return U.trys.push([9,11,,12]),[4,this.context.cache.match(n.svg)];case 10:return _=U.sent(),this.renderReplacedElement(n,r,_),[3,12];case 11:return U.sent(),this.context.logger.error("Error loading svg "+n.svg.substring(0,255)),[3,12];case 12:return n instanceof cC&&n.tree?(u=new e(this.context,{scale:this.options.scale,backgroundColor:n.backgroundColor,x:0,y:0,width:n.width,height:n.height}),[4,u.render(n.tree)]):[3,14];case 13:f=U.sent(),n.width&&n.height&&this.ctx.drawImage(f,0,0,n.width,n.height,n.bounds.left,n.bounds.top,n.bounds.width,n.bounds.height),U.label=14;case 14:if(n instanceof Mf&&(p=Math.min(n.bounds.width,n.bounds.height),n.type===pl?n.checked&&(this.ctx.save(),this.path([new Z(n.bounds.left+p*.39363,n.bounds.top+p*.79),new Z(n.bounds.left+p*.16,n.bounds.top+p*.5549),new Z(n.bounds.left+p*.27347,n.bounds.top+p*.44071),new Z(n.bounds.left+p*.39694,n.bounds.top+p*.5649),new Z(n.bounds.left+p*.72983,n.bounds.top+p*.23),new Z(n.bounds.left+p*.84,n.bounds.top+p*.34085),new Z(n.bounds.left+p*.39363,n.bounds.top+p*.79)]),this.ctx.fillStyle=NA(oC),this.ctx.fill(),this.ctx.restore()):n.type===gl&&n.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(n.bounds.left+p/2,n.bounds.top+p/2,p/4,0,Math.PI*2,!0),this.ctx.fillStyle=NA(oC),this.ctx.fill(),this.ctx.restore())),LD(n)&&n.value.length){switch(g=this.createFontStyle(i),E=g[0],B=g[1],w=this.fontMetrics.getMetrics(E,B).baseline,this.ctx.font=E,this.ctx.fillStyle=NA(i.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=HD(n.styles.textAlign),L=Ul(n),Q=0,n.styles.textAlign){case 1:Q+=L.width/2;break;case 2:Q+=L.width;break}b=L.add(Q,0,0,-L.height/2+1),this.ctx.save(),this.path([new Z(L.left,L.top),new Z(L.left+L.width,L.top),new Z(L.left+L.width,L.top+L.height),new Z(L.left,L.top+L.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new ho(n.value,b),i.letterSpacing,w),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!SA(n.styles.display,2048))return[3,20];if(n.styles.listStyleImage===null)return[3,19];if(v=n.styles.listStyleImage,v.type!==0)return[3,18];_=void 0,S=v.url,U.label=15;case 15:return U.trys.push([15,17,,18]),[4,this.context.cache.match(S)];case 16:return _=U.sent(),this.ctx.drawImage(_,n.bounds.left-(_.width+10),n.bounds.top),[3,18];case 17:return U.sent(),this.context.logger.error("Error loading list-style-image "+S),[3,18];case 18:return[3,20];case 19:A.listValue&&n.styles.listStyleType!==-1&&(E=this.createFontStyle(i)[0],this.ctx.font=E,this.ctx.fillStyle=NA(i.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",L=new $n(n.bounds.left,n.bounds.top+oA(n.styles.paddingTop,n.bounds.width),n.bounds.width,Dw(i.lineHeight,i.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new ho(A.listValue,L),i.letterSpacing,Dw(i.lineHeight,i.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),U.label=20;case 20:return[2]}})})},e.prototype.renderStackContent=function(A){return lt(this,void 0,void 0,function(){var n,r,v,i,s,v,a,c,v,u,f,v,p,g,v,B,w,v,Q,b,v;return ZA(this,function(_){switch(_.label){case 0:if(SA(A.element.container.flags,16))debugger;return[4,this.renderNodeBackgroundAndBorders(A.element)];case 1:_.sent(),n=0,r=A.negativeZIndex,_.label=2;case 2:return n<r.length?(v=r[n],[4,this.renderStack(v)]):[3,5];case 3:_.sent(),_.label=4;case 4:return n++,[3,2];case 5:return[4,this.renderNodeContent(A.element)];case 6:_.sent(),i=0,s=A.nonInlineLevel,_.label=7;case 7:return i<s.length?(v=s[i],[4,this.renderNode(v)]):[3,10];case 8:_.sent(),_.label=9;case 9:return i++,[3,7];case 10:a=0,c=A.nonPositionedFloats,_.label=11;case 11:return a<c.length?(v=c[a],[4,this.renderStack(v)]):[3,14];case 12:_.sent(),_.label=13;case 13:return a++,[3,11];case 14:u=0,f=A.nonPositionedInlineLevel,_.label=15;case 15:return u<f.length?(v=f[u],[4,this.renderStack(v)]):[3,18];case 16:_.sent(),_.label=17;case 17:return u++,[3,15];case 18:p=0,g=A.inlineLevel,_.label=19;case 19:return p<g.length?(v=g[p],[4,this.renderNode(v)]):[3,22];case 20:_.sent(),_.label=21;case 21:return p++,[3,19];case 22:B=0,w=A.zeroOrAutoZIndexOrTransformedOrOpacity,_.label=23;case 23:return B<w.length?(v=w[B],[4,this.renderStack(v)]):[3,26];case 24:_.sent(),_.label=25;case 25:return B++,[3,23];case 26:Q=0,b=A.positiveZIndex,_.label=27;case 27:return Q<b.length?(v=b[Q],[4,this.renderStack(v)]):[3,30];case 28:_.sent(),_.label=29;case 29:return Q++,[3,27];case 30:return[2]}})})},e.prototype.mask=function(A){this.ctx.beginPath(),this.ctx.moveTo(0,0),this.ctx.lineTo(this.canvas.width,0),this.ctx.lineTo(this.canvas.width,this.canvas.height),this.ctx.lineTo(0,this.canvas.height),this.ctx.lineTo(0,0),this.formatPath(A.slice(0).reverse()),this.ctx.closePath()},e.prototype.path=function(A){this.ctx.beginPath(),this.formatPath(A),this.ctx.closePath()},e.prototype.formatPath=function(A){var n=this;A.forEach(function(r,i){var s=$t(r)?r.start:r;i===0?n.ctx.moveTo(s.x,s.y):n.ctx.lineTo(s.x,s.y),$t(r)&&n.ctx.bezierCurveTo(r.startControl.x,r.startControl.y,r.endControl.x,r.endControl.y,r.end.x,r.end.y)})},e.prototype.renderRepeat=function(A,n,r,i){this.path(A),this.ctx.fillStyle=n,this.ctx.translate(r,i),this.ctx.fill(),this.ctx.translate(-r,-i)},e.prototype.resizeImage=function(A,n,r){var i;if(A.width===n&&A.height===r)return A;var s=(i=this.canvas.ownerDocument)!==null&&i!==void 0?i:document,a=s.createElement("canvas");a.width=Math.max(1,n),a.height=Math.max(1,r);var c=a.getContext("2d");return c.drawImage(A,0,0,A.width,A.height,0,0,n,r),a},e.prototype.renderBackgroundImage=function(A){return lt(this,void 0,void 0,function(){var n,r,i,s,a,c;return ZA(this,function(u){switch(u.label){case 0:n=A.styles.backgroundImage.length-1,r=function(f){var p,g,B,se,Re,ke,ce,Le,V,w,se,Re,ke,ce,Le,Q,b,v,_,S,E,L,U,N,V,D,se,Be,ne,ce,Le,aA,Re,ke,re,me,Ye,He,Ge,Ke,AA,tA;return ZA(this,function(qe){switch(qe.label){case 0:if(f.type!==0)return[3,5];p=void 0,g=f.url,qe.label=1;case 1:return qe.trys.push([1,3,,4]),[4,i.context.cache.match(g)];case 2:return p=qe.sent(),[3,4];case 3:return qe.sent(),i.context.logger.error("Error loading background-image "+g),[3,4];case 4:return p&&(B=zf(A,n,[p.width,p.height,p.width/p.height]),se=B[0],Re=B[1],ke=B[2],ce=B[3],Le=B[4],V=i.ctx.createPattern(i.resizeImage(p,ce,Le),"repeat"),i.renderRepeat(se,V,Re,ke)),[3,6];case 5:wk(f)?(w=zf(A,n,[null,null,null]),se=w[0],Re=w[1],ke=w[2],ce=w[3],Le=w[4],Q=hk(f.angle,ce,Le),b=Q[0],v=Q[1],_=Q[2],S=Q[3],E=Q[4],L=document.createElement("canvas"),L.width=ce,L.height=Le,U=L.getContext("2d"),N=U.createLinearGradient(v,S,_,E),vw(f.stops,b).forEach(function(pA){return N.addColorStop(pA.stop,NA(pA.color))}),U.fillStyle=N,U.fillRect(0,0,ce,Le),ce>0&&Le>0&&(V=i.ctx.createPattern(L,"repeat"),i.renderRepeat(se,V,Re,ke))):Ck(f)&&(D=zf(A,n,[null,null,null]),se=D[0],Be=D[1],ne=D[2],ce=D[3],Le=D[4],aA=f.position.length===0?[Ef]:f.position,Re=oA(aA[0],ce),ke=oA(aA[aA.length-1],Le),re=pk(f,Re,ke,ce,Le),me=re[0],Ye=re[1],me>0&&Ye>0&&(He=i.ctx.createRadialGradient(Be+Re,ne+ke,0,Be+Re,ne+ke,me),vw(f.stops,me*2).forEach(function(pA){return He.addColorStop(pA.stop,NA(pA.color))}),i.path(se),i.ctx.fillStyle=He,me!==Ye?(Ge=A.bounds.left+.5*A.bounds.width,Ke=A.bounds.top+.5*A.bounds.height,AA=Ye/me,tA=1/AA,i.ctx.save(),i.ctx.translate(Ge,Ke),i.ctx.transform(1,0,0,AA,0,0),i.ctx.translate(-Ge,-Ke),i.ctx.fillRect(Be,tA*(ne-Ke)+Ke,ce,Le*tA),i.ctx.restore()):i.ctx.fill())),qe.label=6;case 6:return n--,[2]}})},i=this,s=0,a=A.styles.backgroundImage.slice(0).reverse(),u.label=1;case 1:return s<a.length?(c=a[s],[5,r(c)]):[3,4];case 2:u.sent(),u.label=3;case 3:return s++,[3,1];case 4:return[2]}})})},e.prototype.renderSolidBorder=function(A,n,r){return lt(this,void 0,void 0,function(){return ZA(this,function(i){return this.path(HC(r,n)),this.ctx.fillStyle=NA(A),this.ctx.fill(),[2]})})},e.prototype.renderDoubleBorder=function(A,n,r,i){return lt(this,void 0,void 0,function(){var s,a;return ZA(this,function(c){switch(c.label){case 0:return n<3?[4,this.renderSolidBorder(A,r,i)]:[3,2];case 1:return c.sent(),[2];case 2:return s=QD(i,r),this.path(s),this.ctx.fillStyle=NA(A),this.ctx.fill(),a=FD(i,r),this.path(a),this.ctx.fill(),[2]}})})},e.prototype.renderNodeBackgroundAndBorders=function(A){return lt(this,void 0,void 0,function(){var n,r,i,s,a,c,u,f,p=this;return ZA(this,function(g){switch(g.label){case 0:return this.applyEffects(A.getEffects(2)),n=A.container.styles,r=!Ir(n.backgroundColor)||n.backgroundImage.length,i=[{style:n.borderTopStyle,color:n.borderTopColor,width:n.borderTopWidth},{style:n.borderRightStyle,color:n.borderRightColor,width:n.borderRightWidth},{style:n.borderBottomStyle,color:n.borderBottomColor,width:n.borderBottomWidth},{style:n.borderLeftStyle,color:n.borderLeftColor,width:n.borderLeftWidth}],s=kD(is(n.backgroundClip,0),A.curves),r||n.boxShadow.length?(this.ctx.save(),this.path(s),this.ctx.clip(),Ir(n.backgroundColor)||(this.ctx.fillStyle=NA(n.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(A.container)]):[3,2];case 1:g.sent(),this.ctx.restore(),n.boxShadow.slice(0).reverse().forEach(function(B){p.ctx.save();var w=El(A.curves),Q=B.inset?0:xD,b=yD(w,-Q+(B.inset?1:-1)*B.spread.number,(B.inset?1:-1)*B.spread.number,B.spread.number*(B.inset?-2:2),B.spread.number*(B.inset?-2:2));B.inset?(p.path(w),p.ctx.clip(),p.mask(b)):(p.mask(w),p.ctx.clip(),p.path(b)),p.ctx.shadowOffsetX=B.offsetX.number+Q,p.ctx.shadowOffsetY=B.offsetY.number,p.ctx.shadowColor=NA(B.color),p.ctx.shadowBlur=B.blur.number,p.ctx.fillStyle=B.inset?NA(B.color):"rgba(0,0,0,1)",p.ctx.fill(),p.ctx.restore()}),g.label=2;case 2:a=0,c=0,u=i,g.label=3;case 3:return c<u.length?(f=u[c],f.style!==0&&!Ir(f.color)&&f.width>0?f.style!==2?[3,5]:[4,this.renderDashedDottedBorder(f.color,f.width,a,A.curves,2)]:[3,11]):[3,13];case 4:return g.sent(),[3,11];case 5:return f.style!==3?[3,7]:[4,this.renderDashedDottedBorder(f.color,f.width,a,A.curves,3)];case 6:return g.sent(),[3,11];case 7:return f.style!==4?[3,9]:[4,this.renderDoubleBorder(f.color,f.width,a,A.curves)];case 8:return g.sent(),[3,11];case 9:return[4,this.renderSolidBorder(f.color,a,A.curves)];case 10:g.sent(),g.label=11;case 11:a++,g.label=12;case 12:return c++,[3,3];case 13:return[2]}})})},e.prototype.renderDashedDottedBorder=function(A,n,r,i,s){return lt(this,void 0,void 0,function(){var a,c,u,f,p,g,B,w,Q,b,v,_,S,E,L,U,L,U;return ZA(this,function(N){return this.ctx.save(),a=bD(i,r),c=HC(i,r),s===2&&(this.path(c),this.ctx.clip()),$t(c[0])?(u=c[0].start.x,f=c[0].start.y):(u=c[0].x,f=c[0].y),$t(c[1])?(p=c[1].end.x,g=c[1].end.y):(p=c[1].x,g=c[1].y),r===0||r===2?B=Math.abs(u-p):B=Math.abs(f-g),this.ctx.beginPath(),s===3?this.formatPath(a):this.formatPath(c.slice(0,2)),w=n<3?n*3:n*2,Q=n<3?n*2:n,s===3&&(w=n,Q=n),b=!0,B<=w*2?b=!1:B<=w*2+Q?(v=B/(2*w+Q),w*=v,Q*=v):(_=Math.floor((B+Q)/(w+Q)),S=(B-_*w)/(_-1),E=(B-(_+1)*w)/_,Q=E<=0||Math.abs(Q-S)<Math.abs(Q-E)?S:E),b&&(s===3?this.ctx.setLineDash([0,w+Q]):this.ctx.setLineDash([w,Q])),s===3?(this.ctx.lineCap="round",this.ctx.lineWidth=n):this.ctx.lineWidth=n*2+1.1,this.ctx.strokeStyle=NA(A),this.ctx.stroke(),this.ctx.setLineDash([]),s===2&&($t(c[0])&&(L=c[3],U=c[0],this.ctx.beginPath(),this.formatPath([new Z(L.end.x,L.end.y),new Z(U.start.x,U.start.y)]),this.ctx.stroke()),$t(c[1])&&(L=c[1],U=c[2],this.ctx.beginPath(),this.formatPath([new Z(L.end.x,L.end.y),new Z(U.start.x,U.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]})})},e.prototype.render=function(A){return lt(this,void 0,void 0,function(){var n;return ZA(this,function(r){switch(r.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=NA(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),n=ED(A),[4,this.renderStack(n)];case 1:return r.sent(),this.applyEffects([]),[2,this.canvas]}})})},e}(MC),LD=function(t){return t instanceof lC||t instanceof aC?!0:t instanceof Mf&&t.type!==gl&&t.type!==pl},kD=function(t,e){switch(t){case 0:return El(e);case 2:return gD(e);case 1:default:return Ql(e)}},HD=function(t){switch(t){case 1:return"center";case 2:return"right";case 0:default:return"left"}},ND=["-apple-system","system-ui"],DD=function(t){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?t.filter(function(e){return ND.indexOf(e)===-1}):t},MD=function(t){ln(e,t);function e(A,n){var r=t.call(this,A,n)||this;return r.canvas=n.canvas?n.canvas:document.createElement("canvas"),r.ctx=r.canvas.getContext("2d"),r.options=n,r.canvas.width=Math.floor(n.width*n.scale),r.canvas.height=Math.floor(n.height*n.scale),r.canvas.style.width=n.width+"px",r.canvas.style.height=n.height+"px",r.ctx.scale(r.options.scale,r.options.scale),r.ctx.translate(-n.x,-n.y),r.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+n.width+"x"+n.height+" at "+n.x+","+n.y+") with scale "+n.scale),r}return e.prototype.render=function(A){return lt(this,void 0,void 0,function(){var n,r;return ZA(this,function(i){switch(i.label){case 0:return n=Hf(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,A),[4,RD(n)];case 1:return r=i.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=NA(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(r,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}})})},e}(MC),RD=function(t){return new Promise(function(e,A){var n=new Image;n.onload=function(){e(n)},n.onerror=A,n.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(t))})},KD=function(){function t(e){var A=e.id,n=e.enabled;this.id=A,this.enabled=n,this.start=Date.now()}return t.prototype.debug=function(){for(var e=[],A=0;A<arguments.length;A++)e[A]=arguments[A];this.enabled&&(typeof window<"u"&&window.console&&typeof console.debug=="function"?console.debug.apply(console,ka([this.id,this.getTime()+"ms"],e)):this.info.apply(this,e))},t.prototype.getTime=function(){return Date.now()-this.start},t.prototype.info=function(){for(var e=[],A=0;A<arguments.length;A++)e[A]=arguments[A];this.enabled&&typeof window<"u"&&window.console&&typeof console.info=="function"&&console.info.apply(console,ka([this.id,this.getTime()+"ms"],e))},t.prototype.warn=function(){for(var e=[],A=0;A<arguments.length;A++)e[A]=arguments[A];this.enabled&&(typeof window<"u"&&window.console&&typeof console.warn=="function"?console.warn.apply(console,ka([this.id,this.getTime()+"ms"],e)):this.info.apply(this,e))},t.prototype.error=function(){for(var e=[],A=0;A<arguments.length;A++)e[A]=arguments[A];this.enabled&&(typeof window<"u"&&window.console&&typeof console.error=="function"?console.error.apply(console,ka([this.id,this.getTime()+"ms"],e)):this.info.apply(this,e))},t.instances={},t}(),VD=function(){function t(e,A){var n;this.windowBounds=A,this.instanceName="#"+t.instanceCount++,this.logger=new KD({id:this.instanceName,enabled:e.logging}),this.cache=(n=e.cache)!==null&&n!==void 0?n:new aD(this,e)}return t.instanceCount=1,t}(),PD=function(t,e){return e===void 0&&(e={}),GD(t,e)};typeof window<"u"&&TC.setContext(window);var GD=function(t,e){return lt(void 0,void 0,void 0,function(){var A,n,r,i,s,a,c,u,f,p,g,B,w,Q,b,v,_,S,E,L,N,U,N,V,D,se,Be,ne,ce,Le,aA,Re,ke,re,me,Ye,He,Ge,Ke,AA;return ZA(this,function(tA){switch(tA.label){case 0:if(!t||typeof t!="object")return[2,Promise.reject("Invalid element provided as first argument")];if(A=t.ownerDocument,!A)throw new Error("Element is not attached to a Document");if(n=A.defaultView,!n)throw new Error("Document is not attached to a Window");return r={allowTaint:(V=e.allowTaint)!==null&&V!==void 0?V:!1,imageTimeout:(D=e.imageTimeout)!==null&&D!==void 0?D:15e3,proxy:e.proxy,useCORS:(se=e.useCORS)!==null&&se!==void 0?se:!1},i=ef({logging:(Be=e.logging)!==null&&Be!==void 0?Be:!0,cache:e.cache},r),s={windowWidth:(ne=e.windowWidth)!==null&&ne!==void 0?ne:n.innerWidth,windowHeight:(ce=e.windowHeight)!==null&&ce!==void 0?ce:n.innerHeight,scrollX:(Le=e.scrollX)!==null&&Le!==void 0?Le:n.pageXOffset,scrollY:(aA=e.scrollY)!==null&&aA!==void 0?aA:n.pageYOffset},a=new $n(s.scrollX,s.scrollY,s.windowWidth,s.windowHeight),c=new VD(i,a),u=(Re=e.foreignObjectRendering)!==null&&Re!==void 0?Re:!1,f={allowTaint:(ke=e.allowTaint)!==null&&ke!==void 0?ke:!1,onclone:e.onclone,ignoreElements:e.ignoreElements,inlineImages:u,copyStyles:u},c.logger.debug("Starting document clone with size "+a.width+"x"+a.height+" scrolled to "+-a.left+","+-a.top),p=new IC(c,t,f),g=p.clonedReferenceElement,g?[4,p.toIFrame(A,a)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return B=tA.sent(),w=Kf(g)||$N(g)?yO(g.ownerDocument):Ha(c,g),Q=w.width,b=w.height,v=w.left,_=w.top,S=$D(c,g,e.backgroundColor),E={canvas:e.canvas,backgroundColor:S,scale:(me=(re=e.scale)!==null&&re!==void 0?re:n.devicePixelRatio)!==null&&me!==void 0?me:1,x:((Ye=e.x)!==null&&Ye!==void 0?Ye:0)+v,y:((He=e.y)!==null&&He!==void 0?He:0)+_,width:(Ge=e.width)!==null&&Ge!==void 0?Ge:Math.ceil(Q),height:(Ke=e.height)!==null&&Ke!==void 0?Ke:Math.ceil(b)},u?(c.logger.debug("Document cloned, using foreign object rendering"),N=new MD(c,E),[4,N.render(g)]):[3,3];case 2:return L=tA.sent(),[3,5];case 3:return c.logger.debug("Document cloned, element located at "+v+","+_+" with size "+Q+"x"+b+" using computed rendering"),c.logger.debug("Starting DOM parsing"),U=fC(c,g),S===U.styles.backgroundColor&&(U.styles.backgroundColor=Jn.TRANSPARENT),c.logger.debug("Starting renderer for element at "+E.x+","+E.y+" with size "+E.width+"x"+E.height),N=new OD(c,E),[4,N.render(U)];case 4:L=tA.sent(),tA.label=5;case 5:return(!((AA=e.removeContainer)!==null&&AA!==void 0)||AA)&&(IC.destroy(B)||c.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),c.logger.debug("Finished rendering"),[2,L]}})})},$D=function(t,e,A){var n=e.ownerDocument,r=n.documentElement?co(t,getComputedStyle(n.documentElement).backgroundColor):Jn.TRANSPARENT,i=n.body?co(t,getComputedStyle(n.body).backgroundColor):Jn.TRANSPARENT,s=typeof A=="string"?co(t,A):A===null?Jn.TRANSPARENT:4294967295;return e===n.documentElement?Ir(r)?Ir(i)?s:i:r:s};const WD=h.defineComponent({__name:"dom-renderer",props:{modelValue:{type:String,default:""},fixedWidth:{type:Number,default:0},renderUpdates:{type:Boolean,default:!1},exportToSvg:{type:Boolean,default:!1},options:{type:Object,default:()=>({})},pending:{type:Boolean,default:!1},debug:{type:Boolean,default:!1}},emits:["update:modelValue","update:pending"],setup(t,{emit:e}){const A=t,n=e,r=h.ref(),i=h.ref(""),s=h.ref();async function a(){if(r.value){n("update:pending",!0);const u=r.value,p=(await PD(u.firstElementChild,{backgroundColor:"rgba(0, 0, 0, 0)",scale:1,width:u.offsetWidth,height:u.offsetHeight,...A.options})).toDataURL();if(n("update:modelValue",p),n("update:pending",!1),A.debug){const g=new Image;g.src=p,document.body.appendChild(g)}return p}return""}const c=IB.debounce(async()=>{i.value=await a()},300,{trailing:!0,leading:!1});return h.onMounted(()=>{const u=r.value;A.renderUpdates&&(s.value=new MutationObserver(async f=>{c()}),s.value.observe(u,{attributes:!0,childList:!0,characterData:!0,subtree:!0})),setTimeout(()=>{c()},500)}),(u,f)=>(h.openBlock(),h.createElementBlock("div",{class:h.normalizeClass(["dom-renderer",{"off-screen":!t.debug}]),ref_key:"renderer",ref:r,style:h.normalizeStyle(t.fixedWidth>0?{width:`${t.fixedWidth}px`}:{})},[h.renderSlot(u.$slots,"default")],6))}}),JD={class:"link-sharing"},XD={key:0,class:"link-sharing__links container"},YD={class:"row"},zD={key:0,class:"col-12 col-md-6"},qD=["href"],ZD={class:"caption"},jD={key:1,class:"col-12 col-md-6"},eM=["href"],AM={class:"caption"},tM={key:2,class:"col-12 col-md-6"},nM={class:"caption"},rM={key:3,class:"col-12 col-md-6"},iM=["href"],sM={class:"caption"},oM={key:4,class:"col-12 col-md-6"},aM=["href"],lM={class:"caption"},cM={key:5,class:"col-12 col-md-6"},uM={class:"caption"},fM={key:6,class:"col-12 col-md-6"},dM=["href"],hM={class:"caption"},pM={key:1,class:"link-sharing__instructions pt-5"},gM={class:"row"},mM={class:"col-12 text-center py-0"},BM={class:"mb-5"},wM=t=>t.replace(/<(?:.|\n)*?>/gm,""),CM=h.defineComponent({__name:"link-sharing",props:{url:{type:String,default:""},subject:{type:String,default:""},hashtags:Array,text:{type:String,default:""},media:{type:String,default:""},services:{type:Object,default:{facebook:!0,instagram:!0,linkedin:!0,whatsapp:!0,mailto:!0,clipboard:!0,bluesky:!0}}},setup(t){const e=t,A=h.ref(!1),n=h.computed(()=>encodeURIComponent(e.url));h.computed(()=>encodeURIComponent(e.media));const r=h.computed(()=>wM(e.text)),i=h.computed(()=>!!(navigator&&navigator.userAgent&&/Mobi|Android/i.test(navigator.userAgent)));async function s(){const a=document.createElement("textarea");document.body.appendChild(a),a.value=e.url,a.select(),a.setSelectionRange(0,99999),navigator.clipboard.writeText(a.value),document.body.removeChild(a)}return(a,c)=>{const u=h.resolveComponent("svg-icon");return h.openBlock(),h.createElementBlock("div",JD,[A.value?(h.openBlock(),h.createElementBlock("div",pM,[h.createElementVNode("div",gM,[h.createElementVNode("div",mM,[h.createElementVNode("div",BM,[h.createElementVNode("p",null,h.toDisplayString(a.$t("sharing.instructions",{service:"Instagram"})),1),h.createElementVNode("p",null,[h.createElementVNode("strong",null,h.toDisplayString(t.hashtags),1)])])])])])):(h.openBlock(),h.createElementBlock("div",XD,[h.createElementVNode("div",YD,[t.services.facebook?(h.openBlock(),h.createElementBlock("div",zD,[h.createElementVNode("a",{class:"link-sharing__link btn btn-primary",href:`https://www.facebook.com/sharer.php?u=${n.value}`,target:"_blank",rel:"noopener"},[h.createVNode(u,{symbol:"facebook"}),h.createElementVNode("span",ZD,h.toDisplayString(a.$t("sharing.facebook")),1)],8,qD)])):h.createCommentVNode("",!0),t.services.bluesky?(h.openBlock(),h.createElementBlock("div",jD,[h.createElementVNode("a",{class:"link-sharing__link btn btn-primary",href:`https://bsky.app/intent/compose?text=${r.value}${r.value?"%20":""}${t.url}`,target:"_blank",rel:"noopener"},[h.createVNode(u,{symbol:"bluesky-logo"}),h.createElementVNode("span",AM,h.toDisplayString(a.$t("sharing.bluesky")),1)],8,eM)])):h.createCommentVNode("",!0),t.services.instagram?(h.openBlock(),h.createElementBlock("div",tM,[h.createElementVNode("button",{type:"button",class:"link-sharing__link btn btn-primary",onClick:c[0]||(c[0]=h.withModifiers(f=>A.value=!A.value,["prevent"]))},[h.createVNode(u,{symbol:"instagram"}),h.createElementVNode("span",nM,h.toDisplayString(a.$t("sharing.instagram")),1)])])):h.createCommentVNode("",!0),t.services.linkedin?(h.openBlock(),h.createElementBlock("div",rM,[h.createElementVNode("a",{class:"link-sharing__link btn btn-primary",href:`https://www.linkedin.com/shareArticle?mini=true&url=${n.value}&title=${t.subject}`,target:"_blank",rel:"noopener"},[h.createVNode(u,{symbol:"linkedin"}),h.createElementVNode("span",sM,h.toDisplayString(a.$t("sharing.linkedin")),1)],8,iM)])):h.createCommentVNode("",!0),t.services.whatsapp&&i.value?(h.openBlock(),h.createElementBlock("div",oM,[h.createElementVNode("a",{class:"link-sharing__link btn btn-primary",href:`whatsapp://send?text=${n.value}`,target:"_blank",rel:"noopener"},[h.createVNode(u,{symbol:"whatsapp"}),h.createElementVNode("span",lM,h.toDisplayString(a.$t("sharing.whatsapp")),1)],8,aM)])):h.createCommentVNode("",!0),t.services.clipboard?(h.openBlock(),h.createElementBlock("div",cM,[h.createElementVNode("button",{type:"button",class:"link-sharing__link btn btn-primary",onClick:h.withModifiers(s,["prevent","stop"])},[h.createVNode(u,{symbol:"copy"}),h.createElementVNode("span",uM,h.toDisplayString(a.$t("sharing.clipboard")),1)])])):h.createCommentVNode("",!0),t.services.mailto?(h.openBlock(),h.createElementBlock("div",fM,[h.createElementVNode("a",{class:"link-sharing__link btn btn-primary",href:`mailto:?subject=${t.subject}&body=${r.value}%0D%0A${t.url}`,target:"_blank",rel:"noopener"},[h.createVNode(u,{symbol:"mail"}),h.createElementVNode("span",hM,h.toDisplayString(a.$t("sharing.mailto")),1)],8,dM)])):h.createCommentVNode("",!0)])]))])}}}),V$="",yM={class:"base-form"},EM=h.defineComponent({__name:"base-form",props:{id:{},name:{},variant:{},disabled:{type:Boolean},pending:{type:Boolean}},setup(t){function e(r){console.log("input",r)}function A(r){console.log("reset",r)}function n(r){console.log("submit",r)}return(r,i)=>(h.openBlock(),h.createElementBlock("div",yM,[h.createElementVNode("form",{ref:"form",onInput:e,onReset:A,onSubmit:h.withModifiers(n,["prevent"])},[h.renderSlot(r.$slots,"default")],544)]))}}),P$="",QM={class:"modal-dialog__content d-flex flex-column"},FM={class:"modal-dialog__header d-flex p-3 border-bottom"},bM={key:0,class:"modal-dialog__title",id:"exampleModalLabel"},UM={class:"modal-dialog__body"},vM={key:0,class:"modal-dialog__footer d-flex p-3 border-top"},IM=h.defineComponent({__name:"modal-dialog",props:{modelValue:{type:Boolean,default:!1},modal:{type:Boolean,default:!0},size:{type:String,default:"md"},dismiss:{type:Boolean,default:!0},title:{type:String,default:""},footer:{type:Boolean,default:!0},classes:{type:String,default:""}},emits:["update:modelValue","confirm","cancel"],setup(t,{expose:e,emit:A}){const n=t,r=A,i=h.ref();function s(){var g,B;document.documentElement.style.setProperty("--scroll-position",`${Math.round(document.documentElement.scrollTop)}px`),n.modal?(g=i.value)==null||g.showModal():(B=i.value)==null||B.show(),r("update:modelValue",!0)}function a(){const g=i.value&&new KeyframeEffect(i.value,[{translate:"0 -100%",opacity:"0"}],{duration:320,easing:"ease",direction:"normal"}),B=new Animation(g,document.timeline);B.play(),B.addEventListener("finish",()=>{var w;(w=i.value)==null||w.close(),c()}),r("update:modelValue",!1)}function c(){const g=getComputedStyle(document.documentElement).getPropertyValue("--scroll-position");document.documentElement.scrollTo({top:parseInt(g,10),behavior:"instant"}),r("update:modelValue",!1)}function u(g){s(),r("confirm",g)}function f(){a(),r("cancel")}function p(g){const B=g.target;B&&B.nodeName==="DIALOG"&&a()}return h.watch(()=>n.modelValue,(g,B)=>{g&&g!==B?s():B&&a()},{immediate:!0}),h.onMounted(()=>{var g;(g=i.value)==null||g.addEventListener("cancel",B=>{B.preventDefault(),a()}),n.dismiss&&document.addEventListener("click",p),n.modelValue&&s()}),h.onBeforeUnmount(()=>{n.dismiss&&document.removeEventListener("click",p)}),e({show:s,close:a,confirm:u,cancel:f}),(g,B)=>(h.openBlock(),h.createElementBlock("dialog",{ref_key:"dialog",ref:i,class:h.normalizeClass(["modal-dialog",{[`modal-dialog--${t.size}`]:t.size}]),onClose:c},[h.createElementVNode("div",QM,[h.createElementVNode("div",FM,[t.title?(h.openBlock(),h.createElementBlock("h5",bM,h.toDisplayString(t.title),1)):h.createCommentVNode("",!0),h.createElementVNode("button",{type:"button",class:"btn-close ms-auto border-radius-none","aria-label":"Close",onClick:a})]),h.createElementVNode("div",UM,[h.renderSlot(g.$slots,"default")]),t.footer?(h.openBlock(),h.createElementBlock("div",vM,[h.renderSlot(g.$slots,"footer"),h.createElementVNode("button",{type:"button",class:"btn ms-auto",onClick:a},h.toDisplayString(g.$t("common.close")),1)])):h.createCommentVNode("",!0)])],34))}}),G$="",SM=["onDragenter","onDragover","onDragleave","onDragend","onDrop","innerHTML"],TM=["onDragstart","onDrag","onDragenter","onDragover","onDragleave","onDragend","onDrop"],_M={key:0,class:"sortable-list__drag-handle"},xM={type:"button",class:"btn"},OM={key:0,class:"sortable-list__item"},LM=h.defineComponent({__name:"sortable-list",props:{modelValue:{type:Array,default:()=>[]},config:{type:Object,default:null},messages:{type:Object,default:{}},vertical:{type:Boolean,default:!0},showDragHandle:{type:Boolean,default:!1},showPreview:{type:Boolean,default:!0}},emits:["update:modelValue"],setup(t,{emit:e}){const A=t,n=h.ref(!1),r=h.ref(null),i=h.ref(null),s=e,a=h.computed({get(){return A.modelValue},set(_){s("update:modelValue",_)}}),c=h.computed(()=>{var _;return(_=document.querySelector(".is-drag-item"))==null?void 0:_.outerHTML}),u=h.useSlots(),f=h.computed(()=>u["list-append"]);function p(_,S){_.dataTransfer&&(_.dataTransfer.dropEffect="move",_.dataTransfer.effectAllowed="move",_.dataTransfer.setData("index",S.toLocaleString()),n.value=!0,r.value=S)}function g(_,S){n.value=!1,r.value=null,i.value=null}function B(_,S){}function w(_,S){i.value=r.value!==S?S:null}function Q(_,S){}function b(_,S){}function v(_,S){if(_.dataTransfer){_.preventDefault();const E=Number(_.dataTransfer.getData("index")),L=S,U=[...a.value];(L||L===0)&&(E||E===0)&&U.splice(L,0,U.splice(E,1)[0]),a.value=U}}return(_,S)=>{const E=h.resolveComponent("svg-icon");return h.openBlock(),h.createBlock(h.TransitionGroup,{name:"list",tag:"ul",class:h.normalizeClass(["sortable-list p-0 d-flex gap-2",{"flex-column":t.vertical,"flex-row flex-wrap":!t.vertical}]),onDragover:S[0]||(S[0]=h.withModifiers(()=>{},["prevent"])),onDragenter:S[1]||(S[1]=h.withModifiers(()=>{},["prevent"]))},{default:h.withCtx(()=>[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(a.value,(L,U)=>(h.openBlock(),h.createElementBlock(h.Fragment,{key:U},[t.showPreview&&n.value&&i.value===U?(h.openBlock(),h.createElementBlock("li",{key:0,class:"sortable-list__item is-drop-target",onDragenter:N=>w(N,U),onDragover:N=>void 0,onDragleave:N=>void 0,onDragend:N=>g(),onDrop:N=>v(N,U),innerHTML:c.value},null,40,SM)):h.createCommentVNode("",!0),h.createElementVNode("li",{class:h.normalizeClass(["sortable-list__item d-flex",{"is-drag-item":n.value&&r.value===U,"is-drop-target":n.value&&i.value===U&&!t.showPreview,"align-items-center gap-2":t.vertical}]),draggable:!0,onDragstart:N=>p(N,U),onDrag:N=>void 0,onDragenter:N=>w(N,U),onDragover:N=>void 0,onDragleave:N=>void 0,onDragend:N=>g(),onDrop:N=>v(N,U)},[t.showDragHandle?(h.openBlock(),h.createElementBlock("div",_M,[h.createElementVNode("button",xM,[h.createVNode(E,{symbol:"drag"})])])):h.createCommentVNode("",!0),h.createElementVNode("div",{class:h.normalizeClass(["sortable-list__item-content",{"flex-grow-1":t.vertical}])},[h.renderSlot(_.$slots,"list-item",{item:L,index:U},()=>[h.createTextVNode(h.toDisplayString(L),1)])],2)],42,TM)],64))),128)),f.value?(h.openBlock(),h.createElementBlock("li",OM,[h.renderSlot(_.$slots,"list-append")])):h.createCommentVNode("",!0)]),_:3},8,["class"])}}}),$$="",kM={class:"touch-wrapper__controls"},HM={class:"btn-group",role:"group"},NM=h.defineComponent({__name:"touch-wrapper",props:{modelValue:{type:Number,default:1}},emits:["update:modelValue"],setup(t,{emit:e}){const A=h.getCurrentInstance(),n=A&&A.appContext.config.globalProperties.$config,r=t,i=e,s=h.ref();function a(f){const p=r.modelValue+f;i("update:modelValue",f===0?1:p>=1?p:1)}function c(f){if(f.ctrlKey){f.preventDefault();const p=0-f.deltaY*.01;a(p)}}function u(f){f.preventDefault();const{scale:p}=f,g=p>1?p*.01:0-p;a(g)}return h.onMounted(()=>{s.value&&(s.value.addEventListener("wheel",c,!1),s.value.addEventListener("gesturestart",u,!1),s.value.addEventListener("gesturechange",u,!1),s.value.addEventListener("gestureend",u,!1))}),(f,p)=>{const g=h.resolveComponent("svg-icon");return h.openBlock(),h.createElementBlock("div",{ref_key:"touchElement",ref:s,class:"touch-wrapper"},[h.renderSlot(f.$slots,"controls",{on:{setScale:a}},()=>[h.createElementVNode("div",kM,[h.createElementVNode("div",HM,[h.createElementVNode("button",{type:"button",class:"btn",onClick:p[0]||(p[0]=B=>a(-1))},[h.createVNode(g,{symbol:"minus","base-path":h.unref(n).iconSprite},null,8,["base-path"])]),h.createElementVNode("button",{type:"button",class:"btn",onClick:p[1]||(p[1]=B=>a(0))},[h.createVNode(g,{symbol:"maximize","base-path":h.unref(n).iconSprite},null,8,["base-path"])]),h.createElementVNode("button",{type:"button",class:"btn",onClick:p[2]||(p[2]=B=>a(1))},[h.createVNode(g,{symbol:"plus","base-path":h.unref(n).iconSprite},null,8,["base-path"])])])])]),h.renderSlot(f.$slots,"default")],512)}}}),W$="";Ce.Accordion=NE,Ce.AccordionItem=xE,Ce.AssetUploader=iO,Ce.AutoSuggest=U_,Ce.BaseButton=ME,Ce.BaseCamera=W_,Ce.BaseCarousel=NB,Ce.BaseForm=EM,Ce.BaseHeadline=EE,Ce.BaseImage=CE,Ce.BaseInput=PE,Ce.BaseParagraph=FE,Ce.CheckGroup=oQ,Ce.ColorPalette=fS,Ce.DomRenderer=WD,Ce.FileUpload=Yx,Ce.InputCheckbox=qE,Ce.InputColor=lS,Ce.InputDatetime=AQ,Ce.InputDropdown=y_,Ce.InputFile=EQ,Ce.InputPassword=nQ,Ce.InputTextarea=JE,Ce.LinkSharing=CM,Ce.LoadingSpinner=BE,Ce.MediaThumbnails=uO,Ce.ModalDialog=IM,Ce.ProgressSteps=CO,Ce.RadioButtons=hQ,Ce.RadioGroup=Ho,Ce.RteEditor=iS,Ce.SelectMedia=bQ,Ce.SortableList=LM,Ce.SvgIcon=pE,Ce.TouchWrapper=NM,Ce.UploadGroup=HB,Object.defineProperty(Ce,Symbol.toStringTag,{value:"Module"})});
185
+ }`,JK=function(t){XK(t,"."+dp+YK+ov+`
186
+ .`+fp+zK+ov)},XK=function(t,e){var A=t.ownerDocument;if(A){var n=A.createElement("style");n.textContent=e,t.appendChild(n)}},sv=function(){function t(){}return t.getOrigin=function(e){var A=t._link;return A?(A.href=e,A.href=A.href,A.protocol+A.hostname+A.port):"about:blank"},t.isSameOrigin=function(e){return t.getOrigin(e)===t._origin},t.setContext=function(e){t._link=e.document.createElement("a"),t._origin=t.getOrigin(e.location.href)},t._origin="about:blank",t}(),qK=function(){function t(e,A){this.context=e,this._options=A,this._cache={}}return t.prototype.addImage=function(e){var A=Promise.resolve();return this.has(e)||(pp(e)||t3(e))&&(this._cache[e]=this.loadImage(e)).catch(function(){}),A},t.prototype.match=function(e){return this._cache[e]},t.prototype.loadImage=function(e){return ZA(this,void 0,void 0,function(){var A,n,r,i,a=this;return HA(this,function(s){switch(s.label){case 0:return A=sv.isSameOrigin(e),n=!hp(e)&&this._options.useCORS===!0&&_A.SUPPORT_CORS_IMAGES&&!A,r=!hp(e)&&!A&&!pp(e)&&typeof this._options.proxy=="string"&&_A.SUPPORT_CORS_XHR&&!n,!A&&this._options.allowTaint===!1&&!hp(e)&&!pp(e)&&!r&&!n?[2]:(i=e,r?[4,this.proxy(i)]:[3,2]);case 1:i=s.sent(),s.label=2;case 2:return this.context.logger.debug("Added image "+e.substring(0,256)),[4,new Promise(function(c,d){var f=new Image;f.onload=function(){return c(f)},f.onerror=d,(A3(i)||n)&&(f.crossOrigin="anonymous"),f.src=i,f.complete===!0&&setTimeout(function(){return c(f)},500),a._options.imageTimeout>0&&setTimeout(function(){return d("Timed out ("+a._options.imageTimeout+"ms) loading image")},a._options.imageTimeout)})];case 3:return[2,s.sent()]}})})},t.prototype.has=function(e){return typeof this._cache[e]<"u"},t.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},t.prototype.proxy=function(e){var A=this,n=this._options.proxy;if(!n)throw new Error("No proxy defined");var r=e.substring(0,256);return new Promise(function(i,a){var s=_A.SUPPORT_RESPONSE_TYPE?"blob":"text",c=new XMLHttpRequest;c.onload=function(){if(c.status===200)if(s==="text")i(c.response);else{var h=new FileReader;h.addEventListener("load",function(){return i(h.result)},!1),h.addEventListener("error",function(m){return a(m)},!1),h.readAsDataURL(c.response)}else a("Failed to proxy resource "+r+" with status code "+c.status)},c.onerror=a;var d=n.indexOf("?")>-1?"&":"?";if(c.open("GET",""+n+d+"url="+encodeURIComponent(e)+"&responseType="+s),s!=="text"&&c instanceof XMLHttpRequest&&(c.responseType=s),A._options.imageTimeout){var f=A._options.imageTimeout;c.timeout=f,c.ontimeout=function(){return a("Timed out ("+f+"ms) proxying "+r)}}c.send()})},t}(),jK=/^data:image\/svg\+xml/i,ZK=/^data:image\/.*;base64,/i,e3=/^data:image\/.*/i,t3=function(t){return _A.SUPPORT_SVG_DRAWING||!n3(t)},hp=function(t){return e3.test(t)},A3=function(t){return ZK.test(t)},pp=function(t){return t.substr(0,4)==="blob"},n3=function(t){return t.substr(-3).toLowerCase()==="svg"||jK.test(t)},Se=function(){function t(e,A){this.type=0,this.x=e,this.y=A}return t.prototype.add=function(e,A){return new t(this.x+e,this.y+A)},t}(),Uo=function(t,e,A){return new Se(t.x+(e.x-t.x)*A,t.y+(e.y-t.y)*A)},au=function(){function t(e,A,n,r){this.type=1,this.start=e,this.startControl=A,this.endControl=n,this.end=r}return t.prototype.subdivide=function(e,A){var n=Uo(this.start,this.startControl,e),r=Uo(this.startControl,this.endControl,e),i=Uo(this.endControl,this.end,e),a=Uo(n,r,e),s=Uo(r,i,e),c=Uo(a,s,e);return A?new t(this.start,n,a,c):new t(c,s,i,this.end)},t.prototype.add=function(e,A){return new t(this.start.add(e,A),this.startControl.add(e,A),this.endControl.add(e,A),this.end.add(e,A))},t.prototype.reverse=function(){return new t(this.end,this.endControl,this.startControl,this.start)},t}(),Mn=function(t){return t.type===1},r3=function(){function t(e){var A=e.styles,n=e.bounds,r=$s(A.borderTopLeftRadius,n.width,n.height),i=r[0],a=r[1],s=$s(A.borderTopRightRadius,n.width,n.height),c=s[0],d=s[1],f=$s(A.borderBottomRightRadius,n.width,n.height),h=f[0],m=f[1],g=$s(A.borderBottomLeftRadius,n.width,n.height),B=g[0],y=g[1],v=[];v.push((i+c)/n.width),v.push((B+h)/n.width),v.push((a+y)/n.height),v.push((d+m)/n.height);var Q=Math.max.apply(Math,v);Q>1&&(i/=Q,a/=Q,c/=Q,d/=Q,h/=Q,m/=Q,B/=Q,y/=Q);var k=n.width-c,F=n.height-m,C=n.width-h,D=n.height-y,E=A.borderTopWidth,x=A.borderRightWidth,O=A.borderBottomWidth,S=A.borderLeftWidth,K=Mt(A.paddingTop,e.bounds.width),de=Mt(A.paddingRight,e.bounds.width),ce=Mt(A.paddingBottom,e.bounds.width),ge=Mt(A.paddingLeft,e.bounds.width);this.topLeftBorderDoubleOuterBox=i>0||a>0?Vt(n.left+S/3,n.top+E/3,i-S/3,a-E/3,Qt.TOP_LEFT):new Se(n.left+S/3,n.top+E/3),this.topRightBorderDoubleOuterBox=i>0||a>0?Vt(n.left+k,n.top+E/3,c-x/3,d-E/3,Qt.TOP_RIGHT):new Se(n.left+n.width-x/3,n.top+E/3),this.bottomRightBorderDoubleOuterBox=h>0||m>0?Vt(n.left+C,n.top+F,h-x/3,m-O/3,Qt.BOTTOM_RIGHT):new Se(n.left+n.width-x/3,n.top+n.height-O/3),this.bottomLeftBorderDoubleOuterBox=B>0||y>0?Vt(n.left+S/3,n.top+D,B-S/3,y-O/3,Qt.BOTTOM_LEFT):new Se(n.left+S/3,n.top+n.height-O/3),this.topLeftBorderDoubleInnerBox=i>0||a>0?Vt(n.left+S*2/3,n.top+E*2/3,i-S*2/3,a-E*2/3,Qt.TOP_LEFT):new Se(n.left+S*2/3,n.top+E*2/3),this.topRightBorderDoubleInnerBox=i>0||a>0?Vt(n.left+k,n.top+E*2/3,c-x*2/3,d-E*2/3,Qt.TOP_RIGHT):new Se(n.left+n.width-x*2/3,n.top+E*2/3),this.bottomRightBorderDoubleInnerBox=h>0||m>0?Vt(n.left+C,n.top+F,h-x*2/3,m-O*2/3,Qt.BOTTOM_RIGHT):new Se(n.left+n.width-x*2/3,n.top+n.height-O*2/3),this.bottomLeftBorderDoubleInnerBox=B>0||y>0?Vt(n.left+S*2/3,n.top+D,B-S*2/3,y-O*2/3,Qt.BOTTOM_LEFT):new Se(n.left+S*2/3,n.top+n.height-O*2/3),this.topLeftBorderStroke=i>0||a>0?Vt(n.left+S/2,n.top+E/2,i-S/2,a-E/2,Qt.TOP_LEFT):new Se(n.left+S/2,n.top+E/2),this.topRightBorderStroke=i>0||a>0?Vt(n.left+k,n.top+E/2,c-x/2,d-E/2,Qt.TOP_RIGHT):new Se(n.left+n.width-x/2,n.top+E/2),this.bottomRightBorderStroke=h>0||m>0?Vt(n.left+C,n.top+F,h-x/2,m-O/2,Qt.BOTTOM_RIGHT):new Se(n.left+n.width-x/2,n.top+n.height-O/2),this.bottomLeftBorderStroke=B>0||y>0?Vt(n.left+S/2,n.top+D,B-S/2,y-O/2,Qt.BOTTOM_LEFT):new Se(n.left+S/2,n.top+n.height-O/2),this.topLeftBorderBox=i>0||a>0?Vt(n.left,n.top,i,a,Qt.TOP_LEFT):new Se(n.left,n.top),this.topRightBorderBox=c>0||d>0?Vt(n.left+k,n.top,c,d,Qt.TOP_RIGHT):new Se(n.left+n.width,n.top),this.bottomRightBorderBox=h>0||m>0?Vt(n.left+C,n.top+F,h,m,Qt.BOTTOM_RIGHT):new Se(n.left+n.width,n.top+n.height),this.bottomLeftBorderBox=B>0||y>0?Vt(n.left,n.top+D,B,y,Qt.BOTTOM_LEFT):new Se(n.left,n.top+n.height),this.topLeftPaddingBox=i>0||a>0?Vt(n.left+S,n.top+E,Math.max(0,i-S),Math.max(0,a-E),Qt.TOP_LEFT):new Se(n.left+S,n.top+E),this.topRightPaddingBox=c>0||d>0?Vt(n.left+Math.min(k,n.width-x),n.top+E,k>n.width+x?0:Math.max(0,c-x),Math.max(0,d-E),Qt.TOP_RIGHT):new Se(n.left+n.width-x,n.top+E),this.bottomRightPaddingBox=h>0||m>0?Vt(n.left+Math.min(C,n.width-S),n.top+Math.min(F,n.height-O),Math.max(0,h-x),Math.max(0,m-O),Qt.BOTTOM_RIGHT):new Se(n.left+n.width-x,n.top+n.height-O),this.bottomLeftPaddingBox=B>0||y>0?Vt(n.left+S,n.top+Math.min(D,n.height-O),Math.max(0,B-S),Math.max(0,y-O),Qt.BOTTOM_LEFT):new Se(n.left+S,n.top+n.height-O),this.topLeftContentBox=i>0||a>0?Vt(n.left+S+ge,n.top+E+K,Math.max(0,i-(S+ge)),Math.max(0,a-(E+K)),Qt.TOP_LEFT):new Se(n.left+S+ge,n.top+E+K),this.topRightContentBox=c>0||d>0?Vt(n.left+Math.min(k,n.width+S+ge),n.top+E+K,k>n.width+S+ge?0:c-S+ge,d-(E+K),Qt.TOP_RIGHT):new Se(n.left+n.width-(x+de),n.top+E+K),this.bottomRightContentBox=h>0||m>0?Vt(n.left+Math.min(C,n.width-(S+ge)),n.top+Math.min(F,n.height+E+K),Math.max(0,h-(x+de)),m-(O+ce),Qt.BOTTOM_RIGHT):new Se(n.left+n.width-(x+de),n.top+n.height-(O+ce)),this.bottomLeftContentBox=B>0||y>0?Vt(n.left+S+ge,n.top+D,Math.max(0,B-(S+ge)),y-(O+ce),Qt.BOTTOM_LEFT):new Se(n.left+S+ge,n.top+n.height-(O+ce))}return t}(),Qt;(function(t){t[t.TOP_LEFT=0]="TOP_LEFT",t[t.TOP_RIGHT=1]="TOP_RIGHT",t[t.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",t[t.BOTTOM_LEFT=3]="BOTTOM_LEFT"})(Qt||(Qt={}));var Vt=function(t,e,A,n,r){var i=4*((Math.sqrt(2)-1)/3),a=A*i,s=n*i,c=t+A,d=e+n;switch(r){case Qt.TOP_LEFT:return new au(new Se(t,d),new Se(t,d-s),new Se(c-a,e),new Se(c,e));case Qt.TOP_RIGHT:return new au(new Se(t,e),new Se(t+a,e),new Se(c,d-s),new Se(c,d));case Qt.BOTTOM_RIGHT:return new au(new Se(c,e),new Se(c,e+s),new Se(t+a,d),new Se(t,d));case Qt.BOTTOM_LEFT:default:return new au(new Se(c,d),new Se(c-a,d),new Se(t,e+s),new Se(t,e))}},ou=function(t){return[t.topLeftBorderBox,t.topRightBorderBox,t.bottomRightBorderBox,t.bottomLeftBorderBox]},i3=function(t){return[t.topLeftContentBox,t.topRightContentBox,t.bottomRightContentBox,t.bottomLeftContentBox]},su=function(t){return[t.topLeftPaddingBox,t.topRightPaddingBox,t.bottomRightPaddingBox,t.bottomLeftPaddingBox]},a3=function(){function t(e,A,n){this.offsetX=e,this.offsetY=A,this.matrix=n,this.type=0,this.target=6}return t}(),lu=function(){function t(e,A){this.path=e,this.target=A,this.type=1}return t}(),o3=function(){function t(e){this.opacity=e,this.type=2,this.target=6}return t}(),s3=function(t){return t.type===0},lv=function(t){return t.type===1},l3=function(t){return t.type===2},cv=function(t,e){return t.length===e.length?t.some(function(A,n){return A===e[n]}):!1},c3=function(t,e,A,n,r){return t.map(function(i,a){switch(a){case 0:return i.add(e,A);case 1:return i.add(e+n,A);case 2:return i.add(e+n,A+r);case 3:return i.add(e,A+r)}return i})},uv=function(){function t(e){this.element=e,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return t}(),dv=function(){function t(e,A){if(this.container=e,this.parent=A,this.effects=[],this.curves=new r3(this.container),this.container.styles.opacity<1&&this.effects.push(new o3(this.container.styles.opacity)),this.container.styles.transform!==null){var n=this.container.bounds.left+this.container.styles.transformOrigin[0].number,r=this.container.bounds.top+this.container.styles.transformOrigin[1].number,i=this.container.styles.transform;this.effects.push(new a3(n,r,i))}if(this.container.styles.overflowX!==0){var a=ou(this.curves),s=su(this.curves);cv(a,s)?this.effects.push(new lu(a,6)):(this.effects.push(new lu(a,2)),this.effects.push(new lu(s,4)))}}return t.prototype.getEffects=function(e){for(var A=[2,3].indexOf(this.container.styles.position)===-1,n=this.parent,r=this.effects.slice(0);n;){var i=n.effects.filter(function(c){return!lv(c)});if(A||n.container.styles.position!==0||!n.parent){if(r.unshift.apply(r,i),A=[2,3].indexOf(n.container.styles.position)===-1,n.container.styles.overflowX!==0){var a=ou(n.curves),s=su(n.curves);cv(a,s)||r.unshift(new lu(s,6))}}else r.unshift.apply(r,i);n=n.parent}return r.filter(function(c){return uA(c.target,e)})},t}(),mp=function(t,e,A,n){t.container.elements.forEach(function(r){var i=uA(r.flags,4),a=uA(r.flags,2),s=new dv(r,t);uA(r.styles.display,2048)&&n.push(s);var c=uA(r.flags,8)?[]:n;if(i||a){var d=i||r.styles.isPositioned()?A:e,f=new uv(s);if(r.styles.isPositioned()||r.styles.opacity<1||r.styles.isTransformed()){var h=r.styles.zIndex.order;if(h<0){var m=0;d.negativeZIndex.some(function(B,y){return h>B.element.container.styles.zIndex.order?(m=y,!1):m>0}),d.negativeZIndex.splice(m,0,f)}else if(h>0){var g=0;d.positiveZIndex.some(function(B,y){return h>=B.element.container.styles.zIndex.order?(g=y+1,!1):g>0}),d.positiveZIndex.splice(g,0,f)}else d.zeroOrAutoZIndexOrTransformedOrOpacity.push(f)}else r.styles.isFloating()?d.nonPositionedFloats.push(f):d.nonPositionedInlineLevel.push(f);mp(s,f,i?f:A,c)}else r.styles.isInlineLevel()?e.inlineLevel.push(s):e.nonInlineLevel.push(s),mp(s,e,A,c);uA(r.flags,8)&&fv(r,c)})},fv=function(t,e){for(var A=t instanceof ip?t.start:1,n=t instanceof ip?t.reversed:!1,r=0;r<e.length;r++){var i=e[r];i.container instanceof Lb&&typeof i.container.value=="number"&&i.container.value!==0&&(A=i.container.value),i.listValue=Xs(A,i.container.styles.listStyleType,!0),A+=n?-1:1}},u3=function(t){var e=new dv(t,null),A=new uv(e),n=[];return mp(e,A,A,n),fv(e.container,n),A},hv=function(t,e){switch(e){case 0:return On(t.topLeftBorderBox,t.topLeftPaddingBox,t.topRightBorderBox,t.topRightPaddingBox);case 1:return On(t.topRightBorderBox,t.topRightPaddingBox,t.bottomRightBorderBox,t.bottomRightPaddingBox);case 2:return On(t.bottomRightBorderBox,t.bottomRightPaddingBox,t.bottomLeftBorderBox,t.bottomLeftPaddingBox);case 3:default:return On(t.bottomLeftBorderBox,t.bottomLeftPaddingBox,t.topLeftBorderBox,t.topLeftPaddingBox)}},d3=function(t,e){switch(e){case 0:return On(t.topLeftBorderBox,t.topLeftBorderDoubleOuterBox,t.topRightBorderBox,t.topRightBorderDoubleOuterBox);case 1:return On(t.topRightBorderBox,t.topRightBorderDoubleOuterBox,t.bottomRightBorderBox,t.bottomRightBorderDoubleOuterBox);case 2:return On(t.bottomRightBorderBox,t.bottomRightBorderDoubleOuterBox,t.bottomLeftBorderBox,t.bottomLeftBorderDoubleOuterBox);case 3:default:return On(t.bottomLeftBorderBox,t.bottomLeftBorderDoubleOuterBox,t.topLeftBorderBox,t.topLeftBorderDoubleOuterBox)}},f3=function(t,e){switch(e){case 0:return On(t.topLeftBorderDoubleInnerBox,t.topLeftPaddingBox,t.topRightBorderDoubleInnerBox,t.topRightPaddingBox);case 1:return On(t.topRightBorderDoubleInnerBox,t.topRightPaddingBox,t.bottomRightBorderDoubleInnerBox,t.bottomRightPaddingBox);case 2:return On(t.bottomRightBorderDoubleInnerBox,t.bottomRightPaddingBox,t.bottomLeftBorderDoubleInnerBox,t.bottomLeftPaddingBox);case 3:default:return On(t.bottomLeftBorderDoubleInnerBox,t.bottomLeftPaddingBox,t.topLeftBorderDoubleInnerBox,t.topLeftPaddingBox)}},h3=function(t,e){switch(e){case 0:return cu(t.topLeftBorderStroke,t.topRightBorderStroke);case 1:return cu(t.topRightBorderStroke,t.bottomRightBorderStroke);case 2:return cu(t.bottomRightBorderStroke,t.bottomLeftBorderStroke);case 3:default:return cu(t.bottomLeftBorderStroke,t.topLeftBorderStroke)}},cu=function(t,e){var A=[];return Mn(t)?A.push(t.subdivide(.5,!1)):A.push(t),Mn(e)?A.push(e.subdivide(.5,!0)):A.push(e),A},On=function(t,e,A,n){var r=[];return Mn(t)?r.push(t.subdivide(.5,!1)):r.push(t),Mn(A)?r.push(A.subdivide(.5,!0)):r.push(A),Mn(n)?r.push(n.subdivide(.5,!0).reverse()):r.push(n),Mn(e)?r.push(e.subdivide(.5,!1).reverse()):r.push(e),r},pv=function(t){var e=t.bounds,A=t.styles;return e.add(A.borderLeftWidth,A.borderTopWidth,-(A.borderRightWidth+A.borderLeftWidth),-(A.borderTopWidth+A.borderBottomWidth))},uu=function(t){var e=t.styles,A=t.bounds,n=Mt(e.paddingLeft,A.width),r=Mt(e.paddingRight,A.width),i=Mt(e.paddingTop,A.width),a=Mt(e.paddingBottom,A.width);return A.add(n+e.borderLeftWidth,i+e.borderTopWidth,-(e.borderRightWidth+e.borderLeftWidth+n+r),-(e.borderTopWidth+e.borderBottomWidth+i+a))},p3=function(t,e){return t===0?e.bounds:t===2?uu(e):pv(e)},m3=function(t,e){return t===0?e.bounds:t===2?uu(e):pv(e)},gp=function(t,e,A){var n=p3(_o(t.styles.backgroundOrigin,e),t),r=m3(_o(t.styles.backgroundClip,e),t),i=g3(_o(t.styles.backgroundSize,e),A,n),a=i[0],s=i[1],c=$s(_o(t.styles.backgroundPosition,e),n.width-a,n.height-s),d=B3(_o(t.styles.backgroundRepeat,e),c,i,n,r),f=Math.round(n.left+c[0]),h=Math.round(n.top+c[1]);return[d,f,h,a,s]},ko=function(t){return Tt(t)&&t.value===vo.AUTO},du=function(t){return typeof t=="number"},g3=function(t,e,A){var n=e[0],r=e[1],i=e[2],a=t[0],s=t[1];if(!a)return[0,0];if(lA(a)&&s&&lA(s))return[Mt(a,A.width),Mt(s,A.height)];var c=du(i);if(Tt(a)&&(a.value===vo.CONTAIN||a.value===vo.COVER)){if(du(i)){var d=A.width/A.height;return d<i!=(a.value===vo.COVER)?[A.width,A.width/i]:[A.height*i,A.height]}return[A.width,A.height]}var f=du(n),h=du(r),m=f||h;if(ko(a)&&(!s||ko(s))){if(f&&h)return[n,r];if(!c&&!m)return[A.width,A.height];if(m&&c){var g=f?n:r*i,B=h?r:n/i;return[g,B]}var y=f?n:A.width,v=h?r:A.height;return[y,v]}if(c){var Q=0,k=0;return lA(a)?Q=Mt(a,A.width):lA(s)&&(k=Mt(s,A.height)),ko(a)?Q=k*i:(!s||ko(s))&&(k=Q/i),[Q,k]}var F=null,C=null;if(lA(a)?F=Mt(a,A.width):s&&lA(s)&&(C=Mt(s,A.height)),F!==null&&(!s||ko(s))&&(C=f&&h?F/n*r:A.height),C!==null&&ko(a)&&(F=f&&h?C/r*n:A.width),F!==null&&C!==null)return[F,C];throw new Error("Unable to calculate background-size for element")},_o=function(t,e){var A=t[e];return typeof A>"u"?t[0]:A},B3=function(t,e,A,n,r){var i=e[0],a=e[1],s=A[0],c=A[1];switch(t){case 2:return[new Se(Math.round(n.left),Math.round(n.top+a)),new Se(Math.round(n.left+n.width),Math.round(n.top+a)),new Se(Math.round(n.left+n.width),Math.round(c+n.top+a)),new Se(Math.round(n.left),Math.round(c+n.top+a))];case 3:return[new Se(Math.round(n.left+i),Math.round(n.top)),new Se(Math.round(n.left+i+s),Math.round(n.top)),new Se(Math.round(n.left+i+s),Math.round(n.height+n.top)),new Se(Math.round(n.left+i),Math.round(n.height+n.top))];case 1:return[new Se(Math.round(n.left+i),Math.round(n.top+a)),new Se(Math.round(n.left+i+s),Math.round(n.top+a)),new Se(Math.round(n.left+i+s),Math.round(n.top+a+c)),new Se(Math.round(n.left+i),Math.round(n.top+a+c))];default:return[new Se(Math.round(r.left),Math.round(r.top)),new Se(Math.round(r.left+r.width),Math.round(r.top)),new Se(Math.round(r.left+r.width),Math.round(r.height+r.top)),new Se(Math.round(r.left),Math.round(r.height+r.top))]}},w3="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",mv="Hidden Text",y3=function(){function t(e){this._data={},this._document=e}return t.prototype.parseMetrics=function(e,A){var n=this._document.createElement("div"),r=this._document.createElement("img"),i=this._document.createElement("span"),a=this._document.body;n.style.visibility="hidden",n.style.fontFamily=e,n.style.fontSize=A,n.style.margin="0",n.style.padding="0",n.style.whiteSpace="nowrap",a.appendChild(n),r.src=w3,r.width=1,r.height=1,r.style.margin="0",r.style.padding="0",r.style.verticalAlign="baseline",i.style.fontFamily=e,i.style.fontSize=A,i.style.margin="0",i.style.padding="0",i.appendChild(this._document.createTextNode(mv)),n.appendChild(i),n.appendChild(r);var s=r.offsetTop-i.offsetTop+2;n.removeChild(i),n.appendChild(this._document.createTextNode(mv)),n.style.lineHeight="normal",r.style.verticalAlign="super";var c=r.offsetTop-n.offsetTop+2;return a.removeChild(n),{baseline:s,middle:c}},t.prototype.getMetrics=function(e,A){var n=e+" "+A;return typeof this._data[n]>"u"&&(this._data[n]=this.parseMetrics(e,A)),this._data[n]},t}(),gv=function(){function t(e,A){this.context=e,this.options=A}return t}(),C3=1e4,b3=function(t){rr(e,t);function e(A,n){var r=t.call(this,A,n)||this;return r._activeEffects=[],r.canvas=n.canvas?n.canvas:document.createElement("canvas"),r.ctx=r.canvas.getContext("2d"),n.canvas||(r.canvas.width=Math.floor(n.width*n.scale),r.canvas.height=Math.floor(n.height*n.scale),r.canvas.style.width=n.width+"px",r.canvas.style.height=n.height+"px"),r.fontMetrics=new y3(document),r.ctx.scale(r.options.scale,r.options.scale),r.ctx.translate(-n.x,-n.y),r.ctx.textBaseline="bottom",r._activeEffects=[],r.context.logger.debug("Canvas renderer initialized ("+n.width+"x"+n.height+") with scale "+n.scale),r}return e.prototype.applyEffects=function(A){for(var n=this;this._activeEffects.length;)this.popEffect();A.forEach(function(r){return n.applyEffect(r)})},e.prototype.applyEffect=function(A){this.ctx.save(),l3(A)&&(this.ctx.globalAlpha=A.opacity),s3(A)&&(this.ctx.translate(A.offsetX,A.offsetY),this.ctx.transform(A.matrix[0],A.matrix[1],A.matrix[2],A.matrix[3],A.matrix[4],A.matrix[5]),this.ctx.translate(-A.offsetX,-A.offsetY)),lv(A)&&(this.path(A.path),this.ctx.clip()),this._activeEffects.push(A)},e.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},e.prototype.renderStack=function(A){return ZA(this,void 0,void 0,function(){var n;return HA(this,function(r){switch(r.label){case 0:return n=A.element.container.styles,n.isVisible()?[4,this.renderStackContent(A)]:[3,2];case 1:r.sent(),r.label=2;case 2:return[2]}})})},e.prototype.renderNode=function(A){return ZA(this,void 0,void 0,function(){return HA(this,function(n){switch(n.label){case 0:if(uA(A.container.flags,16))debugger;return A.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(A)]:[3,3];case 1:return n.sent(),[4,this.renderNodeContent(A)];case 2:n.sent(),n.label=3;case 3:return[2]}})})},e.prototype.renderTextWithLetterSpacing=function(A,n,r){var i=this;if(n===0)this.ctx.fillText(A.text,A.bounds.left,A.bounds.top+r);else{var a=rp(A.text);a.reduce(function(s,c){return i.ctx.fillText(c,s,A.bounds.top+r),s+i.ctx.measureText(c).width},A.bounds.left)}},e.prototype.createFontStyle=function(A){var n=A.fontVariant.filter(function(a){return a==="normal"||a==="small-caps"}).join(""),r=U3(A.fontFamily).join(", "),i=Ks(A.fontSize)?""+A.fontSize.number+A.fontSize.unit:A.fontSize.number+"px";return[[A.fontStyle,n,A.fontWeight,i,r].join(" "),r,i]},e.prototype.renderTextNode=function(A,n){return ZA(this,void 0,void 0,function(){var r,i,a,s,c,d,f,h,m=this;return HA(this,function(g){return r=this.createFontStyle(n),i=r[0],a=r[1],s=r[2],this.ctx.font=i,this.ctx.direction=n.direction===1?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",c=this.fontMetrics.getMetrics(a,s),d=c.baseline,f=c.middle,h=n.paintOrder,A.textBounds.forEach(function(B){h.forEach(function(y){switch(y){case 0:m.ctx.fillStyle=bA(n.color),m.renderTextWithLetterSpacing(B,n.letterSpacing,d);var v=n.textShadow;v.length&&B.text.trim().length&&(v.slice(0).reverse().forEach(function(Q){m.ctx.shadowColor=bA(Q.color),m.ctx.shadowOffsetX=Q.offsetX.number*m.options.scale,m.ctx.shadowOffsetY=Q.offsetY.number*m.options.scale,m.ctx.shadowBlur=Q.blur.number,m.renderTextWithLetterSpacing(B,n.letterSpacing,d)}),m.ctx.shadowColor="",m.ctx.shadowOffsetX=0,m.ctx.shadowOffsetY=0,m.ctx.shadowBlur=0),n.textDecorationLine.length&&(m.ctx.fillStyle=bA(n.textDecorationColor||n.color),n.textDecorationLine.forEach(function(Q){switch(Q){case 1:m.ctx.fillRect(B.bounds.left,Math.round(B.bounds.top+d),B.bounds.width,1);break;case 2:m.ctx.fillRect(B.bounds.left,Math.round(B.bounds.top),B.bounds.width,1);break;case 3:m.ctx.fillRect(B.bounds.left,Math.ceil(B.bounds.top+f),B.bounds.width,1);break}}));break;case 1:n.webkitTextStrokeWidth&&B.text.trim().length&&(m.ctx.strokeStyle=bA(n.webkitTextStrokeColor),m.ctx.lineWidth=n.webkitTextStrokeWidth,m.ctx.lineJoin=window.chrome?"miter":"round",m.ctx.strokeText(B.text,B.bounds.left,B.bounds.top+d)),m.ctx.strokeStyle="",m.ctx.lineWidth=0,m.ctx.lineJoin="miter";break}})}),[2]})})},e.prototype.renderReplacedElement=function(A,n,r){if(r&&A.intrinsicWidth>0&&A.intrinsicHeight>0){var i=uu(A),a=su(n);this.path(a),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(r,0,0,A.intrinsicWidth,A.intrinsicHeight,i.left,i.top,i.width,i.height),this.ctx.restore()}},e.prototype.renderNodeContent=function(A){return ZA(this,void 0,void 0,function(){var n,r,i,a,s,c,k,k,d,f,h,m,C,g,B,D,y,v,Q,k,F,C,D;return HA(this,function(E){switch(E.label){case 0:this.applyEffects(A.getEffects(4)),n=A.container,r=A.curves,i=n.styles,a=0,s=n.textNodes,E.label=1;case 1:return a<s.length?(c=s[a],[4,this.renderTextNode(c,i)]):[3,4];case 2:E.sent(),E.label=3;case 3:return a++,[3,1];case 4:if(!(n instanceof Mb))return[3,8];E.label=5;case 5:return E.trys.push([5,7,,8]),[4,this.context.cache.match(n.src)];case 6:return k=E.sent(),this.renderReplacedElement(n,r,k),[3,8];case 7:return E.sent(),this.context.logger.error("Error loading image "+n.src),[3,8];case 8:if(n instanceof Ob&&this.renderReplacedElement(n,r,n.canvas),!(n instanceof Nb))return[3,12];E.label=9;case 9:return E.trys.push([9,11,,12]),[4,this.context.cache.match(n.svg)];case 10:return k=E.sent(),this.renderReplacedElement(n,r,k),[3,12];case 11:return E.sent(),this.context.logger.error("Error loading svg "+n.svg.substring(0,255)),[3,12];case 12:return n instanceof Vb&&n.tree?(d=new e(this.context,{scale:this.options.scale,backgroundColor:n.backgroundColor,x:0,y:0,width:n.width,height:n.height}),[4,d.render(n.tree)]):[3,14];case 13:f=E.sent(),n.width&&n.height&&this.ctx.drawImage(f,0,0,n.width,n.height,n.bounds.left,n.bounds.top,n.bounds.width,n.bounds.height),E.label=14;case 14:if(n instanceof ap&&(h=Math.min(n.bounds.width,n.bounds.height),n.type===eu?n.checked&&(this.ctx.save(),this.path([new Se(n.bounds.left+h*.39363,n.bounds.top+h*.79),new Se(n.bounds.left+h*.16,n.bounds.top+h*.5549),new Se(n.bounds.left+h*.27347,n.bounds.top+h*.44071),new Se(n.bounds.left+h*.39694,n.bounds.top+h*.5649),new Se(n.bounds.left+h*.72983,n.bounds.top+h*.23),new Se(n.bounds.left+h*.84,n.bounds.top+h*.34085),new Se(n.bounds.left+h*.39363,n.bounds.top+h*.79)]),this.ctx.fillStyle=bA(Hb),this.ctx.fill(),this.ctx.restore()):n.type===tu&&n.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(n.bounds.left+h/2,n.bounds.top+h/2,h/4,0,Math.PI*2,!0),this.ctx.fillStyle=bA(Hb),this.ctx.fill(),this.ctx.restore())),v3(n)&&n.value.length){switch(m=this.createFontStyle(i),C=m[0],g=m[1],B=this.fontMetrics.getMetrics(C,g).baseline,this.ctx.font=C,this.ctx.fillStyle=bA(i.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=Q3(n.styles.textAlign),D=uu(n),y=0,n.styles.textAlign){case 1:y+=D.width/2;break;case 2:y+=D.width;break}v=D.add(y,0,0,-D.height/2+1),this.ctx.save(),this.path([new Se(D.left,D.top),new Se(D.left+D.width,D.top),new Se(D.left+D.width,D.top+D.height),new Se(D.left,D.top+D.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new zs(n.value,v),i.letterSpacing,B),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!uA(n.styles.display,2048))return[3,20];if(n.styles.listStyleImage===null)return[3,19];if(Q=n.styles.listStyleImage,Q.type!==0)return[3,18];k=void 0,F=Q.url,E.label=15;case 15:return E.trys.push([15,17,,18]),[4,this.context.cache.match(F)];case 16:return k=E.sent(),this.ctx.drawImage(k,n.bounds.left-(k.width+10),n.bounds.top),[3,18];case 17:return E.sent(),this.context.logger.error("Error loading list-style-image "+F),[3,18];case 18:return[3,20];case 19:A.listValue&&n.styles.listStyleType!==-1&&(C=this.createFontStyle(i)[0],this.ctx.font=C,this.ctx.fillStyle=bA(i.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",D=new $r(n.bounds.left,n.bounds.top+Mt(n.styles.paddingTop,n.bounds.width),n.bounds.width,mb(i.lineHeight,i.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new zs(A.listValue,D),i.letterSpacing,mb(i.lineHeight,i.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),E.label=20;case 20:return[2]}})})},e.prototype.renderStackContent=function(A){return ZA(this,void 0,void 0,function(){var n,r,Q,i,a,Q,s,c,Q,d,f,Q,h,m,Q,g,B,Q,y,v,Q;return HA(this,function(k){switch(k.label){case 0:if(uA(A.element.container.flags,16))debugger;return[4,this.renderNodeBackgroundAndBorders(A.element)];case 1:k.sent(),n=0,r=A.negativeZIndex,k.label=2;case 2:return n<r.length?(Q=r[n],[4,this.renderStack(Q)]):[3,5];case 3:k.sent(),k.label=4;case 4:return n++,[3,2];case 5:return[4,this.renderNodeContent(A.element)];case 6:k.sent(),i=0,a=A.nonInlineLevel,k.label=7;case 7:return i<a.length?(Q=a[i],[4,this.renderNode(Q)]):[3,10];case 8:k.sent(),k.label=9;case 9:return i++,[3,7];case 10:s=0,c=A.nonPositionedFloats,k.label=11;case 11:return s<c.length?(Q=c[s],[4,this.renderStack(Q)]):[3,14];case 12:k.sent(),k.label=13;case 13:return s++,[3,11];case 14:d=0,f=A.nonPositionedInlineLevel,k.label=15;case 15:return d<f.length?(Q=f[d],[4,this.renderStack(Q)]):[3,18];case 16:k.sent(),k.label=17;case 17:return d++,[3,15];case 18:h=0,m=A.inlineLevel,k.label=19;case 19:return h<m.length?(Q=m[h],[4,this.renderNode(Q)]):[3,22];case 20:k.sent(),k.label=21;case 21:return h++,[3,19];case 22:g=0,B=A.zeroOrAutoZIndexOrTransformedOrOpacity,k.label=23;case 23:return g<B.length?(Q=B[g],[4,this.renderStack(Q)]):[3,26];case 24:k.sent(),k.label=25;case 25:return g++,[3,23];case 26:y=0,v=A.positiveZIndex,k.label=27;case 27:return y<v.length?(Q=v[y],[4,this.renderStack(Q)]):[3,30];case 28:k.sent(),k.label=29;case 29:return y++,[3,27];case 30:return[2]}})})},e.prototype.mask=function(A){this.ctx.beginPath(),this.ctx.moveTo(0,0),this.ctx.lineTo(this.canvas.width,0),this.ctx.lineTo(this.canvas.width,this.canvas.height),this.ctx.lineTo(0,this.canvas.height),this.ctx.lineTo(0,0),this.formatPath(A.slice(0).reverse()),this.ctx.closePath()},e.prototype.path=function(A){this.ctx.beginPath(),this.formatPath(A),this.ctx.closePath()},e.prototype.formatPath=function(A){var n=this;A.forEach(function(r,i){var a=Mn(r)?r.start:r;i===0?n.ctx.moveTo(a.x,a.y):n.ctx.lineTo(a.x,a.y),Mn(r)&&n.ctx.bezierCurveTo(r.startControl.x,r.startControl.y,r.endControl.x,r.endControl.y,r.end.x,r.end.y)})},e.prototype.renderRepeat=function(A,n,r,i){this.path(A),this.ctx.fillStyle=n,this.ctx.translate(r,i),this.ctx.fill(),this.ctx.translate(-r,-i)},e.prototype.resizeImage=function(A,n,r){var i;if(A.width===n&&A.height===r)return A;var a=(i=this.canvas.ownerDocument)!==null&&i!==void 0?i:document,s=a.createElement("canvas");s.width=Math.max(1,n),s.height=Math.max(1,r);var c=s.getContext("2d");return c.drawImage(A,0,0,A.width,A.height,0,0,n,r),s},e.prototype.renderBackgroundImage=function(A){return ZA(this,void 0,void 0,function(){var n,r,i,a,s,c;return HA(this,function(d){switch(d.label){case 0:n=A.styles.backgroundImage.length-1,r=function(f){var h,m,g,K,$,re,ge,V,O,B,K,$,re,ge,V,y,v,Q,k,F,C,D,E,x,O,S,K,de,ce,ge,V,X,$,re,te,q,me,j,Ee,R,J,Ae;return HA(this,function(se){switch(se.label){case 0:if(f.type!==0)return[3,5];h=void 0,m=f.url,se.label=1;case 1:return se.trys.push([1,3,,4]),[4,i.context.cache.match(m)];case 2:return h=se.sent(),[3,4];case 3:return se.sent(),i.context.logger.error("Error loading background-image "+m),[3,4];case 4:return h&&(g=gp(A,n,[h.width,h.height,h.width/h.height]),K=g[0],$=g[1],re=g[2],ge=g[3],V=g[4],O=i.ctx.createPattern(i.resizeImage(h,ge,V),"repeat"),i.renderRepeat(K,O,$,re)),[3,6];case 5:s2(f)?(B=gp(A,n,[null,null,null]),K=B[0],$=B[1],re=B[2],ge=B[3],V=B[4],y=n2(f.angle,ge,V),v=y[0],Q=y[1],k=y[2],F=y[3],C=y[4],D=document.createElement("canvas"),D.width=ge,D.height=V,E=D.getContext("2d"),x=E.createLinearGradient(Q,F,k,C),ib(f.stops,v).forEach(function(U){return x.addColorStop(U.stop,bA(U.color))}),E.fillStyle=x,E.fillRect(0,0,ge,V),ge>0&&V>0&&(O=i.ctx.createPattern(D,"repeat"),i.renderRepeat(K,O,$,re))):l2(f)&&(S=gp(A,n,[null,null,null]),K=S[0],de=S[1],ce=S[2],ge=S[3],V=S[4],X=f.position.length===0?[Kh]:f.position,$=Mt(X[0],ge),re=Mt(X[X.length-1],V),te=r2(f,$,re,ge,V),q=te[0],me=te[1],q>0&&me>0&&(j=i.ctx.createRadialGradient(de+$,ce+re,0,de+$,ce+re,q),ib(f.stops,q*2).forEach(function(U){return j.addColorStop(U.stop,bA(U.color))}),i.path(K),i.ctx.fillStyle=j,q!==me?(Ee=A.bounds.left+.5*A.bounds.width,R=A.bounds.top+.5*A.bounds.height,J=me/q,Ae=1/J,i.ctx.save(),i.ctx.translate(Ee,R),i.ctx.transform(1,0,0,J,0,0),i.ctx.translate(-Ee,-R),i.ctx.fillRect(de,Ae*(ce-R)+R,ge,V*Ae),i.ctx.restore()):i.ctx.fill())),se.label=6;case 6:return n--,[2]}})},i=this,a=0,s=A.styles.backgroundImage.slice(0).reverse(),d.label=1;case 1:return a<s.length?(c=s[a],[5,r(c)]):[3,4];case 2:d.sent(),d.label=3;case 3:return a++,[3,1];case 4:return[2]}})})},e.prototype.renderSolidBorder=function(A,n,r){return ZA(this,void 0,void 0,function(){return HA(this,function(i){return this.path(hv(r,n)),this.ctx.fillStyle=bA(A),this.ctx.fill(),[2]})})},e.prototype.renderDoubleBorder=function(A,n,r,i){return ZA(this,void 0,void 0,function(){var a,s;return HA(this,function(c){switch(c.label){case 0:return n<3?[4,this.renderSolidBorder(A,r,i)]:[3,2];case 1:return c.sent(),[2];case 2:return a=d3(i,r),this.path(a),this.ctx.fillStyle=bA(A),this.ctx.fill(),s=f3(i,r),this.path(s),this.ctx.fill(),[2]}})})},e.prototype.renderNodeBackgroundAndBorders=function(A){return ZA(this,void 0,void 0,function(){var n,r,i,a,s,c,d,f,h=this;return HA(this,function(m){switch(m.label){case 0:return this.applyEffects(A.getEffects(2)),n=A.container.styles,r=!Di(n.backgroundColor)||n.backgroundImage.length,i=[{style:n.borderTopStyle,color:n.borderTopColor,width:n.borderTopWidth},{style:n.borderRightStyle,color:n.borderRightColor,width:n.borderRightWidth},{style:n.borderBottomStyle,color:n.borderBottomColor,width:n.borderBottomWidth},{style:n.borderLeftStyle,color:n.borderLeftColor,width:n.borderLeftWidth}],a=E3(_o(n.backgroundClip,0),A.curves),r||n.boxShadow.length?(this.ctx.save(),this.path(a),this.ctx.clip(),Di(n.backgroundColor)||(this.ctx.fillStyle=bA(n.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(A.container)]):[3,2];case 1:m.sent(),this.ctx.restore(),n.boxShadow.slice(0).reverse().forEach(function(g){h.ctx.save();var B=ou(A.curves),y=g.inset?0:C3,v=c3(B,-y+(g.inset?1:-1)*g.spread.number,(g.inset?1:-1)*g.spread.number,g.spread.number*(g.inset?-2:2),g.spread.number*(g.inset?-2:2));g.inset?(h.path(B),h.ctx.clip(),h.mask(v)):(h.mask(B),h.ctx.clip(),h.path(v)),h.ctx.shadowOffsetX=g.offsetX.number+y,h.ctx.shadowOffsetY=g.offsetY.number,h.ctx.shadowColor=bA(g.color),h.ctx.shadowBlur=g.blur.number,h.ctx.fillStyle=g.inset?bA(g.color):"rgba(0,0,0,1)",h.ctx.fill(),h.ctx.restore()}),m.label=2;case 2:s=0,c=0,d=i,m.label=3;case 3:return c<d.length?(f=d[c],f.style!==0&&!Di(f.color)&&f.width>0?f.style!==2?[3,5]:[4,this.renderDashedDottedBorder(f.color,f.width,s,A.curves,2)]:[3,11]):[3,13];case 4:return m.sent(),[3,11];case 5:return f.style!==3?[3,7]:[4,this.renderDashedDottedBorder(f.color,f.width,s,A.curves,3)];case 6:return m.sent(),[3,11];case 7:return f.style!==4?[3,9]:[4,this.renderDoubleBorder(f.color,f.width,s,A.curves)];case 8:return m.sent(),[3,11];case 9:return[4,this.renderSolidBorder(f.color,s,A.curves)];case 10:m.sent(),m.label=11;case 11:s++,m.label=12;case 12:return c++,[3,3];case 13:return[2]}})})},e.prototype.renderDashedDottedBorder=function(A,n,r,i,a){return ZA(this,void 0,void 0,function(){var s,c,d,f,h,m,g,B,y,v,Q,k,F,C,D,E,D,E;return HA(this,function(x){return this.ctx.save(),s=h3(i,r),c=hv(i,r),a===2&&(this.path(c),this.ctx.clip()),Mn(c[0])?(d=c[0].start.x,f=c[0].start.y):(d=c[0].x,f=c[0].y),Mn(c[1])?(h=c[1].end.x,m=c[1].end.y):(h=c[1].x,m=c[1].y),r===0||r===2?g=Math.abs(d-h):g=Math.abs(f-m),this.ctx.beginPath(),a===3?this.formatPath(s):this.formatPath(c.slice(0,2)),B=n<3?n*3:n*2,y=n<3?n*2:n,a===3&&(B=n,y=n),v=!0,g<=B*2?v=!1:g<=B*2+y?(Q=g/(2*B+y),B*=Q,y*=Q):(k=Math.floor((g+y)/(B+y)),F=(g-k*B)/(k-1),C=(g-(k+1)*B)/k,y=C<=0||Math.abs(y-F)<Math.abs(y-C)?F:C),v&&(a===3?this.ctx.setLineDash([0,B+y]):this.ctx.setLineDash([B,y])),a===3?(this.ctx.lineCap="round",this.ctx.lineWidth=n):this.ctx.lineWidth=n*2+1.1,this.ctx.strokeStyle=bA(A),this.ctx.stroke(),this.ctx.setLineDash([]),a===2&&(Mn(c[0])&&(D=c[3],E=c[0],this.ctx.beginPath(),this.formatPath([new Se(D.end.x,D.end.y),new Se(E.start.x,E.start.y)]),this.ctx.stroke()),Mn(c[1])&&(D=c[1],E=c[2],this.ctx.beginPath(),this.formatPath([new Se(D.end.x,D.end.y),new Se(E.start.x,E.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]})})},e.prototype.render=function(A){return ZA(this,void 0,void 0,function(){var n;return HA(this,function(r){switch(r.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=bA(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),n=u3(A),[4,this.renderStack(n)];case 1:return r.sent(),this.applyEffects([]),[2,this.canvas]}})})},e}(gv),v3=function(t){return t instanceof Pb||t instanceof Rb?!0:t instanceof ap&&t.type!==tu&&t.type!==eu},E3=function(t,e){switch(t){case 0:return ou(e);case 2:return i3(e);case 1:default:return su(e)}},Q3=function(t){switch(t){case 1:return"center";case 2:return"right";case 0:default:return"left"}},F3=["-apple-system","system-ui"],U3=function(t){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?t.filter(function(e){return F3.indexOf(e)===-1}):t},k3=function(t){rr(e,t);function e(A,n){var r=t.call(this,A,n)||this;return r.canvas=n.canvas?n.canvas:document.createElement("canvas"),r.ctx=r.canvas.getContext("2d"),r.options=n,r.canvas.width=Math.floor(n.width*n.scale),r.canvas.height=Math.floor(n.height*n.scale),r.canvas.style.width=n.width+"px",r.canvas.style.height=n.height+"px",r.ctx.scale(r.options.scale,r.options.scale),r.ctx.translate(-n.x,-n.y),r.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+n.width+"x"+n.height+" at "+n.x+","+n.y+") with scale "+n.scale),r}return e.prototype.render=function(A){return ZA(this,void 0,void 0,function(){var n,r;return HA(this,function(i){switch(i.label){case 0:return n=np(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,A),[4,_3(n)];case 1:return r=i.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=bA(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(r,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}})})},e}(gv),_3=function(t){return new Promise(function(e,A){var n=new Image;n.onload=function(){e(n)},n.onerror=A,n.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(t))})},I3=function(){function t(e){var A=e.id,n=e.enabled;this.id=A,this.enabled=n,this.start=Date.now()}return t.prototype.debug=function(){for(var e=[],A=0;A<arguments.length;A++)e[A]=arguments[A];this.enabled&&(typeof window<"u"&&window.console&&typeof console.debug=="function"?console.debug.apply(console,yc([this.id,this.getTime()+"ms"],e)):this.info.apply(this,e))},t.prototype.getTime=function(){return Date.now()-this.start},t.prototype.info=function(){for(var e=[],A=0;A<arguments.length;A++)e[A]=arguments[A];this.enabled&&typeof window<"u"&&window.console&&typeof console.info=="function"&&console.info.apply(console,yc([this.id,this.getTime()+"ms"],e))},t.prototype.warn=function(){for(var e=[],A=0;A<arguments.length;A++)e[A]=arguments[A];this.enabled&&(typeof window<"u"&&window.console&&typeof console.warn=="function"?console.warn.apply(console,yc([this.id,this.getTime()+"ms"],e)):this.info.apply(this,e))},t.prototype.error=function(){for(var e=[],A=0;A<arguments.length;A++)e[A]=arguments[A];this.enabled&&(typeof window<"u"&&window.console&&typeof console.error=="function"?console.error.apply(console,yc([this.id,this.getTime()+"ms"],e)):this.info.apply(this,e))},t.instances={},t}(),S3=function(){function t(e,A){var n;this.windowBounds=A,this.instanceName="#"+t.instanceCount++,this.logger=new I3({id:this.instanceName,enabled:e.logging}),this.cache=(n=e.cache)!==null&&n!==void 0?n:new qK(this,e)}return t.instanceCount=1,t}(),T3=function(t,e){return e===void 0&&(e={}),x3(t,e)};typeof window<"u"&&sv.setContext(window);var x3=function(t,e){return ZA(void 0,void 0,void 0,function(){var A,n,r,i,a,s,c,d,f,h,m,g,B,y,v,Q,k,F,C,D,x,E,x,O,S,K,de,ce,ge,V,X,$,re,te,q,me,j,Ee,R,J;return HA(this,function(Ae){switch(Ae.label){case 0:if(!t||typeof t!="object")return[2,Promise.reject("Invalid element provided as first argument")];if(A=t.ownerDocument,!A)throw new Error("Element is not attached to a Document");if(n=A.defaultView,!n)throw new Error("Document is not attached to a Window");return r={allowTaint:(O=e.allowTaint)!==null&&O!==void 0?O:!1,imageTimeout:(S=e.imageTimeout)!==null&&S!==void 0?S:15e3,proxy:e.proxy,useCORS:(K=e.useCORS)!==null&&K!==void 0?K:!1},i=bh({logging:(de=e.logging)!==null&&de!==void 0?de:!0,cache:e.cache},r),a={windowWidth:(ce=e.windowWidth)!==null&&ce!==void 0?ce:n.innerWidth,windowHeight:(ge=e.windowHeight)!==null&&ge!==void 0?ge:n.innerHeight,scrollX:(V=e.scrollX)!==null&&V!==void 0?V:n.pageXOffset,scrollY:(X=e.scrollY)!==null&&X!==void 0?X:n.pageYOffset},s=new $r(a.scrollX,a.scrollY,a.windowWidth,a.windowHeight),c=new S3(i,s),d=($=e.foreignObjectRendering)!==null&&$!==void 0?$:!1,f={allowTaint:(re=e.allowTaint)!==null&&re!==void 0?re:!1,onclone:e.onclone,ignoreElements:e.ignoreElements,inlineImages:d,copyStyles:d},c.logger.debug("Starting document clone with size "+s.width+"x"+s.height+" scrolled to "+-s.left+","+-s.top),h=new av(c,t,f),m=h.clonedReferenceElement,m?[4,h.toIFrame(A,s)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return g=Ae.sent(),B=sp(m)||DK(m)?cP(m.ownerDocument):Cc(c,m),y=B.width,v=B.height,Q=B.left,k=B.top,F=D3(c,m,e.backgroundColor),C={canvas:e.canvas,backgroundColor:F,scale:(q=(te=e.scale)!==null&&te!==void 0?te:n.devicePixelRatio)!==null&&q!==void 0?q:1,x:((me=e.x)!==null&&me!==void 0?me:0)+Q,y:((j=e.y)!==null&&j!==void 0?j:0)+k,width:(Ee=e.width)!==null&&Ee!==void 0?Ee:Math.ceil(y),height:(R=e.height)!==null&&R!==void 0?R:Math.ceil(v)},d?(c.logger.debug("Document cloned, using foreign object rendering"),x=new k3(c,C),[4,x.render(m)]):[3,3];case 2:return D=Ae.sent(),[3,5];case 3:return c.logger.debug("Document cloned, element located at "+Q+","+k+" with size "+y+"x"+v+" using computed rendering"),c.logger.debug("Starting DOM parsing"),E=$b(c,m),F===E.styles.backgroundColor&&(E.styles.backgroundColor=Wr.TRANSPARENT),c.logger.debug("Starting renderer for element at "+C.x+","+C.y+" with size "+C.width+"x"+C.height),x=new b3(c,C),[4,x.render(E)];case 4:D=Ae.sent(),Ae.label=5;case 5:return(!((J=e.removeContainer)!==null&&J!==void 0)||J)&&(av.destroy(g)||c.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),c.logger.debug("Finished rendering"),[2,D]}})})},D3=function(t,e,A){var n=e.ownerDocument,r=n.documentElement?Gs(t,getComputedStyle(n.documentElement).backgroundColor):Wr.TRANSPARENT,i=n.body?Gs(t,getComputedStyle(n.body).backgroundColor):Wr.TRANSPARENT,a=typeof A=="string"?Gs(t,A):A===null?Wr.TRANSPARENT:4294967295;return e===n.documentElement?Di(r)?Di(i)?a:i:r:a};const M3=o.defineComponent({__name:"dom-renderer",props:{modelValue:{type:String,default:""},fixedWidth:{type:Number,default:0},renderUpdates:{type:Boolean,default:!1},exportToSvg:{type:Boolean,default:!1},options:{type:Object,default:()=>({})},pending:{type:Boolean,default:!1},debug:{type:Boolean,default:!1}},emits:["update:modelValue","update:pending"],setup(t,{emit:e}){const A=t,n=e,r=o.ref(),i=o.ref(""),a=o.ref();async function s(){if(r.value){n("update:pending",!0);const d=r.value,h=(await T3(d.firstElementChild,{backgroundColor:"rgba(0, 0, 0, 0)",scale:1,width:d.offsetWidth,height:d.offsetHeight,...A.options})).toDataURL();if(n("update:modelValue",h),n("update:pending",!1),A.debug){const m=new Image;m.src=h,document.body.appendChild(m)}return h}return""}const c=aC.debounce(async()=>{i.value=await s()},300,{trailing:!0,leading:!1});return o.onMounted(()=>{const d=r.value;A.renderUpdates&&(a.value=new MutationObserver(async f=>{c()}),a.value.observe(d,{attributes:!0,childList:!0,characterData:!0,subtree:!0})),setTimeout(()=>{c()},500)}),(d,f)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["dom-renderer",{"off-screen":!t.debug}]),ref_key:"renderer",ref:r,style:o.normalizeStyle(t.fixedWidth>0?{width:`${t.fixedWidth}px`}:{})},[o.renderSlot(d.$slots,"default")],6))}}),O3={class:"link-sharing"},N3={key:0,class:"link-sharing__links container"},L3={class:"row"},H3={key:0,class:"col-12 col-md-6"},R3=["href"],P3={class:"caption"},V3={key:1,class:"col-12 col-md-6"},K3=["href"],$3={class:"caption"},G3={key:2,class:"col-12 col-md-6"},W3={class:"caption"},Y3={key:3,class:"col-12 col-md-6"},z3=["href"],J3={class:"caption"},X3={key:4,class:"col-12 col-md-6"},q3=["href"],j3={class:"caption"},Z3={key:5,class:"col-12 col-md-6"},e$={class:"caption"},t$={key:6,class:"col-12 col-md-6"},A$=["href"],n$={class:"caption"},r$={key:1,class:"link-sharing__instructions pt-5"},i$={class:"row"},a$={class:"col-12 text-center py-0"},o$={class:"mb-5"},s$=t=>t.replace(/<(?:.|\n)*?>/gm,""),l$=o.defineComponent({__name:"link-sharing",props:{url:{type:String,default:""},subject:{type:String,default:""},hashtags:Array,text:{type:String,default:""},media:{type:String,default:""},services:{type:Object,default:{facebook:!0,instagram:!0,linkedin:!0,whatsapp:!0,mailto:!0,clipboard:!0,bluesky:!0}}},setup(t){const e=t,A=o.ref(!1),n=o.computed(()=>encodeURIComponent(e.url));o.computed(()=>encodeURIComponent(e.media));const r=o.computed(()=>s$(e.text)),i=o.computed(()=>!!(navigator&&navigator.userAgent&&/Mobi|Android/i.test(navigator.userAgent)));async function a(){const s=document.createElement("textarea");document.body.appendChild(s),s.value=e.url,s.select(),s.setSelectionRange(0,99999),navigator.clipboard.writeText(s.value),document.body.removeChild(s)}return(s,c)=>{const d=o.resolveComponent("svg-icon");return o.openBlock(),o.createElementBlock("div",O3,[A.value?(o.openBlock(),o.createElementBlock("div",r$,[o.createElementVNode("div",i$,[o.createElementVNode("div",a$,[o.createElementVNode("div",o$,[o.createElementVNode("p",null,o.toDisplayString(s.$t("sharing.instructions",{service:"Instagram"})),1),o.createElementVNode("p",null,[o.createElementVNode("strong",null,o.toDisplayString(t.hashtags),1)])])])])])):(o.openBlock(),o.createElementBlock("div",N3,[o.createElementVNode("div",L3,[t.services.facebook?(o.openBlock(),o.createElementBlock("div",H3,[o.createElementVNode("a",{class:"link-sharing__link btn btn-primary",href:`https://www.facebook.com/sharer.php?u=${n.value}`,target:"_blank",rel:"noopener"},[o.createVNode(d,{symbol:"facebook"}),o.createElementVNode("span",P3,o.toDisplayString(s.$t("sharing.facebook")),1)],8,R3)])):o.createCommentVNode("",!0),t.services.bluesky?(o.openBlock(),o.createElementBlock("div",V3,[o.createElementVNode("a",{class:"link-sharing__link btn btn-primary",href:`https://bsky.app/intent/compose?text=${r.value}${r.value?"%20":""}${t.url}`,target:"_blank",rel:"noopener"},[o.createVNode(d,{symbol:"bluesky-logo"}),o.createElementVNode("span",$3,o.toDisplayString(s.$t("sharing.bluesky")),1)],8,K3)])):o.createCommentVNode("",!0),t.services.instagram?(o.openBlock(),o.createElementBlock("div",G3,[o.createElementVNode("button",{type:"button",class:"link-sharing__link btn btn-primary",onClick:c[0]||(c[0]=o.withModifiers(f=>A.value=!A.value,["prevent"]))},[o.createVNode(d,{symbol:"instagram"}),o.createElementVNode("span",W3,o.toDisplayString(s.$t("sharing.instagram")),1)])])):o.createCommentVNode("",!0),t.services.linkedin?(o.openBlock(),o.createElementBlock("div",Y3,[o.createElementVNode("a",{class:"link-sharing__link btn btn-primary",href:`https://www.linkedin.com/shareArticle?mini=true&url=${n.value}&title=${t.subject}`,target:"_blank",rel:"noopener"},[o.createVNode(d,{symbol:"linkedin"}),o.createElementVNode("span",J3,o.toDisplayString(s.$t("sharing.linkedin")),1)],8,z3)])):o.createCommentVNode("",!0),t.services.whatsapp&&i.value?(o.openBlock(),o.createElementBlock("div",X3,[o.createElementVNode("a",{class:"link-sharing__link btn btn-primary",href:`whatsapp://send?text=${n.value}`,target:"_blank",rel:"noopener"},[o.createVNode(d,{symbol:"whatsapp"}),o.createElementVNode("span",j3,o.toDisplayString(s.$t("sharing.whatsapp")),1)],8,q3)])):o.createCommentVNode("",!0),t.services.clipboard?(o.openBlock(),o.createElementBlock("div",Z3,[o.createElementVNode("button",{type:"button",class:"link-sharing__link btn btn-primary",onClick:o.withModifiers(a,["prevent","stop"])},[o.createVNode(d,{symbol:"copy"}),o.createElementVNode("span",e$,o.toDisplayString(s.$t("sharing.clipboard")),1)])])):o.createCommentVNode("",!0),t.services.mailto?(o.openBlock(),o.createElementBlock("div",t$,[o.createElementVNode("a",{class:"link-sharing__link btn btn-primary",href:`mailto:?subject=${t.subject}&body=${r.value}%0D%0A${t.url}`,target:"_blank",rel:"noopener"},[o.createVNode(d,{symbol:"mail"}),o.createElementVNode("span",n$,o.toDisplayString(s.$t("sharing.mailto")),1)],8,A$)])):o.createCommentVNode("",!0)])]))])}}}),NJ="",c$={class:"base-form"},u$=o.defineComponent({__name:"base-form",props:{id:{},name:{},variant:{},disabled:{type:Boolean},pending:{type:Boolean}},setup(t){function e(r){console.log("input",r)}function A(r){console.log("reset",r)}function n(r){console.log("submit",r)}return(r,i)=>(o.openBlock(),o.createElementBlock("div",c$,[o.createElementVNode("form",{ref:"form",onInput:e,onReset:A,onSubmit:o.withModifiers(n,["prevent"])},[o.renderSlot(r.$slots,"default")],544)]))}}),LJ="",d$={class:"modal-dialog__content d-flex flex-column"},f$={class:"modal-dialog__header d-flex p-3 border-bottom"},h$={key:0,class:"modal-dialog__title",id:"exampleModalLabel"},p$={class:"modal-dialog__body"},m$={key:0,class:"modal-dialog__footer d-flex p-3 border-top"},g$=o.defineComponent({__name:"modal-dialog",props:{modelValue:{type:Boolean,default:!1},modal:{type:Boolean,default:!0},size:{type:String,default:"md"},dismiss:{type:Boolean,default:!0},title:{type:String,default:""},footer:{type:Boolean,default:!0},classes:{type:String,default:""}},emits:["update:modelValue","confirm","cancel"],setup(t,{expose:e,emit:A}){const n=t,r=A,i=o.ref();function a(){var m,g;document.documentElement.style.setProperty("--scroll-position",`${Math.round(document.documentElement.scrollTop)}px`),n.modal?(m=i.value)==null||m.showModal():(g=i.value)==null||g.show(),r("update:modelValue",!0)}function s(){const m=i.value&&new KeyframeEffect(i.value,[{translate:"0 -100%",opacity:"0"}],{duration:320,easing:"ease",direction:"normal"}),g=new Animation(m,document.timeline);g.play(),g.addEventListener("finish",()=>{var B;(B=i.value)==null||B.close(),c()}),r("update:modelValue",!1)}function c(){const m=getComputedStyle(document.documentElement).getPropertyValue("--scroll-position");document.documentElement.scrollTo({top:parseInt(m,10),behavior:"instant"}),r("update:modelValue",!1)}function d(m){a(),r("confirm",m)}function f(){s(),r("cancel")}function h(m){const g=m.target;g&&g.nodeName==="DIALOG"&&s()}return o.watch(()=>n.modelValue,(m,g)=>{m&&m!==g?a():g&&s()},{immediate:!0}),o.onMounted(()=>{var m;(m=i.value)==null||m.addEventListener("cancel",g=>{g.preventDefault(),s()}),n.dismiss&&document.addEventListener("click",h),n.modelValue&&a()}),o.onBeforeUnmount(()=>{n.dismiss&&document.removeEventListener("click",h)}),e({show:a,close:s,confirm:d,cancel:f}),(m,g)=>(o.openBlock(),o.createElementBlock("dialog",{ref_key:"dialog",ref:i,class:o.normalizeClass(["modal-dialog",{[`modal-dialog--${t.size}`]:t.size}]),onClose:c},[o.createElementVNode("div",d$,[o.createElementVNode("div",f$,[t.title?(o.openBlock(),o.createElementBlock("h5",h$,o.toDisplayString(t.title),1)):o.createCommentVNode("",!0),o.createElementVNode("button",{type:"button",class:"btn-close ms-auto border-radius-none","aria-label":"Close",onClick:s})]),o.createElementVNode("div",p$,[o.renderSlot(m.$slots,"default")]),t.footer?(o.openBlock(),o.createElementBlock("div",m$,[o.renderSlot(m.$slots,"footer"),o.createElementVNode("button",{type:"button",class:"btn ms-auto",onClick:s},o.toDisplayString(m.$t("common.close")),1)])):o.createCommentVNode("",!0)])],34))}}),HJ="",B$=["onDragenter","onDragover","onDragleave","onDragend","onDrop","innerHTML"],w$=["onDragstart","onDrag","onDragenter","onDragover","onDragleave","onDragend","onDrop"],y$={key:0,class:"sortable-list__drag-handle"},C$={type:"button",class:"btn"},b$={key:0,class:"sortable-list__item"},v$=o.defineComponent({__name:"sortable-list",props:{modelValue:{type:Array,default:()=>[]},config:{type:Object,default:null},messages:{type:Object,default:{}},vertical:{type:Boolean,default:!0},showDragHandle:{type:Boolean,default:!1},showPreview:{type:Boolean,default:!0}},emits:["update:modelValue"],setup(t,{emit:e}){const A=t,n=o.ref(!1),r=o.ref(null),i=o.ref(null),a=e,s=o.computed({get(){return A.modelValue},set(k){a("update:modelValue",k)}}),c=o.computed(()=>{var k;return(k=document.querySelector(".is-drag-item"))==null?void 0:k.outerHTML}),d=o.useSlots(),f=o.computed(()=>d["list-append"]);function h(k,F){k.dataTransfer&&(k.dataTransfer.dropEffect="move",k.dataTransfer.effectAllowed="move",k.dataTransfer.setData("index",F.toLocaleString()),n.value=!0,r.value=F)}function m(k,F){n.value=!1,r.value=null,i.value=null}function g(k,F){}function B(k,F){i.value=r.value!==F?F:null}function y(k,F){}function v(k,F){}function Q(k,F){if(k.dataTransfer){k.preventDefault();const C=Number(k.dataTransfer.getData("index")),D=F,E=[...s.value];(D||D===0)&&(C||C===0)&&E.splice(D,0,E.splice(C,1)[0]),s.value=E}}return(k,F)=>{const C=o.resolveComponent("svg-icon");return o.openBlock(),o.createBlock(o.TransitionGroup,{name:"list",tag:"ul",class:o.normalizeClass(["sortable-list p-0 d-flex gap-2",{"flex-column":t.vertical,"flex-row flex-wrap":!t.vertical}]),onDragover:F[0]||(F[0]=o.withModifiers(()=>{},["prevent"])),onDragenter:F[1]||(F[1]=o.withModifiers(()=>{},["prevent"]))},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(s.value,(D,E)=>(o.openBlock(),o.createElementBlock(o.Fragment,{key:E},[t.showPreview&&n.value&&i.value===E?(o.openBlock(),o.createElementBlock("li",{key:0,class:"sortable-list__item is-drop-target",onDragenter:x=>B(x,E),onDragover:x=>void 0,onDragleave:x=>void 0,onDragend:x=>m(),onDrop:x=>Q(x,E),innerHTML:c.value},null,40,B$)):o.createCommentVNode("",!0),o.createElementVNode("li",{class:o.normalizeClass(["sortable-list__item d-flex",{"is-drag-item":n.value&&r.value===E,"is-drop-target":n.value&&i.value===E&&!t.showPreview,"align-items-center gap-2":t.vertical}]),draggable:!0,onDragstart:x=>h(x,E),onDrag:x=>void 0,onDragenter:x=>B(x,E),onDragover:x=>void 0,onDragleave:x=>void 0,onDragend:x=>m(),onDrop:x=>Q(x,E)},[t.showDragHandle?(o.openBlock(),o.createElementBlock("div",y$,[o.createElementVNode("button",C$,[o.createVNode(C,{symbol:"drag"})])])):o.createCommentVNode("",!0),o.createElementVNode("div",{class:o.normalizeClass(["sortable-list__item-content",{"flex-grow-1":t.vertical}])},[o.renderSlot(k.$slots,"list-item",{item:D,index:E},()=>[o.createTextVNode(o.toDisplayString(D),1)])],2)],42,w$)],64))),128)),f.value?(o.openBlock(),o.createElementBlock("li",b$,[o.renderSlot(k.$slots,"list-append")])):o.createCommentVNode("",!0)]),_:3},8,["class"])}}}),RJ="",E$={class:"touch-wrapper__controls"},Q$={class:"btn-group",role:"group"},F$=o.defineComponent({__name:"touch-wrapper",props:{modelValue:{type:Number,default:1}},emits:["update:modelValue"],setup(t,{emit:e}){const A=o.getCurrentInstance(),n=A&&A.appContext.config.globalProperties.$config,r=t,i=e,a=o.ref();function s(f){const h=r.modelValue+f;i("update:modelValue",f===0?1:h>=1?h:1)}function c(f){if(f.ctrlKey){f.preventDefault();const h=0-f.deltaY*.01;s(h)}}function d(f){f.preventDefault();const{scale:h}=f,m=h>1?h*.01:0-h;s(m)}return o.onMounted(()=>{a.value&&(a.value.addEventListener("wheel",c,!1),a.value.addEventListener("gesturestart",d,!1),a.value.addEventListener("gesturechange",d,!1),a.value.addEventListener("gestureend",d,!1))}),(f,h)=>{const m=o.resolveComponent("svg-icon");return o.openBlock(),o.createElementBlock("div",{ref_key:"touchElement",ref:a,class:"touch-wrapper"},[o.renderSlot(f.$slots,"controls",{on:{setScale:s}},()=>[o.createElementVNode("div",E$,[o.createElementVNode("div",Q$,[o.createElementVNode("button",{type:"button",class:"btn",onClick:h[0]||(h[0]=g=>s(-1))},[o.createVNode(m,{symbol:"minus","base-path":o.unref(n).iconSprite},null,8,["base-path"])]),o.createElementVNode("button",{type:"button",class:"btn",onClick:h[1]||(h[1]=g=>s(0))},[o.createVNode(m,{symbol:"maximize","base-path":o.unref(n).iconSprite},null,8,["base-path"])]),o.createElementVNode("button",{type:"button",class:"btn",onClick:h[2]||(h[2]=g=>s(1))},[o.createVNode(m,{symbol:"plus","base-path":o.unref(n).iconSprite},null,8,["base-path"])])])])]),o.renderSlot(f.$slots,"default")],512)}}}),PJ="";Xe.Accordion=pQ,Xe.AccordionItem=cQ,Xe.AssetUploader=zR,Xe.AutoSuggest=pH,Xe.BaseButton=gQ,Xe.BaseCamera=MH,Xe.BaseCarousel=pC,Xe.BaseForm=u$,Xe.BaseHeadline=eQ,Xe.BaseImage=j1,Xe.BaseInput=CQ,Xe.BaseParagraph=AQ,Xe.CheckGroup=YS,Xe.ColorPalette=jL,Xe.DomRenderer=M3,Xe.FileUpload=LR,Xe.InputCheckbox=_Q,Xe.InputColor=JL,Xe.InputDatepicker=PS,Xe.InputDatetime=xQ,Xe.InputDropdown=cH,Xe.InputFile=sT,Xe.InputPassword=KS,Xe.InputTextarea=QQ,Xe.LinkSharing=l$,Xe.LoadingSpinner=X1,Xe.MediaThumbnails=eP,Xe.ModalDialog=g$,Xe.ProgressSteps=lP,Xe.RadioButtons=eT,Xe.RadioGroup=xl,Xe.RteEditor=GL,Xe.SelectMedia=uT,Xe.SortableList=v$,Xe.SvgIcon=Y1,Xe.TouchWrapper=F$,Xe.UploadGroup=hC,Object.defineProperty(Xe,Symbol.toStringTag,{value:"Module"})});