ablok-components 0.1.178 → 0.1.180

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,8 +1,8 @@
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 ze(){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:()=>ze()},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:()=>ze()},id:{type:String,default:()=>ze()},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:()=>ze()},id:{type:String,default:()=>ze()},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:()=>ze()},id:{type:String,default:()=>ze()},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:()=>ze()},id:{type:String,default:()=>ze()},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:()=>ze()},id:{type:String,default:()=>ze()},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:()=>ze()},id:{type:String,default:()=>ze()},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",`
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
3
  ${a===t.keyOption||s.key?"form-check-input--key":""}
4
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:()=>ze()},id:{type:String,default:()=>ze()},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:()=>ze()},id:{type:String,default:()=>ze()},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:()=>ze()},id:{type:String,default:()=>ze()},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(`
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
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
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
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(`
@@ -103,49 +103,49 @@ img.ProseMirror-separator {
103
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.",`
104
104
 
105
105
  `,`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(),Xe(),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 Xe(){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,Xe(),!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.",`
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.",`
107
107
 
108
108
  `,"Using a wrapper <div> or <span> tag around the reference element","solves this by creating a new parentNode context.",`
109
109
 
110
110
  `,"Specifying `appendTo: document.body` silences this warning, but it","assumes you are using a focus management solution to handle","keyboard navigation.",`
111
111
 
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"),Xe(),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(),Xe(),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(),Xe(),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.",`
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.",`
113
113
 
114
114
  `,"Instead, pass the .innerHTML of the element, or use a function that","returns a cloned version of the element instead.",`
115
115
 
116
116
  `,`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:()=>ze()},id:{type:String,default:()=>ze()},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:()=>ze()},id:{type:String,default:()=>ze()},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"])]))}}),_$="";/*!
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
118
  * shared v9.13.1
119
119
  * (c) 2024 kazuya kawaguchi
120
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&&$e(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",$e=t=>t!==null&&typeof t=="object",BS=t=>$e(t)&&cA(t.then)&&cA(t.catch),Qm=Object.prototype.toString,Fm=t=>Qm.call(t),_e=t=>{if(!$e(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=>!$e(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]})})}}/*!
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
123
  * message-compiler v9.13.1
124
124
  * (c) 2024 kazuya kawaguchi
125
125
  * Released under the MIT License.
126
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 Xe(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,Xe)}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"?";":`
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
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
129
  * core-base v9.13.1
130
130
  * (c) 2024 kazuya kawaguchi
131
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 $e(t)?t[e]:null}function lT(t,e){if(!$e(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=$e(t.pluralRules)&&te(e)&&cA(t.pluralRules[e])?t.pluralRules[e]:Hm,r=$e(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):$e(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?$e(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:$e(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"&&$e(t)&&"__v_isVNode"in t?t.children.toUpperCase():t,lower:(t,e)=>e==="text"&&te(t)?t.toLowerCase():e==="vnode"&&$e(t)&&"__v_isVNode"in t?t.children.toLowerCase():t,capitalize:(t,e)=>e==="text"&&te(t)?Vm(t):e==="vnode"&&$e(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=$e(t.fallbackContext)?t.fallbackContext:void 0,V=t,D=$e(V.__datetimeFormatters)?V.__datetimeFormatters:new Map,se=$e(V.__numberFormatters)?V.__numberFormatters:new Map,Be=$e(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.
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
133
  reference: https://vue-i18n.intlify.dev/guide/essentials/syntax#rails-i18n-format
134
- (message compiler warning message: ${t.message})`)}const li=t=>$e(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):$e(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}
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
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
136
  * vue-i18n v9.13.1
137
137
  * (c) 2024 kazuya kawaguchi
138
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(!$e(t))return t;for(const e in t)if(Qa(t,e))if(!e.includes("."))$e(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]]={}),!$e(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]),$e(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=$e(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($e(e.datetimeFormats)){const i=Object.keys(e.datetimeFormats);i.length&&i.forEach(s=>{t.mergeDateTimeFormat(s,e.datetimeFormats[s])})}if($e(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 Xe(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&&!$e(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:Xe,[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:$e(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)||$e(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 Xe(...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:Xe,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},label:{type:String},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
+ */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:{}};/**
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,Xe=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,We=k==null?0:k.length;++we<We;){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,We=[];++M<Ae;){var TA=k[M];P(TA,M,k)&&(We[we++]=TA)}return We}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,We=k==null?0:k.length;for(Ae&&We&&(M=k[++we]);++we<We;)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,We,TA){if(P(we,We,TA))return Ae=We,!1}),Ae}function Ol(k,P,M,Ae){for(var we=k.length,We=M+(Ae?1:-1);Ae?We--:++We<we;)if(P(k[We],We,k))return We;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,We=k.length;++we<We;)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:Xe}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(We,TA,sA){M=Ae?(Ae=!1,We):P(M,We,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 We=P(k[Ae]);We!==A&&(M=M===A?We:M+We)}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,We=[];++M<Ae;){var TA=k[M];(TA===P||TA===f)&&(k[M]=f,We[we++]=M)}return We}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,We=P.Function,TA=P.Math,sA=P.Object,pd=P.RegExp,A4=P.String,zt=P.TypeError,kl=M.prototype,t4=We.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)?Xe:+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(Ye(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=Ye(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=(Ye(d)+"e").split("e"),F=l(C[0]+"e"+(+C[1]+m));return C=(Ye(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,`{
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
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 Xe;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)?Xe:+o}function eE(o){return xn(o,Ft(o))}function p2(o){return o?wi(Qe(o),-re,re):o===0?o:0}function Ye(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(Ye(o).toLowerCase())}function oE(o){return o=Ye(o),o&&o.replace(jM,KR).replace(BR,"")}function Z2(o,l,d){o=Ye(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=Ye(o),o&&wo.test(o)?o.replace(Bo,VR):o}function eG(o){return o=Ye(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=Ye(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=Ye(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=Ye(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(Ye(o).replace(Zf,""),l||0)}function aG(o,l,d){return(d?dt(o,l,d):l===A)?l=1:l=Qe(l),Td(Ye(o),l)}function lG(){var o=arguments,l=Ye(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=Ye(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=Ye(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=Ye(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+"]")+`
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
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
150
  __e(`+Te+`) +
151
151
  '`),ht&&(H=!0,J+=`';
@@ -162,7 +162,7 @@ __p += '`),Me&&(J+=`' +
162
162
  function print() { __p += __j.call(arguments, '') }
163
163
  `:`;
164
164
  `)+J+`return __p
165
- }`;var ve=lE(function(){return We(F,le+"return "+J).apply(A,I)});if(ve.source=J,Zd(ve))throw ve;return ve}function pG(o){return Ye(o).toLowerCase()}function gG(o){return Ye(o).toUpperCase()}function mG(o,l,d){if(o=Ye(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=Ye(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=Ye(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=Ye(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,Ye(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=Ye(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=Ye(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(Ye(o)))}function WG(o){var l=++n4;return Ye(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=Ye,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,Xe=me&&me.srcObject&&me.srcObject.getTracks(),{aspectRatio:He,width:Ge,height:Ke}=Xe.length&&Xe[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 Xe=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(Xe,{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)])])])])]),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:()=>ze()},id:{type:String,default:()=>ze()},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:()=>ze()},id:{type:String,default:()=>ze()},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:()=>ze()},id:{type:String,default:()=>ze()},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){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:"carousel__item media-thumbnails__thumbnail",onClick:u=>r(c.index)},[h.createElementVNode("div",cO,[h.createVNode(a,{src:c.item.thumbnail||c.item.src,class:h.normalizeClass(["img-fluid",n.value===c.index?"is-active":""])},null,8,["src","class"])])],8,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$="";/*!
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)])])])])]),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;h.ref(-1);function n(r){A("update:modelValue",r),A("select",r)}return(r,i)=>{const s=h.resolveComponent("base-image");return h.openBlock(),h.createElementBlock("div",aO,[h.createVNode(NB,{items:t.assets},{"carousel-item":h.withCtx(a=>[h.createElementVNode("a",{role:"button",class:"carousel__item media-thumbnails__thumbnail",onClick:c=>n(a.index)},[h.createElementVNode("div",cO,[h.createVNode(s,{src:a.item.thumbnail||a.item.src,class:h.normalizeClass(["img-fluid",t.modelValue===a.index?"is-active":""])},null,8,["src","class"])])],8,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$="";/*!
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
@@ -183,4 +183,4 @@ function print() { __p += __j.call(arguments, '') }
183
183
  content: "" !important;
184
184
  display: none !important;
185
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,Je.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,Je.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,Je.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,Je.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,Je.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,Je.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,Je.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,Je.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,Je.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,Je.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,Je.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,Je.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,Je.TOP_LEFT):new Z(n.left,n.top),this.topRightBorderBox=c>0||u>0?fA(n.left+_,n.top,c,u,Je.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,Je.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,Je.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),Je.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),Je.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),Je.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),Je.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)),Je.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),Je.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),Je.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),Je.BOTTOM_LEFT):new Z(n.left+D+ce,n.top+n.height-(V+ne))}return t}(),Je;(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"})(Je||(Je={}));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 Je.TOP_LEFT:return new yl(new Z(t,u),new Z(t,u-a),new Z(c-s,e),new Z(c,e));case Je.TOP_RIGHT:return new yl(new Z(t,e),new Z(t+s,e),new Z(c,u-a),new Z(c,u));case Je.BOTTOM_RIGHT:return new yl(new Z(c,e),new Z(c,e+a),new Z(t+s,u),new Z(t,u));case Je.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,Xe,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],Xe=re[1],me>0&&Xe>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!==Xe?(Ge=A.bounds.left+.5*A.bounds.width,Ke=A.bounds.top+.5*A.bounds.height,AA=Xe/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,Xe,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:((Xe=e.x)!==null&&Xe!==void 0?Xe: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"})});
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"})});