ablok-components 0.1.136 → 0.1.138

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,5 +1,5 @@
1
- (function(IA,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):(IA=typeof globalThis<"u"?globalThis:IA||self,h(IA.AblokComponents={},IA.Vue,IA.core))})(this,function(IA,h,uh){"use strict";const fE={class:"icon",preserveAspectRatio:"xMaxYMin"},dE=["xlink:href"],hE=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(A,e)=>(h.openBlock(),h.createElementBlock("i",{class:h.normalizeClass(["svg-icon",{[`svg-icon--${t.size}`]:t.size}])},[(h.openBlock(),h.createElementBlock("svg",fE,[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,dE)]))],2))}}),YG="",pE={class:"loading-spinner d-block"},gE=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(A,e)=>(h.openBlock(),h.createElementBlock("span",pE,[gE,h.renderSlot(A.$slots,"default")]))}}),zG="",mE=["src","alt"],wE=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 A=h.ref(!1);return(e,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&&!A.value?(h.openBlock(),h.createBlock(r,{key:0})):h.createCommentVNode("",!0),h.createElementVNode("img",{class:h.normalizeClass(["",{"opacity-0":!A.value,"opacity-1":A.value}]),src:t.src,alt:t.alt,onLoad:n[0]||(n[0]=()=>A.value=!0)},null,42,mE)],2)):h.createCommentVNode("",!0)}}}),qG="",CE=h.defineComponent({__name:"base-headline",props:{tag:{},size:{},variant:{},text:{},className:{}},setup(t){const A=t,e=h.computed(()=>A.tag||"p");return(n,r)=>(h.openBlock(),h.createBlock(h.resolveDynamicComponent(e.value),{class:h.normalizeClass(["headline",`${n.size} headline--${n.size}${n.className||""}`])},{default:h.withCtx(()=>[h.renderSlot(n.$slots,"default",{},()=>[h.createTextVNode(h.toDisplayString(n.text),1)])]),_:3},8,["class"]))}}),yE=["innerHTML"],EE=h.defineComponent({__name:"base-paragraph",props:{size:{},variant:{},text:{},className:{}},setup(t){return(A,e)=>(h.openBlock(),h.createElementBlock("p",{class:h.normalizeClass(["base-paragraph",`${A.size||""} ${A.className||""}`]),innerHTML:A.text},null,10,yE))}});function me(){return(new Date().valueOf()+Math.random()).toString(36).replace(".","")}const QE={class:"accordion-item"},FE=["id"],bE=["data-bs-target","aria-controls"],UE={class:"flex-grow-1"},vE=["id","aria-labelledby","data-bs-parent"],IE={class:"accordion-body"},SE=["innerHTML"],TE=h.defineComponent({__name:"accordion-item",props:{id:{type:String,default:()=>me()},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:A}){const e=t,n=A;function r(){n("update:modelValue",!e.modelValue)}return(i,s)=>(h.openBlock(),h.createElementBlock("div",QE,[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",UE,h.toDisplayString(t.title),1)])],10,bE)],8,FE),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",IE,[h.renderSlot(i.$slots,"body",{},()=>[h.createElementVNode("article",{innerHTML:t.body},null,8,SE)])])],10,vE)]))}}),ZG="",_E=(t,A)=>{const e=t.__vccOpts||t;for(const[n,r]of A)e[n]=r;return e},xE={},OE={class:"accordion"};function LE(t,A){return h.openBlock(),h.createElementBlock("div",OE,[h.renderSlot(t.$slots,"default")])}const HE=_E(xE,[["render",LE]]),kE=["type","disabled"],DE=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 A=t,e=h.computed(()=>A.caption&&!A.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),e.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,kE)}}}),jG="",NE={class:"input-group input__input-group"},ME=["type","id","name","placeholder","pattern","disabled","read-only","required","maxlength","true-value","false-value","aria-label","role","autocomplete"],RE=["for","innerHTML"],KE=h.defineComponent({__name:"base-input",props:{modelValue:{type:[String,Number,Boolean,Date],default:""},type:{type:String,default:"text"},name:{type:String,default:()=>me()},id:{type:String,default:()=>me()},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:A}){const e=t,n=A,r=h.computed({get(){return e.modelValue},set(i){n("update:modelValue",i)}});return(i,s)=>(h.openBlock(),h.createElementBlock("div",{class:h.normalizeClass(["input",`input--${t.type}`])},[h.createElementVNode("div",NE,[h.renderSlot(i.$slots,"input-prepend",{slotScope:"props"}),h.withDirectives(h.createElementVNode("input",{"onUpdate:modelValue":s[0]||(s[0]=a=>r.value=a),type:t.type==="color"?"text":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,"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,ME),[[h.vModelDynamic,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:h.normalizeClass(["input__label",{"form-check-label":t.type==="checkbox"}]),innerHTML:`${t.label}${t.required?" *":""}`},null,10,RE)):h.createCommentVNode("",!0)])],2))}}),A3="",PE={class:"input input--textarea"},VE=["type","id","name","placeholder","pattern","disabled","read-only","required","maxlength","aria-label"],GE=["for","innerHTML"],WE=h.defineComponent({__name:"input-textarea",props:{modelValue:{type:String,default:""},type:{type:String,default:"text"},name:{type:String,default:()=>me()},id:{type:String,default:()=>me()},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:A}){const e=t,n=A,r=h.computed({get(){return e.modelValue},set(i){n("update:modelValue",i)}});return(i,s)=>(h.openBlock(),h.createElementBlock("div",PE,[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,VE),[[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,GE)])]))}}),$E=["value","id","name","required","disabled","true-value","false-value"],JE=["for","innerHTML"],XE=h.createElementVNode("span",{class:"input__error"},"error",-1),YE=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:A}){const e=t,n=A,r=h.computed({get(){return e.modelValue||e.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,$E),[[h.vModelCheckbox,r.value]]),h.createElementVNode("label",{class:"input__label form-check-label",for:t.id,innerHTML:t.label},null,8,JE),XE]))}}),e3=`: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"},qE=["id","name","placeholder","pattern","disabled","read-only","required","aria-label"],ZE=["for","innerHTML"],jE=h.defineComponent({__name:"input-datetime",props:{modelValue:{type:[String,Number,Boolean,Date],default:""},type:{type:String,default:"text"},name:{type:String,default:()=>me()},id:{type:String,default:()=>me()},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:A}){const e=t,n=A,r=h.computed({get(){const i=e.modelValue&&new Date(`${e.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,qE),[[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,ZE)):h.createCommentVNode("",!0)])],2))}}),AQ={class:"check-group"},eQ=["id","name","value","disabled","read-only","required"],tQ=["for","innerHTML"],nQ=h.defineComponent({__name:"check-group",props:{modelValue:{type:null,default:()=>[]},options:{type:Array,required:!0},name:{type:String,default:()=>me()},id:{type:String,default:()=>me()},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:A}){const e=t,n=A;h.ref([]);const r=h.computed({get(){return e.modelValue},set(s){n("update:modelValue",s)}}),i=h.computed(()=>e.options&&e.options.map(s=>(s=typeof s=="string"?{text:s,value:s}:s,{...s,active:e.modelValue&&e.modelValue.includes(s.value)})));return(s,a)=>(h.openBlock(),h.createElementBlock("div",AQ,[(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,eQ),[[h.vModelCheckbox,r.value]]),h.createElementVNode("label",{class:"form-check-label",for:`${t.id}-${u}`,innerHTML:c.text},null,8,tQ)]))),128))]))}}),t3="",rQ={class:"input radio-group"},iQ=["id","name","value","checked","disabled","read-only","required","onChange"],sQ=["for","innerHTML"],oQ=["for"],aQ=h.defineComponent({__name:"radio-group",props:{modelValue:{default:!1},options:{type:Array,default:[]},name:{type:String,default:()=>me()},id:{type:String,default:()=>me()},label:{type:String,default:""},variant:{type:String,default:""},disabled:{type:Boolean,default:!1},readOnly:{type:Boolean,default:!1},required:{type:Boolean,default:!1}},emits:["change","update:modelValue"],setup(t,{emit:A}){const e=t,n=A;h.ref(e.options.map(i=>i.value===e.modelValue));function r(i){console.log("asdfa",i),n("update:modelValue",i)}return h.onBeforeMount(()=>{}),(i,s)=>(h.openBlock(),h.createElementBlock("div",rQ,[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(t.options,(a,c)=>(h.openBlock(),h.createElementBlock("div",{key:c,class:"form-check"},[h.createElementVNode("input",{type:"radio",id:`${t.id}-${c}`,name:t.name,class:"form-check-input",value:a.value||a,checked:a.value?a.value===t.modelValue:a===t.modelValue,disabled:t.disabled,"read-only":t.readOnly,required:t.required,onChange:u=>r(a)},null,40,iQ),h.createElementVNode("label",{class:"form-check-label",for:`${t.id}-${c}`,innerHTML:t.label},null,8,sQ)]))),128)),h.renderSlot(i.$slots,"label",{},()=>[t.label?(h.openBlock(),h.createElementBlock("label",{key:0,for:t.id},h.toDisplayString(t.label),9,oQ)):h.createCommentVNode("",!0)])]))}}),n3="",lQ=["id","name","multiple","accept","disabled"],cQ={class:"input__input-group input-group"},uQ=["value","id","name","disabled"],fQ=["for","disabled"],dQ=h.createElementVNode("span",{class:"btn btn-outline-dark"},"Select File",-1),hQ=["for"],pQ=["innerHTML"],gQ=h.defineComponent({__name:"input-file",props:{modelValue:{type:Array,default:[]},name:{type:String,default:()=>me()},id:{type:String,default:()=>me()},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:A}){const e=t,n=A;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(()=>e.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,lQ),h.createElementVNode("div",cQ,[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,uQ),h.renderSlot(c.$slots,"input-append",{},()=>[h.createElementVNode("label",{for:t.id,disabled:t.disabled},[h.renderSlot(c.$slots,"button",{},()=>[dQ])],8,fQ)])]),h.createElementVNode("label",{for:t.id},[h.renderSlot(c.$slots,"label",{},()=>[h.createElementVNode("span",{class:"input__label",innerHTML:`${t.label}${t.required?" *":""}`},null,8,pQ)])],8,hQ)]))}});function Me(t){this.content=t}Me.prototype={constructor:Me,find:function(t){for(var A=0;A<this.content.length;A+=2)if(this.content[A]===t)return A;return-1},get:function(t){var A=this.find(t);return A==-1?void 0:this.content[A+1]},update:function(t,A,e){var n=e&&e!=t?this.remove(e):this,r=n.find(t),i=n.content.slice();return r==-1?i.push(e||t,A):(i[r+1]=A,e&&(i[r]=e)),new Me(i)},remove:function(t){var A=this.find(t);if(A==-1)return this;var e=this.content.slice();return e.splice(A,2),new Me(e)},addToStart:function(t,A){return new Me([t,A].concat(this.remove(t).content))},addToEnd:function(t,A){var e=this.remove(t).content.slice();return e.push(t,A),new Me(e)},addBefore:function(t,A,e){var n=this.remove(A),r=n.content.slice(),i=n.find(t);return r.splice(i==-1?r.length:i,0,A,e),new Me(r)},forEach:function(t){for(var A=0;A<this.content.length;A+=2)t(this.content[A],this.content[A+1])},prepend:function(t){return t=Me.from(t),t.size?new Me(t.content.concat(this.subtract(t).content)):this},append:function(t){return t=Me.from(t),t.size?new Me(this.subtract(t).content.concat(t.content)):this},subtract:function(t){var A=this;t=Me.from(t);for(var e=0;e<t.content.length;e+=2)A=A.remove(t.content[e]);return A},toObject:function(){var t={};return this.forEach(function(A,e){t[A]=e}),t},get size(){return this.content.length>>1}},Me.from=function(t){if(t instanceof Me)return t;var A=[];if(t)for(var e in t)A.push(e,t[e]);return new Me(A)};function fh(t,A,e){for(let n=0;;n++){if(n==t.childCount||n==A.childCount)return t.childCount==A.childCount?null:e;let r=t.child(n),i=A.child(n);if(r==i){e+=r.nodeSize;continue}if(!r.sameMarkup(i))return e;if(r.isText&&r.text!=i.text){for(let s=0;r.text[s]==i.text[s];s++)e++;return e}if(r.content.size||i.content.size){let s=fh(r.content,i.content,e+1);if(s!=null)return s}e+=r.nodeSize}}function dh(t,A,e,n){for(let r=t.childCount,i=A.childCount;;){if(r==0||i==0)return r==i?null:{a:e,b:n};let s=t.child(--r),a=A.child(--i),c=s.nodeSize;if(s==a){e-=c,n-=c;continue}if(!s.sameMarkup(a))return{a:e,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++,e--,n--;return{a:e,b:n}}if(s.content.size||a.content.size){let u=dh(s.content,a.content,e-1,n-1);if(u)return u}e-=c,n-=c}}class Y{constructor(A,e){if(this.content=A,this.size=e||0,e==null)for(let n=0;n<A.length;n++)this.size+=A[n].nodeSize}nodesBetween(A,e,n,r=0,i){for(let s=0,a=0;a<e;s++){let c=this.content[s],u=a+c.nodeSize;if(u>A&&n(c,r+a,i||null,s)!==!1&&c.content.size){let f=a+1;c.nodesBetween(Math.max(0,A-f),Math.min(c.content.size,e-f),n,r+f)}a=u}}descendants(A){this.nodesBetween(0,this.size,A)}textBetween(A,e,n,r){let i="",s=!0;return this.nodesBetween(A,e,(a,c)=>{let u=a.isText?a.text.slice(Math.max(A,c)-c,e-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(A){if(!A.size)return this;if(!this.size)return A;let e=this.lastChild,n=A.firstChild,r=this.content.slice(),i=0;for(e.isText&&e.sameMarkup(n)&&(r[r.length-1]=e.withText(e.text+n.text),i=1);i<A.content.length;i++)r.push(A.content[i]);return new Y(r,this.size+A.size)}cut(A,e=this.size){if(A==0&&e==this.size)return this;let n=[],r=0;if(e>A)for(let i=0,s=0;s<e;i++){let a=this.content[i],c=s+a.nodeSize;c>A&&((s<A||c>e)&&(a.isText?a=a.cut(Math.max(0,A-s),Math.min(a.text.length,e-s)):a=a.cut(Math.max(0,A-s-1),Math.min(a.content.size,e-s-1))),n.push(a),r+=a.nodeSize),s=c}return new Y(n,r)}cutByIndex(A,e){return A==e?Y.empty:A==0&&e==this.content.length?this:new Y(this.content.slice(A,e))}replaceChild(A,e){let n=this.content[A];if(n==e)return this;let r=this.content.slice(),i=this.size+e.nodeSize-n.nodeSize;return r[A]=e,new Y(r,i)}addToStart(A){return new Y([A].concat(this.content),this.size+A.nodeSize)}addToEnd(A){return new Y(this.content.concat(A),this.size+A.nodeSize)}eq(A){if(this.content.length!=A.content.length)return!1;for(let e=0;e<this.content.length;e++)if(!this.content[e].eq(A.content[e]))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(A){let e=this.content[A];if(!e)throw new RangeError("Index "+A+" out of range for "+this);return e}maybeChild(A){return this.content[A]||null}forEach(A){for(let e=0,n=0;e<this.content.length;e++){let r=this.content[e];A(r,n,e),n+=r.nodeSize}}findDiffStart(A,e=0){return fh(this,A,e)}findDiffEnd(A,e=this.size,n=A.size){return dh(this,A,e,n)}findIndex(A,e=-1){if(A==0)return ko(0,A);if(A==this.size)return ko(this.content.length,A);if(A>this.size||A<0)throw new RangeError(`Position ${A} outside of fragment (${this})`);for(let n=0,r=0;;n++){let i=this.child(n),s=r+i.nodeSize;if(s>=A)return s==A||e>0?ko(n+1,s):ko(n,r);r=s}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map(A=>A.toJSON()):null}static fromJSON(A,e){if(!e)return Y.empty;if(!Array.isArray(e))throw new RangeError("Invalid input for Fragment.fromJSON");return new Y(e.map(A.nodeFromJSON))}static fromArray(A){if(!A.length)return Y.empty;let e,n=0;for(let r=0;r<A.length;r++){let i=A[r];n+=i.nodeSize,r&&i.isText&&A[r-1].sameMarkup(i)?(e||(e=A.slice(0,r)),e[e.length-1]=i.withText(e[e.length-1].text+i.text)):e&&e.push(i)}return new Y(e||A,n)}static from(A){if(!A)return Y.empty;if(A instanceof Y)return A;if(Array.isArray(A))return this.fromArray(A);if(A.attrs)return new Y([A],A.nodeSize);throw new RangeError("Can not convert "+A+" to a Fragment"+(A.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))}}Y.empty=new Y([],0);const gc={index:0,offset:0};function ko(t,A){return gc.index=t,gc.offset=A,gc}function Do(t,A){if(t===A)return!0;if(!(t&&typeof t=="object")||!(A&&typeof A=="object"))return!1;let e=Array.isArray(t);if(Array.isArray(A)!=e)return!1;if(e){if(t.length!=A.length)return!1;for(let n=0;n<t.length;n++)if(!Do(t[n],A[n]))return!1}else{for(let n in t)if(!(n in A)||!Do(t[n],A[n]))return!1;for(let n in A)if(!(n in t))return!1}return!0}let Ae=class ah{constructor(A,e){this.type=A,this.attrs=e}addToSet(A){let e,n=!1;for(let r=0;r<A.length;r++){let i=A[r];if(this.eq(i))return A;if(this.type.excludes(i.type))e||(e=A.slice(0,r));else{if(i.type.excludes(this.type))return A;!n&&i.type.rank>this.type.rank&&(e||(e=A.slice(0,r)),e.push(this),n=!0),e&&e.push(i)}}return e||(e=A.slice()),n||e.push(this),e}removeFromSet(A){for(let e=0;e<A.length;e++)if(this.eq(A[e]))return A.slice(0,e).concat(A.slice(e+1));return A}isInSet(A){for(let e=0;e<A.length;e++)if(this.eq(A[e]))return!0;return!1}eq(A){return this==A||this.type==A.type&&Do(this.attrs,A.attrs)}toJSON(){let A={type:this.type.name};for(let e in this.attrs){A.attrs=this.attrs;break}return A}static fromJSON(A,e){if(!e)throw new RangeError("Invalid input for Mark.fromJSON");let n=A.marks[e.type];if(!n)throw new RangeError(`There is no mark type ${e.type} in this schema`);return n.create(e.attrs)}static sameSet(A,e){if(A==e)return!0;if(A.length!=e.length)return!1;for(let n=0;n<A.length;n++)if(!A[n].eq(e[n]))return!1;return!0}static setFrom(A){if(!A||Array.isArray(A)&&A.length==0)return ah.none;if(A instanceof ah)return[A];let e=A.slice();return e.sort((n,r)=>n.type.rank-r.type.rank),e}};Ae.none=[];class No extends Error{}class j{constructor(A,e,n){this.content=A,this.openStart=e,this.openEnd=n}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(A,e){let n=ph(this.content,A+this.openStart,e);return n&&new j(n,this.openStart,this.openEnd)}removeBetween(A,e){return new j(hh(this.content,A+this.openStart,e+this.openStart),this.openStart,this.openEnd)}eq(A){return this.content.eq(A.content)&&this.openStart==A.openStart&&this.openEnd==A.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let A={content:this.content.toJSON()};return this.openStart>0&&(A.openStart=this.openStart),this.openEnd>0&&(A.openEnd=this.openEnd),A}static fromJSON(A,e){if(!e)return j.empty;let n=e.openStart||0,r=e.openEnd||0;if(typeof n!="number"||typeof r!="number")throw new RangeError("Invalid input for Slice.fromJSON");return new j(Y.fromJSON(A,e.content),n,r)}static maxOpen(A,e=!0){let n=0,r=0;for(let i=A.firstChild;i&&!i.isLeaf&&(e||!i.type.spec.isolating);i=i.firstChild)n++;for(let i=A.lastChild;i&&!i.isLeaf&&(e||!i.type.spec.isolating);i=i.lastChild)r++;return new j(A,n,r)}}j.empty=new j(Y.empty,0,0);function hh(t,A,e){let{index:n,offset:r}=t.findIndex(A),i=t.maybeChild(n),{index:s,offset:a}=t.findIndex(e);if(r==A||i.isText){if(a!=e&&!t.child(s).isText)throw new RangeError("Removing non-flat range");return t.cut(0,A).append(t.cut(e))}if(n!=s)throw new RangeError("Removing non-flat range");return t.replaceChild(n,i.copy(hh(i.content,A-r-1,e-r-1)))}function ph(t,A,e,n){let{index:r,offset:i}=t.findIndex(A),s=t.maybeChild(r);if(i==A||s.isText)return n&&!n.canReplace(r,r,e)?null:t.cut(0,A).append(e).append(t.cut(A));let a=ph(s.content,A-i-1,e);return a&&t.replaceChild(r,s.copy(a))}function BQ(t,A,e){if(e.openStart>t.depth)throw new No("Inserted content deeper than insertion position");if(t.depth-e.openStart!=A.depth-e.openEnd)throw new No("Inconsistent open depths");return gh(t,A,e,0)}function gh(t,A,e,n){let r=t.index(n),i=t.node(n);if(r==A.index(n)&&n<t.depth-e.openStart){let s=gh(t,A,e,n+1);return i.copy(i.content.replaceChild(r,s))}else if(e.content.size)if(!e.openStart&&!e.openEnd&&t.depth==n&&A.depth==n){let s=t.parent,a=s.content;return Gr(s,a.cut(0,t.parentOffset).append(e.content).append(a.cut(A.parentOffset)))}else{let{start:s,end:a}=mQ(e,t);return Gr(i,mh(t,s,a,A,n))}else return Gr(i,Mo(t,A,n))}function Bh(t,A){if(!A.type.compatibleContent(t.type))throw new No("Cannot join "+A.type.name+" onto "+t.type.name)}function Bc(t,A,e){let n=t.node(e);return Bh(n,A.node(e)),n}function Vr(t,A){let e=A.length-1;e>=0&&t.isText&&t.sameMarkup(A[e])?A[e]=t.withText(A[e].text+t.text):A.push(t)}function Qs(t,A,e,n){let r=(A||t).node(e),i=0,s=A?A.index(e):r.childCount;t&&(i=t.index(e),t.depth>e?i++:t.textOffset&&(Vr(t.nodeAfter,n),i++));for(let a=i;a<s;a++)Vr(r.child(a),n);A&&A.depth==e&&A.textOffset&&Vr(A.nodeBefore,n)}function Gr(t,A){return t.type.checkContent(A),t.copy(A)}function mh(t,A,e,n,r){let i=t.depth>r&&Bc(t,A,r+1),s=n.depth>r&&Bc(e,n,r+1),a=[];return Qs(null,t,r,a),i&&s&&A.index(r)==e.index(r)?(Bh(i,s),Vr(Gr(i,mh(t,A,e,n,r+1)),a)):(i&&Vr(Gr(i,Mo(t,A,r+1)),a),Qs(A,e,r,a),s&&Vr(Gr(s,Mo(e,n,r+1)),a)),Qs(n,null,r,a),new Y(a)}function Mo(t,A,e){let n=[];if(Qs(null,t,e,n),t.depth>e){let r=Bc(t,A,e+1);Vr(Gr(r,Mo(t,A,e+1)),n)}return Qs(A,null,e,n),new Y(n)}function mQ(t,A){let e=A.depth-t.openStart,r=A.node(e).copy(t.content);for(let i=e-1;i>=0;i--)r=A.node(i).copy(Y.from(r));return{start:r.resolveNoCache(t.openStart+e),end:r.resolveNoCache(r.content.size-t.openEnd-e)}}class Fs{constructor(A,e,n){this.pos=A,this.path=e,this.parentOffset=n,this.depth=e.length/3-1}resolveDepth(A){return A==null?this.depth:A<0?this.depth+A:A}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(A){return this.path[this.resolveDepth(A)*3]}index(A){return this.path[this.resolveDepth(A)*3+1]}indexAfter(A){return A=this.resolveDepth(A),this.index(A)+(A==this.depth&&!this.textOffset?0:1)}start(A){return A=this.resolveDepth(A),A==0?0:this.path[A*3-1]+1}end(A){return A=this.resolveDepth(A),this.start(A)+this.node(A).content.size}before(A){if(A=this.resolveDepth(A),!A)throw new RangeError("There is no position before the top-level node");return A==this.depth+1?this.pos:this.path[A*3-1]}after(A){if(A=this.resolveDepth(A),!A)throw new RangeError("There is no position after the top-level node");return A==this.depth+1?this.pos:this.path[A*3-1]+this.path[A*3].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let A=this.parent,e=this.index(this.depth);if(e==A.childCount)return null;let n=this.pos-this.path[this.path.length-1],r=A.child(e);return n?A.child(e).cut(n):r}get nodeBefore(){let A=this.index(this.depth),e=this.pos-this.path[this.path.length-1];return e?this.parent.child(A).cut(0,e):A==0?null:this.parent.child(A-1)}posAtIndex(A,e){e=this.resolveDepth(e);let n=this.path[e*3],r=e==0?0:this.path[e*3-1]+1;for(let i=0;i<A;i++)r+=n.child(i).nodeSize;return r}marks(){let A=this.parent,e=this.index();if(A.content.size==0)return Ae.none;if(this.textOffset)return A.child(e).marks;let n=A.maybeChild(e-1),r=A.maybeChild(e);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(A){let e=this.parent.maybeChild(this.index());if(!e||!e.isInline)return null;let n=e.marks,r=A.parent.maybeChild(A.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(A){for(let e=this.depth;e>0;e--)if(this.start(e)<=A&&this.end(e)>=A)return e;return 0}blockRange(A=this,e){if(A.pos<this.pos)return A.blockRange(this);for(let n=this.depth-(this.parent.inlineContent||this.pos==A.pos?1:0);n>=0;n--)if(A.pos<=this.end(n)&&(!e||e(this.node(n))))return new Ro(this,A,n);return null}sameParent(A){return this.pos-this.parentOffset==A.pos-A.parentOffset}max(A){return A.pos>this.pos?A:this}min(A){return A.pos<this.pos?A:this}toString(){let A="";for(let e=1;e<=this.depth;e++)A+=(A?"/":"")+this.node(e).type.name+"_"+this.index(e-1);return A+":"+this.parentOffset}static resolve(A,e){if(!(e>=0&&e<=A.content.size))throw new RangeError("Position "+e+" out of range");let n=[],r=0,i=e;for(let s=A;;){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(e,n,i)}static resolveCached(A,e){for(let r=0;r<mc.length;r++){let i=mc[r];if(i.pos==e&&i.doc==A)return i}let n=mc[wc]=Fs.resolve(A,e);return wc=(wc+1)%wQ,n}}let mc=[],wc=0,wQ=12;class Ro{constructor(A,e,n){this.$from=A,this.$to=e,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 CQ=Object.create(null);let Wr=class lh{constructor(A,e,n,r=Ae.none){this.type=A,this.attrs=e,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(A){return this.content.child(A)}maybeChild(A){return this.content.maybeChild(A)}forEach(A){this.content.forEach(A)}nodesBetween(A,e,n,r=0){this.content.nodesBetween(A,e,n,r,this)}descendants(A){this.nodesBetween(0,this.content.size,A)}get textContent(){return this.isLeaf&&this.type.spec.leafText?this.type.spec.leafText(this):this.textBetween(0,this.content.size,"")}textBetween(A,e,n,r){return this.content.textBetween(A,e,n,r)}get firstChild(){return this.content.firstChild}get lastChild(){return this.content.lastChild}eq(A){return this==A||this.sameMarkup(A)&&this.content.eq(A.content)}sameMarkup(A){return this.hasMarkup(A.type,A.attrs,A.marks)}hasMarkup(A,e,n){return this.type==A&&Do(this.attrs,e||A.defaultAttrs||CQ)&&Ae.sameSet(this.marks,n||Ae.none)}copy(A=null){return A==this.content?this:new lh(this.type,this.attrs,A,this.marks)}mark(A){return A==this.marks?this:new lh(this.type,this.attrs,this.content,A)}cut(A,e=this.content.size){return A==0&&e==this.content.size?this:this.copy(this.content.cut(A,e))}slice(A,e=this.content.size,n=!1){if(A==e)return j.empty;let r=this.resolve(A),i=this.resolve(e),s=n?0:r.sharedDepth(e),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(A,e,n){return BQ(this.resolve(A),this.resolve(e),n)}nodeAt(A){for(let e=this;;){let{index:n,offset:r}=e.content.findIndex(A);if(e=e.maybeChild(n),!e)return null;if(r==A||e.isText)return e;A-=r+1}}childAfter(A){let{index:e,offset:n}=this.content.findIndex(A);return{node:this.content.maybeChild(e),index:e,offset:n}}childBefore(A){if(A==0)return{node:null,index:0,offset:0};let{index:e,offset:n}=this.content.findIndex(A);if(n<A)return{node:this.content.child(e),index:e,offset:n};let r=this.content.child(e-1);return{node:r,index:e-1,offset:n-r.nodeSize}}resolve(A){return Fs.resolveCached(this,A)}resolveNoCache(A){return Fs.resolve(this,A)}rangeHasMark(A,e,n){let r=!1;return e>A&&this.nodesBetween(A,e,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 A=this.type.name;return this.content.size&&(A+="("+this.content.toStringInner()+")"),wh(this.marks,A)}contentMatchAt(A){let e=this.type.contentMatch.matchFragment(this.content,0,A);if(!e)throw new Error("Called contentMatchAt on a node with invalid content");return e}canReplace(A,e,n=Y.empty,r=0,i=n.childCount){let s=this.contentMatchAt(A).matchFragment(n,r,i),a=s&&s.matchFragment(this.content,e);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(A,e,n,r){if(r&&!this.type.allowsMarks(r))return!1;let i=this.contentMatchAt(A).matchType(n),s=i&&i.matchFragment(this.content,e);return s?s.validEnd:!1}canAppend(A){return A.content.size?this.canReplace(this.childCount,this.childCount,A.content):this.type.compatibleContent(A.type)}check(){this.type.checkContent(this.content);let A=Ae.none;for(let e=0;e<this.marks.length;e++)A=this.marks[e].addToSet(A);if(!Ae.sameSet(A,this.marks))throw new RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map(e=>e.type.name)}`);this.content.forEach(e=>e.check())}toJSON(){let A={type:this.type.name};for(let e in this.attrs){A.attrs=this.attrs;break}return this.content.size&&(A.content=this.content.toJSON()),this.marks.length&&(A.marks=this.marks.map(e=>e.toJSON())),A}static fromJSON(A,e){if(!e)throw new RangeError("Invalid input for Node.fromJSON");let n=null;if(e.marks){if(!Array.isArray(e.marks))throw new RangeError("Invalid mark data for Node.fromJSON");n=e.marks.map(A.markFromJSON)}if(e.type=="text"){if(typeof e.text!="string")throw new RangeError("Invalid text node in JSON");return A.text(e.text,n)}let r=Y.fromJSON(A,e.content);return A.nodeType(e.type).create(e.attrs,r,n)}};Wr.prototype.text=void 0;class Ko extends Wr{constructor(A,e,n,r){if(super(A,e,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):wh(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(A,e){return this.text.slice(A,e)}get nodeSize(){return this.text.length}mark(A){return A==this.marks?this:new Ko(this.type,this.attrs,this.text,A)}withText(A){return A==this.text?this:new Ko(this.type,this.attrs,A,this.marks)}cut(A=0,e=this.text.length){return A==0&&e==this.text.length?this:this.withText(this.text.slice(A,e))}eq(A){return this.sameMarkup(A)&&this.text==A.text}toJSON(){let A=super.toJSON();return A.text=this.text,A}}function wh(t,A){for(let e=t.length-1;e>=0;e--)A=t[e].type.name+"("+A+")";return A}class $r{constructor(A){this.validEnd=A,this.next=[],this.wrapCache=[]}static parse(A,e){let n=new yQ(A,e);if(n.next==null)return $r.empty;let r=Ch(n);n.next&&n.err("Unexpected trailing text");let i=IQ(vQ(r));return SQ(i,n),i}matchType(A){for(let e=0;e<this.next.length;e++)if(this.next[e].type==A)return this.next[e].next;return null}matchFragment(A,e=0,n=A.childCount){let r=this;for(let i=e;r&&i<n;i++)r=r.matchType(A.child(i).type);return r}get inlineContent(){return this.next.length!=0&&this.next[0].type.isInline}get defaultType(){for(let A=0;A<this.next.length;A++){let{type:e}=this.next[A];if(!(e.isText||e.hasRequiredAttrs()))return e}return null}compatible(A){for(let e=0;e<this.next.length;e++)for(let n=0;n<A.next.length;n++)if(this.next[e].type==A.next[n].type)return!0;return!1}fillBefore(A,e=!1,n=0){let r=[this];function i(s,a){let c=s.matchFragment(A,n);if(c&&(!e||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(A){for(let n=0;n<this.wrapCache.length;n+=2)if(this.wrapCache[n]==A)return this.wrapCache[n+1];let e=this.computeWrapping(A);return this.wrapCache.push(A,e),e}computeWrapping(A){let e=Object.create(null),n=[{match:this,type:null,via:null}];for(;n.length;){let r=n.shift(),i=r.match;if(i.matchType(A)){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 e)&&(!r.type||c.validEnd)&&(n.push({match:a.contentMatch,type:a,via:r}),e[a.name]=!0)}}return null}get edgeCount(){return this.next.length}edge(A){if(A>=this.next.length)throw new RangeError(`There's no ${A}th edge in this content match`);return this.next[A]}toString(){let A=[];function e(n){A.push(n);for(let r=0;r<n.next.length;r++)A.indexOf(n.next[r].next)==-1&&e(n.next[r].next)}return e(this),A.map((n,r)=>{let i=r+(n.validEnd?"*":" ")+" ";for(let s=0;s<n.next.length;s++)i+=(s?", ":"")+n.next[s].type.name+"->"+A.indexOf(n.next[s].next);return i}).join(`
1
+ (function(IA,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):(IA=typeof globalThis<"u"?globalThis:IA||self,h(IA.AblokComponents={},IA.Vue,IA.core))})(this,function(IA,h,uh){"use strict";const fE={class:"icon",preserveAspectRatio:"xMaxYMin"},dE=["xlink:href"],hE=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(A,e)=>(h.openBlock(),h.createElementBlock("i",{class:h.normalizeClass(["svg-icon",{[`svg-icon--${t.size}`]:t.size}])},[(h.openBlock(),h.createElementBlock("svg",fE,[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,dE)]))],2))}}),XG="",pE={class:"loading-spinner d-block"},gE=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(A,e)=>(h.openBlock(),h.createElementBlock("span",pE,[gE,h.renderSlot(A.$slots,"default")]))}}),YG="",mE=["src","alt"],wE=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 A=h.ref(!1);return(e,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&&!A.value?(h.openBlock(),h.createBlock(r,{key:0})):h.createCommentVNode("",!0),h.createElementVNode("img",{class:h.normalizeClass(["",{"opacity-0":!A.value,"opacity-1":A.value}]),src:t.src,alt:t.alt,onLoad:n[0]||(n[0]=()=>A.value=!0)},null,42,mE)],2)):h.createCommentVNode("",!0)}}}),zG="",CE=h.defineComponent({__name:"base-headline",props:{tag:{},size:{},variant:{},text:{},className:{}},setup(t){const A=t,e=h.computed(()=>A.tag||"p");return(n,r)=>(h.openBlock(),h.createBlock(h.resolveDynamicComponent(e.value),{class:h.normalizeClass(["headline",`${n.size} headline--${n.size}${n.className||""}`])},{default:h.withCtx(()=>[h.renderSlot(n.$slots,"default",{},()=>[h.createTextVNode(h.toDisplayString(n.text),1)])]),_:3},8,["class"]))}}),yE=["innerHTML"],EE=h.defineComponent({__name:"base-paragraph",props:{size:{},variant:{},text:{},className:{}},setup(t){return(A,e)=>(h.openBlock(),h.createElementBlock("p",{class:h.normalizeClass(["base-paragraph",`${A.size||""} ${A.className||""}`]),innerHTML:A.text},null,10,yE))}});function me(){return(new Date().valueOf()+Math.random()).toString(36).replace(".","")}const QE={class:"accordion-item"},FE=["id"],bE=["data-bs-target","aria-controls"],UE={class:"flex-grow-1"},vE=["id","aria-labelledby","data-bs-parent"],IE={class:"accordion-body"},SE=["innerHTML"],TE=h.defineComponent({__name:"accordion-item",props:{id:{type:String,default:()=>me()},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:A}){const e=t,n=A;function r(){n("update:modelValue",!e.modelValue)}return(i,s)=>(h.openBlock(),h.createElementBlock("div",QE,[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",UE,h.toDisplayString(t.title),1)])],10,bE)],8,FE),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",IE,[h.renderSlot(i.$slots,"body",{},()=>[h.createElementVNode("article",{innerHTML:t.body},null,8,SE)])])],10,vE)]))}}),qG="",_E=(t,A)=>{const e=t.__vccOpts||t;for(const[n,r]of A)e[n]=r;return e},xE={},OE={class:"accordion"};function LE(t,A){return h.openBlock(),h.createElementBlock("div",OE,[h.renderSlot(t.$slots,"default")])}const HE=_E(xE,[["render",LE]]),kE=["type","disabled"],DE=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 A=t,e=h.computed(()=>A.caption&&!A.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),e.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,kE)}}}),ZG="",NE={class:"input-group input__input-group"},ME=["type","id","name","placeholder","pattern","disabled","read-only","required","maxlength","true-value","false-value","aria-label","role","autocomplete"],RE=["for","innerHTML"],KE=h.defineComponent({__name:"base-input",props:{modelValue:{type:[String,Number,Boolean,Date],default:""},type:{type:String,default:"text"},name:{type:String,default:()=>me()},id:{type:String,default:()=>me()},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:A}){const e=t,n=A,r=h.computed({get(){return e.modelValue},set(i){n("update:modelValue",i)}});return(i,s)=>(h.openBlock(),h.createElementBlock("div",{class:h.normalizeClass(["input",`input--${t.type}`])},[h.createElementVNode("div",NE,[h.renderSlot(i.$slots,"input-prepend",{slotScope:"props"}),h.withDirectives(h.createElementVNode("input",{"onUpdate:modelValue":s[0]||(s[0]=a=>r.value=a),type:t.type==="color"?"text":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,"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,ME),[[h.vModelDynamic,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:h.normalizeClass(["input__label",{"form-check-label":t.type==="checkbox"}]),innerHTML:`${t.label}${t.required?" *":""}`},null,10,RE)):h.createCommentVNode("",!0)])],2))}}),jG="",PE={class:"input input--textarea"},VE=["type","id","name","placeholder","pattern","disabled","read-only","required","maxlength","aria-label"],GE=["for","innerHTML"],WE=h.defineComponent({__name:"input-textarea",props:{modelValue:{type:String,default:""},type:{type:String,default:"text"},name:{type:String,default:()=>me()},id:{type:String,default:()=>me()},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:A}){const e=t,n=A,r=h.computed({get(){return e.modelValue},set(i){n("update:modelValue",i)}});return(i,s)=>(h.openBlock(),h.createElementBlock("div",PE,[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,VE),[[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,GE)])]))}}),$E=["value","id","name","required","disabled","true-value","false-value"],JE=["for","innerHTML"],XE=h.createElementVNode("span",{class:"input__error"},"error",-1),YE=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:A}){const e=t,n=A,r=h.computed({get(){return e.modelValue||e.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,$E),[[h.vModelCheckbox,r.value]]),h.createElementVNode("label",{class:"input__label form-check-label",for:t.id,innerHTML:t.label},null,8,JE),XE]))}}),A3=`: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"},qE=["id","name","placeholder","pattern","disabled","read-only","required","aria-label"],ZE=["for","innerHTML"],jE=h.defineComponent({__name:"input-datetime",props:{modelValue:{type:[String,Number,Boolean,Date],default:""},type:{type:String,default:"text"},name:{type:String,default:()=>me()},id:{type:String,default:()=>me()},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:A}){const e=t,n=A,r=h.computed({get(){const i=e.modelValue&&new Date(`${e.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,qE),[[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,ZE)):h.createCommentVNode("",!0)])],2))}}),AQ={class:"check-group"},eQ=["id","name","value","disabled","read-only","required"],tQ=["for","innerHTML"],nQ=h.defineComponent({__name:"check-group",props:{modelValue:{type:null,default:()=>[]},options:{type:Array,required:!0},name:{type:String,default:()=>me()},id:{type:String,default:()=>me()},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:A}){const e=t,n=A;h.ref([]);const r=h.computed({get(){return e.modelValue},set(s){n("update:modelValue",s)}}),i=h.computed(()=>e.options&&e.options.map(s=>(s=typeof s=="string"?{text:s,value:s}:s,{...s,active:e.modelValue&&e.modelValue.includes(s.value)})));return(s,a)=>(h.openBlock(),h.createElementBlock("div",AQ,[(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,eQ),[[h.vModelCheckbox,r.value]]),h.createElementVNode("label",{class:"form-check-label",for:`${t.id}-${u}`,innerHTML:c.text},null,8,tQ)]))),128))]))}}),e3="",rQ={class:"input radio-group"},iQ=["id","name","value","checked","disabled","read-only","required","onChange"],sQ=["for","innerHTML"],oQ=["for"],aQ=h.defineComponent({__name:"radio-group",props:{modelValue:{default:!1},options:{type:Array,default:[]},name:{type:String,default:()=>me()},id:{type:String,default:()=>me()},label:{type:String,default:""},variant:{type:String,default:""},disabled:{type:Boolean,default:!1},readOnly:{type:Boolean,default:!1},required:{type:Boolean,default:!1}},emits:["change","update:modelValue"],setup(t,{emit:A}){const e=t,n=A;h.ref(e.options.map(i=>i.value===e.modelValue));function r(i){console.log("asdfa",i),n("update:modelValue",i)}return h.onBeforeMount(()=>{}),(i,s)=>(h.openBlock(),h.createElementBlock("div",rQ,[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(t.options,(a,c)=>(h.openBlock(),h.createElementBlock("div",{key:c,class:"form-check"},[h.createElementVNode("input",{type:"radio",id:`${t.id}-${c}`,name:t.name,class:"form-check-input",value:a.value||a,checked:a.value?a.value===t.modelValue:a===t.modelValue,disabled:t.disabled,"read-only":t.readOnly,required:t.required,onChange:u=>r(a)},null,40,iQ),h.createElementVNode("label",{class:"form-check-label",for:`${t.id}-${c}`,innerHTML:t.label},null,8,sQ)]))),128)),h.renderSlot(i.$slots,"label",{},()=>[t.label?(h.openBlock(),h.createElementBlock("label",{key:0,for:t.id},h.toDisplayString(t.label),9,oQ)):h.createCommentVNode("",!0)])]))}}),t3="",lQ=["id","name","multiple","accept","disabled"],cQ={class:"input__input-group input-group"},uQ=["value","id","name","disabled"],fQ=["for","disabled"],dQ=h.createElementVNode("span",{class:"btn btn-outline-dark"},"Select File",-1),hQ=["for"],pQ=["innerHTML"],gQ=h.defineComponent({__name:"input-file",props:{modelValue:{type:Array,default:[]},name:{type:String,default:()=>me()},id:{type:String,default:()=>me()},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:A}){const e=t,n=A;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(()=>e.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,lQ),h.createElementVNode("div",cQ,[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,uQ),h.renderSlot(c.$slots,"input-append",{},()=>[h.createElementVNode("label",{for:t.id,disabled:t.disabled},[h.renderSlot(c.$slots,"button",{},()=>[dQ])],8,fQ)])]),h.createElementVNode("label",{for:t.id},[h.renderSlot(c.$slots,"label",{},()=>[h.createElementVNode("span",{class:"input__label",innerHTML:`${t.label}${t.required?" *":""}`},null,8,pQ)])],8,hQ)]))}});function Me(t){this.content=t}Me.prototype={constructor:Me,find:function(t){for(var A=0;A<this.content.length;A+=2)if(this.content[A]===t)return A;return-1},get:function(t){var A=this.find(t);return A==-1?void 0:this.content[A+1]},update:function(t,A,e){var n=e&&e!=t?this.remove(e):this,r=n.find(t),i=n.content.slice();return r==-1?i.push(e||t,A):(i[r+1]=A,e&&(i[r]=e)),new Me(i)},remove:function(t){var A=this.find(t);if(A==-1)return this;var e=this.content.slice();return e.splice(A,2),new Me(e)},addToStart:function(t,A){return new Me([t,A].concat(this.remove(t).content))},addToEnd:function(t,A){var e=this.remove(t).content.slice();return e.push(t,A),new Me(e)},addBefore:function(t,A,e){var n=this.remove(A),r=n.content.slice(),i=n.find(t);return r.splice(i==-1?r.length:i,0,A,e),new Me(r)},forEach:function(t){for(var A=0;A<this.content.length;A+=2)t(this.content[A],this.content[A+1])},prepend:function(t){return t=Me.from(t),t.size?new Me(t.content.concat(this.subtract(t).content)):this},append:function(t){return t=Me.from(t),t.size?new Me(this.subtract(t).content.concat(t.content)):this},subtract:function(t){var A=this;t=Me.from(t);for(var e=0;e<t.content.length;e+=2)A=A.remove(t.content[e]);return A},toObject:function(){var t={};return this.forEach(function(A,e){t[A]=e}),t},get size(){return this.content.length>>1}},Me.from=function(t){if(t instanceof Me)return t;var A=[];if(t)for(var e in t)A.push(e,t[e]);return new Me(A)};function fh(t,A,e){for(let n=0;;n++){if(n==t.childCount||n==A.childCount)return t.childCount==A.childCount?null:e;let r=t.child(n),i=A.child(n);if(r==i){e+=r.nodeSize;continue}if(!r.sameMarkup(i))return e;if(r.isText&&r.text!=i.text){for(let s=0;r.text[s]==i.text[s];s++)e++;return e}if(r.content.size||i.content.size){let s=fh(r.content,i.content,e+1);if(s!=null)return s}e+=r.nodeSize}}function dh(t,A,e,n){for(let r=t.childCount,i=A.childCount;;){if(r==0||i==0)return r==i?null:{a:e,b:n};let s=t.child(--r),a=A.child(--i),c=s.nodeSize;if(s==a){e-=c,n-=c;continue}if(!s.sameMarkup(a))return{a:e,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++,e--,n--;return{a:e,b:n}}if(s.content.size||a.content.size){let u=dh(s.content,a.content,e-1,n-1);if(u)return u}e-=c,n-=c}}class Y{constructor(A,e){if(this.content=A,this.size=e||0,e==null)for(let n=0;n<A.length;n++)this.size+=A[n].nodeSize}nodesBetween(A,e,n,r=0,i){for(let s=0,a=0;a<e;s++){let c=this.content[s],u=a+c.nodeSize;if(u>A&&n(c,r+a,i||null,s)!==!1&&c.content.size){let f=a+1;c.nodesBetween(Math.max(0,A-f),Math.min(c.content.size,e-f),n,r+f)}a=u}}descendants(A){this.nodesBetween(0,this.size,A)}textBetween(A,e,n,r){let i="",s=!0;return this.nodesBetween(A,e,(a,c)=>{let u=a.isText?a.text.slice(Math.max(A,c)-c,e-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(A){if(!A.size)return this;if(!this.size)return A;let e=this.lastChild,n=A.firstChild,r=this.content.slice(),i=0;for(e.isText&&e.sameMarkup(n)&&(r[r.length-1]=e.withText(e.text+n.text),i=1);i<A.content.length;i++)r.push(A.content[i]);return new Y(r,this.size+A.size)}cut(A,e=this.size){if(A==0&&e==this.size)return this;let n=[],r=0;if(e>A)for(let i=0,s=0;s<e;i++){let a=this.content[i],c=s+a.nodeSize;c>A&&((s<A||c>e)&&(a.isText?a=a.cut(Math.max(0,A-s),Math.min(a.text.length,e-s)):a=a.cut(Math.max(0,A-s-1),Math.min(a.content.size,e-s-1))),n.push(a),r+=a.nodeSize),s=c}return new Y(n,r)}cutByIndex(A,e){return A==e?Y.empty:A==0&&e==this.content.length?this:new Y(this.content.slice(A,e))}replaceChild(A,e){let n=this.content[A];if(n==e)return this;let r=this.content.slice(),i=this.size+e.nodeSize-n.nodeSize;return r[A]=e,new Y(r,i)}addToStart(A){return new Y([A].concat(this.content),this.size+A.nodeSize)}addToEnd(A){return new Y(this.content.concat(A),this.size+A.nodeSize)}eq(A){if(this.content.length!=A.content.length)return!1;for(let e=0;e<this.content.length;e++)if(!this.content[e].eq(A.content[e]))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(A){let e=this.content[A];if(!e)throw new RangeError("Index "+A+" out of range for "+this);return e}maybeChild(A){return this.content[A]||null}forEach(A){for(let e=0,n=0;e<this.content.length;e++){let r=this.content[e];A(r,n,e),n+=r.nodeSize}}findDiffStart(A,e=0){return fh(this,A,e)}findDiffEnd(A,e=this.size,n=A.size){return dh(this,A,e,n)}findIndex(A,e=-1){if(A==0)return ko(0,A);if(A==this.size)return ko(this.content.length,A);if(A>this.size||A<0)throw new RangeError(`Position ${A} outside of fragment (${this})`);for(let n=0,r=0;;n++){let i=this.child(n),s=r+i.nodeSize;if(s>=A)return s==A||e>0?ko(n+1,s):ko(n,r);r=s}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map(A=>A.toJSON()):null}static fromJSON(A,e){if(!e)return Y.empty;if(!Array.isArray(e))throw new RangeError("Invalid input for Fragment.fromJSON");return new Y(e.map(A.nodeFromJSON))}static fromArray(A){if(!A.length)return Y.empty;let e,n=0;for(let r=0;r<A.length;r++){let i=A[r];n+=i.nodeSize,r&&i.isText&&A[r-1].sameMarkup(i)?(e||(e=A.slice(0,r)),e[e.length-1]=i.withText(e[e.length-1].text+i.text)):e&&e.push(i)}return new Y(e||A,n)}static from(A){if(!A)return Y.empty;if(A instanceof Y)return A;if(Array.isArray(A))return this.fromArray(A);if(A.attrs)return new Y([A],A.nodeSize);throw new RangeError("Can not convert "+A+" to a Fragment"+(A.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))}}Y.empty=new Y([],0);const gc={index:0,offset:0};function ko(t,A){return gc.index=t,gc.offset=A,gc}function Do(t,A){if(t===A)return!0;if(!(t&&typeof t=="object")||!(A&&typeof A=="object"))return!1;let e=Array.isArray(t);if(Array.isArray(A)!=e)return!1;if(e){if(t.length!=A.length)return!1;for(let n=0;n<t.length;n++)if(!Do(t[n],A[n]))return!1}else{for(let n in t)if(!(n in A)||!Do(t[n],A[n]))return!1;for(let n in A)if(!(n in t))return!1}return!0}let Ae=class ah{constructor(A,e){this.type=A,this.attrs=e}addToSet(A){let e,n=!1;for(let r=0;r<A.length;r++){let i=A[r];if(this.eq(i))return A;if(this.type.excludes(i.type))e||(e=A.slice(0,r));else{if(i.type.excludes(this.type))return A;!n&&i.type.rank>this.type.rank&&(e||(e=A.slice(0,r)),e.push(this),n=!0),e&&e.push(i)}}return e||(e=A.slice()),n||e.push(this),e}removeFromSet(A){for(let e=0;e<A.length;e++)if(this.eq(A[e]))return A.slice(0,e).concat(A.slice(e+1));return A}isInSet(A){for(let e=0;e<A.length;e++)if(this.eq(A[e]))return!0;return!1}eq(A){return this==A||this.type==A.type&&Do(this.attrs,A.attrs)}toJSON(){let A={type:this.type.name};for(let e in this.attrs){A.attrs=this.attrs;break}return A}static fromJSON(A,e){if(!e)throw new RangeError("Invalid input for Mark.fromJSON");let n=A.marks[e.type];if(!n)throw new RangeError(`There is no mark type ${e.type} in this schema`);return n.create(e.attrs)}static sameSet(A,e){if(A==e)return!0;if(A.length!=e.length)return!1;for(let n=0;n<A.length;n++)if(!A[n].eq(e[n]))return!1;return!0}static setFrom(A){if(!A||Array.isArray(A)&&A.length==0)return ah.none;if(A instanceof ah)return[A];let e=A.slice();return e.sort((n,r)=>n.type.rank-r.type.rank),e}};Ae.none=[];class No extends Error{}class j{constructor(A,e,n){this.content=A,this.openStart=e,this.openEnd=n}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(A,e){let n=ph(this.content,A+this.openStart,e);return n&&new j(n,this.openStart,this.openEnd)}removeBetween(A,e){return new j(hh(this.content,A+this.openStart,e+this.openStart),this.openStart,this.openEnd)}eq(A){return this.content.eq(A.content)&&this.openStart==A.openStart&&this.openEnd==A.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let A={content:this.content.toJSON()};return this.openStart>0&&(A.openStart=this.openStart),this.openEnd>0&&(A.openEnd=this.openEnd),A}static fromJSON(A,e){if(!e)return j.empty;let n=e.openStart||0,r=e.openEnd||0;if(typeof n!="number"||typeof r!="number")throw new RangeError("Invalid input for Slice.fromJSON");return new j(Y.fromJSON(A,e.content),n,r)}static maxOpen(A,e=!0){let n=0,r=0;for(let i=A.firstChild;i&&!i.isLeaf&&(e||!i.type.spec.isolating);i=i.firstChild)n++;for(let i=A.lastChild;i&&!i.isLeaf&&(e||!i.type.spec.isolating);i=i.lastChild)r++;return new j(A,n,r)}}j.empty=new j(Y.empty,0,0);function hh(t,A,e){let{index:n,offset:r}=t.findIndex(A),i=t.maybeChild(n),{index:s,offset:a}=t.findIndex(e);if(r==A||i.isText){if(a!=e&&!t.child(s).isText)throw new RangeError("Removing non-flat range");return t.cut(0,A).append(t.cut(e))}if(n!=s)throw new RangeError("Removing non-flat range");return t.replaceChild(n,i.copy(hh(i.content,A-r-1,e-r-1)))}function ph(t,A,e,n){let{index:r,offset:i}=t.findIndex(A),s=t.maybeChild(r);if(i==A||s.isText)return n&&!n.canReplace(r,r,e)?null:t.cut(0,A).append(e).append(t.cut(A));let a=ph(s.content,A-i-1,e);return a&&t.replaceChild(r,s.copy(a))}function BQ(t,A,e){if(e.openStart>t.depth)throw new No("Inserted content deeper than insertion position");if(t.depth-e.openStart!=A.depth-e.openEnd)throw new No("Inconsistent open depths");return gh(t,A,e,0)}function gh(t,A,e,n){let r=t.index(n),i=t.node(n);if(r==A.index(n)&&n<t.depth-e.openStart){let s=gh(t,A,e,n+1);return i.copy(i.content.replaceChild(r,s))}else if(e.content.size)if(!e.openStart&&!e.openEnd&&t.depth==n&&A.depth==n){let s=t.parent,a=s.content;return Gr(s,a.cut(0,t.parentOffset).append(e.content).append(a.cut(A.parentOffset)))}else{let{start:s,end:a}=mQ(e,t);return Gr(i,mh(t,s,a,A,n))}else return Gr(i,Mo(t,A,n))}function Bh(t,A){if(!A.type.compatibleContent(t.type))throw new No("Cannot join "+A.type.name+" onto "+t.type.name)}function Bc(t,A,e){let n=t.node(e);return Bh(n,A.node(e)),n}function Vr(t,A){let e=A.length-1;e>=0&&t.isText&&t.sameMarkup(A[e])?A[e]=t.withText(A[e].text+t.text):A.push(t)}function Qs(t,A,e,n){let r=(A||t).node(e),i=0,s=A?A.index(e):r.childCount;t&&(i=t.index(e),t.depth>e?i++:t.textOffset&&(Vr(t.nodeAfter,n),i++));for(let a=i;a<s;a++)Vr(r.child(a),n);A&&A.depth==e&&A.textOffset&&Vr(A.nodeBefore,n)}function Gr(t,A){return t.type.checkContent(A),t.copy(A)}function mh(t,A,e,n,r){let i=t.depth>r&&Bc(t,A,r+1),s=n.depth>r&&Bc(e,n,r+1),a=[];return Qs(null,t,r,a),i&&s&&A.index(r)==e.index(r)?(Bh(i,s),Vr(Gr(i,mh(t,A,e,n,r+1)),a)):(i&&Vr(Gr(i,Mo(t,A,r+1)),a),Qs(A,e,r,a),s&&Vr(Gr(s,Mo(e,n,r+1)),a)),Qs(n,null,r,a),new Y(a)}function Mo(t,A,e){let n=[];if(Qs(null,t,e,n),t.depth>e){let r=Bc(t,A,e+1);Vr(Gr(r,Mo(t,A,e+1)),n)}return Qs(A,null,e,n),new Y(n)}function mQ(t,A){let e=A.depth-t.openStart,r=A.node(e).copy(t.content);for(let i=e-1;i>=0;i--)r=A.node(i).copy(Y.from(r));return{start:r.resolveNoCache(t.openStart+e),end:r.resolveNoCache(r.content.size-t.openEnd-e)}}class Fs{constructor(A,e,n){this.pos=A,this.path=e,this.parentOffset=n,this.depth=e.length/3-1}resolveDepth(A){return A==null?this.depth:A<0?this.depth+A:A}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(A){return this.path[this.resolveDepth(A)*3]}index(A){return this.path[this.resolveDepth(A)*3+1]}indexAfter(A){return A=this.resolveDepth(A),this.index(A)+(A==this.depth&&!this.textOffset?0:1)}start(A){return A=this.resolveDepth(A),A==0?0:this.path[A*3-1]+1}end(A){return A=this.resolveDepth(A),this.start(A)+this.node(A).content.size}before(A){if(A=this.resolveDepth(A),!A)throw new RangeError("There is no position before the top-level node");return A==this.depth+1?this.pos:this.path[A*3-1]}after(A){if(A=this.resolveDepth(A),!A)throw new RangeError("There is no position after the top-level node");return A==this.depth+1?this.pos:this.path[A*3-1]+this.path[A*3].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let A=this.parent,e=this.index(this.depth);if(e==A.childCount)return null;let n=this.pos-this.path[this.path.length-1],r=A.child(e);return n?A.child(e).cut(n):r}get nodeBefore(){let A=this.index(this.depth),e=this.pos-this.path[this.path.length-1];return e?this.parent.child(A).cut(0,e):A==0?null:this.parent.child(A-1)}posAtIndex(A,e){e=this.resolveDepth(e);let n=this.path[e*3],r=e==0?0:this.path[e*3-1]+1;for(let i=0;i<A;i++)r+=n.child(i).nodeSize;return r}marks(){let A=this.parent,e=this.index();if(A.content.size==0)return Ae.none;if(this.textOffset)return A.child(e).marks;let n=A.maybeChild(e-1),r=A.maybeChild(e);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(A){let e=this.parent.maybeChild(this.index());if(!e||!e.isInline)return null;let n=e.marks,r=A.parent.maybeChild(A.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(A){for(let e=this.depth;e>0;e--)if(this.start(e)<=A&&this.end(e)>=A)return e;return 0}blockRange(A=this,e){if(A.pos<this.pos)return A.blockRange(this);for(let n=this.depth-(this.parent.inlineContent||this.pos==A.pos?1:0);n>=0;n--)if(A.pos<=this.end(n)&&(!e||e(this.node(n))))return new Ro(this,A,n);return null}sameParent(A){return this.pos-this.parentOffset==A.pos-A.parentOffset}max(A){return A.pos>this.pos?A:this}min(A){return A.pos<this.pos?A:this}toString(){let A="";for(let e=1;e<=this.depth;e++)A+=(A?"/":"")+this.node(e).type.name+"_"+this.index(e-1);return A+":"+this.parentOffset}static resolve(A,e){if(!(e>=0&&e<=A.content.size))throw new RangeError("Position "+e+" out of range");let n=[],r=0,i=e;for(let s=A;;){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(e,n,i)}static resolveCached(A,e){for(let r=0;r<mc.length;r++){let i=mc[r];if(i.pos==e&&i.doc==A)return i}let n=mc[wc]=Fs.resolve(A,e);return wc=(wc+1)%wQ,n}}let mc=[],wc=0,wQ=12;class Ro{constructor(A,e,n){this.$from=A,this.$to=e,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 CQ=Object.create(null);let Wr=class lh{constructor(A,e,n,r=Ae.none){this.type=A,this.attrs=e,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(A){return this.content.child(A)}maybeChild(A){return this.content.maybeChild(A)}forEach(A){this.content.forEach(A)}nodesBetween(A,e,n,r=0){this.content.nodesBetween(A,e,n,r,this)}descendants(A){this.nodesBetween(0,this.content.size,A)}get textContent(){return this.isLeaf&&this.type.spec.leafText?this.type.spec.leafText(this):this.textBetween(0,this.content.size,"")}textBetween(A,e,n,r){return this.content.textBetween(A,e,n,r)}get firstChild(){return this.content.firstChild}get lastChild(){return this.content.lastChild}eq(A){return this==A||this.sameMarkup(A)&&this.content.eq(A.content)}sameMarkup(A){return this.hasMarkup(A.type,A.attrs,A.marks)}hasMarkup(A,e,n){return this.type==A&&Do(this.attrs,e||A.defaultAttrs||CQ)&&Ae.sameSet(this.marks,n||Ae.none)}copy(A=null){return A==this.content?this:new lh(this.type,this.attrs,A,this.marks)}mark(A){return A==this.marks?this:new lh(this.type,this.attrs,this.content,A)}cut(A,e=this.content.size){return A==0&&e==this.content.size?this:this.copy(this.content.cut(A,e))}slice(A,e=this.content.size,n=!1){if(A==e)return j.empty;let r=this.resolve(A),i=this.resolve(e),s=n?0:r.sharedDepth(e),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(A,e,n){return BQ(this.resolve(A),this.resolve(e),n)}nodeAt(A){for(let e=this;;){let{index:n,offset:r}=e.content.findIndex(A);if(e=e.maybeChild(n),!e)return null;if(r==A||e.isText)return e;A-=r+1}}childAfter(A){let{index:e,offset:n}=this.content.findIndex(A);return{node:this.content.maybeChild(e),index:e,offset:n}}childBefore(A){if(A==0)return{node:null,index:0,offset:0};let{index:e,offset:n}=this.content.findIndex(A);if(n<A)return{node:this.content.child(e),index:e,offset:n};let r=this.content.child(e-1);return{node:r,index:e-1,offset:n-r.nodeSize}}resolve(A){return Fs.resolveCached(this,A)}resolveNoCache(A){return Fs.resolve(this,A)}rangeHasMark(A,e,n){let r=!1;return e>A&&this.nodesBetween(A,e,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 A=this.type.name;return this.content.size&&(A+="("+this.content.toStringInner()+")"),wh(this.marks,A)}contentMatchAt(A){let e=this.type.contentMatch.matchFragment(this.content,0,A);if(!e)throw new Error("Called contentMatchAt on a node with invalid content");return e}canReplace(A,e,n=Y.empty,r=0,i=n.childCount){let s=this.contentMatchAt(A).matchFragment(n,r,i),a=s&&s.matchFragment(this.content,e);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(A,e,n,r){if(r&&!this.type.allowsMarks(r))return!1;let i=this.contentMatchAt(A).matchType(n),s=i&&i.matchFragment(this.content,e);return s?s.validEnd:!1}canAppend(A){return A.content.size?this.canReplace(this.childCount,this.childCount,A.content):this.type.compatibleContent(A.type)}check(){this.type.checkContent(this.content);let A=Ae.none;for(let e=0;e<this.marks.length;e++)A=this.marks[e].addToSet(A);if(!Ae.sameSet(A,this.marks))throw new RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map(e=>e.type.name)}`);this.content.forEach(e=>e.check())}toJSON(){let A={type:this.type.name};for(let e in this.attrs){A.attrs=this.attrs;break}return this.content.size&&(A.content=this.content.toJSON()),this.marks.length&&(A.marks=this.marks.map(e=>e.toJSON())),A}static fromJSON(A,e){if(!e)throw new RangeError("Invalid input for Node.fromJSON");let n=null;if(e.marks){if(!Array.isArray(e.marks))throw new RangeError("Invalid mark data for Node.fromJSON");n=e.marks.map(A.markFromJSON)}if(e.type=="text"){if(typeof e.text!="string")throw new RangeError("Invalid text node in JSON");return A.text(e.text,n)}let r=Y.fromJSON(A,e.content);return A.nodeType(e.type).create(e.attrs,r,n)}};Wr.prototype.text=void 0;class Ko extends Wr{constructor(A,e,n,r){if(super(A,e,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):wh(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(A,e){return this.text.slice(A,e)}get nodeSize(){return this.text.length}mark(A){return A==this.marks?this:new Ko(this.type,this.attrs,this.text,A)}withText(A){return A==this.text?this:new Ko(this.type,this.attrs,A,this.marks)}cut(A=0,e=this.text.length){return A==0&&e==this.text.length?this:this.withText(this.text.slice(A,e))}eq(A){return this.sameMarkup(A)&&this.text==A.text}toJSON(){let A=super.toJSON();return A.text=this.text,A}}function wh(t,A){for(let e=t.length-1;e>=0;e--)A=t[e].type.name+"("+A+")";return A}class $r{constructor(A){this.validEnd=A,this.next=[],this.wrapCache=[]}static parse(A,e){let n=new yQ(A,e);if(n.next==null)return $r.empty;let r=Ch(n);n.next&&n.err("Unexpected trailing text");let i=IQ(vQ(r));return SQ(i,n),i}matchType(A){for(let e=0;e<this.next.length;e++)if(this.next[e].type==A)return this.next[e].next;return null}matchFragment(A,e=0,n=A.childCount){let r=this;for(let i=e;r&&i<n;i++)r=r.matchType(A.child(i).type);return r}get inlineContent(){return this.next.length!=0&&this.next[0].type.isInline}get defaultType(){for(let A=0;A<this.next.length;A++){let{type:e}=this.next[A];if(!(e.isText||e.hasRequiredAttrs()))return e}return null}compatible(A){for(let e=0;e<this.next.length;e++)for(let n=0;n<A.next.length;n++)if(this.next[e].type==A.next[n].type)return!0;return!1}fillBefore(A,e=!1,n=0){let r=[this];function i(s,a){let c=s.matchFragment(A,n);if(c&&(!e||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(A){for(let n=0;n<this.wrapCache.length;n+=2)if(this.wrapCache[n]==A)return this.wrapCache[n+1];let e=this.computeWrapping(A);return this.wrapCache.push(A,e),e}computeWrapping(A){let e=Object.create(null),n=[{match:this,type:null,via:null}];for(;n.length;){let r=n.shift(),i=r.match;if(i.matchType(A)){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 e)&&(!r.type||c.validEnd)&&(n.push({match:a.contentMatch,type:a,via:r}),e[a.name]=!0)}}return null}get edgeCount(){return this.next.length}edge(A){if(A>=this.next.length)throw new RangeError(`There's no ${A}th edge in this content match`);return this.next[A]}toString(){let A=[];function e(n){A.push(n);for(let r=0;r<n.next.length;r++)A.indexOf(n.next[r].next)==-1&&e(n.next[r].next)}return e(this),A.map((n,r)=>{let i=r+(n.validEnd?"*":" ")+" ";for(let s=0;s<n.next.length;s++)i+=(s?", ":"")+n.next[s].type.name+"->"+A.indexOf(n.next[s].next);return i}).join(`
3
3
  `)}}$r.empty=new $r(!0);class yQ{constructor(A,e){this.string=A,this.nodeTypes=e,this.inline=null,this.pos=0,this.tokens=A.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(A){return this.next==A&&(this.pos++||!0)}err(A){throw new SyntaxError(A+" (in content expression '"+this.string+"')")}}function Ch(t){let A=[];do A.push(EQ(t));while(t.eat("|"));return A.length==1?A[0]:{type:"choice",exprs:A}}function EQ(t){let A=[];do A.push(QQ(t));while(t.next&&t.next!=")"&&t.next!="|");return A.length==1?A[0]:{type:"seq",exprs:A}}function QQ(t){let A=UQ(t);for(;;)if(t.eat("+"))A={type:"plus",expr:A};else if(t.eat("*"))A={type:"star",expr:A};else if(t.eat("?"))A={type:"opt",expr:A};else if(t.eat("{"))A=FQ(t,A);else break;return A}function yh(t){/\D/.test(t.next)&&t.err("Expected number, got '"+t.next+"'");let A=Number(t.next);return t.pos++,A}function FQ(t,A){let e=yh(t),n=e;return t.eat(",")&&(t.next!="}"?n=yh(t):n=-1),t.eat("}")||t.err("Unclosed braced range"),{type:"range",min:e,max:n,expr:A}}function bQ(t,A){let e=t.nodeTypes,n=e[A];if(n)return[n];let r=[];for(let i in e){let s=e[i];s.groups.indexOf(A)>-1&&r.push(s)}return r.length==0&&t.err("No node type or group '"+A+"' found"),r}function UQ(t){if(t.eat("(")){let A=Ch(t);return t.eat(")")||t.err("Missing closing paren"),A}else if(/\W/.test(t.next))t.err("Unexpected token '"+t.next+"'");else{let A=bQ(t,t.next).map(e=>(t.inline==null?t.inline=e.isInline:t.inline!=e.isInline&&t.err("Mixing inline and block content"),{type:"name",value:e}));return t.pos++,A.length==1?A[0]:{type:"choice",exprs:A}}}function vQ(t){let A=[[]];return r(i(t,0),e()),A;function e(){return A.push([])-1}function n(s,a,c){let u={term:c,to:a};return A[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=e())}else if(s.type=="star"){let c=e();return n(a,c),r(i(s.expr,c),c),[n(c)]}else if(s.type=="plus"){let c=e();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=e();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=e();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 Eh(t,A){return A-t}function Qh(t,A){let e=[];return n(A),e.sort(Eh);function n(r){let i=t[r];if(i.length==1&&!i[0].term)return n(i[0].to);e.push(r);for(let s=0;s<i.length;s++){let{term:a,to:c}=i[s];!a&&e.indexOf(c)==-1&&n(c)}}}function IQ(t){let A=Object.create(null);return e(Qh(t,0));function e(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]);Qh(t,c).forEach(f=>{u||r.push([a,u=[]]),u.indexOf(f)==-1&&u.push(f)})})});let i=A[n.join(",")]=new $r(n.indexOf(t.length-1)>-1);for(let s=0;s<r.length;s++){let a=r[s][1].sort(Eh);i.next.push({type:r[s][0],next:A[a.join(",")]||e(a)})}return i}}function SQ(t,A){for(let e=0,n=[t];e<n.length;e++){let r=n[e],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&&A.err("Only non-generatable nodes ("+s.join(", ")+") in a required position (see https://prosemirror.net/docs/guide/#generatable)")}}function Fh(t){let A=Object.create(null);for(let e in t){let n=t[e];if(!n.hasDefault)return null;A[e]=n.default}return A}function bh(t,A){let e=Object.create(null);for(let n in t){let r=A&&A[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)}e[n]=r}return e}function Uh(t){let A=Object.create(null);if(t)for(let e in t)A[e]=new TQ(t[e]);return A}let vh=class uE{constructor(A,e,n){this.name=A,this.schema=e,this.spec=n,this.markSet=null,this.groups=n.group?n.group.split(" "):[],this.attrs=Uh(n.attrs),this.defaultAttrs=Fh(this.attrs),this.contentMatch=null,this.inlineContent=null,this.isBlock=!(n.inline||A=="text"),this.isText=A=="text"}get isInline(){return!this.isBlock}get isTextblock(){return this.isBlock&&this.inlineContent}get isLeaf(){return this.contentMatch==$r.empty}get isAtom(){return this.isLeaf||!!this.spec.atom}get whitespace(){return this.spec.whitespace||(this.spec.code?"pre":"normal")}hasRequiredAttrs(){for(let A in this.attrs)if(this.attrs[A].isRequired)return!0;return!1}compatibleContent(A){return this==A||this.contentMatch.compatible(A.contentMatch)}computeAttrs(A){return!A&&this.defaultAttrs?this.defaultAttrs:bh(this.attrs,A)}create(A=null,e,n){if(this.isText)throw new Error("NodeType.create can't construct text nodes");return new Wr(this,this.computeAttrs(A),Y.from(e),Ae.setFrom(n))}createChecked(A=null,e,n){return e=Y.from(e),this.checkContent(e),new Wr(this,this.computeAttrs(A),e,Ae.setFrom(n))}createAndFill(A=null,e,n){if(A=this.computeAttrs(A),e=Y.from(e),e.size){let s=this.contentMatch.fillBefore(e);if(!s)return null;e=s.append(e)}let r=this.contentMatch.matchFragment(e),i=r&&r.fillBefore(Y.empty,!0);return i?new Wr(this,A,e.append(i),Ae.setFrom(n)):null}validContent(A){let e=this.contentMatch.matchFragment(A);if(!e||!e.validEnd)return!1;for(let n=0;n<A.childCount;n++)if(!this.allowsMarks(A.child(n).marks))return!1;return!0}checkContent(A){if(!this.validContent(A))throw new RangeError(`Invalid content for node ${this.name}: ${A.toString().slice(0,50)}`)}allowsMarkType(A){return this.markSet==null||this.markSet.indexOf(A)>-1}allowsMarks(A){if(this.markSet==null)return!0;for(let e=0;e<A.length;e++)if(!this.allowsMarkType(A[e].type))return!1;return!0}allowedMarks(A){if(this.markSet==null)return A;let e;for(let n=0;n<A.length;n++)this.allowsMarkType(A[n].type)?e&&e.push(A[n]):e||(e=A.slice(0,n));return e?e.length?e:Ae.none:A}static compile(A,e){let n=Object.create(null);A.forEach((i,s)=>n[i]=new uE(i,e,s));let r=e.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 TQ{constructor(A){this.hasDefault=Object.prototype.hasOwnProperty.call(A,"default"),this.default=A.default}get isRequired(){return!this.hasDefault}}class Po{constructor(A,e,n,r){this.name=A,this.rank=e,this.schema=n,this.spec=r,this.attrs=Uh(r.attrs),this.excluded=null;let i=Fh(this.attrs);this.instance=i?new Ae(this,i):null}create(A=null){return!A&&this.instance?this.instance:new Ae(this,bh(this.attrs,A))}static compile(A,e){let n=Object.create(null),r=0;return A.forEach((i,s)=>n[i]=new Po(i,r++,e,s)),n}removeFromSet(A){for(var e=0;e<A.length;e++)A[e].type==this&&(A=A.slice(0,e).concat(A.slice(e+1)),e--);return A}isInSet(A){for(let e=0;e<A.length;e++)if(A[e].type==this)return A[e]}excludes(A){return this.excluded.indexOf(A)>-1}}class _Q{constructor(A){this.linebreakReplacement=null,this.cached=Object.create(null);let e=this.spec={};for(let r in A)e[r]=A[r];e.nodes=Me.from(A.nodes),e.marks=Me.from(A.marks||{}),this.nodes=vh.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]=$r.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?Ih(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==""?[]:Ih(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(A,e=null,n,r){if(typeof A=="string")A=this.nodeType(A);else if(A instanceof vh){if(A.schema!=this)throw new RangeError("Node type from different schema used ("+A.name+")")}else throw new RangeError("Invalid node type: "+A);return A.createChecked(e,n,r)}text(A,e){let n=this.nodes.text;return new Ko(n,n.defaultAttrs,A,Ae.setFrom(e))}mark(A,e){return typeof A=="string"&&(A=this.marks[A]),A.create(e)}nodeFromJSON(A){return Wr.fromJSON(this,A)}markFromJSON(A){return Ae.fromJSON(this,A)}nodeType(A){let e=this.nodes[A];if(!e)throw new RangeError("Unknown node type: "+A);return e}}function Ih(t,A){let e=[];for(let n=0;n<A.length;n++){let r=A[n],i=t.marks[r],s=i;if(i)e.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)&&e.push(s=c)}if(!s)throw new SyntaxError("Unknown mark type: '"+A[n]+"'")}return e}function xQ(t){return t.tag!=null}function OQ(t){return t.style!=null}class Fi{constructor(A,e){this.schema=A,this.rules=e,this.tags=[],this.styles=[],e.forEach(n=>{xQ(n)?this.tags.push(n):OQ(n)&&this.styles.push(n)}),this.normalizeLists=!this.tags.some(n=>{if(!/^(ul|ol)\b/.test(n.tag)||!n.node)return!1;let r=A.nodes[n.node];return r.contentMatch.matchType(r)})}parse(A,e={}){let n=new xh(this,e,!1);return n.addAll(A,e.from,e.to),n.finish()}parseSlice(A,e={}){let n=new xh(this,e,!0);return n.addAll(A,e.from,e.to),j.maxOpen(n.finish())}matchTag(A,e,n){for(let r=n?this.tags.indexOf(n)+1:0;r<this.tags.length;r++){let i=this.tags[r];if(kQ(A,i.tag)&&(i.namespace===void 0||A.namespaceURI==i.namespace)&&(!i.context||e.matchesContext(i.context))){if(i.getAttrs){let s=i.getAttrs(A);if(s===!1)continue;i.attrs=s||void 0}return i}}}matchStyle(A,e,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(A)!=0||s.context&&!n.matchesContext(s.context)||a.length>A.length&&(a.charCodeAt(A.length)!=61||a.slice(A.length+1)!=e))){if(s.getAttrs){let c=s.getAttrs(e);if(c===!1)continue;s.attrs=c||void 0}return s}}}static schemaRules(A){let e=[];function n(r){let i=r.priority==null?50:r.priority,s=0;for(;s<e.length;s++){let a=e[s];if((a.priority==null?50:a.priority)<i)break}e.splice(s,0,r)}for(let r in A.marks){let i=A.marks[r].spec.parseDOM;i&&i.forEach(s=>{n(s=Oh(s)),s.mark||s.ignore||s.clearMark||(s.mark=r)})}for(let r in A.nodes){let i=A.nodes[r].spec.parseDOM;i&&i.forEach(s=>{n(s=Oh(s)),s.node||s.ignore||s.mark||(s.node=r)})}return e}static fromSchema(A){return A.cached.domParser||(A.cached.domParser=new Fi(A,Fi.schemaRules(A)))}}const Sh={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},LQ={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},Th={ol:!0,ul:!0},Vo=1,Go=2,bs=4;function _h(t,A,e){return A!=null?(A?Vo:0)|(A==="full"?Go:0):t&&t.whitespace=="pre"?Vo|Go:e&~bs}class Wo{constructor(A,e,n,r,i,s,a){this.type=A,this.attrs=e,this.marks=n,this.pendingMarks=r,this.solid=i,this.options=a,this.content=[],this.activeMarks=Ae.none,this.stashMarks=[],this.match=s||(a&bs?null:A.contentMatch)}findWrapping(A){if(!this.match){if(!this.type)return[];let e=this.type.contentMatch.fillBefore(Y.from(A));if(e)this.match=this.type.contentMatch.matchFragment(e);else{let n=this.type.contentMatch,r;return(r=n.findWrapping(A.type))?(this.match=n,r):null}}return this.match.findWrapping(A.type)}finish(A){if(!(this.options&Vo)){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 e=Y.from(this.content);return!A&&this.match&&(e=e.append(this.match.fillBefore(Y.empty,!0))),this.type?this.type.create(this.attrs,e,this.marks):e}popFromStashMark(A){for(let e=this.stashMarks.length-1;e>=0;e--)if(A.eq(this.stashMarks[e]))return this.stashMarks.splice(e,1)[0]}applyPending(A){for(let e=0,n=this.pendingMarks;e<n.length;e++){let r=n[e];(this.type?this.type.allowsMarkType(r.type):DQ(r.type,A))&&!r.isInSet(this.activeMarks)&&(this.activeMarks=r.addToSet(this.activeMarks),this.pendingMarks=r.removeFromSet(this.pendingMarks))}}inlineContext(A){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:A.parentNode&&!Sh.hasOwnProperty(A.parentNode.nodeName.toLowerCase())}}class xh{constructor(A,e,n){this.parser=A,this.options=e,this.isOpen=n,this.open=0;let r=e.topNode,i,s=_h(null,e.preserveWhitespace,0)|(n?bs:0);r?i=new Wo(r.type,r.attrs,Ae.none,Ae.none,!0,e.topMatch||r.type.contentMatch,s):n?i=new Wo(null,null,Ae.none,Ae.none,!0,null,s):i=new Wo(A.schema.topNodeType,null,Ae.none,Ae.none,!0,null,s),this.nodes=[i],this.find=e.findPositions,this.needsBlock=!1}get top(){return this.nodes[this.open]}addDOM(A){A.nodeType==3?this.addTextNode(A):A.nodeType==1&&this.addElement(A)}withStyleRules(A,e){let n=A.style;if(!n||!n.length)return e();let r=this.readStyles(A.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]);e();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(A){let e=A.nodeValue,n=this.top;if(n.options&Go||n.inlineContext(A)||/[^ \t\r\n\u000c]/.test(e)){if(n.options&Vo)n.options&Go?e=e.replace(/\r\n?/g,`
4
4
  `):e=e.replace(/\r?\n|\r/g," ");else if(e=e.replace(/[ \t\r\n\u000c]+/g," "),/^[ \t\r\n\u000c]/.test(e)&&this.open==this.nodes.length-1){let r=n.content[n.content.length-1],i=A.previousSibling;(!r||i&&i.nodeName=="BR"||r.isText&&/[ \t\r\n\u000c]$/.test(r.text))&&(e=e.slice(1))}e&&this.insertNode(this.parser.schema.text(e)),this.findInText(A)}else this.findInside(A)}addElement(A,e){let n=A.nodeName.toLowerCase(),r;Th.hasOwnProperty(n)&&this.parser.normalizeLists&&HQ(A);let i=this.options.ruleFromNode&&this.options.ruleFromNode(A)||(r=this.parser.matchTag(A,this,e));if(i?i.ignore:LQ.hasOwnProperty(n))this.findInside(A),this.ignoreFallback(A);else if(!i||i.skip||i.closeParent){i&&i.closeParent?this.open=Math.max(0,this.open-1):i&&i.skip.nodeType&&(A=i.skip);let s,a=this.top,c=this.needsBlock;if(Sh.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(!A.firstChild){this.leafFallback(A);return}i&&i.skip?this.addAll(A):this.withStyleRules(A,()=>this.addAll(A)),s&&this.sync(a),this.needsBlock=c}else this.withStyleRules(A,()=>{this.addElementByRule(A,i,i.consuming===!1?r:void 0)})}leafFallback(A){A.nodeName=="BR"&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(A.ownerDocument.createTextNode(`
5
5
  `))}ignoreFallback(A){A.nodeName=="BR"&&(!this.top.type||!this.top.type.inlineContent)&&this.findPlace(this.parser.schema.text("-"))}readStyles(A){let e=Ae.none,n=Ae.none;for(let r=0,i=A.length;r<i;r++){let s=A.item(r);for(let a=void 0;;){let c=this.parser.matchStyle(s,A.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))}):e=this.parser.schema.marks[c.mark].create(c.attrs).addToSet(e),c.consuming===!1)a=c;else break}}return[e,n]}addElementByRule(A,e,n){let r,i,s;e.node?(i=this.parser.schema.nodes[e.node],i.isLeaf?this.insertNode(i.create(e.attrs))||this.leafFallback(A):r=this.enter(i,e.attrs||null,e.preserveWhitespace)):(s=this.parser.schema.marks[e.mark].create(e.attrs),this.addPendingMark(s));let a=this.top;if(i&&i.isLeaf)this.findInside(A);else if(n)this.addElement(A,n);else if(e.getContent)this.findInside(A),e.getContent(A,this.parser.schema).forEach(c=>this.insertNode(c));else{let c=A;typeof e.contentElement=="string"?c=A.querySelector(e.contentElement):typeof e.contentElement=="function"?c=e.contentElement(A):e.contentElement&&(c=e.contentElement),this.findAround(A,c,!0),this.addAll(c)}r&&this.sync(a)&&this.open--,s&&this.removePendingMark(s,a)}addAll(A,e,n){let r=e||0;for(let i=e?A.childNodes[e]:A.firstChild,s=n==null?null:A.childNodes[n];i!=s;i=i.nextSibling,++r)this.findAtPoint(A,r),this.addDOM(i);this.findAtPoint(A,r)}findPlace(A){let e,n;for(let r=this.open;r>=0;r--){let i=this.nodes[r],s=i.findWrapping(A);if(s&&(!e||e.length>s.length)&&(e=s,n=i,!s.length)||i.solid)break}if(!e)return!1;this.sync(n);for(let r=0;r<e.length;r++)this.enterInner(e[r],null,!1);return!0}insertNode(A){if(A.isInline&&this.needsBlock&&!this.top.type){let e=this.textblockFromContext();e&&this.enterInner(e)}if(this.findPlace(A)){this.closeExtra();let e=this.top;e.applyPending(A.type),e.match&&(e.match=e.match.matchType(A.type));let n=e.activeMarks;for(let r=0;r<A.marks.length;r++)(!e.type||e.type.allowsMarkType(A.marks[r].type))&&(n=A.marks[r].addToSet(n));return e.content.push(A.mark(n)),!0}return!1}enter(A,e,n){let r=this.findPlace(A.create(e));return r&&this.enterInner(A,e,!0,n),r}enterInner(A,e=null,n=!1,r){this.closeExtra();let i=this.top;i.applyPending(A),i.match=i.match&&i.match.matchType(A);let s=_h(A,r,i.options);i.options&bs&&i.content.length==0&&(s|=bs),this.nodes.push(new Wo(A,e,i.activeMarks,i.pendingMarks,n,null,s)),this.open++}closeExtra(A=!1){let e=this.nodes.length-1;if(e>this.open){for(;e>this.open;e--)this.nodes[e-1].content.push(this.nodes[e].finish(A));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(A){for(let e=this.open;e>=0;e--)if(this.nodes[e]==A)return this.open=e,!0;return!1}get currentPos(){this.closeExtra();let A=0;for(let e=this.open;e>=0;e--){let n=this.nodes[e].content;for(let r=n.length-1;r>=0;r--)A+=n[r].nodeSize;e&&A++}return A}findAtPoint(A,e){if(this.find)for(let n=0;n<this.find.length;n++)this.find[n].node==A&&this.find[n].offset==e&&(this.find[n].pos=this.currentPos)}findInside(A){if(this.find)for(let e=0;e<this.find.length;e++)this.find[e].pos==null&&A.nodeType==1&&A.contains(this.find[e].node)&&(this.find[e].pos=this.currentPos)}findAround(A,e,n){if(A!=e&&this.find)for(let r=0;r<this.find.length;r++)this.find[r].pos==null&&A.nodeType==1&&A.contains(this.find[r].node)&&e.compareDocumentPosition(this.find[r].node)&(n?2:4)&&(this.find[r].pos=this.currentPos)}findInText(A){if(this.find)for(let e=0;e<this.find.length;e++)this.find[e].node==A&&(this.find[e].pos=this.currentPos-(A.nodeValue.length-this.find[e].offset))}matchesContext(A){if(A.indexOf("|")>-1)return A.split(/\s*\|\s*/).some(this.matchesContext,this);let e=A.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=e[a];if(u==""){if(a==e.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(e.length-1,this.open)}textblockFromContext(){let A=this.options.context;if(A)for(let e=A.depth;e>=0;e--){let n=A.node(e).contentMatchAt(A.indexAfter(e)).defaultType;if(n&&n.isTextblock&&n.defaultAttrs)return n}for(let e in this.parser.schema.nodes){let n=this.parser.schema.nodes[e];if(n.isTextblock&&n.defaultAttrs)return n}}addPendingMark(A){let e=NQ(A,this.top.pendingMarks);e&&this.top.stashMarks.push(e),this.top.pendingMarks=A.addToSet(this.top.pendingMarks)}removePendingMark(A,e){for(let n=this.open;n>=0;n--){let r=this.nodes[n];if(r.pendingMarks.lastIndexOf(A)>-1)r.pendingMarks=A.removeFromSet(r.pendingMarks);else{r.activeMarks=A.removeFromSet(r.activeMarks);let s=r.popFromStashMark(A);s&&r.type&&r.type.allowsMarkType(s.type)&&(r.activeMarks=s.addToSet(r.activeMarks))}if(r==e)break}}}function HQ(t){for(let A=t.firstChild,e=null;A;A=A.nextSibling){let n=A.nodeType==1?A.nodeName.toLowerCase():null;n&&Th.hasOwnProperty(n)&&e?(e.appendChild(A),A=e):n=="li"?e=A:n&&(e=null)}}function kQ(t,A){return(t.matches||t.msMatchesSelector||t.webkitMatchesSelector||t.mozMatchesSelector).call(t,A)}function Oh(t){let A={};for(let e in t)A[e]=t[e];return A}function DQ(t,A){let e=A.schema.nodes;for(let n in e){let r=e[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==A||i.indexOf(f)<0&&s(f))return!0}};if(s(r.contentMatch))return!0}}function NQ(t,A){for(let e=0;e<A.length;e++)if(t.eq(A[e]))return A[e]}class Bn{constructor(A,e){this.nodes=A,this.marks=e}serializeFragment(A,e={},n){n||(n=Cc(e).createDocumentFragment());let r=n,i=[];return A.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,e);f&&(i.push([u,r]),r.appendChild(f.dom),r=f.contentDOM||f.dom)}}r.appendChild(this.serializeNodeInner(s,e))}),n}serializeNodeInner(A,e){let{dom:n,contentDOM:r}=Bn.renderSpec(Cc(e),this.nodes[A.type.name](A));if(r){if(A.isLeaf)throw new RangeError("Content hole not allowed in a leaf node spec");this.serializeFragment(A.content,e,r)}return n}serializeNode(A,e={}){let n=this.serializeNodeInner(A,e);for(let r=A.marks.length-1;r>=0;r--){let i=this.serializeMark(A.marks[r],A.isInline,e);i&&((i.contentDOM||i.dom).appendChild(n),n=i.dom)}return n}serializeMark(A,e,n={}){let r=this.marks[A.type.name];return r&&Bn.renderSpec(Cc(n),r(A,e))}static renderSpec(A,e,n=null){if(typeof e=="string")return{dom:A.createTextNode(e)};if(e.nodeType!=null)return{dom:e};if(e.dom&&e.dom.nodeType!=null)return e;let r=e[0],i=r.indexOf(" ");i>0&&(n=r.slice(0,i),r=r.slice(i+1));let s,a=n?A.createElementNS(n,r):A.createElement(r),c=e[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<e.length;f++){let p=e[f];if(p===0){if(f<e.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:m}=Bn.renderSpec(A,p,n);if(a.appendChild(g),m){if(s)throw new RangeError("Multiple content holes");s=m}}}return{dom:a,contentDOM:s}}static fromSchema(A){return A.cached.domSerializer||(A.cached.domSerializer=new Bn(this.nodesFromSchema(A),this.marksFromSchema(A)))}static nodesFromSchema(A){let e=Lh(A.nodes);return e.text||(e.text=n=>n.text),e}static marksFromSchema(A){return Lh(A.marks)}}function Lh(t){let A={};for(let e in t){let n=t[e].spec.toDOM;n&&(A[e]=n)}return A}function Cc(t){return t.document||window.document}const Hh=65535,kh=Math.pow(2,16);function MQ(t,A){return t+A*kh}function Dh(t){return t&Hh}function RQ(t){return(t-(t&Hh))/kh}const Nh=1,Mh=2,$o=4,Rh=8;class yc{constructor(A,e,n){this.pos=A,this.delInfo=e,this.recover=n}get deleted(){return(this.delInfo&Rh)>0}get deletedBefore(){return(this.delInfo&(Nh|$o))>0}get deletedAfter(){return(this.delInfo&(Mh|$o))>0}get deletedAcross(){return(this.delInfo&$o)>0}}class Ut{constructor(A,e=!1){if(this.ranges=A,this.inverted=e,!A.length&&Ut.empty)return Ut.empty}recover(A){let e=0,n=Dh(A);if(!this.inverted)for(let r=0;r<n;r++)e+=this.ranges[r*3+2]-this.ranges[r*3+1];return this.ranges[n*3]+e+RQ(A)}mapResult(A,e=1){return this._map(A,e,!1)}map(A,e=1){return this._map(A,e,!0)}_map(A,e,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>A)break;let u=this.ranges[a+i],f=this.ranges[a+s],p=c+u;if(A<=p){let g=u?A==c?-1:A==p?1:e:e,m=c+r+(g<0?0:f);if(n)return m;let w=A==(e<0?c:p)?null:MQ(a/3,A-c),F=A==c?Mh:A==p?Nh:$o;return(e<0?A!=c:A!=p)&&(F|=Rh),new yc(m,F,w)}r+=f-u}return n?A+r:new yc(A+r,0,null)}touches(A,e){let n=0,r=Dh(e),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>A)break;let u=this.ranges[a+i],f=c+u;if(A<=f&&a==r*3)return!0;n+=this.ranges[a+s]-u}return!1}forEach(A){let e=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+e],f=this.ranges[r+n];A(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(A){return A==0?Ut.empty:new Ut(A<0?[0,-A,0]:[0,0,A])}}Ut.empty=new Ut([]);class bi{constructor(A=[],e,n=0,r=A.length){this.maps=A,this.mirror=e,this.from=n,this.to=r}slice(A=0,e=this.maps.length){return new bi(this.maps,this.mirror,A,e)}copy(){return new bi(this.maps.slice(),this.mirror&&this.mirror.slice(),this.from,this.to)}appendMap(A,e){this.to=this.maps.push(A),e!=null&&this.setMirror(this.maps.length-1,e)}appendMapping(A){for(let e=0,n=this.maps.length;e<A.maps.length;e++){let r=A.getMirror(e);this.appendMap(A.maps[e],r!=null&&r<e?n+r:void 0)}}getMirror(A){if(this.mirror){for(let e=0;e<this.mirror.length;e++)if(this.mirror[e]==A)return this.mirror[e+(e%2?-1:1)]}}setMirror(A,e){this.mirror||(this.mirror=[]),this.mirror.push(A,e)}appendMappingInverted(A){for(let e=A.maps.length-1,n=this.maps.length+A.maps.length;e>=0;e--){let r=A.getMirror(e);this.appendMap(A.maps[e].invert(),r!=null&&r>e?n-r-1:void 0)}}invert(){let A=new bi;return A.appendMappingInverted(this),A}map(A,e=1){if(this.mirror)return this._map(A,e,!0);for(let n=this.from;n<this.to;n++)A=this.maps[n].map(A,e);return A}mapResult(A,e=1){return this._map(A,e,!1)}_map(A,e,n){let r=0;for(let i=this.from;i<this.to;i++){let s=this.maps[i],a=s.mapResult(A,e);if(a.recover!=null){let c=this.getMirror(i);if(c!=null&&c>i&&c<this.to){i=c,A=this.maps[c].recover(a.recover);continue}}r|=a.delInfo,A=a.pos}return n?A:new yc(A,r,null)}}const Ec=Object.create(null);class Je{getMap(){return Ut.empty}merge(A){return null}static fromJSON(A,e){if(!e||!e.stepType)throw new RangeError("Invalid input for Step.fromJSON");let n=Ec[e.stepType];if(!n)throw new RangeError(`No step type ${e.stepType} defined`);return n.fromJSON(A,e)}static jsonID(A,e){if(A in Ec)throw new RangeError("Duplicate use of step JSON ID "+A);return Ec[A]=e,e.prototype.jsonID=A,e}}class Qe{constructor(A,e){this.doc=A,this.failed=e}static ok(A){return new Qe(A,null)}static fail(A){return new Qe(null,A)}static fromReplace(A,e,n,r){try{return Qe.ok(A.replace(e,n,r))}catch(i){if(i instanceof No)return Qe.fail(i.message);throw i}}}function Qc(t,A,e){let n=[];for(let r=0;r<t.childCount;r++){let i=t.child(r);i.content.size&&(i=i.copy(Qc(i.content,A,i))),i.isInline&&(i=A(i,e,r)),n.push(i)}return Y.fromArray(n)}class sr extends Je{constructor(A,e,n){super(),this.from=A,this.to=e,this.mark=n}apply(A){let e=A.slice(this.from,this.to),n=A.resolve(this.from),r=n.node(n.sharedDepth(this.to)),i=new j(Qc(e.content,(s,a)=>!s.isAtom||!a.type.allowsMarkType(this.mark.type)?s:s.mark(this.mark.addToSet(s.marks)),r),e.openStart,e.openEnd);return Qe.fromReplace(A,this.from,this.to,i)}invert(){return new mn(this.from,this.to,this.mark)}map(A){let e=A.mapResult(this.from,1),n=A.mapResult(this.to,-1);return e.deleted&&n.deleted||e.pos>=n.pos?null:new sr(e.pos,n.pos,this.mark)}merge(A){return A instanceof sr&&A.mark.eq(this.mark)&&this.from<=A.to&&this.to>=A.from?new sr(Math.min(this.from,A.from),Math.max(this.to,A.to),this.mark):null}toJSON(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(A,e){if(typeof e.from!="number"||typeof e.to!="number")throw new RangeError("Invalid input for AddMarkStep.fromJSON");return new sr(e.from,e.to,A.markFromJSON(e.mark))}}Je.jsonID("addMark",sr);class mn extends Je{constructor(A,e,n){super(),this.from=A,this.to=e,this.mark=n}apply(A){let e=A.slice(this.from,this.to),n=new j(Qc(e.content,r=>r.mark(this.mark.removeFromSet(r.marks)),A),e.openStart,e.openEnd);return Qe.fromReplace(A,this.from,this.to,n)}invert(){return new sr(this.from,this.to,this.mark)}map(A){let e=A.mapResult(this.from,1),n=A.mapResult(this.to,-1);return e.deleted&&n.deleted||e.pos>=n.pos?null:new mn(e.pos,n.pos,this.mark)}merge(A){return A instanceof mn&&A.mark.eq(this.mark)&&this.from<=A.to&&this.to>=A.from?new mn(Math.min(this.from,A.from),Math.max(this.to,A.to),this.mark):null}toJSON(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(A,e){if(typeof e.from!="number"||typeof e.to!="number")throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");return new mn(e.from,e.to,A.markFromJSON(e.mark))}}Je.jsonID("removeMark",mn);class or extends Je{constructor(A,e){super(),this.pos=A,this.mark=e}apply(A){let e=A.nodeAt(this.pos);if(!e)return Qe.fail("No node at mark step's position");let n=e.type.create(e.attrs,null,this.mark.addToSet(e.marks));return Qe.fromReplace(A,this.pos,this.pos+1,new j(Y.from(n),0,e.isLeaf?0:1))}invert(A){let e=A.nodeAt(this.pos);if(e){let n=this.mark.addToSet(e.marks);if(n.length==e.marks.length){for(let r=0;r<e.marks.length;r++)if(!e.marks[r].isInSet(n))return new or(this.pos,e.marks[r]);return new or(this.pos,this.mark)}}return new Ui(this.pos,this.mark)}map(A){let e=A.mapResult(this.pos,1);return e.deletedAfter?null:new or(e.pos,this.mark)}toJSON(){return{stepType:"addNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(A,e){if(typeof e.pos!="number")throw new RangeError("Invalid input for AddNodeMarkStep.fromJSON");return new or(e.pos,A.markFromJSON(e.mark))}}Je.jsonID("addNodeMark",or);class Ui extends Je{constructor(A,e){super(),this.pos=A,this.mark=e}apply(A){let e=A.nodeAt(this.pos);if(!e)return Qe.fail("No node at mark step's position");let n=e.type.create(e.attrs,null,this.mark.removeFromSet(e.marks));return Qe.fromReplace(A,this.pos,this.pos+1,new j(Y.from(n),0,e.isLeaf?0:1))}invert(A){let e=A.nodeAt(this.pos);return!e||!this.mark.isInSet(e.marks)?this:new or(this.pos,this.mark)}map(A){let e=A.mapResult(this.pos,1);return e.deletedAfter?null:new Ui(e.pos,this.mark)}toJSON(){return{stepType:"removeNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(A,e){if(typeof e.pos!="number")throw new RangeError("Invalid input for RemoveNodeMarkStep.fromJSON");return new Ui(e.pos,A.markFromJSON(e.mark))}}Je.jsonID("removeNodeMark",Ui);class xe extends Je{constructor(A,e,n,r=!1){super(),this.from=A,this.to=e,this.slice=n,this.structure=r}apply(A){return this.structure&&Fc(A,this.from,this.to)?Qe.fail("Structure replace would overwrite content"):Qe.fromReplace(A,this.from,this.to,this.slice)}getMap(){return new Ut([this.from,this.to-this.from,this.slice.size])}invert(A){return new xe(this.from,this.from+this.slice.size,A.slice(this.from,this.to))}map(A){let e=A.mapResult(this.from,1),n=A.mapResult(this.to,-1);return e.deletedAcross&&n.deletedAcross?null:new xe(e.pos,Math.max(e.pos,n.pos),this.slice)}merge(A){if(!(A instanceof xe)||A.structure||this.structure)return null;if(this.from+this.slice.size==A.from&&!this.slice.openEnd&&!A.slice.openStart){let e=this.slice.size+A.slice.size==0?j.empty:new j(this.slice.content.append(A.slice.content),this.slice.openStart,A.slice.openEnd);return new xe(this.from,this.to+(A.to-A.from),e,this.structure)}else if(A.to==this.from&&!this.slice.openStart&&!A.slice.openEnd){let e=this.slice.size+A.slice.size==0?j.empty:new j(A.slice.content.append(this.slice.content),A.slice.openStart,this.slice.openEnd);return new xe(A.from,this.to,e,this.structure)}else return null}toJSON(){let A={stepType:"replace",from:this.from,to:this.to};return this.slice.size&&(A.slice=this.slice.toJSON()),this.structure&&(A.structure=!0),A}static fromJSON(A,e){if(typeof e.from!="number"||typeof e.to!="number")throw new RangeError("Invalid input for ReplaceStep.fromJSON");return new xe(e.from,e.to,j.fromJSON(A,e.slice),!!e.structure)}}Je.jsonID("replace",xe);class Oe extends Je{constructor(A,e,n,r,i,s,a=!1){super(),this.from=A,this.to=e,this.gapFrom=n,this.gapTo=r,this.slice=i,this.insert=s,this.structure=a}apply(A){if(this.structure&&(Fc(A,this.from,this.gapFrom)||Fc(A,this.gapTo,this.to)))return Qe.fail("Structure gap-replace would overwrite content");let e=A.slice(this.gapFrom,this.gapTo);if(e.openStart||e.openEnd)return Qe.fail("Gap is not a flat range");let n=this.slice.insertAt(this.insert,e.content);return n?Qe.fromReplace(A,this.from,this.to,n):Qe.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(A){let e=this.gapTo-this.gapFrom;return new Oe(this.from,this.from+this.slice.size+e,this.from+this.insert,this.from+this.insert+e,A.slice(this.from,this.to).removeBetween(this.gapFrom-this.from,this.gapTo-this.from),this.gapFrom-this.from,this.structure)}map(A){let e=A.mapResult(this.from,1),n=A.mapResult(this.to,-1),r=this.from==this.gapFrom?e.pos:A.map(this.gapFrom,-1),i=this.to==this.gapTo?n.pos:A.map(this.gapTo,1);return e.deletedAcross&&n.deletedAcross||r<e.pos||i>n.pos?null:new Oe(e.pos,n.pos,r,i,this.slice,this.insert,this.structure)}toJSON(){let A={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(A.slice=this.slice.toJSON()),this.structure&&(A.structure=!0),A}static fromJSON(A,e){if(typeof e.from!="number"||typeof e.to!="number"||typeof e.gapFrom!="number"||typeof e.gapTo!="number"||typeof e.insert!="number")throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new Oe(e.from,e.to,e.gapFrom,e.gapTo,j.fromJSON(A,e.slice),e.insert,!!e.structure)}}Je.jsonID("replaceAround",Oe);function Fc(t,A,e){let n=t.resolve(A),r=e-A,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 KQ(t,A,e,n){let r=[],i=[],s,a;t.doc.nodesBetween(A,e,(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,A),m=Math.min(u+c.nodeSize,e),w=n.addToSet(p);for(let F=0;F<p.length;F++)p[F].isInSet(w)||(s&&s.to==g&&s.mark.eq(p[F])?s.to=m:r.push(s=new mn(g,m,p[F])));a&&a.to==g?a.to=m:i.push(a=new sr(g,m,n))}}),r.forEach(c=>t.step(c)),i.forEach(c=>t.step(c))}function PQ(t,A,e,n){let r=[],i=0;t.doc.nodesBetween(A,e,(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,e);for(let f=0;f<c.length;f++){let p=c[f],g;for(let m=0;m<r.length;m++){let w=r[m];w.step==i-1&&p.eq(r[m].style)&&(g=w)}g?(g.to=u,g.step=i):r.push({style:p,from:Math.max(a,A),to:u,step:i})}}}),r.forEach(s=>t.step(new mn(s.from,s.to,s.style)))}function Kh(t,A,e,n=e.contentMatch,r=!0){let i=t.doc.nodeAt(A),s=[],a=A+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 xe(a,f,j.empty));else{n=p;for(let g=0;g<u.marks.length;g++)e.allowsMarkType(u.marks[g].type)||t.step(new mn(a,f,u.marks[g]));if(r&&u.isText&&e.whitespace!="pre"){let g,m=/\r?\n|\r/g,w;for(;g=m.exec(u.text);)w||(w=new j(Y.from(e.schema.text(" ",e.allowedMarks(u.marks))),0,0)),s.push(new xe(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 VQ(t,A,e){return(A==0||t.canReplace(A,t.childCount))&&(e==t.childCount||t.canReplace(0,e))}function vi(t){let e=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,e))return n;if(n==0||r.type.spec.isolating||!VQ(r,i,s))break}return null}function GQ(t,A,e){let{$from:n,$to:r,depth:i}=A,s=n.before(i+1),a=r.after(i+1),c=s,u=a,f=Y.empty,p=0;for(let w=i,F=!1;w>e;w--)F||n.index(w)>0?(F=!0,f=Y.from(n.node(w).copy(f)),p++):c--;let g=Y.empty,m=0;for(let w=i,F=!1;w>e;w--)F||r.after(w+1)<r.end(w)?(F=!0,g=Y.from(r.node(w).copy(g)),m++):u++;t.step(new Oe(c,u,s,a,new j(f.append(g),p,m),f.size-p,!0))}function bc(t,A,e=null,n=t){let r=WQ(t,A),i=r&&$Q(n,A);return i?r.map(Ph).concat({type:A,attrs:e}).concat(i.map(Ph)):null}function Ph(t){return{type:t,attrs:null}}function WQ(t,A){let{parent:e,startIndex:n,endIndex:r}=t,i=e.contentMatchAt(n).findWrapping(A);if(!i)return null;let s=i.length?i[0]:A;return e.canReplaceWith(n,r,s)?i:null}function $Q(t,A){let{parent:e,startIndex:n,endIndex:r}=t,i=e.child(n),s=A.contentMatch.findWrapping(i.type);if(!s)return null;let c=(s.length?s[s.length-1]:A).contentMatch;for(let u=n;c&&u<r;u++)c=c.matchType(e.child(u).type);return!c||!c.validEnd?null:s}function JQ(t,A,e){let n=Y.empty;for(let s=e.length-1;s>=0;s--){if(n.size){let a=e[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(e[s].type.create(e[s].attrs,n))}let r=A.start,i=A.end;t.step(new Oe(r,i,r,i,new j(n,0,0),e.length,!0))}function XQ(t,A,e,n,r){if(!n.isTextblock)throw new RangeError("Type given to setBlockType should be a textblock");let i=t.steps.length;t.doc.nodesBetween(A,e,(s,a)=>{if(s.isTextblock&&!s.hasMarkup(n,r)&&qQ(t.doc,t.mapping.slice(i).map(a),n)){let c=null;if(n.schema.linebreakReplacement){let g=n.whitespace=="pre",m=!!n.contentMatch.matchType(n.schema.linebreakReplacement);g&&!m?c=!1:!g&&m&&(c=!0)}c===!1&&zQ(t,s,a,i),Kh(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 Oe(f,p,f+1,p-1,new j(Y.from(n.create(r,null,s.marks)),0,0),1,!0)),c===!0&&YQ(t,s,a,i),!1}})}function YQ(t,A,e,n){A.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(e+1+i+s.index);t.replaceWith(c,c+1,A.type.schema.linebreakReplacement.create())}}})}function zQ(t,A,e,n){A.forEach((r,i)=>{if(r.type==r.type.schema.linebreakReplacement){let s=t.mapping.slice(n).map(e+1+i);t.replaceWith(s,s+1,A.type.schema.text(`
@@ -111,7 +111,7 @@ img.ProseMirror-separator {
111
111
  `,"Instead, pass the .innerHTML of the element, or use a function that","returns a cloned version of the element instead.",`
112
112
 
113
113
  `,`1) content: element.innerHTML
114
- `,"2) content: () => element.cloneNode(true)"].join(" "))}var a=r.reduce(function(c,u){var f=u&&k1(u,n);return f&&c.push(f),c},[]);return Vs(t)?a[0]:a}Pi.defaultProps=It,Pi.setDefaultProps=x1,Pi.currentInput=Fn,Object.assign({},uh.applyStyles,{effect:function(A){var e=A.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow)}}),Pi.setDefaultProps({render:gB});class D1{constructor({editor:A,element:e,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:m}=g,w=!p.textBetween(u,f).length&&uu(c.selection),F=this.element.contains(document.activeElement);return!(!(a.hasFocus()||F)||m||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,m;const{state:w,composing:F}=a,{selection:b}=w;if(F||!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:((m=this.tippyOptions)===null||m===void 0?void 0:m.getReferenceClientRect)||(()=>{if(Mv(w.selection)){let U=a.nodeDOM(S);const D=U.dataset.nodeViewWrapper?U:U.querySelector("[data-node-view-wrapper]");if(D&&(U=D.firstChild),U)return U.getBoundingClientRect()}return Ng(a,S,E)})}),this.show()},this.editor=A,this.element=e,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:A}=this.editor.options,e=!!A.parentElement;this.tippy||!e||(this.tippy=Pi(A,{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(A,e){const{state:n}=A,r=n.selection.$from.pos!==n.selection.$to.pos;if(this.updateDelay>0&&r){this.handleDebouncedUpdate(A,e);return}const i=!(e!=null&&e.selection.eq(A.state.selection)),s=!(e!=null&&e.doc.eq(A.state.doc));this.updateHandler(A,i,s,e)}show(){var A;(A=this.tippy)===null||A===void 0||A.show()}hide(){var A;(A=this.tippy)===null||A===void 0||A.hide()}destroy(){var A,e;!((A=this.tippy)===null||A===void 0)&&A.popper.firstChild&&this.tippy.popper.firstChild.removeEventListener("blur",this.tippyBlurHandler),(e=this.tippy)===null||e===void 0||e.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 BB=t=>new pt({key:typeof t.pluginKey=="string"?new wn(t.pluginKey):t.pluginKey,view:A=>new D1({view:A,...t})});Ye.create({name:"bubbleMenu",addOptions(){return{element:null,tippyOptions:{},pluginKey:"bubbleMenu",updateDelay:void 0,shouldShow:null}},addProseMirrorPlugins(){return this.options.element?[BB({pluginKey:this.options.pluginKey,editor:this.editor,element:this.options.element,tippyOptions:this.options.tippyOptions,updateDelay:this.options.updateDelay,shouldShow:this.options.shouldShow})]:[]}});class N1{constructor({editor:A,element:e,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=A,this.element=e,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:A}=this.editor.options,e=!!A.parentElement;this.tippy||!e||(this.tippy=Pi(A,{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(A,e){var n,r,i;const{state:s}=A,{doc:a,selection:c}=s,{from:u,to:f}=c;if(e&&e.doc.eq(a)&&e.selection.eq(c))return;if(this.createTooltip(),!((n=this.shouldShow)===null||n===void 0?void 0:n.call(this,{editor:this.editor,view:A,state:s,oldState:e}))){this.hide();return}(r=this.tippy)===null||r===void 0||r.setProps({getReferenceClientRect:((i=this.tippyOptions)===null||i===void 0?void 0:i.getReferenceClientRect)||(()=>Ng(A,u,f))}),this.show()}show(){var A;(A=this.tippy)===null||A===void 0||A.show()}hide(){var A;(A=this.tippy)===null||A===void 0||A.hide()}destroy(){var A,e;!((A=this.tippy)===null||A===void 0)&&A.popper.firstChild&&this.tippy.popper.firstChild.removeEventListener("blur",this.tippyBlurHandler),(e=this.tippy)===null||e===void 0||e.destroy(),this.element.removeEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.editor.off("focus",this.focusHandler),this.editor.off("blur",this.blurHandler)}}const mB=t=>new pt({key:typeof t.pluginKey=="string"?new wn(t.pluginKey):t.pluginKey,view:A=>new N1({view:A,...t})});Ye.create({name:"floatingMenu",addOptions(){return{element:null,tippyOptions:{},pluginKey:"floatingMenu",shouldShow:null}},addProseMirrorPlugins(){return this.options.element?[mB({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:A}){const e=h.ref(null);return h.onMounted(()=>{const{updateDelay:n,editor:r,pluginKey:i,shouldShow:s,tippyOptions:a}=t;r.registerPlugin(BB({updateDelay:n,editor:r,element:e.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:e},(n=A.default)===null||n===void 0?void 0:n.call(A))}}});function wB(t){return h.customRef((A,e)=>({get(){return A(),t},set(n){t=n,requestAnimationFrame(()=>{requestAnimationFrame(()=>{e()})})}}))}class M1 extends nI{constructor(A={}){return super(A),this.vueRenderers=h.reactive(new Map),this.contentComponent=null,this.reactiveState=wB(this.view.state),this.reactiveExtensionStorage=wB(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(A,e){super.registerPlugin(A,e),this.reactiveState.value=this.view.state}unregisterPlugin(A){super.unregisterPlugin(A),this.reactiveState.value=this.view.state}}const R1=h.defineComponent({name:"EditorContent",props:{editor:{default:null,type:Object}},setup(t){const A=h.ref(),e=h.getCurrentInstance();return h.watchEffect(()=>{const n=t.editor;n&&n.options.element&&A.value&&h.nextTick(()=>{if(!A.value||!n.options.element.firstChild)return;const r=h.unref(A.value);A.value.append(...n.options.element.childNodes),n.contentComponent=e.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:A}},render(){const t=[];return this.editor&&this.editor.vueRenderers.forEach(A=>{const e=h.h(h.Teleport,{to:A.teleportElement,key:A.id},h.h(A.component,{ref:A.id,...A.props}));t.push(e)}),h.h("div",{ref:A=>{this.rootEl=A}},...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:A}){const e=h.ref(null);return h.onMounted(()=>{const{pluginKey:n,editor:r,tippyOptions:i,shouldShow:s}=t;r.registerPlugin(mB({pluginKey:n,editor:r,element:e.value,tippyOptions:i,shouldShow:s}))}),h.onBeforeUnmount(()=>{const{pluginKey:n,editor:r}=t;r.unregisterPlugin(n)}),()=>{var n;return h.h("div",{ref:e},(n=A.default)===null||n===void 0?void 0:n.call(A))}}}),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,A;return h.h(this.as,{class:this.decorationClasses,style:{whiteSpace:"normal"},"data-node-view-wrapper":"",onDragstart:this.onDragStart},(A=(t=this.$slots).default)===null||A===void 0?void 0:A.call(t))}});const K1=(t={})=>{const A=h.shallowRef();return h.onMounted(()=>{A.value=new M1(t)}),h.onBeforeUnmount(()=>{var e;(e=A.value)===null||e===void 0||e.destroy()}),A},P1={class:"rte-editor"},V1={key:0,class:"rte-editor__controls"},G1=["disabled"],W1=["disabled"],$1=["disabled"],J1=["disabled"],X1=["disabled"],Y1=["disabled"],z1=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:A}){const e=t,n=A,r=K1({content:e.modelValue,onUpdate:()=>{var i;n("update:modelValue",(i=r.value)==null?void 0:i.getHTML())},extensions:[a1,aI.configure({types:["heading","paragraph"]}),oI]});return h.watch(()=>e.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",P1,[h.unref(r)?(h.openBlock(),h.createElementBlock("div",V1,[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,G1),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,W1),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,$1),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,J1),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,X1),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,Y1),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(R1),{class:"rte-editor__content",editor:h.unref(r)},null,8,["editor"])])}}}),h3="",q1={class:"input-color"},Z1={class:"base-input__color-swatch"},j1=["name","id","disabled","read-only","required","aria-label"],AS=h.defineComponent({__name:"input-color",props:{modelValue:{type:[String,Number,Boolean,Date],default:""},type:{type:String,default:"text"},name:{type:String,default:()=>me()},id:{type:String,default:()=>me()},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:A}){const e=t,n=A,r=h.computed({get(){return e.modelValue},set(i){n("update:modelValue",i)}});return(i,s)=>{const a=h.resolveComponent("base-input");return h.openBlock(),h.createElementBlock("div",q1,[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",Z1,[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,j1),[[h.vModelText,r.value]])])]),_:1},8,["modelValue","type","id","name","placeholder","pattern","label","disabled","read-only","required","maxlength"])])}}}),p3="";/*!
114
+ `,"2) content: () => element.cloneNode(true)"].join(" "))}var a=r.reduce(function(c,u){var f=u&&k1(u,n);return f&&c.push(f),c},[]);return Vs(t)?a[0]:a}Pi.defaultProps=It,Pi.setDefaultProps=x1,Pi.currentInput=Fn,Object.assign({},uh.applyStyles,{effect:function(A){var e=A.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow)}}),Pi.setDefaultProps({render:gB});class D1{constructor({editor:A,element:e,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:m}=g,w=!p.textBetween(u,f).length&&uu(c.selection),F=this.element.contains(document.activeElement);return!(!(a.hasFocus()||F)||m||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,m;const{state:w,composing:F}=a,{selection:b}=w;if(F||!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:((m=this.tippyOptions)===null||m===void 0?void 0:m.getReferenceClientRect)||(()=>{if(Mv(w.selection)){let U=a.nodeDOM(S);const D=U.dataset.nodeViewWrapper?U:U.querySelector("[data-node-view-wrapper]");if(D&&(U=D.firstChild),U)return U.getBoundingClientRect()}return Ng(a,S,E)})}),this.show()},this.editor=A,this.element=e,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:A}=this.editor.options,e=!!A.parentElement;this.tippy||!e||(this.tippy=Pi(A,{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(A,e){const{state:n}=A,r=n.selection.$from.pos!==n.selection.$to.pos;if(this.updateDelay>0&&r){this.handleDebouncedUpdate(A,e);return}const i=!(e!=null&&e.selection.eq(A.state.selection)),s=!(e!=null&&e.doc.eq(A.state.doc));this.updateHandler(A,i,s,e)}show(){var A;(A=this.tippy)===null||A===void 0||A.show()}hide(){var A;(A=this.tippy)===null||A===void 0||A.hide()}destroy(){var A,e;!((A=this.tippy)===null||A===void 0)&&A.popper.firstChild&&this.tippy.popper.firstChild.removeEventListener("blur",this.tippyBlurHandler),(e=this.tippy)===null||e===void 0||e.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 BB=t=>new pt({key:typeof t.pluginKey=="string"?new wn(t.pluginKey):t.pluginKey,view:A=>new D1({view:A,...t})});Ye.create({name:"bubbleMenu",addOptions(){return{element:null,tippyOptions:{},pluginKey:"bubbleMenu",updateDelay:void 0,shouldShow:null}},addProseMirrorPlugins(){return this.options.element?[BB({pluginKey:this.options.pluginKey,editor:this.editor,element:this.options.element,tippyOptions:this.options.tippyOptions,updateDelay:this.options.updateDelay,shouldShow:this.options.shouldShow})]:[]}});class N1{constructor({editor:A,element:e,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=A,this.element=e,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:A}=this.editor.options,e=!!A.parentElement;this.tippy||!e||(this.tippy=Pi(A,{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(A,e){var n,r,i;const{state:s}=A,{doc:a,selection:c}=s,{from:u,to:f}=c;if(e&&e.doc.eq(a)&&e.selection.eq(c))return;if(this.createTooltip(),!((n=this.shouldShow)===null||n===void 0?void 0:n.call(this,{editor:this.editor,view:A,state:s,oldState:e}))){this.hide();return}(r=this.tippy)===null||r===void 0||r.setProps({getReferenceClientRect:((i=this.tippyOptions)===null||i===void 0?void 0:i.getReferenceClientRect)||(()=>Ng(A,u,f))}),this.show()}show(){var A;(A=this.tippy)===null||A===void 0||A.show()}hide(){var A;(A=this.tippy)===null||A===void 0||A.hide()}destroy(){var A,e;!((A=this.tippy)===null||A===void 0)&&A.popper.firstChild&&this.tippy.popper.firstChild.removeEventListener("blur",this.tippyBlurHandler),(e=this.tippy)===null||e===void 0||e.destroy(),this.element.removeEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.editor.off("focus",this.focusHandler),this.editor.off("blur",this.blurHandler)}}const mB=t=>new pt({key:typeof t.pluginKey=="string"?new wn(t.pluginKey):t.pluginKey,view:A=>new N1({view:A,...t})});Ye.create({name:"floatingMenu",addOptions(){return{element:null,tippyOptions:{},pluginKey:"floatingMenu",shouldShow:null}},addProseMirrorPlugins(){return this.options.element?[mB({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:A}){const e=h.ref(null);return h.onMounted(()=>{const{updateDelay:n,editor:r,pluginKey:i,shouldShow:s,tippyOptions:a}=t;r.registerPlugin(BB({updateDelay:n,editor:r,element:e.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:e},(n=A.default)===null||n===void 0?void 0:n.call(A))}}});function wB(t){return h.customRef((A,e)=>({get(){return A(),t},set(n){t=n,requestAnimationFrame(()=>{requestAnimationFrame(()=>{e()})})}}))}class M1 extends nI{constructor(A={}){return super(A),this.vueRenderers=h.reactive(new Map),this.contentComponent=null,this.reactiveState=wB(this.view.state),this.reactiveExtensionStorage=wB(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(A,e){super.registerPlugin(A,e),this.reactiveState.value=this.view.state}unregisterPlugin(A){super.unregisterPlugin(A),this.reactiveState.value=this.view.state}}const R1=h.defineComponent({name:"EditorContent",props:{editor:{default:null,type:Object}},setup(t){const A=h.ref(),e=h.getCurrentInstance();return h.watchEffect(()=>{const n=t.editor;n&&n.options.element&&A.value&&h.nextTick(()=>{if(!A.value||!n.options.element.firstChild)return;const r=h.unref(A.value);A.value.append(...n.options.element.childNodes),n.contentComponent=e.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:A}},render(){const t=[];return this.editor&&this.editor.vueRenderers.forEach(A=>{const e=h.h(h.Teleport,{to:A.teleportElement,key:A.id},h.h(A.component,{ref:A.id,...A.props}));t.push(e)}),h.h("div",{ref:A=>{this.rootEl=A}},...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:A}){const e=h.ref(null);return h.onMounted(()=>{const{pluginKey:n,editor:r,tippyOptions:i,shouldShow:s}=t;r.registerPlugin(mB({pluginKey:n,editor:r,element:e.value,tippyOptions:i,shouldShow:s}))}),h.onBeforeUnmount(()=>{const{pluginKey:n,editor:r}=t;r.unregisterPlugin(n)}),()=>{var n;return h.h("div",{ref:e},(n=A.default)===null||n===void 0?void 0:n.call(A))}}}),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,A;return h.h(this.as,{class:this.decorationClasses,style:{whiteSpace:"normal"},"data-node-view-wrapper":"",onDragstart:this.onDragStart},(A=(t=this.$slots).default)===null||A===void 0?void 0:A.call(t))}});const K1=(t={})=>{const A=h.shallowRef();return h.onMounted(()=>{A.value=new M1(t)}),h.onBeforeUnmount(()=>{var e;(e=A.value)===null||e===void 0||e.destroy()}),A},P1={class:"rte-editor"},V1={key:0,class:"rte-editor__controls"},G1=["disabled"],W1=["disabled"],$1=["disabled"],J1=["disabled"],X1=["disabled"],Y1=["disabled"],z1=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:A}){const e=t,n=A,r=K1({content:e.modelValue,onUpdate:()=>{var i;n("update:modelValue",(i=r.value)==null?void 0:i.getHTML())},extensions:[a1,aI.configure({types:["heading","paragraph"]}),oI]});return h.watch(()=>e.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",P1,[h.unref(r)?(h.openBlock(),h.createElementBlock("div",V1,[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,G1),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,W1),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,$1),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,J1),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,X1),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,Y1),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(R1),{class:"rte-editor__content",editor:h.unref(r)},null,8,["editor"])])}}}),d3="",q1={class:"input-color"},Z1={class:"base-input__color-swatch"},j1=["name","id","disabled","read-only","required","aria-label"],AS=h.defineComponent({__name:"input-color",props:{modelValue:{type:[String,Number,Boolean,Date],default:""},type:{type:String,default:"text"},name:{type:String,default:()=>me()},id:{type:String,default:()=>me()},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:A}){const e=t,n=A,r=h.computed({get(){return e.modelValue},set(i){n("update:modelValue",i)}});return(i,s)=>{const a=h.resolveComponent("base-input");return h.openBlock(),h.createElementBlock("div",q1,[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",Z1,[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,j1),[[h.vModelText,r.value]])])]),_:1},8,["modelValue","type","id","name","placeholder","pattern","label","disabled","read-only","required","maxlength"])])}}}),h3="";/*!
115
115
  * shared v9.13.1
116
116
  * (c) 2024 kazuya kawaguchi
117
117
  * Released under the MIT License.
@@ -133,17 +133,17 @@ ${u}`:c)}else throw s},onCacheKey:s=>tS(A,e,s)}}function _T(t){if(tA(t))return t
133
133
  * vue-i18n v9.13.1
134
134
  * (c) 2024 kazuya kawaguchi
135
135
  * Released under the MIT License.
136
- */const OT="9.13.1";function LT(){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 pm=at.__EXTEND_POINT__,Gn=Qa(pm),Bt={FALLBACK_TO_ROOT:pm,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()},HT={[Bt.FALLBACK_TO_ROOT]:"Fall back to {type} '{key}' with root locale.",[Bt.NOT_SUPPORTED_PRESERVE]:"Not supported 'preserve'.",[Bt.NOT_SUPPORTED_FORMATTER]:"Not supported 'formatter'.",[Bt.NOT_SUPPORTED_PRESERVE_DIRECTIVE]:"Not supported 'preserveDirectiveContent'.",[Bt.NOT_SUPPORTED_GET_CHOICE_INDEX]:"Not supported 'getChoiceIndex'.",[Bt.COMPONENT_NAME_LEGACY_COMPATIBLE]:"Component name legacy compatible: '{name}' -> 'i18n'",[Bt.NOT_FOUND_PARENT_SCOPE]:"Not found parent scope. use the global scope.",[Bt.IGNORE_OBJ_FLATTEN]:"Ignore object flatten: '{key}' key has an string value",[Bt.NOTICE_DROP_ALLOW_COMPOSITION]:"'allowComposition' option will be dropped in the next major version. For more information, please see 👉 https://tinyurl.com/2p97mcze",[Bt.NOTICE_DROP_TRANSLATE_EXIST_COMPATIBLE_FLAG]:"'translateExistCompatible' option will be dropped in the next major version."};function _a(t,...A){return Su(HT[t],...A)}const gm=ke.__EXTEND_POINT__,mt=Qa(gm),de={UNEXPECTED_RETURN_TYPE:gm,INVALID_ARGUMENT:mt(),MUST_BE_CALL_SETUP_TOP:mt(),NOT_INSTALLED:mt(),NOT_AVAILABLE_IN_LEGACY_MODE:mt(),REQUIRED_VALUE:mt(),INVALID_VALUE:mt(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:mt(),NOT_INSTALLED_WITH_PROVIDE:mt(),UNEXPECTED_ERROR:mt(),NOT_COMPATIBLE_LEGACY_VUE_I18N:mt(),BRIDGE_SUPPORT_VUE_2_ONLY:mt(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:mt(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:mt(),__EXTEND_POINT__:mt()};function Er(t,...A){return Gi(t,null,process.env.NODE_ENV!=="production"?{messages:kT,args:A}:void 0)}const kT={[de.UNEXPECTED_RETURN_TYPE]:"Unexpected return type in composer",[de.INVALID_ARGUMENT]:"Invalid argument",[de.MUST_BE_CALL_SETUP_TOP]:"Must be called at the top of a `setup` function",[de.NOT_INSTALLED]:"Need to install with `app.use` function",[de.UNEXPECTED_ERROR]:"Unexpected error",[de.NOT_AVAILABLE_IN_LEGACY_MODE]:"Not available in legacy mode",[de.REQUIRED_VALUE]:"Required in value: {0}",[de.INVALID_VALUE]:"Invalid value",[de.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN]:"Cannot setup vue-devtools plugin",[de.NOT_INSTALLED_WITH_PROVIDE]:"Need to install with `provide` function",[de.NOT_COMPATIBLE_LEGACY_VUE_I18N]:"Not compatible legacy VueI18n.",[de.BRIDGE_SUPPORT_VUE_2_ONLY]:"vue-i18n-bridge support Vue 2.x only",[de.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",[de.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]:"Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"},Mu=Rn("__translateVNode"),Ru=Rn("__datetimeParts"),Ku=Rn("__numberParts"),Pu=Rn("__enableEmitter"),Vu=Rn("__disableEmitter"),DT=Rn("__setPluralRules"),Bm=Rn("__injectWithOption"),Gu=Rn("__dispose");function Xs(t){if(!WA(t))return t;for(const A in t)if(Ea(t,A))if(!A.includes("."))WA(t[A])&&Xs(t[A]);else{const e=A.split("."),n=e.length-1;let r=t,i=!1;for(let s=0;s<n;s++){if(e[s]in r||(r[e[s]]={}),!WA(r[e[s]])){process.env.NODE_ENV!=="production"&&Pn(_a(Bt.IGNORE_OBJ_FLATTEN,{key:e[s]})),i=!0;break}r=r[e[s]]}i||(r[e[n]]=t[A],delete t[A]),WA(r[e[n]])&&Xs(r[e[n]])}return t}function Wu(t,A){const{messages:e,__i18n:n,messageResolver:r,flatJson:i}=A,s=_A(e)?e:be(n)?{}:{[t]:{}};if(be(n)&&n.forEach(a=>{if("locale"in a&&"resource"in a){const{locale:c,resource:u}=a;c?(s[c]=s[c]||{},ba(u,s[c])):ba(u,s)}else tA(a)&&ba(JSON.parse(a),s)}),r==null&&i)for(const a in s)Ea(s,a)&&Xs(s[a]);return s}function mm(t){return t.type}function NT(t,A,e){let n=WA(A.messages)?A.messages:{};"__i18nGlobal"in e&&(n=Wu(t.locale.value,{messages:n,__i18n:e.__i18nGlobal}));const r=Object.keys(n);r.length&&r.forEach(i=>{t.mergeLocaleMessage(i,n[i])});{if(WA(A.datetimeFormats)){const i=Object.keys(A.datetimeFormats);i.length&&i.forEach(s=>{t.mergeDateTimeFormat(s,A.datetimeFormats[s])})}if(WA(A.numberFormats)){const i=Object.keys(A.numberFormats);i.length&&i.forEach(s=>{t.mergeNumberFormat(s,A.numberFormats[s])})}}}function wm(t){return h.createVNode(h.Text,null,t,0)}const Cm="__INTLIFY_META__",ym=()=>[],MT=()=>!1;let Em=0;function Qm(t){return(A,e,n,r)=>t(e,n,h.getCurrentInstance()||void 0,r)}const RT=()=>{const t=h.getCurrentInstance();let A=null;return t&&(A=mm(t)[Cm])?{[Cm]:A}:null};function KT(t={},A){const{__root:e,__injectWithOption:n}=t,r=e===void 0,i=t.flatJson,s=Mn?h.ref:h.shallowRef,a=!!t.translateExistCompatible;process.env.NODE_ENV!=="production"&&a&&UB(_a(Bt.NOTICE_DROP_TRANSLATE_EXIST_COMPATIBLE_FLAG));let c=ne(t.inheritLocale)?t.inheritLocale:!0;const u=s(e&&c?e.locale.value:tA(t.locale)?t.locale:$s),f=s(e&&c?e.fallbackLocale.value:tA(t.fallbackLocale)||be(t.fallbackLocale)||_A(t.fallbackLocale)||t.fallbackLocale===!1?t.fallbackLocale:u.value),p=s(Wu(u.value,t)),g=s(_A(t.datetimeFormats)?t.datetimeFormats:{[u.value]:{}}),m=s(_A(t.numberFormats)?t.numberFormats:{[u.value]:{}});let w=e?e.missingWarn:ne(t.missingWarn)||Vi(t.missingWarn)?t.missingWarn:!0,F=e?e.fallbackWarn:ne(t.fallbackWarn)||Vi(t.fallbackWarn)?t.fallbackWarn:!0,b=e?e.fallbackRoot:ne(t.fallbackRoot)?t.fallbackRoot:!0,v=!!t.fallbackFormat,_=le(t.missing)?t.missing:null,S=le(t.missing)?Qm(t.missing):null,E=le(t.postTranslation)?t.postTranslation:null,L=e?e.warnHtmlMessage:ne(t.warnHtmlMessage)?t.warnHtmlMessage:!0,U=!!t.escapeParameter;const D=e?e.modifiers:_A(t.modifiers)?t.modifiers:{};let P=t.pluralRules||e&&e.pluralRules,N;N=(()=>{r&&XB(null);const R={version:OT,locale:u.value,fallbackLocale:f.value,messages:p.value,modifiers:D,pluralRules:P,missing:S===null?void 0:S,missingWarn:w,fallbackWarn:F,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=m.value,R.__datetimeFormatters=_A(N)?N.__datetimeFormatters:void 0,R.__numberFormatters=_A(N)?N.__numberFormatters:void 0,process.env.NODE_ENV!=="production"&&(R.__v_emitter=_A(N)?N.__v_emitter:void 0);const X=ET(R);return r&&XB(X),X})(),Js(N,u.value,f.value);function mA(){return[u.value,f.value,p.value,g.value,m.value]}const nA=h.computed({get:()=>u.value,set:R=>{u.value=R,N.locale=u.value}}),cA=h.computed({get:()=>f.value,set:R=>{f.value=R,N.fallbackLocale=f.value,Js(N,u.value,R)}}),HA=h.computed(()=>p.value),oe=h.computed(()=>g.value),KA=h.computed(()=>m.value);function kA(){return le(E)?E:null}function rA(R){E=R,N.postTranslation=R}function BA(){return _}function XA(R){R!==null&&(S=Qm(R)),_=R,N.missing=S}function OA(R,X){return R!=="translate"||!X.resolvedMessage}const PA=(R,X,SA,re,Ct,Tn)=>{mA();let Jt;try{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,r||(N.fallbackContext=e?yT():void 0),Jt=R(N)}finally{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,r||(N.fallbackContext=void 0)}if(SA!=="translate exists"&&ze(Jt)&&Jt===Ia||SA==="translate exists"&&!Jt){const[K,iA]=X();if(process.env.NODE_ENV!=="production"&&e&&tA(K)&&OA(SA,iA)&&(b&&(Ta(F,K)||zB(w,K))&&Pn(_a(Bt.FALLBACK_TO_ROOT,{key:K,type:SA})),process.env.NODE_ENV!=="production")){const{__v_emitter:uA}=N;uA&&b&&uA.emit("fallback",{type:SA,key:K,to:"global",groupId:`${SA}:${K}`})}return e&&b?re(e):Ct(K)}else{if(Tn(Jt))return Jt;throw Er(de.UNEXPECTED_RETURN_TYPE)}};function RA(...R){return PA(X=>Reflect.apply(rm,null,[X,...R]),()=>ku(...R),"translate",X=>Reflect.apply(X.t,X,[...R]),X=>X,X=>tA(X))}function zA(...R){const[X,SA,re]=R;if(re&&!WA(re))throw Er(de.INVALID_ARGUMENT);return RA(X,SA,qe({resolvedMessage:!0},re||{}))}function qA(...R){return PA(X=>Reflect.apply(lm,null,[X,...R]),()=>Du(...R),"datetime format",X=>Reflect.apply(X.d,X,[...R]),()=>Sa,X=>tA(X))}function ZA(...R){return PA(X=>Reflect.apply(fm,null,[X,...R]),()=>Nu(...R),"number format",X=>Reflect.apply(X.n,X,[...R]),()=>Sa,X=>tA(X))}function he(R){return R.map(X=>tA(X)||ze(X)||ne(X)?wm(String(X)):X)}const At={normalize:he,interpolate:R=>R,type:"vnode"};function ut(...R){return PA(X=>{let SA;const re=X;try{re.processor=At,SA=Reflect.apply(rm,null,[re,...R])}finally{re.processor=null}return SA},()=>ku(...R),"translate",X=>X[Mu](...R),X=>[wm(X)],X=>be(X))}function _t(...R){return PA(X=>Reflect.apply(fm,null,[X,...R]),()=>Nu(...R),"number format",X=>X[Ku](...R),ym,X=>tA(X)||be(X))}function xt(...R){return PA(X=>Reflect.apply(lm,null,[X,...R]),()=>Du(...R),"datetime format",X=>X[Ru](...R),ym,X=>tA(X)||be(X))}function un(R){P=R,N.pluralRules=P}function z(R,X){return PA(()=>{if(!R)return!1;const SA=tA(X)?X:u.value,re=ve(SA),Ct=N.messageResolver(re,R);return a?Ct!=null:li(Ct)||Pt(Ct)||tA(Ct)},()=>[R],"translate exists",SA=>Reflect.apply(SA.te,SA,[R,X]),MT,SA=>ne(SA))}function bA(R){let X=null;const SA=MB(N,f.value,u.value);for(let re=0;re<SA.length;re++){const Ct=p.value[SA[re]]||{},Tn=N.messageResolver(Ct,R);if(Tn!=null){X=Tn;break}}return X}function Sn(R){const X=bA(R);return X??(e?e.tm(R)||{}:{})}function ve(R){return p.value[R]||{}}function fn(R,X){if(i){const SA={[R]:X};for(const re in SA)Ea(SA,re)&&Xs(SA[re]);X=SA[R]}p.value[R]=X,N.messages=p.value}function xr(R,X){p.value[R]=p.value[R]||{};const SA={[R]:X};if(i)for(const re in SA)Ea(SA,re)&&Xs(SA[re]);X=SA[R],ba(X,p.value[R]),N.messages=p.value}function T(R){return g.value[R]||{}}function x(R,X){g.value[R]=X,N.datetimeFormats=g.value,um(N,R,X)}function $(R,X){g.value[R]=qe(g.value[R]||{},X),N.datetimeFormats=g.value,um(N,R,X)}function oA(R){return m.value[R]||{}}function te(R,X){m.value[R]=X,N.numberFormats=m.value,hm(N,R,X)}function DA(R,X){m.value[R]=qe(m.value[R]||{},X),N.numberFormats=m.value,hm(N,R,X)}Em++,e&&Mn&&(h.watch(e.locale,R=>{c&&(u.value=R,N.locale=R,Js(N,u.value,f.value))}),h.watch(e.fallbackLocale,R=>{c&&(f.value=R,N.fallbackLocale=R,Js(N,u.value,f.value))}));const VA={id:Em,locale:nA,fallbackLocale:cA,get inheritLocale(){return c},set inheritLocale(R){c=R,R&&e&&(u.value=e.locale.value,f.value=e.fallbackLocale.value,Js(N,u.value,f.value))},get availableLocales(){return Object.keys(p.value).sort()},messages:HA,get modifiers(){return D},get pluralRules(){return P||{}},get isGlobal(){return r},get missingWarn(){return w},set missingWarn(R){w=R,N.missingWarn=w},get fallbackWarn(){return F},set fallbackWarn(R){F=R,N.fallbackWarn=F},get fallbackRoot(){return b},set fallbackRoot(R){b=R},get fallbackFormat(){return v},set fallbackFormat(R){v=R,N.fallbackFormat=v},get warnHtmlMessage(){return L},set warnHtmlMessage(R){L=R,N.warnHtmlMessage=R},get escapeParameter(){return U},set escapeParameter(R){U=R,N.escapeParameter=R},t:RA,getLocaleMessage:ve,setLocaleMessage:fn,mergeLocaleMessage:xr,getPostTranslationHandler:kA,setPostTranslationHandler:rA,getMissingHandler:BA,setMissingHandler:XA,[DT]:un};return VA.datetimeFormats=oe,VA.numberFormats=KA,VA.rt=zA,VA.te=z,VA.tm=Sn,VA.d=qA,VA.n=ZA,VA.getDateTimeFormat=T,VA.setDateTimeFormat=x,VA.mergeDateTimeFormat=$,VA.getNumberFormat=oA,VA.setNumberFormat=te,VA.mergeNumberFormat=DA,VA[Bm]=n,VA[Mu]=ut,VA[Ru]=xt,VA[Ku]=_t,process.env.NODE_ENV!=="production"&&(VA[Pu]=R=>{N.__v_emitter=R},VA[Vu]=()=>{N.__v_emitter=void 0}),VA}const $u={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:t=>t==="parent"||t==="global",default:"parent"},i18n:{type:Object}};function PT({slots:t},A){return A.length===1&&A[0]==="default"?(t.default?t.default():[]).reduce((n,r)=>[...n,...r.type===h.Fragment?r.children:[r]],[]):A.reduce((e,n)=>{const r=t[n];return r&&(e[n]=r()),e},{})}function Fm(t){return h.Fragment}qe({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:t=>ze(t)||!isNaN(t)}},$u);function VT(t){return be(t)&&!tA(t[0])}function bm(t,A,e,n){const{slots:r,attrs:i}=A;return()=>{const s={part:!0};let a={};t.locale&&(s.locale=t.locale),tA(t.format)?s.key=t.format:WA(t.format)&&(tA(t.format.key)&&(s.key=t.format.key),a=Object.keys(t.format).reduce((g,m)=>e.includes(m)?qe({},g,{[m]:t.format[m]}):g,{}));const c=n(t.value,s,a);let u=[s.key];be(c)?u=c.map((g,m)=>{const w=r[g.type],F=w?w({[g.type]:g.value,index:m,parts:c}):[g.value];return VT(F)&&(F[0].key=`${g.type}-${m}`),F}):tA(c)&&(u=[c]);const f=qe({},i),p=tA(t.tag)||WA(t.tag)?t.tag:Fm();return h.h(p,f,u)}}qe({value:{type:Number,required:!0},format:{type:[String,Object]}},$u),qe({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},$u);function Um(t,A){}const GT=Rn("global-vue-i18n");function xa(t={}){const A=h.getCurrentInstance();if(A==null)throw Er(de.MUST_BE_CALL_SETUP_TOP);if(!A.isCE&&A.appContext.app!=null&&!A.appContext.app.__VUE_I18N_SYMBOL__)throw Er(de.NOT_INSTALLED);const e=WT(A),n=JT(e),r=mm(A),i=$T(t,r);if(__VUE_I18N_LEGACY_API__&&e.mode==="legacy"&&!t.__useComponent){if(!e.allowComposition)throw Er(de.NOT_AVAILABLE_IN_LEGACY_MODE);return qT(A,i,n,t)}if(i==="global")return NT(n,t,r),n;if(i==="parent"){let c=XT(e,A,t.__useComponent);return c==null&&(process.env.NODE_ENV!=="production"&&Pn(_a(Bt.NOT_FOUND_PARENT_SCOPE)),c=n),c}const s=e;let a=s.__getInstance(A);if(a==null){const c=qe({},t);"__i18n"in r&&(c.__i18n=r.__i18n),n&&(c.__root=n),a=KT(c),s.__composerExtend&&(a[Gu]=s.__composerExtend(a)),zT(s,A,a),s.__setInstance(A,a)}return a}function WT(t){{const A=h.inject(t.isCE?GT:t.appContext.app.__VUE_I18N_SYMBOL__);if(!A)throw Er(t.isCE?de.NOT_INSTALLED_WITH_PROVIDE:de.UNEXPECTED_ERROR);return A}}function $T(t,A){return ya(t)?"__i18n"in A?"local":"global":t.useScope?t.useScope:"local"}function JT(t){return t.mode==="composition"?t.global:t.global.__composer}function XT(t,A,e=!1){let n=null;const r=A.root;let i=YT(A,e);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,e&&n&&!n[Bm]&&(n=null))}if(n!=null||r===i)break;i=i.parent}return n}function YT(t,A=!1){return t==null?null:A&&t.vnode.ctx||t.parent}function zT(t,A,e){let n=null;h.onMounted(()=>{if(process.env.NODE_ENV!=="production"&&A.vnode.el){A.vnode.el.__VUE_I18N__=e,n=cS();const r=e;r[Pu]&&r[Pu](n),n.on("*",Um)}},A),h.onUnmounted(()=>{const r=e;process.env.NODE_ENV!=="production"&&A.vnode.el&&A.vnode.el.__VUE_I18N__&&(n&&n.off("*",Um),r[Vu]&&r[Vu](),delete A.vnode.el.__VUE_I18N__),t.__deleteInstance(A);const i=r[Gu];i&&(i(),delete r[Gu])},A)}function qT(t,A,e,n={}){const r=A==="local",i=h.shallowRef(null);if(r&&t.proxy&&!(t.proxy.$options.i18n||t.proxy.$options.__i18n))throw Er(de.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const s=ne(n.inheritLocale)?n.inheritLocale:!tA(n.locale),a=h.ref(!r||s?e.locale.value:tA(n.locale)?n.locale:$s),c=h.ref(!r||s?e.fallbackLocale.value:tA(n.fallbackLocale)||be(n.fallbackLocale)||_A(n.fallbackLocale)||n.fallbackLocale===!1?n.fallbackLocale:a.value),u=h.ref(Wu(a.value,n)),f=h.ref(_A(n.datetimeFormats)?n.datetimeFormats:{[a.value]:{}}),p=h.ref(_A(n.numberFormats)?n.numberFormats:{[a.value]:{}}),g=r?e.missingWarn:ne(n.missingWarn)||Vi(n.missingWarn)?n.missingWarn:!0,m=r?e.fallbackWarn:ne(n.fallbackWarn)||Vi(n.fallbackWarn)?n.fallbackWarn:!0,w=r?e.fallbackRoot:ne(n.fallbackRoot)?n.fallbackRoot:!0,F=!!n.fallbackFormat,b=le(n.missing)?n.missing:null,v=le(n.postTranslation)?n.postTranslation:null,_=r?e.warnHtmlMessage:ne(n.warnHtmlMessage)?n.warnHtmlMessage:!0,S=!!n.escapeParameter,E=r?e.modifiers:_A(n.modifiers)?n.modifiers:{},L=n.pluralRules||r&&e.pluralRules;function U(){return[a.value,c.value,u.value,f.value,p.value]}const D=h.computed({get:()=>i.value?i.value.locale.value:a.value,set:z=>{i.value&&(i.value.locale.value=z),a.value=z}}),P=h.computed({get:()=>i.value?i.value.fallbackLocale.value:c.value,set:z=>{i.value&&(i.value.fallbackLocale.value=z),c.value=z}}),N=h.computed(()=>i.value?i.value.messages.value:u.value),sA=h.computed(()=>f.value),mA=h.computed(()=>p.value);function nA(){return i.value?i.value.getPostTranslationHandler():v}function cA(z){i.value&&i.value.setPostTranslationHandler(z)}function HA(){return i.value?i.value.getMissingHandler():b}function oe(z){i.value&&i.value.setMissingHandler(z)}function KA(z){return U(),z()}function kA(...z){return i.value?KA(()=>Reflect.apply(i.value.t,null,[...z])):KA(()=>"")}function rA(...z){return i.value?Reflect.apply(i.value.rt,null,[...z]):""}function BA(...z){return i.value?KA(()=>Reflect.apply(i.value.d,null,[...z])):KA(()=>"")}function XA(...z){return i.value?KA(()=>Reflect.apply(i.value.n,null,[...z])):KA(()=>"")}function OA(z){return i.value?i.value.tm(z):{}}function PA(z,bA){return i.value?i.value.te(z,bA):!1}function RA(z){return i.value?i.value.getLocaleMessage(z):{}}function zA(z,bA){i.value&&(i.value.setLocaleMessage(z,bA),u.value[z]=bA)}function qA(z,bA){i.value&&i.value.mergeLocaleMessage(z,bA)}function ZA(z){return i.value?i.value.getDateTimeFormat(z):{}}function he(z,bA){i.value&&(i.value.setDateTimeFormat(z,bA),f.value[z]=bA)}function ct(z,bA){i.value&&i.value.mergeDateTimeFormat(z,bA)}function At(z){return i.value?i.value.getNumberFormat(z):{}}function ut(z,bA){i.value&&(i.value.setNumberFormat(z,bA),p.value[z]=bA)}function _t(z,bA){i.value&&i.value.mergeNumberFormat(z,bA)}const xt={get id(){return i.value?i.value.id:-1},locale:D,fallbackLocale:P,messages:N,datetimeFormats:sA,numberFormats:mA,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:m},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:F},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:kA,getPostTranslationHandler:nA,setPostTranslationHandler:cA,getMissingHandler:HA,setMissingHandler:oe,rt:rA,d:BA,n:XA,tm:OA,te:PA,getLocaleMessage:RA,setLocaleMessage:zA,mergeLocaleMessage:qA,getDateTimeFormat:ZA,setDateTimeFormat:he,mergeDateTimeFormat:ct,getNumberFormat:At,setNumberFormat:ut,mergeNumberFormat:_t};function un(z){z.locale.value=a.value,z.fallbackLocale.value=c.value,Object.keys(u.value).forEach(bA=>{z.mergeLocaleMessage(bA,u.value[bA])}),Object.keys(f.value).forEach(bA=>{z.mergeDateTimeFormat(bA,f.value[bA])}),Object.keys(p.value).forEach(bA=>{z.mergeNumberFormat(bA,p.value[bA])}),z.escapeParameter=S,z.fallbackFormat=F,z.fallbackRoot=w,z.fallbackWarn=m,z.missingWarn=g,z.warnHtmlMessage=_}return h.onBeforeMount(()=>{if(t.proxy==null||t.proxy.$i18n==null)throw Er(de.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const z=i.value=t.proxy.$i18n.__composer;A==="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(LT(),__INTLIFY_JIT_COMPILATION__?VB(vT):VB(UT),BT(qS),mT(MB),process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const t=Kn();t.__INTLIFY__=!0,sT(t.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}process.env.NODE_ENV;const ZT={class:"input input-dropdown"},jT={class:"dropdown"},A_={class:"caption"},e_=["innerHTML"],t_={class:"caption__text"},n_={class:"d-block text-truncate"},r_={class:"dropdown-menu"},i_={class:"form-check"},s_=["value","id","name","label","required","disabled"],o_=["value","id","name","label","required","disabled"],a_=["for"],l_=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}},emits:["update:modelValue"],setup(t,{emit:A}){const{t:e}=xa(),n=t,r=A,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.modelValue.includes(c.value)}))),a=h.computed(()=>n.modelValue&&n.modelValue.length?Array.isArray(n.modelValue)&&n.modelValue.length?s.value.reduce((c,u)=>n.modelValue.includes(u.value)?`${c}${c?", ":""}${u.text}`:c,""):s.value.reduce((c,u)=>u.value===n.modelValue?`${c}${u.text}`:c,""):n.placeholder||`${e("common.select")}`);return(c,u)=>{const f=h.resolveComponent("base-button");return h.openBlock(),h.createElementBlock("div",ZT,[h.createElementVNode("div",jT,[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",A_,[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,e_)):h.createCommentVNode("",!0)]),_:1}),h.createElementVNode("span",t_,[h.createElementVNode("span",n_,h.toDisplayString(t.toggleCaption||a.value),1)])])]),_:1},8,["title","color","outlined","disabled"]),h.createElementVNode("ul",r_,[(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",i_,[t.multiple?h.withDirectives((h.openBlock(),h.createElementBlock("input",{type:"checkbox","onUpdate:modelValue":u[0]||(u[0]=m=>i.value=m),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,s_)),[[h.vModelCheckbox,i.value]]):h.withDirectives((h.openBlock(),h.createElementBlock("input",{type:"radio","onUpdate:modelValue":u[1]||(u[1]=m=>i.value=m),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,o_)),[[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,a_)])],2)]))),128))])])])}}}),g3="",c_={key:0,class:"auto-suggest__suggestions position-relative"},u_={class:"suggestions dropdown-menu show w-100 mt-2"},f_=["onClick"],d_=["innerHTML"],h_=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}},emits:["update:modelValue","update:suggestion"],setup(t,{emit:A}){const e=t,n=A,r=h.ref(),i=h.ref(!1),s=h.computed({get(){return e.modelValue},set(f){n("update:modelValue",f)}}),a=h.computed(()=>{const f=new RegExp(`(${s.value})`,"i");return s.value?e.options.reduce((p,g)=>[...p,...f.test(g)?[g.replace(f,"<strong>$1</strong>")]:[]],[]):e.options});h.watch(()=>e.options,(f,p)=>{f.length&&(i.value=!0)},{deep:!0});function c(){e.options.length&&(i.value=!0)}function u(f){i.value=!1,n("update:modelValue",f)}return h.onBeforeMount(()=>{document.addEventListener("click",f=>{const p=f.target;i.value&&p&&!r.value.contains(p)&&(i.value=!1)})}),(f,p)=>{const g=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:c},[h.renderSlot(f.$slots,"default",{},()=>[h.createVNode(g,h.mergeProps({modelValue:s.value,"onUpdate:modelValue":p[0]||(p[0]=m=>s.value=m)},f.$props),null,16,["modelValue"])])],32),i.value&&a.value.length?(h.openBlock(),h.createElementBlock("div",c_,[h.createElementVNode("ul",u_,[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(a.value,m=>(h.openBlock(),h.createElementBlock("li",{key:m,class:"suggestions__item dropdown-item",onClick:h.withModifiers(w=>u(m),["prevent"])},[h.createElementVNode("p",{class:"text-truncate my-2",innerHTML:m},null,8,d_)],8,f_))),128))])])):h.createCommentVNode("",!0)],512)}}}),B3="";var Ys=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Oa={exports:{}};/**
136
+ */const OT="9.13.1";function LT(){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 pm=at.__EXTEND_POINT__,Gn=Qa(pm),Bt={FALLBACK_TO_ROOT:pm,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()},HT={[Bt.FALLBACK_TO_ROOT]:"Fall back to {type} '{key}' with root locale.",[Bt.NOT_SUPPORTED_PRESERVE]:"Not supported 'preserve'.",[Bt.NOT_SUPPORTED_FORMATTER]:"Not supported 'formatter'.",[Bt.NOT_SUPPORTED_PRESERVE_DIRECTIVE]:"Not supported 'preserveDirectiveContent'.",[Bt.NOT_SUPPORTED_GET_CHOICE_INDEX]:"Not supported 'getChoiceIndex'.",[Bt.COMPONENT_NAME_LEGACY_COMPATIBLE]:"Component name legacy compatible: '{name}' -> 'i18n'",[Bt.NOT_FOUND_PARENT_SCOPE]:"Not found parent scope. use the global scope.",[Bt.IGNORE_OBJ_FLATTEN]:"Ignore object flatten: '{key}' key has an string value",[Bt.NOTICE_DROP_ALLOW_COMPOSITION]:"'allowComposition' option will be dropped in the next major version. For more information, please see 👉 https://tinyurl.com/2p97mcze",[Bt.NOTICE_DROP_TRANSLATE_EXIST_COMPATIBLE_FLAG]:"'translateExistCompatible' option will be dropped in the next major version."};function _a(t,...A){return Su(HT[t],...A)}const gm=ke.__EXTEND_POINT__,mt=Qa(gm),de={UNEXPECTED_RETURN_TYPE:gm,INVALID_ARGUMENT:mt(),MUST_BE_CALL_SETUP_TOP:mt(),NOT_INSTALLED:mt(),NOT_AVAILABLE_IN_LEGACY_MODE:mt(),REQUIRED_VALUE:mt(),INVALID_VALUE:mt(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:mt(),NOT_INSTALLED_WITH_PROVIDE:mt(),UNEXPECTED_ERROR:mt(),NOT_COMPATIBLE_LEGACY_VUE_I18N:mt(),BRIDGE_SUPPORT_VUE_2_ONLY:mt(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:mt(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:mt(),__EXTEND_POINT__:mt()};function Er(t,...A){return Gi(t,null,process.env.NODE_ENV!=="production"?{messages:kT,args:A}:void 0)}const kT={[de.UNEXPECTED_RETURN_TYPE]:"Unexpected return type in composer",[de.INVALID_ARGUMENT]:"Invalid argument",[de.MUST_BE_CALL_SETUP_TOP]:"Must be called at the top of a `setup` function",[de.NOT_INSTALLED]:"Need to install with `app.use` function",[de.UNEXPECTED_ERROR]:"Unexpected error",[de.NOT_AVAILABLE_IN_LEGACY_MODE]:"Not available in legacy mode",[de.REQUIRED_VALUE]:"Required in value: {0}",[de.INVALID_VALUE]:"Invalid value",[de.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN]:"Cannot setup vue-devtools plugin",[de.NOT_INSTALLED_WITH_PROVIDE]:"Need to install with `provide` function",[de.NOT_COMPATIBLE_LEGACY_VUE_I18N]:"Not compatible legacy VueI18n.",[de.BRIDGE_SUPPORT_VUE_2_ONLY]:"vue-i18n-bridge support Vue 2.x only",[de.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",[de.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]:"Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"},Mu=Rn("__translateVNode"),Ru=Rn("__datetimeParts"),Ku=Rn("__numberParts"),Pu=Rn("__enableEmitter"),Vu=Rn("__disableEmitter"),DT=Rn("__setPluralRules"),Bm=Rn("__injectWithOption"),Gu=Rn("__dispose");function Xs(t){if(!WA(t))return t;for(const A in t)if(Ea(t,A))if(!A.includes("."))WA(t[A])&&Xs(t[A]);else{const e=A.split("."),n=e.length-1;let r=t,i=!1;for(let s=0;s<n;s++){if(e[s]in r||(r[e[s]]={}),!WA(r[e[s]])){process.env.NODE_ENV!=="production"&&Pn(_a(Bt.IGNORE_OBJ_FLATTEN,{key:e[s]})),i=!0;break}r=r[e[s]]}i||(r[e[n]]=t[A],delete t[A]),WA(r[e[n]])&&Xs(r[e[n]])}return t}function Wu(t,A){const{messages:e,__i18n:n,messageResolver:r,flatJson:i}=A,s=_A(e)?e:be(n)?{}:{[t]:{}};if(be(n)&&n.forEach(a=>{if("locale"in a&&"resource"in a){const{locale:c,resource:u}=a;c?(s[c]=s[c]||{},ba(u,s[c])):ba(u,s)}else tA(a)&&ba(JSON.parse(a),s)}),r==null&&i)for(const a in s)Ea(s,a)&&Xs(s[a]);return s}function mm(t){return t.type}function NT(t,A,e){let n=WA(A.messages)?A.messages:{};"__i18nGlobal"in e&&(n=Wu(t.locale.value,{messages:n,__i18n:e.__i18nGlobal}));const r=Object.keys(n);r.length&&r.forEach(i=>{t.mergeLocaleMessage(i,n[i])});{if(WA(A.datetimeFormats)){const i=Object.keys(A.datetimeFormats);i.length&&i.forEach(s=>{t.mergeDateTimeFormat(s,A.datetimeFormats[s])})}if(WA(A.numberFormats)){const i=Object.keys(A.numberFormats);i.length&&i.forEach(s=>{t.mergeNumberFormat(s,A.numberFormats[s])})}}}function wm(t){return h.createVNode(h.Text,null,t,0)}const Cm="__INTLIFY_META__",ym=()=>[],MT=()=>!1;let Em=0;function Qm(t){return(A,e,n,r)=>t(e,n,h.getCurrentInstance()||void 0,r)}const RT=()=>{const t=h.getCurrentInstance();let A=null;return t&&(A=mm(t)[Cm])?{[Cm]:A}:null};function KT(t={},A){const{__root:e,__injectWithOption:n}=t,r=e===void 0,i=t.flatJson,s=Mn?h.ref:h.shallowRef,a=!!t.translateExistCompatible;process.env.NODE_ENV!=="production"&&a&&UB(_a(Bt.NOTICE_DROP_TRANSLATE_EXIST_COMPATIBLE_FLAG));let c=ne(t.inheritLocale)?t.inheritLocale:!0;const u=s(e&&c?e.locale.value:tA(t.locale)?t.locale:$s),f=s(e&&c?e.fallbackLocale.value:tA(t.fallbackLocale)||be(t.fallbackLocale)||_A(t.fallbackLocale)||t.fallbackLocale===!1?t.fallbackLocale:u.value),p=s(Wu(u.value,t)),g=s(_A(t.datetimeFormats)?t.datetimeFormats:{[u.value]:{}}),m=s(_A(t.numberFormats)?t.numberFormats:{[u.value]:{}});let w=e?e.missingWarn:ne(t.missingWarn)||Vi(t.missingWarn)?t.missingWarn:!0,F=e?e.fallbackWarn:ne(t.fallbackWarn)||Vi(t.fallbackWarn)?t.fallbackWarn:!0,b=e?e.fallbackRoot:ne(t.fallbackRoot)?t.fallbackRoot:!0,v=!!t.fallbackFormat,_=le(t.missing)?t.missing:null,S=le(t.missing)?Qm(t.missing):null,E=le(t.postTranslation)?t.postTranslation:null,L=e?e.warnHtmlMessage:ne(t.warnHtmlMessage)?t.warnHtmlMessage:!0,U=!!t.escapeParameter;const D=e?e.modifiers:_A(t.modifiers)?t.modifiers:{};let P=t.pluralRules||e&&e.pluralRules,N;N=(()=>{r&&XB(null);const R={version:OT,locale:u.value,fallbackLocale:f.value,messages:p.value,modifiers:D,pluralRules:P,missing:S===null?void 0:S,missingWarn:w,fallbackWarn:F,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=m.value,R.__datetimeFormatters=_A(N)?N.__datetimeFormatters:void 0,R.__numberFormatters=_A(N)?N.__numberFormatters:void 0,process.env.NODE_ENV!=="production"&&(R.__v_emitter=_A(N)?N.__v_emitter:void 0);const X=ET(R);return r&&XB(X),X})(),Js(N,u.value,f.value);function mA(){return[u.value,f.value,p.value,g.value,m.value]}const nA=h.computed({get:()=>u.value,set:R=>{u.value=R,N.locale=u.value}}),cA=h.computed({get:()=>f.value,set:R=>{f.value=R,N.fallbackLocale=f.value,Js(N,u.value,R)}}),HA=h.computed(()=>p.value),oe=h.computed(()=>g.value),KA=h.computed(()=>m.value);function kA(){return le(E)?E:null}function rA(R){E=R,N.postTranslation=R}function BA(){return _}function XA(R){R!==null&&(S=Qm(R)),_=R,N.missing=S}function OA(R,X){return R!=="translate"||!X.resolvedMessage}const PA=(R,X,SA,re,Ct,Tn)=>{mA();let Jt;try{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,r||(N.fallbackContext=e?yT():void 0),Jt=R(N)}finally{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,r||(N.fallbackContext=void 0)}if(SA!=="translate exists"&&ze(Jt)&&Jt===Ia||SA==="translate exists"&&!Jt){const[K,iA]=X();if(process.env.NODE_ENV!=="production"&&e&&tA(K)&&OA(SA,iA)&&(b&&(Ta(F,K)||zB(w,K))&&Pn(_a(Bt.FALLBACK_TO_ROOT,{key:K,type:SA})),process.env.NODE_ENV!=="production")){const{__v_emitter:uA}=N;uA&&b&&uA.emit("fallback",{type:SA,key:K,to:"global",groupId:`${SA}:${K}`})}return e&&b?re(e):Ct(K)}else{if(Tn(Jt))return Jt;throw Er(de.UNEXPECTED_RETURN_TYPE)}};function RA(...R){return PA(X=>Reflect.apply(rm,null,[X,...R]),()=>ku(...R),"translate",X=>Reflect.apply(X.t,X,[...R]),X=>X,X=>tA(X))}function zA(...R){const[X,SA,re]=R;if(re&&!WA(re))throw Er(de.INVALID_ARGUMENT);return RA(X,SA,qe({resolvedMessage:!0},re||{}))}function qA(...R){return PA(X=>Reflect.apply(lm,null,[X,...R]),()=>Du(...R),"datetime format",X=>Reflect.apply(X.d,X,[...R]),()=>Sa,X=>tA(X))}function ZA(...R){return PA(X=>Reflect.apply(fm,null,[X,...R]),()=>Nu(...R),"number format",X=>Reflect.apply(X.n,X,[...R]),()=>Sa,X=>tA(X))}function he(R){return R.map(X=>tA(X)||ze(X)||ne(X)?wm(String(X)):X)}const At={normalize:he,interpolate:R=>R,type:"vnode"};function ut(...R){return PA(X=>{let SA;const re=X;try{re.processor=At,SA=Reflect.apply(rm,null,[re,...R])}finally{re.processor=null}return SA},()=>ku(...R),"translate",X=>X[Mu](...R),X=>[wm(X)],X=>be(X))}function _t(...R){return PA(X=>Reflect.apply(fm,null,[X,...R]),()=>Nu(...R),"number format",X=>X[Ku](...R),ym,X=>tA(X)||be(X))}function xt(...R){return PA(X=>Reflect.apply(lm,null,[X,...R]),()=>Du(...R),"datetime format",X=>X[Ru](...R),ym,X=>tA(X)||be(X))}function un(R){P=R,N.pluralRules=P}function z(R,X){return PA(()=>{if(!R)return!1;const SA=tA(X)?X:u.value,re=ve(SA),Ct=N.messageResolver(re,R);return a?Ct!=null:li(Ct)||Pt(Ct)||tA(Ct)},()=>[R],"translate exists",SA=>Reflect.apply(SA.te,SA,[R,X]),MT,SA=>ne(SA))}function bA(R){let X=null;const SA=MB(N,f.value,u.value);for(let re=0;re<SA.length;re++){const Ct=p.value[SA[re]]||{},Tn=N.messageResolver(Ct,R);if(Tn!=null){X=Tn;break}}return X}function Sn(R){const X=bA(R);return X??(e?e.tm(R)||{}:{})}function ve(R){return p.value[R]||{}}function fn(R,X){if(i){const SA={[R]:X};for(const re in SA)Ea(SA,re)&&Xs(SA[re]);X=SA[R]}p.value[R]=X,N.messages=p.value}function xr(R,X){p.value[R]=p.value[R]||{};const SA={[R]:X};if(i)for(const re in SA)Ea(SA,re)&&Xs(SA[re]);X=SA[R],ba(X,p.value[R]),N.messages=p.value}function T(R){return g.value[R]||{}}function x(R,X){g.value[R]=X,N.datetimeFormats=g.value,um(N,R,X)}function $(R,X){g.value[R]=qe(g.value[R]||{},X),N.datetimeFormats=g.value,um(N,R,X)}function oA(R){return m.value[R]||{}}function te(R,X){m.value[R]=X,N.numberFormats=m.value,hm(N,R,X)}function DA(R,X){m.value[R]=qe(m.value[R]||{},X),N.numberFormats=m.value,hm(N,R,X)}Em++,e&&Mn&&(h.watch(e.locale,R=>{c&&(u.value=R,N.locale=R,Js(N,u.value,f.value))}),h.watch(e.fallbackLocale,R=>{c&&(f.value=R,N.fallbackLocale=R,Js(N,u.value,f.value))}));const VA={id:Em,locale:nA,fallbackLocale:cA,get inheritLocale(){return c},set inheritLocale(R){c=R,R&&e&&(u.value=e.locale.value,f.value=e.fallbackLocale.value,Js(N,u.value,f.value))},get availableLocales(){return Object.keys(p.value).sort()},messages:HA,get modifiers(){return D},get pluralRules(){return P||{}},get isGlobal(){return r},get missingWarn(){return w},set missingWarn(R){w=R,N.missingWarn=w},get fallbackWarn(){return F},set fallbackWarn(R){F=R,N.fallbackWarn=F},get fallbackRoot(){return b},set fallbackRoot(R){b=R},get fallbackFormat(){return v},set fallbackFormat(R){v=R,N.fallbackFormat=v},get warnHtmlMessage(){return L},set warnHtmlMessage(R){L=R,N.warnHtmlMessage=R},get escapeParameter(){return U},set escapeParameter(R){U=R,N.escapeParameter=R},t:RA,getLocaleMessage:ve,setLocaleMessage:fn,mergeLocaleMessage:xr,getPostTranslationHandler:kA,setPostTranslationHandler:rA,getMissingHandler:BA,setMissingHandler:XA,[DT]:un};return VA.datetimeFormats=oe,VA.numberFormats=KA,VA.rt=zA,VA.te=z,VA.tm=Sn,VA.d=qA,VA.n=ZA,VA.getDateTimeFormat=T,VA.setDateTimeFormat=x,VA.mergeDateTimeFormat=$,VA.getNumberFormat=oA,VA.setNumberFormat=te,VA.mergeNumberFormat=DA,VA[Bm]=n,VA[Mu]=ut,VA[Ru]=xt,VA[Ku]=_t,process.env.NODE_ENV!=="production"&&(VA[Pu]=R=>{N.__v_emitter=R},VA[Vu]=()=>{N.__v_emitter=void 0}),VA}const $u={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:t=>t==="parent"||t==="global",default:"parent"},i18n:{type:Object}};function PT({slots:t},A){return A.length===1&&A[0]==="default"?(t.default?t.default():[]).reduce((n,r)=>[...n,...r.type===h.Fragment?r.children:[r]],[]):A.reduce((e,n)=>{const r=t[n];return r&&(e[n]=r()),e},{})}function Fm(t){return h.Fragment}qe({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:t=>ze(t)||!isNaN(t)}},$u);function VT(t){return be(t)&&!tA(t[0])}function bm(t,A,e,n){const{slots:r,attrs:i}=A;return()=>{const s={part:!0};let a={};t.locale&&(s.locale=t.locale),tA(t.format)?s.key=t.format:WA(t.format)&&(tA(t.format.key)&&(s.key=t.format.key),a=Object.keys(t.format).reduce((g,m)=>e.includes(m)?qe({},g,{[m]:t.format[m]}):g,{}));const c=n(t.value,s,a);let u=[s.key];be(c)?u=c.map((g,m)=>{const w=r[g.type],F=w?w({[g.type]:g.value,index:m,parts:c}):[g.value];return VT(F)&&(F[0].key=`${g.type}-${m}`),F}):tA(c)&&(u=[c]);const f=qe({},i),p=tA(t.tag)||WA(t.tag)?t.tag:Fm();return h.h(p,f,u)}}qe({value:{type:Number,required:!0},format:{type:[String,Object]}},$u),qe({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},$u);function Um(t,A){}const GT=Rn("global-vue-i18n");function xa(t={}){const A=h.getCurrentInstance();if(A==null)throw Er(de.MUST_BE_CALL_SETUP_TOP);if(!A.isCE&&A.appContext.app!=null&&!A.appContext.app.__VUE_I18N_SYMBOL__)throw Er(de.NOT_INSTALLED);const e=WT(A),n=JT(e),r=mm(A),i=$T(t,r);if(__VUE_I18N_LEGACY_API__&&e.mode==="legacy"&&!t.__useComponent){if(!e.allowComposition)throw Er(de.NOT_AVAILABLE_IN_LEGACY_MODE);return qT(A,i,n,t)}if(i==="global")return NT(n,t,r),n;if(i==="parent"){let c=XT(e,A,t.__useComponent);return c==null&&(process.env.NODE_ENV!=="production"&&Pn(_a(Bt.NOT_FOUND_PARENT_SCOPE)),c=n),c}const s=e;let a=s.__getInstance(A);if(a==null){const c=qe({},t);"__i18n"in r&&(c.__i18n=r.__i18n),n&&(c.__root=n),a=KT(c),s.__composerExtend&&(a[Gu]=s.__composerExtend(a)),zT(s,A,a),s.__setInstance(A,a)}return a}function WT(t){{const A=h.inject(t.isCE?GT:t.appContext.app.__VUE_I18N_SYMBOL__);if(!A)throw Er(t.isCE?de.NOT_INSTALLED_WITH_PROVIDE:de.UNEXPECTED_ERROR);return A}}function $T(t,A){return ya(t)?"__i18n"in A?"local":"global":t.useScope?t.useScope:"local"}function JT(t){return t.mode==="composition"?t.global:t.global.__composer}function XT(t,A,e=!1){let n=null;const r=A.root;let i=YT(A,e);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,e&&n&&!n[Bm]&&(n=null))}if(n!=null||r===i)break;i=i.parent}return n}function YT(t,A=!1){return t==null?null:A&&t.vnode.ctx||t.parent}function zT(t,A,e){let n=null;h.onMounted(()=>{if(process.env.NODE_ENV!=="production"&&A.vnode.el){A.vnode.el.__VUE_I18N__=e,n=cS();const r=e;r[Pu]&&r[Pu](n),n.on("*",Um)}},A),h.onUnmounted(()=>{const r=e;process.env.NODE_ENV!=="production"&&A.vnode.el&&A.vnode.el.__VUE_I18N__&&(n&&n.off("*",Um),r[Vu]&&r[Vu](),delete A.vnode.el.__VUE_I18N__),t.__deleteInstance(A);const i=r[Gu];i&&(i(),delete r[Gu])},A)}function qT(t,A,e,n={}){const r=A==="local",i=h.shallowRef(null);if(r&&t.proxy&&!(t.proxy.$options.i18n||t.proxy.$options.__i18n))throw Er(de.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const s=ne(n.inheritLocale)?n.inheritLocale:!tA(n.locale),a=h.ref(!r||s?e.locale.value:tA(n.locale)?n.locale:$s),c=h.ref(!r||s?e.fallbackLocale.value:tA(n.fallbackLocale)||be(n.fallbackLocale)||_A(n.fallbackLocale)||n.fallbackLocale===!1?n.fallbackLocale:a.value),u=h.ref(Wu(a.value,n)),f=h.ref(_A(n.datetimeFormats)?n.datetimeFormats:{[a.value]:{}}),p=h.ref(_A(n.numberFormats)?n.numberFormats:{[a.value]:{}}),g=r?e.missingWarn:ne(n.missingWarn)||Vi(n.missingWarn)?n.missingWarn:!0,m=r?e.fallbackWarn:ne(n.fallbackWarn)||Vi(n.fallbackWarn)?n.fallbackWarn:!0,w=r?e.fallbackRoot:ne(n.fallbackRoot)?n.fallbackRoot:!0,F=!!n.fallbackFormat,b=le(n.missing)?n.missing:null,v=le(n.postTranslation)?n.postTranslation:null,_=r?e.warnHtmlMessage:ne(n.warnHtmlMessage)?n.warnHtmlMessage:!0,S=!!n.escapeParameter,E=r?e.modifiers:_A(n.modifiers)?n.modifiers:{},L=n.pluralRules||r&&e.pluralRules;function U(){return[a.value,c.value,u.value,f.value,p.value]}const D=h.computed({get:()=>i.value?i.value.locale.value:a.value,set:z=>{i.value&&(i.value.locale.value=z),a.value=z}}),P=h.computed({get:()=>i.value?i.value.fallbackLocale.value:c.value,set:z=>{i.value&&(i.value.fallbackLocale.value=z),c.value=z}}),N=h.computed(()=>i.value?i.value.messages.value:u.value),sA=h.computed(()=>f.value),mA=h.computed(()=>p.value);function nA(){return i.value?i.value.getPostTranslationHandler():v}function cA(z){i.value&&i.value.setPostTranslationHandler(z)}function HA(){return i.value?i.value.getMissingHandler():b}function oe(z){i.value&&i.value.setMissingHandler(z)}function KA(z){return U(),z()}function kA(...z){return i.value?KA(()=>Reflect.apply(i.value.t,null,[...z])):KA(()=>"")}function rA(...z){return i.value?Reflect.apply(i.value.rt,null,[...z]):""}function BA(...z){return i.value?KA(()=>Reflect.apply(i.value.d,null,[...z])):KA(()=>"")}function XA(...z){return i.value?KA(()=>Reflect.apply(i.value.n,null,[...z])):KA(()=>"")}function OA(z){return i.value?i.value.tm(z):{}}function PA(z,bA){return i.value?i.value.te(z,bA):!1}function RA(z){return i.value?i.value.getLocaleMessage(z):{}}function zA(z,bA){i.value&&(i.value.setLocaleMessage(z,bA),u.value[z]=bA)}function qA(z,bA){i.value&&i.value.mergeLocaleMessage(z,bA)}function ZA(z){return i.value?i.value.getDateTimeFormat(z):{}}function he(z,bA){i.value&&(i.value.setDateTimeFormat(z,bA),f.value[z]=bA)}function ct(z,bA){i.value&&i.value.mergeDateTimeFormat(z,bA)}function At(z){return i.value?i.value.getNumberFormat(z):{}}function ut(z,bA){i.value&&(i.value.setNumberFormat(z,bA),p.value[z]=bA)}function _t(z,bA){i.value&&i.value.mergeNumberFormat(z,bA)}const xt={get id(){return i.value?i.value.id:-1},locale:D,fallbackLocale:P,messages:N,datetimeFormats:sA,numberFormats:mA,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:m},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:F},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:kA,getPostTranslationHandler:nA,setPostTranslationHandler:cA,getMissingHandler:HA,setMissingHandler:oe,rt:rA,d:BA,n:XA,tm:OA,te:PA,getLocaleMessage:RA,setLocaleMessage:zA,mergeLocaleMessage:qA,getDateTimeFormat:ZA,setDateTimeFormat:he,mergeDateTimeFormat:ct,getNumberFormat:At,setNumberFormat:ut,mergeNumberFormat:_t};function un(z){z.locale.value=a.value,z.fallbackLocale.value=c.value,Object.keys(u.value).forEach(bA=>{z.mergeLocaleMessage(bA,u.value[bA])}),Object.keys(f.value).forEach(bA=>{z.mergeDateTimeFormat(bA,f.value[bA])}),Object.keys(p.value).forEach(bA=>{z.mergeNumberFormat(bA,p.value[bA])}),z.escapeParameter=S,z.fallbackFormat=F,z.fallbackRoot=w,z.fallbackWarn=m,z.missingWarn=g,z.warnHtmlMessage=_}return h.onBeforeMount(()=>{if(t.proxy==null||t.proxy.$i18n==null)throw Er(de.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const z=i.value=t.proxy.$i18n.__composer;A==="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(LT(),__INTLIFY_JIT_COMPILATION__?VB(vT):VB(UT),BT(qS),mT(MB),process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const t=Kn();t.__INTLIFY__=!0,sT(t.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}process.env.NODE_ENV;const ZT={class:"input input-dropdown"},jT={class:"dropdown"},A_={class:"caption"},e_=["innerHTML"],t_={class:"caption__text"},n_={class:"d-block text-truncate"},r_={class:"dropdown-menu"},i_={class:"form-check"},s_=["value","id","name","label","required","disabled"],o_=["value","id","name","label","required","disabled"],a_=["for"],l_=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}},emits:["update:modelValue"],setup(t,{emit:A}){const{t:e}=xa(),n=t,r=A,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.modelValue.includes(c.value)}))),a=h.computed(()=>n.modelValue&&n.modelValue.length?Array.isArray(n.modelValue)&&n.modelValue.length?s.value.reduce((c,u)=>n.modelValue.includes(u.value)?`${c}${c?", ":""}${u.text}`:c,""):s.value.reduce((c,u)=>u.value===n.modelValue?`${c}${u.text}`:c,""):n.placeholder||`${e("common.select")}`);return(c,u)=>{const f=h.resolveComponent("base-button");return h.openBlock(),h.createElementBlock("div",ZT,[h.createElementVNode("div",jT,[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",A_,[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,e_)):h.createCommentVNode("",!0)]),_:1}),h.createElementVNode("span",t_,[h.createElementVNode("span",n_,h.toDisplayString(t.toggleCaption||a.value),1)])])]),_:1},8,["title","color","outlined","disabled"]),h.createElementVNode("ul",r_,[(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",i_,[t.multiple?h.withDirectives((h.openBlock(),h.createElementBlock("input",{type:"checkbox","onUpdate:modelValue":u[0]||(u[0]=m=>i.value=m),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,s_)),[[h.vModelCheckbox,i.value]]):h.withDirectives((h.openBlock(),h.createElementBlock("input",{type:"radio","onUpdate:modelValue":u[1]||(u[1]=m=>i.value=m),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,o_)),[[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,a_)])],2)]))),128))])])])}}}),p3="",c_={key:0,class:"auto-suggest__suggestions position-relative"},u_={class:"suggestions dropdown-menu show w-100 mt-2"},f_=["onClick"],d_=["innerHTML"],h_=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}},emits:["update:modelValue","update:suggestion"],setup(t,{emit:A}){const e=t,n=A,r=h.ref(),i=h.ref(!1),s=h.computed({get(){return e.modelValue},set(f){n("update:modelValue",f)}}),a=h.computed(()=>{const f=new RegExp(`(${s.value})`,"i");return s.value?e.options.reduce((p,g)=>[...p,...f.test(g)?[g.replace(f,"<strong>$1</strong>")]:[]],[]):e.options});h.watch(()=>e.options,(f,p)=>{f.length&&(i.value=!0)},{deep:!0});function c(){e.options.length&&(i.value=!0)}function u(f){i.value=!1,n("update:modelValue",f)}return h.onBeforeMount(()=>{document.addEventListener("click",f=>{const p=f.target;i.value&&p&&!r.value.contains(p)&&(i.value=!1)})}),(f,p)=>{const g=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:c},[h.renderSlot(f.$slots,"default",{},()=>[h.createVNode(g,h.mergeProps({modelValue:s.value,"onUpdate:modelValue":p[0]||(p[0]=m=>s.value=m)},f.$props),null,16,["modelValue"])])],32),i.value&&a.value.length?(h.openBlock(),h.createElementBlock("div",c_,[h.createElementVNode("ul",u_,[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(a.value,m=>(h.openBlock(),h.createElementBlock("li",{key:m,class:"suggestions__item dropdown-item",onClick:h.withModifiers(w=>u(m),["prevent"])},[h.createElementVNode("p",{class:"text-truncate my-2",innerHTML:m},null,8,d_)],8,f_))),128))])])):h.createCommentVNode("",!0)],512)}}}),g3="";var Ys=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Oa={exports:{}};/**
137
137
  * @license
138
138
  * Lodash <https://lodash.com/>
139
139
  * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
140
140
  * Released under MIT license <https://lodash.com/license>
141
141
  * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
142
142
  * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
143
- */Oa.exports,function(t,A){(function(){var e,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,m=4,w=1,F=2,b=1,v=2,_=4,S=8,E=16,L=32,U=64,D=128,P=256,N=512,sA=30,mA="...",nA=800,cA=16,HA=1,oe=2,KA=3,kA=1/0,rA=9007199254740991,BA=17976931348623157e292,XA=0/0,OA=4294967295,PA=OA-1,RA=OA>>>1,zA=[["ary",D],["bind",b],["bindKey",v],["curry",S],["curryRight",E],["flip",N],["partial",L],["partialRight",U],["rearg",P]],qA="[object Arguments]",ZA="[object Array]",he="[object AsyncFunction]",ct="[object Boolean]",At="[object Date]",ut="[object DOMException]",_t="[object Error]",xt="[object Function]",un="[object GeneratorFunction]",z="[object Map]",bA="[object Number]",Sn="[object Null]",ve="[object Object]",fn="[object Promise]",xr="[object Proxy]",T="[object RegExp]",x="[object Set]",$="[object String]",oA="[object Symbol]",te="[object Undefined]",DA="[object WeakMap]",VA="[object WeakSet]",R="[object ArrayBuffer]",X="[object DataView]",SA="[object Float32Array]",re="[object Float64Array]",Ct="[object Int8Array]",Tn="[object Int16Array]",Jt="[object Int32Array]",K="[object Uint8Array]",iA="[object Uint8ClampedArray]",uA="[object Uint16Array]",GA="[object Uint32Array]",NA=/\b__p \+= '';/g,Ge=/\b(__p \+=) '' \+/g,yt=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Yn=/&(?:amp|lt|gt|quot|#39);/g,mo=/[&<>"']/g,zn=RegExp(Yn.source),wo=RegExp(mo.source),ss=/<%-([\s\S]+?)%>/g,Or=/<%([\s\S]+?)%>/g,vl=/<%=([\s\S]+?)%>/g,Co=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,as=/^\w*$/,bM=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,zf=/[\\^$.*+?()[\]{}|]/g,UM=RegExp(zf.source),qf=/^\s+/,vM=/\s/,IM=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,SM=/\{\n\/\* \[wrapped with (.+)\] \*/,TM=/,? & /,_M=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,xM=/[()=,{}\[\]\/\s]/,OM=/\\(\\)?/g,LM=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,MC=/\w*$/,HM=/^[-+]0x[0-9a-f]+$/i,kM=/^0b[01]+$/i,DM=/^\[object .+?Constructor\]$/,NM=/^0o[0-7]+$/i,MM=/^(?:0|[1-9]\d*)$/,RM=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Il=/($^)/,KM=/['\n\r\u2028\u2029\\]/g,Sl="\\ud800-\\udfff",PM="\\u0300-\\u036f",VM="\\ufe20-\\ufe2f",GM="\\u20d0-\\u20ff",RC=PM+VM+GM,KC="\\u2700-\\u27bf",PC="a-z\\xdf-\\xf6\\xf8-\\xff",WM="\\xac\\xb1\\xd7\\xf7",$M="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",JM="\\u2000-\\u206f",XM=" \\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",VC="A-Z\\xc0-\\xd6\\xd8-\\xde",GC="\\ufe0e\\ufe0f",WC=WM+$M+JM+XM,Zf="['’]",YM="["+Sl+"]",$C="["+WC+"]",Tl="["+RC+"]",JC="\\d+",zM="["+KC+"]",XC="["+PC+"]",YC="[^"+Sl+WC+JC+KC+PC+VC+"]",jf="\\ud83c[\\udffb-\\udfff]",qM="(?:"+Tl+"|"+jf+")",zC="[^"+Sl+"]",Ad="(?:\\ud83c[\\udde6-\\uddff]){2}",ed="[\\ud800-\\udbff][\\udc00-\\udfff]",ls="["+VC+"]",qC="\\u200d",ZC="(?:"+XC+"|"+YC+")",ZM="(?:"+ls+"|"+YC+")",jC="(?:"+Zf+"(?:d|ll|m|re|s|t|ve))?",A0="(?:"+Zf+"(?:D|LL|M|RE|S|T|VE))?",e0=qM+"?",t0="["+GC+"]?",jM="(?:"+qC+"(?:"+[zC,Ad,ed].join("|")+")"+t0+e0+")*",AR="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",eR="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",n0=t0+e0+jM,tR="(?:"+[zM,Ad,ed].join("|")+")"+n0,nR="(?:"+[zC+Tl+"?",Tl,Ad,ed,YM].join("|")+")",rR=RegExp(Zf,"g"),iR=RegExp(Tl,"g"),td=RegExp(jf+"(?="+jf+")|"+nR+n0,"g"),sR=RegExp([ls+"?"+XC+"+"+jC+"(?="+[$C,ls,"$"].join("|")+")",ZM+"+"+A0+"(?="+[$C,ls+ZC,"$"].join("|")+")",ls+"?"+ZC+"+"+jC,ls+"+"+A0,eR,AR,JC,tR].join("|"),"g"),oR=RegExp("["+qC+Sl+RC+GC+"]"),aR=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,lR=["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"],cR=-1,ce={};ce[SA]=ce[re]=ce[Ct]=ce[Tn]=ce[Jt]=ce[K]=ce[iA]=ce[uA]=ce[GA]=!0,ce[qA]=ce[ZA]=ce[R]=ce[ct]=ce[X]=ce[At]=ce[_t]=ce[xt]=ce[z]=ce[bA]=ce[ve]=ce[T]=ce[x]=ce[$]=ce[DA]=!1;var ae={};ae[qA]=ae[ZA]=ae[R]=ae[X]=ae[ct]=ae[At]=ae[SA]=ae[re]=ae[Ct]=ae[Tn]=ae[Jt]=ae[z]=ae[bA]=ae[ve]=ae[T]=ae[x]=ae[$]=ae[oA]=ae[K]=ae[iA]=ae[uA]=ae[GA]=!0,ae[_t]=ae[xt]=ae[DA]=!1;var uR={À:"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"},fR={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},dR={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},hR={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},pR=parseFloat,gR=parseInt,r0=typeof Ys=="object"&&Ys&&Ys.Object===Object&&Ys,BR=typeof self=="object"&&self&&self.Object===Object&&self,We=r0||BR||Function("return this")(),nd=A&&!A.nodeType&&A,pi=nd&&!0&&t&&!t.nodeType&&t,i0=pi&&pi.exports===nd,rd=i0&&r0.process,Xt=function(){try{var H=pi&&pi.require&&pi.require("util").types;return H||rd&&rd.binding&&rd.binding("util")}catch{}}(),s0=Xt&&Xt.isArrayBuffer,o0=Xt&&Xt.isDate,a0=Xt&&Xt.isMap,l0=Xt&&Xt.isRegExp,c0=Xt&&Xt.isSet,u0=Xt&&Xt.isTypedArray;function Ot(H,V,M){switch(M.length){case 0:return H.call(V);case 1:return H.call(V,M[0]);case 2:return H.call(V,M[0],M[1]);case 3:return H.call(V,M[0],M[1],M[2])}return H.apply(V,M)}function mR(H,V,M,eA){for(var wA=-1,$A=H==null?0:H.length;++wA<$A;){var Te=H[wA];V(eA,Te,M(Te),H)}return eA}function Yt(H,V){for(var M=-1,eA=H==null?0:H.length;++M<eA&&V(H[M],M,H)!==!1;);return H}function wR(H,V){for(var M=H==null?0:H.length;M--&&V(H[M],M,H)!==!1;);return H}function f0(H,V){for(var M=-1,eA=H==null?0:H.length;++M<eA;)if(!V(H[M],M,H))return!1;return!0}function Lr(H,V){for(var M=-1,eA=H==null?0:H.length,wA=0,$A=[];++M<eA;){var Te=H[M];V(Te,M,H)&&($A[wA++]=Te)}return $A}function _l(H,V){var M=H==null?0:H.length;return!!M&&cs(H,V,0)>-1}function id(H,V,M){for(var eA=-1,wA=H==null?0:H.length;++eA<wA;)if(M(V,H[eA]))return!0;return!1}function fe(H,V){for(var M=-1,eA=H==null?0:H.length,wA=Array(eA);++M<eA;)wA[M]=V(H[M],M,H);return wA}function Hr(H,V){for(var M=-1,eA=V.length,wA=H.length;++M<eA;)H[wA+M]=V[M];return H}function sd(H,V,M,eA){var wA=-1,$A=H==null?0:H.length;for(eA&&$A&&(M=H[++wA]);++wA<$A;)M=V(M,H[wA],wA,H);return M}function CR(H,V,M,eA){var wA=H==null?0:H.length;for(eA&&wA&&(M=H[--wA]);wA--;)M=V(M,H[wA],wA,H);return M}function od(H,V){for(var M=-1,eA=H==null?0:H.length;++M<eA;)if(V(H[M],M,H))return!0;return!1}var yR=ad("length");function ER(H){return H.split("")}function QR(H){return H.match(_M)||[]}function d0(H,V,M){var eA;return M(H,function(wA,$A,Te){if(V(wA,$A,Te))return eA=$A,!1}),eA}function xl(H,V,M,eA){for(var wA=H.length,$A=M+(eA?1:-1);eA?$A--:++$A<wA;)if(V(H[$A],$A,H))return $A;return-1}function cs(H,V,M){return V===V?HR(H,V,M):xl(H,h0,M)}function FR(H,V,M,eA){for(var wA=M-1,$A=H.length;++wA<$A;)if(eA(H[wA],V))return wA;return-1}function h0(H){return H!==H}function p0(H,V){var M=H==null?0:H.length;return M?cd(H,V)/M:XA}function ad(H){return function(V){return V==null?e:V[H]}}function ld(H){return function(V){return H==null?e:H[V]}}function g0(H,V,M,eA,wA){return wA(H,function($A,Te,ie){M=eA?(eA=!1,$A):V(M,$A,Te,ie)}),M}function bR(H,V){var M=H.length;for(H.sort(V);M--;)H[M]=H[M].value;return H}function cd(H,V){for(var M,eA=-1,wA=H.length;++eA<wA;){var $A=V(H[eA]);$A!==e&&(M=M===e?$A:M+$A)}return M}function ud(H,V){for(var M=-1,eA=Array(H);++M<H;)eA[M]=V(M);return eA}function UR(H,V){return fe(V,function(M){return[M,H[M]]})}function B0(H){return H&&H.slice(0,y0(H)+1).replace(qf,"")}function Lt(H){return function(V){return H(V)}}function fd(H,V){return fe(V,function(M){return H[M]})}function yo(H,V){return H.has(V)}function m0(H,V){for(var M=-1,eA=H.length;++M<eA&&cs(V,H[M],0)>-1;);return M}function w0(H,V){for(var M=H.length;M--&&cs(V,H[M],0)>-1;);return M}function vR(H,V){for(var M=H.length,eA=0;M--;)H[M]===V&&++eA;return eA}var IR=ld(uR),SR=ld(fR);function TR(H){return"\\"+hR[H]}function _R(H,V){return H==null?e:H[V]}function us(H){return oR.test(H)}function xR(H){return aR.test(H)}function OR(H){for(var V,M=[];!(V=H.next()).done;)M.push(V.value);return M}function dd(H){var V=-1,M=Array(H.size);return H.forEach(function(eA,wA){M[++V]=[wA,eA]}),M}function C0(H,V){return function(M){return H(V(M))}}function kr(H,V){for(var M=-1,eA=H.length,wA=0,$A=[];++M<eA;){var Te=H[M];(Te===V||Te===f)&&(H[M]=f,$A[wA++]=M)}return $A}function Ol(H){var V=-1,M=Array(H.size);return H.forEach(function(eA){M[++V]=eA}),M}function LR(H){var V=-1,M=Array(H.size);return H.forEach(function(eA){M[++V]=[eA,eA]}),M}function HR(H,V,M){for(var eA=M-1,wA=H.length;++eA<wA;)if(H[eA]===V)return eA;return-1}function kR(H,V,M){for(var eA=M+1;eA--;)if(H[eA]===V)return eA;return eA}function fs(H){return us(H)?NR(H):yR(H)}function dn(H){return us(H)?MR(H):ER(H)}function y0(H){for(var V=H.length;V--&&vM.test(H.charAt(V)););return V}var DR=ld(dR);function NR(H){for(var V=td.lastIndex=0;td.test(H);)++V;return V}function MR(H){return H.match(td)||[]}function RR(H){return H.match(sR)||[]}var KR=function H(V){V=V==null?We:ds.defaults(We.Object(),V,ds.pick(We,lR));var M=V.Array,eA=V.Date,wA=V.Error,$A=V.Function,Te=V.Math,ie=V.Object,hd=V.RegExp,PR=V.String,zt=V.TypeError,Ll=M.prototype,VR=$A.prototype,hs=ie.prototype,Hl=V["__core-js_shared__"],kl=VR.toString,jA=hs.hasOwnProperty,GR=0,E0=function(){var o=/[^.]+$/.exec(Hl&&Hl.keys&&Hl.keys.IE_PROTO||"");return o?"Symbol(src)_1."+o:""}(),Dl=hs.toString,WR=kl.call(ie),$R=We._,JR=hd("^"+kl.call(jA).replace(zf,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Nl=i0?V.Buffer:e,Dr=V.Symbol,Ml=V.Uint8Array,Q0=Nl?Nl.allocUnsafe:e,Rl=C0(ie.getPrototypeOf,ie),F0=ie.create,b0=hs.propertyIsEnumerable,Kl=Ll.splice,U0=Dr?Dr.isConcatSpreadable:e,Eo=Dr?Dr.iterator:e,gi=Dr?Dr.toStringTag:e,Pl=function(){try{var o=yi(ie,"defineProperty");return o({},"",{}),o}catch{}}(),XR=V.clearTimeout!==We.clearTimeout&&V.clearTimeout,YR=eA&&eA.now!==We.Date.now&&eA.now,zR=V.setTimeout!==We.setTimeout&&V.setTimeout,Vl=Te.ceil,Gl=Te.floor,pd=ie.getOwnPropertySymbols,qR=Nl?Nl.isBuffer:e,v0=V.isFinite,ZR=Ll.join,jR=C0(ie.keys,ie),_e=Te.max,et=Te.min,A4=eA.now,e4=V.parseInt,I0=Te.random,t4=Ll.reverse,gd=yi(V,"DataView"),Qo=yi(V,"Map"),Bd=yi(V,"Promise"),ps=yi(V,"Set"),Fo=yi(V,"WeakMap"),bo=yi(ie,"create"),Wl=Fo&&new Fo,gs={},n4=Ei(gd),r4=Ei(Qo),i4=Ei(Bd),s4=Ei(ps),o4=Ei(Fo),$l=Dr?Dr.prototype:e,Uo=$l?$l.valueOf:e,S0=$l?$l.toString:e;function y(o){if(Be(o)&&!yA(o)&&!(o instanceof LA)){if(o instanceof qt)return o;if(jA.call(o,"__wrapped__"))return Ty(o)}return new qt(o)}var Bs=function(){function o(){}return function(l){if(!pe(l))return{};if(F0)return F0(l);o.prototype=l;var d=new o;return o.prototype=e,d}}();function Jl(){}function qt(o,l){this.__wrapped__=o,this.__actions__=[],this.__chain__=!!l,this.__index__=0,this.__values__=e}y.templateSettings={escape:ss,evaluate:Or,interpolate:vl,variable:"",imports:{_:y}},y.prototype=Jl.prototype,y.prototype.constructor=y,qt.prototype=Bs(Jl.prototype),qt.prototype.constructor=qt;function LA(o){this.__wrapped__=o,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=OA,this.__views__=[]}function a4(){var o=new LA(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 l4(){if(this.__filtered__){var o=new LA(this);o.__dir__=-1,o.__filtered__=!0}else o=this.clone(),o.__dir__*=-1;return o}function c4(){var o=this.__wrapped__.value(),l=this.__dir__,d=yA(o),B=l<0,C=d?o.length:0,Q=EK(0,C,this.__views__),I=Q.start,O=Q.end,k=O-I,G=B?O:I-1,W=this.__iteratees__,J=W.length,q=0,lA=et(k,this.__takeCount__);if(!d||!B&&C==k&&lA==k)return j0(o,this.__actions__);var hA=[];A:for(;k--&&q<lA;){G+=l;for(var UA=-1,pA=o[G];++UA<J;){var TA=W[UA],MA=TA.iteratee,Dt=TA.type,ht=MA(pA);if(Dt==oe)pA=ht;else if(!ht){if(Dt==HA)continue A;break A}}hA[q++]=pA}return hA}LA.prototype=Bs(Jl.prototype),LA.prototype.constructor=LA;function Bi(o){var l=-1,d=o==null?0:o.length;for(this.clear();++l<d;){var B=o[l];this.set(B[0],B[1])}}function u4(){this.__data__=bo?bo(null):{},this.size=0}function f4(o){var l=this.has(o)&&delete this.__data__[o];return this.size-=l?1:0,l}function d4(o){var l=this.__data__;if(bo){var d=l[o];return d===c?e:d}return jA.call(l,o)?l[o]:e}function h4(o){var l=this.__data__;return bo?l[o]!==e:jA.call(l,o)}function p4(o,l){var d=this.__data__;return this.size+=this.has(o)?0:1,d[o]=bo&&l===e?c:l,this}Bi.prototype.clear=u4,Bi.prototype.delete=f4,Bi.prototype.get=d4,Bi.prototype.has=h4,Bi.prototype.set=p4;function qn(o){var l=-1,d=o==null?0:o.length;for(this.clear();++l<d;){var B=o[l];this.set(B[0],B[1])}}function g4(){this.__data__=[],this.size=0}function B4(o){var l=this.__data__,d=Xl(l,o);if(d<0)return!1;var B=l.length-1;return d==B?l.pop():Kl.call(l,d,1),--this.size,!0}function m4(o){var l=this.__data__,d=Xl(l,o);return d<0?e:l[d][1]}function w4(o){return Xl(this.__data__,o)>-1}function C4(o,l){var d=this.__data__,B=Xl(d,o);return B<0?(++this.size,d.push([o,l])):d[B][1]=l,this}qn.prototype.clear=g4,qn.prototype.delete=B4,qn.prototype.get=m4,qn.prototype.has=w4,qn.prototype.set=C4;function Zn(o){var l=-1,d=o==null?0:o.length;for(this.clear();++l<d;){var B=o[l];this.set(B[0],B[1])}}function y4(){this.size=0,this.__data__={hash:new Bi,map:new(Qo||qn),string:new Bi}}function E4(o){var l=sc(this,o).delete(o);return this.size-=l?1:0,l}function Q4(o){return sc(this,o).get(o)}function F4(o){return sc(this,o).has(o)}function b4(o,l){var d=sc(this,o),B=d.size;return d.set(o,l),this.size+=d.size==B?0:1,this}Zn.prototype.clear=y4,Zn.prototype.delete=E4,Zn.prototype.get=Q4,Zn.prototype.has=F4,Zn.prototype.set=b4;function mi(o){var l=-1,d=o==null?0:o.length;for(this.__data__=new Zn;++l<d;)this.add(o[l])}function U4(o){return this.__data__.set(o,c),this}function v4(o){return this.__data__.has(o)}mi.prototype.add=mi.prototype.push=U4,mi.prototype.has=v4;function hn(o){var l=this.__data__=new qn(o);this.size=l.size}function I4(){this.__data__=new qn,this.size=0}function S4(o){var l=this.__data__,d=l.delete(o);return this.size=l.size,d}function T4(o){return this.__data__.get(o)}function _4(o){return this.__data__.has(o)}function x4(o,l){var d=this.__data__;if(d instanceof qn){var B=d.__data__;if(!Qo||B.length<r-1)return B.push([o,l]),this.size=++d.size,this;d=this.__data__=new Zn(B)}return d.set(o,l),this.size=d.size,this}hn.prototype.clear=I4,hn.prototype.delete=S4,hn.prototype.get=T4,hn.prototype.has=_4,hn.prototype.set=x4;function T0(o,l){var d=yA(o),B=!d&&Qi(o),C=!d&&!B&&Pr(o),Q=!d&&!B&&!C&&ys(o),I=d||B||C||Q,O=I?ud(o.length,PR):[],k=O.length;for(var G in o)(l||jA.call(o,G))&&!(I&&(G=="length"||C&&(G=="offset"||G=="parent")||Q&&(G=="buffer"||G=="byteLength"||G=="byteOffset")||tr(G,k)))&&O.push(G);return O}function _0(o){var l=o.length;return l?o[Id(0,l-1)]:e}function O4(o,l){return oc(Et(o),wi(l,0,o.length))}function L4(o){return oc(Et(o))}function md(o,l,d){(d!==e&&!pn(o[l],d)||d===e&&!(l in o))&&jn(o,l,d)}function vo(o,l,d){var B=o[l];(!(jA.call(o,l)&&pn(B,d))||d===e&&!(l in o))&&jn(o,l,d)}function Xl(o,l){for(var d=o.length;d--;)if(pn(o[d][0],l))return d;return-1}function H4(o,l,d,B){return Nr(o,function(C,Q,I){l(B,C,d(C),I)}),B}function x0(o,l){return o&&xn(l,Ne(l),o)}function k4(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 wd(o,l){for(var d=-1,B=l.length,C=M(B),Q=o==null;++d<B;)C[d]=Q?e:jd(o,l[d]);return C}function wi(o,l,d){return o===o&&(d!==e&&(o=o<=d?o:d),l!==e&&(o=o>=l?o:l)),o}function Zt(o,l,d,B,C,Q){var I,O=l&p,k=l&g,G=l&m;if(d&&(I=C?d(o,B,C,Q):d(o)),I!==e)return I;if(!pe(o))return o;var W=yA(o);if(W){if(I=FK(o),!O)return Et(o,I)}else{var J=tt(o),q=J==xt||J==un;if(Pr(o))return ty(o,O);if(J==ve||J==qA||q&&!C){if(I=k||q?{}:yy(o),!O)return k?dK(o,k4(I,o)):fK(o,x0(I,o))}else{if(!ae[J])return C?o:{};I=bK(o,J,O)}}Q||(Q=new hn);var lA=Q.get(o);if(lA)return lA;Q.set(o,I),zy(o)?o.forEach(function(pA){I.add(Zt(pA,l,d,pA,o,Q))}):Xy(o)&&o.forEach(function(pA,TA){I.set(TA,Zt(pA,l,d,TA,o,Q))});var hA=G?k?Md:Nd:k?Ft:Ne,UA=W?e:hA(o);return Yt(UA||o,function(pA,TA){UA&&(TA=pA,pA=o[TA]),vo(I,TA,Zt(pA,l,d,TA,o,Q))}),I}function D4(o){var l=Ne(o);return function(d){return O0(d,o,l)}}function O0(o,l,d){var B=d.length;if(o==null)return!B;for(o=ie(o);B--;){var C=d[B],Q=l[C],I=o[C];if(I===e&&!(C in o)||!Q(I))return!1}return!0}function L0(o,l,d){if(typeof o!="function")throw new zt(s);return Lo(function(){o.apply(e,d)},l)}function Io(o,l,d,B){var C=-1,Q=_l,I=!0,O=o.length,k=[],G=l.length;if(!O)return k;d&&(l=fe(l,Lt(d))),B?(Q=id,I=!1):l.length>=r&&(Q=yo,I=!1,l=new mi(l));A:for(;++C<O;){var W=o[C],J=d==null?W:d(W);if(W=B||W!==0?W:0,I&&J===J){for(var q=G;q--;)if(l[q]===J)continue A;k.push(W)}else Q(l,J,B)||k.push(W)}return k}var Nr=oy(_n),H0=oy(yd,!0);function N4(o,l){var d=!0;return Nr(o,function(B,C,Q){return d=!!l(B,C,Q),d}),d}function Yl(o,l,d){for(var B=-1,C=o.length;++B<C;){var Q=o[B],I=l(Q);if(I!=null&&(O===e?I===I&&!kt(I):d(I,O)))var O=I,k=Q}return k}function M4(o,l,d,B){var C=o.length;for(d=EA(d),d<0&&(d=-d>C?0:C+d),B=B===e||B>C?C:EA(B),B<0&&(B+=C),B=d>B?0:Zy(B);d<B;)o[d++]=l;return o}function k0(o,l){var d=[];return Nr(o,function(B,C,Q){l(B,C,Q)&&d.push(B)}),d}function $e(o,l,d,B,C){var Q=-1,I=o.length;for(d||(d=vK),C||(C=[]);++Q<I;){var O=o[Q];l>0&&d(O)?l>1?$e(O,l-1,d,B,C):Hr(C,O):B||(C[C.length]=O)}return C}var Cd=ay(),D0=ay(!0);function _n(o,l){return o&&Cd(o,l,Ne)}function yd(o,l){return o&&D0(o,l,Ne)}function zl(o,l){return Lr(l,function(d){return nr(o[d])})}function Ci(o,l){l=Rr(l,o);for(var d=0,B=l.length;o!=null&&d<B;)o=o[On(l[d++])];return d&&d==B?o:e}function N0(o,l,d){var B=l(o);return yA(o)?B:Hr(B,d(o))}function ft(o){return o==null?o===e?te:Sn:gi&&gi in ie(o)?yK(o):LK(o)}function Ed(o,l){return o>l}function R4(o,l){return o!=null&&jA.call(o,l)}function K4(o,l){return o!=null&&l in ie(o)}function P4(o,l,d){return o>=et(l,d)&&o<_e(l,d)}function Qd(o,l,d){for(var B=d?id:_l,C=o[0].length,Q=o.length,I=Q,O=M(Q),k=1/0,G=[];I--;){var W=o[I];I&&l&&(W=fe(W,Lt(l))),k=et(W.length,k),O[I]=!d&&(l||C>=120&&W.length>=120)?new mi(I&&W):e}W=o[0];var J=-1,q=O[0];A:for(;++J<C&&G.length<k;){var lA=W[J],hA=l?l(lA):lA;if(lA=d||lA!==0?lA:0,!(q?yo(q,hA):B(G,hA,d))){for(I=Q;--I;){var UA=O[I];if(!(UA?yo(UA,hA):B(o[I],hA,d)))continue A}q&&q.push(hA),G.push(lA)}}return G}function V4(o,l,d,B){return _n(o,function(C,Q,I){l(B,d(C),Q,I)}),B}function So(o,l,d){l=Rr(l,o),o=by(o,l);var B=o==null?o:o[On(An(l))];return B==null?e:Ot(B,o,d)}function M0(o){return Be(o)&&ft(o)==qA}function G4(o){return Be(o)&&ft(o)==R}function W4(o){return Be(o)&&ft(o)==At}function To(o,l,d,B,C){return o===l?!0:o==null||l==null||!Be(o)&&!Be(l)?o!==o&&l!==l:$4(o,l,d,B,To,C)}function $4(o,l,d,B,C,Q){var I=yA(o),O=yA(l),k=I?ZA:tt(o),G=O?ZA:tt(l);k=k==qA?ve:k,G=G==qA?ve:G;var W=k==ve,J=G==ve,q=k==G;if(q&&Pr(o)){if(!Pr(l))return!1;I=!0,W=!1}if(q&&!W)return Q||(Q=new hn),I||ys(o)?my(o,l,d,B,C,Q):wK(o,l,k,d,B,C,Q);if(!(d&w)){var lA=W&&jA.call(o,"__wrapped__"),hA=J&&jA.call(l,"__wrapped__");if(lA||hA){var UA=lA?o.value():o,pA=hA?l.value():l;return Q||(Q=new hn),C(UA,pA,d,B,Q)}}return q?(Q||(Q=new hn),CK(o,l,d,B,C,Q)):!1}function J4(o){return Be(o)&&tt(o)==z}function Fd(o,l,d,B){var C=d.length,Q=C,I=!B;if(o==null)return!Q;for(o=ie(o);C--;){var O=d[C];if(I&&O[2]?O[1]!==o[O[0]]:!(O[0]in o))return!1}for(;++C<Q;){O=d[C];var k=O[0],G=o[k],W=O[1];if(I&&O[2]){if(G===e&&!(k in o))return!1}else{var J=new hn;if(B)var q=B(G,W,k,o,l,J);if(!(q===e?To(W,G,w|F,B,J):q))return!1}}return!0}function R0(o){if(!pe(o)||SK(o))return!1;var l=nr(o)?JR:DM;return l.test(Ei(o))}function X4(o){return Be(o)&&ft(o)==T}function Y4(o){return Be(o)&&tt(o)==x}function z4(o){return Be(o)&&dc(o.length)&&!!ce[ft(o)]}function K0(o){return typeof o=="function"?o:o==null?bt:typeof o=="object"?yA(o)?G0(o[0],o[1]):V0(o):lE(o)}function bd(o){if(!Oo(o))return jR(o);var l=[];for(var d in ie(o))jA.call(o,d)&&d!="constructor"&&l.push(d);return l}function q4(o){if(!pe(o))return OK(o);var l=Oo(o),d=[];for(var B in o)B=="constructor"&&(l||!jA.call(o,B))||d.push(B);return d}function Ud(o,l){return o<l}function P0(o,l){var d=-1,B=Qt(o)?M(o.length):[];return Nr(o,function(C,Q,I){B[++d]=l(C,Q,I)}),B}function V0(o){var l=Kd(o);return l.length==1&&l[0][2]?Qy(l[0][0],l[0][1]):function(d){return d===o||Fd(d,o,l)}}function G0(o,l){return Vd(o)&&Ey(l)?Qy(On(o),l):function(d){var B=jd(d,o);return B===e&&B===l?Ah(d,o):To(l,B,w|F)}}function ql(o,l,d,B,C){o!==l&&Cd(l,function(Q,I){if(C||(C=new hn),pe(Q))Z4(o,l,I,d,ql,B,C);else{var O=B?B(Wd(o,I),Q,I+"",o,l,C):e;O===e&&(O=Q),md(o,I,O)}},Ft)}function Z4(o,l,d,B,C,Q,I){var O=Wd(o,d),k=Wd(l,d),G=I.get(k);if(G){md(o,d,G);return}var W=Q?Q(O,k,d+"",o,l,I):e,J=W===e;if(J){var q=yA(k),lA=!q&&Pr(k),hA=!q&&!lA&&ys(k);W=k,q||lA||hA?yA(O)?W=O:ye(O)?W=Et(O):lA?(J=!1,W=ty(k,!0)):hA?(J=!1,W=ny(k,!0)):W=[]:Ho(k)||Qi(k)?(W=O,Qi(O)?W=jy(O):(!pe(O)||nr(O))&&(W=yy(k))):J=!1}J&&(I.set(k,W),C(W,k,B,Q,I),I.delete(k)),md(o,d,W)}function W0(o,l){var d=o.length;if(d)return l+=l<0?d:0,tr(l,d)?o[l]:e}function $0(o,l,d){l.length?l=fe(l,function(Q){return yA(Q)?function(I){return Ci(I,Q.length===1?Q[0]:Q)}:Q}):l=[bt];var B=-1;l=fe(l,Lt(dA()));var C=P0(o,function(Q,I,O){var k=fe(l,function(G){return G(Q)});return{criteria:k,index:++B,value:Q}});return bR(C,function(Q,I){return uK(Q,I,d)})}function j4(o,l){return J0(o,l,function(d,B){return Ah(o,B)})}function J0(o,l,d){for(var B=-1,C=l.length,Q={};++B<C;){var I=l[B],O=Ci(o,I);d(O,I)&&_o(Q,Rr(I,o),O)}return Q}function AK(o){return function(l){return Ci(l,o)}}function vd(o,l,d,B){var C=B?FR:cs,Q=-1,I=l.length,O=o;for(o===l&&(l=Et(l)),d&&(O=fe(o,Lt(d)));++Q<I;)for(var k=0,G=l[Q],W=d?d(G):G;(k=C(O,W,k,B))>-1;)O!==o&&Kl.call(O,k,1),Kl.call(o,k,1);return o}function X0(o,l){for(var d=o?l.length:0,B=d-1;d--;){var C=l[d];if(d==B||C!==Q){var Q=C;tr(C)?Kl.call(o,C,1):_d(o,C)}}return o}function Id(o,l){return o+Gl(I0()*(l-o+1))}function eK(o,l,d,B){for(var C=-1,Q=_e(Vl((l-o)/(d||1)),0),I=M(Q);Q--;)I[B?Q:++C]=o,o+=d;return I}function Sd(o,l){var d="";if(!o||l<1||l>rA)return d;do l%2&&(d+=o),l=Gl(l/2),l&&(o+=o);while(l);return d}function vA(o,l){return $d(Fy(o,l,bt),o+"")}function tK(o){return _0(Es(o))}function nK(o,l){var d=Es(o);return oc(d,wi(l,0,d.length))}function _o(o,l,d,B){if(!pe(o))return o;l=Rr(l,o);for(var C=-1,Q=l.length,I=Q-1,O=o;O!=null&&++C<Q;){var k=On(l[C]),G=d;if(k==="__proto__"||k==="constructor"||k==="prototype")return o;if(C!=I){var W=O[k];G=B?B(W,k,O):e,G===e&&(G=pe(W)?W:tr(l[C+1])?[]:{})}vo(O,k,G),O=O[k]}return o}var Y0=Wl?function(o,l){return Wl.set(o,l),o}:bt,rK=Pl?function(o,l){return Pl(o,"toString",{configurable:!0,enumerable:!1,value:th(l),writable:!0})}:bt;function iK(o){return oc(Es(o))}function jt(o,l,d){var B=-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 Q=M(C);++B<C;)Q[B]=o[B+l];return Q}function sK(o,l){var d;return Nr(o,function(B,C,Q){return d=l(B,C,Q),!d}),!!d}function Zl(o,l,d){var B=0,C=o==null?B:o.length;if(typeof l=="number"&&l===l&&C<=RA){for(;B<C;){var Q=B+C>>>1,I=o[Q];I!==null&&!kt(I)&&(d?I<=l:I<l)?B=Q+1:C=Q}return C}return Td(o,l,bt,d)}function Td(o,l,d,B){var C=0,Q=o==null?0:o.length;if(Q===0)return 0;l=d(l);for(var I=l!==l,O=l===null,k=kt(l),G=l===e;C<Q;){var W=Gl((C+Q)/2),J=d(o[W]),q=J!==e,lA=J===null,hA=J===J,UA=kt(J);if(I)var pA=B||hA;else G?pA=hA&&(B||q):O?pA=hA&&q&&(B||!lA):k?pA=hA&&q&&!lA&&(B||!UA):lA||UA?pA=!1:pA=B?J<=l:J<l;pA?C=W+1:Q=W}return et(Q,PA)}function z0(o,l){for(var d=-1,B=o.length,C=0,Q=[];++d<B;){var I=o[d],O=l?l(I):I;if(!d||!pn(O,k)){var k=O;Q[C++]=I===0?0:I}}return Q}function q0(o){return typeof o=="number"?o:kt(o)?XA:+o}function Ht(o){if(typeof o=="string")return o;if(yA(o))return fe(o,Ht)+"";if(kt(o))return S0?S0.call(o):"";var l=o+"";return l=="0"&&1/o==-kA?"-0":l}function Mr(o,l,d){var B=-1,C=_l,Q=o.length,I=!0,O=[],k=O;if(d)I=!1,C=id;else if(Q>=r){var G=l?null:BK(o);if(G)return Ol(G);I=!1,C=yo,k=new mi}else k=l?[]:O;A:for(;++B<Q;){var W=o[B],J=l?l(W):W;if(W=d||W!==0?W:0,I&&J===J){for(var q=k.length;q--;)if(k[q]===J)continue A;l&&k.push(J),O.push(W)}else C(k,J,d)||(k!==O&&k.push(J),O.push(W))}return O}function _d(o,l){return l=Rr(l,o),o=by(o,l),o==null||delete o[On(An(l))]}function Z0(o,l,d,B){return _o(o,l,d(Ci(o,l)),B)}function jl(o,l,d,B){for(var C=o.length,Q=B?C:-1;(B?Q--:++Q<C)&&l(o[Q],Q,o););return d?jt(o,B?0:Q,B?Q+1:C):jt(o,B?Q+1:0,B?C:Q)}function j0(o,l){var d=o;return d instanceof LA&&(d=d.value()),sd(l,function(B,C){return C.func.apply(C.thisArg,Hr([B],C.args))},d)}function xd(o,l,d){var B=o.length;if(B<2)return B?Mr(o[0]):[];for(var C=-1,Q=M(B);++C<B;)for(var I=o[C],O=-1;++O<B;)O!=C&&(Q[C]=Io(Q[C]||I,o[O],l,d));return Mr($e(Q,1),l,d)}function Ay(o,l,d){for(var B=-1,C=o.length,Q=l.length,I={};++B<C;){var O=B<Q?l[B]:e;d(I,o[B],O)}return I}function Od(o){return ye(o)?o:[]}function Ld(o){return typeof o=="function"?o:bt}function Rr(o,l){return yA(o)?o:Vd(o,l)?[o]:Sy(YA(o))}var oK=vA;function Kr(o,l,d){var B=o.length;return d=d===e?B:d,!l&&d>=B?o:jt(o,l,d)}var ey=XR||function(o){return We.clearTimeout(o)};function ty(o,l){if(l)return o.slice();var d=o.length,B=Q0?Q0(d):new o.constructor(d);return o.copy(B),B}function Hd(o){var l=new o.constructor(o.byteLength);return new Ml(l).set(new Ml(o)),l}function aK(o,l){var d=l?Hd(o.buffer):o.buffer;return new o.constructor(d,o.byteOffset,o.byteLength)}function lK(o){var l=new o.constructor(o.source,MC.exec(o));return l.lastIndex=o.lastIndex,l}function cK(o){return Uo?ie(Uo.call(o)):{}}function ny(o,l){var d=l?Hd(o.buffer):o.buffer;return new o.constructor(d,o.byteOffset,o.length)}function ry(o,l){if(o!==l){var d=o!==e,B=o===null,C=o===o,Q=kt(o),I=l!==e,O=l===null,k=l===l,G=kt(l);if(!O&&!G&&!Q&&o>l||Q&&I&&k&&!O&&!G||B&&I&&k||!d&&k||!C)return 1;if(!B&&!Q&&!G&&o<l||G&&d&&C&&!B&&!Q||O&&d&&C||!I&&C||!k)return-1}return 0}function uK(o,l,d){for(var B=-1,C=o.criteria,Q=l.criteria,I=C.length,O=d.length;++B<I;){var k=ry(C[B],Q[B]);if(k){if(B>=O)return k;var G=d[B];return k*(G=="desc"?-1:1)}}return o.index-l.index}function iy(o,l,d,B){for(var C=-1,Q=o.length,I=d.length,O=-1,k=l.length,G=_e(Q-I,0),W=M(k+G),J=!B;++O<k;)W[O]=l[O];for(;++C<I;)(J||C<Q)&&(W[d[C]]=o[C]);for(;G--;)W[O++]=o[C++];return W}function sy(o,l,d,B){for(var C=-1,Q=o.length,I=-1,O=d.length,k=-1,G=l.length,W=_e(Q-O,0),J=M(W+G),q=!B;++C<W;)J[C]=o[C];for(var lA=C;++k<G;)J[lA+k]=l[k];for(;++I<O;)(q||C<Q)&&(J[lA+d[I]]=o[C++]);return J}function Et(o,l){var d=-1,B=o.length;for(l||(l=M(B));++d<B;)l[d]=o[d];return l}function xn(o,l,d,B){var C=!d;d||(d={});for(var Q=-1,I=l.length;++Q<I;){var O=l[Q],k=B?B(d[O],o[O],O,d,o):e;k===e&&(k=o[O]),C?jn(d,O,k):vo(d,O,k)}return d}function fK(o,l){return xn(o,Pd(o),l)}function dK(o,l){return xn(o,wy(o),l)}function Ac(o,l){return function(d,B){var C=yA(d)?mR:H4,Q=l?l():{};return C(d,o,dA(B,2),Q)}}function ms(o){return vA(function(l,d){var B=-1,C=d.length,Q=C>1?d[C-1]:e,I=C>2?d[2]:e;for(Q=o.length>3&&typeof Q=="function"?(C--,Q):e,I&&dt(d[0],d[1],I)&&(Q=C<3?e:Q,C=1),l=ie(l);++B<C;){var O=d[B];O&&o(l,O,B,Q)}return l})}function oy(o,l){return function(d,B){if(d==null)return d;if(!Qt(d))return o(d,B);for(var C=d.length,Q=l?C:-1,I=ie(d);(l?Q--:++Q<C)&&B(I[Q],Q,I)!==!1;);return d}}function ay(o){return function(l,d,B){for(var C=-1,Q=ie(l),I=B(l),O=I.length;O--;){var k=I[o?O:++C];if(d(Q[k],k,Q)===!1)break}return l}}function hK(o,l,d){var B=l&b,C=xo(o);function Q(){var I=this&&this!==We&&this instanceof Q?C:o;return I.apply(B?d:this,arguments)}return Q}function ly(o){return function(l){l=YA(l);var d=us(l)?dn(l):e,B=d?d[0]:l.charAt(0),C=d?Kr(d,1).join(""):l.slice(1);return B[o]()+C}}function ws(o){return function(l){return sd(oE(sE(l).replace(rR,"")),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=Bs(o.prototype),B=o.apply(d,l);return pe(B)?B:d}}function pK(o,l,d){var B=xo(o);function C(){for(var Q=arguments.length,I=M(Q),O=Q,k=Cs(C);O--;)I[O]=arguments[O];var G=Q<3&&I[0]!==k&&I[Q-1]!==k?[]:kr(I,k);if(Q-=G.length,Q<d)return hy(o,l,ec,C.placeholder,e,I,G,e,e,d-Q);var W=this&&this!==We&&this instanceof C?B:o;return Ot(W,this,I)}return C}function cy(o){return function(l,d,B){var C=ie(l);if(!Qt(l)){var Q=dA(d,3);l=Ne(l),d=function(O){return Q(C[O],O,C)}}var I=o(l,d,B);return I>-1?C[Q?l[I]:I]:e}}function uy(o){return er(function(l){var d=l.length,B=d,C=qt.prototype.thru;for(o&&l.reverse();B--;){var Q=l[B];if(typeof Q!="function")throw new zt(s);if(C&&!I&&ic(Q)=="wrapper")var I=new qt([],!0)}for(B=I?B:d;++B<d;){Q=l[B];var O=ic(Q),k=O=="wrapper"?Rd(Q):e;k&&Gd(k[0])&&k[1]==(D|S|L|P)&&!k[4].length&&k[9]==1?I=I[ic(k[0])].apply(I,k[3]):I=Q.length==1&&Gd(Q)?I[O]():I.thru(Q)}return function(){var G=arguments,W=G[0];if(I&&G.length==1&&yA(W))return I.plant(W).value();for(var J=0,q=d?l[J].apply(this,G):W;++J<d;)q=l[J].call(this,q);return q}})}function ec(o,l,d,B,C,Q,I,O,k,G){var W=l&D,J=l&b,q=l&v,lA=l&(S|E),hA=l&N,UA=q?e:xo(o);function pA(){for(var TA=arguments.length,MA=M(TA),Dt=TA;Dt--;)MA[Dt]=arguments[Dt];if(lA)var ht=Cs(pA),Nt=vR(MA,ht);if(B&&(MA=iy(MA,B,C,lA)),Q&&(MA=sy(MA,Q,I,lA)),TA-=Nt,lA&&TA<G){var Ee=kr(MA,ht);return hy(o,l,ec,pA.placeholder,d,MA,Ee,O,k,G-TA)}var gn=J?d:this,ir=q?gn[o]:o;return TA=MA.length,O?MA=HK(MA,O):hA&&TA>1&&MA.reverse(),W&&k<TA&&(MA.length=k),this&&this!==We&&this instanceof pA&&(ir=UA||xo(ir)),ir.apply(gn,MA)}return pA}function fy(o,l){return function(d,B){return V4(d,o,l(B),{})}}function tc(o,l){return function(d,B){var C;if(d===e&&B===e)return l;if(d!==e&&(C=d),B!==e){if(C===e)return B;typeof d=="string"||typeof B=="string"?(d=Ht(d),B=Ht(B)):(d=q0(d),B=q0(B)),C=o(d,B)}return C}}function kd(o){return er(function(l){return l=fe(l,Lt(dA())),vA(function(d){var B=this;return o(l,function(C){return Ot(C,B,d)})})})}function nc(o,l){l=l===e?" ":Ht(l);var d=l.length;if(d<2)return d?Sd(l,o):l;var B=Sd(l,Vl(o/fs(l)));return us(l)?Kr(dn(B),0,o).join(""):B.slice(0,o)}function gK(o,l,d,B){var C=l&b,Q=xo(o);function I(){for(var O=-1,k=arguments.length,G=-1,W=B.length,J=M(W+k),q=this&&this!==We&&this instanceof I?Q:o;++G<W;)J[G]=B[G];for(;k--;)J[G++]=arguments[++O];return Ot(q,C?d:this,J)}return I}function dy(o){return function(l,d,B){return B&&typeof B!="number"&&dt(l,d,B)&&(d=B=e),l=rr(l),d===e?(d=l,l=0):d=rr(d),B=B===e?l<d?1:-1:rr(B),eK(l,d,B,o)}}function rc(o){return function(l,d){return typeof l=="string"&&typeof d=="string"||(l=en(l),d=en(d)),o(l,d)}}function hy(o,l,d,B,C,Q,I,O,k,G){var W=l&S,J=W?I:e,q=W?e:I,lA=W?Q:e,hA=W?e:Q;l|=W?L:U,l&=~(W?U:L),l&_||(l&=~(b|v));var UA=[o,l,C,lA,J,hA,q,O,k,G],pA=d.apply(e,UA);return Gd(o)&&Uy(pA,UA),pA.placeholder=B,vy(pA,o,l)}function Dd(o){var l=Te[o];return function(d,B){if(d=en(d),B=B==null?0:et(EA(B),292),B&&v0(d)){var C=(YA(d)+"e").split("e"),Q=l(C[0]+"e"+(+C[1]+B));return C=(YA(Q)+"e").split("e"),+(C[0]+"e"+(+C[1]-B))}return l(d)}}var BK=ps&&1/Ol(new ps([,-0]))[1]==kA?function(o){return new ps(o)}:ih;function py(o){return function(l){var d=tt(l);return d==z?dd(l):d==x?LR(l):UR(l,o(l))}}function Ar(o,l,d,B,C,Q,I,O){var k=l&v;if(!k&&typeof o!="function")throw new zt(s);var G=B?B.length:0;if(G||(l&=~(L|U),B=C=e),I=I===e?I:_e(EA(I),0),O=O===e?O:EA(O),G-=C?C.length:0,l&U){var W=B,J=C;B=C=e}var q=k?e:Rd(o),lA=[o,l,d,B,C,W,J,Q,I,O];if(q&&xK(lA,q),o=lA[0],l=lA[1],d=lA[2],B=lA[3],C=lA[4],O=lA[9]=lA[9]===e?k?0:o.length:_e(lA[9]-G,0),!O&&l&(S|E)&&(l&=~(S|E)),!l||l==b)var hA=hK(o,l,d);else l==S||l==E?hA=pK(o,l,O):(l==L||l==(b|L))&&!C.length?hA=gK(o,l,d,B):hA=ec.apply(e,lA);var UA=q?Y0:Uy;return vy(UA(hA,lA),o,l)}function gy(o,l,d,B){return o===e||pn(o,hs[d])&&!jA.call(B,d)?l:o}function By(o,l,d,B,C,Q){return pe(o)&&pe(l)&&(Q.set(l,o),ql(o,l,e,By,Q),Q.delete(l)),o}function mK(o){return Ho(o)?e:o}function my(o,l,d,B,C,Q){var I=d&w,O=o.length,k=l.length;if(O!=k&&!(I&&k>O))return!1;var G=Q.get(o),W=Q.get(l);if(G&&W)return G==l&&W==o;var J=-1,q=!0,lA=d&F?new mi:e;for(Q.set(o,l),Q.set(l,o);++J<O;){var hA=o[J],UA=l[J];if(B)var pA=I?B(UA,hA,J,l,o,Q):B(hA,UA,J,o,l,Q);if(pA!==e){if(pA)continue;q=!1;break}if(lA){if(!od(l,function(TA,MA){if(!yo(lA,MA)&&(hA===TA||C(hA,TA,d,B,Q)))return lA.push(MA)})){q=!1;break}}else if(!(hA===UA||C(hA,UA,d,B,Q))){q=!1;break}}return Q.delete(o),Q.delete(l),q}function wK(o,l,d,B,C,Q,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||!Q(new Ml(o),new Ml(l)));case ct:case At:case bA:return pn(+o,+l);case _t:return o.name==l.name&&o.message==l.message;case T:case $:return o==l+"";case z:var O=dd;case x:var k=B&w;if(O||(O=Ol),o.size!=l.size&&!k)return!1;var G=I.get(o);if(G)return G==l;B|=F,I.set(o,l);var W=my(O(o),O(l),B,C,Q,I);return I.delete(o),W;case oA:if(Uo)return Uo.call(o)==Uo.call(l)}return!1}function CK(o,l,d,B,C,Q){var I=d&w,O=Nd(o),k=O.length,G=Nd(l),W=G.length;if(k!=W&&!I)return!1;for(var J=k;J--;){var q=O[J];if(!(I?q in l:jA.call(l,q)))return!1}var lA=Q.get(o),hA=Q.get(l);if(lA&&hA)return lA==l&&hA==o;var UA=!0;Q.set(o,l),Q.set(l,o);for(var pA=I;++J<k;){q=O[J];var TA=o[q],MA=l[q];if(B)var Dt=I?B(MA,TA,q,l,o,Q):B(TA,MA,q,o,l,Q);if(!(Dt===e?TA===MA||C(TA,MA,d,B,Q):Dt)){UA=!1;break}pA||(pA=q=="constructor")}if(UA&&!pA){var ht=o.constructor,Nt=l.constructor;ht!=Nt&&"constructor"in o&&"constructor"in l&&!(typeof ht=="function"&&ht instanceof ht&&typeof Nt=="function"&&Nt instanceof Nt)&&(UA=!1)}return Q.delete(o),Q.delete(l),UA}function er(o){return $d(Fy(o,e,Oy),o+"")}function Nd(o){return N0(o,Ne,Pd)}function Md(o){return N0(o,Ft,wy)}var Rd=Wl?function(o){return Wl.get(o)}:ih;function ic(o){for(var l=o.name+"",d=gs[l],B=jA.call(gs,l)?d.length:0;B--;){var C=d[B],Q=C.func;if(Q==null||Q==o)return C.name}return l}function Cs(o){var l=jA.call(y,"placeholder")?y:o;return l.placeholder}function dA(){var o=y.iteratee||nh;return o=o===nh?K0:o,arguments.length?o(arguments[0],arguments[1]):o}function sc(o,l){var d=o.__data__;return IK(l)?d[typeof l=="string"?"string":"hash"]:d.map}function Kd(o){for(var l=Ne(o),d=l.length;d--;){var B=l[d],C=o[B];l[d]=[B,C,Ey(C)]}return l}function yi(o,l){var d=_R(o,l);return R0(d)?d:e}function yK(o){var l=jA.call(o,gi),d=o[gi];try{o[gi]=e;var B=!0}catch{}var C=Dl.call(o);return B&&(l?o[gi]=d:delete o[gi]),C}var Pd=pd?function(o){return o==null?[]:(o=ie(o),Lr(pd(o),function(l){return b0.call(o,l)}))}:sh,wy=pd?function(o){for(var l=[];o;)Hr(l,Pd(o)),o=Rl(o);return l}:sh,tt=ft;(gd&&tt(new gd(new ArrayBuffer(1)))!=X||Qo&&tt(new Qo)!=z||Bd&&tt(Bd.resolve())!=fn||ps&&tt(new ps)!=x||Fo&&tt(new Fo)!=DA)&&(tt=function(o){var l=ft(o),d=l==ve?o.constructor:e,B=d?Ei(d):"";if(B)switch(B){case n4:return X;case r4:return z;case i4:return fn;case s4:return x;case o4:return DA}return l});function EK(o,l,d){for(var B=-1,C=d.length;++B<C;){var Q=d[B],I=Q.size;switch(Q.type){case"drop":o+=I;break;case"dropRight":l-=I;break;case"take":l=et(l,o+I);break;case"takeRight":o=_e(o,l-I);break}}return{start:o,end:l}}function QK(o){var l=o.match(SM);return l?l[1].split(TM):[]}function Cy(o,l,d){l=Rr(l,o);for(var B=-1,C=l.length,Q=!1;++B<C;){var I=On(l[B]);if(!(Q=o!=null&&d(o,I)))break;o=o[I]}return Q||++B!=C?Q:(C=o==null?0:o.length,!!C&&dc(C)&&tr(I,C)&&(yA(o)||Qi(o)))}function FK(o){var l=o.length,d=new o.constructor(l);return l&&typeof o[0]=="string"&&jA.call(o,"index")&&(d.index=o.index,d.input=o.input),d}function yy(o){return typeof o.constructor=="function"&&!Oo(o)?Bs(Rl(o)):{}}function bK(o,l,d){var B=o.constructor;switch(l){case R:return Hd(o);case ct:case At:return new B(+o);case X:return aK(o,d);case SA:case re:case Ct:case Tn:case Jt:case K:case iA:case uA:case GA:return ny(o,d);case z:return new B;case bA:case $:return new B(o);case T:return lK(o);case x:return new B;case oA:return cK(o)}}function UK(o,l){var d=l.length;if(!d)return o;var B=d-1;return l[B]=(d>1?"& ":"")+l[B],l=l.join(d>2?", ":" "),o.replace(IM,`{
143
+ */Oa.exports,function(t,A){(function(){var e,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,m=4,w=1,F=2,b=1,v=2,_=4,S=8,E=16,L=32,U=64,D=128,P=256,N=512,sA=30,mA="...",nA=800,cA=16,HA=1,oe=2,KA=3,kA=1/0,rA=9007199254740991,BA=17976931348623157e292,XA=0/0,OA=4294967295,PA=OA-1,RA=OA>>>1,zA=[["ary",D],["bind",b],["bindKey",v],["curry",S],["curryRight",E],["flip",N],["partial",L],["partialRight",U],["rearg",P]],qA="[object Arguments]",ZA="[object Array]",he="[object AsyncFunction]",ct="[object Boolean]",At="[object Date]",ut="[object DOMException]",_t="[object Error]",xt="[object Function]",un="[object GeneratorFunction]",z="[object Map]",bA="[object Number]",Sn="[object Null]",ve="[object Object]",fn="[object Promise]",xr="[object Proxy]",T="[object RegExp]",x="[object Set]",$="[object String]",oA="[object Symbol]",te="[object Undefined]",DA="[object WeakMap]",VA="[object WeakSet]",R="[object ArrayBuffer]",X="[object DataView]",SA="[object Float32Array]",re="[object Float64Array]",Ct="[object Int8Array]",Tn="[object Int16Array]",Jt="[object Int32Array]",K="[object Uint8Array]",iA="[object Uint8ClampedArray]",uA="[object Uint16Array]",GA="[object Uint32Array]",NA=/\b__p \+= '';/g,Ge=/\b(__p \+=) '' \+/g,yt=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Yn=/&(?:amp|lt|gt|quot|#39);/g,mo=/[&<>"']/g,zn=RegExp(Yn.source),wo=RegExp(mo.source),ss=/<%-([\s\S]+?)%>/g,Or=/<%([\s\S]+?)%>/g,vl=/<%=([\s\S]+?)%>/g,Co=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,as=/^\w*$/,FM=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,zf=/[\\^$.*+?()[\]{}|]/g,bM=RegExp(zf.source),qf=/^\s+/,UM=/\s/,vM=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,IM=/\{\n\/\* \[wrapped with (.+)\] \*/,SM=/,? & /,TM=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,_M=/[()=,{}\[\]\/\s]/,xM=/\\(\\)?/g,OM=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,MC=/\w*$/,LM=/^[-+]0x[0-9a-f]+$/i,HM=/^0b[01]+$/i,kM=/^\[object .+?Constructor\]$/,DM=/^0o[0-7]+$/i,NM=/^(?:0|[1-9]\d*)$/,MM=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Il=/($^)/,RM=/['\n\r\u2028\u2029\\]/g,Sl="\\ud800-\\udfff",KM="\\u0300-\\u036f",PM="\\ufe20-\\ufe2f",VM="\\u20d0-\\u20ff",RC=KM+PM+VM,KC="\\u2700-\\u27bf",PC="a-z\\xdf-\\xf6\\xf8-\\xff",GM="\\xac\\xb1\\xd7\\xf7",WM="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",$M="\\u2000-\\u206f",JM=" \\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",VC="A-Z\\xc0-\\xd6\\xd8-\\xde",GC="\\ufe0e\\ufe0f",WC=GM+WM+$M+JM,Zf="['’]",XM="["+Sl+"]",$C="["+WC+"]",Tl="["+RC+"]",JC="\\d+",YM="["+KC+"]",XC="["+PC+"]",YC="[^"+Sl+WC+JC+KC+PC+VC+"]",jf="\\ud83c[\\udffb-\\udfff]",zM="(?:"+Tl+"|"+jf+")",zC="[^"+Sl+"]",Ad="(?:\\ud83c[\\udde6-\\uddff]){2}",ed="[\\ud800-\\udbff][\\udc00-\\udfff]",ls="["+VC+"]",qC="\\u200d",ZC="(?:"+XC+"|"+YC+")",qM="(?:"+ls+"|"+YC+")",jC="(?:"+Zf+"(?:d|ll|m|re|s|t|ve))?",A0="(?:"+Zf+"(?:D|LL|M|RE|S|T|VE))?",e0=zM+"?",t0="["+GC+"]?",ZM="(?:"+qC+"(?:"+[zC,Ad,ed].join("|")+")"+t0+e0+")*",jM="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",AR="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",n0=t0+e0+ZM,eR="(?:"+[YM,Ad,ed].join("|")+")"+n0,tR="(?:"+[zC+Tl+"?",Tl,Ad,ed,XM].join("|")+")",nR=RegExp(Zf,"g"),rR=RegExp(Tl,"g"),td=RegExp(jf+"(?="+jf+")|"+tR+n0,"g"),iR=RegExp([ls+"?"+XC+"+"+jC+"(?="+[$C,ls,"$"].join("|")+")",qM+"+"+A0+"(?="+[$C,ls+ZC,"$"].join("|")+")",ls+"?"+ZC+"+"+jC,ls+"+"+A0,AR,jM,JC,eR].join("|"),"g"),sR=RegExp("["+qC+Sl+RC+GC+"]"),oR=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,aR=["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"],lR=-1,ce={};ce[SA]=ce[re]=ce[Ct]=ce[Tn]=ce[Jt]=ce[K]=ce[iA]=ce[uA]=ce[GA]=!0,ce[qA]=ce[ZA]=ce[R]=ce[ct]=ce[X]=ce[At]=ce[_t]=ce[xt]=ce[z]=ce[bA]=ce[ve]=ce[T]=ce[x]=ce[$]=ce[DA]=!1;var ae={};ae[qA]=ae[ZA]=ae[R]=ae[X]=ae[ct]=ae[At]=ae[SA]=ae[re]=ae[Ct]=ae[Tn]=ae[Jt]=ae[z]=ae[bA]=ae[ve]=ae[T]=ae[x]=ae[$]=ae[oA]=ae[K]=ae[iA]=ae[uA]=ae[GA]=!0,ae[_t]=ae[xt]=ae[DA]=!1;var cR={À:"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"},uR={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},fR={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},dR={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},hR=parseFloat,pR=parseInt,r0=typeof Ys=="object"&&Ys&&Ys.Object===Object&&Ys,gR=typeof self=="object"&&self&&self.Object===Object&&self,We=r0||gR||Function("return this")(),nd=A&&!A.nodeType&&A,pi=nd&&!0&&t&&!t.nodeType&&t,i0=pi&&pi.exports===nd,rd=i0&&r0.process,Xt=function(){try{var H=pi&&pi.require&&pi.require("util").types;return H||rd&&rd.binding&&rd.binding("util")}catch{}}(),s0=Xt&&Xt.isArrayBuffer,o0=Xt&&Xt.isDate,a0=Xt&&Xt.isMap,l0=Xt&&Xt.isRegExp,c0=Xt&&Xt.isSet,u0=Xt&&Xt.isTypedArray;function Ot(H,V,M){switch(M.length){case 0:return H.call(V);case 1:return H.call(V,M[0]);case 2:return H.call(V,M[0],M[1]);case 3:return H.call(V,M[0],M[1],M[2])}return H.apply(V,M)}function BR(H,V,M,eA){for(var wA=-1,$A=H==null?0:H.length;++wA<$A;){var Te=H[wA];V(eA,Te,M(Te),H)}return eA}function Yt(H,V){for(var M=-1,eA=H==null?0:H.length;++M<eA&&V(H[M],M,H)!==!1;);return H}function mR(H,V){for(var M=H==null?0:H.length;M--&&V(H[M],M,H)!==!1;);return H}function f0(H,V){for(var M=-1,eA=H==null?0:H.length;++M<eA;)if(!V(H[M],M,H))return!1;return!0}function Lr(H,V){for(var M=-1,eA=H==null?0:H.length,wA=0,$A=[];++M<eA;){var Te=H[M];V(Te,M,H)&&($A[wA++]=Te)}return $A}function _l(H,V){var M=H==null?0:H.length;return!!M&&cs(H,V,0)>-1}function id(H,V,M){for(var eA=-1,wA=H==null?0:H.length;++eA<wA;)if(M(V,H[eA]))return!0;return!1}function fe(H,V){for(var M=-1,eA=H==null?0:H.length,wA=Array(eA);++M<eA;)wA[M]=V(H[M],M,H);return wA}function Hr(H,V){for(var M=-1,eA=V.length,wA=H.length;++M<eA;)H[wA+M]=V[M];return H}function sd(H,V,M,eA){var wA=-1,$A=H==null?0:H.length;for(eA&&$A&&(M=H[++wA]);++wA<$A;)M=V(M,H[wA],wA,H);return M}function wR(H,V,M,eA){var wA=H==null?0:H.length;for(eA&&wA&&(M=H[--wA]);wA--;)M=V(M,H[wA],wA,H);return M}function od(H,V){for(var M=-1,eA=H==null?0:H.length;++M<eA;)if(V(H[M],M,H))return!0;return!1}var CR=ad("length");function yR(H){return H.split("")}function ER(H){return H.match(TM)||[]}function d0(H,V,M){var eA;return M(H,function(wA,$A,Te){if(V(wA,$A,Te))return eA=$A,!1}),eA}function xl(H,V,M,eA){for(var wA=H.length,$A=M+(eA?1:-1);eA?$A--:++$A<wA;)if(V(H[$A],$A,H))return $A;return-1}function cs(H,V,M){return V===V?LR(H,V,M):xl(H,h0,M)}function QR(H,V,M,eA){for(var wA=M-1,$A=H.length;++wA<$A;)if(eA(H[wA],V))return wA;return-1}function h0(H){return H!==H}function p0(H,V){var M=H==null?0:H.length;return M?cd(H,V)/M:XA}function ad(H){return function(V){return V==null?e:V[H]}}function ld(H){return function(V){return H==null?e:H[V]}}function g0(H,V,M,eA,wA){return wA(H,function($A,Te,ie){M=eA?(eA=!1,$A):V(M,$A,Te,ie)}),M}function FR(H,V){var M=H.length;for(H.sort(V);M--;)H[M]=H[M].value;return H}function cd(H,V){for(var M,eA=-1,wA=H.length;++eA<wA;){var $A=V(H[eA]);$A!==e&&(M=M===e?$A:M+$A)}return M}function ud(H,V){for(var M=-1,eA=Array(H);++M<H;)eA[M]=V(M);return eA}function bR(H,V){return fe(V,function(M){return[M,H[M]]})}function B0(H){return H&&H.slice(0,y0(H)+1).replace(qf,"")}function Lt(H){return function(V){return H(V)}}function fd(H,V){return fe(V,function(M){return H[M]})}function yo(H,V){return H.has(V)}function m0(H,V){for(var M=-1,eA=H.length;++M<eA&&cs(V,H[M],0)>-1;);return M}function w0(H,V){for(var M=H.length;M--&&cs(V,H[M],0)>-1;);return M}function UR(H,V){for(var M=H.length,eA=0;M--;)H[M]===V&&++eA;return eA}var vR=ld(cR),IR=ld(uR);function SR(H){return"\\"+dR[H]}function TR(H,V){return H==null?e:H[V]}function us(H){return sR.test(H)}function _R(H){return oR.test(H)}function xR(H){for(var V,M=[];!(V=H.next()).done;)M.push(V.value);return M}function dd(H){var V=-1,M=Array(H.size);return H.forEach(function(eA,wA){M[++V]=[wA,eA]}),M}function C0(H,V){return function(M){return H(V(M))}}function kr(H,V){for(var M=-1,eA=H.length,wA=0,$A=[];++M<eA;){var Te=H[M];(Te===V||Te===f)&&(H[M]=f,$A[wA++]=M)}return $A}function Ol(H){var V=-1,M=Array(H.size);return H.forEach(function(eA){M[++V]=eA}),M}function OR(H){var V=-1,M=Array(H.size);return H.forEach(function(eA){M[++V]=[eA,eA]}),M}function LR(H,V,M){for(var eA=M-1,wA=H.length;++eA<wA;)if(H[eA]===V)return eA;return-1}function HR(H,V,M){for(var eA=M+1;eA--;)if(H[eA]===V)return eA;return eA}function fs(H){return us(H)?DR(H):CR(H)}function dn(H){return us(H)?NR(H):yR(H)}function y0(H){for(var V=H.length;V--&&UM.test(H.charAt(V)););return V}var kR=ld(fR);function DR(H){for(var V=td.lastIndex=0;td.test(H);)++V;return V}function NR(H){return H.match(td)||[]}function MR(H){return H.match(iR)||[]}var RR=function H(V){V=V==null?We:ds.defaults(We.Object(),V,ds.pick(We,aR));var M=V.Array,eA=V.Date,wA=V.Error,$A=V.Function,Te=V.Math,ie=V.Object,hd=V.RegExp,KR=V.String,zt=V.TypeError,Ll=M.prototype,PR=$A.prototype,hs=ie.prototype,Hl=V["__core-js_shared__"],kl=PR.toString,jA=hs.hasOwnProperty,VR=0,E0=function(){var o=/[^.]+$/.exec(Hl&&Hl.keys&&Hl.keys.IE_PROTO||"");return o?"Symbol(src)_1."+o:""}(),Dl=hs.toString,GR=kl.call(ie),WR=We._,$R=hd("^"+kl.call(jA).replace(zf,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Nl=i0?V.Buffer:e,Dr=V.Symbol,Ml=V.Uint8Array,Q0=Nl?Nl.allocUnsafe:e,Rl=C0(ie.getPrototypeOf,ie),F0=ie.create,b0=hs.propertyIsEnumerable,Kl=Ll.splice,U0=Dr?Dr.isConcatSpreadable:e,Eo=Dr?Dr.iterator:e,gi=Dr?Dr.toStringTag:e,Pl=function(){try{var o=yi(ie,"defineProperty");return o({},"",{}),o}catch{}}(),JR=V.clearTimeout!==We.clearTimeout&&V.clearTimeout,XR=eA&&eA.now!==We.Date.now&&eA.now,YR=V.setTimeout!==We.setTimeout&&V.setTimeout,Vl=Te.ceil,Gl=Te.floor,pd=ie.getOwnPropertySymbols,zR=Nl?Nl.isBuffer:e,v0=V.isFinite,qR=Ll.join,ZR=C0(ie.keys,ie),_e=Te.max,et=Te.min,jR=eA.now,A4=V.parseInt,I0=Te.random,e4=Ll.reverse,gd=yi(V,"DataView"),Qo=yi(V,"Map"),Bd=yi(V,"Promise"),ps=yi(V,"Set"),Fo=yi(V,"WeakMap"),bo=yi(ie,"create"),Wl=Fo&&new Fo,gs={},t4=Ei(gd),n4=Ei(Qo),r4=Ei(Bd),i4=Ei(ps),s4=Ei(Fo),$l=Dr?Dr.prototype:e,Uo=$l?$l.valueOf:e,S0=$l?$l.toString:e;function y(o){if(Be(o)&&!yA(o)&&!(o instanceof LA)){if(o instanceof qt)return o;if(jA.call(o,"__wrapped__"))return Ty(o)}return new qt(o)}var Bs=function(){function o(){}return function(l){if(!pe(l))return{};if(F0)return F0(l);o.prototype=l;var d=new o;return o.prototype=e,d}}();function Jl(){}function qt(o,l){this.__wrapped__=o,this.__actions__=[],this.__chain__=!!l,this.__index__=0,this.__values__=e}y.templateSettings={escape:ss,evaluate:Or,interpolate:vl,variable:"",imports:{_:y}},y.prototype=Jl.prototype,y.prototype.constructor=y,qt.prototype=Bs(Jl.prototype),qt.prototype.constructor=qt;function LA(o){this.__wrapped__=o,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=OA,this.__views__=[]}function o4(){var o=new LA(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 a4(){if(this.__filtered__){var o=new LA(this);o.__dir__=-1,o.__filtered__=!0}else o=this.clone(),o.__dir__*=-1;return o}function l4(){var o=this.__wrapped__.value(),l=this.__dir__,d=yA(o),B=l<0,C=d?o.length:0,Q=yK(0,C,this.__views__),I=Q.start,O=Q.end,k=O-I,G=B?O:I-1,W=this.__iteratees__,J=W.length,q=0,lA=et(k,this.__takeCount__);if(!d||!B&&C==k&&lA==k)return j0(o,this.__actions__);var hA=[];A:for(;k--&&q<lA;){G+=l;for(var UA=-1,pA=o[G];++UA<J;){var TA=W[UA],MA=TA.iteratee,Dt=TA.type,ht=MA(pA);if(Dt==oe)pA=ht;else if(!ht){if(Dt==HA)continue A;break A}}hA[q++]=pA}return hA}LA.prototype=Bs(Jl.prototype),LA.prototype.constructor=LA;function Bi(o){var l=-1,d=o==null?0:o.length;for(this.clear();++l<d;){var B=o[l];this.set(B[0],B[1])}}function c4(){this.__data__=bo?bo(null):{},this.size=0}function u4(o){var l=this.has(o)&&delete this.__data__[o];return this.size-=l?1:0,l}function f4(o){var l=this.__data__;if(bo){var d=l[o];return d===c?e:d}return jA.call(l,o)?l[o]:e}function d4(o){var l=this.__data__;return bo?l[o]!==e:jA.call(l,o)}function h4(o,l){var d=this.__data__;return this.size+=this.has(o)?0:1,d[o]=bo&&l===e?c:l,this}Bi.prototype.clear=c4,Bi.prototype.delete=u4,Bi.prototype.get=f4,Bi.prototype.has=d4,Bi.prototype.set=h4;function qn(o){var l=-1,d=o==null?0:o.length;for(this.clear();++l<d;){var B=o[l];this.set(B[0],B[1])}}function p4(){this.__data__=[],this.size=0}function g4(o){var l=this.__data__,d=Xl(l,o);if(d<0)return!1;var B=l.length-1;return d==B?l.pop():Kl.call(l,d,1),--this.size,!0}function B4(o){var l=this.__data__,d=Xl(l,o);return d<0?e:l[d][1]}function m4(o){return Xl(this.__data__,o)>-1}function w4(o,l){var d=this.__data__,B=Xl(d,o);return B<0?(++this.size,d.push([o,l])):d[B][1]=l,this}qn.prototype.clear=p4,qn.prototype.delete=g4,qn.prototype.get=B4,qn.prototype.has=m4,qn.prototype.set=w4;function Zn(o){var l=-1,d=o==null?0:o.length;for(this.clear();++l<d;){var B=o[l];this.set(B[0],B[1])}}function C4(){this.size=0,this.__data__={hash:new Bi,map:new(Qo||qn),string:new Bi}}function y4(o){var l=sc(this,o).delete(o);return this.size-=l?1:0,l}function E4(o){return sc(this,o).get(o)}function Q4(o){return sc(this,o).has(o)}function F4(o,l){var d=sc(this,o),B=d.size;return d.set(o,l),this.size+=d.size==B?0:1,this}Zn.prototype.clear=C4,Zn.prototype.delete=y4,Zn.prototype.get=E4,Zn.prototype.has=Q4,Zn.prototype.set=F4;function mi(o){var l=-1,d=o==null?0:o.length;for(this.__data__=new Zn;++l<d;)this.add(o[l])}function b4(o){return this.__data__.set(o,c),this}function U4(o){return this.__data__.has(o)}mi.prototype.add=mi.prototype.push=b4,mi.prototype.has=U4;function hn(o){var l=this.__data__=new qn(o);this.size=l.size}function v4(){this.__data__=new qn,this.size=0}function I4(o){var l=this.__data__,d=l.delete(o);return this.size=l.size,d}function S4(o){return this.__data__.get(o)}function T4(o){return this.__data__.has(o)}function _4(o,l){var d=this.__data__;if(d instanceof qn){var B=d.__data__;if(!Qo||B.length<r-1)return B.push([o,l]),this.size=++d.size,this;d=this.__data__=new Zn(B)}return d.set(o,l),this.size=d.size,this}hn.prototype.clear=v4,hn.prototype.delete=I4,hn.prototype.get=S4,hn.prototype.has=T4,hn.prototype.set=_4;function T0(o,l){var d=yA(o),B=!d&&Qi(o),C=!d&&!B&&Pr(o),Q=!d&&!B&&!C&&ys(o),I=d||B||C||Q,O=I?ud(o.length,KR):[],k=O.length;for(var G in o)(l||jA.call(o,G))&&!(I&&(G=="length"||C&&(G=="offset"||G=="parent")||Q&&(G=="buffer"||G=="byteLength"||G=="byteOffset")||tr(G,k)))&&O.push(G);return O}function _0(o){var l=o.length;return l?o[Id(0,l-1)]:e}function x4(o,l){return oc(Et(o),wi(l,0,o.length))}function O4(o){return oc(Et(o))}function md(o,l,d){(d!==e&&!pn(o[l],d)||d===e&&!(l in o))&&jn(o,l,d)}function vo(o,l,d){var B=o[l];(!(jA.call(o,l)&&pn(B,d))||d===e&&!(l in o))&&jn(o,l,d)}function Xl(o,l){for(var d=o.length;d--;)if(pn(o[d][0],l))return d;return-1}function L4(o,l,d,B){return Nr(o,function(C,Q,I){l(B,C,d(C),I)}),B}function x0(o,l){return o&&xn(l,Ne(l),o)}function H4(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 wd(o,l){for(var d=-1,B=l.length,C=M(B),Q=o==null;++d<B;)C[d]=Q?e:jd(o,l[d]);return C}function wi(o,l,d){return o===o&&(d!==e&&(o=o<=d?o:d),l!==e&&(o=o>=l?o:l)),o}function Zt(o,l,d,B,C,Q){var I,O=l&p,k=l&g,G=l&m;if(d&&(I=C?d(o,B,C,Q):d(o)),I!==e)return I;if(!pe(o))return o;var W=yA(o);if(W){if(I=QK(o),!O)return Et(o,I)}else{var J=tt(o),q=J==xt||J==un;if(Pr(o))return ty(o,O);if(J==ve||J==qA||q&&!C){if(I=k||q?{}:yy(o),!O)return k?fK(o,H4(I,o)):uK(o,x0(I,o))}else{if(!ae[J])return C?o:{};I=FK(o,J,O)}}Q||(Q=new hn);var lA=Q.get(o);if(lA)return lA;Q.set(o,I),zy(o)?o.forEach(function(pA){I.add(Zt(pA,l,d,pA,o,Q))}):Xy(o)&&o.forEach(function(pA,TA){I.set(TA,Zt(pA,l,d,TA,o,Q))});var hA=G?k?Md:Nd:k?Ft:Ne,UA=W?e:hA(o);return Yt(UA||o,function(pA,TA){UA&&(TA=pA,pA=o[TA]),vo(I,TA,Zt(pA,l,d,TA,o,Q))}),I}function k4(o){var l=Ne(o);return function(d){return O0(d,o,l)}}function O0(o,l,d){var B=d.length;if(o==null)return!B;for(o=ie(o);B--;){var C=d[B],Q=l[C],I=o[C];if(I===e&&!(C in o)||!Q(I))return!1}return!0}function L0(o,l,d){if(typeof o!="function")throw new zt(s);return Lo(function(){o.apply(e,d)},l)}function Io(o,l,d,B){var C=-1,Q=_l,I=!0,O=o.length,k=[],G=l.length;if(!O)return k;d&&(l=fe(l,Lt(d))),B?(Q=id,I=!1):l.length>=r&&(Q=yo,I=!1,l=new mi(l));A:for(;++C<O;){var W=o[C],J=d==null?W:d(W);if(W=B||W!==0?W:0,I&&J===J){for(var q=G;q--;)if(l[q]===J)continue A;k.push(W)}else Q(l,J,B)||k.push(W)}return k}var Nr=oy(_n),H0=oy(yd,!0);function D4(o,l){var d=!0;return Nr(o,function(B,C,Q){return d=!!l(B,C,Q),d}),d}function Yl(o,l,d){for(var B=-1,C=o.length;++B<C;){var Q=o[B],I=l(Q);if(I!=null&&(O===e?I===I&&!kt(I):d(I,O)))var O=I,k=Q}return k}function N4(o,l,d,B){var C=o.length;for(d=EA(d),d<0&&(d=-d>C?0:C+d),B=B===e||B>C?C:EA(B),B<0&&(B+=C),B=d>B?0:Zy(B);d<B;)o[d++]=l;return o}function k0(o,l){var d=[];return Nr(o,function(B,C,Q){l(B,C,Q)&&d.push(B)}),d}function $e(o,l,d,B,C){var Q=-1,I=o.length;for(d||(d=UK),C||(C=[]);++Q<I;){var O=o[Q];l>0&&d(O)?l>1?$e(O,l-1,d,B,C):Hr(C,O):B||(C[C.length]=O)}return C}var Cd=ay(),D0=ay(!0);function _n(o,l){return o&&Cd(o,l,Ne)}function yd(o,l){return o&&D0(o,l,Ne)}function zl(o,l){return Lr(l,function(d){return nr(o[d])})}function Ci(o,l){l=Rr(l,o);for(var d=0,B=l.length;o!=null&&d<B;)o=o[On(l[d++])];return d&&d==B?o:e}function N0(o,l,d){var B=l(o);return yA(o)?B:Hr(B,d(o))}function ft(o){return o==null?o===e?te:Sn:gi&&gi in ie(o)?CK(o):OK(o)}function Ed(o,l){return o>l}function M4(o,l){return o!=null&&jA.call(o,l)}function R4(o,l){return o!=null&&l in ie(o)}function K4(o,l,d){return o>=et(l,d)&&o<_e(l,d)}function Qd(o,l,d){for(var B=d?id:_l,C=o[0].length,Q=o.length,I=Q,O=M(Q),k=1/0,G=[];I--;){var W=o[I];I&&l&&(W=fe(W,Lt(l))),k=et(W.length,k),O[I]=!d&&(l||C>=120&&W.length>=120)?new mi(I&&W):e}W=o[0];var J=-1,q=O[0];A:for(;++J<C&&G.length<k;){var lA=W[J],hA=l?l(lA):lA;if(lA=d||lA!==0?lA:0,!(q?yo(q,hA):B(G,hA,d))){for(I=Q;--I;){var UA=O[I];if(!(UA?yo(UA,hA):B(o[I],hA,d)))continue A}q&&q.push(hA),G.push(lA)}}return G}function P4(o,l,d,B){return _n(o,function(C,Q,I){l(B,d(C),Q,I)}),B}function So(o,l,d){l=Rr(l,o),o=by(o,l);var B=o==null?o:o[On(An(l))];return B==null?e:Ot(B,o,d)}function M0(o){return Be(o)&&ft(o)==qA}function V4(o){return Be(o)&&ft(o)==R}function G4(o){return Be(o)&&ft(o)==At}function To(o,l,d,B,C){return o===l?!0:o==null||l==null||!Be(o)&&!Be(l)?o!==o&&l!==l:W4(o,l,d,B,To,C)}function W4(o,l,d,B,C,Q){var I=yA(o),O=yA(l),k=I?ZA:tt(o),G=O?ZA:tt(l);k=k==qA?ve:k,G=G==qA?ve:G;var W=k==ve,J=G==ve,q=k==G;if(q&&Pr(o)){if(!Pr(l))return!1;I=!0,W=!1}if(q&&!W)return Q||(Q=new hn),I||ys(o)?my(o,l,d,B,C,Q):mK(o,l,k,d,B,C,Q);if(!(d&w)){var lA=W&&jA.call(o,"__wrapped__"),hA=J&&jA.call(l,"__wrapped__");if(lA||hA){var UA=lA?o.value():o,pA=hA?l.value():l;return Q||(Q=new hn),C(UA,pA,d,B,Q)}}return q?(Q||(Q=new hn),wK(o,l,d,B,C,Q)):!1}function $4(o){return Be(o)&&tt(o)==z}function Fd(o,l,d,B){var C=d.length,Q=C,I=!B;if(o==null)return!Q;for(o=ie(o);C--;){var O=d[C];if(I&&O[2]?O[1]!==o[O[0]]:!(O[0]in o))return!1}for(;++C<Q;){O=d[C];var k=O[0],G=o[k],W=O[1];if(I&&O[2]){if(G===e&&!(k in o))return!1}else{var J=new hn;if(B)var q=B(G,W,k,o,l,J);if(!(q===e?To(W,G,w|F,B,J):q))return!1}}return!0}function R0(o){if(!pe(o)||IK(o))return!1;var l=nr(o)?$R:kM;return l.test(Ei(o))}function J4(o){return Be(o)&&ft(o)==T}function X4(o){return Be(o)&&tt(o)==x}function Y4(o){return Be(o)&&dc(o.length)&&!!ce[ft(o)]}function K0(o){return typeof o=="function"?o:o==null?bt:typeof o=="object"?yA(o)?G0(o[0],o[1]):V0(o):lE(o)}function bd(o){if(!Oo(o))return ZR(o);var l=[];for(var d in ie(o))jA.call(o,d)&&d!="constructor"&&l.push(d);return l}function z4(o){if(!pe(o))return xK(o);var l=Oo(o),d=[];for(var B in o)B=="constructor"&&(l||!jA.call(o,B))||d.push(B);return d}function Ud(o,l){return o<l}function P0(o,l){var d=-1,B=Qt(o)?M(o.length):[];return Nr(o,function(C,Q,I){B[++d]=l(C,Q,I)}),B}function V0(o){var l=Kd(o);return l.length==1&&l[0][2]?Qy(l[0][0],l[0][1]):function(d){return d===o||Fd(d,o,l)}}function G0(o,l){return Vd(o)&&Ey(l)?Qy(On(o),l):function(d){var B=jd(d,o);return B===e&&B===l?Ah(d,o):To(l,B,w|F)}}function ql(o,l,d,B,C){o!==l&&Cd(l,function(Q,I){if(C||(C=new hn),pe(Q))q4(o,l,I,d,ql,B,C);else{var O=B?B(Wd(o,I),Q,I+"",o,l,C):e;O===e&&(O=Q),md(o,I,O)}},Ft)}function q4(o,l,d,B,C,Q,I){var O=Wd(o,d),k=Wd(l,d),G=I.get(k);if(G){md(o,d,G);return}var W=Q?Q(O,k,d+"",o,l,I):e,J=W===e;if(J){var q=yA(k),lA=!q&&Pr(k),hA=!q&&!lA&&ys(k);W=k,q||lA||hA?yA(O)?W=O:ye(O)?W=Et(O):lA?(J=!1,W=ty(k,!0)):hA?(J=!1,W=ny(k,!0)):W=[]:Ho(k)||Qi(k)?(W=O,Qi(O)?W=jy(O):(!pe(O)||nr(O))&&(W=yy(k))):J=!1}J&&(I.set(k,W),C(W,k,B,Q,I),I.delete(k)),md(o,d,W)}function W0(o,l){var d=o.length;if(d)return l+=l<0?d:0,tr(l,d)?o[l]:e}function $0(o,l,d){l.length?l=fe(l,function(Q){return yA(Q)?function(I){return Ci(I,Q.length===1?Q[0]:Q)}:Q}):l=[bt];var B=-1;l=fe(l,Lt(dA()));var C=P0(o,function(Q,I,O){var k=fe(l,function(G){return G(Q)});return{criteria:k,index:++B,value:Q}});return FR(C,function(Q,I){return cK(Q,I,d)})}function Z4(o,l){return J0(o,l,function(d,B){return Ah(o,B)})}function J0(o,l,d){for(var B=-1,C=l.length,Q={};++B<C;){var I=l[B],O=Ci(o,I);d(O,I)&&_o(Q,Rr(I,o),O)}return Q}function j4(o){return function(l){return Ci(l,o)}}function vd(o,l,d,B){var C=B?QR:cs,Q=-1,I=l.length,O=o;for(o===l&&(l=Et(l)),d&&(O=fe(o,Lt(d)));++Q<I;)for(var k=0,G=l[Q],W=d?d(G):G;(k=C(O,W,k,B))>-1;)O!==o&&Kl.call(O,k,1),Kl.call(o,k,1);return o}function X0(o,l){for(var d=o?l.length:0,B=d-1;d--;){var C=l[d];if(d==B||C!==Q){var Q=C;tr(C)?Kl.call(o,C,1):_d(o,C)}}return o}function Id(o,l){return o+Gl(I0()*(l-o+1))}function AK(o,l,d,B){for(var C=-1,Q=_e(Vl((l-o)/(d||1)),0),I=M(Q);Q--;)I[B?Q:++C]=o,o+=d;return I}function Sd(o,l){var d="";if(!o||l<1||l>rA)return d;do l%2&&(d+=o),l=Gl(l/2),l&&(o+=o);while(l);return d}function vA(o,l){return $d(Fy(o,l,bt),o+"")}function eK(o){return _0(Es(o))}function tK(o,l){var d=Es(o);return oc(d,wi(l,0,d.length))}function _o(o,l,d,B){if(!pe(o))return o;l=Rr(l,o);for(var C=-1,Q=l.length,I=Q-1,O=o;O!=null&&++C<Q;){var k=On(l[C]),G=d;if(k==="__proto__"||k==="constructor"||k==="prototype")return o;if(C!=I){var W=O[k];G=B?B(W,k,O):e,G===e&&(G=pe(W)?W:tr(l[C+1])?[]:{})}vo(O,k,G),O=O[k]}return o}var Y0=Wl?function(o,l){return Wl.set(o,l),o}:bt,nK=Pl?function(o,l){return Pl(o,"toString",{configurable:!0,enumerable:!1,value:th(l),writable:!0})}:bt;function rK(o){return oc(Es(o))}function jt(o,l,d){var B=-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 Q=M(C);++B<C;)Q[B]=o[B+l];return Q}function iK(o,l){var d;return Nr(o,function(B,C,Q){return d=l(B,C,Q),!d}),!!d}function Zl(o,l,d){var B=0,C=o==null?B:o.length;if(typeof l=="number"&&l===l&&C<=RA){for(;B<C;){var Q=B+C>>>1,I=o[Q];I!==null&&!kt(I)&&(d?I<=l:I<l)?B=Q+1:C=Q}return C}return Td(o,l,bt,d)}function Td(o,l,d,B){var C=0,Q=o==null?0:o.length;if(Q===0)return 0;l=d(l);for(var I=l!==l,O=l===null,k=kt(l),G=l===e;C<Q;){var W=Gl((C+Q)/2),J=d(o[W]),q=J!==e,lA=J===null,hA=J===J,UA=kt(J);if(I)var pA=B||hA;else G?pA=hA&&(B||q):O?pA=hA&&q&&(B||!lA):k?pA=hA&&q&&!lA&&(B||!UA):lA||UA?pA=!1:pA=B?J<=l:J<l;pA?C=W+1:Q=W}return et(Q,PA)}function z0(o,l){for(var d=-1,B=o.length,C=0,Q=[];++d<B;){var I=o[d],O=l?l(I):I;if(!d||!pn(O,k)){var k=O;Q[C++]=I===0?0:I}}return Q}function q0(o){return typeof o=="number"?o:kt(o)?XA:+o}function Ht(o){if(typeof o=="string")return o;if(yA(o))return fe(o,Ht)+"";if(kt(o))return S0?S0.call(o):"";var l=o+"";return l=="0"&&1/o==-kA?"-0":l}function Mr(o,l,d){var B=-1,C=_l,Q=o.length,I=!0,O=[],k=O;if(d)I=!1,C=id;else if(Q>=r){var G=l?null:gK(o);if(G)return Ol(G);I=!1,C=yo,k=new mi}else k=l?[]:O;A:for(;++B<Q;){var W=o[B],J=l?l(W):W;if(W=d||W!==0?W:0,I&&J===J){for(var q=k.length;q--;)if(k[q]===J)continue A;l&&k.push(J),O.push(W)}else C(k,J,d)||(k!==O&&k.push(J),O.push(W))}return O}function _d(o,l){return l=Rr(l,o),o=by(o,l),o==null||delete o[On(An(l))]}function Z0(o,l,d,B){return _o(o,l,d(Ci(o,l)),B)}function jl(o,l,d,B){for(var C=o.length,Q=B?C:-1;(B?Q--:++Q<C)&&l(o[Q],Q,o););return d?jt(o,B?0:Q,B?Q+1:C):jt(o,B?Q+1:0,B?C:Q)}function j0(o,l){var d=o;return d instanceof LA&&(d=d.value()),sd(l,function(B,C){return C.func.apply(C.thisArg,Hr([B],C.args))},d)}function xd(o,l,d){var B=o.length;if(B<2)return B?Mr(o[0]):[];for(var C=-1,Q=M(B);++C<B;)for(var I=o[C],O=-1;++O<B;)O!=C&&(Q[C]=Io(Q[C]||I,o[O],l,d));return Mr($e(Q,1),l,d)}function Ay(o,l,d){for(var B=-1,C=o.length,Q=l.length,I={};++B<C;){var O=B<Q?l[B]:e;d(I,o[B],O)}return I}function Od(o){return ye(o)?o:[]}function Ld(o){return typeof o=="function"?o:bt}function Rr(o,l){return yA(o)?o:Vd(o,l)?[o]:Sy(YA(o))}var sK=vA;function Kr(o,l,d){var B=o.length;return d=d===e?B:d,!l&&d>=B?o:jt(o,l,d)}var ey=JR||function(o){return We.clearTimeout(o)};function ty(o,l){if(l)return o.slice();var d=o.length,B=Q0?Q0(d):new o.constructor(d);return o.copy(B),B}function Hd(o){var l=new o.constructor(o.byteLength);return new Ml(l).set(new Ml(o)),l}function oK(o,l){var d=l?Hd(o.buffer):o.buffer;return new o.constructor(d,o.byteOffset,o.byteLength)}function aK(o){var l=new o.constructor(o.source,MC.exec(o));return l.lastIndex=o.lastIndex,l}function lK(o){return Uo?ie(Uo.call(o)):{}}function ny(o,l){var d=l?Hd(o.buffer):o.buffer;return new o.constructor(d,o.byteOffset,o.length)}function ry(o,l){if(o!==l){var d=o!==e,B=o===null,C=o===o,Q=kt(o),I=l!==e,O=l===null,k=l===l,G=kt(l);if(!O&&!G&&!Q&&o>l||Q&&I&&k&&!O&&!G||B&&I&&k||!d&&k||!C)return 1;if(!B&&!Q&&!G&&o<l||G&&d&&C&&!B&&!Q||O&&d&&C||!I&&C||!k)return-1}return 0}function cK(o,l,d){for(var B=-1,C=o.criteria,Q=l.criteria,I=C.length,O=d.length;++B<I;){var k=ry(C[B],Q[B]);if(k){if(B>=O)return k;var G=d[B];return k*(G=="desc"?-1:1)}}return o.index-l.index}function iy(o,l,d,B){for(var C=-1,Q=o.length,I=d.length,O=-1,k=l.length,G=_e(Q-I,0),W=M(k+G),J=!B;++O<k;)W[O]=l[O];for(;++C<I;)(J||C<Q)&&(W[d[C]]=o[C]);for(;G--;)W[O++]=o[C++];return W}function sy(o,l,d,B){for(var C=-1,Q=o.length,I=-1,O=d.length,k=-1,G=l.length,W=_e(Q-O,0),J=M(W+G),q=!B;++C<W;)J[C]=o[C];for(var lA=C;++k<G;)J[lA+k]=l[k];for(;++I<O;)(q||C<Q)&&(J[lA+d[I]]=o[C++]);return J}function Et(o,l){var d=-1,B=o.length;for(l||(l=M(B));++d<B;)l[d]=o[d];return l}function xn(o,l,d,B){var C=!d;d||(d={});for(var Q=-1,I=l.length;++Q<I;){var O=l[Q],k=B?B(d[O],o[O],O,d,o):e;k===e&&(k=o[O]),C?jn(d,O,k):vo(d,O,k)}return d}function uK(o,l){return xn(o,Pd(o),l)}function fK(o,l){return xn(o,wy(o),l)}function Ac(o,l){return function(d,B){var C=yA(d)?BR:L4,Q=l?l():{};return C(d,o,dA(B,2),Q)}}function ms(o){return vA(function(l,d){var B=-1,C=d.length,Q=C>1?d[C-1]:e,I=C>2?d[2]:e;for(Q=o.length>3&&typeof Q=="function"?(C--,Q):e,I&&dt(d[0],d[1],I)&&(Q=C<3?e:Q,C=1),l=ie(l);++B<C;){var O=d[B];O&&o(l,O,B,Q)}return l})}function oy(o,l){return function(d,B){if(d==null)return d;if(!Qt(d))return o(d,B);for(var C=d.length,Q=l?C:-1,I=ie(d);(l?Q--:++Q<C)&&B(I[Q],Q,I)!==!1;);return d}}function ay(o){return function(l,d,B){for(var C=-1,Q=ie(l),I=B(l),O=I.length;O--;){var k=I[o?O:++C];if(d(Q[k],k,Q)===!1)break}return l}}function dK(o,l,d){var B=l&b,C=xo(o);function Q(){var I=this&&this!==We&&this instanceof Q?C:o;return I.apply(B?d:this,arguments)}return Q}function ly(o){return function(l){l=YA(l);var d=us(l)?dn(l):e,B=d?d[0]:l.charAt(0),C=d?Kr(d,1).join(""):l.slice(1);return B[o]()+C}}function ws(o){return function(l){return sd(oE(sE(l).replace(nR,"")),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=Bs(o.prototype),B=o.apply(d,l);return pe(B)?B:d}}function hK(o,l,d){var B=xo(o);function C(){for(var Q=arguments.length,I=M(Q),O=Q,k=Cs(C);O--;)I[O]=arguments[O];var G=Q<3&&I[0]!==k&&I[Q-1]!==k?[]:kr(I,k);if(Q-=G.length,Q<d)return hy(o,l,ec,C.placeholder,e,I,G,e,e,d-Q);var W=this&&this!==We&&this instanceof C?B:o;return Ot(W,this,I)}return C}function cy(o){return function(l,d,B){var C=ie(l);if(!Qt(l)){var Q=dA(d,3);l=Ne(l),d=function(O){return Q(C[O],O,C)}}var I=o(l,d,B);return I>-1?C[Q?l[I]:I]:e}}function uy(o){return er(function(l){var d=l.length,B=d,C=qt.prototype.thru;for(o&&l.reverse();B--;){var Q=l[B];if(typeof Q!="function")throw new zt(s);if(C&&!I&&ic(Q)=="wrapper")var I=new qt([],!0)}for(B=I?B:d;++B<d;){Q=l[B];var O=ic(Q),k=O=="wrapper"?Rd(Q):e;k&&Gd(k[0])&&k[1]==(D|S|L|P)&&!k[4].length&&k[9]==1?I=I[ic(k[0])].apply(I,k[3]):I=Q.length==1&&Gd(Q)?I[O]():I.thru(Q)}return function(){var G=arguments,W=G[0];if(I&&G.length==1&&yA(W))return I.plant(W).value();for(var J=0,q=d?l[J].apply(this,G):W;++J<d;)q=l[J].call(this,q);return q}})}function ec(o,l,d,B,C,Q,I,O,k,G){var W=l&D,J=l&b,q=l&v,lA=l&(S|E),hA=l&N,UA=q?e:xo(o);function pA(){for(var TA=arguments.length,MA=M(TA),Dt=TA;Dt--;)MA[Dt]=arguments[Dt];if(lA)var ht=Cs(pA),Nt=UR(MA,ht);if(B&&(MA=iy(MA,B,C,lA)),Q&&(MA=sy(MA,Q,I,lA)),TA-=Nt,lA&&TA<G){var Ee=kr(MA,ht);return hy(o,l,ec,pA.placeholder,d,MA,Ee,O,k,G-TA)}var gn=J?d:this,ir=q?gn[o]:o;return TA=MA.length,O?MA=LK(MA,O):hA&&TA>1&&MA.reverse(),W&&k<TA&&(MA.length=k),this&&this!==We&&this instanceof pA&&(ir=UA||xo(ir)),ir.apply(gn,MA)}return pA}function fy(o,l){return function(d,B){return P4(d,o,l(B),{})}}function tc(o,l){return function(d,B){var C;if(d===e&&B===e)return l;if(d!==e&&(C=d),B!==e){if(C===e)return B;typeof d=="string"||typeof B=="string"?(d=Ht(d),B=Ht(B)):(d=q0(d),B=q0(B)),C=o(d,B)}return C}}function kd(o){return er(function(l){return l=fe(l,Lt(dA())),vA(function(d){var B=this;return o(l,function(C){return Ot(C,B,d)})})})}function nc(o,l){l=l===e?" ":Ht(l);var d=l.length;if(d<2)return d?Sd(l,o):l;var B=Sd(l,Vl(o/fs(l)));return us(l)?Kr(dn(B),0,o).join(""):B.slice(0,o)}function pK(o,l,d,B){var C=l&b,Q=xo(o);function I(){for(var O=-1,k=arguments.length,G=-1,W=B.length,J=M(W+k),q=this&&this!==We&&this instanceof I?Q:o;++G<W;)J[G]=B[G];for(;k--;)J[G++]=arguments[++O];return Ot(q,C?d:this,J)}return I}function dy(o){return function(l,d,B){return B&&typeof B!="number"&&dt(l,d,B)&&(d=B=e),l=rr(l),d===e?(d=l,l=0):d=rr(d),B=B===e?l<d?1:-1:rr(B),AK(l,d,B,o)}}function rc(o){return function(l,d){return typeof l=="string"&&typeof d=="string"||(l=en(l),d=en(d)),o(l,d)}}function hy(o,l,d,B,C,Q,I,O,k,G){var W=l&S,J=W?I:e,q=W?e:I,lA=W?Q:e,hA=W?e:Q;l|=W?L:U,l&=~(W?U:L),l&_||(l&=~(b|v));var UA=[o,l,C,lA,J,hA,q,O,k,G],pA=d.apply(e,UA);return Gd(o)&&Uy(pA,UA),pA.placeholder=B,vy(pA,o,l)}function Dd(o){var l=Te[o];return function(d,B){if(d=en(d),B=B==null?0:et(EA(B),292),B&&v0(d)){var C=(YA(d)+"e").split("e"),Q=l(C[0]+"e"+(+C[1]+B));return C=(YA(Q)+"e").split("e"),+(C[0]+"e"+(+C[1]-B))}return l(d)}}var gK=ps&&1/Ol(new ps([,-0]))[1]==kA?function(o){return new ps(o)}:ih;function py(o){return function(l){var d=tt(l);return d==z?dd(l):d==x?OR(l):bR(l,o(l))}}function Ar(o,l,d,B,C,Q,I,O){var k=l&v;if(!k&&typeof o!="function")throw new zt(s);var G=B?B.length:0;if(G||(l&=~(L|U),B=C=e),I=I===e?I:_e(EA(I),0),O=O===e?O:EA(O),G-=C?C.length:0,l&U){var W=B,J=C;B=C=e}var q=k?e:Rd(o),lA=[o,l,d,B,C,W,J,Q,I,O];if(q&&_K(lA,q),o=lA[0],l=lA[1],d=lA[2],B=lA[3],C=lA[4],O=lA[9]=lA[9]===e?k?0:o.length:_e(lA[9]-G,0),!O&&l&(S|E)&&(l&=~(S|E)),!l||l==b)var hA=dK(o,l,d);else l==S||l==E?hA=hK(o,l,O):(l==L||l==(b|L))&&!C.length?hA=pK(o,l,d,B):hA=ec.apply(e,lA);var UA=q?Y0:Uy;return vy(UA(hA,lA),o,l)}function gy(o,l,d,B){return o===e||pn(o,hs[d])&&!jA.call(B,d)?l:o}function By(o,l,d,B,C,Q){return pe(o)&&pe(l)&&(Q.set(l,o),ql(o,l,e,By,Q),Q.delete(l)),o}function BK(o){return Ho(o)?e:o}function my(o,l,d,B,C,Q){var I=d&w,O=o.length,k=l.length;if(O!=k&&!(I&&k>O))return!1;var G=Q.get(o),W=Q.get(l);if(G&&W)return G==l&&W==o;var J=-1,q=!0,lA=d&F?new mi:e;for(Q.set(o,l),Q.set(l,o);++J<O;){var hA=o[J],UA=l[J];if(B)var pA=I?B(UA,hA,J,l,o,Q):B(hA,UA,J,o,l,Q);if(pA!==e){if(pA)continue;q=!1;break}if(lA){if(!od(l,function(TA,MA){if(!yo(lA,MA)&&(hA===TA||C(hA,TA,d,B,Q)))return lA.push(MA)})){q=!1;break}}else if(!(hA===UA||C(hA,UA,d,B,Q))){q=!1;break}}return Q.delete(o),Q.delete(l),q}function mK(o,l,d,B,C,Q,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||!Q(new Ml(o),new Ml(l)));case ct:case At:case bA:return pn(+o,+l);case _t:return o.name==l.name&&o.message==l.message;case T:case $:return o==l+"";case z:var O=dd;case x:var k=B&w;if(O||(O=Ol),o.size!=l.size&&!k)return!1;var G=I.get(o);if(G)return G==l;B|=F,I.set(o,l);var W=my(O(o),O(l),B,C,Q,I);return I.delete(o),W;case oA:if(Uo)return Uo.call(o)==Uo.call(l)}return!1}function wK(o,l,d,B,C,Q){var I=d&w,O=Nd(o),k=O.length,G=Nd(l),W=G.length;if(k!=W&&!I)return!1;for(var J=k;J--;){var q=O[J];if(!(I?q in l:jA.call(l,q)))return!1}var lA=Q.get(o),hA=Q.get(l);if(lA&&hA)return lA==l&&hA==o;var UA=!0;Q.set(o,l),Q.set(l,o);for(var pA=I;++J<k;){q=O[J];var TA=o[q],MA=l[q];if(B)var Dt=I?B(MA,TA,q,l,o,Q):B(TA,MA,q,o,l,Q);if(!(Dt===e?TA===MA||C(TA,MA,d,B,Q):Dt)){UA=!1;break}pA||(pA=q=="constructor")}if(UA&&!pA){var ht=o.constructor,Nt=l.constructor;ht!=Nt&&"constructor"in o&&"constructor"in l&&!(typeof ht=="function"&&ht instanceof ht&&typeof Nt=="function"&&Nt instanceof Nt)&&(UA=!1)}return Q.delete(o),Q.delete(l),UA}function er(o){return $d(Fy(o,e,Oy),o+"")}function Nd(o){return N0(o,Ne,Pd)}function Md(o){return N0(o,Ft,wy)}var Rd=Wl?function(o){return Wl.get(o)}:ih;function ic(o){for(var l=o.name+"",d=gs[l],B=jA.call(gs,l)?d.length:0;B--;){var C=d[B],Q=C.func;if(Q==null||Q==o)return C.name}return l}function Cs(o){var l=jA.call(y,"placeholder")?y:o;return l.placeholder}function dA(){var o=y.iteratee||nh;return o=o===nh?K0:o,arguments.length?o(arguments[0],arguments[1]):o}function sc(o,l){var d=o.__data__;return vK(l)?d[typeof l=="string"?"string":"hash"]:d.map}function Kd(o){for(var l=Ne(o),d=l.length;d--;){var B=l[d],C=o[B];l[d]=[B,C,Ey(C)]}return l}function yi(o,l){var d=TR(o,l);return R0(d)?d:e}function CK(o){var l=jA.call(o,gi),d=o[gi];try{o[gi]=e;var B=!0}catch{}var C=Dl.call(o);return B&&(l?o[gi]=d:delete o[gi]),C}var Pd=pd?function(o){return o==null?[]:(o=ie(o),Lr(pd(o),function(l){return b0.call(o,l)}))}:sh,wy=pd?function(o){for(var l=[];o;)Hr(l,Pd(o)),o=Rl(o);return l}:sh,tt=ft;(gd&&tt(new gd(new ArrayBuffer(1)))!=X||Qo&&tt(new Qo)!=z||Bd&&tt(Bd.resolve())!=fn||ps&&tt(new ps)!=x||Fo&&tt(new Fo)!=DA)&&(tt=function(o){var l=ft(o),d=l==ve?o.constructor:e,B=d?Ei(d):"";if(B)switch(B){case t4:return X;case n4:return z;case r4:return fn;case i4:return x;case s4:return DA}return l});function yK(o,l,d){for(var B=-1,C=d.length;++B<C;){var Q=d[B],I=Q.size;switch(Q.type){case"drop":o+=I;break;case"dropRight":l-=I;break;case"take":l=et(l,o+I);break;case"takeRight":o=_e(o,l-I);break}}return{start:o,end:l}}function EK(o){var l=o.match(IM);return l?l[1].split(SM):[]}function Cy(o,l,d){l=Rr(l,o);for(var B=-1,C=l.length,Q=!1;++B<C;){var I=On(l[B]);if(!(Q=o!=null&&d(o,I)))break;o=o[I]}return Q||++B!=C?Q:(C=o==null?0:o.length,!!C&&dc(C)&&tr(I,C)&&(yA(o)||Qi(o)))}function QK(o){var l=o.length,d=new o.constructor(l);return l&&typeof o[0]=="string"&&jA.call(o,"index")&&(d.index=o.index,d.input=o.input),d}function yy(o){return typeof o.constructor=="function"&&!Oo(o)?Bs(Rl(o)):{}}function FK(o,l,d){var B=o.constructor;switch(l){case R:return Hd(o);case ct:case At:return new B(+o);case X:return oK(o,d);case SA:case re:case Ct:case Tn:case Jt:case K:case iA:case uA:case GA:return ny(o,d);case z:return new B;case bA:case $:return new B(o);case T:return aK(o);case x:return new B;case oA:return lK(o)}}function bK(o,l){var d=l.length;if(!d)return o;var B=d-1;return l[B]=(d>1?"& ":"")+l[B],l=l.join(d>2?", ":" "),o.replace(vM,`{
144
144
  /* [wrapped with `+l+`] */
145
- `)}function vK(o){return yA(o)||Qi(o)||!!(U0&&o&&o[U0])}function tr(o,l){var d=typeof o;return l=l??rA,!!l&&(d=="number"||d!="symbol"&&MM.test(o))&&o>-1&&o%1==0&&o<l}function dt(o,l,d){if(!pe(d))return!1;var B=typeof l;return(B=="number"?Qt(d)&&tr(l,d.length):B=="string"&&l in d)?pn(d[l],o):!1}function Vd(o,l){if(yA(o))return!1;var d=typeof o;return d=="number"||d=="symbol"||d=="boolean"||o==null||kt(o)?!0:as.test(o)||!Co.test(o)||l!=null&&o in ie(l)}function IK(o){var l=typeof o;return l=="string"||l=="number"||l=="symbol"||l=="boolean"?o!=="__proto__":o===null}function Gd(o){var l=ic(o),d=y[l];if(typeof d!="function"||!(l in LA.prototype))return!1;if(o===d)return!0;var B=Rd(d);return!!B&&o===B[0]}function SK(o){return!!E0&&E0 in o}var TK=Hl?nr:oh;function Oo(o){var l=o&&o.constructor,d=typeof l=="function"&&l.prototype||hs;return o===d}function Ey(o){return o===o&&!pe(o)}function Qy(o,l){return function(d){return d==null?!1:d[o]===l&&(l!==e||o in ie(d))}}function _K(o){var l=uc(o,function(B){return d.size===u&&d.clear(),B}),d=l.cache;return l}function xK(o,l){var d=o[1],B=l[1],C=d|B,Q=C<(b|v|D),I=B==D&&d==S||B==D&&d==P&&o[7].length<=l[8]||B==(D|P)&&l[7].length<=l[8]&&d==S;if(!(Q||I))return o;B&b&&(o[2]=l[2],C|=d&b?0:_);var O=l[3];if(O){var k=o[3];o[3]=k?iy(k,O,l[4]):O,o[4]=k?kr(o[3],f):l[4]}return O=l[5],O&&(k=o[5],o[5]=k?sy(k,O,l[6]):O,o[6]=k?kr(o[5],f):l[6]),O=l[7],O&&(o[7]=O),B&D&&(o[8]=o[8]==null?l[8]:et(o[8],l[8])),o[9]==null&&(o[9]=l[9]),o[0]=l[0],o[1]=C,o}function OK(o){var l=[];if(o!=null)for(var d in ie(o))l.push(d);return l}function LK(o){return Dl.call(o)}function Fy(o,l,d){return l=_e(l===e?o.length-1:l,0),function(){for(var B=arguments,C=-1,Q=_e(B.length-l,0),I=M(Q);++C<Q;)I[C]=B[l+C];C=-1;for(var O=M(l+1);++C<l;)O[C]=B[C];return O[l]=d(I),Ot(o,this,O)}}function by(o,l){return l.length<2?o:Ci(o,jt(l,0,-1))}function HK(o,l){for(var d=o.length,B=et(l.length,d),C=Et(o);B--;){var Q=l[B];o[B]=tr(Q,d)?C[Q]:e}return o}function Wd(o,l){if(!(l==="constructor"&&typeof o[l]=="function")&&l!="__proto__")return o[l]}var Uy=Iy(Y0),Lo=zR||function(o,l){return We.setTimeout(o,l)},$d=Iy(rK);function vy(o,l,d){var B=l+"";return $d(o,UK(B,kK(QK(B),d)))}function Iy(o){var l=0,d=0;return function(){var B=A4(),C=cA-(B-d);if(d=B,C>0){if(++l>=nA)return arguments[0]}else l=0;return o.apply(e,arguments)}}function oc(o,l){var d=-1,B=o.length,C=B-1;for(l=l===e?B:l;++d<l;){var Q=Id(d,C),I=o[Q];o[Q]=o[d],o[d]=I}return o.length=l,o}var Sy=_K(function(o){var l=[];return o.charCodeAt(0)===46&&l.push(""),o.replace(bM,function(d,B,C,Q){l.push(C?Q.replace(OM,"$1"):B||d)}),l});function On(o){if(typeof o=="string"||kt(o))return o;var l=o+"";return l=="0"&&1/o==-kA?"-0":l}function Ei(o){if(o!=null){try{return kl.call(o)}catch{}try{return o+""}catch{}}return""}function kK(o,l){return Yt(zA,function(d){var B="_."+d[0];l&d[1]&&!_l(o,B)&&o.push(B)}),o.sort()}function Ty(o){if(o instanceof LA)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 DK(o,l,d){(d?dt(o,l,d):l===e)?l=1:l=_e(EA(l),0);var B=o==null?0:o.length;if(!B||l<1)return[];for(var C=0,Q=0,I=M(Vl(B/l));C<B;)I[Q++]=jt(o,C,C+=l);return I}function NK(o){for(var l=-1,d=o==null?0:o.length,B=0,C=[];++l<d;){var Q=o[l];Q&&(C[B++]=Q)}return C}function MK(){var o=arguments.length;if(!o)return[];for(var l=M(o-1),d=arguments[0],B=o;B--;)l[B-1]=arguments[B];return Hr(yA(d)?Et(d):[d],$e(l,1))}var RK=vA(function(o,l){return ye(o)?Io(o,$e(l,1,ye,!0)):[]}),KK=vA(function(o,l){var d=An(l);return ye(d)&&(d=e),ye(o)?Io(o,$e(l,1,ye,!0),dA(d,2)):[]}),PK=vA(function(o,l){var d=An(l);return ye(d)&&(d=e),ye(o)?Io(o,$e(l,1,ye,!0),e,d):[]});function VK(o,l,d){var B=o==null?0:o.length;return B?(l=d||l===e?1:EA(l),jt(o,l<0?0:l,B)):[]}function GK(o,l,d){var B=o==null?0:o.length;return B?(l=d||l===e?1:EA(l),l=B-l,jt(o,0,l<0?0:l)):[]}function WK(o,l){return o&&o.length?jl(o,dA(l,3),!0,!0):[]}function $K(o,l){return o&&o.length?jl(o,dA(l,3),!0):[]}function JK(o,l,d,B){var C=o==null?0:o.length;return C?(d&&typeof d!="number"&&dt(o,l,d)&&(d=0,B=C),M4(o,l,d,B)):[]}function _y(o,l,d){var B=o==null?0:o.length;if(!B)return-1;var C=d==null?0:EA(d);return C<0&&(C=_e(B+C,0)),xl(o,dA(l,3),C)}function xy(o,l,d){var B=o==null?0:o.length;if(!B)return-1;var C=B-1;return d!==e&&(C=EA(d),C=d<0?_e(B+C,0):et(C,B-1)),xl(o,dA(l,3),C,!0)}function Oy(o){var l=o==null?0:o.length;return l?$e(o,1):[]}function XK(o){var l=o==null?0:o.length;return l?$e(o,kA):[]}function YK(o,l){var d=o==null?0:o.length;return d?(l=l===e?1:EA(l),$e(o,l)):[]}function zK(o){for(var l=-1,d=o==null?0:o.length,B={};++l<d;){var C=o[l];B[C[0]]=C[1]}return B}function Ly(o){return o&&o.length?o[0]:e}function qK(o,l,d){var B=o==null?0:o.length;if(!B)return-1;var C=d==null?0:EA(d);return C<0&&(C=_e(B+C,0)),cs(o,l,C)}function ZK(o){var l=o==null?0:o.length;return l?jt(o,0,-1):[]}var jK=vA(function(o){var l=fe(o,Od);return l.length&&l[0]===o[0]?Qd(l):[]}),AP=vA(function(o){var l=An(o),d=fe(o,Od);return l===An(d)?l=e:d.pop(),d.length&&d[0]===o[0]?Qd(d,dA(l,2)):[]}),eP=vA(function(o){var l=An(o),d=fe(o,Od);return l=typeof l=="function"?l:e,l&&d.pop(),d.length&&d[0]===o[0]?Qd(d,e,l):[]});function tP(o,l){return o==null?"":ZR.call(o,l)}function An(o){var l=o==null?0:o.length;return l?o[l-1]:e}function nP(o,l,d){var B=o==null?0:o.length;if(!B)return-1;var C=B;return d!==e&&(C=EA(d),C=C<0?_e(B+C,0):et(C,B-1)),l===l?kR(o,l,C):xl(o,h0,C,!0)}function rP(o,l){return o&&o.length?W0(o,EA(l)):e}var iP=vA(Hy);function Hy(o,l){return o&&o.length&&l&&l.length?vd(o,l):o}function sP(o,l,d){return o&&o.length&&l&&l.length?vd(o,l,dA(d,2)):o}function oP(o,l,d){return o&&o.length&&l&&l.length?vd(o,l,e,d):o}var aP=er(function(o,l){var d=o==null?0:o.length,B=wd(o,l);return X0(o,fe(l,function(C){return tr(C,d)?+C:C}).sort(ry)),B});function lP(o,l){var d=[];if(!(o&&o.length))return d;var B=-1,C=[],Q=o.length;for(l=dA(l,3);++B<Q;){var I=o[B];l(I,B,o)&&(d.push(I),C.push(B))}return X0(o,C),d}function Jd(o){return o==null?o:t4.call(o)}function cP(o,l,d){var B=o==null?0:o.length;return B?(d&&typeof d!="number"&&dt(o,l,d)?(l=0,d=B):(l=l==null?0:EA(l),d=d===e?B:EA(d)),jt(o,l,d)):[]}function uP(o,l){return Zl(o,l)}function fP(o,l,d){return Td(o,l,dA(d,2))}function dP(o,l){var d=o==null?0:o.length;if(d){var B=Zl(o,l);if(B<d&&pn(o[B],l))return B}return-1}function hP(o,l){return Zl(o,l,!0)}function pP(o,l,d){return Td(o,l,dA(d,2),!0)}function gP(o,l){var d=o==null?0:o.length;if(d){var B=Zl(o,l,!0)-1;if(pn(o[B],l))return B}return-1}function BP(o){return o&&o.length?z0(o):[]}function mP(o,l){return o&&o.length?z0(o,dA(l,2)):[]}function wP(o){var l=o==null?0:o.length;return l?jt(o,1,l):[]}function CP(o,l,d){return o&&o.length?(l=d||l===e?1:EA(l),jt(o,0,l<0?0:l)):[]}function yP(o,l,d){var B=o==null?0:o.length;return B?(l=d||l===e?1:EA(l),l=B-l,jt(o,l<0?0:l,B)):[]}function EP(o,l){return o&&o.length?jl(o,dA(l,3),!1,!0):[]}function QP(o,l){return o&&o.length?jl(o,dA(l,3)):[]}var FP=vA(function(o){return Mr($e(o,1,ye,!0))}),bP=vA(function(o){var l=An(o);return ye(l)&&(l=e),Mr($e(o,1,ye,!0),dA(l,2))}),UP=vA(function(o){var l=An(o);return l=typeof l=="function"?l:e,Mr($e(o,1,ye,!0),e,l)});function vP(o){return o&&o.length?Mr(o):[]}function IP(o,l){return o&&o.length?Mr(o,dA(l,2)):[]}function SP(o,l){return l=typeof l=="function"?l:e,o&&o.length?Mr(o,e,l):[]}function Xd(o){if(!(o&&o.length))return[];var l=0;return o=Lr(o,function(d){if(ye(d))return l=_e(d.length,l),!0}),ud(l,function(d){return fe(o,ad(d))})}function ky(o,l){if(!(o&&o.length))return[];var d=Xd(o);return l==null?d:fe(d,function(B){return Ot(l,e,B)})}var TP=vA(function(o,l){return ye(o)?Io(o,l):[]}),_P=vA(function(o){return xd(Lr(o,ye))}),xP=vA(function(o){var l=An(o);return ye(l)&&(l=e),xd(Lr(o,ye),dA(l,2))}),OP=vA(function(o){var l=An(o);return l=typeof l=="function"?l:e,xd(Lr(o,ye),e,l)}),LP=vA(Xd);function HP(o,l){return Ay(o||[],l||[],vo)}function kP(o,l){return Ay(o||[],l||[],_o)}var DP=vA(function(o){var l=o.length,d=l>1?o[l-1]:e;return d=typeof d=="function"?(o.pop(),d):e,ky(o,d)});function Dy(o){var l=y(o);return l.__chain__=!0,l}function NP(o,l){return l(o),o}function ac(o,l){return l(o)}var MP=er(function(o){var l=o.length,d=l?o[0]:0,B=this.__wrapped__,C=function(Q){return wd(Q,o)};return l>1||this.__actions__.length||!(B instanceof LA)||!tr(d)?this.thru(C):(B=B.slice(d,+d+(l?1:0)),B.__actions__.push({func:ac,args:[C],thisArg:e}),new qt(B,this.__chain__).thru(function(Q){return l&&!Q.length&&Q.push(e),Q}))});function RP(){return Dy(this)}function KP(){return new qt(this.value(),this.__chain__)}function PP(){this.__values__===e&&(this.__values__=qy(this.value()));var o=this.__index__>=this.__values__.length,l=o?e:this.__values__[this.__index__++];return{done:o,value:l}}function VP(){return this}function GP(o){for(var l,d=this;d instanceof Jl;){var B=Ty(d);B.__index__=0,B.__values__=e,l?C.__wrapped__=B:l=B;var C=B;d=d.__wrapped__}return C.__wrapped__=o,l}function WP(){var o=this.__wrapped__;if(o instanceof LA){var l=o;return this.__actions__.length&&(l=new LA(this)),l=l.reverse(),l.__actions__.push({func:ac,args:[Jd],thisArg:e}),new qt(l,this.__chain__)}return this.thru(Jd)}function $P(){return j0(this.__wrapped__,this.__actions__)}var JP=Ac(function(o,l,d){jA.call(o,d)?++o[d]:jn(o,d,1)});function XP(o,l,d){var B=yA(o)?f0:N4;return d&&dt(o,l,d)&&(l=e),B(o,dA(l,3))}function YP(o,l){var d=yA(o)?Lr:k0;return d(o,dA(l,3))}var zP=cy(_y),qP=cy(xy);function ZP(o,l){return $e(lc(o,l),1)}function jP(o,l){return $e(lc(o,l),kA)}function AV(o,l,d){return d=d===e?1:EA(d),$e(lc(o,l),d)}function Ny(o,l){var d=yA(o)?Yt:Nr;return d(o,dA(l,3))}function My(o,l){var d=yA(o)?wR:H0;return d(o,dA(l,3))}var eV=Ac(function(o,l,d){jA.call(o,d)?o[d].push(l):jn(o,d,[l])});function tV(o,l,d,B){o=Qt(o)?o:Es(o),d=d&&!B?EA(d):0;var C=o.length;return d<0&&(d=_e(C+d,0)),hc(o)?d<=C&&o.indexOf(l,d)>-1:!!C&&cs(o,l,d)>-1}var nV=vA(function(o,l,d){var B=-1,C=typeof l=="function",Q=Qt(o)?M(o.length):[];return Nr(o,function(I){Q[++B]=C?Ot(l,I,d):So(I,l,d)}),Q}),rV=Ac(function(o,l,d){jn(o,d,l)});function lc(o,l){var d=yA(o)?fe:P0;return d(o,dA(l,3))}function iV(o,l,d,B){return o==null?[]:(yA(l)||(l=l==null?[]:[l]),d=B?e:d,yA(d)||(d=d==null?[]:[d]),$0(o,l,d))}var sV=Ac(function(o,l,d){o[d?0:1].push(l)},function(){return[[],[]]});function oV(o,l,d){var B=yA(o)?sd:g0,C=arguments.length<3;return B(o,dA(l,4),d,C,Nr)}function aV(o,l,d){var B=yA(o)?CR:g0,C=arguments.length<3;return B(o,dA(l,4),d,C,H0)}function lV(o,l){var d=yA(o)?Lr:k0;return d(o,fc(dA(l,3)))}function cV(o){var l=yA(o)?_0:tK;return l(o)}function uV(o,l,d){(d?dt(o,l,d):l===e)?l=1:l=EA(l);var B=yA(o)?O4:nK;return B(o,l)}function fV(o){var l=yA(o)?L4:iK;return l(o)}function dV(o){if(o==null)return 0;if(Qt(o))return hc(o)?fs(o):o.length;var l=tt(o);return l==z||l==x?o.size:bd(o).length}function hV(o,l,d){var B=yA(o)?od:sK;return d&&dt(o,l,d)&&(l=e),B(o,dA(l,3))}var pV=vA(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]]),$0(o,$e(l,1),[])}),cc=YR||function(){return We.Date.now()};function gV(o,l){if(typeof l!="function")throw new zt(s);return o=EA(o),function(){if(--o<1)return l.apply(this,arguments)}}function Ry(o,l,d){return l=d?e:l,l=o&&l==null?o.length:l,Ar(o,D,e,e,e,e,l)}function Ky(o,l){var d;if(typeof l!="function")throw new zt(s);return o=EA(o),function(){return--o>0&&(d=l.apply(this,arguments)),o<=1&&(l=e),d}}var Yd=vA(function(o,l,d){var B=b;if(d.length){var C=kr(d,Cs(Yd));B|=L}return Ar(o,B,l,d,C)}),Py=vA(function(o,l,d){var B=b|v;if(d.length){var C=kr(d,Cs(Py));B|=L}return Ar(l,B,o,d,C)});function Vy(o,l,d){l=d?e:l;var B=Ar(o,S,e,e,e,e,e,l);return B.placeholder=Vy.placeholder,B}function Gy(o,l,d){l=d?e:l;var B=Ar(o,E,e,e,e,e,e,l);return B.placeholder=Gy.placeholder,B}function Wy(o,l,d){var B,C,Q,I,O,k,G=0,W=!1,J=!1,q=!0;if(typeof o!="function")throw new zt(s);l=en(l)||0,pe(d)&&(W=!!d.leading,J="maxWait"in d,Q=J?_e(en(d.maxWait)||0,l):Q,q="trailing"in d?!!d.trailing:q);function lA(Ee){var gn=B,ir=C;return B=C=e,G=Ee,I=o.apply(ir,gn),I}function hA(Ee){return G=Ee,O=Lo(TA,l),W?lA(Ee):I}function UA(Ee){var gn=Ee-k,ir=Ee-G,cE=l-gn;return J?et(cE,Q-ir):cE}function pA(Ee){var gn=Ee-k,ir=Ee-G;return k===e||gn>=l||gn<0||J&&ir>=Q}function TA(){var Ee=cc();if(pA(Ee))return MA(Ee);O=Lo(TA,UA(Ee))}function MA(Ee){return O=e,q&&B?lA(Ee):(B=C=e,I)}function Dt(){O!==e&&ey(O),G=0,B=k=C=O=e}function ht(){return O===e?I:MA(cc())}function Nt(){var Ee=cc(),gn=pA(Ee);if(B=arguments,C=this,k=Ee,gn){if(O===e)return hA(k);if(J)return ey(O),O=Lo(TA,l),lA(k)}return O===e&&(O=Lo(TA,l)),I}return Nt.cancel=Dt,Nt.flush=ht,Nt}var BV=vA(function(o,l){return L0(o,1,l)}),mV=vA(function(o,l,d){return L0(o,en(l)||0,d)});function wV(o){return Ar(o,N)}function uc(o,l){if(typeof o!="function"||l!=null&&typeof l!="function")throw new zt(s);var d=function(){var B=arguments,C=l?l.apply(this,B):B[0],Q=d.cache;if(Q.has(C))return Q.get(C);var I=o.apply(this,B);return d.cache=Q.set(C,I)||Q,I};return d.cache=new(uc.Cache||Zn),d}uc.Cache=Zn;function fc(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 CV(o){return Ky(2,o)}var yV=oK(function(o,l){l=l.length==1&&yA(l[0])?fe(l[0],Lt(dA())):fe($e(l,1),Lt(dA()));var d=l.length;return vA(function(B){for(var C=-1,Q=et(B.length,d);++C<Q;)B[C]=l[C].call(this,B[C]);return Ot(o,this,B)})}),zd=vA(function(o,l){var d=kr(l,Cs(zd));return Ar(o,L,e,l,d)}),$y=vA(function(o,l){var d=kr(l,Cs($y));return Ar(o,U,e,l,d)}),EV=er(function(o,l){return Ar(o,P,e,e,e,l)});function QV(o,l){if(typeof o!="function")throw new zt(s);return l=l===e?l:EA(l),vA(o,l)}function FV(o,l){if(typeof o!="function")throw new zt(s);return l=l==null?0:_e(EA(l),0),vA(function(d){var B=d[l],C=Kr(d,0,l);return B&&Hr(C,B),Ot(o,this,C)})}function bV(o,l,d){var B=!0,C=!0;if(typeof o!="function")throw new zt(s);return pe(d)&&(B="leading"in d?!!d.leading:B,C="trailing"in d?!!d.trailing:C),Wy(o,l,{leading:B,maxWait:l,trailing:C})}function UV(o){return Ry(o,1)}function vV(o,l){return zd(Ld(l),o)}function IV(){if(!arguments.length)return[];var o=arguments[0];return yA(o)?o:[o]}function SV(o){return Zt(o,m)}function TV(o,l){return l=typeof l=="function"?l:e,Zt(o,m,l)}function _V(o){return Zt(o,p|m)}function xV(o,l){return l=typeof l=="function"?l:e,Zt(o,p|m,l)}function OV(o,l){return l==null||O0(o,l,Ne(l))}function pn(o,l){return o===l||o!==o&&l!==l}var LV=rc(Ed),HV=rc(function(o,l){return o>=l}),Qi=M0(function(){return arguments}())?M0:function(o){return Be(o)&&jA.call(o,"callee")&&!b0.call(o,"callee")},yA=M.isArray,kV=s0?Lt(s0):G4;function Qt(o){return o!=null&&dc(o.length)&&!nr(o)}function ye(o){return Be(o)&&Qt(o)}function DV(o){return o===!0||o===!1||Be(o)&&ft(o)==ct}var Pr=qR||oh,NV=o0?Lt(o0):W4;function MV(o){return Be(o)&&o.nodeType===1&&!Ho(o)}function RV(o){if(o==null)return!0;if(Qt(o)&&(yA(o)||typeof o=="string"||typeof o.splice=="function"||Pr(o)||ys(o)||Qi(o)))return!o.length;var l=tt(o);if(l==z||l==x)return!o.size;if(Oo(o))return!bd(o).length;for(var d in o)if(jA.call(o,d))return!1;return!0}function KV(o,l){return To(o,l)}function PV(o,l,d){d=typeof d=="function"?d:e;var B=d?d(o,l):e;return B===e?To(o,l,e,d):!!B}function qd(o){if(!Be(o))return!1;var l=ft(o);return l==_t||l==ut||typeof o.message=="string"&&typeof o.name=="string"&&!Ho(o)}function VV(o){return typeof o=="number"&&v0(o)}function nr(o){if(!pe(o))return!1;var l=ft(o);return l==xt||l==un||l==he||l==xr}function Jy(o){return typeof o=="number"&&o==EA(o)}function dc(o){return typeof o=="number"&&o>-1&&o%1==0&&o<=rA}function pe(o){var l=typeof o;return o!=null&&(l=="object"||l=="function")}function Be(o){return o!=null&&typeof o=="object"}var Xy=a0?Lt(a0):J4;function GV(o,l){return o===l||Fd(o,l,Kd(l))}function WV(o,l,d){return d=typeof d=="function"?d:e,Fd(o,l,Kd(l),d)}function $V(o){return Yy(o)&&o!=+o}function JV(o){if(TK(o))throw new wA(i);return R0(o)}function XV(o){return o===null}function YV(o){return o==null}function Yy(o){return typeof o=="number"||Be(o)&&ft(o)==bA}function Ho(o){if(!Be(o)||ft(o)!=ve)return!1;var l=Rl(o);if(l===null)return!0;var d=jA.call(l,"constructor")&&l.constructor;return typeof d=="function"&&d instanceof d&&kl.call(d)==WR}var Zd=l0?Lt(l0):X4;function zV(o){return Jy(o)&&o>=-rA&&o<=rA}var zy=c0?Lt(c0):Y4;function hc(o){return typeof o=="string"||!yA(o)&&Be(o)&&ft(o)==$}function kt(o){return typeof o=="symbol"||Be(o)&&ft(o)==oA}var ys=u0?Lt(u0):z4;function qV(o){return o===e}function ZV(o){return Be(o)&&tt(o)==DA}function jV(o){return Be(o)&&ft(o)==VA}var A2=rc(Ud),e2=rc(function(o,l){return o<=l});function qy(o){if(!o)return[];if(Qt(o))return hc(o)?dn(o):Et(o);if(Eo&&o[Eo])return OR(o[Eo]());var l=tt(o),d=l==z?dd:l==x?Ol:Es;return d(o)}function rr(o){if(!o)return o===0?o:0;if(o=en(o),o===kA||o===-kA){var l=o<0?-1:1;return l*BA}return o===o?o:0}function EA(o){var l=rr(o),d=l%1;return l===l?d?l-d:l:0}function Zy(o){return o?wi(EA(o),0,OA):0}function en(o){if(typeof o=="number")return o;if(kt(o))return XA;if(pe(o)){var l=typeof o.valueOf=="function"?o.valueOf():o;o=pe(l)?l+"":l}if(typeof o!="string")return o===0?o:+o;o=B0(o);var d=kM.test(o);return d||NM.test(o)?gR(o.slice(2),d?2:8):HM.test(o)?XA:+o}function jy(o){return xn(o,Ft(o))}function t2(o){return o?wi(EA(o),-rA,rA):o===0?o:0}function YA(o){return o==null?"":Ht(o)}var n2=ms(function(o,l){if(Oo(l)||Qt(l)){xn(l,Ne(l),o);return}for(var d in l)jA.call(l,d)&&vo(o,d,l[d])}),AE=ms(function(o,l){xn(l,Ft(l),o)}),pc=ms(function(o,l,d,B){xn(l,Ft(l),o,B)}),r2=ms(function(o,l,d,B){xn(l,Ne(l),o,B)}),i2=er(wd);function s2(o,l){var d=Bs(o);return l==null?d:x0(d,l)}var o2=vA(function(o,l){o=ie(o);var d=-1,B=l.length,C=B>2?l[2]:e;for(C&&dt(l[0],l[1],C)&&(B=1);++d<B;)for(var Q=l[d],I=Ft(Q),O=-1,k=I.length;++O<k;){var G=I[O],W=o[G];(W===e||pn(W,hs[G])&&!jA.call(o,G))&&(o[G]=Q[G])}return o}),a2=vA(function(o){return o.push(e,By),Ot(eE,e,o)});function l2(o,l){return d0(o,dA(l,3),_n)}function c2(o,l){return d0(o,dA(l,3),yd)}function u2(o,l){return o==null?o:Cd(o,dA(l,3),Ft)}function f2(o,l){return o==null?o:D0(o,dA(l,3),Ft)}function d2(o,l){return o&&_n(o,dA(l,3))}function h2(o,l){return o&&yd(o,dA(l,3))}function p2(o){return o==null?[]:zl(o,Ne(o))}function g2(o){return o==null?[]:zl(o,Ft(o))}function jd(o,l,d){var B=o==null?e:Ci(o,l);return B===e?d:B}function B2(o,l){return o!=null&&Cy(o,l,R4)}function Ah(o,l){return o!=null&&Cy(o,l,K4)}var m2=fy(function(o,l,d){l!=null&&typeof l.toString!="function"&&(l=Dl.call(l)),o[l]=d},th(bt)),w2=fy(function(o,l,d){l!=null&&typeof l.toString!="function"&&(l=Dl.call(l)),jA.call(o,l)?o[l].push(d):o[l]=[d]},dA),C2=vA(So);function Ne(o){return Qt(o)?T0(o):bd(o)}function Ft(o){return Qt(o)?T0(o,!0):q4(o)}function y2(o,l){var d={};return l=dA(l,3),_n(o,function(B,C,Q){jn(d,l(B,C,Q),B)}),d}function E2(o,l){var d={};return l=dA(l,3),_n(o,function(B,C,Q){jn(d,C,l(B,C,Q))}),d}var Q2=ms(function(o,l,d){ql(o,l,d)}),eE=ms(function(o,l,d,B){ql(o,l,d,B)}),F2=er(function(o,l){var d={};if(o==null)return d;var B=!1;l=fe(l,function(Q){return Q=Rr(Q,o),B||(B=Q.length>1),Q}),xn(o,Md(o),d),B&&(d=Zt(d,p|g|m,mK));for(var C=l.length;C--;)_d(d,l[C]);return d});function b2(o,l){return tE(o,fc(dA(l)))}var U2=er(function(o,l){return o==null?{}:j4(o,l)});function tE(o,l){if(o==null)return{};var d=fe(Md(o),function(B){return[B]});return l=dA(l),J0(o,d,function(B,C){return l(B,C[0])})}function v2(o,l,d){l=Rr(l,o);var B=-1,C=l.length;for(C||(C=1,o=e);++B<C;){var Q=o==null?e:o[On(l[B])];Q===e&&(B=C,Q=d),o=nr(Q)?Q.call(o):Q}return o}function I2(o,l,d){return o==null?o:_o(o,l,d)}function S2(o,l,d,B){return B=typeof B=="function"?B:e,o==null?o:_o(o,l,d,B)}var nE=py(Ne),rE=py(Ft);function T2(o,l,d){var B=yA(o),C=B||Pr(o)||ys(o);if(l=dA(l,4),d==null){var Q=o&&o.constructor;C?d=B?new Q:[]:pe(o)?d=nr(Q)?Bs(Rl(o)):{}:d={}}return(C?Yt:_n)(o,function(I,O,k){return l(d,I,O,k)}),d}function _2(o,l){return o==null?!0:_d(o,l)}function x2(o,l,d){return o==null?o:Z0(o,l,Ld(d))}function O2(o,l,d,B){return B=typeof B=="function"?B:e,o==null?o:Z0(o,l,Ld(d),B)}function Es(o){return o==null?[]:fd(o,Ne(o))}function L2(o){return o==null?[]:fd(o,Ft(o))}function H2(o,l,d){return d===e&&(d=l,l=e),d!==e&&(d=en(d),d=d===d?d:0),l!==e&&(l=en(l),l=l===l?l:0),wi(en(o),l,d)}function k2(o,l,d){return l=rr(l),d===e?(d=l,l=0):d=rr(d),o=en(o),P4(o,l,d)}function D2(o,l,d){if(d&&typeof d!="boolean"&&dt(o,l,d)&&(l=d=e),d===e&&(typeof l=="boolean"?(d=l,l=e):typeof o=="boolean"&&(d=o,o=e)),o===e&&l===e?(o=0,l=1):(o=rr(o),l===e?(l=o,o=0):l=rr(l)),o>l){var B=o;o=l,l=B}if(d||o%1||l%1){var C=I0();return et(o+C*(l-o+pR("1e-"+((C+"").length-1))),l)}return Id(o,l)}var N2=ws(function(o,l,d){return l=l.toLowerCase(),o+(d?iE(l):l)});function iE(o){return eh(YA(o).toLowerCase())}function sE(o){return o=YA(o),o&&o.replace(RM,IR).replace(iR,"")}function M2(o,l,d){o=YA(o),l=Ht(l);var B=o.length;d=d===e?B:wi(EA(d),0,B);var C=d;return d-=l.length,d>=0&&o.slice(d,C)==l}function R2(o){return o=YA(o),o&&wo.test(o)?o.replace(mo,SR):o}function K2(o){return o=YA(o),o&&UM.test(o)?o.replace(zf,"\\$&"):o}var P2=ws(function(o,l,d){return o+(d?"-":"")+l.toLowerCase()}),V2=ws(function(o,l,d){return o+(d?" ":"")+l.toLowerCase()}),G2=ly("toLowerCase");function W2(o,l,d){o=YA(o),l=EA(l);var B=l?fs(o):0;if(!l||B>=l)return o;var C=(l-B)/2;return nc(Gl(C),d)+o+nc(Vl(C),d)}function $2(o,l,d){o=YA(o),l=EA(l);var B=l?fs(o):0;return l&&B<l?o+nc(l-B,d):o}function J2(o,l,d){o=YA(o),l=EA(l);var B=l?fs(o):0;return l&&B<l?nc(l-B,d)+o:o}function X2(o,l,d){return d||l==null?l=0:l&&(l=+l),e4(YA(o).replace(qf,""),l||0)}function Y2(o,l,d){return(d?dt(o,l,d):l===e)?l=1:l=EA(l),Sd(YA(o),l)}function z2(){var o=arguments,l=YA(o[0]);return o.length<3?l:l.replace(o[1],o[2])}var q2=ws(function(o,l,d){return o+(d?"_":"")+l.toLowerCase()});function Z2(o,l,d){return d&&typeof d!="number"&&dt(o,l,d)&&(l=d=e),d=d===e?OA:d>>>0,d?(o=YA(o),o&&(typeof l=="string"||l!=null&&!Zd(l))&&(l=Ht(l),!l&&us(o))?Kr(dn(o),0,d):o.split(l,d)):[]}var j2=ws(function(o,l,d){return o+(d?" ":"")+eh(l)});function AG(o,l,d){return o=YA(o),d=d==null?0:wi(EA(d),0,o.length),l=Ht(l),o.slice(d,d+l.length)==l}function eG(o,l,d){var B=y.templateSettings;d&&dt(o,l,d)&&(l=e),o=YA(o),l=pc({},l,B,gy);var C=pc({},l.imports,B.imports,gy),Q=Ne(C),I=fd(C,Q),O,k,G=0,W=l.interpolate||Il,J="__p += '",q=hd((l.escape||Il).source+"|"+W.source+"|"+(W===vl?LM:Il).source+"|"+(l.evaluate||Il).source+"|$","g"),lA="//# sourceURL="+(jA.call(l,"sourceURL")?(l.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++cR+"]")+`
146
- `;o.replace(q,function(pA,TA,MA,Dt,ht,Nt){return MA||(MA=Dt),J+=o.slice(G,Nt).replace(KM,TR),TA&&(O=!0,J+=`' +
145
+ `)}function UK(o){return yA(o)||Qi(o)||!!(U0&&o&&o[U0])}function tr(o,l){var d=typeof o;return l=l??rA,!!l&&(d=="number"||d!="symbol"&&NM.test(o))&&o>-1&&o%1==0&&o<l}function dt(o,l,d){if(!pe(d))return!1;var B=typeof l;return(B=="number"?Qt(d)&&tr(l,d.length):B=="string"&&l in d)?pn(d[l],o):!1}function Vd(o,l){if(yA(o))return!1;var d=typeof o;return d=="number"||d=="symbol"||d=="boolean"||o==null||kt(o)?!0:as.test(o)||!Co.test(o)||l!=null&&o in ie(l)}function vK(o){var l=typeof o;return l=="string"||l=="number"||l=="symbol"||l=="boolean"?o!=="__proto__":o===null}function Gd(o){var l=ic(o),d=y[l];if(typeof d!="function"||!(l in LA.prototype))return!1;if(o===d)return!0;var B=Rd(d);return!!B&&o===B[0]}function IK(o){return!!E0&&E0 in o}var SK=Hl?nr:oh;function Oo(o){var l=o&&o.constructor,d=typeof l=="function"&&l.prototype||hs;return o===d}function Ey(o){return o===o&&!pe(o)}function Qy(o,l){return function(d){return d==null?!1:d[o]===l&&(l!==e||o in ie(d))}}function TK(o){var l=uc(o,function(B){return d.size===u&&d.clear(),B}),d=l.cache;return l}function _K(o,l){var d=o[1],B=l[1],C=d|B,Q=C<(b|v|D),I=B==D&&d==S||B==D&&d==P&&o[7].length<=l[8]||B==(D|P)&&l[7].length<=l[8]&&d==S;if(!(Q||I))return o;B&b&&(o[2]=l[2],C|=d&b?0:_);var O=l[3];if(O){var k=o[3];o[3]=k?iy(k,O,l[4]):O,o[4]=k?kr(o[3],f):l[4]}return O=l[5],O&&(k=o[5],o[5]=k?sy(k,O,l[6]):O,o[6]=k?kr(o[5],f):l[6]),O=l[7],O&&(o[7]=O),B&D&&(o[8]=o[8]==null?l[8]:et(o[8],l[8])),o[9]==null&&(o[9]=l[9]),o[0]=l[0],o[1]=C,o}function xK(o){var l=[];if(o!=null)for(var d in ie(o))l.push(d);return l}function OK(o){return Dl.call(o)}function Fy(o,l,d){return l=_e(l===e?o.length-1:l,0),function(){for(var B=arguments,C=-1,Q=_e(B.length-l,0),I=M(Q);++C<Q;)I[C]=B[l+C];C=-1;for(var O=M(l+1);++C<l;)O[C]=B[C];return O[l]=d(I),Ot(o,this,O)}}function by(o,l){return l.length<2?o:Ci(o,jt(l,0,-1))}function LK(o,l){for(var d=o.length,B=et(l.length,d),C=Et(o);B--;){var Q=l[B];o[B]=tr(Q,d)?C[Q]:e}return o}function Wd(o,l){if(!(l==="constructor"&&typeof o[l]=="function")&&l!="__proto__")return o[l]}var Uy=Iy(Y0),Lo=YR||function(o,l){return We.setTimeout(o,l)},$d=Iy(nK);function vy(o,l,d){var B=l+"";return $d(o,bK(B,HK(EK(B),d)))}function Iy(o){var l=0,d=0;return function(){var B=jR(),C=cA-(B-d);if(d=B,C>0){if(++l>=nA)return arguments[0]}else l=0;return o.apply(e,arguments)}}function oc(o,l){var d=-1,B=o.length,C=B-1;for(l=l===e?B:l;++d<l;){var Q=Id(d,C),I=o[Q];o[Q]=o[d],o[d]=I}return o.length=l,o}var Sy=TK(function(o){var l=[];return o.charCodeAt(0)===46&&l.push(""),o.replace(FM,function(d,B,C,Q){l.push(C?Q.replace(xM,"$1"):B||d)}),l});function On(o){if(typeof o=="string"||kt(o))return o;var l=o+"";return l=="0"&&1/o==-kA?"-0":l}function Ei(o){if(o!=null){try{return kl.call(o)}catch{}try{return o+""}catch{}}return""}function HK(o,l){return Yt(zA,function(d){var B="_."+d[0];l&d[1]&&!_l(o,B)&&o.push(B)}),o.sort()}function Ty(o){if(o instanceof LA)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 kK(o,l,d){(d?dt(o,l,d):l===e)?l=1:l=_e(EA(l),0);var B=o==null?0:o.length;if(!B||l<1)return[];for(var C=0,Q=0,I=M(Vl(B/l));C<B;)I[Q++]=jt(o,C,C+=l);return I}function DK(o){for(var l=-1,d=o==null?0:o.length,B=0,C=[];++l<d;){var Q=o[l];Q&&(C[B++]=Q)}return C}function NK(){var o=arguments.length;if(!o)return[];for(var l=M(o-1),d=arguments[0],B=o;B--;)l[B-1]=arguments[B];return Hr(yA(d)?Et(d):[d],$e(l,1))}var MK=vA(function(o,l){return ye(o)?Io(o,$e(l,1,ye,!0)):[]}),RK=vA(function(o,l){var d=An(l);return ye(d)&&(d=e),ye(o)?Io(o,$e(l,1,ye,!0),dA(d,2)):[]}),KK=vA(function(o,l){var d=An(l);return ye(d)&&(d=e),ye(o)?Io(o,$e(l,1,ye,!0),e,d):[]});function PK(o,l,d){var B=o==null?0:o.length;return B?(l=d||l===e?1:EA(l),jt(o,l<0?0:l,B)):[]}function VK(o,l,d){var B=o==null?0:o.length;return B?(l=d||l===e?1:EA(l),l=B-l,jt(o,0,l<0?0:l)):[]}function GK(o,l){return o&&o.length?jl(o,dA(l,3),!0,!0):[]}function WK(o,l){return o&&o.length?jl(o,dA(l,3),!0):[]}function $K(o,l,d,B){var C=o==null?0:o.length;return C?(d&&typeof d!="number"&&dt(o,l,d)&&(d=0,B=C),N4(o,l,d,B)):[]}function _y(o,l,d){var B=o==null?0:o.length;if(!B)return-1;var C=d==null?0:EA(d);return C<0&&(C=_e(B+C,0)),xl(o,dA(l,3),C)}function xy(o,l,d){var B=o==null?0:o.length;if(!B)return-1;var C=B-1;return d!==e&&(C=EA(d),C=d<0?_e(B+C,0):et(C,B-1)),xl(o,dA(l,3),C,!0)}function Oy(o){var l=o==null?0:o.length;return l?$e(o,1):[]}function JK(o){var l=o==null?0:o.length;return l?$e(o,kA):[]}function XK(o,l){var d=o==null?0:o.length;return d?(l=l===e?1:EA(l),$e(o,l)):[]}function YK(o){for(var l=-1,d=o==null?0:o.length,B={};++l<d;){var C=o[l];B[C[0]]=C[1]}return B}function Ly(o){return o&&o.length?o[0]:e}function zK(o,l,d){var B=o==null?0:o.length;if(!B)return-1;var C=d==null?0:EA(d);return C<0&&(C=_e(B+C,0)),cs(o,l,C)}function qK(o){var l=o==null?0:o.length;return l?jt(o,0,-1):[]}var ZK=vA(function(o){var l=fe(o,Od);return l.length&&l[0]===o[0]?Qd(l):[]}),jK=vA(function(o){var l=An(o),d=fe(o,Od);return l===An(d)?l=e:d.pop(),d.length&&d[0]===o[0]?Qd(d,dA(l,2)):[]}),AP=vA(function(o){var l=An(o),d=fe(o,Od);return l=typeof l=="function"?l:e,l&&d.pop(),d.length&&d[0]===o[0]?Qd(d,e,l):[]});function eP(o,l){return o==null?"":qR.call(o,l)}function An(o){var l=o==null?0:o.length;return l?o[l-1]:e}function tP(o,l,d){var B=o==null?0:o.length;if(!B)return-1;var C=B;return d!==e&&(C=EA(d),C=C<0?_e(B+C,0):et(C,B-1)),l===l?HR(o,l,C):xl(o,h0,C,!0)}function nP(o,l){return o&&o.length?W0(o,EA(l)):e}var rP=vA(Hy);function Hy(o,l){return o&&o.length&&l&&l.length?vd(o,l):o}function iP(o,l,d){return o&&o.length&&l&&l.length?vd(o,l,dA(d,2)):o}function sP(o,l,d){return o&&o.length&&l&&l.length?vd(o,l,e,d):o}var oP=er(function(o,l){var d=o==null?0:o.length,B=wd(o,l);return X0(o,fe(l,function(C){return tr(C,d)?+C:C}).sort(ry)),B});function aP(o,l){var d=[];if(!(o&&o.length))return d;var B=-1,C=[],Q=o.length;for(l=dA(l,3);++B<Q;){var I=o[B];l(I,B,o)&&(d.push(I),C.push(B))}return X0(o,C),d}function Jd(o){return o==null?o:e4.call(o)}function lP(o,l,d){var B=o==null?0:o.length;return B?(d&&typeof d!="number"&&dt(o,l,d)?(l=0,d=B):(l=l==null?0:EA(l),d=d===e?B:EA(d)),jt(o,l,d)):[]}function cP(o,l){return Zl(o,l)}function uP(o,l,d){return Td(o,l,dA(d,2))}function fP(o,l){var d=o==null?0:o.length;if(d){var B=Zl(o,l);if(B<d&&pn(o[B],l))return B}return-1}function dP(o,l){return Zl(o,l,!0)}function hP(o,l,d){return Td(o,l,dA(d,2),!0)}function pP(o,l){var d=o==null?0:o.length;if(d){var B=Zl(o,l,!0)-1;if(pn(o[B],l))return B}return-1}function gP(o){return o&&o.length?z0(o):[]}function BP(o,l){return o&&o.length?z0(o,dA(l,2)):[]}function mP(o){var l=o==null?0:o.length;return l?jt(o,1,l):[]}function wP(o,l,d){return o&&o.length?(l=d||l===e?1:EA(l),jt(o,0,l<0?0:l)):[]}function CP(o,l,d){var B=o==null?0:o.length;return B?(l=d||l===e?1:EA(l),l=B-l,jt(o,l<0?0:l,B)):[]}function yP(o,l){return o&&o.length?jl(o,dA(l,3),!1,!0):[]}function EP(o,l){return o&&o.length?jl(o,dA(l,3)):[]}var QP=vA(function(o){return Mr($e(o,1,ye,!0))}),FP=vA(function(o){var l=An(o);return ye(l)&&(l=e),Mr($e(o,1,ye,!0),dA(l,2))}),bP=vA(function(o){var l=An(o);return l=typeof l=="function"?l:e,Mr($e(o,1,ye,!0),e,l)});function UP(o){return o&&o.length?Mr(o):[]}function vP(o,l){return o&&o.length?Mr(o,dA(l,2)):[]}function IP(o,l){return l=typeof l=="function"?l:e,o&&o.length?Mr(o,e,l):[]}function Xd(o){if(!(o&&o.length))return[];var l=0;return o=Lr(o,function(d){if(ye(d))return l=_e(d.length,l),!0}),ud(l,function(d){return fe(o,ad(d))})}function ky(o,l){if(!(o&&o.length))return[];var d=Xd(o);return l==null?d:fe(d,function(B){return Ot(l,e,B)})}var SP=vA(function(o,l){return ye(o)?Io(o,l):[]}),TP=vA(function(o){return xd(Lr(o,ye))}),_P=vA(function(o){var l=An(o);return ye(l)&&(l=e),xd(Lr(o,ye),dA(l,2))}),xP=vA(function(o){var l=An(o);return l=typeof l=="function"?l:e,xd(Lr(o,ye),e,l)}),OP=vA(Xd);function LP(o,l){return Ay(o||[],l||[],vo)}function HP(o,l){return Ay(o||[],l||[],_o)}var kP=vA(function(o){var l=o.length,d=l>1?o[l-1]:e;return d=typeof d=="function"?(o.pop(),d):e,ky(o,d)});function Dy(o){var l=y(o);return l.__chain__=!0,l}function DP(o,l){return l(o),o}function ac(o,l){return l(o)}var NP=er(function(o){var l=o.length,d=l?o[0]:0,B=this.__wrapped__,C=function(Q){return wd(Q,o)};return l>1||this.__actions__.length||!(B instanceof LA)||!tr(d)?this.thru(C):(B=B.slice(d,+d+(l?1:0)),B.__actions__.push({func:ac,args:[C],thisArg:e}),new qt(B,this.__chain__).thru(function(Q){return l&&!Q.length&&Q.push(e),Q}))});function MP(){return Dy(this)}function RP(){return new qt(this.value(),this.__chain__)}function KP(){this.__values__===e&&(this.__values__=qy(this.value()));var o=this.__index__>=this.__values__.length,l=o?e:this.__values__[this.__index__++];return{done:o,value:l}}function PP(){return this}function VP(o){for(var l,d=this;d instanceof Jl;){var B=Ty(d);B.__index__=0,B.__values__=e,l?C.__wrapped__=B:l=B;var C=B;d=d.__wrapped__}return C.__wrapped__=o,l}function GP(){var o=this.__wrapped__;if(o instanceof LA){var l=o;return this.__actions__.length&&(l=new LA(this)),l=l.reverse(),l.__actions__.push({func:ac,args:[Jd],thisArg:e}),new qt(l,this.__chain__)}return this.thru(Jd)}function WP(){return j0(this.__wrapped__,this.__actions__)}var $P=Ac(function(o,l,d){jA.call(o,d)?++o[d]:jn(o,d,1)});function JP(o,l,d){var B=yA(o)?f0:D4;return d&&dt(o,l,d)&&(l=e),B(o,dA(l,3))}function XP(o,l){var d=yA(o)?Lr:k0;return d(o,dA(l,3))}var YP=cy(_y),zP=cy(xy);function qP(o,l){return $e(lc(o,l),1)}function ZP(o,l){return $e(lc(o,l),kA)}function jP(o,l,d){return d=d===e?1:EA(d),$e(lc(o,l),d)}function Ny(o,l){var d=yA(o)?Yt:Nr;return d(o,dA(l,3))}function My(o,l){var d=yA(o)?mR:H0;return d(o,dA(l,3))}var AV=Ac(function(o,l,d){jA.call(o,d)?o[d].push(l):jn(o,d,[l])});function eV(o,l,d,B){o=Qt(o)?o:Es(o),d=d&&!B?EA(d):0;var C=o.length;return d<0&&(d=_e(C+d,0)),hc(o)?d<=C&&o.indexOf(l,d)>-1:!!C&&cs(o,l,d)>-1}var tV=vA(function(o,l,d){var B=-1,C=typeof l=="function",Q=Qt(o)?M(o.length):[];return Nr(o,function(I){Q[++B]=C?Ot(l,I,d):So(I,l,d)}),Q}),nV=Ac(function(o,l,d){jn(o,d,l)});function lc(o,l){var d=yA(o)?fe:P0;return d(o,dA(l,3))}function rV(o,l,d,B){return o==null?[]:(yA(l)||(l=l==null?[]:[l]),d=B?e:d,yA(d)||(d=d==null?[]:[d]),$0(o,l,d))}var iV=Ac(function(o,l,d){o[d?0:1].push(l)},function(){return[[],[]]});function sV(o,l,d){var B=yA(o)?sd:g0,C=arguments.length<3;return B(o,dA(l,4),d,C,Nr)}function oV(o,l,d){var B=yA(o)?wR:g0,C=arguments.length<3;return B(o,dA(l,4),d,C,H0)}function aV(o,l){var d=yA(o)?Lr:k0;return d(o,fc(dA(l,3)))}function lV(o){var l=yA(o)?_0:eK;return l(o)}function cV(o,l,d){(d?dt(o,l,d):l===e)?l=1:l=EA(l);var B=yA(o)?x4:tK;return B(o,l)}function uV(o){var l=yA(o)?O4:rK;return l(o)}function fV(o){if(o==null)return 0;if(Qt(o))return hc(o)?fs(o):o.length;var l=tt(o);return l==z||l==x?o.size:bd(o).length}function dV(o,l,d){var B=yA(o)?od:iK;return d&&dt(o,l,d)&&(l=e),B(o,dA(l,3))}var hV=vA(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]]),$0(o,$e(l,1),[])}),cc=XR||function(){return We.Date.now()};function pV(o,l){if(typeof l!="function")throw new zt(s);return o=EA(o),function(){if(--o<1)return l.apply(this,arguments)}}function Ry(o,l,d){return l=d?e:l,l=o&&l==null?o.length:l,Ar(o,D,e,e,e,e,l)}function Ky(o,l){var d;if(typeof l!="function")throw new zt(s);return o=EA(o),function(){return--o>0&&(d=l.apply(this,arguments)),o<=1&&(l=e),d}}var Yd=vA(function(o,l,d){var B=b;if(d.length){var C=kr(d,Cs(Yd));B|=L}return Ar(o,B,l,d,C)}),Py=vA(function(o,l,d){var B=b|v;if(d.length){var C=kr(d,Cs(Py));B|=L}return Ar(l,B,o,d,C)});function Vy(o,l,d){l=d?e:l;var B=Ar(o,S,e,e,e,e,e,l);return B.placeholder=Vy.placeholder,B}function Gy(o,l,d){l=d?e:l;var B=Ar(o,E,e,e,e,e,e,l);return B.placeholder=Gy.placeholder,B}function Wy(o,l,d){var B,C,Q,I,O,k,G=0,W=!1,J=!1,q=!0;if(typeof o!="function")throw new zt(s);l=en(l)||0,pe(d)&&(W=!!d.leading,J="maxWait"in d,Q=J?_e(en(d.maxWait)||0,l):Q,q="trailing"in d?!!d.trailing:q);function lA(Ee){var gn=B,ir=C;return B=C=e,G=Ee,I=o.apply(ir,gn),I}function hA(Ee){return G=Ee,O=Lo(TA,l),W?lA(Ee):I}function UA(Ee){var gn=Ee-k,ir=Ee-G,cE=l-gn;return J?et(cE,Q-ir):cE}function pA(Ee){var gn=Ee-k,ir=Ee-G;return k===e||gn>=l||gn<0||J&&ir>=Q}function TA(){var Ee=cc();if(pA(Ee))return MA(Ee);O=Lo(TA,UA(Ee))}function MA(Ee){return O=e,q&&B?lA(Ee):(B=C=e,I)}function Dt(){O!==e&&ey(O),G=0,B=k=C=O=e}function ht(){return O===e?I:MA(cc())}function Nt(){var Ee=cc(),gn=pA(Ee);if(B=arguments,C=this,k=Ee,gn){if(O===e)return hA(k);if(J)return ey(O),O=Lo(TA,l),lA(k)}return O===e&&(O=Lo(TA,l)),I}return Nt.cancel=Dt,Nt.flush=ht,Nt}var gV=vA(function(o,l){return L0(o,1,l)}),BV=vA(function(o,l,d){return L0(o,en(l)||0,d)});function mV(o){return Ar(o,N)}function uc(o,l){if(typeof o!="function"||l!=null&&typeof l!="function")throw new zt(s);var d=function(){var B=arguments,C=l?l.apply(this,B):B[0],Q=d.cache;if(Q.has(C))return Q.get(C);var I=o.apply(this,B);return d.cache=Q.set(C,I)||Q,I};return d.cache=new(uc.Cache||Zn),d}uc.Cache=Zn;function fc(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 wV(o){return Ky(2,o)}var CV=sK(function(o,l){l=l.length==1&&yA(l[0])?fe(l[0],Lt(dA())):fe($e(l,1),Lt(dA()));var d=l.length;return vA(function(B){for(var C=-1,Q=et(B.length,d);++C<Q;)B[C]=l[C].call(this,B[C]);return Ot(o,this,B)})}),zd=vA(function(o,l){var d=kr(l,Cs(zd));return Ar(o,L,e,l,d)}),$y=vA(function(o,l){var d=kr(l,Cs($y));return Ar(o,U,e,l,d)}),yV=er(function(o,l){return Ar(o,P,e,e,e,l)});function EV(o,l){if(typeof o!="function")throw new zt(s);return l=l===e?l:EA(l),vA(o,l)}function QV(o,l){if(typeof o!="function")throw new zt(s);return l=l==null?0:_e(EA(l),0),vA(function(d){var B=d[l],C=Kr(d,0,l);return B&&Hr(C,B),Ot(o,this,C)})}function FV(o,l,d){var B=!0,C=!0;if(typeof o!="function")throw new zt(s);return pe(d)&&(B="leading"in d?!!d.leading:B,C="trailing"in d?!!d.trailing:C),Wy(o,l,{leading:B,maxWait:l,trailing:C})}function bV(o){return Ry(o,1)}function UV(o,l){return zd(Ld(l),o)}function vV(){if(!arguments.length)return[];var o=arguments[0];return yA(o)?o:[o]}function IV(o){return Zt(o,m)}function SV(o,l){return l=typeof l=="function"?l:e,Zt(o,m,l)}function TV(o){return Zt(o,p|m)}function _V(o,l){return l=typeof l=="function"?l:e,Zt(o,p|m,l)}function xV(o,l){return l==null||O0(o,l,Ne(l))}function pn(o,l){return o===l||o!==o&&l!==l}var OV=rc(Ed),LV=rc(function(o,l){return o>=l}),Qi=M0(function(){return arguments}())?M0:function(o){return Be(o)&&jA.call(o,"callee")&&!b0.call(o,"callee")},yA=M.isArray,HV=s0?Lt(s0):V4;function Qt(o){return o!=null&&dc(o.length)&&!nr(o)}function ye(o){return Be(o)&&Qt(o)}function kV(o){return o===!0||o===!1||Be(o)&&ft(o)==ct}var Pr=zR||oh,DV=o0?Lt(o0):G4;function NV(o){return Be(o)&&o.nodeType===1&&!Ho(o)}function MV(o){if(o==null)return!0;if(Qt(o)&&(yA(o)||typeof o=="string"||typeof o.splice=="function"||Pr(o)||ys(o)||Qi(o)))return!o.length;var l=tt(o);if(l==z||l==x)return!o.size;if(Oo(o))return!bd(o).length;for(var d in o)if(jA.call(o,d))return!1;return!0}function RV(o,l){return To(o,l)}function KV(o,l,d){d=typeof d=="function"?d:e;var B=d?d(o,l):e;return B===e?To(o,l,e,d):!!B}function qd(o){if(!Be(o))return!1;var l=ft(o);return l==_t||l==ut||typeof o.message=="string"&&typeof o.name=="string"&&!Ho(o)}function PV(o){return typeof o=="number"&&v0(o)}function nr(o){if(!pe(o))return!1;var l=ft(o);return l==xt||l==un||l==he||l==xr}function Jy(o){return typeof o=="number"&&o==EA(o)}function dc(o){return typeof o=="number"&&o>-1&&o%1==0&&o<=rA}function pe(o){var l=typeof o;return o!=null&&(l=="object"||l=="function")}function Be(o){return o!=null&&typeof o=="object"}var Xy=a0?Lt(a0):$4;function VV(o,l){return o===l||Fd(o,l,Kd(l))}function GV(o,l,d){return d=typeof d=="function"?d:e,Fd(o,l,Kd(l),d)}function WV(o){return Yy(o)&&o!=+o}function $V(o){if(SK(o))throw new wA(i);return R0(o)}function JV(o){return o===null}function XV(o){return o==null}function Yy(o){return typeof o=="number"||Be(o)&&ft(o)==bA}function Ho(o){if(!Be(o)||ft(o)!=ve)return!1;var l=Rl(o);if(l===null)return!0;var d=jA.call(l,"constructor")&&l.constructor;return typeof d=="function"&&d instanceof d&&kl.call(d)==GR}var Zd=l0?Lt(l0):J4;function YV(o){return Jy(o)&&o>=-rA&&o<=rA}var zy=c0?Lt(c0):X4;function hc(o){return typeof o=="string"||!yA(o)&&Be(o)&&ft(o)==$}function kt(o){return typeof o=="symbol"||Be(o)&&ft(o)==oA}var ys=u0?Lt(u0):Y4;function zV(o){return o===e}function qV(o){return Be(o)&&tt(o)==DA}function ZV(o){return Be(o)&&ft(o)==VA}var jV=rc(Ud),A2=rc(function(o,l){return o<=l});function qy(o){if(!o)return[];if(Qt(o))return hc(o)?dn(o):Et(o);if(Eo&&o[Eo])return xR(o[Eo]());var l=tt(o),d=l==z?dd:l==x?Ol:Es;return d(o)}function rr(o){if(!o)return o===0?o:0;if(o=en(o),o===kA||o===-kA){var l=o<0?-1:1;return l*BA}return o===o?o:0}function EA(o){var l=rr(o),d=l%1;return l===l?d?l-d:l:0}function Zy(o){return o?wi(EA(o),0,OA):0}function en(o){if(typeof o=="number")return o;if(kt(o))return XA;if(pe(o)){var l=typeof o.valueOf=="function"?o.valueOf():o;o=pe(l)?l+"":l}if(typeof o!="string")return o===0?o:+o;o=B0(o);var d=HM.test(o);return d||DM.test(o)?pR(o.slice(2),d?2:8):LM.test(o)?XA:+o}function jy(o){return xn(o,Ft(o))}function e2(o){return o?wi(EA(o),-rA,rA):o===0?o:0}function YA(o){return o==null?"":Ht(o)}var t2=ms(function(o,l){if(Oo(l)||Qt(l)){xn(l,Ne(l),o);return}for(var d in l)jA.call(l,d)&&vo(o,d,l[d])}),AE=ms(function(o,l){xn(l,Ft(l),o)}),pc=ms(function(o,l,d,B){xn(l,Ft(l),o,B)}),n2=ms(function(o,l,d,B){xn(l,Ne(l),o,B)}),r2=er(wd);function i2(o,l){var d=Bs(o);return l==null?d:x0(d,l)}var s2=vA(function(o,l){o=ie(o);var d=-1,B=l.length,C=B>2?l[2]:e;for(C&&dt(l[0],l[1],C)&&(B=1);++d<B;)for(var Q=l[d],I=Ft(Q),O=-1,k=I.length;++O<k;){var G=I[O],W=o[G];(W===e||pn(W,hs[G])&&!jA.call(o,G))&&(o[G]=Q[G])}return o}),o2=vA(function(o){return o.push(e,By),Ot(eE,e,o)});function a2(o,l){return d0(o,dA(l,3),_n)}function l2(o,l){return d0(o,dA(l,3),yd)}function c2(o,l){return o==null?o:Cd(o,dA(l,3),Ft)}function u2(o,l){return o==null?o:D0(o,dA(l,3),Ft)}function f2(o,l){return o&&_n(o,dA(l,3))}function d2(o,l){return o&&yd(o,dA(l,3))}function h2(o){return o==null?[]:zl(o,Ne(o))}function p2(o){return o==null?[]:zl(o,Ft(o))}function jd(o,l,d){var B=o==null?e:Ci(o,l);return B===e?d:B}function g2(o,l){return o!=null&&Cy(o,l,M4)}function Ah(o,l){return o!=null&&Cy(o,l,R4)}var B2=fy(function(o,l,d){l!=null&&typeof l.toString!="function"&&(l=Dl.call(l)),o[l]=d},th(bt)),m2=fy(function(o,l,d){l!=null&&typeof l.toString!="function"&&(l=Dl.call(l)),jA.call(o,l)?o[l].push(d):o[l]=[d]},dA),w2=vA(So);function Ne(o){return Qt(o)?T0(o):bd(o)}function Ft(o){return Qt(o)?T0(o,!0):z4(o)}function C2(o,l){var d={};return l=dA(l,3),_n(o,function(B,C,Q){jn(d,l(B,C,Q),B)}),d}function y2(o,l){var d={};return l=dA(l,3),_n(o,function(B,C,Q){jn(d,C,l(B,C,Q))}),d}var E2=ms(function(o,l,d){ql(o,l,d)}),eE=ms(function(o,l,d,B){ql(o,l,d,B)}),Q2=er(function(o,l){var d={};if(o==null)return d;var B=!1;l=fe(l,function(Q){return Q=Rr(Q,o),B||(B=Q.length>1),Q}),xn(o,Md(o),d),B&&(d=Zt(d,p|g|m,BK));for(var C=l.length;C--;)_d(d,l[C]);return d});function F2(o,l){return tE(o,fc(dA(l)))}var b2=er(function(o,l){return o==null?{}:Z4(o,l)});function tE(o,l){if(o==null)return{};var d=fe(Md(o),function(B){return[B]});return l=dA(l),J0(o,d,function(B,C){return l(B,C[0])})}function U2(o,l,d){l=Rr(l,o);var B=-1,C=l.length;for(C||(C=1,o=e);++B<C;){var Q=o==null?e:o[On(l[B])];Q===e&&(B=C,Q=d),o=nr(Q)?Q.call(o):Q}return o}function v2(o,l,d){return o==null?o:_o(o,l,d)}function I2(o,l,d,B){return B=typeof B=="function"?B:e,o==null?o:_o(o,l,d,B)}var nE=py(Ne),rE=py(Ft);function S2(o,l,d){var B=yA(o),C=B||Pr(o)||ys(o);if(l=dA(l,4),d==null){var Q=o&&o.constructor;C?d=B?new Q:[]:pe(o)?d=nr(Q)?Bs(Rl(o)):{}:d={}}return(C?Yt:_n)(o,function(I,O,k){return l(d,I,O,k)}),d}function T2(o,l){return o==null?!0:_d(o,l)}function _2(o,l,d){return o==null?o:Z0(o,l,Ld(d))}function x2(o,l,d,B){return B=typeof B=="function"?B:e,o==null?o:Z0(o,l,Ld(d),B)}function Es(o){return o==null?[]:fd(o,Ne(o))}function O2(o){return o==null?[]:fd(o,Ft(o))}function L2(o,l,d){return d===e&&(d=l,l=e),d!==e&&(d=en(d),d=d===d?d:0),l!==e&&(l=en(l),l=l===l?l:0),wi(en(o),l,d)}function H2(o,l,d){return l=rr(l),d===e?(d=l,l=0):d=rr(d),o=en(o),K4(o,l,d)}function k2(o,l,d){if(d&&typeof d!="boolean"&&dt(o,l,d)&&(l=d=e),d===e&&(typeof l=="boolean"?(d=l,l=e):typeof o=="boolean"&&(d=o,o=e)),o===e&&l===e?(o=0,l=1):(o=rr(o),l===e?(l=o,o=0):l=rr(l)),o>l){var B=o;o=l,l=B}if(d||o%1||l%1){var C=I0();return et(o+C*(l-o+hR("1e-"+((C+"").length-1))),l)}return Id(o,l)}var D2=ws(function(o,l,d){return l=l.toLowerCase(),o+(d?iE(l):l)});function iE(o){return eh(YA(o).toLowerCase())}function sE(o){return o=YA(o),o&&o.replace(MM,vR).replace(rR,"")}function N2(o,l,d){o=YA(o),l=Ht(l);var B=o.length;d=d===e?B:wi(EA(d),0,B);var C=d;return d-=l.length,d>=0&&o.slice(d,C)==l}function M2(o){return o=YA(o),o&&wo.test(o)?o.replace(mo,IR):o}function R2(o){return o=YA(o),o&&bM.test(o)?o.replace(zf,"\\$&"):o}var K2=ws(function(o,l,d){return o+(d?"-":"")+l.toLowerCase()}),P2=ws(function(o,l,d){return o+(d?" ":"")+l.toLowerCase()}),V2=ly("toLowerCase");function G2(o,l,d){o=YA(o),l=EA(l);var B=l?fs(o):0;if(!l||B>=l)return o;var C=(l-B)/2;return nc(Gl(C),d)+o+nc(Vl(C),d)}function W2(o,l,d){o=YA(o),l=EA(l);var B=l?fs(o):0;return l&&B<l?o+nc(l-B,d):o}function $2(o,l,d){o=YA(o),l=EA(l);var B=l?fs(o):0;return l&&B<l?nc(l-B,d)+o:o}function J2(o,l,d){return d||l==null?l=0:l&&(l=+l),A4(YA(o).replace(qf,""),l||0)}function X2(o,l,d){return(d?dt(o,l,d):l===e)?l=1:l=EA(l),Sd(YA(o),l)}function Y2(){var o=arguments,l=YA(o[0]);return o.length<3?l:l.replace(o[1],o[2])}var z2=ws(function(o,l,d){return o+(d?"_":"")+l.toLowerCase()});function q2(o,l,d){return d&&typeof d!="number"&&dt(o,l,d)&&(l=d=e),d=d===e?OA:d>>>0,d?(o=YA(o),o&&(typeof l=="string"||l!=null&&!Zd(l))&&(l=Ht(l),!l&&us(o))?Kr(dn(o),0,d):o.split(l,d)):[]}var Z2=ws(function(o,l,d){return o+(d?" ":"")+eh(l)});function j2(o,l,d){return o=YA(o),d=d==null?0:wi(EA(d),0,o.length),l=Ht(l),o.slice(d,d+l.length)==l}function AG(o,l,d){var B=y.templateSettings;d&&dt(o,l,d)&&(l=e),o=YA(o),l=pc({},l,B,gy);var C=pc({},l.imports,B.imports,gy),Q=Ne(C),I=fd(C,Q),O,k,G=0,W=l.interpolate||Il,J="__p += '",q=hd((l.escape||Il).source+"|"+W.source+"|"+(W===vl?OM:Il).source+"|"+(l.evaluate||Il).source+"|$","g"),lA="//# sourceURL="+(jA.call(l,"sourceURL")?(l.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++lR+"]")+`
146
+ `;o.replace(q,function(pA,TA,MA,Dt,ht,Nt){return MA||(MA=Dt),J+=o.slice(G,Nt).replace(RM,SR),TA&&(O=!0,J+=`' +
147
147
  __e(`+TA+`) +
148
148
  '`),ht&&(k=!0,J+=`';
149
149
  `+ht+`;
@@ -153,13 +153,13 @@ __p += '`),MA&&(J+=`' +
153
153
  `;var hA=jA.call(l,"variable")&&l.variable;if(!hA)J=`with (obj) {
154
154
  `+J+`
155
155
  }
156
- `;else if(xM.test(hA))throw new wA(a);J=(k?J.replace(NA,""):J).replace(Ge,"$1").replace(yt,"$1;"),J="function("+(hA||"obj")+`) {
156
+ `;else if(_M.test(hA))throw new wA(a);J=(k?J.replace(NA,""):J).replace(Ge,"$1").replace(yt,"$1;"),J="function("+(hA||"obj")+`) {
157
157
  `+(hA?"":`obj || (obj = {});
158
158
  `)+"var __t, __p = ''"+(O?", __e = _.escape":"")+(k?`, __j = Array.prototype.join;
159
159
  function print() { __p += __j.call(arguments, '') }
160
160
  `:`;
161
161
  `)+J+`return __p
162
- }`;var UA=aE(function(){return $A(Q,lA+"return "+J).apply(e,I)});if(UA.source=J,qd(UA))throw UA;return UA}function tG(o){return YA(o).toLowerCase()}function nG(o){return YA(o).toUpperCase()}function rG(o,l,d){if(o=YA(o),o&&(d||l===e))return B0(o);if(!o||!(l=Ht(l)))return o;var B=dn(o),C=dn(l),Q=m0(B,C),I=w0(B,C)+1;return Kr(B,Q,I).join("")}function iG(o,l,d){if(o=YA(o),o&&(d||l===e))return o.slice(0,y0(o)+1);if(!o||!(l=Ht(l)))return o;var B=dn(o),C=w0(B,dn(l))+1;return Kr(B,0,C).join("")}function sG(o,l,d){if(o=YA(o),o&&(d||l===e))return o.replace(qf,"");if(!o||!(l=Ht(l)))return o;var B=dn(o),C=m0(B,dn(l));return Kr(B,C).join("")}function oG(o,l){var d=sA,B=mA;if(pe(l)){var C="separator"in l?l.separator:C;d="length"in l?EA(l.length):d,B="omission"in l?Ht(l.omission):B}o=YA(o);var Q=o.length;if(us(o)){var I=dn(o);Q=I.length}if(d>=Q)return o;var O=d-fs(B);if(O<1)return B;var k=I?Kr(I,0,O).join(""):o.slice(0,O);if(C===e)return k+B;if(I&&(O+=k.length-O),Zd(C)){if(o.slice(O).search(C)){var G,W=k;for(C.global||(C=hd(C.source,YA(MC.exec(C))+"g")),C.lastIndex=0;G=C.exec(W);)var J=G.index;k=k.slice(0,J===e?O:J)}}else if(o.indexOf(Ht(C),O)!=O){var q=k.lastIndexOf(C);q>-1&&(k=k.slice(0,q))}return k+B}function aG(o){return o=YA(o),o&&zn.test(o)?o.replace(Yn,DR):o}var lG=ws(function(o,l,d){return o+(d?" ":"")+l.toUpperCase()}),eh=ly("toUpperCase");function oE(o,l,d){return o=YA(o),l=d?e:l,l===e?xR(o)?RR(o):QR(o):o.match(l)||[]}var aE=vA(function(o,l){try{return Ot(o,e,l)}catch(d){return qd(d)?d:new wA(d)}}),cG=er(function(o,l){return Yt(l,function(d){d=On(d),jn(o,d,Yd(o[d],o))}),o});function uG(o){var l=o==null?0:o.length,d=dA();return o=l?fe(o,function(B){if(typeof B[1]!="function")throw new zt(s);return[d(B[0]),B[1]]}):[],vA(function(B){for(var C=-1;++C<l;){var Q=o[C];if(Ot(Q[0],this,B))return Ot(Q[1],this,B)}})}function fG(o){return D4(Zt(o,p))}function th(o){return function(){return o}}function dG(o,l){return o==null||o!==o?l:o}var hG=uy(),pG=uy(!0);function bt(o){return o}function nh(o){return K0(typeof o=="function"?o:Zt(o,p))}function gG(o){return V0(Zt(o,p))}function BG(o,l){return G0(o,Zt(l,p))}var mG=vA(function(o,l){return function(d){return So(d,o,l)}}),wG=vA(function(o,l){return function(d){return So(o,d,l)}});function rh(o,l,d){var B=Ne(l),C=zl(l,B);d==null&&!(pe(l)&&(C.length||!B.length))&&(d=l,l=o,o=this,C=zl(l,Ne(l)));var Q=!(pe(d)&&"chain"in d)||!!d.chain,I=nr(o);return Yt(C,function(O){var k=l[O];o[O]=k,I&&(o.prototype[O]=function(){var G=this.__chain__;if(Q||G){var W=o(this.__wrapped__),J=W.__actions__=Et(this.__actions__);return J.push({func:k,args:arguments,thisArg:o}),W.__chain__=G,W}return k.apply(o,Hr([this.value()],arguments))})}),o}function CG(){return We._===this&&(We._=$R),this}function ih(){}function yG(o){return o=EA(o),vA(function(l){return W0(l,o)})}var EG=kd(fe),QG=kd(f0),FG=kd(od);function lE(o){return Vd(o)?ad(On(o)):AK(o)}function bG(o){return function(l){return o==null?e:Ci(o,l)}}var UG=dy(),vG=dy(!0);function sh(){return[]}function oh(){return!1}function IG(){return{}}function SG(){return""}function TG(){return!0}function _G(o,l){if(o=EA(o),o<1||o>rA)return[];var d=OA,B=et(o,OA);l=dA(l),o-=OA;for(var C=ud(B,l);++d<o;)l(d);return C}function xG(o){return yA(o)?fe(o,On):kt(o)?[o]:Et(Sy(YA(o)))}function OG(o){var l=++GR;return YA(o)+l}var LG=tc(function(o,l){return o+l},0),HG=Dd("ceil"),kG=tc(function(o,l){return o/l},1),DG=Dd("floor");function NG(o){return o&&o.length?Yl(o,bt,Ed):e}function MG(o,l){return o&&o.length?Yl(o,dA(l,2),Ed):e}function RG(o){return p0(o,bt)}function KG(o,l){return p0(o,dA(l,2))}function PG(o){return o&&o.length?Yl(o,bt,Ud):e}function VG(o,l){return o&&o.length?Yl(o,dA(l,2),Ud):e}var GG=tc(function(o,l){return o*l},1),WG=Dd("round"),$G=tc(function(o,l){return o-l},0);function JG(o){return o&&o.length?cd(o,bt):0}function XG(o,l){return o&&o.length?cd(o,dA(l,2)):0}return y.after=gV,y.ary=Ry,y.assign=n2,y.assignIn=AE,y.assignInWith=pc,y.assignWith=r2,y.at=i2,y.before=Ky,y.bind=Yd,y.bindAll=cG,y.bindKey=Py,y.castArray=IV,y.chain=Dy,y.chunk=DK,y.compact=NK,y.concat=MK,y.cond=uG,y.conforms=fG,y.constant=th,y.countBy=JP,y.create=s2,y.curry=Vy,y.curryRight=Gy,y.debounce=Wy,y.defaults=o2,y.defaultsDeep=a2,y.defer=BV,y.delay=mV,y.difference=RK,y.differenceBy=KK,y.differenceWith=PK,y.drop=VK,y.dropRight=GK,y.dropRightWhile=WK,y.dropWhile=$K,y.fill=JK,y.filter=YP,y.flatMap=ZP,y.flatMapDeep=jP,y.flatMapDepth=AV,y.flatten=Oy,y.flattenDeep=XK,y.flattenDepth=YK,y.flip=wV,y.flow=hG,y.flowRight=pG,y.fromPairs=zK,y.functions=p2,y.functionsIn=g2,y.groupBy=eV,y.initial=ZK,y.intersection=jK,y.intersectionBy=AP,y.intersectionWith=eP,y.invert=m2,y.invertBy=w2,y.invokeMap=nV,y.iteratee=nh,y.keyBy=rV,y.keys=Ne,y.keysIn=Ft,y.map=lc,y.mapKeys=y2,y.mapValues=E2,y.matches=gG,y.matchesProperty=BG,y.memoize=uc,y.merge=Q2,y.mergeWith=eE,y.method=mG,y.methodOf=wG,y.mixin=rh,y.negate=fc,y.nthArg=yG,y.omit=F2,y.omitBy=b2,y.once=CV,y.orderBy=iV,y.over=EG,y.overArgs=yV,y.overEvery=QG,y.overSome=FG,y.partial=zd,y.partialRight=$y,y.partition=sV,y.pick=U2,y.pickBy=tE,y.property=lE,y.propertyOf=bG,y.pull=iP,y.pullAll=Hy,y.pullAllBy=sP,y.pullAllWith=oP,y.pullAt=aP,y.range=UG,y.rangeRight=vG,y.rearg=EV,y.reject=lV,y.remove=lP,y.rest=QV,y.reverse=Jd,y.sampleSize=uV,y.set=I2,y.setWith=S2,y.shuffle=fV,y.slice=cP,y.sortBy=pV,y.sortedUniq=BP,y.sortedUniqBy=mP,y.split=Z2,y.spread=FV,y.tail=wP,y.take=CP,y.takeRight=yP,y.takeRightWhile=EP,y.takeWhile=QP,y.tap=NP,y.throttle=bV,y.thru=ac,y.toArray=qy,y.toPairs=nE,y.toPairsIn=rE,y.toPath=xG,y.toPlainObject=jy,y.transform=T2,y.unary=UV,y.union=FP,y.unionBy=bP,y.unionWith=UP,y.uniq=vP,y.uniqBy=IP,y.uniqWith=SP,y.unset=_2,y.unzip=Xd,y.unzipWith=ky,y.update=x2,y.updateWith=O2,y.values=Es,y.valuesIn=L2,y.without=TP,y.words=oE,y.wrap=vV,y.xor=_P,y.xorBy=xP,y.xorWith=OP,y.zip=LP,y.zipObject=HP,y.zipObjectDeep=kP,y.zipWith=DP,y.entries=nE,y.entriesIn=rE,y.extend=AE,y.extendWith=pc,rh(y,y),y.add=LG,y.attempt=aE,y.camelCase=N2,y.capitalize=iE,y.ceil=HG,y.clamp=H2,y.clone=SV,y.cloneDeep=_V,y.cloneDeepWith=xV,y.cloneWith=TV,y.conformsTo=OV,y.deburr=sE,y.defaultTo=dG,y.divide=kG,y.endsWith=M2,y.eq=pn,y.escape=R2,y.escapeRegExp=K2,y.every=XP,y.find=zP,y.findIndex=_y,y.findKey=l2,y.findLast=qP,y.findLastIndex=xy,y.findLastKey=c2,y.floor=DG,y.forEach=Ny,y.forEachRight=My,y.forIn=u2,y.forInRight=f2,y.forOwn=d2,y.forOwnRight=h2,y.get=jd,y.gt=LV,y.gte=HV,y.has=B2,y.hasIn=Ah,y.head=Ly,y.identity=bt,y.includes=tV,y.indexOf=qK,y.inRange=k2,y.invoke=C2,y.isArguments=Qi,y.isArray=yA,y.isArrayBuffer=kV,y.isArrayLike=Qt,y.isArrayLikeObject=ye,y.isBoolean=DV,y.isBuffer=Pr,y.isDate=NV,y.isElement=MV,y.isEmpty=RV,y.isEqual=KV,y.isEqualWith=PV,y.isError=qd,y.isFinite=VV,y.isFunction=nr,y.isInteger=Jy,y.isLength=dc,y.isMap=Xy,y.isMatch=GV,y.isMatchWith=WV,y.isNaN=$V,y.isNative=JV,y.isNil=YV,y.isNull=XV,y.isNumber=Yy,y.isObject=pe,y.isObjectLike=Be,y.isPlainObject=Ho,y.isRegExp=Zd,y.isSafeInteger=zV,y.isSet=zy,y.isString=hc,y.isSymbol=kt,y.isTypedArray=ys,y.isUndefined=qV,y.isWeakMap=ZV,y.isWeakSet=jV,y.join=tP,y.kebabCase=P2,y.last=An,y.lastIndexOf=nP,y.lowerCase=V2,y.lowerFirst=G2,y.lt=A2,y.lte=e2,y.max=NG,y.maxBy=MG,y.mean=RG,y.meanBy=KG,y.min=PG,y.minBy=VG,y.stubArray=sh,y.stubFalse=oh,y.stubObject=IG,y.stubString=SG,y.stubTrue=TG,y.multiply=GG,y.nth=rP,y.noConflict=CG,y.noop=ih,y.now=cc,y.pad=W2,y.padEnd=$2,y.padStart=J2,y.parseInt=X2,y.random=D2,y.reduce=oV,y.reduceRight=aV,y.repeat=Y2,y.replace=z2,y.result=v2,y.round=WG,y.runInContext=H,y.sample=cV,y.size=dV,y.snakeCase=q2,y.some=hV,y.sortedIndex=uP,y.sortedIndexBy=fP,y.sortedIndexOf=dP,y.sortedLastIndex=hP,y.sortedLastIndexBy=pP,y.sortedLastIndexOf=gP,y.startCase=j2,y.startsWith=AG,y.subtract=$G,y.sum=JG,y.sumBy=XG,y.template=eG,y.times=_G,y.toFinite=rr,y.toInteger=EA,y.toLength=Zy,y.toLower=tG,y.toNumber=en,y.toSafeInteger=t2,y.toString=YA,y.toUpper=nG,y.trim=rG,y.trimEnd=iG,y.trimStart=sG,y.truncate=oG,y.unescape=aG,y.uniqueId=OG,y.upperCase=lG,y.upperFirst=eh,y.each=Ny,y.eachRight=My,y.first=Ly,rh(y,function(){var o={};return _n(y,function(l,d){jA.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){LA.prototype[o]=function(d){d=d===e?1:_e(EA(d),0);var B=this.__filtered__&&!l?new LA(this):this.clone();return B.__filtered__?B.__takeCount__=et(d,B.__takeCount__):B.__views__.push({size:et(d,OA),type:o+(B.__dir__<0?"Right":"")}),B},LA.prototype[o+"Right"]=function(d){return this.reverse()[o](d).reverse()}}),Yt(["filter","map","takeWhile"],function(o,l){var d=l+1,B=d==HA||d==KA;LA.prototype[o]=function(C){var Q=this.clone();return Q.__iteratees__.push({iteratee:dA(C,3),type:d}),Q.__filtered__=Q.__filtered__||B,Q}}),Yt(["head","last"],function(o,l){var d="take"+(l?"Right":"");LA.prototype[o]=function(){return this[d](1).value()[0]}}),Yt(["initial","tail"],function(o,l){var d="drop"+(l?"":"Right");LA.prototype[o]=function(){return this.__filtered__?new LA(this):this[d](1)}}),LA.prototype.compact=function(){return this.filter(bt)},LA.prototype.find=function(o){return this.filter(o).head()},LA.prototype.findLast=function(o){return this.reverse().find(o)},LA.prototype.invokeMap=vA(function(o,l){return typeof o=="function"?new LA(this):this.map(function(d){return So(d,o,l)})}),LA.prototype.reject=function(o){return this.filter(fc(dA(o)))},LA.prototype.slice=function(o,l){o=EA(o);var d=this;return d.__filtered__&&(o>0||l<0)?new LA(d):(o<0?d=d.takeRight(-o):o&&(d=d.drop(o)),l!==e&&(l=EA(l),d=l<0?d.dropRight(-l):d.take(l-o)),d)},LA.prototype.takeRightWhile=function(o){return this.reverse().takeWhile(o).reverse()},LA.prototype.toArray=function(){return this.take(OA)},_n(LA.prototype,function(o,l){var d=/^(?:filter|find|map|reject)|While$/.test(l),B=/^(?:head|last)$/.test(l),C=y[B?"take"+(l=="last"?"Right":""):l],Q=B||/^find/.test(l);C&&(y.prototype[l]=function(){var I=this.__wrapped__,O=B?[1]:arguments,k=I instanceof LA,G=O[0],W=k||yA(I),J=function(TA){var MA=C.apply(y,Hr([TA],O));return B&&q?MA[0]:MA};W&&d&&typeof G=="function"&&G.length!=1&&(k=W=!1);var q=this.__chain__,lA=!!this.__actions__.length,hA=Q&&!q,UA=k&&!lA;if(!Q&&W){I=UA?I:new LA(this);var pA=o.apply(I,O);return pA.__actions__.push({func:ac,args:[J],thisArg:e}),new qt(pA,q)}return hA&&UA?o.apply(this,O):(pA=this.thru(J),hA?B?pA.value()[0]:pA.value():pA)})}),Yt(["pop","push","shift","sort","splice","unshift"],function(o){var l=Ll[o],d=/^(?:push|sort|unshift)$/.test(o)?"tap":"thru",B=/^(?:pop|shift)$/.test(o);y.prototype[o]=function(){var C=arguments;if(B&&!this.__chain__){var Q=this.value();return l.apply(yA(Q)?Q:[],C)}return this[d](function(I){return l.apply(yA(I)?I:[],C)})}}),_n(LA.prototype,function(o,l){var d=y[l];if(d){var B=d.name+"";jA.call(gs,B)||(gs[B]=[]),gs[B].push({name:l,func:d})}}),gs[ec(e,v).name]=[{name:"wrapper",func:e}],LA.prototype.clone=a4,LA.prototype.reverse=l4,LA.prototype.value=c4,y.prototype.at=MP,y.prototype.chain=RP,y.prototype.commit=KP,y.prototype.next=PP,y.prototype.plant=GP,y.prototype.reverse=WP,y.prototype.toJSON=y.prototype.valueOf=y.prototype.value=$P,y.prototype.first=y.prototype.head,Eo&&(y.prototype[Eo]=VP),y},ds=KR();pi?((pi.exports=ds)._=ds,nd._=ds):We._=ds}).call(Ys)}(Oa,Oa.exports);var vm=Oa.exports;const p_="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==",g_={class:"camera__preview"},B_={key:0,class:"camera__bg-notification"},m_=["innerHTML"],w_=["width","height"],C_={key:1,class:"camera__countdown-overlay"},y_=["innerHTML","data-countdown"],E_=["src"],Q_={class:"camera__controls"},F_={class:"container"},b_={class:"row"},U_={class:"col"},v_={class:"btn-group"},I_={key:0},S_={key:1},T_={key:0,class:"camera__switch-cam"},__={key:1,class:"base-camera__devices"},x_={name:"BaseCamera",inheritAttrs:!1};function O_(t){const A=atob(t.split(",")[1]),e=new ArrayBuffer(A.length),n=new Uint8Array(e);for(let r=0;r<A.length;r++)n[r]=A.charCodeAt(r);return new Blob([e],{type:"image/png"})}const L_=h.defineComponent({...x_,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:()=>p_},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:A,emit:e}){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=e,s=h.ref(),a=h.ref(),c=h.ref(!1),u=h.ref([]),f=h.ref(),p=h.ref(),g=h.ref(!1),m=h.ref(!1),w=h.ref(0),F=h.ref(0),b=h.ref(),v=h.computed(()=>u.value.filter(rA=>rA.kind==="videoinput")),_=h.computed(()=>u.value.filter(rA=>rA.kind==="audioinput")),S=h.computed({get(){return f.value&&f.value.deviceId},set(rA){f.value=v.value.find(BA=>BA.deviceId===rA)}}),E=h.computed({get(){return p.value&&p.value.deviceId},set(rA){p.value=_.value.find(BA=>BA.deviceId===rA)}}),L=h.computed(()=>{const rA=f.value&&v.value.findIndex(BA=>BA.deviceId===f.value.deviceId);return r.enableMirrorCamera&&rA===0?"mirror-cam":""}),U=h.computed(()=>{const rA=f.value&&u.value.findIndex(BA=>BA.deviceId===f.value.deviceId);return L.value?`${L.value} mirror-device-${rA}`:""});function D(){w.value=n[r.ratio]?n[r.ratio].width:s.value.parentElement&&s.value.parentElement.clientWidth,F.value=n[r.ratio]?n[r.ratio].height:s.value.parentElement&&s.value.parentElement.clientHeight}const P=vm.debounce(()=>{D()},300,{trailing:!0,leading:!1});async function N(){const rA={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(rA).catch(BA=>{console.error(BA,"navigator.mediaDevices.getUserMedia: failed")})}function sA(){s.value&&s.value.srcObject&&s.value.srcObject.getTracks().forEach(BA=>{BA.stop()})}async function mA(){return s.value.srcObject=await N(),u.value=await navigator.mediaDevices.enumerateDevices(),{stream:s.value.srcObject,devices:u.value}}function nA(){g.value?(g.value=!1,m.value=!1,sA()):(g.value=!0,mA())}function cA(){u.value.length>1&&(sA(),f.value=f.value&&f.value.deviceId===v.value[0].deviceId?v.value[v.value.length-1]:v.value[0],mA())}async function HA(rA,BA){sA(),rA&&(!BA||rA.deviceId!==BA.deviceId)&&await mA()}h.watch(()=>f.value,HA),h.watch(()=>p.value,HA);function oe(){r.countdown?(b.value=b.value?b.value-1:r.countdown,b.value?setTimeout(oe,1e3):KA()):KA()}A({onCapture:oe});function KA(){m.value=!0;const rA=a.value.getContext("2d"),BA=s.value,XA=BA&&BA.srcObject&&BA.srcObject.getTracks(),{aspectRatio:OA,width:PA,height:RA}=XA.length&&XA[0].getSettings();console.log("raw",OA,PA,RA);const zA=n[r.ratio],qA=zA.width/zA.height;console.log("target",qA,zA);let ZA=zA.width,he=zA.height;r.enableCropImage?OA>qA?ZA=he*OA:OA<qA&&(he=ZA/OA):(ZA=PA,he=RA,a.value.width=ZA,a.value.height=he);const ct=L.value?-1:1;rA.save(),rA.scale(ct,1),rA.drawImage(BA,ZA>a.value.width?(a.value.width-ZA)/2:0,he>a.value.height?(a.value.height-he)/2:0,ZA*ct,he),rA.restore();const At=a.value.toDataURL("image/png");kA(At)}function kA(rA){const BA=O_(rA);i("update:modelValue",{name:`cam-pic-${new Date().toISOString()}`,id:`cam-pic-${new Date().toISOString()}`,blob:BA,size:BA.size})}return h.onMounted(async()=>{sA(),await mA(),f.value=v.value[0],r.enableAudio&&(p.value=_.value[0]),navigator.mediaDevices.addEventListener("devicechange",async rA=>{await mA()}),r.defaultRearCamera&&cA(),nA(),window.addEventListener("resize",P),D(),await h.nextTick(),c.value=!0}),h.onBeforeUnmount(()=>{g.value=!1,m.value=!1,sA(),window.removeEventListener("resize",P)}),(rA,BA)=>{const XA=h.resolveComponent("loading-spinner"),OA=h.resolveComponent("svg-icon"),PA=h.resolveComponent("input-dropdown");return h.openBlock(),h.createElementBlock("div",{class:h.normalizeClass(["camera",U.value])},[h.createElementVNode("div",g_,[c.value?h.createCommentVNode("",!0):(h.openBlock(),h.createElementBlock("div",B_,[h.createVNode(XA,{color:"#000"},{default:h.withCtx(()=>[h.createElementVNode("span",{class:h.normalizeClass("d-block text-center"),innerHTML:rA.$t("camera.waitForCameraNotification")},null,8,m_)]),_: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:F.value},null,8,w_),[[h.vShow,m.value]]),b.value?(h.openBlock(),h.createElementBlock("div",C_,[(h.openBlock(),h.createElementBlock("p",{class:"countdown",key:b.value,innerHTML:b.value,"data-countdown":b.value},null,8,y_))])):h.createCommentVNode("",!0),t.enableGuide&&g.value&&c.value?(h.openBlock(),h.createElementBlock("img",{key:2,class:"camera__guide",src:t.guideSrc},null,8,E_)):h.createCommentVNode("",!0)]),h.createElementVNode("div",Q_,[h.createElementVNode("div",F_,[h.createElementVNode("div",b_,[h.createElementVNode("div",U_,[h.createElementVNode("div",v_,[h.createElementVNode("button",{type:"button",class:"camera__toggle btn btn-primary",onClick:nA},[g.value?(h.openBlock(),h.createElementBlock("span",S_,h.toDisplayString(rA.$t("common.pause")),1)):(h.openBlock(),h.createElementBlock("span",I_,h.toDisplayString(rA.$t("common.play")),1))]),h.createElementVNode("button",{type:"button",class:"camera__capture btn btn-primary",onClick:oe},h.toDisplayString(rA.$t("camera.capture")),1)])])])])]),v.value&&v.value.length>1?(h.openBlock(),h.createElementBlock("div",T_,[h.createElementVNode("button",{class:"btn",onClick:h.withModifiers(cA,["prevent"])},[h.createVNode(OA,{symbol:"switch-camera"})])])):h.createCommentVNode("",!0),t.enableSelectDevice?(h.openBlock(),h.createElementBlock("div",__,[_.value.length&&p.value?(h.openBlock(),h.createBlock(PA,{key:0,modelValue:E.value,"onUpdate:modelValue":BA[0]||(BA[0]=RA=>E.value=RA),options:_.value.map((RA,zA)=>({text:RA.label||`Microphone ${zA+1}`,value:RA.deviceId}))},null,8,["modelValue","options"])):h.createCommentVNode("",!0),v.value.length?(h.openBlock(),h.createBlock(PA,{key:1,modelValue:S.value,"onUpdate:modelValue":BA[1]||(BA[1]=RA=>S.value=RA),options:v.value.map((RA,zA)=>({text:RA.label||`Camera ${zA+1}`,value:RA.deviceId}))},null,8,["modelValue","options"])):h.createCommentVNode("",!0)])):h.createCommentVNode("",!0)],2)}}}),m3="",H_=/"(?:_|\\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*:/,k_=/"(?: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*:/,D_=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function N_(t,A){if(t==="__proto__"||t==="constructor"&&A&&typeof A=="object"&&"prototype"in A){M_(t);return}return A}function M_(t){console.warn(`[destr] Dropping "${t}" key to prevent prototype pollution.`)}function R_(t,A={}){if(typeof t!="string")return t;const e=t.trim();if(t[0]==='"'&&t.endsWith('"')&&!t.includes("\\"))return e.slice(1,-1);if(e.length<=9){const n=e.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(!D_.test(t)){if(A.strict)throw new SyntaxError("[destr] Invalid JSON");return t}try{if(H_.test(t)||k_.test(t)){if(A.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(t,N_)}return JSON.parse(t)}catch(n){if(A.strict)throw n;return t}}const K_=/#/g,P_=/&/g,V_=/\//g,G_=/=/g,Ju=/\+/g,W_=/%5e/gi,$_=/%60/gi,J_=/%7c/gi,X_=/%20/gi;function Y_(t){return encodeURI(""+t).replace(J_,"|")}function Xu(t){return Y_(typeof t=="string"?t:JSON.stringify(t)).replace(Ju,"%2B").replace(X_,"+").replace(K_,"%23").replace(P_,"%26").replace($_,"`").replace(W_,"^").replace(V_,"%2F")}function Yu(t){return Xu(t).replace(G_,"%3D")}function Im(t=""){try{return decodeURIComponent(""+t)}catch{return""+t}}function z_(t){return Im(t.replace(Ju," "))}function q_(t){return Im(t.replace(Ju," "))}function Z_(t=""){const A={};t[0]==="?"&&(t=t.slice(1));for(const e of t.split("&")){const n=e.match(/([^=]+)=?(.*)/)||[];if(n.length<2)continue;const r=z_(n[1]);if(r==="__proto__"||r==="constructor")continue;const i=q_(n[2]||"");A[r]===void 0?A[r]=i:Array.isArray(A[r])?A[r].push(i):A[r]=[A[r],i]}return A}function j_(t,A){return(typeof A=="number"||typeof A=="boolean")&&(A=String(A)),A?Array.isArray(A)?A.map(e=>`${Yu(t)}=${Xu(e)}`).join("&"):`${Yu(t)}=${Xu(A)}`:Yu(t)}function Ax(t){return Object.keys(t).filter(A=>t[A]!==void 0).map(A=>j_(A,t[A])).filter(Boolean).join("&")}const ex=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,tx=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,nx=/^([/\\]\s*){2,}[^/\\]/,rx=/\/$|\/\?|\/#/,ix=/^\.?\//;function Sm(t,A={}){return typeof A=="boolean"&&(A={acceptRelative:A}),A.strict?ex.test(t):tx.test(t)||(A.acceptRelative?nx.test(t):!1)}function zu(t="",A){return A?rx.test(t):t.endsWith("/")}function sx(t="",A){if(!A)return(zu(t)?t.slice(0,-1):t)||"/";if(!zu(t,!0))return t||"/";let e=t,n="";const r=t.indexOf("#");r>=0&&(e=t.slice(0,r),n=t.slice(r));const[i,...s]=e.split("?");return((i.endsWith("/")?i.slice(0,-1):i)||"/")+(s.length>0?`?${s.join("?")}`:"")+n}function ox(t="",A){if(!A)return t.endsWith("/")?t:t+"/";if(zu(t,!0))return t||"/";let e=t,n="";const r=t.indexOf("#");if(r>=0&&(e=t.slice(0,r),n=t.slice(r),!e))return n;const[i,...s]=e.split("?");return i+"/"+(s.length>0?`?${s.join("?")}`:"")+n}function ax(t,A){if(cx(A)||Sm(t))return t;const e=sx(A);return t.startsWith(e)?t:fx(e,t)}function lx(t,A){const e=_m(t),n={...Z_(e.search),...A};return e.search=Ax(n),dx(e)}function cx(t){return!t||t==="/"}function ux(t){return t&&t!=="/"}function fx(t,...A){let e=t||"";for(const n of A.filter(r=>ux(r)))if(e){const r=n.replace(ix,"");e=ox(e)+r}else e=n;return e}const Tm=Symbol.for("ufo:protocolRelative");function _m(t="",A){const e=t.match(/^[\s\0]*(blob:|data:|javascript:|vbscript:)(.*)/i);if(e){const[,p,g=""]=e;return{protocol:p.toLowerCase(),pathname:g,href:p+g,auth:"",host:"",search:"",hash:""}}if(!Sm(t,{acceptRelative:!0}))return A?_m(A+t):xm(t);const[,n="",r,i=""]=t.replace(/\\/g,"/").match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/)||[],[,s="",a=""]=i.match(/([^#/?]*)(.*)?/)||[],{pathname:c,search:u,hash:f}=xm(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,[Tm]:!n}}function xm(t=""){const[A="",e="",n=""]=(t.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:A,search:e,hash:n}}function dx(t){const A=t.pathname||"",e=t.search?(t.search.startsWith("?")?"":"?")+t.search:"",n=t.hash||"",r=t.auth?t.auth+"@":"",i=t.host||"";return(t.protocol||t[Tm]?(t.protocol||"")+"//":"")+r+i+A+e+n}class hx extends Error{constructor(A,e){super(A,e),this.name="FetchError",e!=null&&e.cause&&!this.cause&&(this.cause=e.cause)}}function px(t){var c,u,f,p,g;const A=((c=t.error)==null?void 0:c.message)||((u=t.error)==null?void 0:u.toString())||"",e=((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=`[${e}] ${JSON.stringify(n)}`,i=t.response?`${t.response.status} ${t.response.statusText}`:"<no response>",s=`${r}: ${i}${A?` ${A}`:""}`,a=new hx(s,t.error?{cause:t.error}:void 0);for(const m of["request","options","response"])Object.defineProperty(a,m,{get(){return t[m]}});for(const[m,w]of[["data","_data"],["status","status"],["statusCode","status"],["statusText","statusText"],["statusMessage","statusText"]])Object.defineProperty(a,m,{get(){return t.response&&t.response[w]}});return a}const gx=new Set(Object.freeze(["PATCH","POST","PUT","DELETE"]));function Om(t="GET"){return gx.has(t.toUpperCase())}function Bx(t){if(t===void 0)return!1;const A=typeof t;return A==="string"||A==="number"||A==="boolean"||A===null?!0:A!=="object"?!1:Array.isArray(t)?!0:t.buffer?!1:t.constructor&&t.constructor.name==="Object"||typeof t.toJSON=="function"}const mx=new Set(["image/svg","application/xml","application/xhtml","application/html"]),wx=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function Cx(t=""){if(!t)return"json";const A=t.split(";").shift()||"";return wx.test(A)?"json":mx.has(A)||A.startsWith("text/")?"text":"blob"}function yx(t,A,e=globalThis.Headers){const n={...A,...t};if(A!=null&&A.params&&(t!=null&&t.params)&&(n.params={...A==null?void 0:A.params,...t==null?void 0:t.params}),A!=null&&A.query&&(t!=null&&t.query)&&(n.query={...A==null?void 0:A.query,...t==null?void 0:t.query}),A!=null&&A.headers&&(t!=null&&t.headers)){n.headers=new e((A==null?void 0:A.headers)||{});for(const[r,i]of new e((t==null?void 0:t.headers)||{}))n.headers.set(r,i)}return n}const Ex=new Set([408,409,425,429,500,502,503,504]),Qx=new Set([101,204,205,304]);function Lm(t={}){const{fetch:A=globalThis.fetch,Headers:e=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=Om(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):Ex.has(p))){const g=a.options.retryDelay||0;return g>0&&await new Promise(m=>setTimeout(m,g)),i(a.request,{...a.options,retry:f-1})}}const u=px(a);throw Error.captureStackTrace&&Error.captureStackTrace(u,i),u}const i=async function(c,u={}){var m;const f={request:c,options:yx(u,t.defaults,e),response:void 0,error:void 0};f.options.method=(m=f.options.method)==null?void 0:m.toUpperCase(),f.options.onRequest&&await f.options.onRequest(f),typeof f.request=="string"&&(f.options.baseURL&&(f.request=ax(f.request,f.options.baseURL)),(f.options.query||f.options.params)&&(f.request=lx(f.request,{...f.options.params,...f.options.query}))),f.options.body&&Om(f.options.method)&&(Bx(f.options.body)?(f.options.body=typeof f.options.body=="string"?f.options.body:JSON.stringify(f.options.body),f.options.headers=new e(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 A(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&&!Qx.has(f.response.status)&&f.options.method!=="HEAD"){const w=(f.options.parseResponse?"json":f.options.responseType)||Cx(f.response.headers.get("content-type")||"");switch(w){case"json":{const F=await f.response.text(),b=f.options.parseResponse||R_;f.response._data=b(F);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)=>A(...a),s.create=(a={})=>Lm({...t,defaults:{...t.defaults,...a}}),s}const qu=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")}(),Fx=qu.fetch||(()=>Promise.reject(new Error("[ofetch] global.fetch is not supported!"))),bx=qu.Headers,Ux=qu.AbortController,vx=Lm({fetch:Fx,Headers:bx,AbortController:Ux}),Ix={class:"file-upload"},Sx=["src"],Tx=["onClick"],_x=["onClick"],xx=["for"],Ox=["innerHTML"],Lx={key:0,class:"file-upload__loading-spinner"},Hx=[h.createElementVNode("span",{class:"spinner-border",role:"status"},[h.createElementVNode("span",{class:"visually-hidden"},"Loading...")],-1)];async function kx(t){return await new Promise(A=>{let e=new FileReader;e.onload=()=>A(e.result),e.readAsDataURL(t)})}const Dx=h.defineComponent({__name:"file-upload",props:{modelValue:{type:Array,default:[]},src:{type:String},name:{type:String,default:()=>me()},id:{type:String,default:()=>me()},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:A}){const e=t,n=A,r=h.ref([]),i=h.ref([]),s=h.ref(!1),a=h.computed(()=>e.modelValue.length?e.modelValue:e.src?[{type:"",src:e.src}]:i.value);h.watch(()=>r.value,async f=>{i.value=await Promise.all(f.map(async p=>({src:e.toDataUrl?await kx(p):await u(p),type:p.type})))},{deep:!0}),h.watch(()=>i.value,async f=>{const p=e.multiple?f:f[0];n("update:modelValue",p),e.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 m=await(e.customFetch||vx)(e.endpoint,{method:"POST",...e.customFetch?{}:{headers:{Accept:"application/json",...e.authToken?{Authorization:`Bearer ${e.authToken}`}:{}}},body:p}).catch(w=>{console.error("Error",w)});return s.value=!1,`${e.baseResponsePath}/${m.path}`}return(f,p)=>{const g=h.resolveComponent("svg-icon"),m=h.resolveComponent("input-file");return h.openBlock(),h.createElementBlock("div",Ix,[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(a.value,(w,F)=>(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,Sx),h.createElementVNode("button",{onClick:h.withModifiers(b=>c(F),["prevent"]),class:"btn btn--close"},[h.createVNode(g,{symbol:"x"})],8,Tx)],64)):(h.openBlock(),h.createElementBlock("button",{key:1,onClick:h.withModifiers(b=>c(F),["prevent"]),class:"btn btn--close btn-outline-dark"},[h.createVNode(g,{symbol:"x"})],8,_x))],2))),128)),h.createVNode(m,{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,Ox)]),h.createVNode(h.Transition,{name:"fade"},{default:h.withCtx(()=>[s.value?(h.openBlock(),h.createElementBlock("span",Lx,Hx)):h.createCommentVNode("",!0)]),_:1})],8,xx)])}}}),C3="",Nx={class:"upload-group"},Mx=["innerHTML"],Rx={class:"upload-group__list"},Kx={class:"img-container"},Px=["src"],Vx=["onClick"],Gx={role:"button",class:"img-thumbnail d-flex justify-content-center align-items-center"},Hm=h.defineComponent({__name:"upload-group",props:{modelValue:{type:Array,default:()=>[]},name:{type:String,default:()=>me()},id:{type:String,default:()=>me()},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:A}){const e=t,n=A,r=h.ref(""),i=h.computed({get(){return e.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",Nx,[t.label?(h.openBlock(),h.createElementBlock("label",{key:0,innerHTML:t.label},null,8,Mx)):h.createCommentVNode("",!0),h.createElementVNode("div",Rx,[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:m})=>[h.createElementVNode("div",Kx,[h.createElementVNode("img",{src:`${g}${t.previewWidth?`?width=${t.previewWidth}`:""}`,class:"img-thumbnail"},null,8,Px),h.createElementVNode("button",{onClick:h.withModifiers(w=>s(m),["prevent"]),class:"btn btn--close"},[h.createVNode(u,{symbol:"x"})],8,Vx)])]),"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",Gx,[h.createVNode(u,{symbol:"plus"})])]),_:1},8,["src","endpoint","custom-fetch","to-data-url","auth-token","disabled","base-response-path"])]),_:1},8,["modelValue"])])])}}}),y3="",Wx={class:"asset-uploader"},$x=["innerHTML"],Jx=h.defineComponent({__name:"asset-uploader",props:{modelValue:{type:Array,default:()=>[]},name:{type:String,default:()=>me()},id:{type:String,default:()=>me()},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:A}){const e=t,n=A,r=h.computed({get(){return e.modelValue.map(i=>i.src)},set(i){n("update:modelValue",i.map((s,a)=>({mediaType:e.modelValue[a]&&e.modelValue[a].mediaType||s.includes("data:image")?s.includes("data:image/svg")?"Svg":"Image":e.mediaTypeMap[s.split(".")[1]],src:s,name:e.modelValue[a]&&e.modelValue[a].name||`${e.name}-${a}`,...e.type?{type:e.type}:{}})))}});return(i,s)=>(h.openBlock(),h.createElementBlock("div",Wx,[t.label?(h.openBlock(),h.createElementBlock("label",{key:0,innerHTML:t.label},null,8,$x)):h.createCommentVNode("",!0),h.createVNode(Hm,{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"])]))}}),E3="",Xx={class:"carousel d-flex"},Yx=["onClick"],km=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:A}){const e=A,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){e("update:modelValue",c)}return(c,u)=>{const f=h.resolveComponent("svg-icon");return h.openBlock(),h.createElementBlock("div",Xx,[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:m=>a(g)},h.toDisplayString(p),11,Yx)])),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)])}}}),Q3="",zx={class:"media-thumbnails"},qx=["onClick"],Zx={class:"img-container ratio ratio-1x1"},jx=["src"],AO=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:A}){const e=A,n=h.ref(-1);function r(i){e("update:modelValue",i),e("select",i)}return(i,s)=>(h.openBlock(),h.createElementBlock("div",zx,[h.createVNode(km,{items:t.assets},{"carousel-item":h.withCtx(a=>[h.createElementVNode("a",{role:"button",class:"carousel__item media-thumbnails__thumbnail",onClick:c=>r(a.index)},[h.createElementVNode("div",Zx,[h.createElementVNode("img",{src:a.item.thumbnail||a.item.src,class:h.normalizeClass(["img-fluid",n.value===a.index?"is-active":""])},null,10,jx)])],8,qx)]),_:1},8,["items"])]))}}),F3="",eO={class:"progress-steps"},tO={class:"progress-steps__list"},nO={class:"progress-step"},rO=["checked","id","value","disabled","read-only","required","onChange"],iO=["for"],sO=["innerHTML"],oO=["for"],aO=["innerHTML"],lO=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:A}){const e=t,n=A;function r(i){n("update:modelValue",i),i>=e.progress&&n("update:progress",i)}return(i,s)=>(h.openBlock(),h.createElementBlock("div",eO,[h.createElementVNode("ul",tO,[(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",nO,[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,rO),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,sO)])],8,iO),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,aO)])],8,oO)])])],2))),128))])]))}}),b3="";/*!
162
+ }`;var UA=aE(function(){return $A(Q,lA+"return "+J).apply(e,I)});if(UA.source=J,qd(UA))throw UA;return UA}function eG(o){return YA(o).toLowerCase()}function tG(o){return YA(o).toUpperCase()}function nG(o,l,d){if(o=YA(o),o&&(d||l===e))return B0(o);if(!o||!(l=Ht(l)))return o;var B=dn(o),C=dn(l),Q=m0(B,C),I=w0(B,C)+1;return Kr(B,Q,I).join("")}function rG(o,l,d){if(o=YA(o),o&&(d||l===e))return o.slice(0,y0(o)+1);if(!o||!(l=Ht(l)))return o;var B=dn(o),C=w0(B,dn(l))+1;return Kr(B,0,C).join("")}function iG(o,l,d){if(o=YA(o),o&&(d||l===e))return o.replace(qf,"");if(!o||!(l=Ht(l)))return o;var B=dn(o),C=m0(B,dn(l));return Kr(B,C).join("")}function sG(o,l){var d=sA,B=mA;if(pe(l)){var C="separator"in l?l.separator:C;d="length"in l?EA(l.length):d,B="omission"in l?Ht(l.omission):B}o=YA(o);var Q=o.length;if(us(o)){var I=dn(o);Q=I.length}if(d>=Q)return o;var O=d-fs(B);if(O<1)return B;var k=I?Kr(I,0,O).join(""):o.slice(0,O);if(C===e)return k+B;if(I&&(O+=k.length-O),Zd(C)){if(o.slice(O).search(C)){var G,W=k;for(C.global||(C=hd(C.source,YA(MC.exec(C))+"g")),C.lastIndex=0;G=C.exec(W);)var J=G.index;k=k.slice(0,J===e?O:J)}}else if(o.indexOf(Ht(C),O)!=O){var q=k.lastIndexOf(C);q>-1&&(k=k.slice(0,q))}return k+B}function oG(o){return o=YA(o),o&&zn.test(o)?o.replace(Yn,kR):o}var aG=ws(function(o,l,d){return o+(d?" ":"")+l.toUpperCase()}),eh=ly("toUpperCase");function oE(o,l,d){return o=YA(o),l=d?e:l,l===e?_R(o)?MR(o):ER(o):o.match(l)||[]}var aE=vA(function(o,l){try{return Ot(o,e,l)}catch(d){return qd(d)?d:new wA(d)}}),lG=er(function(o,l){return Yt(l,function(d){d=On(d),jn(o,d,Yd(o[d],o))}),o});function cG(o){var l=o==null?0:o.length,d=dA();return o=l?fe(o,function(B){if(typeof B[1]!="function")throw new zt(s);return[d(B[0]),B[1]]}):[],vA(function(B){for(var C=-1;++C<l;){var Q=o[C];if(Ot(Q[0],this,B))return Ot(Q[1],this,B)}})}function uG(o){return k4(Zt(o,p))}function th(o){return function(){return o}}function fG(o,l){return o==null||o!==o?l:o}var dG=uy(),hG=uy(!0);function bt(o){return o}function nh(o){return K0(typeof o=="function"?o:Zt(o,p))}function pG(o){return V0(Zt(o,p))}function gG(o,l){return G0(o,Zt(l,p))}var BG=vA(function(o,l){return function(d){return So(d,o,l)}}),mG=vA(function(o,l){return function(d){return So(o,d,l)}});function rh(o,l,d){var B=Ne(l),C=zl(l,B);d==null&&!(pe(l)&&(C.length||!B.length))&&(d=l,l=o,o=this,C=zl(l,Ne(l)));var Q=!(pe(d)&&"chain"in d)||!!d.chain,I=nr(o);return Yt(C,function(O){var k=l[O];o[O]=k,I&&(o.prototype[O]=function(){var G=this.__chain__;if(Q||G){var W=o(this.__wrapped__),J=W.__actions__=Et(this.__actions__);return J.push({func:k,args:arguments,thisArg:o}),W.__chain__=G,W}return k.apply(o,Hr([this.value()],arguments))})}),o}function wG(){return We._===this&&(We._=WR),this}function ih(){}function CG(o){return o=EA(o),vA(function(l){return W0(l,o)})}var yG=kd(fe),EG=kd(f0),QG=kd(od);function lE(o){return Vd(o)?ad(On(o)):j4(o)}function FG(o){return function(l){return o==null?e:Ci(o,l)}}var bG=dy(),UG=dy(!0);function sh(){return[]}function oh(){return!1}function vG(){return{}}function IG(){return""}function SG(){return!0}function TG(o,l){if(o=EA(o),o<1||o>rA)return[];var d=OA,B=et(o,OA);l=dA(l),o-=OA;for(var C=ud(B,l);++d<o;)l(d);return C}function _G(o){return yA(o)?fe(o,On):kt(o)?[o]:Et(Sy(YA(o)))}function xG(o){var l=++VR;return YA(o)+l}var OG=tc(function(o,l){return o+l},0),LG=Dd("ceil"),HG=tc(function(o,l){return o/l},1),kG=Dd("floor");function DG(o){return o&&o.length?Yl(o,bt,Ed):e}function NG(o,l){return o&&o.length?Yl(o,dA(l,2),Ed):e}function MG(o){return p0(o,bt)}function RG(o,l){return p0(o,dA(l,2))}function KG(o){return o&&o.length?Yl(o,bt,Ud):e}function PG(o,l){return o&&o.length?Yl(o,dA(l,2),Ud):e}var VG=tc(function(o,l){return o*l},1),GG=Dd("round"),WG=tc(function(o,l){return o-l},0);function $G(o){return o&&o.length?cd(o,bt):0}function JG(o,l){return o&&o.length?cd(o,dA(l,2)):0}return y.after=pV,y.ary=Ry,y.assign=t2,y.assignIn=AE,y.assignInWith=pc,y.assignWith=n2,y.at=r2,y.before=Ky,y.bind=Yd,y.bindAll=lG,y.bindKey=Py,y.castArray=vV,y.chain=Dy,y.chunk=kK,y.compact=DK,y.concat=NK,y.cond=cG,y.conforms=uG,y.constant=th,y.countBy=$P,y.create=i2,y.curry=Vy,y.curryRight=Gy,y.debounce=Wy,y.defaults=s2,y.defaultsDeep=o2,y.defer=gV,y.delay=BV,y.difference=MK,y.differenceBy=RK,y.differenceWith=KK,y.drop=PK,y.dropRight=VK,y.dropRightWhile=GK,y.dropWhile=WK,y.fill=$K,y.filter=XP,y.flatMap=qP,y.flatMapDeep=ZP,y.flatMapDepth=jP,y.flatten=Oy,y.flattenDeep=JK,y.flattenDepth=XK,y.flip=mV,y.flow=dG,y.flowRight=hG,y.fromPairs=YK,y.functions=h2,y.functionsIn=p2,y.groupBy=AV,y.initial=qK,y.intersection=ZK,y.intersectionBy=jK,y.intersectionWith=AP,y.invert=B2,y.invertBy=m2,y.invokeMap=tV,y.iteratee=nh,y.keyBy=nV,y.keys=Ne,y.keysIn=Ft,y.map=lc,y.mapKeys=C2,y.mapValues=y2,y.matches=pG,y.matchesProperty=gG,y.memoize=uc,y.merge=E2,y.mergeWith=eE,y.method=BG,y.methodOf=mG,y.mixin=rh,y.negate=fc,y.nthArg=CG,y.omit=Q2,y.omitBy=F2,y.once=wV,y.orderBy=rV,y.over=yG,y.overArgs=CV,y.overEvery=EG,y.overSome=QG,y.partial=zd,y.partialRight=$y,y.partition=iV,y.pick=b2,y.pickBy=tE,y.property=lE,y.propertyOf=FG,y.pull=rP,y.pullAll=Hy,y.pullAllBy=iP,y.pullAllWith=sP,y.pullAt=oP,y.range=bG,y.rangeRight=UG,y.rearg=yV,y.reject=aV,y.remove=aP,y.rest=EV,y.reverse=Jd,y.sampleSize=cV,y.set=v2,y.setWith=I2,y.shuffle=uV,y.slice=lP,y.sortBy=hV,y.sortedUniq=gP,y.sortedUniqBy=BP,y.split=q2,y.spread=QV,y.tail=mP,y.take=wP,y.takeRight=CP,y.takeRightWhile=yP,y.takeWhile=EP,y.tap=DP,y.throttle=FV,y.thru=ac,y.toArray=qy,y.toPairs=nE,y.toPairsIn=rE,y.toPath=_G,y.toPlainObject=jy,y.transform=S2,y.unary=bV,y.union=QP,y.unionBy=FP,y.unionWith=bP,y.uniq=UP,y.uniqBy=vP,y.uniqWith=IP,y.unset=T2,y.unzip=Xd,y.unzipWith=ky,y.update=_2,y.updateWith=x2,y.values=Es,y.valuesIn=O2,y.without=SP,y.words=oE,y.wrap=UV,y.xor=TP,y.xorBy=_P,y.xorWith=xP,y.zip=OP,y.zipObject=LP,y.zipObjectDeep=HP,y.zipWith=kP,y.entries=nE,y.entriesIn=rE,y.extend=AE,y.extendWith=pc,rh(y,y),y.add=OG,y.attempt=aE,y.camelCase=D2,y.capitalize=iE,y.ceil=LG,y.clamp=L2,y.clone=IV,y.cloneDeep=TV,y.cloneDeepWith=_V,y.cloneWith=SV,y.conformsTo=xV,y.deburr=sE,y.defaultTo=fG,y.divide=HG,y.endsWith=N2,y.eq=pn,y.escape=M2,y.escapeRegExp=R2,y.every=JP,y.find=YP,y.findIndex=_y,y.findKey=a2,y.findLast=zP,y.findLastIndex=xy,y.findLastKey=l2,y.floor=kG,y.forEach=Ny,y.forEachRight=My,y.forIn=c2,y.forInRight=u2,y.forOwn=f2,y.forOwnRight=d2,y.get=jd,y.gt=OV,y.gte=LV,y.has=g2,y.hasIn=Ah,y.head=Ly,y.identity=bt,y.includes=eV,y.indexOf=zK,y.inRange=H2,y.invoke=w2,y.isArguments=Qi,y.isArray=yA,y.isArrayBuffer=HV,y.isArrayLike=Qt,y.isArrayLikeObject=ye,y.isBoolean=kV,y.isBuffer=Pr,y.isDate=DV,y.isElement=NV,y.isEmpty=MV,y.isEqual=RV,y.isEqualWith=KV,y.isError=qd,y.isFinite=PV,y.isFunction=nr,y.isInteger=Jy,y.isLength=dc,y.isMap=Xy,y.isMatch=VV,y.isMatchWith=GV,y.isNaN=WV,y.isNative=$V,y.isNil=XV,y.isNull=JV,y.isNumber=Yy,y.isObject=pe,y.isObjectLike=Be,y.isPlainObject=Ho,y.isRegExp=Zd,y.isSafeInteger=YV,y.isSet=zy,y.isString=hc,y.isSymbol=kt,y.isTypedArray=ys,y.isUndefined=zV,y.isWeakMap=qV,y.isWeakSet=ZV,y.join=eP,y.kebabCase=K2,y.last=An,y.lastIndexOf=tP,y.lowerCase=P2,y.lowerFirst=V2,y.lt=jV,y.lte=A2,y.max=DG,y.maxBy=NG,y.mean=MG,y.meanBy=RG,y.min=KG,y.minBy=PG,y.stubArray=sh,y.stubFalse=oh,y.stubObject=vG,y.stubString=IG,y.stubTrue=SG,y.multiply=VG,y.nth=nP,y.noConflict=wG,y.noop=ih,y.now=cc,y.pad=G2,y.padEnd=W2,y.padStart=$2,y.parseInt=J2,y.random=k2,y.reduce=sV,y.reduceRight=oV,y.repeat=X2,y.replace=Y2,y.result=U2,y.round=GG,y.runInContext=H,y.sample=lV,y.size=fV,y.snakeCase=z2,y.some=dV,y.sortedIndex=cP,y.sortedIndexBy=uP,y.sortedIndexOf=fP,y.sortedLastIndex=dP,y.sortedLastIndexBy=hP,y.sortedLastIndexOf=pP,y.startCase=Z2,y.startsWith=j2,y.subtract=WG,y.sum=$G,y.sumBy=JG,y.template=AG,y.times=TG,y.toFinite=rr,y.toInteger=EA,y.toLength=Zy,y.toLower=eG,y.toNumber=en,y.toSafeInteger=e2,y.toString=YA,y.toUpper=tG,y.trim=nG,y.trimEnd=rG,y.trimStart=iG,y.truncate=sG,y.unescape=oG,y.uniqueId=xG,y.upperCase=aG,y.upperFirst=eh,y.each=Ny,y.eachRight=My,y.first=Ly,rh(y,function(){var o={};return _n(y,function(l,d){jA.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){LA.prototype[o]=function(d){d=d===e?1:_e(EA(d),0);var B=this.__filtered__&&!l?new LA(this):this.clone();return B.__filtered__?B.__takeCount__=et(d,B.__takeCount__):B.__views__.push({size:et(d,OA),type:o+(B.__dir__<0?"Right":"")}),B},LA.prototype[o+"Right"]=function(d){return this.reverse()[o](d).reverse()}}),Yt(["filter","map","takeWhile"],function(o,l){var d=l+1,B=d==HA||d==KA;LA.prototype[o]=function(C){var Q=this.clone();return Q.__iteratees__.push({iteratee:dA(C,3),type:d}),Q.__filtered__=Q.__filtered__||B,Q}}),Yt(["head","last"],function(o,l){var d="take"+(l?"Right":"");LA.prototype[o]=function(){return this[d](1).value()[0]}}),Yt(["initial","tail"],function(o,l){var d="drop"+(l?"":"Right");LA.prototype[o]=function(){return this.__filtered__?new LA(this):this[d](1)}}),LA.prototype.compact=function(){return this.filter(bt)},LA.prototype.find=function(o){return this.filter(o).head()},LA.prototype.findLast=function(o){return this.reverse().find(o)},LA.prototype.invokeMap=vA(function(o,l){return typeof o=="function"?new LA(this):this.map(function(d){return So(d,o,l)})}),LA.prototype.reject=function(o){return this.filter(fc(dA(o)))},LA.prototype.slice=function(o,l){o=EA(o);var d=this;return d.__filtered__&&(o>0||l<0)?new LA(d):(o<0?d=d.takeRight(-o):o&&(d=d.drop(o)),l!==e&&(l=EA(l),d=l<0?d.dropRight(-l):d.take(l-o)),d)},LA.prototype.takeRightWhile=function(o){return this.reverse().takeWhile(o).reverse()},LA.prototype.toArray=function(){return this.take(OA)},_n(LA.prototype,function(o,l){var d=/^(?:filter|find|map|reject)|While$/.test(l),B=/^(?:head|last)$/.test(l),C=y[B?"take"+(l=="last"?"Right":""):l],Q=B||/^find/.test(l);C&&(y.prototype[l]=function(){var I=this.__wrapped__,O=B?[1]:arguments,k=I instanceof LA,G=O[0],W=k||yA(I),J=function(TA){var MA=C.apply(y,Hr([TA],O));return B&&q?MA[0]:MA};W&&d&&typeof G=="function"&&G.length!=1&&(k=W=!1);var q=this.__chain__,lA=!!this.__actions__.length,hA=Q&&!q,UA=k&&!lA;if(!Q&&W){I=UA?I:new LA(this);var pA=o.apply(I,O);return pA.__actions__.push({func:ac,args:[J],thisArg:e}),new qt(pA,q)}return hA&&UA?o.apply(this,O):(pA=this.thru(J),hA?B?pA.value()[0]:pA.value():pA)})}),Yt(["pop","push","shift","sort","splice","unshift"],function(o){var l=Ll[o],d=/^(?:push|sort|unshift)$/.test(o)?"tap":"thru",B=/^(?:pop|shift)$/.test(o);y.prototype[o]=function(){var C=arguments;if(B&&!this.__chain__){var Q=this.value();return l.apply(yA(Q)?Q:[],C)}return this[d](function(I){return l.apply(yA(I)?I:[],C)})}}),_n(LA.prototype,function(o,l){var d=y[l];if(d){var B=d.name+"";jA.call(gs,B)||(gs[B]=[]),gs[B].push({name:l,func:d})}}),gs[ec(e,v).name]=[{name:"wrapper",func:e}],LA.prototype.clone=o4,LA.prototype.reverse=a4,LA.prototype.value=l4,y.prototype.at=NP,y.prototype.chain=MP,y.prototype.commit=RP,y.prototype.next=KP,y.prototype.plant=VP,y.prototype.reverse=GP,y.prototype.toJSON=y.prototype.valueOf=y.prototype.value=WP,y.prototype.first=y.prototype.head,Eo&&(y.prototype[Eo]=PP),y},ds=RR();pi?((pi.exports=ds)._=ds,nd._=ds):We._=ds}).call(Ys)}(Oa,Oa.exports);var vm=Oa.exports;const p_="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==",g_={class:"camera__preview"},B_={key:0,class:"camera__bg-notification"},m_=["innerHTML"],w_=["width","height"],C_={key:1,class:"camera__countdown-overlay"},y_=["innerHTML","data-countdown"],E_=["src"],Q_={class:"camera__controls"},F_={class:"container"},b_={class:"row"},U_={class:"col"},v_={class:"btn-group"},I_={key:0},S_={key:1},T_={key:0,class:"camera__switch-cam"},__={key:1,class:"base-camera__devices"},x_={name:"BaseCamera",inheritAttrs:!1};function O_(t){const A=atob(t.split(",")[1]),e=new ArrayBuffer(A.length),n=new Uint8Array(e);for(let r=0;r<A.length;r++)n[r]=A.charCodeAt(r);return new Blob([e],{type:"image/png"})}const L_=h.defineComponent({...x_,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:()=>p_},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:A,emit:e}){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=e,s=h.ref(),a=h.ref(),c=h.ref(!1),u=h.ref([]),f=h.ref(),p=h.ref(),g=h.ref(!1),m=h.ref(!1),w=h.ref(0),F=h.ref(0),b=h.ref(),v=h.computed(()=>u.value.filter(rA=>rA.kind==="videoinput")),_=h.computed(()=>u.value.filter(rA=>rA.kind==="audioinput")),S=h.computed({get(){return f.value&&f.value.deviceId},set(rA){f.value=v.value.find(BA=>BA.deviceId===rA)}}),E=h.computed({get(){return p.value&&p.value.deviceId},set(rA){p.value=_.value.find(BA=>BA.deviceId===rA)}}),L=h.computed(()=>{const rA=f.value&&v.value.findIndex(BA=>BA.deviceId===f.value.deviceId);return r.enableMirrorCamera&&rA===0?"mirror-cam":""}),U=h.computed(()=>{const rA=f.value&&u.value.findIndex(BA=>BA.deviceId===f.value.deviceId);return L.value?`${L.value} mirror-device-${rA}`:""});function D(){w.value=n[r.ratio]?n[r.ratio].width:s.value.parentElement&&s.value.parentElement.clientWidth,F.value=n[r.ratio]?n[r.ratio].height:s.value.parentElement&&s.value.parentElement.clientHeight}const P=vm.debounce(()=>{D()},300,{trailing:!0,leading:!1});async function N(){const rA={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(rA).catch(BA=>{console.error(BA,"navigator.mediaDevices.getUserMedia: failed")})}function sA(){s.value&&s.value.srcObject&&s.value.srcObject.getTracks().forEach(BA=>{BA.stop()})}async function mA(){return s.value.srcObject=await N(),u.value=await navigator.mediaDevices.enumerateDevices(),{stream:s.value.srcObject,devices:u.value}}function nA(){g.value?(g.value=!1,m.value=!1,sA()):(g.value=!0,mA())}function cA(){u.value.length>1&&(sA(),f.value=f.value&&f.value.deviceId===v.value[0].deviceId?v.value[v.value.length-1]:v.value[0],mA())}async function HA(rA,BA){sA(),rA&&(!BA||rA.deviceId!==BA.deviceId)&&await mA()}h.watch(()=>f.value,HA),h.watch(()=>p.value,HA);function oe(){r.countdown?(b.value=b.value?b.value-1:r.countdown,b.value?setTimeout(oe,1e3):KA()):KA()}A({onCapture:oe});function KA(){m.value=!0;const rA=a.value.getContext("2d"),BA=s.value,XA=BA&&BA.srcObject&&BA.srcObject.getTracks(),{aspectRatio:OA,width:PA,height:RA}=XA.length&&XA[0].getSettings();console.log("raw",OA,PA,RA);const zA=n[r.ratio],qA=zA.width/zA.height;console.log("target",qA,zA);let ZA=zA.width,he=zA.height;r.enableCropImage?OA>qA?ZA=he*OA:OA<qA&&(he=ZA/OA):(ZA=PA,he=RA,a.value.width=ZA,a.value.height=he);const ct=L.value?-1:1;rA.save(),rA.scale(ct,1),rA.drawImage(BA,ZA>a.value.width?(a.value.width-ZA)/2:0,he>a.value.height?(a.value.height-he)/2:0,ZA*ct,he),rA.restore();const At=a.value.toDataURL("image/png");kA(At)}function kA(rA){const BA=O_(rA);i("update:modelValue",{name:`cam-pic-${new Date().toISOString()}`,id:`cam-pic-${new Date().toISOString()}`,blob:BA,size:BA.size})}return h.onMounted(async()=>{sA(),await mA(),f.value=v.value[0],r.enableAudio&&(p.value=_.value[0]),navigator.mediaDevices.addEventListener("devicechange",async rA=>{await mA()}),r.defaultRearCamera&&cA(),nA(),window.addEventListener("resize",P),D(),await h.nextTick(),c.value=!0}),h.onBeforeUnmount(()=>{g.value=!1,m.value=!1,sA(),window.removeEventListener("resize",P)}),(rA,BA)=>{const XA=h.resolveComponent("loading-spinner"),OA=h.resolveComponent("svg-icon"),PA=h.resolveComponent("input-dropdown");return h.openBlock(),h.createElementBlock("div",{class:h.normalizeClass(["camera",U.value])},[h.createElementVNode("div",g_,[c.value?h.createCommentVNode("",!0):(h.openBlock(),h.createElementBlock("div",B_,[h.createVNode(XA,{color:"#000"},{default:h.withCtx(()=>[h.createElementVNode("span",{class:h.normalizeClass("d-block text-center"),innerHTML:rA.$t("camera.waitForCameraNotification")},null,8,m_)]),_: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:F.value},null,8,w_),[[h.vShow,m.value]]),b.value?(h.openBlock(),h.createElementBlock("div",C_,[(h.openBlock(),h.createElementBlock("p",{class:"countdown",key:b.value,innerHTML:b.value,"data-countdown":b.value},null,8,y_))])):h.createCommentVNode("",!0),t.enableGuide&&g.value&&c.value?(h.openBlock(),h.createElementBlock("img",{key:2,class:"camera__guide",src:t.guideSrc},null,8,E_)):h.createCommentVNode("",!0)]),h.createElementVNode("div",Q_,[h.createElementVNode("div",F_,[h.createElementVNode("div",b_,[h.createElementVNode("div",U_,[h.createElementVNode("div",v_,[h.createElementVNode("button",{type:"button",class:"camera__toggle btn btn-primary",onClick:nA},[g.value?(h.openBlock(),h.createElementBlock("span",S_,h.toDisplayString(rA.$t("common.pause")),1)):(h.openBlock(),h.createElementBlock("span",I_,h.toDisplayString(rA.$t("common.play")),1))]),h.createElementVNode("button",{type:"button",class:"camera__capture btn btn-primary",onClick:oe},h.toDisplayString(rA.$t("camera.capture")),1)])])])])]),v.value&&v.value.length>1?(h.openBlock(),h.createElementBlock("div",T_,[h.createElementVNode("button",{class:"btn",onClick:h.withModifiers(cA,["prevent"])},[h.createVNode(OA,{symbol:"switch-camera"})])])):h.createCommentVNode("",!0),t.enableSelectDevice?(h.openBlock(),h.createElementBlock("div",__,[_.value.length&&p.value?(h.openBlock(),h.createBlock(PA,{key:0,modelValue:E.value,"onUpdate:modelValue":BA[0]||(BA[0]=RA=>E.value=RA),options:_.value.map((RA,zA)=>({text:RA.label||`Microphone ${zA+1}`,value:RA.deviceId}))},null,8,["modelValue","options"])):h.createCommentVNode("",!0),v.value.length?(h.openBlock(),h.createBlock(PA,{key:1,modelValue:S.value,"onUpdate:modelValue":BA[1]||(BA[1]=RA=>S.value=RA),options:v.value.map((RA,zA)=>({text:RA.label||`Camera ${zA+1}`,value:RA.deviceId}))},null,8,["modelValue","options"])):h.createCommentVNode("",!0)])):h.createCommentVNode("",!0)],2)}}}),B3="",H_=/"(?:_|\\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*:/,k_=/"(?: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*:/,D_=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function N_(t,A){if(t==="__proto__"||t==="constructor"&&A&&typeof A=="object"&&"prototype"in A){M_(t);return}return A}function M_(t){console.warn(`[destr] Dropping "${t}" key to prevent prototype pollution.`)}function R_(t,A={}){if(typeof t!="string")return t;const e=t.trim();if(t[0]==='"'&&t.endsWith('"')&&!t.includes("\\"))return e.slice(1,-1);if(e.length<=9){const n=e.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(!D_.test(t)){if(A.strict)throw new SyntaxError("[destr] Invalid JSON");return t}try{if(H_.test(t)||k_.test(t)){if(A.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(t,N_)}return JSON.parse(t)}catch(n){if(A.strict)throw n;return t}}const K_=/#/g,P_=/&/g,V_=/\//g,G_=/=/g,Ju=/\+/g,W_=/%5e/gi,$_=/%60/gi,J_=/%7c/gi,X_=/%20/gi;function Y_(t){return encodeURI(""+t).replace(J_,"|")}function Xu(t){return Y_(typeof t=="string"?t:JSON.stringify(t)).replace(Ju,"%2B").replace(X_,"+").replace(K_,"%23").replace(P_,"%26").replace($_,"`").replace(W_,"^").replace(V_,"%2F")}function Yu(t){return Xu(t).replace(G_,"%3D")}function Im(t=""){try{return decodeURIComponent(""+t)}catch{return""+t}}function z_(t){return Im(t.replace(Ju," "))}function q_(t){return Im(t.replace(Ju," "))}function Z_(t=""){const A={};t[0]==="?"&&(t=t.slice(1));for(const e of t.split("&")){const n=e.match(/([^=]+)=?(.*)/)||[];if(n.length<2)continue;const r=z_(n[1]);if(r==="__proto__"||r==="constructor")continue;const i=q_(n[2]||"");A[r]===void 0?A[r]=i:Array.isArray(A[r])?A[r].push(i):A[r]=[A[r],i]}return A}function j_(t,A){return(typeof A=="number"||typeof A=="boolean")&&(A=String(A)),A?Array.isArray(A)?A.map(e=>`${Yu(t)}=${Xu(e)}`).join("&"):`${Yu(t)}=${Xu(A)}`:Yu(t)}function Ax(t){return Object.keys(t).filter(A=>t[A]!==void 0).map(A=>j_(A,t[A])).filter(Boolean).join("&")}const ex=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,tx=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,nx=/^([/\\]\s*){2,}[^/\\]/,rx=/\/$|\/\?|\/#/,ix=/^\.?\//;function Sm(t,A={}){return typeof A=="boolean"&&(A={acceptRelative:A}),A.strict?ex.test(t):tx.test(t)||(A.acceptRelative?nx.test(t):!1)}function zu(t="",A){return A?rx.test(t):t.endsWith("/")}function sx(t="",A){if(!A)return(zu(t)?t.slice(0,-1):t)||"/";if(!zu(t,!0))return t||"/";let e=t,n="";const r=t.indexOf("#");r>=0&&(e=t.slice(0,r),n=t.slice(r));const[i,...s]=e.split("?");return((i.endsWith("/")?i.slice(0,-1):i)||"/")+(s.length>0?`?${s.join("?")}`:"")+n}function ox(t="",A){if(!A)return t.endsWith("/")?t:t+"/";if(zu(t,!0))return t||"/";let e=t,n="";const r=t.indexOf("#");if(r>=0&&(e=t.slice(0,r),n=t.slice(r),!e))return n;const[i,...s]=e.split("?");return i+"/"+(s.length>0?`?${s.join("?")}`:"")+n}function ax(t,A){if(cx(A)||Sm(t))return t;const e=sx(A);return t.startsWith(e)?t:fx(e,t)}function lx(t,A){const e=_m(t),n={...Z_(e.search),...A};return e.search=Ax(n),dx(e)}function cx(t){return!t||t==="/"}function ux(t){return t&&t!=="/"}function fx(t,...A){let e=t||"";for(const n of A.filter(r=>ux(r)))if(e){const r=n.replace(ix,"");e=ox(e)+r}else e=n;return e}const Tm=Symbol.for("ufo:protocolRelative");function _m(t="",A){const e=t.match(/^[\s\0]*(blob:|data:|javascript:|vbscript:)(.*)/i);if(e){const[,p,g=""]=e;return{protocol:p.toLowerCase(),pathname:g,href:p+g,auth:"",host:"",search:"",hash:""}}if(!Sm(t,{acceptRelative:!0}))return A?_m(A+t):xm(t);const[,n="",r,i=""]=t.replace(/\\/g,"/").match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/)||[],[,s="",a=""]=i.match(/([^#/?]*)(.*)?/)||[],{pathname:c,search:u,hash:f}=xm(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,[Tm]:!n}}function xm(t=""){const[A="",e="",n=""]=(t.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:A,search:e,hash:n}}function dx(t){const A=t.pathname||"",e=t.search?(t.search.startsWith("?")?"":"?")+t.search:"",n=t.hash||"",r=t.auth?t.auth+"@":"",i=t.host||"";return(t.protocol||t[Tm]?(t.protocol||"")+"//":"")+r+i+A+e+n}class hx extends Error{constructor(A,e){super(A,e),this.name="FetchError",e!=null&&e.cause&&!this.cause&&(this.cause=e.cause)}}function px(t){var c,u,f,p,g;const A=((c=t.error)==null?void 0:c.message)||((u=t.error)==null?void 0:u.toString())||"",e=((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=`[${e}] ${JSON.stringify(n)}`,i=t.response?`${t.response.status} ${t.response.statusText}`:"<no response>",s=`${r}: ${i}${A?` ${A}`:""}`,a=new hx(s,t.error?{cause:t.error}:void 0);for(const m of["request","options","response"])Object.defineProperty(a,m,{get(){return t[m]}});for(const[m,w]of[["data","_data"],["status","status"],["statusCode","status"],["statusText","statusText"],["statusMessage","statusText"]])Object.defineProperty(a,m,{get(){return t.response&&t.response[w]}});return a}const gx=new Set(Object.freeze(["PATCH","POST","PUT","DELETE"]));function Om(t="GET"){return gx.has(t.toUpperCase())}function Bx(t){if(t===void 0)return!1;const A=typeof t;return A==="string"||A==="number"||A==="boolean"||A===null?!0:A!=="object"?!1:Array.isArray(t)?!0:t.buffer?!1:t.constructor&&t.constructor.name==="Object"||typeof t.toJSON=="function"}const mx=new Set(["image/svg","application/xml","application/xhtml","application/html"]),wx=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function Cx(t=""){if(!t)return"json";const A=t.split(";").shift()||"";return wx.test(A)?"json":mx.has(A)||A.startsWith("text/")?"text":"blob"}function yx(t,A,e=globalThis.Headers){const n={...A,...t};if(A!=null&&A.params&&(t!=null&&t.params)&&(n.params={...A==null?void 0:A.params,...t==null?void 0:t.params}),A!=null&&A.query&&(t!=null&&t.query)&&(n.query={...A==null?void 0:A.query,...t==null?void 0:t.query}),A!=null&&A.headers&&(t!=null&&t.headers)){n.headers=new e((A==null?void 0:A.headers)||{});for(const[r,i]of new e((t==null?void 0:t.headers)||{}))n.headers.set(r,i)}return n}const Ex=new Set([408,409,425,429,500,502,503,504]),Qx=new Set([101,204,205,304]);function Lm(t={}){const{fetch:A=globalThis.fetch,Headers:e=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=Om(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):Ex.has(p))){const g=a.options.retryDelay||0;return g>0&&await new Promise(m=>setTimeout(m,g)),i(a.request,{...a.options,retry:f-1})}}const u=px(a);throw Error.captureStackTrace&&Error.captureStackTrace(u,i),u}const i=async function(c,u={}){var m;const f={request:c,options:yx(u,t.defaults,e),response:void 0,error:void 0};f.options.method=(m=f.options.method)==null?void 0:m.toUpperCase(),f.options.onRequest&&await f.options.onRequest(f),typeof f.request=="string"&&(f.options.baseURL&&(f.request=ax(f.request,f.options.baseURL)),(f.options.query||f.options.params)&&(f.request=lx(f.request,{...f.options.params,...f.options.query}))),f.options.body&&Om(f.options.method)&&(Bx(f.options.body)?(f.options.body=typeof f.options.body=="string"?f.options.body:JSON.stringify(f.options.body),f.options.headers=new e(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 A(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&&!Qx.has(f.response.status)&&f.options.method!=="HEAD"){const w=(f.options.parseResponse?"json":f.options.responseType)||Cx(f.response.headers.get("content-type")||"");switch(w){case"json":{const F=await f.response.text(),b=f.options.parseResponse||R_;f.response._data=b(F);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)=>A(...a),s.create=(a={})=>Lm({...t,defaults:{...t.defaults,...a}}),s}const qu=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")}(),Fx=qu.fetch||(()=>Promise.reject(new Error("[ofetch] global.fetch is not supported!"))),bx=qu.Headers,Ux=qu.AbortController,vx=Lm({fetch:Fx,Headers:bx,AbortController:Ux}),Ix={class:"file-upload"},Sx=["src"],Tx=["onClick"],_x=["onClick"],xx=["for"],Ox=["innerHTML"],Lx={key:0,class:"file-upload__loading-spinner"},Hx=[h.createElementVNode("span",{class:"spinner-border",role:"status"},[h.createElementVNode("span",{class:"visually-hidden"},"Loading...")],-1)];async function kx(t){return await new Promise(A=>{let e=new FileReader;e.onload=()=>A(e.result),e.readAsDataURL(t)})}const Dx=h.defineComponent({__name:"file-upload",props:{modelValue:{type:Array,default:[]},src:{type:String},name:{type:String,default:()=>me()},id:{type:String,default:()=>me()},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:A}){const e=t,n=A,r=h.ref([]),i=h.ref([]),s=h.ref(!1),a=h.computed(()=>e.modelValue.length?e.modelValue:e.src?[{type:"",src:e.src}]:i.value);h.watch(()=>r.value,async f=>{i.value=await Promise.all(f.map(async p=>({src:e.toDataUrl?await kx(p):await u(p),type:p.type})))},{deep:!0}),h.watch(()=>i.value,async f=>{const p=e.multiple?f:f[0];n("update:modelValue",p),e.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 m=await(e.customFetch||vx)(e.endpoint,{method:"POST",...e.customFetch?{}:{headers:{Accept:"application/json",...e.authToken?{Authorization:`Bearer ${e.authToken}`}:{}}},body:p}).catch(w=>{console.error("Error",w)});return s.value=!1,`${e.baseResponsePath}/${m.path}`}return(f,p)=>{const g=h.resolveComponent("svg-icon"),m=h.resolveComponent("input-file");return h.openBlock(),h.createElementBlock("div",Ix,[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(a.value,(w,F)=>(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,Sx),h.createElementVNode("button",{onClick:h.withModifiers(b=>c(F),["prevent"]),class:"btn btn--close"},[h.createVNode(g,{symbol:"x"})],8,Tx)],64)):(h.openBlock(),h.createElementBlock("button",{key:1,onClick:h.withModifiers(b=>c(F),["prevent"]),class:"btn btn--close btn-outline-dark"},[h.createVNode(g,{symbol:"x"})],8,_x))],2))),128)),h.createVNode(m,{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,Ox)]),h.createVNode(h.Transition,{name:"fade"},{default:h.withCtx(()=>[s.value?(h.openBlock(),h.createElementBlock("span",Lx,Hx)):h.createCommentVNode("",!0)]),_:1})],8,xx)])}}}),w3="",Nx={class:"upload-group"},Mx=["innerHTML"],Rx={class:"upload-group__list"},Kx={class:"img-container"},Px=["src"],Vx=["onClick"],Gx={role:"button",class:"img-thumbnail d-flex justify-content-center align-items-center"},Hm=h.defineComponent({__name:"upload-group",props:{modelValue:{type:Array,default:()=>[]},name:{type:String,default:()=>me()},id:{type:String,default:()=>me()},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:A}){const e=t,n=A,r=h.ref(""),i=h.computed({get(){return e.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",Nx,[t.label?(h.openBlock(),h.createElementBlock("label",{key:0,innerHTML:t.label},null,8,Mx)):h.createCommentVNode("",!0),h.createElementVNode("div",Rx,[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:m})=>[h.createElementVNode("div",Kx,[h.createElementVNode("img",{src:`${g}${t.previewWidth?`?width=${t.previewWidth}`:""}`,class:"img-thumbnail"},null,8,Px),h.createElementVNode("button",{onClick:h.withModifiers(w=>s(m),["prevent"]),class:"btn btn--close"},[h.createVNode(u,{symbol:"x"})],8,Vx)])]),"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",Gx,[h.createVNode(u,{symbol:"plus"})])]),_:1},8,["src","endpoint","custom-fetch","to-data-url","auth-token","disabled","base-response-path"])]),_:1},8,["modelValue"])])])}}}),C3="",Wx={class:"asset-uploader"},$x=["innerHTML"],Jx=h.defineComponent({__name:"asset-uploader",props:{modelValue:{type:Array,default:()=>[]},name:{type:String,default:()=>me()},id:{type:String,default:()=>me()},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:A}){const e=t,n=A,r=h.computed({get(){return e.modelValue.map(i=>i.src)},set(i){n("update:modelValue",i.map((s,a)=>({mediaType:e.modelValue[a]&&e.modelValue[a].mediaType||s.includes("data:image")?s.includes("data:image/svg")?"Svg":"Image":e.mediaTypeMap[s.split(".")[1]],src:s,name:e.modelValue[a]&&e.modelValue[a].name||`${e.name}-${a}`,...e.type?{type:e.type}:{}})))}});return(i,s)=>(h.openBlock(),h.createElementBlock("div",Wx,[t.label?(h.openBlock(),h.createElementBlock("label",{key:0,innerHTML:t.label},null,8,$x)):h.createCommentVNode("",!0),h.createVNode(Hm,{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"])]))}}),y3="",Xx={class:"carousel d-flex"},Yx=["onClick"],km=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:A}){const e=A,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){e("update:modelValue",c)}return(c,u)=>{const f=h.resolveComponent("svg-icon");return h.openBlock(),h.createElementBlock("div",Xx,[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:m=>a(g)},h.toDisplayString(p),11,Yx)])),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)])}}}),E3="",zx={class:"media-thumbnails"},qx=["onClick"],Zx={class:"img-container ratio ratio-1x1"},jx=["src"],AO=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:A}){const e=A,n=h.ref(-1);function r(i){e("update:modelValue",i),e("select",i)}return(i,s)=>(h.openBlock(),h.createElementBlock("div",zx,[h.createVNode(km,{items:t.assets},{"carousel-item":h.withCtx(a=>[h.createElementVNode("a",{role:"button",class:"carousel__item media-thumbnails__thumbnail",onClick:c=>r(a.index)},[h.createElementVNode("div",Zx,[h.createElementVNode("img",{src:a.item.thumbnail||a.item.src,class:h.normalizeClass(["img-fluid",n.value===a.index?"is-active":""])},null,10,jx)])],8,qx)]),_:1},8,["items"])]))}}),Q3="",eO={class:"progress-steps"},tO={class:"progress-steps__list"},nO={class:"progress-step"},rO=["checked","id","value","disabled","read-only","required","onChange"],iO=["for"],sO=["innerHTML"],oO=["for"],aO=["innerHTML"],lO=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:A}){const e=t,n=A;function r(i){n("update:modelValue",i),i>=e.progress&&n("update:progress",i)}return(i,s)=>(h.openBlock(),h.createElementBlock("div",eO,[h.createElementVNode("ul",tO,[(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",nO,[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,rO),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,sO)])],8,iO),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,aO)])],8,oO)])])],2))),128))])]))}}),F3="";/*!
163
163
  * html2canvas 1.4.1 <https://html2canvas.hertzen.com>
164
164
  * Copyright (c) 2022 Niklas von Hertzen <https://hertzen.com>
165
165
  * Released under MIT License
@@ -180,4 +180,4 @@ function print() { __p += __j.call(arguments, '') }
180
180
  content: "" !important;
181
181
  display: none !important;
182
182
  }`,YD=function(t){zD(t,"."+Gf+JD+IC+`
183
- .`+Wf+XD+IC)},zD=function(t,A){var e=t.ownerDocument;if(e){var n=e.createElement("style");n.textContent=A,t.appendChild(n)}},SC=function(){function t(){}return t.getOrigin=function(A){var e=t._link;return e?(e.href=A,e.href=e.href,e.protocol+e.hostname+e.port):"about:blank"},t.isSameOrigin=function(A){return t.getOrigin(A)===t._origin},t.setContext=function(A){t._link=A.document.createElement("a"),t._origin=t.getOrigin(A.location.href)},t._origin="about:blank",t}(),qD=function(){function t(A,e){this.context=A,this._options=e,this._cache={}}return t.prototype.addImage=function(A){var e=Promise.resolve();return this.has(A)||(Jf(A)||eN(A))&&(this._cache[A]=this.loadImage(A)).catch(function(){}),e},t.prototype.match=function(A){return this._cache[A]},t.prototype.loadImage=function(A){return lt(this,void 0,void 0,function(){var e,n,r,i,s=this;return Ze(this,function(a){switch(a.label){case 0:return e=SC.isSameOrigin(A),n=!$f(A)&&this._options.useCORS===!0&&Ve.SUPPORT_CORS_IMAGES&&!e,r=!$f(A)&&!e&&!Jf(A)&&typeof this._options.proxy=="string"&&Ve.SUPPORT_CORS_XHR&&!n,!e&&this._options.allowTaint===!1&&!$f(A)&&!Jf(A)&&!r&&!n?[2]:(i=A,r?[4,this.proxy(i)]:[3,2]);case 1:i=a.sent(),a.label=2;case 2:return this.context.logger.debug("Added image "+A.substring(0,256)),[4,new Promise(function(c,u){var f=new Image;f.onload=function(){return c(f)},f.onerror=u,(tN(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(A){return typeof this._cache[A]<"u"},t.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},t.prototype.proxy=function(A){var e=this,n=this._options.proxy;if(!n)throw new Error("No proxy defined");var r=A.substring(0,256);return new Promise(function(i,s){var a=Ve.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(A)+"&responseType="+a),a!=="text"&&c instanceof XMLHttpRequest&&(c.responseType=a),e._options.imageTimeout){var f=e._options.imageTimeout;c.timeout=f,c.ontimeout=function(){return s("Timed out ("+f+"ms) proxying "+r)}}c.send()})},t}(),ZD=/^data:image\/svg\+xml/i,jD=/^data:image\/.*;base64,/i,AN=/^data:image\/.*/i,eN=function(t){return Ve.SUPPORT_SVG_DRAWING||!nN(t)},$f=function(t){return AN.test(t)},tN=function(t){return jD.test(t)},Jf=function(t){return t.substr(0,4)==="blob"},nN=function(t){return t.substr(-3).toLowerCase()==="svg"||ZD.test(t)},Z=function(){function t(A,e){this.type=0,this.x=A,this.y=e}return t.prototype.add=function(A,e){return new t(this.x+A,this.y+e)},t}(),ns=function(t,A,e){return new Z(t.x+(A.x-t.x)*e,t.y+(A.y-t.y)*e)},Cl=function(){function t(A,e,n,r){this.type=1,this.start=A,this.startControl=e,this.endControl=n,this.end=r}return t.prototype.subdivide=function(A,e){var n=ns(this.start,this.startControl,A),r=ns(this.startControl,this.endControl,A),i=ns(this.endControl,this.end,A),s=ns(n,r,A),a=ns(r,i,A),c=ns(s,a,A);return e?new t(this.start,n,s,c):new t(c,a,i,this.end)},t.prototype.add=function(A,e){return new t(this.start.add(A,e),this.startControl.add(A,e),this.endControl.add(A,e),this.end.add(A,e))},t.prototype.reverse=function(){return new t(this.end,this.endControl,this.startControl,this.start)},t}(),Wt=function(t){return t.type===1},rN=function(){function t(A){var e=A.styles,n=A.bounds,r=lo(e.borderTopLeftRadius,n.width,n.height),i=r[0],s=r[1],a=lo(e.borderTopRightRadius,n.width,n.height),c=a[0],u=a[1],f=lo(e.borderBottomRightRadius,n.width,n.height),p=f[0],g=f[1],m=lo(e.borderBottomLeftRadius,n.width,n.height),w=m[0],F=m[1],b=[];b.push((i+c)/n.width),b.push((w+p)/n.width),b.push((s+F)/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,F/=v);var _=n.width-c,S=n.height-g,E=n.width-p,L=n.height-F,U=e.borderTopWidth,D=e.borderRightWidth,P=e.borderBottomWidth,N=e.borderLeftWidth,sA=se(e.paddingTop,A.bounds.width),mA=se(e.paddingRight,A.bounds.width),nA=se(e.paddingBottom,A.bounds.width),cA=se(e.paddingLeft,A.bounds.width);this.topLeftBorderDoubleOuterBox=i>0||s>0?ue(n.left+N/3,n.top+U/3,i-N/3,s-U/3,JA.TOP_LEFT):new Z(n.left+N/3,n.top+U/3),this.topRightBorderDoubleOuterBox=i>0||s>0?ue(n.left+_,n.top+U/3,c-D/3,u-U/3,JA.TOP_RIGHT):new Z(n.left+n.width-D/3,n.top+U/3),this.bottomRightBorderDoubleOuterBox=p>0||g>0?ue(n.left+E,n.top+S,p-D/3,g-P/3,JA.BOTTOM_RIGHT):new Z(n.left+n.width-D/3,n.top+n.height-P/3),this.bottomLeftBorderDoubleOuterBox=w>0||F>0?ue(n.left+N/3,n.top+L,w-N/3,F-P/3,JA.BOTTOM_LEFT):new Z(n.left+N/3,n.top+n.height-P/3),this.topLeftBorderDoubleInnerBox=i>0||s>0?ue(n.left+N*2/3,n.top+U*2/3,i-N*2/3,s-U*2/3,JA.TOP_LEFT):new Z(n.left+N*2/3,n.top+U*2/3),this.topRightBorderDoubleInnerBox=i>0||s>0?ue(n.left+_,n.top+U*2/3,c-D*2/3,u-U*2/3,JA.TOP_RIGHT):new Z(n.left+n.width-D*2/3,n.top+U*2/3),this.bottomRightBorderDoubleInnerBox=p>0||g>0?ue(n.left+E,n.top+S,p-D*2/3,g-P*2/3,JA.BOTTOM_RIGHT):new Z(n.left+n.width-D*2/3,n.top+n.height-P*2/3),this.bottomLeftBorderDoubleInnerBox=w>0||F>0?ue(n.left+N*2/3,n.top+L,w-N*2/3,F-P*2/3,JA.BOTTOM_LEFT):new Z(n.left+N*2/3,n.top+n.height-P*2/3),this.topLeftBorderStroke=i>0||s>0?ue(n.left+N/2,n.top+U/2,i-N/2,s-U/2,JA.TOP_LEFT):new Z(n.left+N/2,n.top+U/2),this.topRightBorderStroke=i>0||s>0?ue(n.left+_,n.top+U/2,c-D/2,u-U/2,JA.TOP_RIGHT):new Z(n.left+n.width-D/2,n.top+U/2),this.bottomRightBorderStroke=p>0||g>0?ue(n.left+E,n.top+S,p-D/2,g-P/2,JA.BOTTOM_RIGHT):new Z(n.left+n.width-D/2,n.top+n.height-P/2),this.bottomLeftBorderStroke=w>0||F>0?ue(n.left+N/2,n.top+L,w-N/2,F-P/2,JA.BOTTOM_LEFT):new Z(n.left+N/2,n.top+n.height-P/2),this.topLeftBorderBox=i>0||s>0?ue(n.left,n.top,i,s,JA.TOP_LEFT):new Z(n.left,n.top),this.topRightBorderBox=c>0||u>0?ue(n.left+_,n.top,c,u,JA.TOP_RIGHT):new Z(n.left+n.width,n.top),this.bottomRightBorderBox=p>0||g>0?ue(n.left+E,n.top+S,p,g,JA.BOTTOM_RIGHT):new Z(n.left+n.width,n.top+n.height),this.bottomLeftBorderBox=w>0||F>0?ue(n.left,n.top+L,w,F,JA.BOTTOM_LEFT):new Z(n.left,n.top+n.height),this.topLeftPaddingBox=i>0||s>0?ue(n.left+N,n.top+U,Math.max(0,i-N),Math.max(0,s-U),JA.TOP_LEFT):new Z(n.left+N,n.top+U),this.topRightPaddingBox=c>0||u>0?ue(n.left+Math.min(_,n.width-D),n.top+U,_>n.width+D?0:Math.max(0,c-D),Math.max(0,u-U),JA.TOP_RIGHT):new Z(n.left+n.width-D,n.top+U),this.bottomRightPaddingBox=p>0||g>0?ue(n.left+Math.min(E,n.width-N),n.top+Math.min(S,n.height-P),Math.max(0,p-D),Math.max(0,g-P),JA.BOTTOM_RIGHT):new Z(n.left+n.width-D,n.top+n.height-P),this.bottomLeftPaddingBox=w>0||F>0?ue(n.left+N,n.top+Math.min(L,n.height-P),Math.max(0,w-N),Math.max(0,F-P),JA.BOTTOM_LEFT):new Z(n.left+N,n.top+n.height-P),this.topLeftContentBox=i>0||s>0?ue(n.left+N+cA,n.top+U+sA,Math.max(0,i-(N+cA)),Math.max(0,s-(U+sA)),JA.TOP_LEFT):new Z(n.left+N+cA,n.top+U+sA),this.topRightContentBox=c>0||u>0?ue(n.left+Math.min(_,n.width+N+cA),n.top+U+sA,_>n.width+N+cA?0:c-N+cA,u-(U+sA),JA.TOP_RIGHT):new Z(n.left+n.width-(D+mA),n.top+U+sA),this.bottomRightContentBox=p>0||g>0?ue(n.left+Math.min(E,n.width-(N+cA)),n.top+Math.min(S,n.height+U+sA),Math.max(0,p-(D+mA)),g-(P+nA),JA.BOTTOM_RIGHT):new Z(n.left+n.width-(D+mA),n.top+n.height-(P+nA)),this.bottomLeftContentBox=w>0||F>0?ue(n.left+N+cA,n.top+L,Math.max(0,w-(N+cA)),F-(P+nA),JA.BOTTOM_LEFT):new Z(n.left+N+cA,n.top+n.height-(P+nA))}return t}(),JA;(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"})(JA||(JA={}));var ue=function(t,A,e,n,r){var i=4*((Math.sqrt(2)-1)/3),s=e*i,a=n*i,c=t+e,u=A+n;switch(r){case JA.TOP_LEFT:return new Cl(new Z(t,u),new Z(t,u-a),new Z(c-s,A),new Z(c,A));case JA.TOP_RIGHT:return new Cl(new Z(t,A),new Z(t+s,A),new Z(c,u-a),new Z(c,u));case JA.BOTTOM_RIGHT:return new Cl(new Z(c,A),new Z(c,A+a),new Z(t+s,u),new Z(t,u));case JA.BOTTOM_LEFT:default:return new Cl(new Z(c,u),new Z(c-s,u),new Z(t,A+a),new Z(t,A))}},yl=function(t){return[t.topLeftBorderBox,t.topRightBorderBox,t.bottomRightBorderBox,t.bottomLeftBorderBox]},iN=function(t){return[t.topLeftContentBox,t.topRightContentBox,t.bottomRightContentBox,t.bottomLeftContentBox]},El=function(t){return[t.topLeftPaddingBox,t.topRightPaddingBox,t.bottomRightPaddingBox,t.bottomLeftPaddingBox]},sN=function(){function t(A,e,n){this.offsetX=A,this.offsetY=e,this.matrix=n,this.type=0,this.target=6}return t}(),Ql=function(){function t(A,e){this.path=A,this.target=e,this.type=1}return t}(),oN=function(){function t(A){this.opacity=A,this.type=2,this.target=6}return t}(),aN=function(t){return t.type===0},TC=function(t){return t.type===1},lN=function(t){return t.type===2},_C=function(t,A){return t.length===A.length?t.some(function(e,n){return e===A[n]}):!1},cN=function(t,A,e,n,r){return t.map(function(i,s){switch(s){case 0:return i.add(A,e);case 1:return i.add(A+n,e);case 2:return i.add(A+n,e+r);case 3:return i.add(A,e+r)}return i})},xC=function(){function t(A){this.element=A,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return t}(),OC=function(){function t(A,e){if(this.container=A,this.parent=e,this.effects=[],this.curves=new rN(this.container),this.container.styles.opacity<1&&this.effects.push(new oN(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 sN(n,r,i))}if(this.container.styles.overflowX!==0){var s=yl(this.curves),a=El(this.curves);_C(s,a)?this.effects.push(new Ql(s,6)):(this.effects.push(new Ql(s,2)),this.effects.push(new Ql(a,4)))}}return t.prototype.getEffects=function(A){for(var e=[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!TC(c)});if(e||n.container.styles.position!==0||!n.parent){if(r.unshift.apply(r,i),e=[2,3].indexOf(n.container.styles.position)===-1,n.container.styles.overflowX!==0){var s=yl(n.curves),a=El(n.curves);_C(s,a)||r.unshift(new Ql(a,6))}}else r.unshift.apply(r,i);n=n.parent}return r.filter(function(c){return Se(c.target,A)})},t}(),Xf=function(t,A,e,n){t.container.elements.forEach(function(r){var i=Se(r.flags,4),s=Se(r.flags,2),a=new OC(r,t);Se(r.styles.display,2048)&&n.push(a);var c=Se(r.flags,8)?[]:n;if(i||s){var u=i||r.styles.isPositioned()?e:A,f=new xC(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,F){return p>w.element.container.styles.zIndex.order?(g=F,!1):g>0}),u.negativeZIndex.splice(g,0,f)}else if(p>0){var m=0;u.positiveZIndex.some(function(w,F){return p>=w.element.container.styles.zIndex.order?(m=F+1,!1):m>0}),u.positiveZIndex.splice(m,0,f)}else u.zeroOrAutoZIndexOrTransformedOrOpacity.push(f)}else r.styles.isFloating()?u.nonPositionedFloats.push(f):u.nonPositionedInlineLevel.push(f);Xf(a,f,i?f:e,c)}else r.styles.isInlineLevel()?A.inlineLevel.push(a):A.nonInlineLevel.push(a),Xf(a,A,e,c);Se(r.flags,8)&&LC(r,c)})},LC=function(t,A){for(var e=t instanceof Df?t.start:1,n=t instanceof Df?t.reversed:!1,r=0;r<A.length;r++){var i=A[r];i.container instanceof iC&&typeof i.container.value=="number"&&i.container.value!==0&&(e=i.container.value),i.listValue=go(e,i.container.styles.listStyleType,!0),e+=n?-1:1}},uN=function(t){var A=new OC(t,null),e=new xC(A),n=[];return Xf(A,e,e,n),LC(A.container,n),e},HC=function(t,A){switch(A){case 0:return $t(t.topLeftBorderBox,t.topLeftPaddingBox,t.topRightBorderBox,t.topRightPaddingBox);case 1:return $t(t.topRightBorderBox,t.topRightPaddingBox,t.bottomRightBorderBox,t.bottomRightPaddingBox);case 2:return $t(t.bottomRightBorderBox,t.bottomRightPaddingBox,t.bottomLeftBorderBox,t.bottomLeftPaddingBox);case 3:default:return $t(t.bottomLeftBorderBox,t.bottomLeftPaddingBox,t.topLeftBorderBox,t.topLeftPaddingBox)}},fN=function(t,A){switch(A){case 0:return $t(t.topLeftBorderBox,t.topLeftBorderDoubleOuterBox,t.topRightBorderBox,t.topRightBorderDoubleOuterBox);case 1:return $t(t.topRightBorderBox,t.topRightBorderDoubleOuterBox,t.bottomRightBorderBox,t.bottomRightBorderDoubleOuterBox);case 2:return $t(t.bottomRightBorderBox,t.bottomRightBorderDoubleOuterBox,t.bottomLeftBorderBox,t.bottomLeftBorderDoubleOuterBox);case 3:default:return $t(t.bottomLeftBorderBox,t.bottomLeftBorderDoubleOuterBox,t.topLeftBorderBox,t.topLeftBorderDoubleOuterBox)}},dN=function(t,A){switch(A){case 0:return $t(t.topLeftBorderDoubleInnerBox,t.topLeftPaddingBox,t.topRightBorderDoubleInnerBox,t.topRightPaddingBox);case 1:return $t(t.topRightBorderDoubleInnerBox,t.topRightPaddingBox,t.bottomRightBorderDoubleInnerBox,t.bottomRightPaddingBox);case 2:return $t(t.bottomRightBorderDoubleInnerBox,t.bottomRightPaddingBox,t.bottomLeftBorderDoubleInnerBox,t.bottomLeftPaddingBox);case 3:default:return $t(t.bottomLeftBorderDoubleInnerBox,t.bottomLeftPaddingBox,t.topLeftBorderDoubleInnerBox,t.topLeftPaddingBox)}},hN=function(t,A){switch(A){case 0:return Fl(t.topLeftBorderStroke,t.topRightBorderStroke);case 1:return Fl(t.topRightBorderStroke,t.bottomRightBorderStroke);case 2:return Fl(t.bottomRightBorderStroke,t.bottomLeftBorderStroke);case 3:default:return Fl(t.bottomLeftBorderStroke,t.topLeftBorderStroke)}},Fl=function(t,A){var e=[];return Wt(t)?e.push(t.subdivide(.5,!1)):e.push(t),Wt(A)?e.push(A.subdivide(.5,!0)):e.push(A),e},$t=function(t,A,e,n){var r=[];return Wt(t)?r.push(t.subdivide(.5,!1)):r.push(t),Wt(e)?r.push(e.subdivide(.5,!0)):r.push(e),Wt(n)?r.push(n.subdivide(.5,!0).reverse()):r.push(n),Wt(A)?r.push(A.subdivide(.5,!1).reverse()):r.push(A),r},kC=function(t){var A=t.bounds,e=t.styles;return A.add(e.borderLeftWidth,e.borderTopWidth,-(e.borderRightWidth+e.borderLeftWidth),-(e.borderTopWidth+e.borderBottomWidth))},bl=function(t){var A=t.styles,e=t.bounds,n=se(A.paddingLeft,e.width),r=se(A.paddingRight,e.width),i=se(A.paddingTop,e.width),s=se(A.paddingBottom,e.width);return e.add(n+A.borderLeftWidth,i+A.borderTopWidth,-(A.borderRightWidth+A.borderLeftWidth+n+r),-(A.borderTopWidth+A.borderBottomWidth+i+s))},pN=function(t,A){return t===0?A.bounds:t===2?bl(A):kC(A)},gN=function(t,A){return t===0?A.bounds:t===2?bl(A):kC(A)},Yf=function(t,A,e){var n=pN(is(t.styles.backgroundOrigin,A),t),r=gN(is(t.styles.backgroundClip,A),t),i=BN(is(t.styles.backgroundSize,A),e,n),s=i[0],a=i[1],c=lo(is(t.styles.backgroundPosition,A),n.width-s,n.height-a),u=mN(is(t.styles.backgroundRepeat,A),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 ee(t)&&t.value===ji.AUTO},Ul=function(t){return typeof t=="number"},BN=function(t,A,e){var n=A[0],r=A[1],i=A[2],s=t[0],a=t[1];if(!s)return[0,0];if(Ue(s)&&a&&Ue(a))return[se(s,e.width),se(a,e.height)];var c=Ul(i);if(ee(s)&&(s.value===ji.CONTAIN||s.value===ji.COVER)){if(Ul(i)){var u=e.width/e.height;return u<i!=(s.value===ji.COVER)?[e.width,e.width/i]:[e.height*i,e.height]}return[e.width,e.height]}var f=Ul(n),p=Ul(r),g=f||p;if(rs(s)&&(!a||rs(a))){if(f&&p)return[n,r];if(!c&&!g)return[e.width,e.height];if(g&&c){var m=f?n:r*i,w=p?r:n/i;return[m,w]}var F=f?n:e.width,b=p?r:e.height;return[F,b]}if(c){var v=0,_=0;return Ue(s)?v=se(s,e.width):Ue(a)&&(_=se(a,e.height)),rs(s)?v=_*i:(!a||rs(a))&&(_=v/i),[v,_]}var S=null,E=null;if(Ue(s)?S=se(s,e.width):a&&Ue(a)&&(E=se(a,e.height)),S!==null&&(!a||rs(a))&&(E=f&&p?S/n*r:e.height),E!==null&&rs(s)&&(S=f&&p?E/r*n:e.width),S!==null&&E!==null)return[S,E];throw new Error("Unable to calculate background-size for element")},is=function(t,A){var e=t[A];return typeof e>"u"?t[0]:e},mN=function(t,A,e,n,r){var i=A[0],s=A[1],a=e[0],c=e[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))]}},wN="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",DC="Hidden Text",CN=function(){function t(A){this._data={},this._document=A}return t.prototype.parseMetrics=function(A,e){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=A,n.style.fontSize=e,n.style.margin="0",n.style.padding="0",n.style.whiteSpace="nowrap",s.appendChild(n),r.src=wN,r.width=1,r.height=1,r.style.margin="0",r.style.padding="0",r.style.verticalAlign="baseline",i.style.fontFamily=A,i.style.fontSize=e,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(A,e){var n=A+" "+e;return typeof this._data[n]>"u"&&(this._data[n]=this.parseMetrics(A,e)),this._data[n]},t}(),NC=function(){function t(A,e){this.context=A,this.options=e}return t}(),yN=1e4,EN=function(t){ln(A,t);function A(e,n){var r=t.call(this,e,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 CN(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 A.prototype.applyEffects=function(e){for(var n=this;this._activeEffects.length;)this.popEffect();e.forEach(function(r){return n.applyEffect(r)})},A.prototype.applyEffect=function(e){this.ctx.save(),lN(e)&&(this.ctx.globalAlpha=e.opacity),aN(e)&&(this.ctx.translate(e.offsetX,e.offsetY),this.ctx.transform(e.matrix[0],e.matrix[1],e.matrix[2],e.matrix[3],e.matrix[4],e.matrix[5]),this.ctx.translate(-e.offsetX,-e.offsetY)),TC(e)&&(this.path(e.path),this.ctx.clip()),this._activeEffects.push(e)},A.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},A.prototype.renderStack=function(e){return lt(this,void 0,void 0,function(){var n;return Ze(this,function(r){switch(r.label){case 0:return n=e.element.container.styles,n.isVisible()?[4,this.renderStackContent(e)]:[3,2];case 1:r.sent(),r.label=2;case 2:return[2]}})})},A.prototype.renderNode=function(e){return lt(this,void 0,void 0,function(){return Ze(this,function(n){switch(n.label){case 0:if(Se(e.container.flags,16))debugger;return e.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(e)]:[3,3];case 1:return n.sent(),[4,this.renderNodeContent(e)];case 2:n.sent(),n.label=3;case 3:return[2]}})})},A.prototype.renderTextWithLetterSpacing=function(e,n,r){var i=this;if(n===0)this.ctx.fillText(e.text,e.bounds.left,e.bounds.top+r);else{var s=kf(e.text);s.reduce(function(a,c){return i.ctx.fillText(c,a,e.bounds.top+r),a+i.ctx.measureText(c).width},e.bounds.left)}},A.prototype.createFontStyle=function(e){var n=e.fontVariant.filter(function(s){return s==="normal"||s==="small-caps"}).join(""),r=vN(e.fontFamily).join(", "),i=ao(e.fontSize)?""+e.fontSize.number+e.fontSize.unit:e.fontSize.number+"px";return[[e.fontStyle,n,e.fontWeight,i,r].join(" "),r,i]},A.prototype.renderTextNode=function(e,n){return lt(this,void 0,void 0,function(){var r,i,s,a,c,u,f,p,g=this;return Ze(this,function(m){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,e.textBounds.forEach(function(w){p.forEach(function(F){switch(F){case 0:g.ctx.fillStyle=De(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=De(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=De(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=De(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]})})},A.prototype.renderReplacedElement=function(e,n,r){if(r&&e.intrinsicWidth>0&&e.intrinsicHeight>0){var i=bl(e),s=El(n);this.path(s),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(r,0,0,e.intrinsicWidth,e.intrinsicHeight,i.left,i.top,i.width,i.height),this.ctx.restore()}},A.prototype.renderNodeContent=function(e){return lt(this,void 0,void 0,function(){var n,r,i,s,a,c,_,_,u,f,p,g,E,m,w,L,F,b,v,_,S,E,L;return Ze(this,function(U){switch(U.label){case 0:this.applyEffects(e.getEffects(4)),n=e.container,r=e.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 tC))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 nC&&this.renderReplacedElement(n,r,n.canvas),!(n instanceof rC))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 lC&&n.tree?(u=new A(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 Nf&&(p=Math.min(n.bounds.width,n.bounds.height),n.type===hl?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=De(sC),this.ctx.fill(),this.ctx.restore()):n.type===pl&&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=De(sC),this.ctx.fill(),this.ctx.restore())),QN(n)&&n.value.length){switch(g=this.createFontStyle(i),E=g[0],m=g[1],w=this.fontMetrics.getMetrics(E,m).baseline,this.ctx.font=E,this.ctx.fillStyle=De(i.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=bN(n.styles.textAlign),L=bl(n),F=0,n.styles.textAlign){case 1:F+=L.width/2;break;case 2:F+=L.width;break}b=L.add(F,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(!Se(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:e.listValue&&n.styles.listStyleType!==-1&&(E=this.createFontStyle(i)[0],this.ctx.font=E,this.ctx.fillStyle=De(i.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",L=new Wn(n.bounds.left,n.bounds.top+se(n.styles.paddingTop,n.bounds.width),n.bounds.width,Dw(i.lineHeight,i.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new ho(e.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]}})})},A.prototype.renderStackContent=function(e){return lt(this,void 0,void 0,function(){var n,r,v,i,s,v,a,c,v,u,f,v,p,g,v,m,w,v,F,b,v;return Ze(this,function(_){switch(_.label){case 0:if(Se(e.element.container.flags,16))debugger;return[4,this.renderNodeBackgroundAndBorders(e.element)];case 1:_.sent(),n=0,r=e.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(e.element)];case 6:_.sent(),i=0,s=e.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=e.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=e.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=e.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:m=0,w=e.zeroOrAutoZIndexOrTransformedOrOpacity,_.label=23;case 23:return m<w.length?(v=w[m],[4,this.renderStack(v)]):[3,26];case 24:_.sent(),_.label=25;case 25:return m++,[3,23];case 26:F=0,b=e.positiveZIndex,_.label=27;case 27:return F<b.length?(v=b[F],[4,this.renderStack(v)]):[3,30];case 28:_.sent(),_.label=29;case 29:return F++,[3,27];case 30:return[2]}})})},A.prototype.mask=function(e){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(e.slice(0).reverse()),this.ctx.closePath()},A.prototype.path=function(e){this.ctx.beginPath(),this.formatPath(e),this.ctx.closePath()},A.prototype.formatPath=function(e){var n=this;e.forEach(function(r,i){var s=Wt(r)?r.start:r;i===0?n.ctx.moveTo(s.x,s.y):n.ctx.lineTo(s.x,s.y),Wt(r)&&n.ctx.bezierCurveTo(r.startControl.x,r.startControl.y,r.endControl.x,r.endControl.y,r.end.x,r.end.y)})},A.prototype.renderRepeat=function(e,n,r,i){this.path(e),this.ctx.fillStyle=n,this.ctx.translate(r,i),this.ctx.fill(),this.ctx.translate(-r,-i)},A.prototype.resizeImage=function(e,n,r){var i;if(e.width===n&&e.height===r)return e;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(e,0,0,e.width,e.height,0,0,n,r),a},A.prototype.renderBackgroundImage=function(e){return lt(this,void 0,void 0,function(){var n,r,i,s,a,c;return Ze(this,function(u){switch(u.label){case 0:n=e.styles.backgroundImage.length-1,r=function(f){var p,g,m,sA,KA,kA,cA,HA,P,w,sA,KA,kA,cA,HA,F,b,v,_,S,E,L,U,D,P,N,sA,mA,nA,cA,HA,oe,KA,kA,rA,BA,XA,OA,PA,RA,zA,qA;return Ze(this,function(ZA){switch(ZA.label){case 0:if(f.type!==0)return[3,5];p=void 0,g=f.url,ZA.label=1;case 1:return ZA.trys.push([1,3,,4]),[4,i.context.cache.match(g)];case 2:return p=ZA.sent(),[3,4];case 3:return ZA.sent(),i.context.logger.error("Error loading background-image "+g),[3,4];case 4:return p&&(m=Yf(e,n,[p.width,p.height,p.width/p.height]),sA=m[0],KA=m[1],kA=m[2],cA=m[3],HA=m[4],P=i.ctx.createPattern(i.resizeImage(p,cA,HA),"repeat"),i.renderRepeat(sA,P,KA,kA)),[3,6];case 5:aH(f)?(w=Yf(e,n,[null,null,null]),sA=w[0],KA=w[1],kA=w[2],cA=w[3],HA=w[4],F=nH(f.angle,cA,HA),b=F[0],v=F[1],_=F[2],S=F[3],E=F[4],L=document.createElement("canvas"),L.width=cA,L.height=HA,U=L.getContext("2d"),D=U.createLinearGradient(v,S,_,E),Uw(f.stops,b).forEach(function(he){return D.addColorStop(he.stop,De(he.color))}),U.fillStyle=D,U.fillRect(0,0,cA,HA),cA>0&&HA>0&&(P=i.ctx.createPattern(L,"repeat"),i.renderRepeat(sA,P,KA,kA))):lH(f)&&(N=Yf(e,n,[null,null,null]),sA=N[0],mA=N[1],nA=N[2],cA=N[3],HA=N[4],oe=f.position.length===0?[yf]:f.position,KA=se(oe[0],cA),kA=se(oe[oe.length-1],HA),rA=rH(f,KA,kA,cA,HA),BA=rA[0],XA=rA[1],BA>0&&XA>0&&(OA=i.ctx.createRadialGradient(mA+KA,nA+kA,0,mA+KA,nA+kA,BA),Uw(f.stops,BA*2).forEach(function(he){return OA.addColorStop(he.stop,De(he.color))}),i.path(sA),i.ctx.fillStyle=OA,BA!==XA?(PA=e.bounds.left+.5*e.bounds.width,RA=e.bounds.top+.5*e.bounds.height,zA=XA/BA,qA=1/zA,i.ctx.save(),i.ctx.translate(PA,RA),i.ctx.transform(1,0,0,zA,0,0),i.ctx.translate(-PA,-RA),i.ctx.fillRect(mA,qA*(nA-RA)+RA,cA,HA*qA),i.ctx.restore()):i.ctx.fill())),ZA.label=6;case 6:return n--,[2]}})},i=this,s=0,a=e.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]}})})},A.prototype.renderSolidBorder=function(e,n,r){return lt(this,void 0,void 0,function(){return Ze(this,function(i){return this.path(HC(r,n)),this.ctx.fillStyle=De(e),this.ctx.fill(),[2]})})},A.prototype.renderDoubleBorder=function(e,n,r,i){return lt(this,void 0,void 0,function(){var s,a;return Ze(this,function(c){switch(c.label){case 0:return n<3?[4,this.renderSolidBorder(e,r,i)]:[3,2];case 1:return c.sent(),[2];case 2:return s=fN(i,r),this.path(s),this.ctx.fillStyle=De(e),this.ctx.fill(),a=dN(i,r),this.path(a),this.ctx.fill(),[2]}})})},A.prototype.renderNodeBackgroundAndBorders=function(e){return lt(this,void 0,void 0,function(){var n,r,i,s,a,c,u,f,p=this;return Ze(this,function(g){switch(g.label){case 0:return this.applyEffects(e.getEffects(2)),n=e.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=FN(is(n.backgroundClip,0),e.curves),r||n.boxShadow.length?(this.ctx.save(),this.path(s),this.ctx.clip(),Ir(n.backgroundColor)||(this.ctx.fillStyle=De(n.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(e.container)]):[3,2];case 1:g.sent(),this.ctx.restore(),n.boxShadow.slice(0).reverse().forEach(function(m){p.ctx.save();var w=yl(e.curves),F=m.inset?0:yN,b=cN(w,-F+(m.inset?1:-1)*m.spread.number,(m.inset?1:-1)*m.spread.number,m.spread.number*(m.inset?-2:2),m.spread.number*(m.inset?-2:2));m.inset?(p.path(w),p.ctx.clip(),p.mask(b)):(p.mask(w),p.ctx.clip(),p.path(b)),p.ctx.shadowOffsetX=m.offsetX.number+F,p.ctx.shadowOffsetY=m.offsetY.number,p.ctx.shadowColor=De(m.color),p.ctx.shadowBlur=m.blur.number,p.ctx.fillStyle=m.inset?De(m.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,e.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,e.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,e.curves)];case 8:return g.sent(),[3,11];case 9:return[4,this.renderSolidBorder(f.color,a,e.curves)];case 10:g.sent(),g.label=11;case 11:a++,g.label=12;case 12:return c++,[3,3];case 13:return[2]}})})},A.prototype.renderDashedDottedBorder=function(e,n,r,i,s){return lt(this,void 0,void 0,function(){var a,c,u,f,p,g,m,w,F,b,v,_,S,E,L,U,L,U;return Ze(this,function(D){return this.ctx.save(),a=hN(i,r),c=HC(i,r),s===2&&(this.path(c),this.ctx.clip()),Wt(c[0])?(u=c[0].start.x,f=c[0].start.y):(u=c[0].x,f=c[0].y),Wt(c[1])?(p=c[1].end.x,g=c[1].end.y):(p=c[1].x,g=c[1].y),r===0||r===2?m=Math.abs(u-p):m=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,F=n<3?n*2:n,s===3&&(w=n,F=n),b=!0,m<=w*2?b=!1:m<=w*2+F?(v=m/(2*w+F),w*=v,F*=v):(_=Math.floor((m+F)/(w+F)),S=(m-_*w)/(_-1),E=(m-(_+1)*w)/_,F=E<=0||Math.abs(F-S)<Math.abs(F-E)?S:E),b&&(s===3?this.ctx.setLineDash([0,w+F]):this.ctx.setLineDash([w,F])),s===3?(this.ctx.lineCap="round",this.ctx.lineWidth=n):this.ctx.lineWidth=n*2+1.1,this.ctx.strokeStyle=De(e),this.ctx.stroke(),this.ctx.setLineDash([]),s===2&&(Wt(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()),Wt(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]})})},A.prototype.render=function(e){return lt(this,void 0,void 0,function(){var n;return Ze(this,function(r){switch(r.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=De(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),n=uN(e),[4,this.renderStack(n)];case 1:return r.sent(),this.applyEffects([]),[2,this.canvas]}})})},A}(NC),QN=function(t){return t instanceof aC||t instanceof oC?!0:t instanceof Nf&&t.type!==pl&&t.type!==hl},FN=function(t,A){switch(t){case 0:return yl(A);case 2:return iN(A);case 1:default:return El(A)}},bN=function(t){switch(t){case 1:return"center";case 2:return"right";case 0:default:return"left"}},UN=["-apple-system","system-ui"],vN=function(t){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?t.filter(function(A){return UN.indexOf(A)===-1}):t},IN=function(t){ln(A,t);function A(e,n){var r=t.call(this,e,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 A.prototype.render=function(e){return lt(this,void 0,void 0,function(){var n,r;return Ze(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,e),[4,SN(n)];case 1:return r=i.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=De(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]}})})},A}(NC),SN=function(t){return new Promise(function(A,e){var n=new Image;n.onload=function(){A(n)},n.onerror=e,n.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(t))})},TN=function(){function t(A){var e=A.id,n=A.enabled;this.id=e,this.enabled=n,this.start=Date.now()}return t.prototype.debug=function(){for(var A=[],e=0;e<arguments.length;e++)A[e]=arguments[e];this.enabled&&(typeof window<"u"&&window.console&&typeof console.debug=="function"?console.debug.apply(console,La([this.id,this.getTime()+"ms"],A)):this.info.apply(this,A))},t.prototype.getTime=function(){return Date.now()-this.start},t.prototype.info=function(){for(var A=[],e=0;e<arguments.length;e++)A[e]=arguments[e];this.enabled&&typeof window<"u"&&window.console&&typeof console.info=="function"&&console.info.apply(console,La([this.id,this.getTime()+"ms"],A))},t.prototype.warn=function(){for(var A=[],e=0;e<arguments.length;e++)A[e]=arguments[e];this.enabled&&(typeof window<"u"&&window.console&&typeof console.warn=="function"?console.warn.apply(console,La([this.id,this.getTime()+"ms"],A)):this.info.apply(this,A))},t.prototype.error=function(){for(var A=[],e=0;e<arguments.length;e++)A[e]=arguments[e];this.enabled&&(typeof window<"u"&&window.console&&typeof console.error=="function"?console.error.apply(console,La([this.id,this.getTime()+"ms"],A)):this.info.apply(this,A))},t.instances={},t}(),_N=function(){function t(A,e){var n;this.windowBounds=e,this.instanceName="#"+t.instanceCount++,this.logger=new TN({id:this.instanceName,enabled:A.logging}),this.cache=(n=A.cache)!==null&&n!==void 0?n:new qD(this,A)}return t.instanceCount=1,t}(),xN=function(t,A){return A===void 0&&(A={}),ON(t,A)};typeof window<"u"&&SC.setContext(window);var ON=function(t,A){return lt(void 0,void 0,void 0,function(){var e,n,r,i,s,a,c,u,f,p,g,m,w,F,b,v,_,S,E,L,D,U,D,P,N,sA,mA,nA,cA,HA,oe,KA,kA,rA,BA,XA,OA,PA,RA,zA;return Ze(this,function(qA){switch(qA.label){case 0:if(!t||typeof t!="object")return[2,Promise.reject("Invalid element provided as first argument")];if(e=t.ownerDocument,!e)throw new Error("Element is not attached to a Document");if(n=e.defaultView,!n)throw new Error("Document is not attached to a Window");return r={allowTaint:(P=A.allowTaint)!==null&&P!==void 0?P:!1,imageTimeout:(N=A.imageTimeout)!==null&&N!==void 0?N:15e3,proxy:A.proxy,useCORS:(sA=A.useCORS)!==null&&sA!==void 0?sA:!1},i=ju({logging:(mA=A.logging)!==null&&mA!==void 0?mA:!0,cache:A.cache},r),s={windowWidth:(nA=A.windowWidth)!==null&&nA!==void 0?nA:n.innerWidth,windowHeight:(cA=A.windowHeight)!==null&&cA!==void 0?cA:n.innerHeight,scrollX:(HA=A.scrollX)!==null&&HA!==void 0?HA:n.pageXOffset,scrollY:(oe=A.scrollY)!==null&&oe!==void 0?oe:n.pageYOffset},a=new Wn(s.scrollX,s.scrollY,s.windowWidth,s.windowHeight),c=new _N(i,a),u=(KA=A.foreignObjectRendering)!==null&&KA!==void 0?KA:!1,f={allowTaint:(kA=A.allowTaint)!==null&&kA!==void 0?kA:!1,onclone:A.onclone,ignoreElements:A.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 vC(c,t,f),g=p.clonedReferenceElement,g?[4,p.toIFrame(e,a)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return m=qA.sent(),w=Rf(g)||LD(g)?cO(g.ownerDocument):Ha(c,g),F=w.width,b=w.height,v=w.left,_=w.top,S=LN(c,g,A.backgroundColor),E={canvas:A.canvas,backgroundColor:S,scale:(BA=(rA=A.scale)!==null&&rA!==void 0?rA:n.devicePixelRatio)!==null&&BA!==void 0?BA:1,x:((XA=A.x)!==null&&XA!==void 0?XA:0)+v,y:((OA=A.y)!==null&&OA!==void 0?OA:0)+_,width:(PA=A.width)!==null&&PA!==void 0?PA:Math.ceil(F),height:(RA=A.height)!==null&&RA!==void 0?RA:Math.ceil(b)},u?(c.logger.debug("Document cloned, using foreign object rendering"),D=new IN(c,E),[4,D.render(g)]):[3,3];case 2:return L=qA.sent(),[3,5];case 3:return c.logger.debug("Document cloned, element located at "+v+","+_+" with size "+F+"x"+b+" using computed rendering"),c.logger.debug("Starting DOM parsing"),U=uC(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),D=new EN(c,E),[4,D.render(U)];case 4:L=qA.sent(),qA.label=5;case 5:return(!((zA=A.removeContainer)!==null&&zA!==void 0)||zA)&&(vC.destroy(m)||c.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),c.logger.debug("Finished rendering"),[2,L]}})})},LN=function(t,A,e){var n=A.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 e=="string"?co(t,e):e===null?Jn.TRANSPARENT:4294967295;return A===n.documentElement?Ir(r)?Ir(i)?s:i:r:s};const HN=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:()=>({})},debug:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(t,{emit:A}){const e=t,n=A,r=h.ref(),i=h.ref(""),s=h.ref();async function a(){if(r.value){const u=r.value,p=(await xN(u.firstElementChild,{backgroundColor:"rgba(0, 0, 0, 0)",scale:1,width:u.offsetWidth,height:u.offsetHeight,...e.options})).toDataURL();if(n("update:modelValue",p),e.debug){const g=new Image;g.src=p,document.body.appendChild(g)}return p}return""}const c=vm.debounce(async()=>{i.value=await a()},300,{trailing:!0,leading:!1});return h.onMounted(()=>{const u=r.value;e.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))}}),kN={class:"link-sharing"},DN={key:0,class:"link-sharing__links container"},NN={class:"row"},MN={key:0,class:"col-12 col-md-6"},RN=["href"],KN={class:"caption"},PN={key:1,class:"col-12 col-md-6"},VN=["href"],GN={class:"caption"},WN={key:2,class:"col-12 col-md-6"},$N={class:"caption"},JN={key:3,class:"col-12 col-md-6"},XN=["href"],YN={class:"caption"},zN={key:4,class:"col-12 col-md-6"},qN=["href"],ZN={class:"caption"},jN={key:5,class:"col-12 col-md-6"},AM={class:"caption"},eM={key:6,class:"col-12 col-md-6"},tM=["href"],nM={class:"caption"},rM={key:1,class:"link-sharing__instructions pt-5"},iM={class:"row"},sM={class:"col-12 text-center py-0"},oM={class:"mb-5"},aM=t=>t.replace(/<(?:.|\n)*?>/gm,""),lM=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,x:!0}}},setup(t){const A=t,e=h.ref(!1),n=h.computed(()=>encodeURIComponent(A.url));h.computed(()=>encodeURIComponent(A.media));const r=h.computed(()=>aM(A.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=A.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",kN,[e.value?(h.openBlock(),h.createElementBlock("div",rM,[h.createElementVNode("div",iM,[h.createElementVNode("div",sM,[h.createElementVNode("div",oM,[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",DN,[h.createElementVNode("div",NN,[t.services.facebook?(h.openBlock(),h.createElementBlock("div",MN,[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",KN,h.toDisplayString(a.$t("sharing.facebook")),1)],8,RN)])):h.createCommentVNode("",!0),t.services.x?(h.openBlock(),h.createElementBlock("div",PN,[h.createElementVNode("a",{class:"link-sharing__link btn btn-primary",href:`https://x.com/share?text=${t.subject}&url=${n.value}`,target:"_blank",rel:"noopener"},[h.createVNode(u,{symbol:"x-logo"}),h.createElementVNode("span",GN,h.toDisplayString(a.$t("sharing.x")),1)],8,VN)])):h.createCommentVNode("",!0),t.services.instagram?(h.openBlock(),h.createElementBlock("div",WN,[h.createElementVNode("button",{type:"button",class:"link-sharing__link btn btn-primary",onClick:c[0]||(c[0]=h.withModifiers(f=>e.value=!e.value,["prevent"]))},[h.createVNode(u,{symbol:"instagram"}),h.createElementVNode("span",$N,h.toDisplayString(a.$t("sharing.instagram")),1)])])):h.createCommentVNode("",!0),t.services.linkedin?(h.openBlock(),h.createElementBlock("div",JN,[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",YN,h.toDisplayString(a.$t("sharing.linkedin")),1)],8,XN)])):h.createCommentVNode("",!0),t.services.whatsapp&&i.value?(h.openBlock(),h.createElementBlock("div",zN,[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",ZN,h.toDisplayString(a.$t("sharing.whatsapp")),1)],8,qN)])):h.createCommentVNode("",!0),t.services.clipboard?(h.openBlock(),h.createElementBlock("div",jN,[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",AM,h.toDisplayString(a.$t("sharing.clipboard")),1)])])):h.createCommentVNode("",!0),t.services.mailto?(h.openBlock(),h.createElementBlock("div",eM,[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",nM,h.toDisplayString(a.$t("sharing.mailto")),1)],8,tM)])):h.createCommentVNode("",!0)])]))])}}}),U3="",cM={class:"base-form"},uM=h.defineComponent({__name:"base-form",props:{id:{},name:{},variant:{},disabled:{type:Boolean},pending:{type:Boolean}},setup(t){function A(r){console.log("input",r)}function e(r){console.log("reset",r)}function n(r){console.log("submit",r)}return(r,i)=>(h.openBlock(),h.createElementBlock("div",cM,[h.createElementVNode("form",{ref:"form",onInput:A,onReset:e,onSubmit:h.withModifiers(n,["prevent"])},[h.renderSlot(r.$slots,"default")],544)]))}}),v3="",fM={class:"modal-dialog__content d-flex flex-column"},dM={class:"modal-dialog__header d-flex p-3 border-bottom"},hM={key:0,class:"modal-dialog__title",id:"exampleModalLabel"},pM={class:"modal-dialog__body"},gM={key:0,class:"modal-dialog__footer d-flex p-3 border-top"},BM=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:A,emit:e}){const n=t,r=e,i=h.ref();function s(){var g,m;document.documentElement.style.setProperty("--scroll-position",`${Math.round(document.documentElement.scrollTop)}px`),n.modal?(g=i.value)==null||g.showModal():(m=i.value)==null||m.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"}),m=new Animation(g,document.timeline);m.play(),m.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 m=g.target;m&&m.nodeName==="DIALOG"&&a()}return h.watch(()=>n.modelValue,(g,m)=>{g&&g!==m?s():m&&a()},{immediate:!0}),h.onMounted(()=>{var g;(g=i.value)==null||g.addEventListener("cancel",m=>{m.preventDefault(),a()}),n.dismiss&&document.addEventListener("click",p),n.modelValue&&s()}),h.onBeforeUnmount(()=>{n.dismiss&&document.removeEventListener("click",p)}),A({show:s,close:a,confirm:u,cancel:f}),(g,m)=>(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",fM,[h.createElementVNode("div",dM,[t.title?(h.openBlock(),h.createElementBlock("h5",hM,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",pM,[h.renderSlot(g.$slots,"default")]),t.footer?(h.openBlock(),h.createElementBlock("div",gM,[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))}}),I3="",mM=["onDragenter","onDragover","onDragleave","onDragend","onDrop","innerHTML"],wM=["onDragstart","onDrag","onDragenter","onDragover","onDragleave","onDragend","onDrop"],CM={key:0,class:"sortable-list__drag-handle"},yM={type:"button",class:"btn"},EM={class:"sortable-list__item"},QM={key:0,class:"sortable-list__item"},FM=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:A}){const e=t,n=h.ref(!1),r=h.ref(null),i=h.ref(null),s=A,a=h.computed({get(){return e.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 m(_,S){}function w(_,S){i.value=r.value!==S?S:null}function F(_,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.createElementBlock("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"]))},[(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:D=>w(D,U),onDragover:D=>void 0,onDragleave:D=>void 0,onDragend:D=>g(),onDrop:D=>v(D,U),innerHTML:c.value},null,40,mM)):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:D=>p(D,U),onDrag:D=>void 0,onDragenter:D=>w(D,U),onDragover:D=>void 0,onDragleave:D=>void 0,onDragend:D=>g(),onDrop:D=>v(D,U)},[t.showDragHandle?(h.openBlock(),h.createElementBlock("div",CM,[h.createElementVNode("button",yM,[h.createVNode(E,{symbol:"drag"})])])):h.createCommentVNode("",!0),h.createElementVNode("div",EM,[h.renderSlot(_.$slots,"list-item",{item:L,index:U},()=>[h.createTextVNode(h.toDisplayString(L),1)])])],42,wM)],64))),128)),f.value?(h.openBlock(),h.createElementBlock("li",QM,[h.renderSlot(_.$slots,"list-append")])):h.createCommentVNode("",!0)],34)}}}),S3="";IA.Accordion=HE,IA.AccordionItem=TE,IA.AssetUploader=Jx,IA.AutoSuggest=h_,IA.BaseButton=DE,IA.BaseCamera=L_,IA.BaseCarousel=km,IA.BaseForm=uM,IA.BaseHeadline=CE,IA.BaseImage=wE,IA.BaseInput=KE,IA.BaseParagraph=EE,IA.CheckGroup=nQ,IA.DomRenderer=HN,IA.FileUpload=Dx,IA.InputCheckbox=YE,IA.InputColor=AS,IA.InputDatetime=jE,IA.InputDropdown=l_,IA.InputFile=gQ,IA.InputTextarea=WE,IA.LinkSharing=lM,IA.LoadingSpinner=BE,IA.MediaThumbnails=AO,IA.ModalDialog=BM,IA.ProgressSteps=lO,IA.RadioGroup=aQ,IA.RteEditor=z1,IA.SortableList=FM,IA.SvgIcon=hE,IA.UploadGroup=Hm,Object.defineProperty(IA,Symbol.toStringTag,{value:"Module"})});
183
+ .`+Wf+XD+IC)},zD=function(t,A){var e=t.ownerDocument;if(e){var n=e.createElement("style");n.textContent=A,t.appendChild(n)}},SC=function(){function t(){}return t.getOrigin=function(A){var e=t._link;return e?(e.href=A,e.href=e.href,e.protocol+e.hostname+e.port):"about:blank"},t.isSameOrigin=function(A){return t.getOrigin(A)===t._origin},t.setContext=function(A){t._link=A.document.createElement("a"),t._origin=t.getOrigin(A.location.href)},t._origin="about:blank",t}(),qD=function(){function t(A,e){this.context=A,this._options=e,this._cache={}}return t.prototype.addImage=function(A){var e=Promise.resolve();return this.has(A)||(Jf(A)||eN(A))&&(this._cache[A]=this.loadImage(A)).catch(function(){}),e},t.prototype.match=function(A){return this._cache[A]},t.prototype.loadImage=function(A){return lt(this,void 0,void 0,function(){var e,n,r,i,s=this;return Ze(this,function(a){switch(a.label){case 0:return e=SC.isSameOrigin(A),n=!$f(A)&&this._options.useCORS===!0&&Ve.SUPPORT_CORS_IMAGES&&!e,r=!$f(A)&&!e&&!Jf(A)&&typeof this._options.proxy=="string"&&Ve.SUPPORT_CORS_XHR&&!n,!e&&this._options.allowTaint===!1&&!$f(A)&&!Jf(A)&&!r&&!n?[2]:(i=A,r?[4,this.proxy(i)]:[3,2]);case 1:i=a.sent(),a.label=2;case 2:return this.context.logger.debug("Added image "+A.substring(0,256)),[4,new Promise(function(c,u){var f=new Image;f.onload=function(){return c(f)},f.onerror=u,(tN(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(A){return typeof this._cache[A]<"u"},t.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},t.prototype.proxy=function(A){var e=this,n=this._options.proxy;if(!n)throw new Error("No proxy defined");var r=A.substring(0,256);return new Promise(function(i,s){var a=Ve.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(A)+"&responseType="+a),a!=="text"&&c instanceof XMLHttpRequest&&(c.responseType=a),e._options.imageTimeout){var f=e._options.imageTimeout;c.timeout=f,c.ontimeout=function(){return s("Timed out ("+f+"ms) proxying "+r)}}c.send()})},t}(),ZD=/^data:image\/svg\+xml/i,jD=/^data:image\/.*;base64,/i,AN=/^data:image\/.*/i,eN=function(t){return Ve.SUPPORT_SVG_DRAWING||!nN(t)},$f=function(t){return AN.test(t)},tN=function(t){return jD.test(t)},Jf=function(t){return t.substr(0,4)==="blob"},nN=function(t){return t.substr(-3).toLowerCase()==="svg"||ZD.test(t)},Z=function(){function t(A,e){this.type=0,this.x=A,this.y=e}return t.prototype.add=function(A,e){return new t(this.x+A,this.y+e)},t}(),ns=function(t,A,e){return new Z(t.x+(A.x-t.x)*e,t.y+(A.y-t.y)*e)},Cl=function(){function t(A,e,n,r){this.type=1,this.start=A,this.startControl=e,this.endControl=n,this.end=r}return t.prototype.subdivide=function(A,e){var n=ns(this.start,this.startControl,A),r=ns(this.startControl,this.endControl,A),i=ns(this.endControl,this.end,A),s=ns(n,r,A),a=ns(r,i,A),c=ns(s,a,A);return e?new t(this.start,n,s,c):new t(c,a,i,this.end)},t.prototype.add=function(A,e){return new t(this.start.add(A,e),this.startControl.add(A,e),this.endControl.add(A,e),this.end.add(A,e))},t.prototype.reverse=function(){return new t(this.end,this.endControl,this.startControl,this.start)},t}(),Wt=function(t){return t.type===1},rN=function(){function t(A){var e=A.styles,n=A.bounds,r=lo(e.borderTopLeftRadius,n.width,n.height),i=r[0],s=r[1],a=lo(e.borderTopRightRadius,n.width,n.height),c=a[0],u=a[1],f=lo(e.borderBottomRightRadius,n.width,n.height),p=f[0],g=f[1],m=lo(e.borderBottomLeftRadius,n.width,n.height),w=m[0],F=m[1],b=[];b.push((i+c)/n.width),b.push((w+p)/n.width),b.push((s+F)/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,F/=v);var _=n.width-c,S=n.height-g,E=n.width-p,L=n.height-F,U=e.borderTopWidth,D=e.borderRightWidth,P=e.borderBottomWidth,N=e.borderLeftWidth,sA=se(e.paddingTop,A.bounds.width),mA=se(e.paddingRight,A.bounds.width),nA=se(e.paddingBottom,A.bounds.width),cA=se(e.paddingLeft,A.bounds.width);this.topLeftBorderDoubleOuterBox=i>0||s>0?ue(n.left+N/3,n.top+U/3,i-N/3,s-U/3,JA.TOP_LEFT):new Z(n.left+N/3,n.top+U/3),this.topRightBorderDoubleOuterBox=i>0||s>0?ue(n.left+_,n.top+U/3,c-D/3,u-U/3,JA.TOP_RIGHT):new Z(n.left+n.width-D/3,n.top+U/3),this.bottomRightBorderDoubleOuterBox=p>0||g>0?ue(n.left+E,n.top+S,p-D/3,g-P/3,JA.BOTTOM_RIGHT):new Z(n.left+n.width-D/3,n.top+n.height-P/3),this.bottomLeftBorderDoubleOuterBox=w>0||F>0?ue(n.left+N/3,n.top+L,w-N/3,F-P/3,JA.BOTTOM_LEFT):new Z(n.left+N/3,n.top+n.height-P/3),this.topLeftBorderDoubleInnerBox=i>0||s>0?ue(n.left+N*2/3,n.top+U*2/3,i-N*2/3,s-U*2/3,JA.TOP_LEFT):new Z(n.left+N*2/3,n.top+U*2/3),this.topRightBorderDoubleInnerBox=i>0||s>0?ue(n.left+_,n.top+U*2/3,c-D*2/3,u-U*2/3,JA.TOP_RIGHT):new Z(n.left+n.width-D*2/3,n.top+U*2/3),this.bottomRightBorderDoubleInnerBox=p>0||g>0?ue(n.left+E,n.top+S,p-D*2/3,g-P*2/3,JA.BOTTOM_RIGHT):new Z(n.left+n.width-D*2/3,n.top+n.height-P*2/3),this.bottomLeftBorderDoubleInnerBox=w>0||F>0?ue(n.left+N*2/3,n.top+L,w-N*2/3,F-P*2/3,JA.BOTTOM_LEFT):new Z(n.left+N*2/3,n.top+n.height-P*2/3),this.topLeftBorderStroke=i>0||s>0?ue(n.left+N/2,n.top+U/2,i-N/2,s-U/2,JA.TOP_LEFT):new Z(n.left+N/2,n.top+U/2),this.topRightBorderStroke=i>0||s>0?ue(n.left+_,n.top+U/2,c-D/2,u-U/2,JA.TOP_RIGHT):new Z(n.left+n.width-D/2,n.top+U/2),this.bottomRightBorderStroke=p>0||g>0?ue(n.left+E,n.top+S,p-D/2,g-P/2,JA.BOTTOM_RIGHT):new Z(n.left+n.width-D/2,n.top+n.height-P/2),this.bottomLeftBorderStroke=w>0||F>0?ue(n.left+N/2,n.top+L,w-N/2,F-P/2,JA.BOTTOM_LEFT):new Z(n.left+N/2,n.top+n.height-P/2),this.topLeftBorderBox=i>0||s>0?ue(n.left,n.top,i,s,JA.TOP_LEFT):new Z(n.left,n.top),this.topRightBorderBox=c>0||u>0?ue(n.left+_,n.top,c,u,JA.TOP_RIGHT):new Z(n.left+n.width,n.top),this.bottomRightBorderBox=p>0||g>0?ue(n.left+E,n.top+S,p,g,JA.BOTTOM_RIGHT):new Z(n.left+n.width,n.top+n.height),this.bottomLeftBorderBox=w>0||F>0?ue(n.left,n.top+L,w,F,JA.BOTTOM_LEFT):new Z(n.left,n.top+n.height),this.topLeftPaddingBox=i>0||s>0?ue(n.left+N,n.top+U,Math.max(0,i-N),Math.max(0,s-U),JA.TOP_LEFT):new Z(n.left+N,n.top+U),this.topRightPaddingBox=c>0||u>0?ue(n.left+Math.min(_,n.width-D),n.top+U,_>n.width+D?0:Math.max(0,c-D),Math.max(0,u-U),JA.TOP_RIGHT):new Z(n.left+n.width-D,n.top+U),this.bottomRightPaddingBox=p>0||g>0?ue(n.left+Math.min(E,n.width-N),n.top+Math.min(S,n.height-P),Math.max(0,p-D),Math.max(0,g-P),JA.BOTTOM_RIGHT):new Z(n.left+n.width-D,n.top+n.height-P),this.bottomLeftPaddingBox=w>0||F>0?ue(n.left+N,n.top+Math.min(L,n.height-P),Math.max(0,w-N),Math.max(0,F-P),JA.BOTTOM_LEFT):new Z(n.left+N,n.top+n.height-P),this.topLeftContentBox=i>0||s>0?ue(n.left+N+cA,n.top+U+sA,Math.max(0,i-(N+cA)),Math.max(0,s-(U+sA)),JA.TOP_LEFT):new Z(n.left+N+cA,n.top+U+sA),this.topRightContentBox=c>0||u>0?ue(n.left+Math.min(_,n.width+N+cA),n.top+U+sA,_>n.width+N+cA?0:c-N+cA,u-(U+sA),JA.TOP_RIGHT):new Z(n.left+n.width-(D+mA),n.top+U+sA),this.bottomRightContentBox=p>0||g>0?ue(n.left+Math.min(E,n.width-(N+cA)),n.top+Math.min(S,n.height+U+sA),Math.max(0,p-(D+mA)),g-(P+nA),JA.BOTTOM_RIGHT):new Z(n.left+n.width-(D+mA),n.top+n.height-(P+nA)),this.bottomLeftContentBox=w>0||F>0?ue(n.left+N+cA,n.top+L,Math.max(0,w-(N+cA)),F-(P+nA),JA.BOTTOM_LEFT):new Z(n.left+N+cA,n.top+n.height-(P+nA))}return t}(),JA;(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"})(JA||(JA={}));var ue=function(t,A,e,n,r){var i=4*((Math.sqrt(2)-1)/3),s=e*i,a=n*i,c=t+e,u=A+n;switch(r){case JA.TOP_LEFT:return new Cl(new Z(t,u),new Z(t,u-a),new Z(c-s,A),new Z(c,A));case JA.TOP_RIGHT:return new Cl(new Z(t,A),new Z(t+s,A),new Z(c,u-a),new Z(c,u));case JA.BOTTOM_RIGHT:return new Cl(new Z(c,A),new Z(c,A+a),new Z(t+s,u),new Z(t,u));case JA.BOTTOM_LEFT:default:return new Cl(new Z(c,u),new Z(c-s,u),new Z(t,A+a),new Z(t,A))}},yl=function(t){return[t.topLeftBorderBox,t.topRightBorderBox,t.bottomRightBorderBox,t.bottomLeftBorderBox]},iN=function(t){return[t.topLeftContentBox,t.topRightContentBox,t.bottomRightContentBox,t.bottomLeftContentBox]},El=function(t){return[t.topLeftPaddingBox,t.topRightPaddingBox,t.bottomRightPaddingBox,t.bottomLeftPaddingBox]},sN=function(){function t(A,e,n){this.offsetX=A,this.offsetY=e,this.matrix=n,this.type=0,this.target=6}return t}(),Ql=function(){function t(A,e){this.path=A,this.target=e,this.type=1}return t}(),oN=function(){function t(A){this.opacity=A,this.type=2,this.target=6}return t}(),aN=function(t){return t.type===0},TC=function(t){return t.type===1},lN=function(t){return t.type===2},_C=function(t,A){return t.length===A.length?t.some(function(e,n){return e===A[n]}):!1},cN=function(t,A,e,n,r){return t.map(function(i,s){switch(s){case 0:return i.add(A,e);case 1:return i.add(A+n,e);case 2:return i.add(A+n,e+r);case 3:return i.add(A,e+r)}return i})},xC=function(){function t(A){this.element=A,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return t}(),OC=function(){function t(A,e){if(this.container=A,this.parent=e,this.effects=[],this.curves=new rN(this.container),this.container.styles.opacity<1&&this.effects.push(new oN(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 sN(n,r,i))}if(this.container.styles.overflowX!==0){var s=yl(this.curves),a=El(this.curves);_C(s,a)?this.effects.push(new Ql(s,6)):(this.effects.push(new Ql(s,2)),this.effects.push(new Ql(a,4)))}}return t.prototype.getEffects=function(A){for(var e=[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!TC(c)});if(e||n.container.styles.position!==0||!n.parent){if(r.unshift.apply(r,i),e=[2,3].indexOf(n.container.styles.position)===-1,n.container.styles.overflowX!==0){var s=yl(n.curves),a=El(n.curves);_C(s,a)||r.unshift(new Ql(a,6))}}else r.unshift.apply(r,i);n=n.parent}return r.filter(function(c){return Se(c.target,A)})},t}(),Xf=function(t,A,e,n){t.container.elements.forEach(function(r){var i=Se(r.flags,4),s=Se(r.flags,2),a=new OC(r,t);Se(r.styles.display,2048)&&n.push(a);var c=Se(r.flags,8)?[]:n;if(i||s){var u=i||r.styles.isPositioned()?e:A,f=new xC(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,F){return p>w.element.container.styles.zIndex.order?(g=F,!1):g>0}),u.negativeZIndex.splice(g,0,f)}else if(p>0){var m=0;u.positiveZIndex.some(function(w,F){return p>=w.element.container.styles.zIndex.order?(m=F+1,!1):m>0}),u.positiveZIndex.splice(m,0,f)}else u.zeroOrAutoZIndexOrTransformedOrOpacity.push(f)}else r.styles.isFloating()?u.nonPositionedFloats.push(f):u.nonPositionedInlineLevel.push(f);Xf(a,f,i?f:e,c)}else r.styles.isInlineLevel()?A.inlineLevel.push(a):A.nonInlineLevel.push(a),Xf(a,A,e,c);Se(r.flags,8)&&LC(r,c)})},LC=function(t,A){for(var e=t instanceof Df?t.start:1,n=t instanceof Df?t.reversed:!1,r=0;r<A.length;r++){var i=A[r];i.container instanceof iC&&typeof i.container.value=="number"&&i.container.value!==0&&(e=i.container.value),i.listValue=go(e,i.container.styles.listStyleType,!0),e+=n?-1:1}},uN=function(t){var A=new OC(t,null),e=new xC(A),n=[];return Xf(A,e,e,n),LC(A.container,n),e},HC=function(t,A){switch(A){case 0:return $t(t.topLeftBorderBox,t.topLeftPaddingBox,t.topRightBorderBox,t.topRightPaddingBox);case 1:return $t(t.topRightBorderBox,t.topRightPaddingBox,t.bottomRightBorderBox,t.bottomRightPaddingBox);case 2:return $t(t.bottomRightBorderBox,t.bottomRightPaddingBox,t.bottomLeftBorderBox,t.bottomLeftPaddingBox);case 3:default:return $t(t.bottomLeftBorderBox,t.bottomLeftPaddingBox,t.topLeftBorderBox,t.topLeftPaddingBox)}},fN=function(t,A){switch(A){case 0:return $t(t.topLeftBorderBox,t.topLeftBorderDoubleOuterBox,t.topRightBorderBox,t.topRightBorderDoubleOuterBox);case 1:return $t(t.topRightBorderBox,t.topRightBorderDoubleOuterBox,t.bottomRightBorderBox,t.bottomRightBorderDoubleOuterBox);case 2:return $t(t.bottomRightBorderBox,t.bottomRightBorderDoubleOuterBox,t.bottomLeftBorderBox,t.bottomLeftBorderDoubleOuterBox);case 3:default:return $t(t.bottomLeftBorderBox,t.bottomLeftBorderDoubleOuterBox,t.topLeftBorderBox,t.topLeftBorderDoubleOuterBox)}},dN=function(t,A){switch(A){case 0:return $t(t.topLeftBorderDoubleInnerBox,t.topLeftPaddingBox,t.topRightBorderDoubleInnerBox,t.topRightPaddingBox);case 1:return $t(t.topRightBorderDoubleInnerBox,t.topRightPaddingBox,t.bottomRightBorderDoubleInnerBox,t.bottomRightPaddingBox);case 2:return $t(t.bottomRightBorderDoubleInnerBox,t.bottomRightPaddingBox,t.bottomLeftBorderDoubleInnerBox,t.bottomLeftPaddingBox);case 3:default:return $t(t.bottomLeftBorderDoubleInnerBox,t.bottomLeftPaddingBox,t.topLeftBorderDoubleInnerBox,t.topLeftPaddingBox)}},hN=function(t,A){switch(A){case 0:return Fl(t.topLeftBorderStroke,t.topRightBorderStroke);case 1:return Fl(t.topRightBorderStroke,t.bottomRightBorderStroke);case 2:return Fl(t.bottomRightBorderStroke,t.bottomLeftBorderStroke);case 3:default:return Fl(t.bottomLeftBorderStroke,t.topLeftBorderStroke)}},Fl=function(t,A){var e=[];return Wt(t)?e.push(t.subdivide(.5,!1)):e.push(t),Wt(A)?e.push(A.subdivide(.5,!0)):e.push(A),e},$t=function(t,A,e,n){var r=[];return Wt(t)?r.push(t.subdivide(.5,!1)):r.push(t),Wt(e)?r.push(e.subdivide(.5,!0)):r.push(e),Wt(n)?r.push(n.subdivide(.5,!0).reverse()):r.push(n),Wt(A)?r.push(A.subdivide(.5,!1).reverse()):r.push(A),r},kC=function(t){var A=t.bounds,e=t.styles;return A.add(e.borderLeftWidth,e.borderTopWidth,-(e.borderRightWidth+e.borderLeftWidth),-(e.borderTopWidth+e.borderBottomWidth))},bl=function(t){var A=t.styles,e=t.bounds,n=se(A.paddingLeft,e.width),r=se(A.paddingRight,e.width),i=se(A.paddingTop,e.width),s=se(A.paddingBottom,e.width);return e.add(n+A.borderLeftWidth,i+A.borderTopWidth,-(A.borderRightWidth+A.borderLeftWidth+n+r),-(A.borderTopWidth+A.borderBottomWidth+i+s))},pN=function(t,A){return t===0?A.bounds:t===2?bl(A):kC(A)},gN=function(t,A){return t===0?A.bounds:t===2?bl(A):kC(A)},Yf=function(t,A,e){var n=pN(is(t.styles.backgroundOrigin,A),t),r=gN(is(t.styles.backgroundClip,A),t),i=BN(is(t.styles.backgroundSize,A),e,n),s=i[0],a=i[1],c=lo(is(t.styles.backgroundPosition,A),n.width-s,n.height-a),u=mN(is(t.styles.backgroundRepeat,A),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 ee(t)&&t.value===ji.AUTO},Ul=function(t){return typeof t=="number"},BN=function(t,A,e){var n=A[0],r=A[1],i=A[2],s=t[0],a=t[1];if(!s)return[0,0];if(Ue(s)&&a&&Ue(a))return[se(s,e.width),se(a,e.height)];var c=Ul(i);if(ee(s)&&(s.value===ji.CONTAIN||s.value===ji.COVER)){if(Ul(i)){var u=e.width/e.height;return u<i!=(s.value===ji.COVER)?[e.width,e.width/i]:[e.height*i,e.height]}return[e.width,e.height]}var f=Ul(n),p=Ul(r),g=f||p;if(rs(s)&&(!a||rs(a))){if(f&&p)return[n,r];if(!c&&!g)return[e.width,e.height];if(g&&c){var m=f?n:r*i,w=p?r:n/i;return[m,w]}var F=f?n:e.width,b=p?r:e.height;return[F,b]}if(c){var v=0,_=0;return Ue(s)?v=se(s,e.width):Ue(a)&&(_=se(a,e.height)),rs(s)?v=_*i:(!a||rs(a))&&(_=v/i),[v,_]}var S=null,E=null;if(Ue(s)?S=se(s,e.width):a&&Ue(a)&&(E=se(a,e.height)),S!==null&&(!a||rs(a))&&(E=f&&p?S/n*r:e.height),E!==null&&rs(s)&&(S=f&&p?E/r*n:e.width),S!==null&&E!==null)return[S,E];throw new Error("Unable to calculate background-size for element")},is=function(t,A){var e=t[A];return typeof e>"u"?t[0]:e},mN=function(t,A,e,n,r){var i=A[0],s=A[1],a=e[0],c=e[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))]}},wN="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",DC="Hidden Text",CN=function(){function t(A){this._data={},this._document=A}return t.prototype.parseMetrics=function(A,e){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=A,n.style.fontSize=e,n.style.margin="0",n.style.padding="0",n.style.whiteSpace="nowrap",s.appendChild(n),r.src=wN,r.width=1,r.height=1,r.style.margin="0",r.style.padding="0",r.style.verticalAlign="baseline",i.style.fontFamily=A,i.style.fontSize=e,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(A,e){var n=A+" "+e;return typeof this._data[n]>"u"&&(this._data[n]=this.parseMetrics(A,e)),this._data[n]},t}(),NC=function(){function t(A,e){this.context=A,this.options=e}return t}(),yN=1e4,EN=function(t){ln(A,t);function A(e,n){var r=t.call(this,e,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 CN(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 A.prototype.applyEffects=function(e){for(var n=this;this._activeEffects.length;)this.popEffect();e.forEach(function(r){return n.applyEffect(r)})},A.prototype.applyEffect=function(e){this.ctx.save(),lN(e)&&(this.ctx.globalAlpha=e.opacity),aN(e)&&(this.ctx.translate(e.offsetX,e.offsetY),this.ctx.transform(e.matrix[0],e.matrix[1],e.matrix[2],e.matrix[3],e.matrix[4],e.matrix[5]),this.ctx.translate(-e.offsetX,-e.offsetY)),TC(e)&&(this.path(e.path),this.ctx.clip()),this._activeEffects.push(e)},A.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},A.prototype.renderStack=function(e){return lt(this,void 0,void 0,function(){var n;return Ze(this,function(r){switch(r.label){case 0:return n=e.element.container.styles,n.isVisible()?[4,this.renderStackContent(e)]:[3,2];case 1:r.sent(),r.label=2;case 2:return[2]}})})},A.prototype.renderNode=function(e){return lt(this,void 0,void 0,function(){return Ze(this,function(n){switch(n.label){case 0:if(Se(e.container.flags,16))debugger;return e.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(e)]:[3,3];case 1:return n.sent(),[4,this.renderNodeContent(e)];case 2:n.sent(),n.label=3;case 3:return[2]}})})},A.prototype.renderTextWithLetterSpacing=function(e,n,r){var i=this;if(n===0)this.ctx.fillText(e.text,e.bounds.left,e.bounds.top+r);else{var s=kf(e.text);s.reduce(function(a,c){return i.ctx.fillText(c,a,e.bounds.top+r),a+i.ctx.measureText(c).width},e.bounds.left)}},A.prototype.createFontStyle=function(e){var n=e.fontVariant.filter(function(s){return s==="normal"||s==="small-caps"}).join(""),r=vN(e.fontFamily).join(", "),i=ao(e.fontSize)?""+e.fontSize.number+e.fontSize.unit:e.fontSize.number+"px";return[[e.fontStyle,n,e.fontWeight,i,r].join(" "),r,i]},A.prototype.renderTextNode=function(e,n){return lt(this,void 0,void 0,function(){var r,i,s,a,c,u,f,p,g=this;return Ze(this,function(m){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,e.textBounds.forEach(function(w){p.forEach(function(F){switch(F){case 0:g.ctx.fillStyle=De(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=De(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=De(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=De(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]})})},A.prototype.renderReplacedElement=function(e,n,r){if(r&&e.intrinsicWidth>0&&e.intrinsicHeight>0){var i=bl(e),s=El(n);this.path(s),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(r,0,0,e.intrinsicWidth,e.intrinsicHeight,i.left,i.top,i.width,i.height),this.ctx.restore()}},A.prototype.renderNodeContent=function(e){return lt(this,void 0,void 0,function(){var n,r,i,s,a,c,_,_,u,f,p,g,E,m,w,L,F,b,v,_,S,E,L;return Ze(this,function(U){switch(U.label){case 0:this.applyEffects(e.getEffects(4)),n=e.container,r=e.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 tC))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 nC&&this.renderReplacedElement(n,r,n.canvas),!(n instanceof rC))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 lC&&n.tree?(u=new A(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 Nf&&(p=Math.min(n.bounds.width,n.bounds.height),n.type===hl?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=De(sC),this.ctx.fill(),this.ctx.restore()):n.type===pl&&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=De(sC),this.ctx.fill(),this.ctx.restore())),QN(n)&&n.value.length){switch(g=this.createFontStyle(i),E=g[0],m=g[1],w=this.fontMetrics.getMetrics(E,m).baseline,this.ctx.font=E,this.ctx.fillStyle=De(i.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=bN(n.styles.textAlign),L=bl(n),F=0,n.styles.textAlign){case 1:F+=L.width/2;break;case 2:F+=L.width;break}b=L.add(F,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(!Se(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:e.listValue&&n.styles.listStyleType!==-1&&(E=this.createFontStyle(i)[0],this.ctx.font=E,this.ctx.fillStyle=De(i.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",L=new Wn(n.bounds.left,n.bounds.top+se(n.styles.paddingTop,n.bounds.width),n.bounds.width,Dw(i.lineHeight,i.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new ho(e.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]}})})},A.prototype.renderStackContent=function(e){return lt(this,void 0,void 0,function(){var n,r,v,i,s,v,a,c,v,u,f,v,p,g,v,m,w,v,F,b,v;return Ze(this,function(_){switch(_.label){case 0:if(Se(e.element.container.flags,16))debugger;return[4,this.renderNodeBackgroundAndBorders(e.element)];case 1:_.sent(),n=0,r=e.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(e.element)];case 6:_.sent(),i=0,s=e.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=e.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=e.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=e.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:m=0,w=e.zeroOrAutoZIndexOrTransformedOrOpacity,_.label=23;case 23:return m<w.length?(v=w[m],[4,this.renderStack(v)]):[3,26];case 24:_.sent(),_.label=25;case 25:return m++,[3,23];case 26:F=0,b=e.positiveZIndex,_.label=27;case 27:return F<b.length?(v=b[F],[4,this.renderStack(v)]):[3,30];case 28:_.sent(),_.label=29;case 29:return F++,[3,27];case 30:return[2]}})})},A.prototype.mask=function(e){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(e.slice(0).reverse()),this.ctx.closePath()},A.prototype.path=function(e){this.ctx.beginPath(),this.formatPath(e),this.ctx.closePath()},A.prototype.formatPath=function(e){var n=this;e.forEach(function(r,i){var s=Wt(r)?r.start:r;i===0?n.ctx.moveTo(s.x,s.y):n.ctx.lineTo(s.x,s.y),Wt(r)&&n.ctx.bezierCurveTo(r.startControl.x,r.startControl.y,r.endControl.x,r.endControl.y,r.end.x,r.end.y)})},A.prototype.renderRepeat=function(e,n,r,i){this.path(e),this.ctx.fillStyle=n,this.ctx.translate(r,i),this.ctx.fill(),this.ctx.translate(-r,-i)},A.prototype.resizeImage=function(e,n,r){var i;if(e.width===n&&e.height===r)return e;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(e,0,0,e.width,e.height,0,0,n,r),a},A.prototype.renderBackgroundImage=function(e){return lt(this,void 0,void 0,function(){var n,r,i,s,a,c;return Ze(this,function(u){switch(u.label){case 0:n=e.styles.backgroundImage.length-1,r=function(f){var p,g,m,sA,KA,kA,cA,HA,P,w,sA,KA,kA,cA,HA,F,b,v,_,S,E,L,U,D,P,N,sA,mA,nA,cA,HA,oe,KA,kA,rA,BA,XA,OA,PA,RA,zA,qA;return Ze(this,function(ZA){switch(ZA.label){case 0:if(f.type!==0)return[3,5];p=void 0,g=f.url,ZA.label=1;case 1:return ZA.trys.push([1,3,,4]),[4,i.context.cache.match(g)];case 2:return p=ZA.sent(),[3,4];case 3:return ZA.sent(),i.context.logger.error("Error loading background-image "+g),[3,4];case 4:return p&&(m=Yf(e,n,[p.width,p.height,p.width/p.height]),sA=m[0],KA=m[1],kA=m[2],cA=m[3],HA=m[4],P=i.ctx.createPattern(i.resizeImage(p,cA,HA),"repeat"),i.renderRepeat(sA,P,KA,kA)),[3,6];case 5:aH(f)?(w=Yf(e,n,[null,null,null]),sA=w[0],KA=w[1],kA=w[2],cA=w[3],HA=w[4],F=nH(f.angle,cA,HA),b=F[0],v=F[1],_=F[2],S=F[3],E=F[4],L=document.createElement("canvas"),L.width=cA,L.height=HA,U=L.getContext("2d"),D=U.createLinearGradient(v,S,_,E),Uw(f.stops,b).forEach(function(he){return D.addColorStop(he.stop,De(he.color))}),U.fillStyle=D,U.fillRect(0,0,cA,HA),cA>0&&HA>0&&(P=i.ctx.createPattern(L,"repeat"),i.renderRepeat(sA,P,KA,kA))):lH(f)&&(N=Yf(e,n,[null,null,null]),sA=N[0],mA=N[1],nA=N[2],cA=N[3],HA=N[4],oe=f.position.length===0?[yf]:f.position,KA=se(oe[0],cA),kA=se(oe[oe.length-1],HA),rA=rH(f,KA,kA,cA,HA),BA=rA[0],XA=rA[1],BA>0&&XA>0&&(OA=i.ctx.createRadialGradient(mA+KA,nA+kA,0,mA+KA,nA+kA,BA),Uw(f.stops,BA*2).forEach(function(he){return OA.addColorStop(he.stop,De(he.color))}),i.path(sA),i.ctx.fillStyle=OA,BA!==XA?(PA=e.bounds.left+.5*e.bounds.width,RA=e.bounds.top+.5*e.bounds.height,zA=XA/BA,qA=1/zA,i.ctx.save(),i.ctx.translate(PA,RA),i.ctx.transform(1,0,0,zA,0,0),i.ctx.translate(-PA,-RA),i.ctx.fillRect(mA,qA*(nA-RA)+RA,cA,HA*qA),i.ctx.restore()):i.ctx.fill())),ZA.label=6;case 6:return n--,[2]}})},i=this,s=0,a=e.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]}})})},A.prototype.renderSolidBorder=function(e,n,r){return lt(this,void 0,void 0,function(){return Ze(this,function(i){return this.path(HC(r,n)),this.ctx.fillStyle=De(e),this.ctx.fill(),[2]})})},A.prototype.renderDoubleBorder=function(e,n,r,i){return lt(this,void 0,void 0,function(){var s,a;return Ze(this,function(c){switch(c.label){case 0:return n<3?[4,this.renderSolidBorder(e,r,i)]:[3,2];case 1:return c.sent(),[2];case 2:return s=fN(i,r),this.path(s),this.ctx.fillStyle=De(e),this.ctx.fill(),a=dN(i,r),this.path(a),this.ctx.fill(),[2]}})})},A.prototype.renderNodeBackgroundAndBorders=function(e){return lt(this,void 0,void 0,function(){var n,r,i,s,a,c,u,f,p=this;return Ze(this,function(g){switch(g.label){case 0:return this.applyEffects(e.getEffects(2)),n=e.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=FN(is(n.backgroundClip,0),e.curves),r||n.boxShadow.length?(this.ctx.save(),this.path(s),this.ctx.clip(),Ir(n.backgroundColor)||(this.ctx.fillStyle=De(n.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(e.container)]):[3,2];case 1:g.sent(),this.ctx.restore(),n.boxShadow.slice(0).reverse().forEach(function(m){p.ctx.save();var w=yl(e.curves),F=m.inset?0:yN,b=cN(w,-F+(m.inset?1:-1)*m.spread.number,(m.inset?1:-1)*m.spread.number,m.spread.number*(m.inset?-2:2),m.spread.number*(m.inset?-2:2));m.inset?(p.path(w),p.ctx.clip(),p.mask(b)):(p.mask(w),p.ctx.clip(),p.path(b)),p.ctx.shadowOffsetX=m.offsetX.number+F,p.ctx.shadowOffsetY=m.offsetY.number,p.ctx.shadowColor=De(m.color),p.ctx.shadowBlur=m.blur.number,p.ctx.fillStyle=m.inset?De(m.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,e.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,e.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,e.curves)];case 8:return g.sent(),[3,11];case 9:return[4,this.renderSolidBorder(f.color,a,e.curves)];case 10:g.sent(),g.label=11;case 11:a++,g.label=12;case 12:return c++,[3,3];case 13:return[2]}})})},A.prototype.renderDashedDottedBorder=function(e,n,r,i,s){return lt(this,void 0,void 0,function(){var a,c,u,f,p,g,m,w,F,b,v,_,S,E,L,U,L,U;return Ze(this,function(D){return this.ctx.save(),a=hN(i,r),c=HC(i,r),s===2&&(this.path(c),this.ctx.clip()),Wt(c[0])?(u=c[0].start.x,f=c[0].start.y):(u=c[0].x,f=c[0].y),Wt(c[1])?(p=c[1].end.x,g=c[1].end.y):(p=c[1].x,g=c[1].y),r===0||r===2?m=Math.abs(u-p):m=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,F=n<3?n*2:n,s===3&&(w=n,F=n),b=!0,m<=w*2?b=!1:m<=w*2+F?(v=m/(2*w+F),w*=v,F*=v):(_=Math.floor((m+F)/(w+F)),S=(m-_*w)/(_-1),E=(m-(_+1)*w)/_,F=E<=0||Math.abs(F-S)<Math.abs(F-E)?S:E),b&&(s===3?this.ctx.setLineDash([0,w+F]):this.ctx.setLineDash([w,F])),s===3?(this.ctx.lineCap="round",this.ctx.lineWidth=n):this.ctx.lineWidth=n*2+1.1,this.ctx.strokeStyle=De(e),this.ctx.stroke(),this.ctx.setLineDash([]),s===2&&(Wt(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()),Wt(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]})})},A.prototype.render=function(e){return lt(this,void 0,void 0,function(){var n;return Ze(this,function(r){switch(r.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=De(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),n=uN(e),[4,this.renderStack(n)];case 1:return r.sent(),this.applyEffects([]),[2,this.canvas]}})})},A}(NC),QN=function(t){return t instanceof aC||t instanceof oC?!0:t instanceof Nf&&t.type!==pl&&t.type!==hl},FN=function(t,A){switch(t){case 0:return yl(A);case 2:return iN(A);case 1:default:return El(A)}},bN=function(t){switch(t){case 1:return"center";case 2:return"right";case 0:default:return"left"}},UN=["-apple-system","system-ui"],vN=function(t){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?t.filter(function(A){return UN.indexOf(A)===-1}):t},IN=function(t){ln(A,t);function A(e,n){var r=t.call(this,e,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 A.prototype.render=function(e){return lt(this,void 0,void 0,function(){var n,r;return Ze(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,e),[4,SN(n)];case 1:return r=i.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=De(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]}})})},A}(NC),SN=function(t){return new Promise(function(A,e){var n=new Image;n.onload=function(){A(n)},n.onerror=e,n.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(t))})},TN=function(){function t(A){var e=A.id,n=A.enabled;this.id=e,this.enabled=n,this.start=Date.now()}return t.prototype.debug=function(){for(var A=[],e=0;e<arguments.length;e++)A[e]=arguments[e];this.enabled&&(typeof window<"u"&&window.console&&typeof console.debug=="function"?console.debug.apply(console,La([this.id,this.getTime()+"ms"],A)):this.info.apply(this,A))},t.prototype.getTime=function(){return Date.now()-this.start},t.prototype.info=function(){for(var A=[],e=0;e<arguments.length;e++)A[e]=arguments[e];this.enabled&&typeof window<"u"&&window.console&&typeof console.info=="function"&&console.info.apply(console,La([this.id,this.getTime()+"ms"],A))},t.prototype.warn=function(){for(var A=[],e=0;e<arguments.length;e++)A[e]=arguments[e];this.enabled&&(typeof window<"u"&&window.console&&typeof console.warn=="function"?console.warn.apply(console,La([this.id,this.getTime()+"ms"],A)):this.info.apply(this,A))},t.prototype.error=function(){for(var A=[],e=0;e<arguments.length;e++)A[e]=arguments[e];this.enabled&&(typeof window<"u"&&window.console&&typeof console.error=="function"?console.error.apply(console,La([this.id,this.getTime()+"ms"],A)):this.info.apply(this,A))},t.instances={},t}(),_N=function(){function t(A,e){var n;this.windowBounds=e,this.instanceName="#"+t.instanceCount++,this.logger=new TN({id:this.instanceName,enabled:A.logging}),this.cache=(n=A.cache)!==null&&n!==void 0?n:new qD(this,A)}return t.instanceCount=1,t}(),xN=function(t,A){return A===void 0&&(A={}),ON(t,A)};typeof window<"u"&&SC.setContext(window);var ON=function(t,A){return lt(void 0,void 0,void 0,function(){var e,n,r,i,s,a,c,u,f,p,g,m,w,F,b,v,_,S,E,L,D,U,D,P,N,sA,mA,nA,cA,HA,oe,KA,kA,rA,BA,XA,OA,PA,RA,zA;return Ze(this,function(qA){switch(qA.label){case 0:if(!t||typeof t!="object")return[2,Promise.reject("Invalid element provided as first argument")];if(e=t.ownerDocument,!e)throw new Error("Element is not attached to a Document");if(n=e.defaultView,!n)throw new Error("Document is not attached to a Window");return r={allowTaint:(P=A.allowTaint)!==null&&P!==void 0?P:!1,imageTimeout:(N=A.imageTimeout)!==null&&N!==void 0?N:15e3,proxy:A.proxy,useCORS:(sA=A.useCORS)!==null&&sA!==void 0?sA:!1},i=ju({logging:(mA=A.logging)!==null&&mA!==void 0?mA:!0,cache:A.cache},r),s={windowWidth:(nA=A.windowWidth)!==null&&nA!==void 0?nA:n.innerWidth,windowHeight:(cA=A.windowHeight)!==null&&cA!==void 0?cA:n.innerHeight,scrollX:(HA=A.scrollX)!==null&&HA!==void 0?HA:n.pageXOffset,scrollY:(oe=A.scrollY)!==null&&oe!==void 0?oe:n.pageYOffset},a=new Wn(s.scrollX,s.scrollY,s.windowWidth,s.windowHeight),c=new _N(i,a),u=(KA=A.foreignObjectRendering)!==null&&KA!==void 0?KA:!1,f={allowTaint:(kA=A.allowTaint)!==null&&kA!==void 0?kA:!1,onclone:A.onclone,ignoreElements:A.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 vC(c,t,f),g=p.clonedReferenceElement,g?[4,p.toIFrame(e,a)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return m=qA.sent(),w=Rf(g)||LD(g)?cO(g.ownerDocument):Ha(c,g),F=w.width,b=w.height,v=w.left,_=w.top,S=LN(c,g,A.backgroundColor),E={canvas:A.canvas,backgroundColor:S,scale:(BA=(rA=A.scale)!==null&&rA!==void 0?rA:n.devicePixelRatio)!==null&&BA!==void 0?BA:1,x:((XA=A.x)!==null&&XA!==void 0?XA:0)+v,y:((OA=A.y)!==null&&OA!==void 0?OA:0)+_,width:(PA=A.width)!==null&&PA!==void 0?PA:Math.ceil(F),height:(RA=A.height)!==null&&RA!==void 0?RA:Math.ceil(b)},u?(c.logger.debug("Document cloned, using foreign object rendering"),D=new IN(c,E),[4,D.render(g)]):[3,3];case 2:return L=qA.sent(),[3,5];case 3:return c.logger.debug("Document cloned, element located at "+v+","+_+" with size "+F+"x"+b+" using computed rendering"),c.logger.debug("Starting DOM parsing"),U=uC(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),D=new EN(c,E),[4,D.render(U)];case 4:L=qA.sent(),qA.label=5;case 5:return(!((zA=A.removeContainer)!==null&&zA!==void 0)||zA)&&(vC.destroy(m)||c.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),c.logger.debug("Finished rendering"),[2,L]}})})},LN=function(t,A,e){var n=A.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 e=="string"?co(t,e):e===null?Jn.TRANSPARENT:4294967295;return A===n.documentElement?Ir(r)?Ir(i)?s:i:r:s};const HN=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:()=>({})},debug:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(t,{emit:A}){const e=t,n=A,r=h.ref(),i=h.ref(""),s=h.ref();async function a(){if(r.value){const u=r.value,p=(await xN(u.firstElementChild,{backgroundColor:"rgba(0, 0, 0, 0)",scale:1,width:u.offsetWidth,height:u.offsetHeight,...e.options})).toDataURL();if(n("update:modelValue",p),e.debug){const g=new Image;g.src=p,document.body.appendChild(g)}return p}return""}const c=vm.debounce(async()=>{i.value=await a()},300,{trailing:!0,leading:!1});return h.onMounted(()=>{const u=r.value;e.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))}}),kN={class:"link-sharing"},DN={key:0,class:"link-sharing__links container"},NN={class:"row"},MN={key:0,class:"col-12 col-md-6"},RN=["href"],KN={class:"caption"},PN={key:1,class:"col-12 col-md-6"},VN=["href"],GN={class:"caption"},WN={key:2,class:"col-12 col-md-6"},$N={class:"caption"},JN={key:3,class:"col-12 col-md-6"},XN=["href"],YN={class:"caption"},zN={key:4,class:"col-12 col-md-6"},qN=["href"],ZN={class:"caption"},jN={key:5,class:"col-12 col-md-6"},AM={class:"caption"},eM={key:6,class:"col-12 col-md-6"},tM=["href"],nM={class:"caption"},rM={key:1,class:"link-sharing__instructions pt-5"},iM={class:"row"},sM={class:"col-12 text-center py-0"},oM={class:"mb-5"},aM=t=>t.replace(/<(?:.|\n)*?>/gm,""),lM=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,x:!0}}},setup(t){const A=t,e=h.ref(!1),n=h.computed(()=>encodeURIComponent(A.url));h.computed(()=>encodeURIComponent(A.media));const r=h.computed(()=>aM(A.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=A.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",kN,[e.value?(h.openBlock(),h.createElementBlock("div",rM,[h.createElementVNode("div",iM,[h.createElementVNode("div",sM,[h.createElementVNode("div",oM,[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",DN,[h.createElementVNode("div",NN,[t.services.facebook?(h.openBlock(),h.createElementBlock("div",MN,[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",KN,h.toDisplayString(a.$t("sharing.facebook")),1)],8,RN)])):h.createCommentVNode("",!0),t.services.x?(h.openBlock(),h.createElementBlock("div",PN,[h.createElementVNode("a",{class:"link-sharing__link btn btn-primary",href:`https://x.com/share?text=${t.subject}&url=${n.value}`,target:"_blank",rel:"noopener"},[h.createVNode(u,{symbol:"x-logo"}),h.createElementVNode("span",GN,h.toDisplayString(a.$t("sharing.x")),1)],8,VN)])):h.createCommentVNode("",!0),t.services.instagram?(h.openBlock(),h.createElementBlock("div",WN,[h.createElementVNode("button",{type:"button",class:"link-sharing__link btn btn-primary",onClick:c[0]||(c[0]=h.withModifiers(f=>e.value=!e.value,["prevent"]))},[h.createVNode(u,{symbol:"instagram"}),h.createElementVNode("span",$N,h.toDisplayString(a.$t("sharing.instagram")),1)])])):h.createCommentVNode("",!0),t.services.linkedin?(h.openBlock(),h.createElementBlock("div",JN,[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",YN,h.toDisplayString(a.$t("sharing.linkedin")),1)],8,XN)])):h.createCommentVNode("",!0),t.services.whatsapp&&i.value?(h.openBlock(),h.createElementBlock("div",zN,[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",ZN,h.toDisplayString(a.$t("sharing.whatsapp")),1)],8,qN)])):h.createCommentVNode("",!0),t.services.clipboard?(h.openBlock(),h.createElementBlock("div",jN,[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",AM,h.toDisplayString(a.$t("sharing.clipboard")),1)])])):h.createCommentVNode("",!0),t.services.mailto?(h.openBlock(),h.createElementBlock("div",eM,[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",nM,h.toDisplayString(a.$t("sharing.mailto")),1)],8,tM)])):h.createCommentVNode("",!0)])]))])}}}),b3="",cM={class:"base-form"},uM=h.defineComponent({__name:"base-form",props:{id:{},name:{},variant:{},disabled:{type:Boolean},pending:{type:Boolean}},setup(t){function A(r){console.log("input",r)}function e(r){console.log("reset",r)}function n(r){console.log("submit",r)}return(r,i)=>(h.openBlock(),h.createElementBlock("div",cM,[h.createElementVNode("form",{ref:"form",onInput:A,onReset:e,onSubmit:h.withModifiers(n,["prevent"])},[h.renderSlot(r.$slots,"default")],544)]))}}),U3="",fM={class:"modal-dialog__content d-flex flex-column"},dM={class:"modal-dialog__header d-flex p-3 border-bottom"},hM={key:0,class:"modal-dialog__title",id:"exampleModalLabel"},pM={class:"modal-dialog__body"},gM={key:0,class:"modal-dialog__footer d-flex p-3 border-top"},BM=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:A,emit:e}){const n=t,r=e,i=h.ref();function s(){var g,m;document.documentElement.style.setProperty("--scroll-position",`${Math.round(document.documentElement.scrollTop)}px`),n.modal?(g=i.value)==null||g.showModal():(m=i.value)==null||m.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"}),m=new Animation(g,document.timeline);m.play(),m.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 m=g.target;m&&m.nodeName==="DIALOG"&&a()}return h.watch(()=>n.modelValue,(g,m)=>{g&&g!==m?s():m&&a()},{immediate:!0}),h.onMounted(()=>{var g;(g=i.value)==null||g.addEventListener("cancel",m=>{m.preventDefault(),a()}),n.dismiss&&document.addEventListener("click",p),n.modelValue&&s()}),h.onBeforeUnmount(()=>{n.dismiss&&document.removeEventListener("click",p)}),A({show:s,close:a,confirm:u,cancel:f}),(g,m)=>(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",fM,[h.createElementVNode("div",dM,[t.title?(h.openBlock(),h.createElementBlock("h5",hM,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",pM,[h.renderSlot(g.$slots,"default")]),t.footer?(h.openBlock(),h.createElementBlock("div",gM,[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))}}),v3="",mM=["onDragenter","onDragover","onDragleave","onDragend","onDrop","innerHTML"],wM=["onDragstart","onDrag","onDragenter","onDragover","onDragleave","onDragend","onDrop"],CM={key:0,class:"sortable-list__drag-handle"},yM={type:"button",class:"btn"},EM={key:0,class:"sortable-list__item"},QM=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:A}){const e=t,n=h.ref(!1),r=h.ref(null),i=h.ref(null),s=A,a=h.computed({get(){return e.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 m(_,S){}function w(_,S){i.value=r.value!==S?S:null}function F(_,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:D=>w(D,U),onDragover:D=>void 0,onDragleave:D=>void 0,onDragend:D=>g(),onDrop:D=>v(D,U),innerHTML:c.value},null,40,mM)):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:D=>p(D,U),onDrag:D=>void 0,onDragenter:D=>w(D,U),onDragover:D=>void 0,onDragleave:D=>void 0,onDragend:D=>g(),onDrop:D=>v(D,U)},[t.showDragHandle?(h.openBlock(),h.createElementBlock("div",CM,[h.createElementVNode("button",yM,[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,wM)],64))),128)),f.value?(h.openBlock(),h.createElementBlock("li",EM,[h.renderSlot(_.$slots,"list-append")])):h.createCommentVNode("",!0)]),_:3},8,["class"])}}}),I3="";IA.Accordion=HE,IA.AccordionItem=TE,IA.AssetUploader=Jx,IA.AutoSuggest=h_,IA.BaseButton=DE,IA.BaseCamera=L_,IA.BaseCarousel=km,IA.BaseForm=uM,IA.BaseHeadline=CE,IA.BaseImage=wE,IA.BaseInput=KE,IA.BaseParagraph=EE,IA.CheckGroup=nQ,IA.DomRenderer=HN,IA.FileUpload=Dx,IA.InputCheckbox=YE,IA.InputColor=AS,IA.InputDatetime=jE,IA.InputDropdown=l_,IA.InputFile=gQ,IA.InputTextarea=WE,IA.LinkSharing=lM,IA.LoadingSpinner=BE,IA.MediaThumbnails=AO,IA.ModalDialog=BM,IA.ProgressSteps=lO,IA.RadioGroup=aQ,IA.RteEditor=z1,IA.SortableList=QM,IA.SvgIcon=hE,IA.UploadGroup=Hm,Object.defineProperty(IA,Symbol.toStringTag,{value:"Module"})});