@dcodegroup-au/page-builder 0.2.2 → 0.2.3

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,65 +1,65 @@
1
- (function(Ye,l){typeof exports=="object"&&typeof module<"u"?l(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],l):(Ye=typeof globalThis<"u"?globalThis:Ye||self,l(Ye.PageBuilder={},Ye.Vue))})(this,function(Ye,l){"use strict";var Bb=Object.defineProperty;var Pb=(Ye,l,Xn)=>l in Ye?Bb(Ye,l,{enumerable:!0,configurable:!0,writable:!0,value:Xn}):Ye[l]=Xn;var Ee=(Ye,l,Xn)=>Pb(Ye,typeof l!="symbol"?l+"":l,Xn);const Xn={xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"};function ru(n,e){return l.openBlock(),l.createElementBlock("svg",Xn,e[0]||(e[0]=[l.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m9 18 6-6-6-6"},null,-1)]))}const Va={render:ru},su={xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"};function iu(n,e){return l.openBlock(),l.createElementBlock("svg",su,e[0]||(e[0]=[l.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m6 9 6 6 6-6"},null,-1)]))}const au={render:iu},Sr=(n,e)=>{const t=n.__vccOpts||n;for(const[r,s]of e)t[r]=s;return t},ou={};function lu(n,e){return e[0]||(e[0]=l.createStaticVNode('<div class="text-lg pb-6 font-semibold text-gray-900 border-b border-gray-200">Instruction</div><div class="flex flex-col gap-3 py-6 text-gray-600"><div class="font-semibold text-gray-900">Modules</div><p>Modules are fixed and for internal reference only, and admin users cannot make the following changes:</p><ul class="list-inside list-disc pl-3"><li>Edit the title of any module (e.g., &quot;Hero header&quot;).</li><li>Change the order of the modules.</li><li>Add new module.</li></ul><p>For any changes at the module level, please contact the development team.</p></div><div class="flex flex-col gap-3 py-6 text-gray-600"><div class="font-semibold text-gray-900">Edit sub-modules or edit nested items</div><p>Click any sub-module to edit its settings and any nested items within it.</p></div>',3))}const cu=Sr(ou,[["render",lu]]),uu={xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"};function du(n,e){return l.openBlock(),l.createElementBlock("svg",uu,e[0]||(e[0]=[l.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 5v14m-7-7h14"},null,-1)]))}const Js={render:du},ts={data:{required:!0,type:Object},sites:{required:!0,type:Array}};function fu(n){return n.charAt(0).toUpperCase()+n.slice(1)}function ei(n,e=!1){const t={children:"child",people:"person",mice:"mouse",feet:"foot",teeth:"tooth",geese:"goose"};n=n.replace(/_/g," ");let r=Object.keys(t).find(s=>s===n)?t[n]:n.endsWith("s")?n.slice(0,-1):n;return e&&(r=r.charAt(0).toUpperCase()+r.slice(1)),r}function ti(n,e=!0){if(!n)return"";const t=n.split("_").pop();return e?fu(t):t}function $a(n={},e=!0){let t={title:"New Item",description:"New description",public:!1,featured_image:"",primary_button:{show:!1,label:"",type:"site-content",url:"",is_new_tab:!1,...n.primary_button||{}}};return e||(t.primary_button.name="Linked to"),e&&(t.secondary_button={show:!1,label:"",type:"site-content",url:"",is_new_tab:!1,...n.secondary_button||{}}),{...t,...n}}function hu(n={}){return{title:"New link",url:"",open_in_new_tab:!0,type:"site-content",...n||{}}}const pu={xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"};function mu(n,e){return l.openBlock(),l.createElementBlock("svg",pu,e[0]||(e[0]=[l.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 13a1 1 0 1 0 0-2 1 1 0 0 0 0 2M19 13a1 1 0 1 0 0-2 1 1 0 0 0 0 2M5 13a1 1 0 1 0 0-2 1 1 0 0 0 0 2"},null,-1)]))}const gu={render:mu},vu={xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"};function yu(n,e){return l.openBlock(),l.createElementBlock("svg",vu,e[0]||(e[0]=[l.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M16 6v-.8c0-1.12 0-1.68-.218-2.108a2 2 0 0 0-.874-.874C14.48 2 13.92 2 12.8 2h-1.6c-1.12 0-1.68 0-2.108.218a2 2 0 0 0-.874.874C8 3.52 8 4.08 8 5.2V6m2 5.5v5m4-5v5M3 6h18m-2 0v11.2c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C16.72 22 15.88 22 14.2 22H9.8c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C5 19.72 5 18.88 5 17.2V6"},null,-1)]))}const _a={render:yu},bu={xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"};function xu(n,e){return l.openBlock(),l.createElementBlock("svg",bu,e[0]||(e[0]=[l.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m2.5 21.5 5.55-2.134c.354-.137.532-.205.698-.294q.221-.12.42-.274c.149-.115.283-.25.552-.518L21 7a2.828 2.828 0 1 0-4-4L5.72 14.28c-.269.268-.403.403-.519.552a3 3 0 0 0-.273.42c-.089.166-.157.344-.294.699zm0 0 2.058-5.351c.147-.383.221-.575.347-.662a.5.5 0 0 1 .38-.08c.15.028.295.173.585.463l2.26 2.26c.29.29.435.434.464.585a.5.5 0 0 1-.08.38c-.089.126-.28.2-.663.347z"},null,-1)]))}const Eu={render:xu},Au={beforeMount:(n,e)=>{n.clickOutsideEvent=t=>{n===t.target||n.contains(t.target)||e.value()},document.addEventListener("click",n.clickOutsideEvent)},unmounted:n=>{document.removeEventListener("click",n.clickOutsideEvent)}},wu={class:"relative z-50"},Su={key:0,class:"absolute -left-60 top-6 w-[240px] rounded-lg border border-gray-200 bg-white text-sm"},ni=Object.assign({directives:{clickOutside:Au}},{__name:"ActionMenu",props:{enableEdit:{type:Boolean,default:!1}},emits:["removeItem"],setup(n,{emit:e}){const t=l.ref(!1),r=e,s=()=>{t.value&&(t.value=!1)},o=()=>{r("removeItem"),t.value=!1},a=()=>{r("editItem"),t.value=!1};return(c,i)=>{const u=l.resolveDirective("click-outside");return l.withDirectives((l.openBlock(),l.createElementBlock("div",wu,[l.createElementVNode("div",{class:"cursor-pointer text-gray-600 rounded-full hover:bg-gray-50 p-2.5 block",onClick:i[0]||(i[0]=d=>t.value=!t.value)},[l.createVNode(l.unref(gu),{class:"w-5"})]),t.value?(l.openBlock(),l.createElementBlock("div",Su,[n.enableEdit?(l.openBlock(),l.createElementBlock("a",{key:0,class:"flex items-center gap-2 px-2.5 cursor-pointer h-[48px] w-auto hover:bg-gray-100 rounded-lg m-1.5 text-gray-700",onClick:a},[l.createVNode(l.unref(Eu),{class:"w-4 text-gray-500"}),i[1]||(i[1]=l.createElementVNode("span",{class:"font-medium"}," Edit ",-1))])):l.createCommentVNode("",!0),l.createElementVNode("a",{class:"flex items-center gap-2 px-2.5 cursor-pointer h-[48px] w-auto hover:bg-gray-100 rounded-lg m-1.5 text-gray-700",onClick:o},[l.createVNode(l.unref(_a),{class:"w-4 text-gray-500"}),i[2]||(i[2]=l.createElementVNode("span",{class:"font-medium"}," Delete ",-1))])])):l.createCommentVNode("",!0)])),[[u,s]])}}}),Tu={xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"};function Nu(n,e){return l.openBlock(),l.createElementBlock("svg",Tu,e[0]||(e[0]=[l.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M18 6 6 18M6 6l12 12"},null,-1)]))}const Ou={render:Nu},Cu={key:0,class:"fixed min-w-[400px] left-1/2 top-1/2 z-50 flex max-h-screen -translate-x-1/2 -translate-y-1/2 transform flex-col rounded-xl border-tertiary-500 bg-white"},Ru={class:"p-6 flex justify-between flex-col"},Iu={class:"flex justify-between"},ku={class:"p-2 rounded-full border-8 border-error-50 bg-error-100 text-error-600"},Lu={class:"text-lg font-semibold text-gray-900 pb-2 pt-4"},Bu={class:"text-sm text-gray-600 pb-4"},Pu={class:"flex justify-between space-x-xsSpace pt-xsSpace gap-4"},Fu=["textContent"],Mu=["textContent"],ri=Sr(l.defineComponent({__name:"VModal",props:{entity:{type:String,required:!0},callback:{type:Function,required:!1,default:()=>{}}},setup(n,{expose:e}){const t=n,r=l.ref(!1),s=l.reactive({cancelTitle:null,confirmTitle:null,scrollable:!0,data:null}),o=l.computed(()=>s.cancelTitle?s.cancelTitle:"Cancel"),a=l.computed(()=>s.confirmTitle?s.confirmTitle:"Delete"),c=d=>{r.value=!0,s.data=d},i=()=>{r.value=!1},u=async()=>{t.callback(s.data),r.value=!1};return e({open:c,close:i}),(d,h)=>(l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass([{"-open":r.value},"v-modal"])},[l.createVNode(l.Transition,{name:"fade"},{default:l.withCtx(()=>[r.value?(l.openBlock(),l.createElementBlock("div",Cu,[l.renderSlot(d.$slots,"default",{},()=>[l.createElementVNode("div",{class:l.normalizeClass(["relative min-h-[260px] overflow-y-auto flex",{"overflow-y-visible":!d.scrollable}])},[l.createElementVNode("div",Ru,[l.createElementVNode("div",null,[l.createElementVNode("div",Iu,[l.createElementVNode("span",ku,[l.createVNode(l.unref(_a),{class:"w-6 h-6"})]),l.createVNode(l.unref(Ou),{class:"w-6 h-6 text-gray-400 hover:bg-gray-100 rounded-md cursor-pointer",onClick:i})]),l.createElementVNode("h4",Lu,"Delete this "+l.toDisplayString(n.entity)+"?",1),l.createElementVNode("p",Bu,"Do you want to delete this "+l.toDisplayString(n.entity)+"? This action cannot be undone.",1)]),l.createElementVNode("div",Pu,[l.createElementVNode("a",{onClick:i,class:"w-1/2 py-[9px] rounded-full border border-gray-300 shadow-xs text-md font-semibold hover:bg-gray-100 text-gray-700 text-center cursor-pointer",textContent:l.toDisplayString(o.value)},null,8,Fu),l.createElementVNode("a",{onClick:l.withModifiers(u,["prevent"]),class:"w-1/2 py-[9px] rounded-full shadow-xs text-md font-semibold text-white bg-error-600 hover:bg-error-700 border border-error-600 text-center cursor-pointer",textContent:l.toDisplayString(a.value)},null,8,Mu)])])],2)],!0)])):l.createCommentVNode("",!0)]),_:3})],2))}}),[["__scopeId","data-v-0ca1257f"]]),Du={class:"flex justify-between pb-2"},Uu={class:"text-lg font-semibold text-gray-900"},ju={class:"flex flex-col gap-4"},Vu={class:"text-gray-600 border-b border-gray-200 pb-4 text-sm"},$u={class:"flex flex-col gap-3"},_u={class:"flex justify-between"},qu={class:"flex flex-col gap-1"},zu={class:"font-semibold text-gray-900"},Hu={class:"text-sm text-gray-600"},Gu=["disabled"],Wu={class:"flex flex-col gap-3"},Ku=["onClick"],Xu=["onClick"],Yu={class:"text-xs text-gray-600"},Zu={class:"text-sm font-medium text-gray-900"},qa={__name:"VItems",props:{...ts},emits:["update"],setup(n,{emit:e}){const t=e,r=n,s=l.ref(r.data.component),o=s.value.type,a=l.ref(null),c=`${o.value}-openItemStates`,i=l.ref(JSON.parse(window.localStorage.getItem(c)));i.value||(i.value={},s.value.data.forEach((p,v)=>{i.value[v]=!1}),window.localStorage.setItem(c,JSON.stringify(i.value)));const u=p=>{Object.keys(i.value).forEach(v=>{i.value[v]=!1}),i.value[p]=!i.value[p],window.localStorage.setItem(c,JSON.stringify(i.value))},d=()=>{console.log($a({},o.value==="sliders")),s.value.data.push($a({},o.value==="sliders")),t("update",!1)},h=p=>{var v;(v=a==null?void 0:a.value)==null||v.open(p)},f=p=>{s.value.data.splice(p,1),t("update",!1)},g=(p,v)=>{var b,S,T,R;p.hasOwnProperty("edit_url")&&(window.location.href=p.edit_url),window.location.href=`/admin/pages/${(S=(b=r==null?void 0:r.data)==null?void 0:b.page)==null?void 0:S.id}/sections/${(T=r==null?void 0:r.data)==null?void 0:T.sectionIndex}/components/${(R=r==null?void 0:r.data)==null?void 0:R.componentIndex}/items/${v}`};return(p,v)=>(l.openBlock(),l.createElementBlock(l.Fragment,null,[l.createElementVNode("div",Du,[l.createElementVNode("p",Uu,l.toDisplayString(s.value.name),1)]),l.createElementVNode("div",ju,[l.createElementVNode("div",Vu,l.toDisplayString(s.value.supportive_text),1),l.createElementVNode("div",$u,[l.createElementVNode("div",_u,[l.createElementVNode("div",qu,[l.createElementVNode("div",zu,l.toDisplayString(l.unref(ti)(l.unref(o))),1),l.createElementVNode("div",Hu,"This "+l.toDisplayString(l.unref(ei)(l.unref(o)))+" can contain up to "+l.toDisplayString(s.value.max_items)+" "+l.toDisplayString(l.unref(ti)(l.unref(o),!1)),1)]),l.createElementVNode("div",null,[l.createElementVNode("button",{disabled:s.value.data.length>=s.value.max_items,onClick:d,type:"button",class:l.normalizeClass(["text-sm cursor-pointer flex items-center justify-center gap-1 rounded-[99px] border border-brand-600 bg-brand-500 px-3.5 py-2 font-semibold text-white hover:bg-brand-600",{"border-gray-100 bg-gray-100 !text-gray-400 hover:bg-gray-100":s.value.data.length>=s.value.max_items}])},[l.createVNode(l.unref(Js),{class:"h-5 w-5"}),v[0]||(v[0]=l.createElementVNode("span",null,"Add",-1))],10,Gu)])]),l.createElementVNode("div",Wu,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(s.value.data,(b,S)=>(l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(["flex items-center gap-4 px-2 py-1 hover:bg-gray-100 rounded-lg",{"bg-gray-200 hover:bg-gray-200":i.value[S]}])},[l.createElementVNode("div",{class:"flex flex-1 items-center justify-between relative",onClick:T=>{u(S)}},[l.createElementVNode("div",{class:"flex flex-1 flex-col cursor-pointer",onClick:T=>g(b,S)},[l.createElementVNode("div",Yu,l.toDisplayString(l.unref(ei)(l.unref(ti)(l.unref(o))))+" #"+l.toDisplayString(S+1),1),l.createElementVNode("div",Zu,l.toDisplayString(b.title),1)],8,Xu),l.createVNode(ni,{onRemoveItem:T=>h(S),"enable-edit":!0,onEditItem:T=>g(b,S)},null,8,["onRemoveItem","onEditItem"])],8,Ku)],2))),256))])])]),l.createVNode(ri,{ref_key:"modalRef",ref:a,entity:l.unref(ei)(l.unref(o)),callback:f},null,8,["entity"])],64))}},Qu=["for"],Ju={key:0,class:"v-field-label inline-block mb-2"},ed={key:0},td={key:1,class:"absolute right-0 -bottom-6 text-sm text-gray-600 font-normal"},nd={key:2,class:"absolute left-0 -bottom-6 text-sm text-gray-600 font-normal"},ln={__name:"InputWrapper",props:{field:{type:String,required:!0},labelText:{type:String,default:""},value:{type:[String,Number],default:""},limit:{type:Number,default:null},showCount:{type:Boolean,default:!1},darkTheme:{type:Boolean,default:!1},isRequired:{type:Boolean,default:!1}},setup(n){return(e,t)=>{var r;return l.openBlock(),l.createElementBlock("label",{for:n.field,class:"block space-y-2xsSpace text-sm font-medium leading-none text-gray-700 relative"},[n.labelText||e.$slots.label?(l.openBlock(),l.createElementBlock("span",Ju,[e.$slots.label?l.renderSlot(e.$slots,"label",{key:0}):(l.openBlock(),l.createElementBlock(l.Fragment,{key:1},[l.createTextVNode(l.toDisplayString(n.labelText)+" ",1),n.isRequired?(l.openBlock(),l.createElementBlock("span",ed," *")):l.createCommentVNode("",!0)],64))])):l.createCommentVNode("",!0),l.renderSlot(e.$slots,"default"),n.limit?(l.openBlock(),l.createElementBlock("span",td,l.toDisplayString((r=n.value)==null?void 0:r.length)+"/"+l.toDisplayString(n.limit)+" characters ",1)):l.createCommentVNode("",!0),n.showCount?(l.openBlock(),l.createElementBlock("span",nd," Word count: "+l.toDisplayString(n.value),1)):l.createCommentVNode("",!0)],8,Qu)}}},rd={class:"flex items-center gap-2"},sd=["aria-checked"],id={key:0,class:"text-sm text-gray-700 font-medium"},ns={__name:"VToggle",props:{modelValue:{type:[Number,Boolean]},title:{type:String},isDisabled:{type:Boolean},small:{type:Boolean},ring:{type:Boolean}},emits:"update:modelValue",setup(n,{emit:e}){const t=n,r=e,s=l.computed(()=>({"!bg-brand-700 hover:!bg-brand-700":t.modelValue,"!h-3 !w-6":t.small,"focus:outline-none focus:ring-2 focus:ring-brand-700 focus:ring-offset-2":t.ring!==!1})),o=()=>{t.isDisabled||r("update:modelValue",!t.modelValue)};return(a,c)=>(l.openBlock(),l.createElementBlock("div",rd,[l.createElementVNode("button",{type:"button",class:l.normalizeClass(["relative inline-flex h-5 w-10 flex-shrink-0 cursor-pointer rounded-full border-2 border-transparent bg-gray-100 transition-colors duration-200 ease-in-out",s.value]),role:"switch","aria-checked":n.modelValue,onClick:o},[l.createElementVNode("span",{"aria-hidden":"true",class:l.normalizeClass(["pointer-events-none inline-block h-4 w-4 transform rounded-full bg-white shadow ring-0 transition duration-200 ease-in-out",{"translate-x-5":n.modelValue,"translate-x-0":!n.modelValue,"!translate-x-3":n.small&&n.modelValue,"!h-2 !w-2":n.small}])},null,2)],10,sd),n.title?(l.openBlock(),l.createElementBlock("span",id,l.toDisplayString(n.title),1)):l.createCommentVNode("",!0)]))}},ad={class:"flex flex-col gap-2"},od=["value"],ld={__name:"SiteContent",props:l.mergeModels({sites:{type:Object,required:!0},errors:{type:Object,required:!1,default:()=>({})}},{url:{},urlModifiers:{}}),emits:["update:url"],setup(n){const e=l.useModel(n,"url");return(t,r)=>(l.openBlock(),l.createElementBlock("div",ad,[r[1]||(r[1]=l.createElementVNode("label",{class:"text-sm font-medium text-gray-700"},"Select a page from the site*",-1)),l.withDirectives(l.createElementVNode("select",{"onUpdate:modelValue":r[0]||(r[0]=s=>e.value=s),name:"url"},[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(n.sites,s=>(l.openBlock(),l.createElementBlock("option",{value:s.href},l.toDisplayString(s.name),9,od))),256))],512),[[l.vModelSelect,e.value]])]))}},cd={__name:"ExternalPage",props:{url:{},urlModifiers:{}},emits:["update:url"],setup(n){const e=l.useModel(n,"url");return(t,r)=>(l.openBlock(),l.createBlock(ln,{"is-vertical":"",field:"title","label-text":"URL *",class:"w-full"},{default:l.withCtx(()=>[l.withDirectives(l.createElementVNode("input",{"onUpdate:modelValue":r[0]||(r[0]=s=>e.value=s),name:"title",type:"text",placeholder:"Enter your url",class:"border-1 border-solid border-gray-300 rounded-lg bg-white w-full"},null,512),[[l.vModelText,e.value]])]),_:1}))}},ud={class:"flex flex-col gap-5"},dd={key:0,class:"text-sm text-gray-700 font-medium py-2"},fd={class:"text-sm flex items-center gap-6 font-medium text-gray-700"},hd={class:"flex items-center gap-2 cursor-pointer"},pd=["name","value","disabled"],md={class:"flex flex-col gap-2"},gd=["value"],vd={class:"flex items-center gap-2"},si={__name:"LinkedTo",props:l.mergeModels({label:{type:String,required:!1},sites:{type:Object,required:!0},name:{type:String,required:!0},options:{type:Array,required:!1,default:["site-content","external-page"]}},{type:{default:"site-content"},typeModifiers:{},url:{},urlModifiers:{},openInNewTab:{},openInNewTabModifiers:{}}),emits:["update:type","update:url","update:openInNewTab"],setup(n){const e=l.useModel(n,"type"),t=l.useModel(n,"url"),r=l.useModel(n,"openInNewTab"),s=a=>a.split("-").map(c=>c.charAt(0).toUpperCase()+c.slice(1)).join(" "),o=a=>({"site-content":ld,"external-page":cd})[a]||null;return(a,c)=>(l.openBlock(),l.createElementBlock("div",ud,[l.createElementVNode("div",null,[n.label?(l.openBlock(),l.createElementBlock("p",dd,l.toDisplayString(n.label),1)):l.createCommentVNode("",!0),l.createElementVNode("div",fd,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(n.options,i=>(l.openBlock(),l.createElementBlock("label",hd,[l.withDirectives(l.createElementVNode("input",{name:n.name,type:"radio",value:i,"onUpdate:modelValue":c[0]||(c[0]=u=>e.value=u),class:"checked:bg-brand-600 hover:bg-brand-600 checked:hover:bg-brand-600 focus:bg-brand-600 focus:ring-brand-600 focus:checked:bg-brand-600 rounded-full",disabled:i==="form"},null,8,pd),[[l.vModelRadio,e.value]]),l.createElementVNode("span",null,l.toDisplayString(s(i)),1)]))),256))])]),l.createElementVNode("div",md,[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(o(e.value)),{url:t.value,"onUpdate:url":c[1]||(c[1]=i=>t.value=i),sites:n.sites},null,40,["url","sites"])),l.createElementVNode("input",{type:"hidden",name:"url",value:t.value},null,8,gd)]),l.createElementVNode("div",vd,[l.createVNode(ns,{class:"mb-1",name:"open_in_new_tab",modelValue:r.value,"onUpdate:modelValue":c[2]||(c[2]=i=>r.value=i),title:"Open in a new tab"},null,8,["modelValue"])])]))}},yd={class:"flex justify-between pb-2"},bd={class:"flex justify-between w-full py-1"},xd={class:"text-lg font-semibold text-gray-900"},Ed={class:"text-sm text-gray-600 mt-1"},Ad={class:"flex flex-col gap-3"},wd={class:"flex items-center justify-between"},Sd={class:"text-lg font-semibold text-gray-900"},Td={class:"relative flex items-end"},Nd={class:"flex flex-col gap-6"},Od={class:"flex flex-col gap-1.5"},Cd=["onUpdate:modelValue"],za={__name:"VLinks",props:{...ts},emits:["update"],setup(n,{emit:e}){const t=e,r=n,s=l.ref(r.data.component),o=l.ref(null),a=l.ref(null),c=l.ref(null);function i(){var h,f;s.value.hasOwnProperty("data")||(s.value.data=[]),!(((h=s.value.data)==null?void 0:h.length)>=s.value.max_items)&&((f=s.value.data)==null||f.push(hu()),l.nextTick(()=>{a.value&&a.value.scrollIntoView({behavior:"smooth"})}),t("update",!1))}const u=h=>{var f;c.value=h,(f=o==null?void 0:o.value)==null||f.open(h)},d=h=>{var f;(f=s.value.data)==null||f.splice(h,1),t("update",!1)};return(h,f)=>{var g;return l.openBlock(),l.createElementBlock(l.Fragment,null,[l.createElementVNode("div",yd,[l.createElementVNode("div",bd,[l.createElementVNode("div",null,[l.createElementVNode("p",xd,l.toDisplayString(s.value.name),1),l.createElementVNode("p",Ed,l.toDisplayString(s.value.supportive_text),1)]),l.createElementVNode("div",null,[l.createElementVNode("a",{onClick:i,class:l.normalizeClass(["text-sm cursor-pointer flex items-center justify-center gap-1 rounded-[99px] border border-brand-600 bg-brand-500 px-3.5 py-2 font-semibold text-white hover:bg-brand-600",{"border-gray-100 bg-gray-100 !text-gray-400 hover:bg-gray-100":((g=s.value.data)==null?void 0:g.length)>=s.value.max_items}])},[l.createVNode(l.unref(Js),{class:"h-5 w-5"}),f[0]||(f[0]=l.createElementVNode("span",null,"Add",-1))],2)])])]),l.createElementVNode("div",Ad,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(s.value.data,(p,v)=>(l.openBlock(),l.createElementBlock("div",{class:"flex flex-col gap-4 rounded-xl px-6 py-4 bg-gray-200",key:v,ref_for:!0,ref:v===s.value.data.length-1?b=>a.value=b:null},[l.createElementVNode("div",wd,[l.createElementVNode("div",Sd," Link #"+l.toDisplayString(v+1),1),l.createElementVNode("div",Td,[l.createVNode(ni,{onRemoveItem:b=>u(v)},null,8,["onRemoveItem"])])]),l.createElementVNode("div",Nd,[l.createElementVNode("div",Od,[l.createVNode(ln,{"is-vertical":"",field:"title","label-text":"Title *",class:"w-full mb-4",value:p.title,limit:20},{default:l.withCtx(()=>[l.withDirectives(l.createElementVNode("input",{"onUpdate:modelValue":b=>p.title=b,name:"title",type:"text",placeholder:"Title",maxlength:20,class:"border-1 border-solid border-gray-300 rounded-lg bg-white w-full"},null,8,Cd),[[l.vModelText,p.title]])]),_:2},1032,["value"]),l.createVNode(si,{label:"Linked to",name:`link_${v+1}`,type:p.type,"onUpdate:type":b=>p.type=b,url:p.url,"onUpdate:url":b=>p.url=b,openInNewTab:p.open_in_new_tab,"onUpdate:openInNewTab":b=>p.open_in_new_tab=b,sites:h.sites},null,8,["name","type","onUpdate:type","url","onUpdate:url","openInNewTab","onUpdate:openInNewTab","sites"])])])]))),128))]),l.createVNode(ri,{ref_key:"modalRef",ref:o,entity:"link",callback:d},null,512)],64)}}},Rd={class:"flex flex-col gap-4"},Id={class:"text-lg font-semibold text-gray-900 border-b border-gray-200 pb-4"},kd=["maxlength"],Ld={__name:"VHeader",props:{...ts},emits:["update"],setup(n,{emit:e}){const t=n,r=l.ref(t.data.component);return(s,o)=>(l.openBlock(),l.createElementBlock("div",Rd,[l.createElementVNode("p",Id,l.toDisplayString(r.value.name),1),r.value.hasOwnProperty("title")?(l.openBlock(),l.createBlock(ln,{key:0,"is-vertical":"",field:"title","label-text":"Title *",class:"w-full mb-4",value:r.value.title,limit:51},{default:l.withCtx(()=>[l.withDirectives(l.createElementVNode("input",{"onUpdate:modelValue":o[0]||(o[0]=a=>r.value.title=a),name:"title",type:"text",placeholder:"Title",maxlength:51,class:"border-1 border-solid border-gray-300 rounded-lg bg-white w-full"},null,512),[[l.vModelText,r.value.title]])]),_:1},8,["value"])):l.createCommentVNode("",!0),r.value.hasOwnProperty("supporting_text")?(l.openBlock(),l.createBlock(ln,{key:1,"is-vertical":"",field:"supporting_text","label-text":"Supporting Text *",class:"w-full mb-4",value:r.value.supporting_text,limit:r.value.supporting_text_max_length??100},{default:l.withCtx(()=>[l.withDirectives(l.createElementVNode("input",{"onUpdate:modelValue":o[1]||(o[1]=a=>r.value.supporting_text=a),name:"supporting_text",type:"text",placeholder:"Supporting Text",maxlength:r.value.supporting_text_max_length??100,class:"border-1 border-solid border-gray-300 rounded-lg bg-white w-full"},null,8,kd),[[l.vModelText,r.value.supporting_text]])]),_:1},8,["value","limit"])):l.createCommentVNode("",!0)]))}};function Ha(n,e){return function(){return n.apply(e,arguments)}}const{toString:Bd}=Object.prototype,{getPrototypeOf:ii}=Object,{iterator:rs,toStringTag:Ga}=Symbol,ss=(n=>e=>{const t=Bd.call(e);return n[t]||(n[t]=t.slice(8,-1).toLowerCase())})(Object.create(null)),jt=n=>(n=n.toLowerCase(),e=>ss(e)===n),is=n=>e=>typeof e===n,{isArray:Yn}=Array,Tr=is("undefined");function Pd(n){return n!==null&&!Tr(n)&&n.constructor!==null&&!Tr(n.constructor)&&Tt(n.constructor.isBuffer)&&n.constructor.isBuffer(n)}const Wa=jt("ArrayBuffer");function Fd(n){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(n):e=n&&n.buffer&&Wa(n.buffer),e}const Md=is("string"),Tt=is("function"),Ka=is("number"),as=n=>n!==null&&typeof n=="object",Dd=n=>n===!0||n===!1,os=n=>{if(ss(n)!=="object")return!1;const e=ii(n);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Ga in n)&&!(rs in n)},Ud=jt("Date"),jd=jt("File"),Vd=jt("Blob"),$d=jt("FileList"),_d=n=>as(n)&&Tt(n.pipe),qd=n=>{let e;return n&&(typeof FormData=="function"&&n instanceof FormData||Tt(n.append)&&((e=ss(n))==="formdata"||e==="object"&&Tt(n.toString)&&n.toString()==="[object FormData]"))},zd=jt("URLSearchParams"),[Hd,Gd,Wd,Kd]=["ReadableStream","Request","Response","Headers"].map(jt),Xd=n=>n.trim?n.trim():n.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Nr(n,e,{allOwnKeys:t=!1}={}){if(n===null||typeof n>"u")return;let r,s;if(typeof n!="object"&&(n=[n]),Yn(n))for(r=0,s=n.length;r<s;r++)e.call(null,n[r],r,n);else{const o=t?Object.getOwnPropertyNames(n):Object.keys(n),a=o.length;let c;for(r=0;r<a;r++)c=o[r],e.call(null,n[c],c,n)}}function Xa(n,e){e=e.toLowerCase();const t=Object.keys(n);let r=t.length,s;for(;r-- >0;)if(s=t[r],e===s.toLowerCase())return s;return null}const Ln=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Ya=n=>!Tr(n)&&n!==Ln;function ai(){const{caseless:n}=Ya(this)&&this||{},e={},t=(r,s)=>{const o=n&&Xa(e,s)||s;os(e[o])&&os(r)?e[o]=ai(e[o],r):os(r)?e[o]=ai({},r):Yn(r)?e[o]=r.slice():e[o]=r};for(let r=0,s=arguments.length;r<s;r++)arguments[r]&&Nr(arguments[r],t);return e}const Yd=(n,e,t,{allOwnKeys:r}={})=>(Nr(e,(s,o)=>{t&&Tt(s)?n[o]=Ha(s,t):n[o]=s},{allOwnKeys:r}),n),Zd=n=>(n.charCodeAt(0)===65279&&(n=n.slice(1)),n),Qd=(n,e,t,r)=>{n.prototype=Object.create(e.prototype,r),n.prototype.constructor=n,Object.defineProperty(n,"super",{value:e.prototype}),t&&Object.assign(n.prototype,t)},Jd=(n,e,t,r)=>{let s,o,a;const c={};if(e=e||{},n==null)return e;do{for(s=Object.getOwnPropertyNames(n),o=s.length;o-- >0;)a=s[o],(!r||r(a,n,e))&&!c[a]&&(e[a]=n[a],c[a]=!0);n=t!==!1&&ii(n)}while(n&&(!t||t(n,e))&&n!==Object.prototype);return e},ef=(n,e,t)=>{n=String(n),(t===void 0||t>n.length)&&(t=n.length),t-=e.length;const r=n.indexOf(e,t);return r!==-1&&r===t},tf=n=>{if(!n)return null;if(Yn(n))return n;let e=n.length;if(!Ka(e))return null;const t=new Array(e);for(;e-- >0;)t[e]=n[e];return t},nf=(n=>e=>n&&e instanceof n)(typeof Uint8Array<"u"&&ii(Uint8Array)),rf=(n,e)=>{const r=(n&&n[rs]).call(n);let s;for(;(s=r.next())&&!s.done;){const o=s.value;e.call(n,o[0],o[1])}},sf=(n,e)=>{let t;const r=[];for(;(t=n.exec(e))!==null;)r.push(t);return r},af=jt("HTMLFormElement"),of=n=>n.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,r,s){return r.toUpperCase()+s}),Za=(({hasOwnProperty:n})=>(e,t)=>n.call(e,t))(Object.prototype),lf=jt("RegExp"),Qa=(n,e)=>{const t=Object.getOwnPropertyDescriptors(n),r={};Nr(t,(s,o)=>{let a;(a=e(s,o,n))!==!1&&(r[o]=a||s)}),Object.defineProperties(n,r)},cf=n=>{Qa(n,(e,t)=>{if(Tt(n)&&["arguments","caller","callee"].indexOf(t)!==-1)return!1;const r=n[t];if(Tt(r)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+t+"'")})}})},uf=(n,e)=>{const t={},r=s=>{s.forEach(o=>{t[o]=!0})};return Yn(n)?r(n):r(String(n).split(e)),t},df=()=>{},ff=(n,e)=>n!=null&&Number.isFinite(n=+n)?n:e;function hf(n){return!!(n&&Tt(n.append)&&n[Ga]==="FormData"&&n[rs])}const pf=n=>{const e=new Array(10),t=(r,s)=>{if(as(r)){if(e.indexOf(r)>=0)return;if(!("toJSON"in r)){e[s]=r;const o=Yn(r)?[]:{};return Nr(r,(a,c)=>{const i=t(a,s+1);!Tr(i)&&(o[c]=i)}),e[s]=void 0,o}}return r};return t(n,0)},mf=jt("AsyncFunction"),gf=n=>n&&(as(n)||Tt(n))&&Tt(n.then)&&Tt(n.catch),Ja=((n,e)=>n?setImmediate:e?((t,r)=>(Ln.addEventListener("message",({source:s,data:o})=>{s===Ln&&o===t&&r.length&&r.shift()()},!1),s=>{r.push(s),Ln.postMessage(t,"*")}))(`axios@${Math.random()}`,[]):t=>setTimeout(t))(typeof setImmediate=="function",Tt(Ln.postMessage)),vf=typeof queueMicrotask<"u"?queueMicrotask.bind(Ln):typeof process<"u"&&process.nextTick||Ja,ee={isArray:Yn,isArrayBuffer:Wa,isBuffer:Pd,isFormData:qd,isArrayBufferView:Fd,isString:Md,isNumber:Ka,isBoolean:Dd,isObject:as,isPlainObject:os,isReadableStream:Hd,isRequest:Gd,isResponse:Wd,isHeaders:Kd,isUndefined:Tr,isDate:Ud,isFile:jd,isBlob:Vd,isRegExp:lf,isFunction:Tt,isStream:_d,isURLSearchParams:zd,isTypedArray:nf,isFileList:$d,forEach:Nr,merge:ai,extend:Yd,trim:Xd,stripBOM:Zd,inherits:Qd,toFlatObject:Jd,kindOf:ss,kindOfTest:jt,endsWith:ef,toArray:tf,forEachEntry:rf,matchAll:sf,isHTMLForm:af,hasOwnProperty:Za,hasOwnProp:Za,reduceDescriptors:Qa,freezeMethods:cf,toObjectSet:uf,toCamelCase:of,noop:df,toFiniteNumber:ff,findKey:Xa,global:Ln,isContextDefined:Ya,isSpecCompliantForm:hf,toJSONObject:pf,isAsyncFn:mf,isThenable:gf,setImmediate:Ja,asap:vf,isIterable:n=>n!=null&&Tt(n[rs])};function Me(n,e,t,r,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=n,this.name="AxiosError",e&&(this.code=e),t&&(this.config=t),r&&(this.request=r),s&&(this.response=s,this.status=s.status?s.status:null)}ee.inherits(Me,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:ee.toJSONObject(this.config),code:this.code,status:this.status}}});const eo=Me.prototype,to={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(n=>{to[n]={value:n}}),Object.defineProperties(Me,to),Object.defineProperty(eo,"isAxiosError",{value:!0}),Me.from=(n,e,t,r,s,o)=>{const a=Object.create(eo);return ee.toFlatObject(n,a,function(i){return i!==Error.prototype},c=>c!=="isAxiosError"),Me.call(a,n.message,e,t,r,s),a.cause=n,a.name=n.name,o&&Object.assign(a,o),a};const yf=null;function oi(n){return ee.isPlainObject(n)||ee.isArray(n)}function no(n){return ee.endsWith(n,"[]")?n.slice(0,-2):n}function ro(n,e,t){return n?n.concat(e).map(function(s,o){return s=no(s),!t&&o?"["+s+"]":s}).join(t?".":""):e}function bf(n){return ee.isArray(n)&&!n.some(oi)}const xf=ee.toFlatObject(ee,{},null,function(e){return/^is[A-Z]/.test(e)});function ls(n,e,t){if(!ee.isObject(n))throw new TypeError("target must be an object");e=e||new FormData,t=ee.toFlatObject(t,{metaTokens:!0,dots:!1,indexes:!1},!1,function(v,b){return!ee.isUndefined(b[v])});const r=t.metaTokens,s=t.visitor||d,o=t.dots,a=t.indexes,i=(t.Blob||typeof Blob<"u"&&Blob)&&ee.isSpecCompliantForm(e);if(!ee.isFunction(s))throw new TypeError("visitor must be a function");function u(p){if(p===null)return"";if(ee.isDate(p))return p.toISOString();if(!i&&ee.isBlob(p))throw new Me("Blob is not supported. Use a Buffer instead.");return ee.isArrayBuffer(p)||ee.isTypedArray(p)?i&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function d(p,v,b){let S=p;if(p&&!b&&typeof p=="object"){if(ee.endsWith(v,"{}"))v=r?v:v.slice(0,-2),p=JSON.stringify(p);else if(ee.isArray(p)&&bf(p)||(ee.isFileList(p)||ee.endsWith(v,"[]"))&&(S=ee.toArray(p)))return v=no(v),S.forEach(function(R,F){!(ee.isUndefined(R)||R===null)&&e.append(a===!0?ro([v],F,o):a===null?v:v+"[]",u(R))}),!1}return oi(p)?!0:(e.append(ro(b,v,o),u(p)),!1)}const h=[],f=Object.assign(xf,{defaultVisitor:d,convertValue:u,isVisitable:oi});function g(p,v){if(!ee.isUndefined(p)){if(h.indexOf(p)!==-1)throw Error("Circular reference detected in "+v.join("."));h.push(p),ee.forEach(p,function(S,T){(!(ee.isUndefined(S)||S===null)&&s.call(e,S,ee.isString(T)?T.trim():T,v,f))===!0&&g(S,v?v.concat(T):[T])}),h.pop()}}if(!ee.isObject(n))throw new TypeError("data must be an object");return g(n),e}function so(n){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(n).replace(/[!'()~]|%20|%00/g,function(r){return e[r]})}function li(n,e){this._pairs=[],n&&ls(n,this,e)}const io=li.prototype;io.append=function(e,t){this._pairs.push([e,t])},io.toString=function(e){const t=e?function(r){return e.call(this,r,so)}:so;return this._pairs.map(function(s){return t(s[0])+"="+t(s[1])},"").join("&")};function Ef(n){return encodeURIComponent(n).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function ao(n,e,t){if(!e)return n;const r=t&&t.encode||Ef;ee.isFunction(t)&&(t={serialize:t});const s=t&&t.serialize;let o;if(s?o=s(e,t):o=ee.isURLSearchParams(e)?e.toString():new li(e,t).toString(r),o){const a=n.indexOf("#");a!==-1&&(n=n.slice(0,a)),n+=(n.indexOf("?")===-1?"?":"&")+o}return n}class oo{constructor(){this.handlers=[]}use(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){ee.forEach(this.handlers,function(r){r!==null&&e(r)})}}const lo={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Af={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:li,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},ci=typeof window<"u"&&typeof document<"u",ui=typeof navigator=="object"&&navigator||void 0,wf=ci&&(!ui||["ReactNative","NativeScript","NS"].indexOf(ui.product)<0),Sf=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Tf=ci&&window.location.href||"http://localhost",gt={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:ci,hasStandardBrowserEnv:wf,hasStandardBrowserWebWorkerEnv:Sf,navigator:ui,origin:Tf},Symbol.toStringTag,{value:"Module"})),...Af};function Nf(n,e){return ls(n,new gt.classes.URLSearchParams,Object.assign({visitor:function(t,r,s,o){return gt.isNode&&ee.isBuffer(t)?(this.append(r,t.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},e))}function Of(n){return ee.matchAll(/\w+|\[(\w*)]/g,n).map(e=>e[0]==="[]"?"":e[1]||e[0])}function Cf(n){const e={},t=Object.keys(n);let r;const s=t.length;let o;for(r=0;r<s;r++)o=t[r],e[o]=n[o];return e}function co(n){function e(t,r,s,o){let a=t[o++];if(a==="__proto__")return!0;const c=Number.isFinite(+a),i=o>=t.length;return a=!a&&ee.isArray(s)?s.length:a,i?(ee.hasOwnProp(s,a)?s[a]=[s[a],r]:s[a]=r,!c):((!s[a]||!ee.isObject(s[a]))&&(s[a]=[]),e(t,r,s[a],o)&&ee.isArray(s[a])&&(s[a]=Cf(s[a])),!c)}if(ee.isFormData(n)&&ee.isFunction(n.entries)){const t={};return ee.forEachEntry(n,(r,s)=>{e(Of(r),s,t,0)}),t}return null}function Rf(n,e,t){if(ee.isString(n))try{return(e||JSON.parse)(n),ee.trim(n)}catch(r){if(r.name!=="SyntaxError")throw r}return(t||JSON.stringify)(n)}const Or={transitional:lo,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const r=t.getContentType()||"",s=r.indexOf("application/json")>-1,o=ee.isObject(e);if(o&&ee.isHTMLForm(e)&&(e=new FormData(e)),ee.isFormData(e))return s?JSON.stringify(co(e)):e;if(ee.isArrayBuffer(e)||ee.isBuffer(e)||ee.isStream(e)||ee.isFile(e)||ee.isBlob(e)||ee.isReadableStream(e))return e;if(ee.isArrayBufferView(e))return e.buffer;if(ee.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let c;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Nf(e,this.formSerializer).toString();if((c=ee.isFileList(e))||r.indexOf("multipart/form-data")>-1){const i=this.env&&this.env.FormData;return ls(c?{"files[]":e}:e,i&&new i,this.formSerializer)}}return o||s?(t.setContentType("application/json",!1),Rf(e)):e}],transformResponse:[function(e){const t=this.transitional||Or.transitional,r=t&&t.forcedJSONParsing,s=this.responseType==="json";if(ee.isResponse(e)||ee.isReadableStream(e))return e;if(e&&ee.isString(e)&&(r&&!this.responseType||s)){const a=!(t&&t.silentJSONParsing)&&s;try{return JSON.parse(e)}catch(c){if(a)throw c.name==="SyntaxError"?Me.from(c,Me.ERR_BAD_RESPONSE,this,null,this.response):c}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:gt.classes.FormData,Blob:gt.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};ee.forEach(["delete","get","head","post","put","patch"],n=>{Or.headers[n]={}});const If=ee.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),kf=n=>{const e={};let t,r,s;return n&&n.split(`
2
- `).forEach(function(a){s=a.indexOf(":"),t=a.substring(0,s).trim().toLowerCase(),r=a.substring(s+1).trim(),!(!t||e[t]&&If[t])&&(t==="set-cookie"?e[t]?e[t].push(r):e[t]=[r]:e[t]=e[t]?e[t]+", "+r:r)}),e},uo=Symbol("internals");function Cr(n){return n&&String(n).trim().toLowerCase()}function cs(n){return n===!1||n==null?n:ee.isArray(n)?n.map(cs):String(n)}function Lf(n){const e=Object.create(null),t=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=t.exec(n);)e[r[1]]=r[2];return e}const Bf=n=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(n.trim());function di(n,e,t,r,s){if(ee.isFunction(r))return r.call(this,e,t);if(s&&(e=t),!!ee.isString(e)){if(ee.isString(r))return e.indexOf(r)!==-1;if(ee.isRegExp(r))return r.test(e)}}function Pf(n){return n.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,r)=>t.toUpperCase()+r)}function Ff(n,e){const t=ee.toCamelCase(" "+e);["get","set","has"].forEach(r=>{Object.defineProperty(n,r+t,{value:function(s,o,a){return this[r].call(this,e,s,o,a)},configurable:!0})})}let Nt=class{constructor(e){e&&this.set(e)}set(e,t,r){const s=this;function o(c,i,u){const d=Cr(i);if(!d)throw new Error("header name must be a non-empty string");const h=ee.findKey(s,d);(!h||s[h]===void 0||u===!0||u===void 0&&s[h]!==!1)&&(s[h||i]=cs(c))}const a=(c,i)=>ee.forEach(c,(u,d)=>o(u,d,i));if(ee.isPlainObject(e)||e instanceof this.constructor)a(e,t);else if(ee.isString(e)&&(e=e.trim())&&!Bf(e))a(kf(e),t);else if(ee.isObject(e)&&ee.isIterable(e)){let c={},i,u;for(const d of e){if(!ee.isArray(d))throw TypeError("Object iterator must return a key-value pair");c[u=d[0]]=(i=c[u])?ee.isArray(i)?[...i,d[1]]:[i,d[1]]:d[1]}a(c,t)}else e!=null&&o(t,e,r);return this}get(e,t){if(e=Cr(e),e){const r=ee.findKey(this,e);if(r){const s=this[r];if(!t)return s;if(t===!0)return Lf(s);if(ee.isFunction(t))return t.call(this,s,r);if(ee.isRegExp(t))return t.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Cr(e),e){const r=ee.findKey(this,e);return!!(r&&this[r]!==void 0&&(!t||di(this,this[r],r,t)))}return!1}delete(e,t){const r=this;let s=!1;function o(a){if(a=Cr(a),a){const c=ee.findKey(r,a);c&&(!t||di(r,r[c],c,t))&&(delete r[c],s=!0)}}return ee.isArray(e)?e.forEach(o):o(e),s}clear(e){const t=Object.keys(this);let r=t.length,s=!1;for(;r--;){const o=t[r];(!e||di(this,this[o],o,e,!0))&&(delete this[o],s=!0)}return s}normalize(e){const t=this,r={};return ee.forEach(this,(s,o)=>{const a=ee.findKey(r,o);if(a){t[a]=cs(s),delete t[o];return}const c=e?Pf(o):String(o).trim();c!==o&&delete t[o],t[c]=cs(s),r[c]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return ee.forEach(this,(r,s)=>{r!=null&&r!==!1&&(t[s]=e&&ee.isArray(r)?r.join(", "):r)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join(`
3
- `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const r=new this(e);return t.forEach(s=>r.set(s)),r}static accessor(e){const r=(this[uo]=this[uo]={accessors:{}}).accessors,s=this.prototype;function o(a){const c=Cr(a);r[c]||(Ff(s,a),r[c]=!0)}return ee.isArray(e)?e.forEach(o):o(e),this}};Nt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),ee.reduceDescriptors(Nt.prototype,({value:n},e)=>{let t=e[0].toUpperCase()+e.slice(1);return{get:()=>n,set(r){this[t]=r}}}),ee.freezeMethods(Nt);function fi(n,e){const t=this||Or,r=e||t,s=Nt.from(r.headers);let o=r.data;return ee.forEach(n,function(c){o=c.call(t,o,s.normalize(),e?e.status:void 0)}),s.normalize(),o}function fo(n){return!!(n&&n.__CANCEL__)}function Zn(n,e,t){Me.call(this,n??"canceled",Me.ERR_CANCELED,e,t),this.name="CanceledError"}ee.inherits(Zn,Me,{__CANCEL__:!0});function ho(n,e,t){const r=t.config.validateStatus;!t.status||!r||r(t.status)?n(t):e(new Me("Request failed with status code "+t.status,[Me.ERR_BAD_REQUEST,Me.ERR_BAD_RESPONSE][Math.floor(t.status/100)-4],t.config,t.request,t))}function Mf(n){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(n);return e&&e[1]||""}function Df(n,e){n=n||10;const t=new Array(n),r=new Array(n);let s=0,o=0,a;return e=e!==void 0?e:1e3,function(i){const u=Date.now(),d=r[o];a||(a=u),t[s]=i,r[s]=u;let h=o,f=0;for(;h!==s;)f+=t[h++],h=h%n;if(s=(s+1)%n,s===o&&(o=(o+1)%n),u-a<e)return;const g=d&&u-d;return g?Math.round(f*1e3/g):void 0}}function Uf(n,e){let t=0,r=1e3/e,s,o;const a=(u,d=Date.now())=>{t=d,s=null,o&&(clearTimeout(o),o=null),n.apply(null,u)};return[(...u)=>{const d=Date.now(),h=d-t;h>=r?a(u,d):(s=u,o||(o=setTimeout(()=>{o=null,a(s)},r-h)))},()=>s&&a(s)]}const us=(n,e,t=3)=>{let r=0;const s=Df(50,250);return Uf(o=>{const a=o.loaded,c=o.lengthComputable?o.total:void 0,i=a-r,u=s(i),d=a<=c;r=a;const h={loaded:a,total:c,progress:c?a/c:void 0,bytes:i,rate:u||void 0,estimated:u&&c&&d?(c-a)/u:void 0,event:o,lengthComputable:c!=null,[e?"download":"upload"]:!0};n(h)},t)},po=(n,e)=>{const t=n!=null;return[r=>e[0]({lengthComputable:t,total:n,loaded:r}),e[1]]},mo=n=>(...e)=>ee.asap(()=>n(...e)),jf=gt.hasStandardBrowserEnv?((n,e)=>t=>(t=new URL(t,gt.origin),n.protocol===t.protocol&&n.host===t.host&&(e||n.port===t.port)))(new URL(gt.origin),gt.navigator&&/(msie|trident)/i.test(gt.navigator.userAgent)):()=>!0,Vf=gt.hasStandardBrowserEnv?{write(n,e,t,r,s,o){const a=[n+"="+encodeURIComponent(e)];ee.isNumber(t)&&a.push("expires="+new Date(t).toGMTString()),ee.isString(r)&&a.push("path="+r),ee.isString(s)&&a.push("domain="+s),o===!0&&a.push("secure"),document.cookie=a.join("; ")},read(n){const e=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(n){this.write(n,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function $f(n){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(n)}function _f(n,e){return e?n.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):n}function go(n,e,t){let r=!$f(e);return n&&(r||t==!1)?_f(n,e):e}const vo=n=>n instanceof Nt?{...n}:n;function Bn(n,e){e=e||{};const t={};function r(u,d,h,f){return ee.isPlainObject(u)&&ee.isPlainObject(d)?ee.merge.call({caseless:f},u,d):ee.isPlainObject(d)?ee.merge({},d):ee.isArray(d)?d.slice():d}function s(u,d,h,f){if(ee.isUndefined(d)){if(!ee.isUndefined(u))return r(void 0,u,h,f)}else return r(u,d,h,f)}function o(u,d){if(!ee.isUndefined(d))return r(void 0,d)}function a(u,d){if(ee.isUndefined(d)){if(!ee.isUndefined(u))return r(void 0,u)}else return r(void 0,d)}function c(u,d,h){if(h in e)return r(u,d);if(h in n)return r(void 0,u)}const i={url:o,method:o,data:o,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:c,headers:(u,d,h)=>s(vo(u),vo(d),h,!0)};return ee.forEach(Object.keys(Object.assign({},n,e)),function(d){const h=i[d]||s,f=h(n[d],e[d],d);ee.isUndefined(f)&&h!==c||(t[d]=f)}),t}const yo=n=>{const e=Bn({},n);let{data:t,withXSRFToken:r,xsrfHeaderName:s,xsrfCookieName:o,headers:a,auth:c}=e;e.headers=a=Nt.from(a),e.url=ao(go(e.baseURL,e.url,e.allowAbsoluteUrls),n.params,n.paramsSerializer),c&&a.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):"")));let i;if(ee.isFormData(t)){if(gt.hasStandardBrowserEnv||gt.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if((i=a.getContentType())!==!1){const[u,...d]=i?i.split(";").map(h=>h.trim()).filter(Boolean):[];a.setContentType([u||"multipart/form-data",...d].join("; "))}}if(gt.hasStandardBrowserEnv&&(r&&ee.isFunction(r)&&(r=r(e)),r||r!==!1&&jf(e.url))){const u=s&&o&&Vf.read(o);u&&a.set(s,u)}return e},qf=typeof XMLHttpRequest<"u"&&function(n){return new Promise(function(t,r){const s=yo(n);let o=s.data;const a=Nt.from(s.headers).normalize();let{responseType:c,onUploadProgress:i,onDownloadProgress:u}=s,d,h,f,g,p;function v(){g&&g(),p&&p(),s.cancelToken&&s.cancelToken.unsubscribe(d),s.signal&&s.signal.removeEventListener("abort",d)}let b=new XMLHttpRequest;b.open(s.method.toUpperCase(),s.url,!0),b.timeout=s.timeout;function S(){if(!b)return;const R=Nt.from("getAllResponseHeaders"in b&&b.getAllResponseHeaders()),M={data:!c||c==="text"||c==="json"?b.responseText:b.response,status:b.status,statusText:b.statusText,headers:R,config:n,request:b};ho(function(X){t(X),v()},function(X){r(X),v()},M),b=null}"onloadend"in b?b.onloadend=S:b.onreadystatechange=function(){!b||b.readyState!==4||b.status===0&&!(b.responseURL&&b.responseURL.indexOf("file:")===0)||setTimeout(S)},b.onabort=function(){b&&(r(new Me("Request aborted",Me.ECONNABORTED,n,b)),b=null)},b.onerror=function(){r(new Me("Network Error",Me.ERR_NETWORK,n,b)),b=null},b.ontimeout=function(){let F=s.timeout?"timeout of "+s.timeout+"ms exceeded":"timeout exceeded";const M=s.transitional||lo;s.timeoutErrorMessage&&(F=s.timeoutErrorMessage),r(new Me(F,M.clarifyTimeoutError?Me.ETIMEDOUT:Me.ECONNABORTED,n,b)),b=null},o===void 0&&a.setContentType(null),"setRequestHeader"in b&&ee.forEach(a.toJSON(),function(F,M){b.setRequestHeader(M,F)}),ee.isUndefined(s.withCredentials)||(b.withCredentials=!!s.withCredentials),c&&c!=="json"&&(b.responseType=s.responseType),u&&([f,p]=us(u,!0),b.addEventListener("progress",f)),i&&b.upload&&([h,g]=us(i),b.upload.addEventListener("progress",h),b.upload.addEventListener("loadend",g)),(s.cancelToken||s.signal)&&(d=R=>{b&&(r(!R||R.type?new Zn(null,n,b):R),b.abort(),b=null)},s.cancelToken&&s.cancelToken.subscribe(d),s.signal&&(s.signal.aborted?d():s.signal.addEventListener("abort",d)));const T=Mf(s.url);if(T&&gt.protocols.indexOf(T)===-1){r(new Me("Unsupported protocol "+T+":",Me.ERR_BAD_REQUEST,n));return}b.send(o||null)})},zf=(n,e)=>{const{length:t}=n=n?n.filter(Boolean):[];if(e||t){let r=new AbortController,s;const o=function(u){if(!s){s=!0,c();const d=u instanceof Error?u:this.reason;r.abort(d instanceof Me?d:new Zn(d instanceof Error?d.message:d))}};let a=e&&setTimeout(()=>{a=null,o(new Me(`timeout ${e} of ms exceeded`,Me.ETIMEDOUT))},e);const c=()=>{n&&(a&&clearTimeout(a),a=null,n.forEach(u=>{u.unsubscribe?u.unsubscribe(o):u.removeEventListener("abort",o)}),n=null)};n.forEach(u=>u.addEventListener("abort",o));const{signal:i}=r;return i.unsubscribe=()=>ee.asap(c),i}},Hf=function*(n,e){let t=n.byteLength;if(t<e){yield n;return}let r=0,s;for(;r<t;)s=r+e,yield n.slice(r,s),r=s},Gf=async function*(n,e){for await(const t of Wf(n))yield*Hf(t,e)},Wf=async function*(n){if(n[Symbol.asyncIterator]){yield*n;return}const e=n.getReader();try{for(;;){const{done:t,value:r}=await e.read();if(t)break;yield r}}finally{await e.cancel()}},bo=(n,e,t,r)=>{const s=Gf(n,e);let o=0,a,c=i=>{a||(a=!0,r&&r(i))};return new ReadableStream({async pull(i){try{const{done:u,value:d}=await s.next();if(u){c(),i.close();return}let h=d.byteLength;if(t){let f=o+=h;t(f)}i.enqueue(new Uint8Array(d))}catch(u){throw c(u),u}},cancel(i){return c(i),s.return()}},{highWaterMark:2})},ds=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",xo=ds&&typeof ReadableStream=="function",Kf=ds&&(typeof TextEncoder=="function"?(n=>e=>n.encode(e))(new TextEncoder):async n=>new Uint8Array(await new Response(n).arrayBuffer())),Eo=(n,...e)=>{try{return!!n(...e)}catch{return!1}},Xf=xo&&Eo(()=>{let n=!1;const e=new Request(gt.origin,{body:new ReadableStream,method:"POST",get duplex(){return n=!0,"half"}}).headers.has("Content-Type");return n&&!e}),Ao=64*1024,hi=xo&&Eo(()=>ee.isReadableStream(new Response("").body)),fs={stream:hi&&(n=>n.body)};ds&&(n=>{["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!fs[e]&&(fs[e]=ee.isFunction(n[e])?t=>t[e]():(t,r)=>{throw new Me(`Response type '${e}' is not supported`,Me.ERR_NOT_SUPPORT,r)})})})(new Response);const Yf=async n=>{if(n==null)return 0;if(ee.isBlob(n))return n.size;if(ee.isSpecCompliantForm(n))return(await new Request(gt.origin,{method:"POST",body:n}).arrayBuffer()).byteLength;if(ee.isArrayBufferView(n)||ee.isArrayBuffer(n))return n.byteLength;if(ee.isURLSearchParams(n)&&(n=n+""),ee.isString(n))return(await Kf(n)).byteLength},Zf=async(n,e)=>{const t=ee.toFiniteNumber(n.getContentLength());return t??Yf(e)},pi={http:yf,xhr:qf,fetch:ds&&(async n=>{let{url:e,method:t,data:r,signal:s,cancelToken:o,timeout:a,onDownloadProgress:c,onUploadProgress:i,responseType:u,headers:d,withCredentials:h="same-origin",fetchOptions:f}=yo(n);u=u?(u+"").toLowerCase():"text";let g=zf([s,o&&o.toAbortSignal()],a),p;const v=g&&g.unsubscribe&&(()=>{g.unsubscribe()});let b;try{if(i&&Xf&&t!=="get"&&t!=="head"&&(b=await Zf(d,r))!==0){let M=new Request(e,{method:"POST",body:r,duplex:"half"}),z;if(ee.isFormData(r)&&(z=M.headers.get("content-type"))&&d.setContentType(z),M.body){const[X,H]=po(b,us(mo(i)));r=bo(M.body,Ao,X,H)}}ee.isString(h)||(h=h?"include":"omit");const S="credentials"in Request.prototype;p=new Request(e,{...f,signal:g,method:t.toUpperCase(),headers:d.normalize().toJSON(),body:r,duplex:"half",credentials:S?h:void 0});let T=await fetch(p);const R=hi&&(u==="stream"||u==="response");if(hi&&(c||R&&v)){const M={};["status","statusText","headers"].forEach(re=>{M[re]=T[re]});const z=ee.toFiniteNumber(T.headers.get("content-length")),[X,H]=c&&po(z,us(mo(c),!0))||[];T=new Response(bo(T.body,Ao,X,()=>{H&&H(),v&&v()}),M)}u=u||"text";let F=await fs[ee.findKey(fs,u)||"text"](T,n);return!R&&v&&v(),await new Promise((M,z)=>{ho(M,z,{data:F,headers:Nt.from(T.headers),status:T.status,statusText:T.statusText,config:n,request:p})})}catch(S){throw v&&v(),S&&S.name==="TypeError"&&/Load failed|fetch/i.test(S.message)?Object.assign(new Me("Network Error",Me.ERR_NETWORK,n,p),{cause:S.cause||S}):Me.from(S,S&&S.code,n,p)}})};ee.forEach(pi,(n,e)=>{if(n){try{Object.defineProperty(n,"name",{value:e})}catch{}Object.defineProperty(n,"adapterName",{value:e})}});const wo=n=>`- ${n}`,Qf=n=>ee.isFunction(n)||n===null||n===!1,So={getAdapter:n=>{n=ee.isArray(n)?n:[n];const{length:e}=n;let t,r;const s={};for(let o=0;o<e;o++){t=n[o];let a;if(r=t,!Qf(t)&&(r=pi[(a=String(t)).toLowerCase()],r===void 0))throw new Me(`Unknown adapter '${a}'`);if(r)break;s[a||"#"+o]=r}if(!r){const o=Object.entries(s).map(([c,i])=>`adapter ${c} `+(i===!1?"is not supported by the environment":"is not available in the build"));let a=e?o.length>1?`since :
4
- `+o.map(wo).join(`
5
- `):" "+wo(o[0]):"as no adapter specified";throw new Me("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return r},adapters:pi};function mi(n){if(n.cancelToken&&n.cancelToken.throwIfRequested(),n.signal&&n.signal.aborted)throw new Zn(null,n)}function To(n){return mi(n),n.headers=Nt.from(n.headers),n.data=fi.call(n,n.transformRequest),["post","put","patch"].indexOf(n.method)!==-1&&n.headers.setContentType("application/x-www-form-urlencoded",!1),So.getAdapter(n.adapter||Or.adapter)(n).then(function(r){return mi(n),r.data=fi.call(n,n.transformResponse,r),r.headers=Nt.from(r.headers),r},function(r){return fo(r)||(mi(n),r&&r.response&&(r.response.data=fi.call(n,n.transformResponse,r.response),r.response.headers=Nt.from(r.response.headers))),Promise.reject(r)})}const No="1.9.0",hs={};["object","boolean","number","function","string","symbol"].forEach((n,e)=>{hs[n]=function(r){return typeof r===n||"a"+(e<1?"n ":" ")+n}});const Oo={};hs.transitional=function(e,t,r){function s(o,a){return"[Axios v"+No+"] Transitional option '"+o+"'"+a+(r?". "+r:"")}return(o,a,c)=>{if(e===!1)throw new Me(s(a," has been removed"+(t?" in "+t:"")),Me.ERR_DEPRECATED);return t&&!Oo[a]&&(Oo[a]=!0,console.warn(s(a," has been deprecated since v"+t+" and will be removed in the near future"))),e?e(o,a,c):!0}},hs.spelling=function(e){return(t,r)=>(console.warn(`${r} is likely a misspelling of ${e}`),!0)};function Jf(n,e,t){if(typeof n!="object")throw new Me("options must be an object",Me.ERR_BAD_OPTION_VALUE);const r=Object.keys(n);let s=r.length;for(;s-- >0;){const o=r[s],a=e[o];if(a){const c=n[o],i=c===void 0||a(c,o,n);if(i!==!0)throw new Me("option "+o+" must be "+i,Me.ERR_BAD_OPTION_VALUE);continue}if(t!==!0)throw new Me("Unknown option "+o,Me.ERR_BAD_OPTION)}}const ps={assertOptions:Jf,validators:hs},Qt=ps.validators;let Pn=class{constructor(e){this.defaults=e||{},this.interceptors={request:new oo,response:new oo}}async request(e,t){try{return await this._request(e,t)}catch(r){if(r instanceof Error){let s={};Error.captureStackTrace?Error.captureStackTrace(s):s=new Error;const o=s.stack?s.stack.replace(/^.+\n/,""):"";try{r.stack?o&&!String(r.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(r.stack+=`
6
- `+o):r.stack=o}catch{}}throw r}}_request(e,t){typeof e=="string"?(t=t||{},t.url=e):t=e||{},t=Bn(this.defaults,t);const{transitional:r,paramsSerializer:s,headers:o}=t;r!==void 0&&ps.assertOptions(r,{silentJSONParsing:Qt.transitional(Qt.boolean),forcedJSONParsing:Qt.transitional(Qt.boolean),clarifyTimeoutError:Qt.transitional(Qt.boolean)},!1),s!=null&&(ee.isFunction(s)?t.paramsSerializer={serialize:s}:ps.assertOptions(s,{encode:Qt.function,serialize:Qt.function},!0)),t.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),ps.assertOptions(t,{baseUrl:Qt.spelling("baseURL"),withXsrfToken:Qt.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let a=o&&ee.merge(o.common,o[t.method]);o&&ee.forEach(["delete","get","head","post","put","patch","common"],p=>{delete o[p]}),t.headers=Nt.concat(a,o);const c=[];let i=!0;this.interceptors.request.forEach(function(v){typeof v.runWhen=="function"&&v.runWhen(t)===!1||(i=i&&v.synchronous,c.unshift(v.fulfilled,v.rejected))});const u=[];this.interceptors.response.forEach(function(v){u.push(v.fulfilled,v.rejected)});let d,h=0,f;if(!i){const p=[To.bind(this),void 0];for(p.unshift.apply(p,c),p.push.apply(p,u),f=p.length,d=Promise.resolve(t);h<f;)d=d.then(p[h++],p[h++]);return d}f=c.length;let g=t;for(h=0;h<f;){const p=c[h++],v=c[h++];try{g=p(g)}catch(b){v.call(this,b);break}}try{d=To.call(this,g)}catch(p){return Promise.reject(p)}for(h=0,f=u.length;h<f;)d=d.then(u[h++],u[h++]);return d}getUri(e){e=Bn(this.defaults,e);const t=go(e.baseURL,e.url,e.allowAbsoluteUrls);return ao(t,e.params,e.paramsSerializer)}};ee.forEach(["delete","get","head","options"],function(e){Pn.prototype[e]=function(t,r){return this.request(Bn(r||{},{method:e,url:t,data:(r||{}).data}))}}),ee.forEach(["post","put","patch"],function(e){function t(r){return function(o,a,c){return this.request(Bn(c||{},{method:e,headers:r?{"Content-Type":"multipart/form-data"}:{},url:o,data:a}))}}Pn.prototype[e]=t(),Pn.prototype[e+"Form"]=t(!0)});let eh=class tu{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(o){t=o});const r=this;this.promise.then(s=>{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](s);r._listeners=null}),this.promise.then=s=>{let o;const a=new Promise(c=>{r.subscribe(c),o=c}).then(s);return a.cancel=function(){r.unsubscribe(o)},a},e(function(o,a,c){r.reason||(r.reason=new Zn(o,a,c),t(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);t!==-1&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=r=>{e.abort(r)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new tu(function(s){e=s}),cancel:e}}};function th(n){return function(t){return n.apply(null,t)}}function nh(n){return ee.isObject(n)&&n.isAxiosError===!0}const gi={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(gi).forEach(([n,e])=>{gi[e]=n});function Co(n){const e=new Pn(n),t=Ha(Pn.prototype.request,e);return ee.extend(t,Pn.prototype,e,{allOwnKeys:!0}),ee.extend(t,e,null,{allOwnKeys:!0}),t.create=function(s){return Co(Bn(n,s))},t}const tt=Co(Or);tt.Axios=Pn,tt.CanceledError=Zn,tt.CancelToken=eh,tt.isCancel=fo,tt.VERSION=No,tt.toFormData=ls,tt.AxiosError=Me,tt.Cancel=tt.CanceledError,tt.all=function(e){return Promise.all(e)},tt.spread=th,tt.isAxiosError=nh,tt.mergeConfig=Bn,tt.AxiosHeaders=Nt,tt.formToJSON=n=>co(ee.isHTMLForm(n)?new FormData(n):n),tt.getAdapter=So.getAdapter,tt.HttpStatusCode=gi,tt.default=tt;const{Axios:zb,AxiosError:Hb,CanceledError:Gb,isCancel:Wb,CancelToken:Kb,VERSION:Xb,all:Yb,Cancel:Zb,isAxiosError:Qb,spread:Jb,toFormData:ex,AxiosHeaders:tx,HttpStatusCode:nx,formToJSON:rx,getAdapter:sx,mergeConfig:ix}=tt;var En=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function vi(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var yi={exports:{}},Ro;function rh(){return Ro||(Ro=1,function(n,e){(function(r,s){n.exports=s()})(self,function(){return function(){var t={3099:function(a){a.exports=function(c){if(typeof c!="function")throw TypeError(String(c)+" is not a function");return c}},6077:function(a,c,i){var u=i(111);a.exports=function(d){if(!u(d)&&d!==null)throw TypeError("Can't set "+String(d)+" as a prototype");return d}},1223:function(a,c,i){var u=i(5112),d=i(30),h=i(3070),f=u("unscopables"),g=Array.prototype;g[f]==null&&h.f(g,f,{configurable:!0,value:d(null)}),a.exports=function(p){g[f][p]=!0}},1530:function(a,c,i){var u=i(8710).charAt;a.exports=function(d,h,f){return h+(f?u(d,h).length:1)}},5787:function(a){a.exports=function(c,i,u){if(!(c instanceof i))throw TypeError("Incorrect "+(u?u+" ":"")+"invocation");return c}},9670:function(a,c,i){var u=i(111);a.exports=function(d){if(!u(d))throw TypeError(String(d)+" is not an object");return d}},4019:function(a){a.exports=typeof ArrayBuffer<"u"&&typeof DataView<"u"},260:function(a,c,i){var u=i(4019),d=i(9781),h=i(7854),f=i(111),g=i(6656),p=i(648),v=i(8880),b=i(1320),S=i(3070).f,T=i(9518),R=i(7674),F=i(5112),M=i(9711),z=h.Int8Array,X=z&&z.prototype,H=h.Uint8ClampedArray,re=H&&H.prototype,G=z&&T(z),E=X&&T(X),P=Object.prototype,O=P.isPrototypeOf,_=F("toStringTag"),j=M("TYPED_ARRAY_TAG"),V=u&&!!R&&p(h.opera)!=="Opera",K=!1,q,J={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},te={BigInt64Array:8,BigUint64Array:8},me=function(N){if(!f(N))return!1;var I=p(N);return I==="DataView"||g(J,I)||g(te,I)},ge=function(ye){if(!f(ye))return!1;var N=p(ye);return g(J,N)||g(te,N)},ve=function(ye){if(ge(ye))return ye;throw TypeError("Target is not a typed array")},xe=function(ye){if(R){if(O.call(G,ye))return ye}else for(var N in J)if(g(J,q)){var I=h[N];if(I&&(ye===I||O.call(I,ye)))return ye}throw TypeError("Target is not a typed array constructor")},he=function(ye,N,I){if(d){if(I)for(var A in J){var C=h[A];C&&g(C.prototype,ye)&&delete C.prototype[ye]}(!E[ye]||I)&&b(E,ye,I?N:V&&X[ye]||N)}},Oe=function(ye,N,I){var A,C;if(d){if(R){if(I)for(A in J)C=h[A],C&&g(C,ye)&&delete C[ye];if(!G[ye]||I)try{return b(G,ye,I?N:V&&z[ye]||N)}catch{}else return}for(A in J)C=h[A],C&&(!C[ye]||I)&&b(C,ye,N)}};for(q in J)h[q]||(V=!1);if((!V||typeof G!="function"||G===Function.prototype)&&(G=function(){throw TypeError("Incorrect invocation")},V))for(q in J)h[q]&&R(h[q],G);if((!V||!E||E===P)&&(E=G.prototype,V))for(q in J)h[q]&&R(h[q].prototype,E);if(V&&T(re)!==E&&R(re,E),d&&!g(E,_)){K=!0,S(E,_,{get:function(){return f(this)?this[j]:void 0}});for(q in J)h[q]&&v(h[q],j,q)}a.exports={NATIVE_ARRAY_BUFFER_VIEWS:V,TYPED_ARRAY_TAG:K&&j,aTypedArray:ve,aTypedArrayConstructor:xe,exportTypedArrayMethod:he,exportTypedArrayStaticMethod:Oe,isView:me,isTypedArray:ge,TypedArray:G,TypedArrayPrototype:E}},3331:function(a,c,i){var u=i(7854),d=i(9781),h=i(4019),f=i(8880),g=i(2248),p=i(7293),v=i(5787),b=i(9958),S=i(7466),T=i(7067),R=i(1179),F=i(9518),M=i(7674),z=i(8006).f,X=i(3070).f,H=i(1285),re=i(8003),G=i(9909),E=G.get,P=G.set,O="ArrayBuffer",_="DataView",j="prototype",V="Wrong length",K="Wrong index",q=u[O],J=q,te=u[_],me=te&&te[j],ge=Object.prototype,ve=u.RangeError,xe=R.pack,he=R.unpack,Oe=function(Q){return[Q&255]},ye=function(Q){return[Q&255,Q>>8&255]},N=function(Q){return[Q&255,Q>>8&255,Q>>16&255,Q>>24&255]},I=function(Q){return Q[3]<<24|Q[2]<<16|Q[1]<<8|Q[0]},A=function(Q){return xe(Q,23,4)},C=function(Q){return xe(Q,52,8)},y=function(Q,ne){X(Q[j],ne,{get:function(){return E(this)[ne]}})},x=function(Q,ne,ae,fe){var Ae=T(ae),De=E(Q);if(Ae+ne>De.byteLength)throw ve(K);var Ge=E(De.buffer).bytes,je=Ae+De.byteOffset,Be=Ge.slice(je,je+ne);return fe?Be:Be.reverse()},k=function(Q,ne,ae,fe,Ae,De){var Ge=T(ae),je=E(Q);if(Ge+ne>je.byteLength)throw ve(K);for(var Be=E(je.buffer).bytes,Ve=Ge+je.byteOffset,rt=fe(+Ae),it=0;it<ne;it++)Be[Ve+it]=rt[De?it:ne-it-1]};if(!h)J=function(ne){v(this,J,O);var ae=T(ne);P(this,{bytes:H.call(new Array(ae),0),byteLength:ae}),d||(this.byteLength=ae)},te=function(ne,ae,fe){v(this,te,_),v(ne,J,_);var Ae=E(ne).byteLength,De=b(ae);if(De<0||De>Ae)throw ve("Wrong offset");if(fe=fe===void 0?Ae-De:S(fe),De+fe>Ae)throw ve(V);P(this,{buffer:ne,byteLength:fe,byteOffset:De}),d||(this.buffer=ne,this.byteLength=fe,this.byteOffset=De)},d&&(y(J,"byteLength"),y(te,"buffer"),y(te,"byteLength"),y(te,"byteOffset")),g(te[j],{getInt8:function(ne){return x(this,1,ne)[0]<<24>>24},getUint8:function(ne){return x(this,1,ne)[0]},getInt16:function(ne){var ae=x(this,2,ne,arguments.length>1?arguments[1]:void 0);return(ae[1]<<8|ae[0])<<16>>16},getUint16:function(ne){var ae=x(this,2,ne,arguments.length>1?arguments[1]:void 0);return ae[1]<<8|ae[0]},getInt32:function(ne){return I(x(this,4,ne,arguments.length>1?arguments[1]:void 0))},getUint32:function(ne){return I(x(this,4,ne,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(ne){return he(x(this,4,ne,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(ne){return he(x(this,8,ne,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(ne,ae){k(this,1,ne,Oe,ae)},setUint8:function(ne,ae){k(this,1,ne,Oe,ae)},setInt16:function(ne,ae){k(this,2,ne,ye,ae,arguments.length>2?arguments[2]:void 0)},setUint16:function(ne,ae){k(this,2,ne,ye,ae,arguments.length>2?arguments[2]:void 0)},setInt32:function(ne,ae){k(this,4,ne,N,ae,arguments.length>2?arguments[2]:void 0)},setUint32:function(ne,ae){k(this,4,ne,N,ae,arguments.length>2?arguments[2]:void 0)},setFloat32:function(ne,ae){k(this,4,ne,A,ae,arguments.length>2?arguments[2]:void 0)},setFloat64:function(ne,ae){k(this,8,ne,C,ae,arguments.length>2?arguments[2]:void 0)}});else{if(!p(function(){q(1)})||!p(function(){new q(-1)})||p(function(){return new q,new q(1.5),new q(NaN),q.name!=O})){J=function(ne){return v(this,J),new q(T(ne))};for(var B=J[j]=q[j],U=z(q),$=0,W;U.length>$;)(W=U[$++])in J||f(J,W,q[W]);B.constructor=J}M&&F(me)!==ge&&M(me,ge);var Z=new te(new J(2)),Y=me.setInt8;Z.setInt8(0,2147483648),Z.setInt8(1,2147483649),(Z.getInt8(0)||!Z.getInt8(1))&&g(me,{setInt8:function(ne,ae){Y.call(this,ne,ae<<24>>24)},setUint8:function(ne,ae){Y.call(this,ne,ae<<24>>24)}},{unsafe:!0})}re(J,O),re(te,_),a.exports={ArrayBuffer:J,DataView:te}},1048:function(a,c,i){var u=i(7908),d=i(1400),h=i(7466),f=Math.min;a.exports=[].copyWithin||function(p,v){var b=u(this),S=h(b.length),T=d(p,S),R=d(v,S),F=arguments.length>2?arguments[2]:void 0,M=f((F===void 0?S:d(F,S))-R,S-T),z=1;for(R<T&&T<R+M&&(z=-1,R+=M-1,T+=M-1);M-- >0;)R in b?b[T]=b[R]:delete b[T],T+=z,R+=z;return b}},1285:function(a,c,i){var u=i(7908),d=i(1400),h=i(7466);a.exports=function(g){for(var p=u(this),v=h(p.length),b=arguments.length,S=d(b>1?arguments[1]:void 0,v),T=b>2?arguments[2]:void 0,R=T===void 0?v:d(T,v);R>S;)p[S++]=g;return p}},8533:function(a,c,i){var u=i(2092).forEach,d=i(9341),h=d("forEach");a.exports=h?[].forEach:function(g){return u(this,g,arguments.length>1?arguments[1]:void 0)}},8457:function(a,c,i){var u=i(9974),d=i(7908),h=i(3411),f=i(7659),g=i(7466),p=i(6135),v=i(1246);a.exports=function(S){var T=d(S),R=typeof this=="function"?this:Array,F=arguments.length,M=F>1?arguments[1]:void 0,z=M!==void 0,X=v(T),H=0,re,G,E,P,O,_;if(z&&(M=u(M,F>2?arguments[2]:void 0,2)),X!=null&&!(R==Array&&f(X)))for(P=X.call(T),O=P.next,G=new R;!(E=O.call(P)).done;H++)_=z?h(P,M,[E.value,H],!0):E.value,p(G,H,_);else for(re=g(T.length),G=new R(re);re>H;H++)_=z?M(T[H],H):T[H],p(G,H,_);return G.length=H,G}},1318:function(a,c,i){var u=i(5656),d=i(7466),h=i(1400),f=function(g){return function(p,v,b){var S=u(p),T=d(S.length),R=h(b,T),F;if(g&&v!=v){for(;T>R;)if(F=S[R++],F!=F)return!0}else for(;T>R;R++)if((g||R in S)&&S[R]===v)return g||R||0;return!g&&-1}};a.exports={includes:f(!0),indexOf:f(!1)}},2092:function(a,c,i){var u=i(9974),d=i(8361),h=i(7908),f=i(7466),g=i(5417),p=[].push,v=function(b){var S=b==1,T=b==2,R=b==3,F=b==4,M=b==6,z=b==7,X=b==5||M;return function(H,re,G,E){for(var P=h(H),O=d(P),_=u(re,G,3),j=f(O.length),V=0,K=E||g,q=S?K(H,j):T||z?K(H,0):void 0,J,te;j>V;V++)if((X||V in O)&&(J=O[V],te=_(J,V,P),b))if(S)q[V]=te;else if(te)switch(b){case 3:return!0;case 5:return J;case 6:return V;case 2:p.call(q,J)}else switch(b){case 4:return!1;case 7:p.call(q,J)}return M?-1:R||F?F:q}};a.exports={forEach:v(0),map:v(1),filter:v(2),some:v(3),every:v(4),find:v(5),findIndex:v(6),filterOut:v(7)}},6583:function(a,c,i){var u=i(5656),d=i(9958),h=i(7466),f=i(9341),g=Math.min,p=[].lastIndexOf,v=!!p&&1/[1].lastIndexOf(1,-0)<0,b=f("lastIndexOf"),S=v||!b;a.exports=S?function(R){if(v)return p.apply(this,arguments)||0;var F=u(this),M=h(F.length),z=M-1;for(arguments.length>1&&(z=g(z,d(arguments[1]))),z<0&&(z=M+z);z>=0;z--)if(z in F&&F[z]===R)return z||0;return-1}:p},1194:function(a,c,i){var u=i(7293),d=i(5112),h=i(7392),f=d("species");a.exports=function(g){return h>=51||!u(function(){var p=[],v=p.constructor={};return v[f]=function(){return{foo:1}},p[g](Boolean).foo!==1})}},9341:function(a,c,i){var u=i(7293);a.exports=function(d,h){var f=[][d];return!!f&&u(function(){f.call(null,h||function(){throw 1},1)})}},3671:function(a,c,i){var u=i(3099),d=i(7908),h=i(8361),f=i(7466),g=function(p){return function(v,b,S,T){u(b);var R=d(v),F=h(R),M=f(R.length),z=p?M-1:0,X=p?-1:1;if(S<2)for(;;){if(z in F){T=F[z],z+=X;break}if(z+=X,p?z<0:M<=z)throw TypeError("Reduce of empty array with no initial value")}for(;p?z>=0:M>z;z+=X)z in F&&(T=b(T,F[z],z,R));return T}};a.exports={left:g(!1),right:g(!0)}},5417:function(a,c,i){var u=i(111),d=i(3157),h=i(5112),f=h("species");a.exports=function(g,p){var v;return d(g)&&(v=g.constructor,typeof v=="function"&&(v===Array||d(v.prototype))?v=void 0:u(v)&&(v=v[f],v===null&&(v=void 0))),new(v===void 0?Array:v)(p===0?0:p)}},3411:function(a,c,i){var u=i(9670),d=i(9212);a.exports=function(h,f,g,p){try{return p?f(u(g)[0],g[1]):f(g)}catch(v){throw d(h),v}}},7072:function(a,c,i){var u=i(5112),d=u("iterator"),h=!1;try{var f=0,g={next:function(){return{done:!!f++}},return:function(){h=!0}};g[d]=function(){return this},Array.from(g,function(){throw 2})}catch{}a.exports=function(p,v){if(!v&&!h)return!1;var b=!1;try{var S={};S[d]=function(){return{next:function(){return{done:b=!0}}}},p(S)}catch{}return b}},4326:function(a){var c={}.toString;a.exports=function(i){return c.call(i).slice(8,-1)}},648:function(a,c,i){var u=i(1694),d=i(4326),h=i(5112),f=h("toStringTag"),g=d(function(){return arguments}())=="Arguments",p=function(v,b){try{return v[b]}catch{}};a.exports=u?d:function(v){var b,S,T;return v===void 0?"Undefined":v===null?"Null":typeof(S=p(b=Object(v),f))=="string"?S:g?d(b):(T=d(b))=="Object"&&typeof b.callee=="function"?"Arguments":T}},9920:function(a,c,i){var u=i(6656),d=i(3887),h=i(1236),f=i(3070);a.exports=function(g,p){for(var v=d(p),b=f.f,S=h.f,T=0;T<v.length;T++){var R=v[T];u(g,R)||b(g,R,S(p,R))}}},8544:function(a,c,i){var u=i(7293);a.exports=!u(function(){function d(){}return d.prototype.constructor=null,Object.getPrototypeOf(new d)!==d.prototype})},4994:function(a,c,i){var u=i(3383).IteratorPrototype,d=i(30),h=i(9114),f=i(8003),g=i(7497),p=function(){return this};a.exports=function(v,b,S){var T=b+" Iterator";return v.prototype=d(u,{next:h(1,S)}),f(v,T,!1,!0),g[T]=p,v}},8880:function(a,c,i){var u=i(9781),d=i(3070),h=i(9114);a.exports=u?function(f,g,p){return d.f(f,g,h(1,p))}:function(f,g,p){return f[g]=p,f}},9114:function(a){a.exports=function(c,i){return{enumerable:!(c&1),configurable:!(c&2),writable:!(c&4),value:i}}},6135:function(a,c,i){var u=i(7593),d=i(3070),h=i(9114);a.exports=function(f,g,p){var v=u(g);v in f?d.f(f,v,h(0,p)):f[v]=p}},654:function(a,c,i){var u=i(2109),d=i(4994),h=i(9518),f=i(7674),g=i(8003),p=i(8880),v=i(1320),b=i(5112),S=i(1913),T=i(7497),R=i(3383),F=R.IteratorPrototype,M=R.BUGGY_SAFARI_ITERATORS,z=b("iterator"),X="keys",H="values",re="entries",G=function(){return this};a.exports=function(E,P,O,_,j,V,K){d(O,P,_);var q=function(N){if(N===j&&ve)return ve;if(!M&&N in me)return me[N];switch(N){case X:return function(){return new O(this,N)};case H:return function(){return new O(this,N)};case re:return function(){return new O(this,N)}}return function(){return new O(this)}},J=P+" Iterator",te=!1,me=E.prototype,ge=me[z]||me["@@iterator"]||j&&me[j],ve=!M&&ge||q(j),xe=P=="Array"&&me.entries||ge,he,Oe,ye;if(xe&&(he=h(xe.call(new E)),F!==Object.prototype&&he.next&&(!S&&h(he)!==F&&(f?f(he,F):typeof he[z]!="function"&&p(he,z,G)),g(he,J,!0,!0),S&&(T[J]=G))),j==H&&ge&&ge.name!==H&&(te=!0,ve=function(){return ge.call(this)}),(!S||K)&&me[z]!==ve&&p(me,z,ve),T[P]=ve,j)if(Oe={values:q(H),keys:V?ve:q(X),entries:q(re)},K)for(ye in Oe)(M||te||!(ye in me))&&v(me,ye,Oe[ye]);else u({target:P,proto:!0,forced:M||te},Oe);return Oe}},9781:function(a,c,i){var u=i(7293);a.exports=!u(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},317:function(a,c,i){var u=i(7854),d=i(111),h=u.document,f=d(h)&&d(h.createElement);a.exports=function(g){return f?h.createElement(g):{}}},8324:function(a){a.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},8113:function(a,c,i){var u=i(5005);a.exports=u("navigator","userAgent")||""},7392:function(a,c,i){var u=i(7854),d=i(8113),h=u.process,f=h&&h.versions,g=f&&f.v8,p,v;g?(p=g.split("."),v=p[0]+p[1]):d&&(p=d.match(/Edge\/(\d+)/),(!p||p[1]>=74)&&(p=d.match(/Chrome\/(\d+)/),p&&(v=p[1]))),a.exports=v&&+v},748:function(a){a.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},2109:function(a,c,i){var u=i(7854),d=i(1236).f,h=i(8880),f=i(1320),g=i(3505),p=i(9920),v=i(4705);a.exports=function(b,S){var T=b.target,R=b.global,F=b.stat,M,z,X,H,re,G;if(R?z=u:F?z=u[T]||g(T,{}):z=(u[T]||{}).prototype,z)for(X in S){if(re=S[X],b.noTargetGet?(G=d(z,X),H=G&&G.value):H=z[X],M=v(R?X:T+(F?".":"#")+X,b.forced),!M&&H!==void 0){if(typeof re==typeof H)continue;p(re,H)}(b.sham||H&&H.sham)&&h(re,"sham",!0),f(z,X,re,b)}}},7293:function(a){a.exports=function(c){try{return!!c()}catch{return!0}}},7007:function(a,c,i){i(4916);var u=i(1320),d=i(7293),h=i(5112),f=i(2261),g=i(8880),p=h("species"),v=!d(function(){var F=/./;return F.exec=function(){var M=[];return M.groups={a:"7"},M},"".replace(F,"$<a>")!=="7"}),b=function(){return"a".replace(/./,"$0")==="$0"}(),S=h("replace"),T=function(){return/./[S]?/./[S]("a","$0")==="":!1}(),R=!d(function(){var F=/(?:)/,M=F.exec;F.exec=function(){return M.apply(this,arguments)};var z="ab".split(F);return z.length!==2||z[0]!=="a"||z[1]!=="b"});a.exports=function(F,M,z,X){var H=h(F),re=!d(function(){var j={};return j[H]=function(){return 7},""[F](j)!=7}),G=re&&!d(function(){var j=!1,V=/a/;return F==="split"&&(V={},V.constructor={},V.constructor[p]=function(){return V},V.flags="",V[H]=/./[H]),V.exec=function(){return j=!0,null},V[H](""),!j});if(!re||!G||F==="replace"&&!(v&&b&&!T)||F==="split"&&!R){var E=/./[H],P=z(H,""[F],function(j,V,K,q,J){return V.exec===f?re&&!J?{done:!0,value:E.call(V,K,q)}:{done:!0,value:j.call(K,V,q)}:{done:!1}},{REPLACE_KEEPS_$0:b,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:T}),O=P[0],_=P[1];u(String.prototype,F,O),u(RegExp.prototype,H,M==2?function(j,V){return _.call(j,this,V)}:function(j){return _.call(j,this)})}X&&g(RegExp.prototype[H],"sham",!0)}},9974:function(a,c,i){var u=i(3099);a.exports=function(d,h,f){if(u(d),h===void 0)return d;switch(f){case 0:return function(){return d.call(h)};case 1:return function(g){return d.call(h,g)};case 2:return function(g,p){return d.call(h,g,p)};case 3:return function(g,p,v){return d.call(h,g,p,v)}}return function(){return d.apply(h,arguments)}}},5005:function(a,c,i){var u=i(857),d=i(7854),h=function(f){return typeof f=="function"?f:void 0};a.exports=function(f,g){return arguments.length<2?h(u[f])||h(d[f]):u[f]&&u[f][g]||d[f]&&d[f][g]}},1246:function(a,c,i){var u=i(648),d=i(7497),h=i(5112),f=h("iterator");a.exports=function(g){if(g!=null)return g[f]||g["@@iterator"]||d[u(g)]}},8554:function(a,c,i){var u=i(9670),d=i(1246);a.exports=function(h){var f=d(h);if(typeof f!="function")throw TypeError(String(h)+" is not iterable");return u(f.call(h))}},647:function(a,c,i){var u=i(7908),d=Math.floor,h="".replace,f=/\$([$&'`]|\d\d?|<[^>]*>)/g,g=/\$([$&'`]|\d\d?)/g;a.exports=function(p,v,b,S,T,R){var F=b+p.length,M=S.length,z=g;return T!==void 0&&(T=u(T),z=f),h.call(R,z,function(X,H){var re;switch(H.charAt(0)){case"$":return"$";case"&":return p;case"`":return v.slice(0,b);case"'":return v.slice(F);case"<":re=T[H.slice(1,-1)];break;default:var G=+H;if(G===0)return X;if(G>M){var E=d(G/10);return E===0?X:E<=M?S[E-1]===void 0?H.charAt(1):S[E-1]+H.charAt(1):X}re=S[G-1]}return re===void 0?"":re})}},7854:function(a,c,i){var u=function(d){return d&&d.Math==Math&&d};a.exports=u(typeof globalThis=="object"&&globalThis)||u(typeof window=="object"&&window)||u(typeof self=="object"&&self)||u(typeof i.g=="object"&&i.g)||function(){return this}()||Function("return this")()},6656:function(a){var c={}.hasOwnProperty;a.exports=function(i,u){return c.call(i,u)}},3501:function(a){a.exports={}},490:function(a,c,i){var u=i(5005);a.exports=u("document","documentElement")},4664:function(a,c,i){var u=i(9781),d=i(7293),h=i(317);a.exports=!u&&!d(function(){return Object.defineProperty(h("div"),"a",{get:function(){return 7}}).a!=7})},1179:function(a){var c=Math.abs,i=Math.pow,u=Math.floor,d=Math.log,h=Math.LN2,f=function(p,v,b){var S=new Array(b),T=b*8-v-1,R=(1<<T)-1,F=R>>1,M=v===23?i(2,-24)-i(2,-77):0,z=p<0||p===0&&1/p<0?1:0,X=0,H,re,G;for(p=c(p),p!=p||p===1/0?(re=p!=p?1:0,H=R):(H=u(d(p)/h),p*(G=i(2,-H))<1&&(H--,G*=2),H+F>=1?p+=M/G:p+=M*i(2,1-F),p*G>=2&&(H++,G/=2),H+F>=R?(re=0,H=R):H+F>=1?(re=(p*G-1)*i(2,v),H=H+F):(re=p*i(2,F-1)*i(2,v),H=0));v>=8;S[X++]=re&255,re/=256,v-=8);for(H=H<<v|re,T+=v;T>0;S[X++]=H&255,H/=256,T-=8);return S[--X]|=z*128,S},g=function(p,v){var b=p.length,S=b*8-v-1,T=(1<<S)-1,R=T>>1,F=S-7,M=b-1,z=p[M--],X=z&127,H;for(z>>=7;F>0;X=X*256+p[M],M--,F-=8);for(H=X&(1<<-F)-1,X>>=-F,F+=v;F>0;H=H*256+p[M],M--,F-=8);if(X===0)X=1-R;else{if(X===T)return H?NaN:z?-1/0:1/0;H=H+i(2,v),X=X-R}return(z?-1:1)*H*i(2,X-v)};a.exports={pack:f,unpack:g}},8361:function(a,c,i){var u=i(7293),d=i(4326),h="".split;a.exports=u(function(){return!Object("z").propertyIsEnumerable(0)})?function(f){return d(f)=="String"?h.call(f,""):Object(f)}:Object},9587:function(a,c,i){var u=i(111),d=i(7674);a.exports=function(h,f,g){var p,v;return d&&typeof(p=f.constructor)=="function"&&p!==g&&u(v=p.prototype)&&v!==g.prototype&&d(h,v),h}},2788:function(a,c,i){var u=i(5465),d=Function.toString;typeof u.inspectSource!="function"&&(u.inspectSource=function(h){return d.call(h)}),a.exports=u.inspectSource},9909:function(a,c,i){var u=i(8536),d=i(7854),h=i(111),f=i(8880),g=i(6656),p=i(5465),v=i(6200),b=i(3501),S=d.WeakMap,T,R,F,M=function(P){return F(P)?R(P):T(P,{})},z=function(P){return function(O){var _;if(!h(O)||(_=R(O)).type!==P)throw TypeError("Incompatible receiver, "+P+" required");return _}};if(u){var X=p.state||(p.state=new S),H=X.get,re=X.has,G=X.set;T=function(P,O){return O.facade=P,G.call(X,P,O),O},R=function(P){return H.call(X,P)||{}},F=function(P){return re.call(X,P)}}else{var E=v("state");b[E]=!0,T=function(P,O){return O.facade=P,f(P,E,O),O},R=function(P){return g(P,E)?P[E]:{}},F=function(P){return g(P,E)}}a.exports={set:T,get:R,has:F,enforce:M,getterFor:z}},7659:function(a,c,i){var u=i(5112),d=i(7497),h=u("iterator"),f=Array.prototype;a.exports=function(g){return g!==void 0&&(d.Array===g||f[h]===g)}},3157:function(a,c,i){var u=i(4326);a.exports=Array.isArray||function(h){return u(h)=="Array"}},4705:function(a,c,i){var u=i(7293),d=/#|\.prototype\./,h=function(b,S){var T=g[f(b)];return T==v?!0:T==p?!1:typeof S=="function"?u(S):!!S},f=h.normalize=function(b){return String(b).replace(d,".").toLowerCase()},g=h.data={},p=h.NATIVE="N",v=h.POLYFILL="P";a.exports=h},111:function(a){a.exports=function(c){return typeof c=="object"?c!==null:typeof c=="function"}},1913:function(a){a.exports=!1},7850:function(a,c,i){var u=i(111),d=i(4326),h=i(5112),f=h("match");a.exports=function(g){var p;return u(g)&&((p=g[f])!==void 0?!!p:d(g)=="RegExp")}},9212:function(a,c,i){var u=i(9670);a.exports=function(d){var h=d.return;if(h!==void 0)return u(h.call(d)).value}},3383:function(a,c,i){var u=i(7293),d=i(9518),h=i(8880),f=i(6656),g=i(5112),p=i(1913),v=g("iterator"),b=!1,S=function(){return this},T,R,F;[].keys&&(F=[].keys(),"next"in F?(R=d(d(F)),R!==Object.prototype&&(T=R)):b=!0);var M=T==null||u(function(){var z={};return T[v].call(z)!==z});M&&(T={}),(!p||M)&&!f(T,v)&&h(T,v,S),a.exports={IteratorPrototype:T,BUGGY_SAFARI_ITERATORS:b}},7497:function(a){a.exports={}},133:function(a,c,i){var u=i(7293);a.exports=!!Object.getOwnPropertySymbols&&!u(function(){return!String(Symbol())})},590:function(a,c,i){var u=i(7293),d=i(5112),h=i(1913),f=d("iterator");a.exports=!u(function(){var g=new URL("b?a=1&b=2&c=3","http://a"),p=g.searchParams,v="";return g.pathname="c%20d",p.forEach(function(b,S){p.delete("b"),v+=S+b}),h&&!g.toJSON||!p.sort||g.href!=="http://a/c%20d?a=1&c=3"||p.get("c")!=="3"||String(new URLSearchParams("?a=1"))!=="a=1"||!p[f]||new URL("https://a@b").username!=="a"||new URLSearchParams(new URLSearchParams("a=b")).get("a")!=="b"||new URL("http://тест").host!=="xn--e1aybc"||new URL("http://a#б").hash!=="#%D0%B1"||v!=="a1c3"||new URL("http://x",void 0).host!=="x"})},8536:function(a,c,i){var u=i(7854),d=i(2788),h=u.WeakMap;a.exports=typeof h=="function"&&/native code/.test(d(h))},1574:function(a,c,i){var u=i(9781),d=i(7293),h=i(1956),f=i(5181),g=i(5296),p=i(7908),v=i(8361),b=Object.assign,S=Object.defineProperty;a.exports=!b||d(function(){if(u&&b({b:1},b(S({},"a",{enumerable:!0,get:function(){S(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var T={},R={},F=Symbol(),M="abcdefghijklmnopqrst";return T[F]=7,M.split("").forEach(function(z){R[z]=z}),b({},T)[F]!=7||h(b({},R)).join("")!=M})?function(R,F){for(var M=p(R),z=arguments.length,X=1,H=f.f,re=g.f;z>X;)for(var G=v(arguments[X++]),E=H?h(G).concat(H(G)):h(G),P=E.length,O=0,_;P>O;)_=E[O++],(!u||re.call(G,_))&&(M[_]=G[_]);return M}:b},30:function(a,c,i){var u=i(9670),d=i(6048),h=i(748),f=i(3501),g=i(490),p=i(317),v=i(6200),b=">",S="<",T="prototype",R="script",F=v("IE_PROTO"),M=function(){},z=function(E){return S+R+b+E+S+"/"+R+b},X=function(E){E.write(z("")),E.close();var P=E.parentWindow.Object;return E=null,P},H=function(){var E=p("iframe"),P="java"+R+":",O;return E.style.display="none",g.appendChild(E),E.src=String(P),O=E.contentWindow.document,O.open(),O.write(z("document.F=Object")),O.close(),O.F},re,G=function(){try{re=document.domain&&new ActiveXObject("htmlfile")}catch{}G=re?X(re):H();for(var E=h.length;E--;)delete G[T][h[E]];return G()};f[F]=!0,a.exports=Object.create||function(P,O){var _;return P!==null?(M[T]=u(P),_=new M,M[T]=null,_[F]=P):_=G(),O===void 0?_:d(_,O)}},6048:function(a,c,i){var u=i(9781),d=i(3070),h=i(9670),f=i(1956);a.exports=u?Object.defineProperties:function(p,v){h(p);for(var b=f(v),S=b.length,T=0,R;S>T;)d.f(p,R=b[T++],v[R]);return p}},3070:function(a,c,i){var u=i(9781),d=i(4664),h=i(9670),f=i(7593),g=Object.defineProperty;c.f=u?g:function(v,b,S){if(h(v),b=f(b,!0),h(S),d)try{return g(v,b,S)}catch{}if("get"in S||"set"in S)throw TypeError("Accessors not supported");return"value"in S&&(v[b]=S.value),v}},1236:function(a,c,i){var u=i(9781),d=i(5296),h=i(9114),f=i(5656),g=i(7593),p=i(6656),v=i(4664),b=Object.getOwnPropertyDescriptor;c.f=u?b:function(T,R){if(T=f(T),R=g(R,!0),v)try{return b(T,R)}catch{}if(p(T,R))return h(!d.f.call(T,R),T[R])}},8006:function(a,c,i){var u=i(6324),d=i(748),h=d.concat("length","prototype");c.f=Object.getOwnPropertyNames||function(g){return u(g,h)}},5181:function(a,c){c.f=Object.getOwnPropertySymbols},9518:function(a,c,i){var u=i(6656),d=i(7908),h=i(6200),f=i(8544),g=h("IE_PROTO"),p=Object.prototype;a.exports=f?Object.getPrototypeOf:function(v){return v=d(v),u(v,g)?v[g]:typeof v.constructor=="function"&&v instanceof v.constructor?v.constructor.prototype:v instanceof Object?p:null}},6324:function(a,c,i){var u=i(6656),d=i(5656),h=i(1318).indexOf,f=i(3501);a.exports=function(g,p){var v=d(g),b=0,S=[],T;for(T in v)!u(f,T)&&u(v,T)&&S.push(T);for(;p.length>b;)u(v,T=p[b++])&&(~h(S,T)||S.push(T));return S}},1956:function(a,c,i){var u=i(6324),d=i(748);a.exports=Object.keys||function(f){return u(f,d)}},5296:function(a,c){var i={}.propertyIsEnumerable,u=Object.getOwnPropertyDescriptor,d=u&&!i.call({1:2},1);c.f=d?function(f){var g=u(this,f);return!!g&&g.enumerable}:i},7674:function(a,c,i){var u=i(9670),d=i(6077);a.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var h=!1,f={},g;try{g=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,g.call(f,[]),h=f instanceof Array}catch{}return function(v,b){return u(v),d(b),h?g.call(v,b):v.__proto__=b,v}}():void 0)},288:function(a,c,i){var u=i(1694),d=i(648);a.exports=u?{}.toString:function(){return"[object "+d(this)+"]"}},3887:function(a,c,i){var u=i(5005),d=i(8006),h=i(5181),f=i(9670);a.exports=u("Reflect","ownKeys")||function(p){var v=d.f(f(p)),b=h.f;return b?v.concat(b(p)):v}},857:function(a,c,i){var u=i(7854);a.exports=u},2248:function(a,c,i){var u=i(1320);a.exports=function(d,h,f){for(var g in h)u(d,g,h[g],f);return d}},1320:function(a,c,i){var u=i(7854),d=i(8880),h=i(6656),f=i(3505),g=i(2788),p=i(9909),v=p.get,b=p.enforce,S=String(String).split("String");(a.exports=function(T,R,F,M){var z=M?!!M.unsafe:!1,X=M?!!M.enumerable:!1,H=M?!!M.noTargetGet:!1,re;if(typeof F=="function"&&(typeof R=="string"&&!h(F,"name")&&d(F,"name",R),re=b(F),re.source||(re.source=S.join(typeof R=="string"?R:""))),T===u){X?T[R]=F:f(R,F);return}else z?!H&&T[R]&&(X=!0):delete T[R];X?T[R]=F:d(T,R,F)})(Function.prototype,"toString",function(){return typeof this=="function"&&v(this).source||g(this)})},7651:function(a,c,i){var u=i(4326),d=i(2261);a.exports=function(h,f){var g=h.exec;if(typeof g=="function"){var p=g.call(h,f);if(typeof p!="object")throw TypeError("RegExp exec method returned something other than an Object or null");return p}if(u(h)!=="RegExp")throw TypeError("RegExp#exec called on incompatible receiver");return d.call(h,f)}},2261:function(a,c,i){var u=i(7066),d=i(2999),h=RegExp.prototype.exec,f=String.prototype.replace,g=h,p=function(){var T=/a/,R=/b*/g;return h.call(T,"a"),h.call(R,"a"),T.lastIndex!==0||R.lastIndex!==0}(),v=d.UNSUPPORTED_Y||d.BROKEN_CARET,b=/()??/.exec("")[1]!==void 0,S=p||b||v;S&&(g=function(R){var F=this,M,z,X,H,re=v&&F.sticky,G=u.call(F),E=F.source,P=0,O=R;return re&&(G=G.replace("y",""),G.indexOf("g")===-1&&(G+="g"),O=String(R).slice(F.lastIndex),F.lastIndex>0&&(!F.multiline||F.multiline&&R[F.lastIndex-1]!==`
7
- `)&&(E="(?: "+E+")",O=" "+O,P++),z=new RegExp("^(?:"+E+")",G)),b&&(z=new RegExp("^"+E+"$(?!\\s)",G)),p&&(M=F.lastIndex),X=h.call(re?z:F,O),re?X?(X.input=X.input.slice(P),X[0]=X[0].slice(P),X.index=F.lastIndex,F.lastIndex+=X[0].length):F.lastIndex=0:p&&X&&(F.lastIndex=F.global?X.index+X[0].length:M),b&&X&&X.length>1&&f.call(X[0],z,function(){for(H=1;H<arguments.length-2;H++)arguments[H]===void 0&&(X[H]=void 0)}),X}),a.exports=g},7066:function(a,c,i){var u=i(9670);a.exports=function(){var d=u(this),h="";return d.global&&(h+="g"),d.ignoreCase&&(h+="i"),d.multiline&&(h+="m"),d.dotAll&&(h+="s"),d.unicode&&(h+="u"),d.sticky&&(h+="y"),h}},2999:function(a,c,i){var u=i(7293);function d(h,f){return RegExp(h,f)}c.UNSUPPORTED_Y=u(function(){var h=d("a","y");return h.lastIndex=2,h.exec("abcd")!=null}),c.BROKEN_CARET=u(function(){var h=d("^r","gy");return h.lastIndex=2,h.exec("str")!=null})},4488:function(a){a.exports=function(c){if(c==null)throw TypeError("Can't call method on "+c);return c}},3505:function(a,c,i){var u=i(7854),d=i(8880);a.exports=function(h,f){try{d(u,h,f)}catch{u[h]=f}return f}},6340:function(a,c,i){var u=i(5005),d=i(3070),h=i(5112),f=i(9781),g=h("species");a.exports=function(p){var v=u(p),b=d.f;f&&v&&!v[g]&&b(v,g,{configurable:!0,get:function(){return this}})}},8003:function(a,c,i){var u=i(3070).f,d=i(6656),h=i(5112),f=h("toStringTag");a.exports=function(g,p,v){g&&!d(g=v?g:g.prototype,f)&&u(g,f,{configurable:!0,value:p})}},6200:function(a,c,i){var u=i(2309),d=i(9711),h=u("keys");a.exports=function(f){return h[f]||(h[f]=d(f))}},5465:function(a,c,i){var u=i(7854),d=i(3505),h="__core-js_shared__",f=u[h]||d(h,{});a.exports=f},2309:function(a,c,i){var u=i(1913),d=i(5465);(a.exports=function(h,f){return d[h]||(d[h]=f!==void 0?f:{})})("versions",[]).push({version:"3.9.0",mode:u?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},6707:function(a,c,i){var u=i(9670),d=i(3099),h=i(5112),f=h("species");a.exports=function(g,p){var v=u(g).constructor,b;return v===void 0||(b=u(v)[f])==null?p:d(b)}},8710:function(a,c,i){var u=i(9958),d=i(4488),h=function(f){return function(g,p){var v=String(d(g)),b=u(p),S=v.length,T,R;return b<0||b>=S?f?"":void 0:(T=v.charCodeAt(b),T<55296||T>56319||b+1===S||(R=v.charCodeAt(b+1))<56320||R>57343?f?v.charAt(b):T:f?v.slice(b,b+2):(T-55296<<10)+(R-56320)+65536)}};a.exports={codeAt:h(!1),charAt:h(!0)}},3197:function(a){var c=2147483647,i=36,u=1,d=26,h=38,f=700,g=72,p=128,v="-",b=/[^\0-\u007E]/,S=/[.\u3002\uFF0E\uFF61]/g,T="Overflow: input needs wider integers to process",R=i-u,F=Math.floor,M=String.fromCharCode,z=function(G){for(var E=[],P=0,O=G.length;P<O;){var _=G.charCodeAt(P++);if(_>=55296&&_<=56319&&P<O){var j=G.charCodeAt(P++);(j&64512)==56320?E.push(((_&1023)<<10)+(j&1023)+65536):(E.push(_),P--)}else E.push(_)}return E},X=function(G){return G+22+75*(G<26)},H=function(G,E,P){var O=0;for(G=P?F(G/f):G>>1,G+=F(G/E);G>R*d>>1;O+=i)G=F(G/R);return F(O+(R+1)*G/(G+h))},re=function(G){var E=[];G=z(G);var P=G.length,O=p,_=0,j=g,V,K;for(V=0;V<G.length;V++)K=G[V],K<128&&E.push(M(K));var q=E.length,J=q;for(q&&E.push(v);J<P;){var te=c;for(V=0;V<G.length;V++)K=G[V],K>=O&&K<te&&(te=K);var me=J+1;if(te-O>F((c-_)/me))throw RangeError(T);for(_+=(te-O)*me,O=te,V=0;V<G.length;V++){if(K=G[V],K<O&&++_>c)throw RangeError(T);if(K==O){for(var ge=_,ve=i;;ve+=i){var xe=ve<=j?u:ve>=j+d?d:ve-j;if(ge<xe)break;var he=ge-xe,Oe=i-xe;E.push(M(X(xe+he%Oe))),ge=F(he/Oe)}E.push(M(X(ge))),j=H(_,me,J==q),_=0,++J}}++_,++O}return E.join("")};a.exports=function(G){var E=[],P=G.toLowerCase().replace(S,".").split("."),O,_;for(O=0;O<P.length;O++)_=P[O],E.push(b.test(_)?"xn--"+re(_):_);return E.join(".")}},6091:function(a,c,i){var u=i(7293),d=i(1361),h="​…᠎";a.exports=function(f){return u(function(){return!!d[f]()||h[f]()!=h||d[f].name!==f})}},3111:function(a,c,i){var u=i(4488),d=i(1361),h="["+d+"]",f=RegExp("^"+h+h+"*"),g=RegExp(h+h+"*$"),p=function(v){return function(b){var S=String(u(b));return v&1&&(S=S.replace(f,"")),v&2&&(S=S.replace(g,"")),S}};a.exports={start:p(1),end:p(2),trim:p(3)}},1400:function(a,c,i){var u=i(9958),d=Math.max,h=Math.min;a.exports=function(f,g){var p=u(f);return p<0?d(p+g,0):h(p,g)}},7067:function(a,c,i){var u=i(9958),d=i(7466);a.exports=function(h){if(h===void 0)return 0;var f=u(h),g=d(f);if(f!==g)throw RangeError("Wrong length or index");return g}},5656:function(a,c,i){var u=i(8361),d=i(4488);a.exports=function(h){return u(d(h))}},9958:function(a){var c=Math.ceil,i=Math.floor;a.exports=function(u){return isNaN(u=+u)?0:(u>0?i:c)(u)}},7466:function(a,c,i){var u=i(9958),d=Math.min;a.exports=function(h){return h>0?d(u(h),9007199254740991):0}},7908:function(a,c,i){var u=i(4488);a.exports=function(d){return Object(u(d))}},4590:function(a,c,i){var u=i(3002);a.exports=function(d,h){var f=u(d);if(f%h)throw RangeError("Wrong offset");return f}},3002:function(a,c,i){var u=i(9958);a.exports=function(d){var h=u(d);if(h<0)throw RangeError("The argument can't be less than 0");return h}},7593:function(a,c,i){var u=i(111);a.exports=function(d,h){if(!u(d))return d;var f,g;if(h&&typeof(f=d.toString)=="function"&&!u(g=f.call(d))||typeof(f=d.valueOf)=="function"&&!u(g=f.call(d))||!h&&typeof(f=d.toString)=="function"&&!u(g=f.call(d)))return g;throw TypeError("Can't convert object to primitive value")}},1694:function(a,c,i){var u=i(5112),d=u("toStringTag"),h={};h[d]="z",a.exports=String(h)==="[object z]"},9843:function(a,c,i){var u=i(2109),d=i(7854),h=i(9781),f=i(3832),g=i(260),p=i(3331),v=i(5787),b=i(9114),S=i(8880),T=i(7466),R=i(7067),F=i(4590),M=i(7593),z=i(6656),X=i(648),H=i(111),re=i(30),G=i(7674),E=i(8006).f,P=i(7321),O=i(2092).forEach,_=i(6340),j=i(3070),V=i(1236),K=i(9909),q=i(9587),J=K.get,te=K.set,me=j.f,ge=V.f,ve=Math.round,xe=d.RangeError,he=p.ArrayBuffer,Oe=p.DataView,ye=g.NATIVE_ARRAY_BUFFER_VIEWS,N=g.TYPED_ARRAY_TAG,I=g.TypedArray,A=g.TypedArrayPrototype,C=g.aTypedArrayConstructor,y=g.isTypedArray,x="BYTES_PER_ELEMENT",k="Wrong length",B=function(Q,ne){for(var ae=0,fe=ne.length,Ae=new(C(Q))(fe);fe>ae;)Ae[ae]=ne[ae++];return Ae},U=function(Q,ne){me(Q,ne,{get:function(){return J(this)[ne]}})},$=function(Q){var ne;return Q instanceof he||(ne=X(Q))=="ArrayBuffer"||ne=="SharedArrayBuffer"},W=function(Q,ne){return y(Q)&&typeof ne!="symbol"&&ne in Q&&String(+ne)==String(ne)},Z=function(ne,ae){return W(ne,ae=M(ae,!0))?b(2,ne[ae]):ge(ne,ae)},Y=function(ne,ae,fe){return W(ne,ae=M(ae,!0))&&H(fe)&&z(fe,"value")&&!z(fe,"get")&&!z(fe,"set")&&!fe.configurable&&(!z(fe,"writable")||fe.writable)&&(!z(fe,"enumerable")||fe.enumerable)?(ne[ae]=fe.value,ne):me(ne,ae,fe)};h?(ye||(V.f=Z,j.f=Y,U(A,"buffer"),U(A,"byteOffset"),U(A,"byteLength"),U(A,"length")),u({target:"Object",stat:!0,forced:!ye},{getOwnPropertyDescriptor:Z,defineProperty:Y}),a.exports=function(Q,ne,ae){var fe=Q.match(/\d+$/)[0]/8,Ae=Q+(ae?"Clamped":"")+"Array",De="get"+Q,Ge="set"+Q,je=d[Ae],Be=je,Ve=Be&&Be.prototype,rt={},it=function(_e,Pe){var We=J(_e);return We.view[De](Pe*fe+We.byteOffset,!0)},Dt=function(_e,Pe,We){var pe=J(_e);ae&&(We=(We=ve(We))<0?0:We>255?255:We&255),pe.view[Ge](Pe*fe+pe.byteOffset,We,!0)},bt=function(_e,Pe){me(_e,Pe,{get:function(){return it(this,Pe)},set:function(We){return Dt(this,Pe,We)},enumerable:!0})};ye?f&&(Be=ne(function(_e,Pe,We,pe){return v(_e,Be,Ae),q(function(){return H(Pe)?$(Pe)?pe!==void 0?new je(Pe,F(We,fe),pe):We!==void 0?new je(Pe,F(We,fe)):new je(Pe):y(Pe)?B(Be,Pe):P.call(Be,Pe):new je(R(Pe))}(),_e,Be)}),G&&G(Be,I),O(E(je),function(_e){_e in Be||S(Be,_e,je[_e])}),Be.prototype=Ve):(Be=ne(function(_e,Pe,We,pe){v(_e,Be,Ae);var be=0,Ce=0,ke,Ie,$e;if(!H(Pe))$e=R(Pe),Ie=$e*fe,ke=new he(Ie);else if($(Pe)){ke=Pe,Ce=F(We,fe);var Ke=Pe.byteLength;if(pe===void 0){if(Ke%fe||(Ie=Ke-Ce,Ie<0))throw xe(k)}else if(Ie=T(pe)*fe,Ie+Ce>Ke)throw xe(k);$e=Ie/fe}else return y(Pe)?B(Be,Pe):P.call(Be,Pe);for(te(_e,{buffer:ke,byteOffset:Ce,byteLength:Ie,length:$e,view:new Oe(ke)});be<$e;)bt(_e,be++)}),G&&G(Be,I),Ve=Be.prototype=re(A)),Ve.constructor!==Be&&S(Ve,"constructor",Be),N&&S(Ve,N,Ae),rt[Ae]=Be,u({global:!0,forced:Be!=je,sham:!ye},rt),x in Be||S(Be,x,fe),x in Ve||S(Ve,x,fe),_(Ae)}):a.exports=function(){}},3832:function(a,c,i){var u=i(7854),d=i(7293),h=i(7072),f=i(260).NATIVE_ARRAY_BUFFER_VIEWS,g=u.ArrayBuffer,p=u.Int8Array;a.exports=!f||!d(function(){p(1)})||!d(function(){new p(-1)})||!h(function(v){new p,new p(null),new p(1.5),new p(v)},!0)||d(function(){return new p(new g(2),1,void 0).length!==1})},3074:function(a,c,i){var u=i(260).aTypedArrayConstructor,d=i(6707);a.exports=function(h,f){for(var g=d(h,h.constructor),p=0,v=f.length,b=new(u(g))(v);v>p;)b[p]=f[p++];return b}},7321:function(a,c,i){var u=i(7908),d=i(7466),h=i(1246),f=i(7659),g=i(9974),p=i(260).aTypedArrayConstructor;a.exports=function(b){var S=u(b),T=arguments.length,R=T>1?arguments[1]:void 0,F=R!==void 0,M=h(S),z,X,H,re,G,E;if(M!=null&&!f(M))for(G=M.call(S),E=G.next,S=[];!(re=E.call(G)).done;)S.push(re.value);for(F&&T>2&&(R=g(R,arguments[2],2)),X=d(S.length),H=new(p(this))(X),z=0;X>z;z++)H[z]=F?R(S[z],z):S[z];return H}},9711:function(a){var c=0,i=Math.random();a.exports=function(u){return"Symbol("+String(u===void 0?"":u)+")_"+(++c+i).toString(36)}},3307:function(a,c,i){var u=i(133);a.exports=u&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},5112:function(a,c,i){var u=i(7854),d=i(2309),h=i(6656),f=i(9711),g=i(133),p=i(3307),v=d("wks"),b=u.Symbol,S=p?b:b&&b.withoutSetter||f;a.exports=function(T){return h(v,T)||(g&&h(b,T)?v[T]=b[T]:v[T]=S("Symbol."+T)),v[T]}},1361:function(a){a.exports=`
8
- \v\f\r                 \u2028\u2029\uFEFF`},8264:function(a,c,i){var u=i(2109),d=i(7854),h=i(3331),f=i(6340),g="ArrayBuffer",p=h[g],v=d[g];u({global:!0,forced:v!==p},{ArrayBuffer:p}),f(g)},2222:function(a,c,i){var u=i(2109),d=i(7293),h=i(3157),f=i(111),g=i(7908),p=i(7466),v=i(6135),b=i(5417),S=i(1194),T=i(5112),R=i(7392),F=T("isConcatSpreadable"),M=9007199254740991,z="Maximum allowed index exceeded",X=R>=51||!d(function(){var E=[];return E[F]=!1,E.concat()[0]!==E}),H=S("concat"),re=function(E){if(!f(E))return!1;var P=E[F];return P!==void 0?!!P:h(E)},G=!X||!H;u({target:"Array",proto:!0,forced:G},{concat:function(P){var O=g(this),_=b(O,0),j=0,V,K,q,J,te;for(V=-1,q=arguments.length;V<q;V++)if(te=V===-1?O:arguments[V],re(te)){if(J=p(te.length),j+J>M)throw TypeError(z);for(K=0;K<J;K++,j++)K in te&&v(_,j,te[K])}else{if(j>=M)throw TypeError(z);v(_,j++,te)}return _.length=j,_}})},7327:function(a,c,i){var u=i(2109),d=i(2092).filter,h=i(1194),f=h("filter");u({target:"Array",proto:!0,forced:!f},{filter:function(p){return d(this,p,arguments.length>1?arguments[1]:void 0)}})},2772:function(a,c,i){var u=i(2109),d=i(1318).indexOf,h=i(9341),f=[].indexOf,g=!!f&&1/[1].indexOf(1,-0)<0,p=h("indexOf");u({target:"Array",proto:!0,forced:g||!p},{indexOf:function(b){return g?f.apply(this,arguments)||0:d(this,b,arguments.length>1?arguments[1]:void 0)}})},6992:function(a,c,i){var u=i(5656),d=i(1223),h=i(7497),f=i(9909),g=i(654),p="Array Iterator",v=f.set,b=f.getterFor(p);a.exports=g(Array,"Array",function(S,T){v(this,{type:p,target:u(S),index:0,kind:T})},function(){var S=b(this),T=S.target,R=S.kind,F=S.index++;return!T||F>=T.length?(S.target=void 0,{value:void 0,done:!0}):R=="keys"?{value:F,done:!1}:R=="values"?{value:T[F],done:!1}:{value:[F,T[F]],done:!1}},"values"),h.Arguments=h.Array,d("keys"),d("values"),d("entries")},1249:function(a,c,i){var u=i(2109),d=i(2092).map,h=i(1194),f=h("map");u({target:"Array",proto:!0,forced:!f},{map:function(p){return d(this,p,arguments.length>1?arguments[1]:void 0)}})},7042:function(a,c,i){var u=i(2109),d=i(111),h=i(3157),f=i(1400),g=i(7466),p=i(5656),v=i(6135),b=i(5112),S=i(1194),T=S("slice"),R=b("species"),F=[].slice,M=Math.max;u({target:"Array",proto:!0,forced:!T},{slice:function(X,H){var re=p(this),G=g(re.length),E=f(X,G),P=f(H===void 0?G:H,G),O,_,j;if(h(re)&&(O=re.constructor,typeof O=="function"&&(O===Array||h(O.prototype))?O=void 0:d(O)&&(O=O[R],O===null&&(O=void 0)),O===Array||O===void 0))return F.call(re,E,P);for(_=new(O===void 0?Array:O)(M(P-E,0)),j=0;E<P;E++,j++)E in re&&v(_,j,re[E]);return _.length=j,_}})},561:function(a,c,i){var u=i(2109),d=i(1400),h=i(9958),f=i(7466),g=i(7908),p=i(5417),v=i(6135),b=i(1194),S=b("splice"),T=Math.max,R=Math.min,F=9007199254740991,M="Maximum allowed length exceeded";u({target:"Array",proto:!0,forced:!S},{splice:function(X,H){var re=g(this),G=f(re.length),E=d(X,G),P=arguments.length,O,_,j,V,K,q;if(P===0?O=_=0:P===1?(O=0,_=G-E):(O=P-2,_=R(T(h(H),0),G-E)),G+O-_>F)throw TypeError(M);for(j=p(re,_),V=0;V<_;V++)K=E+V,K in re&&v(j,V,re[K]);if(j.length=_,O<_){for(V=E;V<G-_;V++)K=V+_,q=V+O,K in re?re[q]=re[K]:delete re[q];for(V=G;V>G-_+O;V--)delete re[V-1]}else if(O>_)for(V=G-_;V>E;V--)K=V+_-1,q=V+O-1,K in re?re[q]=re[K]:delete re[q];for(V=0;V<O;V++)re[V+E]=arguments[V+2];return re.length=G-_+O,j}})},8309:function(a,c,i){var u=i(9781),d=i(3070).f,h=Function.prototype,f=h.toString,g=/^\s*function ([^ (]*)/,p="name";u&&!(p in h)&&d(h,p,{configurable:!0,get:function(){try{return f.call(this).match(g)[1]}catch{return""}}})},489:function(a,c,i){var u=i(2109),d=i(7293),h=i(7908),f=i(9518),g=i(8544),p=d(function(){f(1)});u({target:"Object",stat:!0,forced:p,sham:!g},{getPrototypeOf:function(b){return f(h(b))}})},1539:function(a,c,i){var u=i(1694),d=i(1320),h=i(288);u||d(Object.prototype,"toString",h,{unsafe:!0})},4916:function(a,c,i){var u=i(2109),d=i(2261);u({target:"RegExp",proto:!0,forced:/./.exec!==d},{exec:d})},9714:function(a,c,i){var u=i(1320),d=i(9670),h=i(7293),f=i(7066),g="toString",p=RegExp.prototype,v=p[g],b=h(function(){return v.call({source:"a",flags:"b"})!="/a/b"}),S=v.name!=g;(b||S)&&u(RegExp.prototype,g,function(){var R=d(this),F=String(R.source),M=R.flags,z=String(M===void 0&&R instanceof RegExp&&!("flags"in p)?f.call(R):M);return"/"+F+"/"+z},{unsafe:!0})},8783:function(a,c,i){var u=i(8710).charAt,d=i(9909),h=i(654),f="String Iterator",g=d.set,p=d.getterFor(f);h(String,"String",function(v){g(this,{type:f,string:String(v),index:0})},function(){var b=p(this),S=b.string,T=b.index,R;return T>=S.length?{value:void 0,done:!0}:(R=u(S,T),b.index+=R.length,{value:R,done:!1})})},4723:function(a,c,i){var u=i(7007),d=i(9670),h=i(7466),f=i(4488),g=i(1530),p=i(7651);u("match",1,function(v,b,S){return[function(R){var F=f(this),M=R==null?void 0:R[v];return M!==void 0?M.call(R,F):new RegExp(R)[v](String(F))},function(T){var R=S(b,T,this);if(R.done)return R.value;var F=d(T),M=String(this);if(!F.global)return p(F,M);var z=F.unicode;F.lastIndex=0;for(var X=[],H=0,re;(re=p(F,M))!==null;){var G=String(re[0]);X[H]=G,G===""&&(F.lastIndex=g(M,h(F.lastIndex),z)),H++}return H===0?null:X}]})},5306:function(a,c,i){var u=i(7007),d=i(9670),h=i(7466),f=i(9958),g=i(4488),p=i(1530),v=i(647),b=i(7651),S=Math.max,T=Math.min,R=function(F){return F===void 0?F:String(F)};u("replace",2,function(F,M,z,X){var H=X.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,re=X.REPLACE_KEEPS_$0,G=H?"$":"$0";return[function(P,O){var _=g(this),j=P==null?void 0:P[F];return j!==void 0?j.call(P,_,O):M.call(String(_),P,O)},function(E,P){if(!H&&re||typeof P=="string"&&P.indexOf(G)===-1){var O=z(M,E,this,P);if(O.done)return O.value}var _=d(E),j=String(this),V=typeof P=="function";V||(P=String(P));var K=_.global;if(K){var q=_.unicode;_.lastIndex=0}for(var J=[];;){var te=b(_,j);if(te===null||(J.push(te),!K))break;var me=String(te[0]);me===""&&(_.lastIndex=p(j,h(_.lastIndex),q))}for(var ge="",ve=0,xe=0;xe<J.length;xe++){te=J[xe];for(var he=String(te[0]),Oe=S(T(f(te.index),j.length),0),ye=[],N=1;N<te.length;N++)ye.push(R(te[N]));var I=te.groups;if(V){var A=[he].concat(ye,Oe,j);I!==void 0&&A.push(I);var C=String(P.apply(void 0,A))}else C=v(he,j,Oe,ye,I,P);Oe>=ve&&(ge+=j.slice(ve,Oe)+C,ve=Oe+he.length)}return ge+j.slice(ve)}]})},3123:function(a,c,i){var u=i(7007),d=i(7850),h=i(9670),f=i(4488),g=i(6707),p=i(1530),v=i(7466),b=i(7651),S=i(2261),T=i(7293),R=[].push,F=Math.min,M=4294967295,z=!T(function(){return!RegExp(M,"y")});u("split",2,function(X,H,re){var G;return"abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?G=function(E,P){var O=String(f(this)),_=P===void 0?M:P>>>0;if(_===0)return[];if(E===void 0)return[O];if(!d(E))return H.call(O,E,_);for(var j=[],V=(E.ignoreCase?"i":"")+(E.multiline?"m":"")+(E.unicode?"u":"")+(E.sticky?"y":""),K=0,q=new RegExp(E.source,V+"g"),J,te,me;(J=S.call(q,O))&&(te=q.lastIndex,!(te>K&&(j.push(O.slice(K,J.index)),J.length>1&&J.index<O.length&&R.apply(j,J.slice(1)),me=J[0].length,K=te,j.length>=_)));)q.lastIndex===J.index&&q.lastIndex++;return K===O.length?(me||!q.test(""))&&j.push(""):j.push(O.slice(K)),j.length>_?j.slice(0,_):j}:"0".split(void 0,0).length?G=function(E,P){return E===void 0&&P===0?[]:H.call(this,E,P)}:G=H,[function(P,O){var _=f(this),j=P==null?void 0:P[X];return j!==void 0?j.call(P,_,O):G.call(String(_),P,O)},function(E,P){var O=re(G,E,this,P,G!==H);if(O.done)return O.value;var _=h(E),j=String(this),V=g(_,RegExp),K=_.unicode,q=(_.ignoreCase?"i":"")+(_.multiline?"m":"")+(_.unicode?"u":"")+(z?"y":"g"),J=new V(z?_:"^(?:"+_.source+")",q),te=P===void 0?M:P>>>0;if(te===0)return[];if(j.length===0)return b(J,j)===null?[j]:[];for(var me=0,ge=0,ve=[];ge<j.length;){J.lastIndex=z?ge:0;var xe=b(J,z?j:j.slice(ge)),he;if(xe===null||(he=F(v(J.lastIndex+(z?0:ge)),j.length))===me)ge=p(j,ge,K);else{if(ve.push(j.slice(me,ge)),ve.length===te)return ve;for(var Oe=1;Oe<=xe.length-1;Oe++)if(ve.push(xe[Oe]),ve.length===te)return ve;ge=me=he}}return ve.push(j.slice(me)),ve}]},!z)},3210:function(a,c,i){var u=i(2109),d=i(3111).trim,h=i(6091);u({target:"String",proto:!0,forced:h("trim")},{trim:function(){return d(this)}})},2990:function(a,c,i){var u=i(260),d=i(1048),h=u.aTypedArray,f=u.exportTypedArrayMethod;f("copyWithin",function(p,v){return d.call(h(this),p,v,arguments.length>2?arguments[2]:void 0)})},8927:function(a,c,i){var u=i(260),d=i(2092).every,h=u.aTypedArray,f=u.exportTypedArrayMethod;f("every",function(p){return d(h(this),p,arguments.length>1?arguments[1]:void 0)})},3105:function(a,c,i){var u=i(260),d=i(1285),h=u.aTypedArray,f=u.exportTypedArrayMethod;f("fill",function(p){return d.apply(h(this),arguments)})},5035:function(a,c,i){var u=i(260),d=i(2092).filter,h=i(3074),f=u.aTypedArray,g=u.exportTypedArrayMethod;g("filter",function(v){var b=d(f(this),v,arguments.length>1?arguments[1]:void 0);return h(this,b)})},7174:function(a,c,i){var u=i(260),d=i(2092).findIndex,h=u.aTypedArray,f=u.exportTypedArrayMethod;f("findIndex",function(p){return d(h(this),p,arguments.length>1?arguments[1]:void 0)})},4345:function(a,c,i){var u=i(260),d=i(2092).find,h=u.aTypedArray,f=u.exportTypedArrayMethod;f("find",function(p){return d(h(this),p,arguments.length>1?arguments[1]:void 0)})},2846:function(a,c,i){var u=i(260),d=i(2092).forEach,h=u.aTypedArray,f=u.exportTypedArrayMethod;f("forEach",function(p){d(h(this),p,arguments.length>1?arguments[1]:void 0)})},4731:function(a,c,i){var u=i(260),d=i(1318).includes,h=u.aTypedArray,f=u.exportTypedArrayMethod;f("includes",function(p){return d(h(this),p,arguments.length>1?arguments[1]:void 0)})},7209:function(a,c,i){var u=i(260),d=i(1318).indexOf,h=u.aTypedArray,f=u.exportTypedArrayMethod;f("indexOf",function(p){return d(h(this),p,arguments.length>1?arguments[1]:void 0)})},6319:function(a,c,i){var u=i(7854),d=i(260),h=i(6992),f=i(5112),g=f("iterator"),p=u.Uint8Array,v=h.values,b=h.keys,S=h.entries,T=d.aTypedArray,R=d.exportTypedArrayMethod,F=p&&p.prototype[g],M=!!F&&(F.name=="values"||F.name==null),z=function(){return v.call(T(this))};R("entries",function(){return S.call(T(this))}),R("keys",function(){return b.call(T(this))}),R("values",z,!M),R(g,z,!M)},8867:function(a,c,i){var u=i(260),d=u.aTypedArray,h=u.exportTypedArrayMethod,f=[].join;h("join",function(p){return f.apply(d(this),arguments)})},7789:function(a,c,i){var u=i(260),d=i(6583),h=u.aTypedArray,f=u.exportTypedArrayMethod;f("lastIndexOf",function(p){return d.apply(h(this),arguments)})},3739:function(a,c,i){var u=i(260),d=i(2092).map,h=i(6707),f=u.aTypedArray,g=u.aTypedArrayConstructor,p=u.exportTypedArrayMethod;p("map",function(b){return d(f(this),b,arguments.length>1?arguments[1]:void 0,function(S,T){return new(g(h(S,S.constructor)))(T)})})},4483:function(a,c,i){var u=i(260),d=i(3671).right,h=u.aTypedArray,f=u.exportTypedArrayMethod;f("reduceRight",function(p){return d(h(this),p,arguments.length,arguments.length>1?arguments[1]:void 0)})},9368:function(a,c,i){var u=i(260),d=i(3671).left,h=u.aTypedArray,f=u.exportTypedArrayMethod;f("reduce",function(p){return d(h(this),p,arguments.length,arguments.length>1?arguments[1]:void 0)})},2056:function(a,c,i){var u=i(260),d=u.aTypedArray,h=u.exportTypedArrayMethod,f=Math.floor;h("reverse",function(){for(var p=this,v=d(p).length,b=f(v/2),S=0,T;S<b;)T=p[S],p[S++]=p[--v],p[v]=T;return p})},3462:function(a,c,i){var u=i(260),d=i(7466),h=i(4590),f=i(7908),g=i(7293),p=u.aTypedArray,v=u.exportTypedArrayMethod,b=g(function(){new Int8Array(1).set({})});v("set",function(T){p(this);var R=h(arguments.length>1?arguments[1]:void 0,1),F=this.length,M=f(T),z=d(M.length),X=0;if(z+R>F)throw RangeError("Wrong length");for(;X<z;)this[R+X]=M[X++]},b)},678:function(a,c,i){var u=i(260),d=i(6707),h=i(7293),f=u.aTypedArray,g=u.aTypedArrayConstructor,p=u.exportTypedArrayMethod,v=[].slice,b=h(function(){new Int8Array(1).slice()});p("slice",function(T,R){for(var F=v.call(f(this),T,R),M=d(this,this.constructor),z=0,X=F.length,H=new(g(M))(X);X>z;)H[z]=F[z++];return H},b)},7462:function(a,c,i){var u=i(260),d=i(2092).some,h=u.aTypedArray,f=u.exportTypedArrayMethod;f("some",function(p){return d(h(this),p,arguments.length>1?arguments[1]:void 0)})},3824:function(a,c,i){var u=i(260),d=u.aTypedArray,h=u.exportTypedArrayMethod,f=[].sort;h("sort",function(p){return f.call(d(this),p)})},5021:function(a,c,i){var u=i(260),d=i(7466),h=i(1400),f=i(6707),g=u.aTypedArray,p=u.exportTypedArrayMethod;p("subarray",function(b,S){var T=g(this),R=T.length,F=h(b,R);return new(f(T,T.constructor))(T.buffer,T.byteOffset+F*T.BYTES_PER_ELEMENT,d((S===void 0?R:h(S,R))-F))})},2974:function(a,c,i){var u=i(7854),d=i(260),h=i(7293),f=u.Int8Array,g=d.aTypedArray,p=d.exportTypedArrayMethod,v=[].toLocaleString,b=[].slice,S=!!f&&h(function(){v.call(new f(1))}),T=h(function(){return[1,2].toLocaleString()!=new f([1,2]).toLocaleString()})||!h(function(){f.prototype.toLocaleString.call([1,2])});p("toLocaleString",function(){return v.apply(S?b.call(g(this)):g(this),arguments)},T)},5016:function(a,c,i){var u=i(260).exportTypedArrayMethod,d=i(7293),h=i(7854),f=h.Uint8Array,g=f&&f.prototype||{},p=[].toString,v=[].join;d(function(){p.call({})})&&(p=function(){return v.call(this)});var b=g.toString!=p;u("toString",p,b)},2472:function(a,c,i){var u=i(9843);u("Uint8",function(d){return function(f,g,p){return d(this,f,g,p)}})},4747:function(a,c,i){var u=i(7854),d=i(8324),h=i(8533),f=i(8880);for(var g in d){var p=u[g],v=p&&p.prototype;if(v&&v.forEach!==h)try{f(v,"forEach",h)}catch{v.forEach=h}}},3948:function(a,c,i){var u=i(7854),d=i(8324),h=i(6992),f=i(8880),g=i(5112),p=g("iterator"),v=g("toStringTag"),b=h.values;for(var S in d){var T=u[S],R=T&&T.prototype;if(R){if(R[p]!==b)try{f(R,p,b)}catch{R[p]=b}if(R[v]||f(R,v,S),d[S]){for(var F in h)if(R[F]!==h[F])try{f(R,F,h[F])}catch{R[F]=h[F]}}}}},1637:function(a,c,i){i(6992);var u=i(2109),d=i(5005),h=i(590),f=i(1320),g=i(2248),p=i(8003),v=i(4994),b=i(9909),S=i(5787),T=i(6656),R=i(9974),F=i(648),M=i(9670),z=i(111),X=i(30),H=i(9114),re=i(8554),G=i(1246),E=i(5112),P=d("fetch"),O=d("Headers"),_=E("iterator"),j="URLSearchParams",V=j+"Iterator",K=b.set,q=b.getterFor(j),J=b.getterFor(V),te=/\+/g,me=Array(4),ge=function(B){return me[B-1]||(me[B-1]=RegExp("((?:%[\\da-f]{2}){"+B+"})","gi"))},ve=function(B){try{return decodeURIComponent(B)}catch{return B}},xe=function(B){var U=B.replace(te," "),$=4;try{return decodeURIComponent(U)}catch{for(;$;)U=U.replace(ge($--),ve);return U}},he=/[!'()~]|%20/g,Oe={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},ye=function(B){return Oe[B]},N=function(B){return encodeURIComponent(B).replace(he,ye)},I=function(B,U){if(U)for(var $=U.split("&"),W=0,Z,Y;W<$.length;)Z=$[W++],Z.length&&(Y=Z.split("="),B.push({key:xe(Y.shift()),value:xe(Y.join("="))}))},A=function(B){this.entries.length=0,I(this.entries,B)},C=function(B,U){if(B<U)throw TypeError("Not enough arguments")},y=v(function(U,$){K(this,{type:V,iterator:re(q(U).entries),kind:$})},"Iterator",function(){var U=J(this),$=U.kind,W=U.iterator.next(),Z=W.value;return W.done||(W.value=$==="keys"?Z.key:$==="values"?Z.value:[Z.key,Z.value]),W}),x=function(){S(this,x,j);var U=arguments.length>0?arguments[0]:void 0,$=this,W=[],Z,Y,Q,ne,ae,fe,Ae,De,Ge;if(K($,{type:j,entries:W,updateURL:function(){},updateSearchParams:A}),U!==void 0)if(z(U))if(Z=G(U),typeof Z=="function")for(Y=Z.call(U),Q=Y.next;!(ne=Q.call(Y)).done;){if(ae=re(M(ne.value)),fe=ae.next,(Ae=fe.call(ae)).done||(De=fe.call(ae)).done||!fe.call(ae).done)throw TypeError("Expected sequence with length 2");W.push({key:Ae.value+"",value:De.value+""})}else for(Ge in U)T(U,Ge)&&W.push({key:Ge,value:U[Ge]+""});else I(W,typeof U=="string"?U.charAt(0)==="?"?U.slice(1):U:U+"")},k=x.prototype;g(k,{append:function(U,$){C(arguments.length,2);var W=q(this);W.entries.push({key:U+"",value:$+""}),W.updateURL()},delete:function(B){C(arguments.length,1);for(var U=q(this),$=U.entries,W=B+"",Z=0;Z<$.length;)$[Z].key===W?$.splice(Z,1):Z++;U.updateURL()},get:function(U){C(arguments.length,1);for(var $=q(this).entries,W=U+"",Z=0;Z<$.length;Z++)if($[Z].key===W)return $[Z].value;return null},getAll:function(U){C(arguments.length,1);for(var $=q(this).entries,W=U+"",Z=[],Y=0;Y<$.length;Y++)$[Y].key===W&&Z.push($[Y].value);return Z},has:function(U){C(arguments.length,1);for(var $=q(this).entries,W=U+"",Z=0;Z<$.length;)if($[Z++].key===W)return!0;return!1},set:function(U,$){C(arguments.length,1);for(var W=q(this),Z=W.entries,Y=!1,Q=U+"",ne=$+"",ae=0,fe;ae<Z.length;ae++)fe=Z[ae],fe.key===Q&&(Y?Z.splice(ae--,1):(Y=!0,fe.value=ne));Y||Z.push({key:Q,value:ne}),W.updateURL()},sort:function(){var U=q(this),$=U.entries,W=$.slice(),Z,Y,Q;for($.length=0,Q=0;Q<W.length;Q++){for(Z=W[Q],Y=0;Y<Q;Y++)if($[Y].key>Z.key){$.splice(Y,0,Z);break}Y===Q&&$.push(Z)}U.updateURL()},forEach:function(U){for(var $=q(this).entries,W=R(U,arguments.length>1?arguments[1]:void 0,3),Z=0,Y;Z<$.length;)Y=$[Z++],W(Y.value,Y.key,this)},keys:function(){return new y(this,"keys")},values:function(){return new y(this,"values")},entries:function(){return new y(this,"entries")}},{enumerable:!0}),f(k,_,k.entries),f(k,"toString",function(){for(var U=q(this).entries,$=[],W=0,Z;W<U.length;)Z=U[W++],$.push(N(Z.key)+"="+N(Z.value));return $.join("&")},{enumerable:!0}),p(x,j),u({global:!0,forced:!h},{URLSearchParams:x}),!h&&typeof P=="function"&&typeof O=="function"&&u({global:!0,enumerable:!0,forced:!0},{fetch:function(U){var $=[U],W,Z,Y;return arguments.length>1&&(W=arguments[1],z(W)&&(Z=W.body,F(Z)===j&&(Y=W.headers?new O(W.headers):new O,Y.has("content-type")||Y.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"),W=X(W,{body:H(0,String(Z)),headers:H(0,Y)}))),$.push(W)),P.apply(this,$)}}),a.exports={URLSearchParams:x,getState:q}},285:function(a,c,i){i(8783);var u=i(2109),d=i(9781),h=i(590),f=i(7854),g=i(6048),p=i(1320),v=i(5787),b=i(6656),S=i(1574),T=i(8457),R=i(8710).codeAt,F=i(3197),M=i(8003),z=i(1637),X=i(9909),H=f.URL,re=z.URLSearchParams,G=z.getState,E=X.set,P=X.getterFor("URL"),O=Math.floor,_=Math.pow,j="Invalid authority",V="Invalid scheme",K="Invalid host",q="Invalid port",J=/[A-Za-z]/,te=/[\d+-.A-Za-z]/,me=/\d/,ge=/^(0x|0X)/,ve=/^[0-7]+$/,xe=/^\d+$/,he=/^[\dA-Fa-f]+$/,Oe=/[\u0000\t\u000A\u000D #%/:?@[\\]]/,ye=/[\u0000\t\u000A\u000D #/:?@[\\]]/,N=/^[\u0000-\u001F ]+|[\u0000-\u001F ]+$/g,I=/[\t\u000A\u000D]/g,A,C=function(L,oe){var se,ce,de;if(oe.charAt(0)=="["){if(oe.charAt(oe.length-1)!="]"||(se=x(oe.slice(1,-1)),!se))return K;L.host=se}else if(ne(L)){if(oe=F(oe),Oe.test(oe)||(se=y(oe),se===null))return K;L.host=se}else{if(ye.test(oe))return K;for(se="",ce=T(oe),de=0;de<ce.length;de++)se+=Y(ce[de],U);L.host=se}},y=function(L){var oe=L.split("."),se,ce,de,Le,we,Ue,qe;if(oe.length&&oe[oe.length-1]==""&&oe.pop(),se=oe.length,se>4)return L;for(ce=[],de=0;de<se;de++){if(Le=oe[de],Le=="")return L;if(we=10,Le.length>1&&Le.charAt(0)=="0"&&(we=ge.test(Le)?16:8,Le=Le.slice(we==8?1:2)),Le==="")Ue=0;else{if(!(we==10?xe:we==8?ve:he).test(Le))return L;Ue=parseInt(Le,we)}ce.push(Ue)}for(de=0;de<se;de++)if(Ue=ce[de],de==se-1){if(Ue>=_(256,5-se))return null}else if(Ue>255)return null;for(qe=ce.pop(),de=0;de<ce.length;de++)qe+=ce[de]*_(256,3-de);return qe},x=function(L){var oe=[0,0,0,0,0,0,0,0],se=0,ce=null,de=0,Le,we,Ue,qe,Qe,Et,ue,st=function(){return L.charAt(de)};if(st()==":"){if(L.charAt(1)!=":")return;de+=2,se++,ce=se}for(;st();){if(se==8)return;if(st()==":"){if(ce!==null)return;de++,se++,ce=se;continue}for(Le=we=0;we<4&&he.test(st());)Le=Le*16+parseInt(st(),16),de++,we++;if(st()=="."){if(we==0||(de-=we,se>6))return;for(Ue=0;st();){if(qe=null,Ue>0)if(st()=="."&&Ue<4)de++;else return;if(!me.test(st()))return;for(;me.test(st());){if(Qe=parseInt(st(),10),qe===null)qe=Qe;else{if(qe==0)return;qe=qe*10+Qe}if(qe>255)return;de++}oe[se]=oe[se]*256+qe,Ue++,(Ue==2||Ue==4)&&se++}if(Ue!=4)return;break}else if(st()==":"){if(de++,!st())return}else if(st())return;oe[se++]=Le}if(ce!==null)for(Et=se-ce,se=7;se!=0&&Et>0;)ue=oe[se],oe[se--]=oe[ce+Et-1],oe[ce+--Et]=ue;else if(se!=8)return;return oe},k=function(L){for(var oe=null,se=1,ce=null,de=0,Le=0;Le<8;Le++)L[Le]!==0?(de>se&&(oe=ce,se=de),ce=null,de=0):(ce===null&&(ce=Le),++de);return de>se&&(oe=ce,se=de),oe},B=function(L){var oe,se,ce,de;if(typeof L=="number"){for(oe=[],se=0;se<4;se++)oe.unshift(L%256),L=O(L/256);return oe.join(".")}else if(typeof L=="object"){for(oe="",ce=k(L),se=0;se<8;se++)de&&L[se]===0||(de&&(de=!1),ce===se?(oe+=se?":":"::",de=!0):(oe+=L[se].toString(16),se<7&&(oe+=":")));return"["+oe+"]"}return L},U={},$=S({},U,{" ":1,'"':1,"<":1,">":1,"`":1}),W=S({},$,{"#":1,"?":1,"{":1,"}":1}),Z=S({},W,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),Y=function(L,oe){var se=R(L,0);return se>32&&se<127&&!b(oe,L)?L:encodeURIComponent(L)},Q={ftp:21,file:null,http:80,https:443,ws:80,wss:443},ne=function(L){return b(Q,L.scheme)},ae=function(L){return L.username!=""||L.password!=""},fe=function(L){return!L.host||L.cannotBeABaseURL||L.scheme=="file"},Ae=function(L,oe){var se;return L.length==2&&J.test(L.charAt(0))&&((se=L.charAt(1))==":"||!oe&&se=="|")},De=function(L){var oe;return L.length>1&&Ae(L.slice(0,2))&&(L.length==2||(oe=L.charAt(2))==="/"||oe==="\\"||oe==="?"||oe==="#")},Ge=function(L){var oe=L.path,se=oe.length;se&&(L.scheme!="file"||se!=1||!Ae(oe[0],!0))&&oe.pop()},je=function(L){return L==="."||L.toLowerCase()==="%2e"},Be=function(L){return L=L.toLowerCase(),L===".."||L==="%2e."||L===".%2e"||L==="%2e%2e"},Ve={},rt={},it={},Dt={},bt={},_e={},Pe={},We={},pe={},be={},Ce={},ke={},Ie={},$e={},Ke={},et={},dt={},ft={},It={},Ut={},lt={},Ot=function(L,oe,se,ce){var de=se||Ve,Le=0,we="",Ue=!1,qe=!1,Qe=!1,Et,ue,st,kt;for(se||(L.scheme="",L.username="",L.password="",L.host=null,L.port=null,L.path=[],L.query=null,L.fragment=null,L.cannotBeABaseURL=!1,oe=oe.replace(N,"")),oe=oe.replace(I,""),Et=T(oe);Le<=Et.length;){switch(ue=Et[Le],de){case Ve:if(ue&&J.test(ue))we+=ue.toLowerCase(),de=rt;else{if(se)return V;de=it;continue}break;case rt:if(ue&&(te.test(ue)||ue=="+"||ue=="-"||ue=="."))we+=ue.toLowerCase();else if(ue==":"){if(se&&(ne(L)!=b(Q,we)||we=="file"&&(ae(L)||L.port!==null)||L.scheme=="file"&&!L.host))return;if(L.scheme=we,se){ne(L)&&Q[L.scheme]==L.port&&(L.port=null);return}we="",L.scheme=="file"?de=$e:ne(L)&&ce&&ce.scheme==L.scheme?de=Dt:ne(L)?de=We:Et[Le+1]=="/"?(de=bt,Le++):(L.cannotBeABaseURL=!0,L.path.push(""),de=It)}else{if(se)return V;we="",de=it,Le=0;continue}break;case it:if(!ce||ce.cannotBeABaseURL&&ue!="#")return V;if(ce.cannotBeABaseURL&&ue=="#"){L.scheme=ce.scheme,L.path=ce.path.slice(),L.query=ce.query,L.fragment="",L.cannotBeABaseURL=!0,de=lt;break}de=ce.scheme=="file"?$e:_e;continue;case Dt:if(ue=="/"&&Et[Le+1]=="/")de=pe,Le++;else{de=_e;continue}break;case bt:if(ue=="/"){de=be;break}else{de=ft;continue}case _e:if(L.scheme=ce.scheme,ue==A)L.username=ce.username,L.password=ce.password,L.host=ce.host,L.port=ce.port,L.path=ce.path.slice(),L.query=ce.query;else if(ue=="/"||ue=="\\"&&ne(L))de=Pe;else if(ue=="?")L.username=ce.username,L.password=ce.password,L.host=ce.host,L.port=ce.port,L.path=ce.path.slice(),L.query="",de=Ut;else if(ue=="#")L.username=ce.username,L.password=ce.password,L.host=ce.host,L.port=ce.port,L.path=ce.path.slice(),L.query=ce.query,L.fragment="",de=lt;else{L.username=ce.username,L.password=ce.password,L.host=ce.host,L.port=ce.port,L.path=ce.path.slice(),L.path.pop(),de=ft;continue}break;case Pe:if(ne(L)&&(ue=="/"||ue=="\\"))de=pe;else if(ue=="/")de=be;else{L.username=ce.username,L.password=ce.password,L.host=ce.host,L.port=ce.port,de=ft;continue}break;case We:if(de=pe,ue!="/"||we.charAt(Le+1)!="/")continue;Le++;break;case pe:if(ue!="/"&&ue!="\\"){de=be;continue}break;case be:if(ue=="@"){Ue&&(we="%40"+we),Ue=!0,st=T(we);for(var Gn=0;Gn<st.length;Gn++){var vn=st[Gn];if(vn==":"&&!Qe){Qe=!0;continue}var Rn=Y(vn,Z);Qe?L.password+=Rn:L.username+=Rn}we=""}else if(ue==A||ue=="/"||ue=="?"||ue=="#"||ue=="\\"&&ne(L)){if(Ue&&we=="")return j;Le-=T(we).length+1,we="",de=Ce}else we+=ue;break;case Ce:case ke:if(se&&L.scheme=="file"){de=et;continue}else if(ue==":"&&!qe){if(we=="")return K;if(kt=C(L,we),kt)return kt;if(we="",de=Ie,se==ke)return}else if(ue==A||ue=="/"||ue=="?"||ue=="#"||ue=="\\"&&ne(L)){if(ne(L)&&we=="")return K;if(se&&we==""&&(ae(L)||L.port!==null))return;if(kt=C(L,we),kt)return kt;if(we="",de=dt,se)return;continue}else ue=="["?qe=!0:ue=="]"&&(qe=!1),we+=ue;break;case Ie:if(me.test(ue))we+=ue;else if(ue==A||ue=="/"||ue=="?"||ue=="#"||ue=="\\"&&ne(L)||se){if(we!=""){var Yt=parseInt(we,10);if(Yt>65535)return q;L.port=ne(L)&&Yt===Q[L.scheme]?null:Yt,we=""}if(se)return;de=dt;continue}else return q;break;case $e:if(L.scheme="file",ue=="/"||ue=="\\")de=Ke;else if(ce&&ce.scheme=="file")if(ue==A)L.host=ce.host,L.path=ce.path.slice(),L.query=ce.query;else if(ue=="?")L.host=ce.host,L.path=ce.path.slice(),L.query="",de=Ut;else if(ue=="#")L.host=ce.host,L.path=ce.path.slice(),L.query=ce.query,L.fragment="",de=lt;else{De(Et.slice(Le).join(""))||(L.host=ce.host,L.path=ce.path.slice(),Ge(L)),de=ft;continue}else{de=ft;continue}break;case Ke:if(ue=="/"||ue=="\\"){de=et;break}ce&&ce.scheme=="file"&&!De(Et.slice(Le).join(""))&&(Ae(ce.path[0],!0)?L.path.push(ce.path[0]):L.host=ce.host),de=ft;continue;case et:if(ue==A||ue=="/"||ue=="\\"||ue=="?"||ue=="#"){if(!se&&Ae(we))de=ft;else if(we==""){if(L.host="",se)return;de=dt}else{if(kt=C(L,we),kt)return kt;if(L.host=="localhost"&&(L.host=""),se)return;we="",de=dt}continue}else we+=ue;break;case dt:if(ne(L)){if(de=ft,ue!="/"&&ue!="\\")continue}else if(!se&&ue=="?")L.query="",de=Ut;else if(!se&&ue=="#")L.fragment="",de=lt;else if(ue!=A&&(de=ft,ue!="/"))continue;break;case ft:if(ue==A||ue=="/"||ue=="\\"&&ne(L)||!se&&(ue=="?"||ue=="#")){if(Be(we)?(Ge(L),ue!="/"&&!(ue=="\\"&&ne(L))&&L.path.push("")):je(we)?ue!="/"&&!(ue=="\\"&&ne(L))&&L.path.push(""):(L.scheme=="file"&&!L.path.length&&Ae(we)&&(L.host&&(L.host=""),we=we.charAt(0)+":"),L.path.push(we)),we="",L.scheme=="file"&&(ue==A||ue=="?"||ue=="#"))for(;L.path.length>1&&L.path[0]==="";)L.path.shift();ue=="?"?(L.query="",de=Ut):ue=="#"&&(L.fragment="",de=lt)}else we+=Y(ue,W);break;case It:ue=="?"?(L.query="",de=Ut):ue=="#"?(L.fragment="",de=lt):ue!=A&&(L.path[0]+=Y(ue,U));break;case Ut:!se&&ue=="#"?(L.fragment="",de=lt):ue!=A&&(ue=="'"&&ne(L)?L.query+="%27":ue=="#"?L.query+="%23":L.query+=Y(ue,U));break;case lt:ue!=A&&(L.fragment+=Y(ue,$));break}Le++}},Xt=function(oe){var se=v(this,Xt,"URL"),ce=arguments.length>1?arguments[1]:void 0,de=String(oe),Le=E(se,{type:"URL"}),we,Ue;if(ce!==void 0){if(ce instanceof Xt)we=P(ce);else if(Ue=Ot(we={},String(ce)),Ue)throw TypeError(Ue)}if(Ue=Ot(Le,de,null,we),Ue)throw TypeError(Ue);var qe=Le.searchParams=new re,Qe=G(qe);Qe.updateSearchParams(Le.query),Qe.updateURL=function(){Le.query=String(qe)||null},d||(se.href=gn.call(se),se.origin=Cn.call(se),se.protocol=at.call(se),se.username=fr.call(se),se.password=hr.call(se),se.host=pr.call(se),se.hostname=mr.call(se),se.port=gr.call(se),se.pathname=ct.call(se),se.search=vr.call(se),se.searchParams=yr.call(se),se.hash=br.call(se))},Hn=Xt.prototype,gn=function(){var L=P(this),oe=L.scheme,se=L.username,ce=L.password,de=L.host,Le=L.port,we=L.path,Ue=L.query,qe=L.fragment,Qe=oe+":";return de!==null?(Qe+="//",ae(L)&&(Qe+=se+(ce?":"+ce:"")+"@"),Qe+=B(de),Le!==null&&(Qe+=":"+Le)):oe=="file"&&(Qe+="//"),Qe+=L.cannotBeABaseURL?we[0]:we.length?"/"+we.join("/"):"",Ue!==null&&(Qe+="?"+Ue),qe!==null&&(Qe+="#"+qe),Qe},Cn=function(){var L=P(this),oe=L.scheme,se=L.port;if(oe=="blob")try{return new URL(oe.path[0]).origin}catch{return"null"}return oe=="file"||!ne(L)?"null":oe+"://"+B(L.host)+(se!==null?":"+se:"")},at=function(){return P(this).scheme+":"},fr=function(){return P(this).username},hr=function(){return P(this).password},pr=function(){var L=P(this),oe=L.host,se=L.port;return oe===null?"":se===null?B(oe):B(oe)+":"+se},mr=function(){var L=P(this).host;return L===null?"":B(L)},gr=function(){var L=P(this).port;return L===null?"":String(L)},ct=function(){var L=P(this),oe=L.path;return L.cannotBeABaseURL?oe[0]:oe.length?"/"+oe.join("/"):""},vr=function(){var L=P(this).query;return L?"?"+L:""},yr=function(){return P(this).searchParams},br=function(){var L=P(this).fragment;return L?"#"+L:""},xt=function(L,oe){return{get:L,set:oe,configurable:!0,enumerable:!0}};if(d&&g(Hn,{href:xt(gn,function(L){var oe=P(this),se=String(L),ce=Ot(oe,se);if(ce)throw TypeError(ce);G(oe.searchParams).updateSearchParams(oe.query)}),origin:xt(Cn),protocol:xt(at,function(L){var oe=P(this);Ot(oe,String(L)+":",Ve)}),username:xt(fr,function(L){var oe=P(this),se=T(String(L));if(!fe(oe)){oe.username="";for(var ce=0;ce<se.length;ce++)oe.username+=Y(se[ce],Z)}}),password:xt(hr,function(L){var oe=P(this),se=T(String(L));if(!fe(oe)){oe.password="";for(var ce=0;ce<se.length;ce++)oe.password+=Y(se[ce],Z)}}),host:xt(pr,function(L){var oe=P(this);oe.cannotBeABaseURL||Ot(oe,String(L),Ce)}),hostname:xt(mr,function(L){var oe=P(this);oe.cannotBeABaseURL||Ot(oe,String(L),ke)}),port:xt(gr,function(L){var oe=P(this);fe(oe)||(L=String(L),L==""?oe.port=null:Ot(oe,L,Ie))}),pathname:xt(ct,function(L){var oe=P(this);oe.cannotBeABaseURL||(oe.path=[],Ot(oe,L+"",dt))}),search:xt(vr,function(L){var oe=P(this);L=String(L),L==""?oe.query=null:(L.charAt(0)=="?"&&(L=L.slice(1)),oe.query="",Ot(oe,L,Ut)),G(oe.searchParams).updateSearchParams(oe.query)}),searchParams:xt(yr),hash:xt(br,function(L){var oe=P(this);if(L=String(L),L==""){oe.fragment=null;return}L.charAt(0)=="#"&&(L=L.slice(1)),oe.fragment="",Ot(oe,L,lt)})}),p(Hn,"toJSON",function(){return gn.call(this)},{enumerable:!0}),p(Hn,"toString",function(){return gn.call(this)},{enumerable:!0}),H){var xr=H.createObjectURL,pt=H.revokeObjectURL;xr&&p(Xt,"createObjectURL",function(oe){return xr.apply(H,arguments)}),pt&&p(Xt,"revokeObjectURL",function(oe){return pt.apply(H,arguments)})}M(Xt,"URL"),u({global:!0,forced:!h,sham:!d},{URL:Xt})}},r={};function s(a){if(r[a])return r[a].exports;var c=r[a]={exports:{}};return t[a](c,c.exports,s),c.exports}(function(){s.d=function(a,c){for(var i in c)s.o(c,i)&&!s.o(a,i)&&Object.defineProperty(a,i,{enumerable:!0,get:c[i]})}})(),function(){s.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}()}(),function(){s.o=function(a,c){return Object.prototype.hasOwnProperty.call(a,c)}}(),function(){s.r=function(a){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(a,"__esModule",{value:!0})}}();var o={};return function(){s.r(o),s.d(o,{Dropzone:function(){return q},default:function(){return ye}}),s(2222),s(7327),s(2772),s(6992),s(1249),s(7042),s(561),s(8264),s(8309),s(489),s(1539),s(4916),s(9714),s(8783),s(4723),s(5306),s(3123),s(3210),s(2472),s(2990),s(8927),s(3105),s(5035),s(4345),s(7174),s(2846),s(4731),s(7209),s(6319),s(8867),s(7789),s(3739),s(9368),s(4483),s(2056),s(3462),s(678),s(7462),s(3824),s(5021),s(2974),s(5016),s(4747),s(3948),s(285);function a(N,I){var A;if(typeof Symbol>"u"||N[Symbol.iterator]==null){if(Array.isArray(N)||(A=c(N))||N&&typeof N.length=="number"){A&&(N=A);var C=0,y=function(){};return{s:y,n:function(){return C>=N.length?{done:!0}:{done:!1,value:N[C++]}},e:function($){throw $},f:y}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
9
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var x=!0,k=!1,B;return{s:function(){A=N[Symbol.iterator]()},n:function(){var $=A.next();return x=$.done,$},e:function($){k=!0,B=$},f:function(){try{!x&&A.return!=null&&A.return()}finally{if(k)throw B}}}}function c(N,I){if(N){if(typeof N=="string")return i(N,I);var A=Object.prototype.toString.call(N).slice(8,-1);if(A==="Object"&&N.constructor&&(A=N.constructor.name),A==="Map"||A==="Set")return Array.from(N);if(A==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(A))return i(N,I)}}function i(N,I){(I==null||I>N.length)&&(I=N.length);for(var A=0,C=new Array(I);A<I;A++)C[A]=N[A];return C}function u(N,I){if(!(N instanceof I))throw new TypeError("Cannot call a class as a function")}function d(N,I){for(var A=0;A<I.length;A++){var C=I[A];C.enumerable=C.enumerable||!1,C.configurable=!0,"value"in C&&(C.writable=!0),Object.defineProperty(N,C.key,C)}}function h(N,I,A){return I&&d(N.prototype,I),N}var f=function(){function N(){u(this,N)}return h(N,[{key:"on",value:function(A,C){return this._callbacks=this._callbacks||{},this._callbacks[A]||(this._callbacks[A]=[]),this._callbacks[A].push(C),this}},{key:"emit",value:function(A){this._callbacks=this._callbacks||{};for(var C=this._callbacks[A],y=arguments.length,x=new Array(y>1?y-1:0),k=1;k<y;k++)x[k-1]=arguments[k];if(C){var B=a(C),U;try{for(B.s();!(U=B.n()).done;){var $=U.value;$.apply(this,x)}}catch(W){B.e(W)}finally{B.f()}}return this.element&&this.element.dispatchEvent(this.makeEvent("dropzone:"+A,{args:x})),this}},{key:"makeEvent",value:function(A,C){var y={bubbles:!0,cancelable:!0,detail:C};if(typeof window.CustomEvent=="function")return new CustomEvent(A,y);var x=document.createEvent("CustomEvent");return x.initCustomEvent(A,y.bubbles,y.cancelable,y.detail),x}},{key:"off",value:function(A,C){if(!this._callbacks||arguments.length===0)return this._callbacks={},this;var y=this._callbacks[A];if(!y)return this;if(arguments.length===1)return delete this._callbacks[A],this;for(var x=0;x<y.length;x++){var k=y[x];if(k===C){y.splice(x,1);break}}return this}}]),N}(),g='<div class="dz-preview dz-file-preview"> <div class="dz-image"><img data-dz-thumbnail/></div> <div class="dz-details"> <div class="dz-size"><span data-dz-size></span></div> <div class="dz-filename"><span data-dz-name></span></div> </div> <div class="dz-progress"> <span class="dz-upload" data-dz-uploadprogress></span> </div> <div class="dz-error-message"><span data-dz-errormessage></span></div> <div class="dz-success-mark"> <svg width="54px" height="54px" viewBox="0 0 54 54" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <title>Check</title> <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"> <path d="M23.5,31.8431458 L17.5852419,25.9283877 C16.0248253,24.3679711 13.4910294,24.366835 11.9289322,25.9289322 C10.3700136,27.4878508 10.3665912,30.0234455 11.9283877,31.5852419 L20.4147581,40.0716123 C20.5133999,40.1702541 20.6159315,40.2626649 20.7218615,40.3488435 C22.2835669,41.8725651 24.794234,41.8626202 26.3461564,40.3106978 L43.3106978,23.3461564 C44.8771021,21.7797521 44.8758057,19.2483887 43.3137085,17.6862915 C41.7547899,16.1273729 39.2176035,16.1255422 37.6538436,17.6893022 L23.5,31.8431458 Z M27,53 C41.3594035,53 53,41.3594035 53,27 C53,12.6405965 41.3594035,1 27,1 C12.6405965,1 1,12.6405965 1,27 C1,41.3594035 12.6405965,53 27,53 Z" stroke-opacity="0.198794158" stroke="#747474" fill-opacity="0.816519475" fill="#FFFFFF"></path> </g> </svg> </div> <div class="dz-error-mark"> <svg width="54px" height="54px" viewBox="0 0 54 54" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <title>Error</title> <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"> <g stroke="#747474" stroke-opacity="0.198794158" fill="#FFFFFF" fill-opacity="0.816519475"> <path d="M32.6568542,29 L38.3106978,23.3461564 C39.8771021,21.7797521 39.8758057,19.2483887 38.3137085,17.6862915 C36.7547899,16.1273729 34.2176035,16.1255422 32.6538436,17.6893022 L27,23.3431458 L21.3461564,17.6893022 C19.7823965,16.1255422 17.2452101,16.1273729 15.6862915,17.6862915 C14.1241943,19.2483887 14.1228979,21.7797521 15.6893022,23.3461564 L21.3431458,29 L15.6893022,34.6538436 C14.1228979,36.2202479 14.1241943,38.7516113 15.6862915,40.3137085 C17.2452101,41.8726271 19.7823965,41.8744578 21.3461564,40.3106978 L27,34.6568542 L32.6538436,40.3106978 C34.2176035,41.8744578 36.7547899,41.8726271 38.3137085,40.3137085 C39.8758057,38.7516113 39.8771021,36.2202479 38.3106978,34.6538436 L32.6568542,29 Z M27,53 C41.3594035,53 53,41.3594035 53,27 C53,12.6405965 41.3594035,1 27,1 C12.6405965,1 1,12.6405965 1,27 C1,41.3594035 12.6405965,53 27,53 Z"></path> </g> </g> </svg> </div> </div> ',p=g;function v(N,I){var A;if(typeof Symbol>"u"||N[Symbol.iterator]==null){if(Array.isArray(N)||(A=b(N))||N&&typeof N.length=="number"){A&&(N=A);var C=0,y=function(){};return{s:y,n:function(){return C>=N.length?{done:!0}:{done:!1,value:N[C++]}},e:function($){throw $},f:y}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
10
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var x=!0,k=!1,B;return{s:function(){A=N[Symbol.iterator]()},n:function(){var $=A.next();return x=$.done,$},e:function($){k=!0,B=$},f:function(){try{!x&&A.return!=null&&A.return()}finally{if(k)throw B}}}}function b(N,I){if(N){if(typeof N=="string")return S(N,I);var A=Object.prototype.toString.call(N).slice(8,-1);if(A==="Object"&&N.constructor&&(A=N.constructor.name),A==="Map"||A==="Set")return Array.from(N);if(A==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(A))return S(N,I)}}function S(N,I){(I==null||I>N.length)&&(I=N.length);for(var A=0,C=new Array(I);A<I;A++)C[A]=N[A];return C}var T={url:null,method:"post",withCredentials:!1,timeout:null,parallelUploads:2,uploadMultiple:!1,chunking:!1,forceChunking:!1,chunkSize:2e6,parallelChunkUploads:!1,retryChunks:!1,retryChunksLimit:3,maxFilesize:256,paramName:"file",createImageThumbnails:!0,maxThumbnailFilesize:10,thumbnailWidth:120,thumbnailHeight:120,thumbnailMethod:"crop",resizeWidth:null,resizeHeight:null,resizeMimeType:null,resizeQuality:.8,resizeMethod:"contain",filesizeBase:1e3,maxFiles:null,headers:null,clickable:!0,ignoreHiddenFiles:!0,acceptedFiles:null,acceptedMimeTypes:null,autoProcessQueue:!0,autoQueue:!0,addRemoveLinks:!1,previewsContainer:null,disablePreviews:!1,hiddenInputContainer:"body",capture:null,renameFilename:null,renameFile:null,forceFallback:!1,dictDefaultMessage:"Drop files here to upload",dictFallbackMessage:"Your browser does not support drag'n'drop file uploads.",dictFallbackText:"Please use the fallback form below to upload your files like in the olden days.",dictFileTooBig:"File is too big ({{filesize}}MiB). Max filesize: {{maxFilesize}}MiB.",dictInvalidFileType:"You can't upload files of this type.",dictResponseError:"Server responded with {{statusCode}} code.",dictCancelUpload:"Cancel upload",dictUploadCanceled:"Upload canceled.",dictCancelUploadConfirmation:"Are you sure you want to cancel this upload?",dictRemoveFile:"Remove file",dictRemoveFileConfirmation:null,dictMaxFilesExceeded:"You can not upload any more files.",dictFileSizeUnits:{tb:"TB",gb:"GB",mb:"MB",kb:"KB",b:"b"},init:function(){},params:function(I,A,C){if(C)return{dzuuid:C.file.upload.uuid,dzchunkindex:C.index,dztotalfilesize:C.file.size,dzchunksize:this.options.chunkSize,dztotalchunkcount:C.file.upload.totalChunkCount,dzchunkbyteoffset:C.index*this.options.chunkSize}},accept:function(I,A){return A()},chunksUploaded:function(I,A){A()},fallback:function(){var I;this.element.className="".concat(this.element.className," dz-browser-not-supported");var A=v(this.element.getElementsByTagName("div")),C;try{for(A.s();!(C=A.n()).done;){var y=C.value;if(/(^| )dz-message($| )/.test(y.className)){I=y,y.className="dz-message";break}}}catch(k){A.e(k)}finally{A.f()}I||(I=q.createElement('<div class="dz-message"><span></span></div>'),this.element.appendChild(I));var x=I.getElementsByTagName("span")[0];return x&&(x.textContent!=null?x.textContent=this.options.dictFallbackMessage:x.innerText!=null&&(x.innerText=this.options.dictFallbackMessage)),this.element.appendChild(this.getFallbackForm())},resize:function(I,A,C,y){var x={srcX:0,srcY:0,srcWidth:I.width,srcHeight:I.height},k=I.width/I.height;A==null&&C==null?(A=x.srcWidth,C=x.srcHeight):A==null?A=C*k:C==null&&(C=A/k),A=Math.min(A,x.srcWidth),C=Math.min(C,x.srcHeight);var B=A/C;if(x.srcWidth>A||x.srcHeight>C)if(y==="crop")k>B?(x.srcHeight=I.height,x.srcWidth=x.srcHeight*B):(x.srcWidth=I.width,x.srcHeight=x.srcWidth/B);else if(y==="contain")k>B?C=A/k:A=C*k;else throw new Error("Unknown resizeMethod '".concat(y,"'"));return x.srcX=(I.width-x.srcWidth)/2,x.srcY=(I.height-x.srcHeight)/2,x.trgWidth=A,x.trgHeight=C,x},transformFile:function(I,A){return(this.options.resizeWidth||this.options.resizeHeight)&&I.type.match(/image.*/)?this.resizeImage(I,this.options.resizeWidth,this.options.resizeHeight,this.options.resizeMethod,A):A(I)},previewTemplate:p,drop:function(I){return this.element.classList.remove("dz-drag-hover")},dragstart:function(I){},dragend:function(I){return this.element.classList.remove("dz-drag-hover")},dragenter:function(I){return this.element.classList.add("dz-drag-hover")},dragover:function(I){return this.element.classList.add("dz-drag-hover")},dragleave:function(I){return this.element.classList.remove("dz-drag-hover")},paste:function(I){},reset:function(){return this.element.classList.remove("dz-started")},addedfile:function(I){var A=this;if(this.element===this.previewsContainer&&this.element.classList.add("dz-started"),this.previewsContainer&&!this.options.disablePreviews){I.previewElement=q.createElement(this.options.previewTemplate.trim()),I.previewTemplate=I.previewElement,this.previewsContainer.appendChild(I.previewElement);var C=v(I.previewElement.querySelectorAll("[data-dz-name]")),y;try{for(C.s();!(y=C.n()).done;){var x=y.value;x.textContent=I.name}}catch(Y){C.e(Y)}finally{C.f()}var k=v(I.previewElement.querySelectorAll("[data-dz-size]")),B;try{for(k.s();!(B=k.n()).done;)x=B.value,x.innerHTML=this.filesize(I.size)}catch(Y){k.e(Y)}finally{k.f()}this.options.addRemoveLinks&&(I._removeLink=q.createElement('<a class="dz-remove" href="javascript:undefined;" data-dz-remove>'.concat(this.options.dictRemoveFile,"</a>")),I.previewElement.appendChild(I._removeLink));var U=function(Q){return Q.preventDefault(),Q.stopPropagation(),I.status===q.UPLOADING?q.confirm(A.options.dictCancelUploadConfirmation,function(){return A.removeFile(I)}):A.options.dictRemoveFileConfirmation?q.confirm(A.options.dictRemoveFileConfirmation,function(){return A.removeFile(I)}):A.removeFile(I)},$=v(I.previewElement.querySelectorAll("[data-dz-remove]")),W;try{for($.s();!(W=$.n()).done;){var Z=W.value;Z.addEventListener("click",U)}}catch(Y){$.e(Y)}finally{$.f()}}},removedfile:function(I){return I.previewElement!=null&&I.previewElement.parentNode!=null&&I.previewElement.parentNode.removeChild(I.previewElement),this._updateMaxFilesReachedClass()},thumbnail:function(I,A){if(I.previewElement){I.previewElement.classList.remove("dz-file-preview");var C=v(I.previewElement.querySelectorAll("[data-dz-thumbnail]")),y;try{for(C.s();!(y=C.n()).done;){var x=y.value;x.alt=I.name,x.src=A}}catch(k){C.e(k)}finally{C.f()}return setTimeout(function(){return I.previewElement.classList.add("dz-image-preview")},1)}},error:function(I,A){if(I.previewElement){I.previewElement.classList.add("dz-error"),typeof A!="string"&&A.error&&(A=A.error);var C=v(I.previewElement.querySelectorAll("[data-dz-errormessage]")),y;try{for(C.s();!(y=C.n()).done;){var x=y.value;x.textContent=A}}catch(k){C.e(k)}finally{C.f()}}},errormultiple:function(){},processing:function(I){if(I.previewElement&&(I.previewElement.classList.add("dz-processing"),I._removeLink))return I._removeLink.innerHTML=this.options.dictCancelUpload},processingmultiple:function(){},uploadprogress:function(I,A,C){if(I.previewElement){var y=v(I.previewElement.querySelectorAll("[data-dz-uploadprogress]")),x;try{for(y.s();!(x=y.n()).done;){var k=x.value;k.nodeName==="PROGRESS"?k.value=A:k.style.width="".concat(A,"%")}}catch(B){y.e(B)}finally{y.f()}}},totaluploadprogress:function(){},sending:function(){},sendingmultiple:function(){},success:function(I){if(I.previewElement)return I.previewElement.classList.add("dz-success")},successmultiple:function(){},canceled:function(I){return this.emit("error",I,this.options.dictUploadCanceled)},canceledmultiple:function(){},complete:function(I){if(I._removeLink&&(I._removeLink.innerHTML=this.options.dictRemoveFile),I.previewElement)return I.previewElement.classList.add("dz-complete")},completemultiple:function(){},maxfilesexceeded:function(){},maxfilesreached:function(){},queuecomplete:function(){},addedfiles:function(){}},R=T;function F(N){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?F=function(A){return typeof A}:F=function(A){return A&&typeof Symbol=="function"&&A.constructor===Symbol&&A!==Symbol.prototype?"symbol":typeof A},F(N)}function M(N,I){var A;if(typeof Symbol>"u"||N[Symbol.iterator]==null){if(Array.isArray(N)||(A=z(N))||N&&typeof N.length=="number"){A&&(N=A);var C=0,y=function(){};return{s:y,n:function(){return C>=N.length?{done:!0}:{done:!1,value:N[C++]}},e:function($){throw $},f:y}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
11
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var x=!0,k=!1,B;return{s:function(){A=N[Symbol.iterator]()},n:function(){var $=A.next();return x=$.done,$},e:function($){k=!0,B=$},f:function(){try{!x&&A.return!=null&&A.return()}finally{if(k)throw B}}}}function z(N,I){if(N){if(typeof N=="string")return X(N,I);var A=Object.prototype.toString.call(N).slice(8,-1);if(A==="Object"&&N.constructor&&(A=N.constructor.name),A==="Map"||A==="Set")return Array.from(N);if(A==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(A))return X(N,I)}}function X(N,I){(I==null||I>N.length)&&(I=N.length);for(var A=0,C=new Array(I);A<I;A++)C[A]=N[A];return C}function H(N,I){if(!(N instanceof I))throw new TypeError("Cannot call a class as a function")}function re(N,I){for(var A=0;A<I.length;A++){var C=I[A];C.enumerable=C.enumerable||!1,C.configurable=!0,"value"in C&&(C.writable=!0),Object.defineProperty(N,C.key,C)}}function G(N,I,A){return I&&re(N.prototype,I),A&&re(N,A),N}function E(N,I){if(typeof I!="function"&&I!==null)throw new TypeError("Super expression must either be null or a function");N.prototype=Object.create(I&&I.prototype,{constructor:{value:N,writable:!0,configurable:!0}}),I&&P(N,I)}function P(N,I){return P=Object.setPrototypeOf||function(C,y){return C.__proto__=y,C},P(N,I)}function O(N){var I=V();return function(){var C=K(N),y;if(I){var x=K(this).constructor;y=Reflect.construct(C,arguments,x)}else y=C.apply(this,arguments);return _(this,y)}}function _(N,I){return I&&(F(I)==="object"||typeof I=="function")?I:j(N)}function j(N){if(N===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return N}function V(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function K(N){return K=Object.setPrototypeOf?Object.getPrototypeOf:function(A){return A.__proto__||Object.getPrototypeOf(A)},K(N)}var q=function(N){E(A,N);var I=O(A);function A(C,y){var x;H(this,A),x=I.call(this);var k,B;if(x.element=C,x.version=A.version,x.clickableElements=[],x.listeners=[],x.files=[],typeof x.element=="string"&&(x.element=document.querySelector(x.element)),!x.element||x.element.nodeType==null)throw new Error("Invalid dropzone element.");if(x.element.dropzone)throw new Error("Dropzone already attached.");A.instances.push(j(x)),x.element.dropzone=j(x);var U=(B=A.optionsForElement(x.element))!=null?B:{};if(x.options=A.extend({},R,U,y??{}),x.options.previewTemplate=x.options.previewTemplate.replace(/\n*/g,""),x.options.forceFallback||!A.isBrowserSupported())return _(x,x.options.fallback.call(j(x)));if(x.options.url==null&&(x.options.url=x.element.getAttribute("action")),!x.options.url)throw new Error("No URL provided.");if(x.options.acceptedFiles&&x.options.acceptedMimeTypes)throw new Error("You can't provide both 'acceptedFiles' and 'acceptedMimeTypes'. 'acceptedMimeTypes' is deprecated.");if(x.options.uploadMultiple&&x.options.chunking)throw new Error("You cannot set both: uploadMultiple and chunking.");return x.options.acceptedMimeTypes&&(x.options.acceptedFiles=x.options.acceptedMimeTypes,delete x.options.acceptedMimeTypes),x.options.renameFilename!=null&&(x.options.renameFile=function($){return x.options.renameFilename.call(j(x),$.name,$)}),typeof x.options.method=="string"&&(x.options.method=x.options.method.toUpperCase()),(k=x.getExistingFallback())&&k.parentNode&&k.parentNode.removeChild(k),x.options.previewsContainer!==!1&&(x.options.previewsContainer?x.previewsContainer=A.getElement(x.options.previewsContainer,"previewsContainer"):x.previewsContainer=x.element),x.options.clickable&&(x.options.clickable===!0?x.clickableElements=[x.element]:x.clickableElements=A.getElements(x.options.clickable,"clickable")),x.init(),x}return G(A,[{key:"getAcceptedFiles",value:function(){return this.files.filter(function(y){return y.accepted}).map(function(y){return y})}},{key:"getRejectedFiles",value:function(){return this.files.filter(function(y){return!y.accepted}).map(function(y){return y})}},{key:"getFilesWithStatus",value:function(y){return this.files.filter(function(x){return x.status===y}).map(function(x){return x})}},{key:"getQueuedFiles",value:function(){return this.getFilesWithStatus(A.QUEUED)}},{key:"getUploadingFiles",value:function(){return this.getFilesWithStatus(A.UPLOADING)}},{key:"getAddedFiles",value:function(){return this.getFilesWithStatus(A.ADDED)}},{key:"getActiveFiles",value:function(){return this.files.filter(function(y){return y.status===A.UPLOADING||y.status===A.QUEUED}).map(function(y){return y})}},{key:"init",value:function(){var y=this;if(this.element.tagName==="form"&&this.element.setAttribute("enctype","multipart/form-data"),this.element.classList.contains("dropzone")&&!this.element.querySelector(".dz-message")&&this.element.appendChild(A.createElement('<div class="dz-default dz-message"><button class="dz-button" type="button">'.concat(this.options.dictDefaultMessage,"</button></div>"))),this.clickableElements.length){var x=function Z(){y.hiddenFileInput&&y.hiddenFileInput.parentNode.removeChild(y.hiddenFileInput),y.hiddenFileInput=document.createElement("input"),y.hiddenFileInput.setAttribute("type","file"),(y.options.maxFiles===null||y.options.maxFiles>1)&&y.hiddenFileInput.setAttribute("multiple","multiple"),y.hiddenFileInput.className="dz-hidden-input",y.options.acceptedFiles!==null&&y.hiddenFileInput.setAttribute("accept",y.options.acceptedFiles),y.options.capture!==null&&y.hiddenFileInput.setAttribute("capture",y.options.capture),y.hiddenFileInput.setAttribute("tabindex","-1"),y.hiddenFileInput.style.visibility="hidden",y.hiddenFileInput.style.position="absolute",y.hiddenFileInput.style.top="0",y.hiddenFileInput.style.left="0",y.hiddenFileInput.style.height="0",y.hiddenFileInput.style.width="0",A.getElement(y.options.hiddenInputContainer,"hiddenInputContainer").appendChild(y.hiddenFileInput),y.hiddenFileInput.addEventListener("change",function(){var Y=y.hiddenFileInput.files;if(Y.length){var Q=M(Y),ne;try{for(Q.s();!(ne=Q.n()).done;){var ae=ne.value;y.addFile(ae)}}catch(fe){Q.e(fe)}finally{Q.f()}}y.emit("addedfiles",Y),Z()})};x()}this.URL=window.URL!==null?window.URL:window.webkitURL;var k=M(this.events),B;try{for(k.s();!(B=k.n()).done;){var U=B.value;this.on(U,this.options[U])}}catch(Z){k.e(Z)}finally{k.f()}this.on("uploadprogress",function(){return y.updateTotalUploadProgress()}),this.on("removedfile",function(){return y.updateTotalUploadProgress()}),this.on("canceled",function(Z){return y.emit("complete",Z)}),this.on("complete",function(Z){if(y.getAddedFiles().length===0&&y.getUploadingFiles().length===0&&y.getQueuedFiles().length===0)return setTimeout(function(){return y.emit("queuecomplete")},0)});var $=function(Y){if(Y.dataTransfer.types){for(var Q=0;Q<Y.dataTransfer.types.length;Q++)if(Y.dataTransfer.types[Q]==="Files")return!0}return!1},W=function(Y){if($(Y))return Y.stopPropagation(),Y.preventDefault?Y.preventDefault():Y.returnValue=!1};return this.listeners=[{element:this.element,events:{dragstart:function(Y){return y.emit("dragstart",Y)},dragenter:function(Y){return W(Y),y.emit("dragenter",Y)},dragover:function(Y){var Q;try{Q=Y.dataTransfer.effectAllowed}catch{}return Y.dataTransfer.dropEffect=Q==="move"||Q==="linkMove"?"move":"copy",W(Y),y.emit("dragover",Y)},dragleave:function(Y){return y.emit("dragleave",Y)},drop:function(Y){return W(Y),y.drop(Y)},dragend:function(Y){return y.emit("dragend",Y)}}}],this.clickableElements.forEach(function(Z){return y.listeners.push({element:Z,events:{click:function(Q){return(Z!==y.element||Q.target===y.element||A.elementInside(Q.target,y.element.querySelector(".dz-message")))&&y.hiddenFileInput.click(),!0}}})}),this.enable(),this.options.init.call(this)}},{key:"destroy",value:function(){return this.disable(),this.removeAllFiles(!0),this.hiddenFileInput!=null&&this.hiddenFileInput.parentNode&&(this.hiddenFileInput.parentNode.removeChild(this.hiddenFileInput),this.hiddenFileInput=null),delete this.element.dropzone,A.instances.splice(A.instances.indexOf(this),1)}},{key:"updateTotalUploadProgress",value:function(){var y,x=0,k=0,B=this.getActiveFiles();if(B.length){var U=M(this.getActiveFiles()),$;try{for(U.s();!($=U.n()).done;){var W=$.value;x+=W.upload.bytesSent,k+=W.upload.total}}catch(Z){U.e(Z)}finally{U.f()}y=100*x/k}else y=100;return this.emit("totaluploadprogress",y,k,x)}},{key:"_getParamName",value:function(y){return typeof this.options.paramName=="function"?this.options.paramName(y):"".concat(this.options.paramName).concat(this.options.uploadMultiple?"[".concat(y,"]"):"")}},{key:"_renameFile",value:function(y){return typeof this.options.renameFile!="function"?y.name:this.options.renameFile(y)}},{key:"getFallbackForm",value:function(){var y,x;if(y=this.getExistingFallback())return y;var k='<div class="dz-fallback">';this.options.dictFallbackText&&(k+="<p>".concat(this.options.dictFallbackText,"</p>")),k+='<input type="file" name="'.concat(this._getParamName(0),'" ').concat(this.options.uploadMultiple?'multiple="multiple"':void 0,' /><input type="submit" value="Upload!"></div>');var B=A.createElement(k);return this.element.tagName!=="FORM"?(x=A.createElement('<form action="'.concat(this.options.url,'" enctype="multipart/form-data" method="').concat(this.options.method,'"></form>')),x.appendChild(B)):(this.element.setAttribute("enctype","multipart/form-data"),this.element.setAttribute("method",this.options.method)),x??B}},{key:"getExistingFallback",value:function(){for(var y=function(W){var Z=M(W),Y;try{for(Z.s();!(Y=Z.n()).done;){var Q=Y.value;if(/(^| )fallback($| )/.test(Q.className))return Q}}catch(ne){Z.e(ne)}finally{Z.f()}},x=0,k=["div","form"];x<k.length;x++){var B=k[x],U;if(U=y(this.element.getElementsByTagName(B)))return U}}},{key:"setupEventListeners",value:function(){return this.listeners.map(function(y){return function(){var x=[];for(var k in y.events){var B=y.events[k];x.push(y.element.addEventListener(k,B,!1))}return x}()})}},{key:"removeEventListeners",value:function(){return this.listeners.map(function(y){return function(){var x=[];for(var k in y.events){var B=y.events[k];x.push(y.element.removeEventListener(k,B,!1))}return x}()})}},{key:"disable",value:function(){var y=this;return this.clickableElements.forEach(function(x){return x.classList.remove("dz-clickable")}),this.removeEventListeners(),this.disabled=!0,this.files.map(function(x){return y.cancelUpload(x)})}},{key:"enable",value:function(){return delete this.disabled,this.clickableElements.forEach(function(y){return y.classList.add("dz-clickable")}),this.setupEventListeners()}},{key:"filesize",value:function(y){var x=0,k="b";if(y>0){for(var B=["tb","gb","mb","kb","b"],U=0;U<B.length;U++){var $=B[U],W=Math.pow(this.options.filesizeBase,4-U)/10;if(y>=W){x=y/Math.pow(this.options.filesizeBase,4-U),k=$;break}}x=Math.round(10*x)/10}return"<strong>".concat(x,"</strong> ").concat(this.options.dictFileSizeUnits[k])}},{key:"_updateMaxFilesReachedClass",value:function(){return this.options.maxFiles!=null&&this.getAcceptedFiles().length>=this.options.maxFiles?(this.getAcceptedFiles().length===this.options.maxFiles&&this.emit("maxfilesreached",this.files),this.element.classList.add("dz-max-files-reached")):this.element.classList.remove("dz-max-files-reached")}},{key:"drop",value:function(y){if(y.dataTransfer){this.emit("drop",y);for(var x=[],k=0;k<y.dataTransfer.files.length;k++)x[k]=y.dataTransfer.files[k];if(x.length){var B=y.dataTransfer.items;B&&B.length&&B[0].webkitGetAsEntry!=null?this._addFilesFromItems(B):this.handleFiles(x)}this.emit("addedfiles",x)}}},{key:"paste",value:function(y){if(he(y!=null?y.clipboardData:void 0,function(k){return k.items})!=null){this.emit("paste",y);var x=y.clipboardData.items;if(x.length)return this._addFilesFromItems(x)}}},{key:"handleFiles",value:function(y){var x=M(y),k;try{for(x.s();!(k=x.n()).done;){var B=k.value;this.addFile(B)}}catch(U){x.e(U)}finally{x.f()}}},{key:"_addFilesFromItems",value:function(y){var x=this;return function(){var k=[],B=M(y),U;try{for(B.s();!(U=B.n()).done;){var $=U.value,W;$.webkitGetAsEntry!=null&&(W=$.webkitGetAsEntry())?W.isFile?k.push(x.addFile($.getAsFile())):W.isDirectory?k.push(x._addFilesFromDirectory(W,W.name)):k.push(void 0):$.getAsFile!=null&&($.kind==null||$.kind==="file")?k.push(x.addFile($.getAsFile())):k.push(void 0)}}catch(Z){B.e(Z)}finally{B.f()}return k}()}},{key:"_addFilesFromDirectory",value:function(y,x){var k=this,B=y.createReader(),U=function(Z){return Oe(console,"log",function(Y){return Y.log(Z)})},$=function W(){return B.readEntries(function(Z){if(Z.length>0){var Y=M(Z),Q;try{for(Y.s();!(Q=Y.n()).done;){var ne=Q.value;ne.isFile?ne.file(function(ae){if(!(k.options.ignoreHiddenFiles&&ae.name.substring(0,1)==="."))return ae.fullPath="".concat(x,"/").concat(ae.name),k.addFile(ae)}):ne.isDirectory&&k._addFilesFromDirectory(ne,"".concat(x,"/").concat(ne.name))}}catch(ae){Y.e(ae)}finally{Y.f()}W()}return null},U)};return $()}},{key:"accept",value:function(y,x){this.options.maxFilesize&&y.size>this.options.maxFilesize*1024*1024?x(this.options.dictFileTooBig.replace("{{filesize}}",Math.round(y.size/1024/10.24)/100).replace("{{maxFilesize}}",this.options.maxFilesize)):A.isValidFile(y,this.options.acceptedFiles)?this.options.maxFiles!=null&&this.getAcceptedFiles().length>=this.options.maxFiles?(x(this.options.dictMaxFilesExceeded.replace("{{maxFiles}}",this.options.maxFiles)),this.emit("maxfilesexceeded",y)):this.options.accept.call(this,y,x):x(this.options.dictInvalidFileType)}},{key:"addFile",value:function(y){var x=this;y.upload={uuid:A.uuidv4(),progress:0,total:y.size,bytesSent:0,filename:this._renameFile(y)},this.files.push(y),y.status=A.ADDED,this.emit("addedfile",y),this._enqueueThumbnail(y),this.accept(y,function(k){k?(y.accepted=!1,x._errorProcessing([y],k)):(y.accepted=!0,x.options.autoQueue&&x.enqueueFile(y)),x._updateMaxFilesReachedClass()})}},{key:"enqueueFiles",value:function(y){var x=M(y),k;try{for(x.s();!(k=x.n()).done;){var B=k.value;this.enqueueFile(B)}}catch(U){x.e(U)}finally{x.f()}return null}},{key:"enqueueFile",value:function(y){var x=this;if(y.status===A.ADDED&&y.accepted===!0){if(y.status=A.QUEUED,this.options.autoProcessQueue)return setTimeout(function(){return x.processQueue()},0)}else throw new Error("This file can't be queued because it has already been processed or was rejected.")}},{key:"_enqueueThumbnail",value:function(y){var x=this;if(this.options.createImageThumbnails&&y.type.match(/image.*/)&&y.size<=this.options.maxThumbnailFilesize*1024*1024)return this._thumbnailQueue.push(y),setTimeout(function(){return x._processThumbnailQueue()},0)}},{key:"_processThumbnailQueue",value:function(){var y=this;if(!(this._processingThumbnail||this._thumbnailQueue.length===0)){this._processingThumbnail=!0;var x=this._thumbnailQueue.shift();return this.createThumbnail(x,this.options.thumbnailWidth,this.options.thumbnailHeight,this.options.thumbnailMethod,!0,function(k){return y.emit("thumbnail",x,k),y._processingThumbnail=!1,y._processThumbnailQueue()})}}},{key:"removeFile",value:function(y){if(y.status===A.UPLOADING&&this.cancelUpload(y),this.files=J(this.files,y),this.emit("removedfile",y),this.files.length===0)return this.emit("reset")}},{key:"removeAllFiles",value:function(y){y==null&&(y=!1);var x=M(this.files.slice()),k;try{for(x.s();!(k=x.n()).done;){var B=k.value;(B.status!==A.UPLOADING||y)&&this.removeFile(B)}}catch(U){x.e(U)}finally{x.f()}return null}},{key:"resizeImage",value:function(y,x,k,B,U){var $=this;return this.createThumbnail(y,x,k,B,!0,function(W,Z){if(Z==null)return U(y);var Y=$.options.resizeMimeType;Y==null&&(Y=y.type);var Q=Z.toDataURL(Y,$.options.resizeQuality);return(Y==="image/jpeg"||Y==="image/jpg")&&(Q=ve.restore(y.dataURL,Q)),U(A.dataURItoBlob(Q))})}},{key:"createThumbnail",value:function(y,x,k,B,U,$){var W=this,Z=new FileReader;Z.onload=function(){if(y.dataURL=Z.result,y.type==="image/svg+xml"){$!=null&&$(Z.result);return}W.createThumbnailFromUrl(y,x,k,B,U,$)},Z.readAsDataURL(y)}},{key:"displayExistingFile",value:function(y,x,k,B){var U=this,$=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0;if(this.emit("addedfile",y),this.emit("complete",y),!$)this.emit("thumbnail",y,x),k&&k();else{var W=function(Y){U.emit("thumbnail",y,Y),k&&k()};y.dataURL=x,this.createThumbnailFromUrl(y,this.options.thumbnailWidth,this.options.thumbnailHeight,this.options.thumbnailMethod,this.options.fixOrientation,W,B)}}},{key:"createThumbnailFromUrl",value:function(y,x,k,B,U,$,W){var Z=this,Y=document.createElement("img");return W&&(Y.crossOrigin=W),U=getComputedStyle(document.body).imageOrientation=="from-image"?!1:U,Y.onload=function(){var Q=function(ae){return ae(1)};return typeof EXIF<"u"&&EXIF!==null&&U&&(Q=function(ae){return EXIF.getData(Y,function(){return ae(EXIF.getTag(this,"Orientation"))})}),Q(function(ne){y.width=Y.width,y.height=Y.height;var ae=Z.options.resize.call(Z,y,x,k,B),fe=document.createElement("canvas"),Ae=fe.getContext("2d");switch(fe.width=ae.trgWidth,fe.height=ae.trgHeight,ne>4&&(fe.width=ae.trgHeight,fe.height=ae.trgWidth),ne){case 2:Ae.translate(fe.width,0),Ae.scale(-1,1);break;case 3:Ae.translate(fe.width,fe.height),Ae.rotate(Math.PI);break;case 4:Ae.translate(0,fe.height),Ae.scale(1,-1);break;case 5:Ae.rotate(.5*Math.PI),Ae.scale(1,-1);break;case 6:Ae.rotate(.5*Math.PI),Ae.translate(0,-fe.width);break;case 7:Ae.rotate(.5*Math.PI),Ae.translate(fe.height,-fe.width),Ae.scale(-1,1);break;case 8:Ae.rotate(-.5*Math.PI),Ae.translate(-fe.height,0);break}ge(Ae,Y,ae.srcX!=null?ae.srcX:0,ae.srcY!=null?ae.srcY:0,ae.srcWidth,ae.srcHeight,ae.trgX!=null?ae.trgX:0,ae.trgY!=null?ae.trgY:0,ae.trgWidth,ae.trgHeight);var De=fe.toDataURL("image/png");if($!=null)return $(De,fe)})},$!=null&&(Y.onerror=$),Y.src=y.dataURL}},{key:"processQueue",value:function(){var y=this.options.parallelUploads,x=this.getUploadingFiles().length,k=x;if(!(x>=y)){var B=this.getQueuedFiles();if(B.length>0){if(this.options.uploadMultiple)return this.processFiles(B.slice(0,y-x));for(;k<y;){if(!B.length)return;this.processFile(B.shift()),k++}}}}},{key:"processFile",value:function(y){return this.processFiles([y])}},{key:"processFiles",value:function(y){var x=M(y),k;try{for(x.s();!(k=x.n()).done;){var B=k.value;B.processing=!0,B.status=A.UPLOADING,this.emit("processing",B)}}catch(U){x.e(U)}finally{x.f()}return this.options.uploadMultiple&&this.emit("processingmultiple",y),this.uploadFiles(y)}},{key:"_getFilesWithXhr",value:function(y){return this.files.filter(function(x){return x.xhr===y}).map(function(x){return x})}},{key:"cancelUpload",value:function(y){if(y.status===A.UPLOADING){var x=this._getFilesWithXhr(y.xhr),k=M(x),B;try{for(k.s();!(B=k.n()).done;){var U=B.value;U.status=A.CANCELED}}catch(Y){k.e(Y)}finally{k.f()}typeof y.xhr<"u"&&y.xhr.abort();var $=M(x),W;try{for($.s();!(W=$.n()).done;){var Z=W.value;this.emit("canceled",Z)}}catch(Y){$.e(Y)}finally{$.f()}this.options.uploadMultiple&&this.emit("canceledmultiple",x)}else(y.status===A.ADDED||y.status===A.QUEUED)&&(y.status=A.CANCELED,this.emit("canceled",y),this.options.uploadMultiple&&this.emit("canceledmultiple",[y]));if(this.options.autoProcessQueue)return this.processQueue()}},{key:"resolveOption",value:function(y){if(typeof y=="function"){for(var x=arguments.length,k=new Array(x>1?x-1:0),B=1;B<x;B++)k[B-1]=arguments[B];return y.apply(this,k)}return y}},{key:"uploadFile",value:function(y){return this.uploadFiles([y])}},{key:"uploadFiles",value:function(y){var x=this;this._transformFiles(y,function(k){if(x.options.chunking){var B=k[0];y[0].upload.chunked=x.options.chunking&&(x.options.forceChunking||B.size>x.options.chunkSize),y[0].upload.totalChunkCount=Math.ceil(B.size/x.options.chunkSize)}if(y[0].upload.chunked){var U=y[0],$=k[0];U.upload.chunks=[];var W=function(){for(var ae=0;U.upload.chunks[ae]!==void 0;)ae++;if(!(ae>=U.upload.totalChunkCount)){var fe=ae*x.options.chunkSize,Ae=Math.min(fe+x.options.chunkSize,$.size),De={name:x._getParamName(0),data:$.webkitSlice?$.webkitSlice(fe,Ae):$.slice(fe,Ae),filename:U.upload.filename,chunkIndex:ae};U.upload.chunks[ae]={file:U,index:ae,dataBlock:De,status:A.UPLOADING,progress:0,retries:0},x._uploadData(y,[De])}};if(U.upload.finishedChunkUpload=function(ne,ae){var fe=!0;ne.status=A.SUCCESS,ne.dataBlock=null,ne.xhr=null;for(var Ae=0;Ae<U.upload.totalChunkCount;Ae++){if(U.upload.chunks[Ae]===void 0)return W();U.upload.chunks[Ae].status!==A.SUCCESS&&(fe=!1)}fe&&x.options.chunksUploaded(U,function(){x._finished(y,ae,null)})},x.options.parallelChunkUploads)for(var Z=0;Z<U.upload.totalChunkCount;Z++)W();else W()}else{for(var Y=[],Q=0;Q<y.length;Q++)Y[Q]={name:x._getParamName(Q),data:k[Q],filename:y[Q].upload.filename};x._uploadData(y,Y)}})}},{key:"_getChunk",value:function(y,x){for(var k=0;k<y.upload.totalChunkCount;k++)if(y.upload.chunks[k]!==void 0&&y.upload.chunks[k].xhr===x)return y.upload.chunks[k]}},{key:"_uploadData",value:function(y,x){var k=this,B=new XMLHttpRequest,U=M(y),$;try{for(U.s();!($=U.n()).done;){var W=$.value;W.xhr=B}}catch(Pe){U.e(Pe)}finally{U.f()}y[0].upload.chunked&&(y[0].upload.chunks[x[0].chunkIndex].xhr=B);var Z=this.resolveOption(this.options.method,y),Y=this.resolveOption(this.options.url,y);B.open(Z,Y,!0);var Q=this.resolveOption(this.options.timeout,y);Q&&(B.timeout=this.resolveOption(this.options.timeout,y)),B.withCredentials=!!this.options.withCredentials,B.onload=function(Pe){k._finishedUploading(y,B,Pe)},B.ontimeout=function(){k._handleUploadError(y,B,"Request timedout after ".concat(k.options.timeout/1e3," seconds"))},B.onerror=function(){k._handleUploadError(y,B)};var ne=B.upload!=null?B.upload:B;ne.onprogress=function(Pe){return k._updateFilesUploadProgress(y,B,Pe)};var ae={Accept:"application/json","Cache-Control":"no-cache","X-Requested-With":"XMLHttpRequest"};this.options.headers&&A.extend(ae,this.options.headers);for(var fe in ae){var Ae=ae[fe];Ae&&B.setRequestHeader(fe,Ae)}var De=new FormData;if(this.options.params){var Ge=this.options.params;typeof Ge=="function"&&(Ge=Ge.call(this,y,B,y[0].upload.chunked?this._getChunk(y[0],B):null));for(var je in Ge){var Be=Ge[je];if(Array.isArray(Be))for(var Ve=0;Ve<Be.length;Ve++)De.append(je,Be[Ve]);else De.append(je,Be)}}var rt=M(y),it;try{for(rt.s();!(it=rt.n()).done;){var Dt=it.value;this.emit("sending",Dt,B,De)}}catch(Pe){rt.e(Pe)}finally{rt.f()}this.options.uploadMultiple&&this.emit("sendingmultiple",y,B,De),this._addFormElementData(De);for(var bt=0;bt<x.length;bt++){var _e=x[bt];De.append(_e.name,_e.data,_e.filename)}this.submitRequest(B,De,y)}},{key:"_transformFiles",value:function(y,x){for(var k=this,B=[],U=0,$=function(Y){k.options.transformFile.call(k,y[Y],function(Q){B[Y]=Q,++U===y.length&&x(B)})},W=0;W<y.length;W++)$(W)}},{key:"_addFormElementData",value:function(y){if(this.element.tagName==="FORM"){var x=M(this.element.querySelectorAll("input, textarea, select, button")),k;try{for(x.s();!(k=x.n()).done;){var B=k.value,U=B.getAttribute("name"),$=B.getAttribute("type");if($&&($=$.toLowerCase()),!(typeof U>"u"||U===null))if(B.tagName==="SELECT"&&B.hasAttribute("multiple")){var W=M(B.options,!0),Z;try{for(W.s();!(Z=W.n()).done;){var Y=Z.value;Y.selected&&y.append(U,Y.value)}}catch(Q){W.e(Q)}finally{W.f()}}else(!$||$!=="checkbox"&&$!=="radio"||B.checked)&&y.append(U,B.value)}}catch(Q){x.e(Q)}finally{x.f()}}}},{key:"_updateFilesUploadProgress",value:function(y,x,k){if(y[0].upload.chunked){var W=y[0],Z=this._getChunk(W,x);k?(Z.progress=100*k.loaded/k.total,Z.total=k.total,Z.bytesSent=k.loaded):(Z.progress=100,Z.bytesSent=Z.total),W.upload.progress=0,W.upload.total=0,W.upload.bytesSent=0;for(var Y=0;Y<W.upload.totalChunkCount;Y++)W.upload.chunks[Y]&&typeof W.upload.chunks[Y].progress<"u"&&(W.upload.progress+=W.upload.chunks[Y].progress,W.upload.total+=W.upload.chunks[Y].total,W.upload.bytesSent+=W.upload.chunks[Y].bytesSent);W.upload.progress=W.upload.progress/W.upload.totalChunkCount,this.emit("uploadprogress",W,W.upload.progress,W.upload.bytesSent)}else{var B=M(y),U;try{for(B.s();!(U=B.n()).done;){var $=U.value;$.upload.total&&$.upload.bytesSent&&$.upload.bytesSent==$.upload.total||(k?($.upload.progress=100*k.loaded/k.total,$.upload.total=k.total,$.upload.bytesSent=k.loaded):($.upload.progress=100,$.upload.bytesSent=$.upload.total),this.emit("uploadprogress",$,$.upload.progress,$.upload.bytesSent))}}catch(Q){B.e(Q)}finally{B.f()}}}},{key:"_finishedUploading",value:function(y,x,k){var B;if(y[0].status!==A.CANCELED&&x.readyState===4){if(x.responseType!=="arraybuffer"&&x.responseType!=="blob"&&(B=x.responseText,x.getResponseHeader("content-type")&&~x.getResponseHeader("content-type").indexOf("application/json")))try{B=JSON.parse(B)}catch(U){k=U,B="Invalid JSON response from server."}this._updateFilesUploadProgress(y,x),200<=x.status&&x.status<300?y[0].upload.chunked?y[0].upload.finishedChunkUpload(this._getChunk(y[0],x),B):this._finished(y,B,k):this._handleUploadError(y,x,B)}}},{key:"_handleUploadError",value:function(y,x,k){if(y[0].status!==A.CANCELED){if(y[0].upload.chunked&&this.options.retryChunks){var B=this._getChunk(y[0],x);if(B.retries++<this.options.retryChunksLimit){this._uploadData(y,[B.dataBlock]);return}else console.warn("Retried this chunk too often. Giving up.")}this._errorProcessing(y,k||this.options.dictResponseError.replace("{{statusCode}}",x.status),x)}}},{key:"submitRequest",value:function(y,x,k){if(y.readyState!=1){console.warn("Cannot send this request because the XMLHttpRequest.readyState is not OPENED.");return}y.send(x)}},{key:"_finished",value:function(y,x,k){var B=M(y),U;try{for(B.s();!(U=B.n()).done;){var $=U.value;$.status=A.SUCCESS,this.emit("success",$,x,k),this.emit("complete",$)}}catch(W){B.e(W)}finally{B.f()}if(this.options.uploadMultiple&&(this.emit("successmultiple",y,x,k),this.emit("completemultiple",y)),this.options.autoProcessQueue)return this.processQueue()}},{key:"_errorProcessing",value:function(y,x,k){var B=M(y),U;try{for(B.s();!(U=B.n()).done;){var $=U.value;$.status=A.ERROR,this.emit("error",$,x,k),this.emit("complete",$)}}catch(W){B.e(W)}finally{B.f()}if(this.options.uploadMultiple&&(this.emit("errormultiple",y,x,k),this.emit("completemultiple",y)),this.options.autoProcessQueue)return this.processQueue()}}],[{key:"initClass",value:function(){this.prototype.Emitter=f,this.prototype.events=["drop","dragstart","dragend","dragenter","dragover","dragleave","addedfile","addedfiles","removedfile","thumbnail","error","errormultiple","processing","processingmultiple","uploadprogress","totaluploadprogress","sending","sendingmultiple","success","successmultiple","canceled","canceledmultiple","complete","completemultiple","reset","maxfilesexceeded","maxfilesreached","queuecomplete"],this.prototype._thumbnailQueue=[],this.prototype._processingThumbnail=!1}},{key:"extend",value:function(y){for(var x=arguments.length,k=new Array(x>1?x-1:0),B=1;B<x;B++)k[B-1]=arguments[B];for(var U=0,$=k;U<$.length;U++){var W=$[U];for(var Z in W){var Y=W[Z];y[Z]=Y}}return y}},{key:"uuidv4",value:function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(y){var x=Math.random()*16|0,k=y==="x"?x:x&3|8;return k.toString(16)})}}]),A}(f);q.initClass(),q.version="5.9.3",q.options={},q.optionsForElement=function(N){if(N.getAttribute("id"))return q.options[te(N.getAttribute("id"))]},q.instances=[],q.forElement=function(N){if(typeof N=="string"&&(N=document.querySelector(N)),(N!=null?N.dropzone:void 0)==null)throw new Error("No Dropzone found for given element. This is probably because you're trying to access it before Dropzone had the time to initialize. Use the `init` option to setup any additional observers on your Dropzone.");return N.dropzone},q.autoDiscover=!0,q.discover=function(){var N;if(document.querySelectorAll)N=document.querySelectorAll(".dropzone");else{N=[];var I=function(C){return function(){var y=[],x=M(C),k;try{for(x.s();!(k=x.n()).done;){var B=k.value;/(^| )dropzone($| )/.test(B.className)?y.push(N.push(B)):y.push(void 0)}}catch(U){x.e(U)}finally{x.f()}return y}()};I(document.getElementsByTagName("div")),I(document.getElementsByTagName("form"))}return function(){var A=[],C=M(N),y;try{for(C.s();!(y=C.n()).done;){var x=y.value;q.optionsForElement(x)!==!1?A.push(new q(x)):A.push(void 0)}}catch(k){C.e(k)}finally{C.f()}return A}()},q.blockedBrowsers=[/opera.*(Macintosh|Windows Phone).*version\/12/i],q.isBrowserSupported=function(){var N=!0;if(window.File&&window.FileReader&&window.FileList&&window.Blob&&window.FormData&&document.querySelector)if(!("classList"in document.createElement("a")))N=!1;else{q.blacklistedBrowsers!==void 0&&(q.blockedBrowsers=q.blacklistedBrowsers);var I=M(q.blockedBrowsers),A;try{for(I.s();!(A=I.n()).done;){var C=A.value;if(C.test(navigator.userAgent)){N=!1;continue}}}catch(y){I.e(y)}finally{I.f()}}else N=!1;return N},q.dataURItoBlob=function(N){for(var I=atob(N.split(",")[1]),A=N.split(",")[0].split(":")[1].split(";")[0],C=new ArrayBuffer(I.length),y=new Uint8Array(C),x=0,k=I.length,B=0<=k;B?x<=k:x>=k;B?x++:x--)y[x]=I.charCodeAt(x);return new Blob([C],{type:A})};var J=function(I,A){return I.filter(function(C){return C!==A}).map(function(C){return C})},te=function(I){return I.replace(/[\-_](\w)/g,function(A){return A.charAt(1).toUpperCase()})};q.createElement=function(N){var I=document.createElement("div");return I.innerHTML=N,I.childNodes[0]},q.elementInside=function(N,I){if(N===I)return!0;for(;N=N.parentNode;)if(N===I)return!0;return!1},q.getElement=function(N,I){var A;if(typeof N=="string"?A=document.querySelector(N):N.nodeType!=null&&(A=N),A==null)throw new Error("Invalid `".concat(I,"` option provided. Please provide a CSS selector or a plain HTML element."));return A},q.getElements=function(N,I){var A,C;if(N instanceof Array){C=[];try{var y=M(N,!0),x;try{for(y.s();!(x=y.n()).done;)A=x.value,C.push(this.getElement(A,I))}catch(U){y.e(U)}finally{y.f()}}catch{C=null}}else if(typeof N=="string"){C=[];var k=M(document.querySelectorAll(N)),B;try{for(k.s();!(B=k.n()).done;)A=B.value,C.push(A)}catch(U){k.e(U)}finally{k.f()}}else N.nodeType!=null&&(C=[N]);if(C==null||!C.length)throw new Error("Invalid `".concat(I,"` option provided. Please provide a CSS selector, a plain HTML element or a list of those."));return C},q.confirm=function(N,I,A){if(window.confirm(N))return I();if(A!=null)return A()},q.isValidFile=function(N,I){if(!I)return!0;I=I.split(",");var A=N.type,C=A.replace(/\/.*$/,""),y=M(I),x;try{for(y.s();!(x=y.n()).done;){var k=x.value;if(k=k.trim(),k.charAt(0)==="."){if(N.name.toLowerCase().indexOf(k.toLowerCase(),N.name.length-k.length)!==-1)return!0}else if(/\/\*$/.test(k)){if(C===k.replace(/\/.*$/,""))return!0}else if(A===k)return!0}}catch(B){y.e(B)}finally{y.f()}return!1},typeof jQuery<"u"&&jQuery!==null&&(jQuery.fn.dropzone=function(N){return this.each(function(){return new q(this,N)})}),q.ADDED="added",q.QUEUED="queued",q.ACCEPTED=q.QUEUED,q.UPLOADING="uploading",q.PROCESSING=q.UPLOADING,q.CANCELED="canceled",q.ERROR="error",q.SUCCESS="success";var me=function(I){I.naturalWidth;var A=I.naturalHeight,C=document.createElement("canvas");C.width=1,C.height=A;var y=C.getContext("2d");y.drawImage(I,0,0);for(var x=y.getImageData(1,0,1,A),k=x.data,B=0,U=A,$=A;$>B;){var W=k[($-1)*4+3];W===0?U=$:B=$,$=U+B>>1}var Z=$/A;return Z===0?1:Z},ge=function(I,A,C,y,x,k,B,U,$,W){var Z=me(A);return I.drawImage(A,C,y,x,k,B,U,$,W/Z)},ve=function(){function N(){H(this,N)}return G(N,null,[{key:"initClass",value:function(){this.KEY_STR="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}},{key:"encode64",value:function(A){for(var C="",y=void 0,x=void 0,k="",B=void 0,U=void 0,$=void 0,W="",Z=0;y=A[Z++],x=A[Z++],k=A[Z++],B=y>>2,U=(y&3)<<4|x>>4,$=(x&15)<<2|k>>6,W=k&63,isNaN(x)?$=W=64:isNaN(k)&&(W=64),C=C+this.KEY_STR.charAt(B)+this.KEY_STR.charAt(U)+this.KEY_STR.charAt($)+this.KEY_STR.charAt(W),y=x=k="",B=U=$=W="",Z<A.length;);return C}},{key:"restore",value:function(A,C){if(!A.match("data:image/jpeg;base64,"))return C;var y=this.decode64(A.replace("data:image/jpeg;base64,","")),x=this.slice2Segments(y),k=this.exifManipulation(C,x);return"data:image/jpeg;base64,".concat(this.encode64(k))}},{key:"exifManipulation",value:function(A,C){var y=this.getExifArray(C),x=this.insertExif(A,y),k=new Uint8Array(x);return k}},{key:"getExifArray",value:function(A){for(var C=void 0,y=0;y<A.length;){if(C=A[y],C[0]===255&C[1]===225)return C;y++}return[]}},{key:"insertExif",value:function(A,C){var y=A.replace("data:image/jpeg;base64,",""),x=this.decode64(y),k=x.indexOf(255,3),B=x.slice(0,k),U=x.slice(k),$=B;return $=$.concat(C),$=$.concat(U),$}},{key:"slice2Segments",value:function(A){for(var C=0,y=[];;){var x;if(A[C]===255&A[C+1]===218)break;if(A[C]===255&A[C+1]===216)C+=2;else{x=A[C+2]*256+A[C+3];var k=C+x+2,B=A.slice(C,k);y.push(B),C=k}if(C>A.length)break}return y}},{key:"decode64",value:function(A){var C=void 0,y=void 0,x="",k=void 0,B=void 0,U=void 0,$="",W=0,Z=[],Y=/[^A-Za-z0-9\+\/\=]/g;for(Y.exec(A)&&console.warn(`There were invalid base64 characters in the input text.
1
+ (function(Ye,a){typeof exports=="object"&&typeof module<"u"?a(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],a):(Ye=typeof globalThis<"u"?globalThis:Ye||self,a(Ye.PageBuilder={},Ye.Vue))})(this,function(Ye,a){"use strict";var bx=Object.defineProperty;var xx=(Ye,a,Xn)=>a in Ye?bx(Ye,a,{enumerable:!0,configurable:!0,writable:!0,value:Xn}):Ye[a]=Xn;var Ee=(Ye,a,Xn)=>xx(Ye,typeof a!="symbol"?a+"":a,Xn);const Xn={xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"};function ru(n,e){return a.openBlock(),a.createElementBlock("svg",Xn,e[0]||(e[0]=[a.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m9 18 6-6-6-6"},null,-1)]))}const ni={render:ru},su={xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"};function iu(n,e){return a.openBlock(),a.createElementBlock("svg",su,e[0]||(e[0]=[a.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m6 9 6 6 6-6"},null,-1)]))}const ou={render:iu},Sr=(n,e)=>{const t=n.__vccOpts||n;for(const[r,s]of e)t[r]=s;return t},au={};function lu(n,e){return e[0]||(e[0]=a.createStaticVNode('<div class="text-lg pb-6 font-semibold text-gray-900 border-b border-gray-200">Instruction</div><div class="flex flex-col gap-3 py-6 text-gray-600"><div class="font-semibold text-gray-900">Modules</div><p>Modules are fixed and for internal reference only, and admin users cannot make the following changes:</p><ul class="list-inside list-disc pl-3"><li>Edit the title of any module (e.g., &quot;Hero header&quot;).</li><li>Change the order of the modules.</li><li>Add new module.</li></ul><p>For any changes at the module level, please contact the development team.</p></div><div class="flex flex-col gap-3 py-6 text-gray-600"><div class="font-semibold text-gray-900">Edit sub-modules or edit nested items</div><p>Click any sub-module to edit its settings and any nested items within it.</p></div>',3))}const cu=Sr(au,[["render",lu]]),uu={xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"};function du(n,e){return a.openBlock(),a.createElementBlock("svg",uu,e[0]||(e[0]=[a.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 5v14m-7-7h14"},null,-1)]))}const ns={render:du},Tr={data:{required:!0,type:Object},sites:{required:!0,type:Array}};function fu(n){return n.charAt(0).toUpperCase()+n.slice(1)}function ri(n,e=!1){const t={children:"child",people:"person",mice:"mouse",feet:"foot",teeth:"tooth",geese:"goose"};n=n.replace(/_/g," ");let r=Object.keys(t).find(s=>s===n)?t[n]:n.endsWith("s")?n.slice(0,-1):n;return e&&(r=r.charAt(0).toUpperCase()+r.slice(1)),r}function si(n,e=!0){if(!n)return"";const t=n.split("_").pop();return e?fu(t):t}function qo(n={},e=!0){let t={title:"New Item",description:"New description",public:!1,featured_image:"",primary_button:{show:!1,label:"",type:"site-content",url:"",is_new_tab:!1,...n.primary_button||{}}};return e||(t.primary_button.name="Linked to"),e&&(t.secondary_button={show:!1,label:"",type:"site-content",url:"",is_new_tab:!1,...n.secondary_button||{}}),{...t,...n}}function hu(n={}){return{title:"New link",url:"",open_in_new_tab:!0,type:"site-content",...n||{}}}const pu={xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"};function mu(n,e){return a.openBlock(),a.createElementBlock("svg",pu,e[0]||(e[0]=[a.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 13a1 1 0 1 0 0-2 1 1 0 0 0 0 2M19 13a1 1 0 1 0 0-2 1 1 0 0 0 0 2M5 13a1 1 0 1 0 0-2 1 1 0 0 0 0 2"},null,-1)]))}const gu={render:mu},vu={xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"};function yu(n,e){return a.openBlock(),a.createElementBlock("svg",vu,e[0]||(e[0]=[a.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M16 6v-.8c0-1.12 0-1.68-.218-2.108a2 2 0 0 0-.874-.874C14.48 2 13.92 2 12.8 2h-1.6c-1.12 0-1.68 0-2.108.218a2 2 0 0 0-.874.874C8 3.52 8 4.08 8 5.2V6m2 5.5v5m4-5v5M3 6h18m-2 0v11.2c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C16.72 22 15.88 22 14.2 22H9.8c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C5 19.72 5 18.88 5 17.2V6"},null,-1)]))}const zo={render:yu},bu={xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"};function xu(n,e){return a.openBlock(),a.createElementBlock("svg",bu,e[0]||(e[0]=[a.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m2.5 21.5 5.55-2.134c.354-.137.532-.205.698-.294q.221-.12.42-.274c.149-.115.283-.25.552-.518L21 7a2.828 2.828 0 1 0-4-4L5.72 14.28c-.269.268-.403.403-.519.552a3 3 0 0 0-.273.42c-.089.166-.157.344-.294.699zm0 0 2.058-5.351c.147-.383.221-.575.347-.662a.5.5 0 0 1 .38-.08c.15.028.295.173.585.463l2.26 2.26c.29.29.435.434.464.585a.5.5 0 0 1-.08.38c-.089.126-.28.2-.663.347z"},null,-1)]))}const Eu={render:xu},wu={beforeMount:(n,e)=>{n.clickOutsideEvent=t=>{n===t.target||n.contains(t.target)||e.value()},document.addEventListener("click",n.clickOutsideEvent)},unmounted:n=>{document.removeEventListener("click",n.clickOutsideEvent)}},Au={class:"relative z-50"},Su={key:0,class:"absolute -left-60 top-6 w-[240px] rounded-lg border border-gray-200 bg-white text-sm"},ii=Object.assign({directives:{clickOutside:wu}},{__name:"ActionMenu",props:{enableEdit:{type:Boolean,default:!1}},emits:["removeItem"],setup(n,{emit:e}){const t=a.ref(!1),r=e,s=()=>{t.value&&(t.value=!1)},l=()=>{r("removeItem"),t.value=!1},o=()=>{r("editItem"),t.value=!1};return(c,i)=>{const u=a.resolveDirective("click-outside");return a.withDirectives((a.openBlock(),a.createElementBlock("div",Au,[a.createElementVNode("div",{class:"cursor-pointer text-gray-600 rounded-full hover:bg-gray-50 p-2.5 block",onClick:i[0]||(i[0]=d=>t.value=!t.value)},[a.createVNode(a.unref(gu),{class:"w-5"})]),t.value?(a.openBlock(),a.createElementBlock("div",Su,[n.enableEdit?(a.openBlock(),a.createElementBlock("a",{key:0,class:"flex items-center gap-2 px-2.5 cursor-pointer h-[48px] w-auto hover:bg-gray-100 rounded-lg m-1.5 text-gray-700",onClick:o},[a.createVNode(a.unref(Eu),{class:"w-4 text-gray-500"}),i[1]||(i[1]=a.createElementVNode("span",{class:"font-medium"}," Edit ",-1))])):a.createCommentVNode("",!0),a.createElementVNode("a",{class:"flex items-center gap-2 px-2.5 cursor-pointer h-[48px] w-auto hover:bg-gray-100 rounded-lg m-1.5 text-gray-700",onClick:l},[a.createVNode(a.unref(zo),{class:"w-4 text-gray-500"}),i[2]||(i[2]=a.createElementVNode("span",{class:"font-medium"}," Delete ",-1))])])):a.createCommentVNode("",!0)])),[[u,s]])}}}),Tu={xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"};function Nu(n,e){return a.openBlock(),a.createElementBlock("svg",Tu,e[0]||(e[0]=[a.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M18 6 6 18M6 6l12 12"},null,-1)]))}const Ou={render:Nu},Cu={key:0,class:"fixed min-w-[400px] left-1/2 top-1/2 z-50 flex max-h-screen -translate-x-1/2 -translate-y-1/2 transform flex-col rounded-xl border-tertiary-500 bg-white"},ku={class:"p-6 flex justify-between flex-col"},Ru={class:"flex justify-between"},Iu={class:"p-2 rounded-full border-8 border-error-50 bg-error-100 text-error-600"},Lu={class:"text-lg font-semibold text-gray-900 pb-2 pt-4"},Bu={class:"text-sm text-gray-600 pb-4"},Pu={class:"flex justify-between space-x-xsSpace pt-xsSpace gap-4"},Fu=["textContent"],Mu=["textContent"],oi=Sr(a.defineComponent({__name:"VModal",props:{entity:{type:String,required:!0},callback:{type:Function,required:!1,default:()=>{}}},setup(n,{expose:e}){const t=n,r=a.ref(!1),s=a.reactive({cancelTitle:null,confirmTitle:null,scrollable:!0,data:null}),l=a.computed(()=>s.cancelTitle?s.cancelTitle:"Cancel"),o=a.computed(()=>s.confirmTitle?s.confirmTitle:"Delete"),c=d=>{r.value=!0,s.data=d},i=()=>{r.value=!1},u=async()=>{t.callback(s.data),r.value=!1};return e({open:c,close:i}),(d,h)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass([{"-open":r.value},"v-modal"])},[a.createVNode(a.Transition,{name:"fade"},{default:a.withCtx(()=>[r.value?(a.openBlock(),a.createElementBlock("div",Cu,[a.renderSlot(d.$slots,"default",{},()=>[a.createElementVNode("div",{class:a.normalizeClass(["relative min-h-[260px] overflow-y-auto flex",{"overflow-y-visible":!d.scrollable}])},[a.createElementVNode("div",ku,[a.createElementVNode("div",null,[a.createElementVNode("div",Ru,[a.createElementVNode("span",Iu,[a.createVNode(a.unref(zo),{class:"w-6 h-6"})]),a.createVNode(a.unref(Ou),{class:"w-6 h-6 text-gray-400 hover:bg-gray-100 rounded-md cursor-pointer",onClick:i})]),a.createElementVNode("h4",Lu,"Delete this "+a.toDisplayString(n.entity)+"?",1),a.createElementVNode("p",Bu,"Do you want to delete this "+a.toDisplayString(n.entity)+"? This action cannot be undone.",1)]),a.createElementVNode("div",Pu,[a.createElementVNode("a",{onClick:i,class:"w-1/2 py-[9px] rounded-full border border-gray-300 shadow-xs text-md font-semibold hover:bg-gray-100 text-gray-700 text-center cursor-pointer",textContent:a.toDisplayString(l.value)},null,8,Fu),a.createElementVNode("a",{onClick:a.withModifiers(u,["prevent"]),class:"w-1/2 py-[9px] rounded-full shadow-xs text-md font-semibold text-white bg-error-600 hover:bg-error-700 border border-error-600 text-center cursor-pointer",textContent:a.toDisplayString(o.value)},null,8,Mu)])])],2)],!0)])):a.createCommentVNode("",!0)]),_:3})],2))}}),[["__scopeId","data-v-0ca1257f"]]),Du={class:"flex justify-between pb-2"},Uu={class:"text-lg font-semibold text-gray-900"},ju={class:"flex flex-col gap-4"},Vu={class:"text-gray-600 border-b border-gray-200 pb-4 text-sm"},$u={class:"flex flex-col gap-3"},_u={class:"flex justify-between"},qu={class:"flex flex-col gap-1"},zu={class:"font-semibold text-gray-900"},Hu={class:"text-sm text-gray-600"},Gu=["disabled"],Wu={class:"flex flex-col gap-3"},Ku=["onClick"],Xu=["onClick"],Yu={class:"text-xs text-gray-600"},Zu={class:"text-sm font-medium text-gray-900"},Ho={__name:"VItems",props:{...Tr},emits:["update"],setup(n,{emit:e}){const t=e,r=n,s=a.ref(r.data.component),l=s.value.type,o=a.ref(null),c=`${l.value}-openItemStates`,i=a.ref(JSON.parse(window.localStorage.getItem(c)));i.value||(i.value={},s.value.data.forEach((p,v)=>{i.value[v]=!1}),window.localStorage.setItem(c,JSON.stringify(i.value)));const u=p=>{Object.keys(i.value).forEach(v=>{i.value[v]=!1}),i.value[p]=!i.value[p],window.localStorage.setItem(c,JSON.stringify(i.value))},d=()=>{console.log(qo({},l.value==="sliders")),s.value.data.push(qo({},l.value==="sliders")),t("update",!1)},h=p=>{var v;(v=o==null?void 0:o.value)==null||v.open(p)},f=p=>{s.value.data.splice(p,1),t("update",!1)},g=(p,v)=>{var b,S,T,k;p.hasOwnProperty("edit_url")&&(window.location.href=p.edit_url),window.location.href=`/admin/pages/${(S=(b=r==null?void 0:r.data)==null?void 0:b.page)==null?void 0:S.id}/sections/${(T=r==null?void 0:r.data)==null?void 0:T.sectionIndex}/components/${(k=r==null?void 0:r.data)==null?void 0:k.componentIndex}/items/${v}`};return(p,v)=>(a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createElementVNode("div",Du,[a.createElementVNode("p",Uu,a.toDisplayString(s.value.name),1)]),a.createElementVNode("div",ju,[a.createElementVNode("div",Vu,a.toDisplayString(s.value.supportive_text),1),a.createElementVNode("div",$u,[a.createElementVNode("div",_u,[a.createElementVNode("div",qu,[a.createElementVNode("div",zu,a.toDisplayString(a.unref(si)(a.unref(l))),1),a.createElementVNode("div",Hu,"This "+a.toDisplayString(a.unref(ri)(a.unref(l)))+" can contain up to "+a.toDisplayString(s.value.max_items)+" "+a.toDisplayString(a.unref(si)(a.unref(l),!1)),1)]),a.createElementVNode("div",null,[a.createElementVNode("button",{disabled:s.value.data.length>=s.value.max_items,onClick:d,type:"button",class:a.normalizeClass(["text-sm cursor-pointer flex items-center justify-center gap-1 rounded-[99px] border border-brand-600 bg-brand-500 px-3.5 py-2 font-semibold text-white hover:bg-brand-600",{"border-gray-100 bg-gray-100 !text-gray-400 hover:bg-gray-100":s.value.data.length>=s.value.max_items}])},[a.createVNode(a.unref(ns),{class:"h-5 w-5"}),v[0]||(v[0]=a.createElementVNode("span",null,"Add",-1))],10,Gu)])]),a.createElementVNode("div",Wu,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(s.value.data,(b,S)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["flex items-center gap-4 px-2 py-1 hover:bg-gray-100 rounded-lg",{"bg-gray-200 hover:bg-gray-200":i.value[S]}])},[a.createElementVNode("div",{class:"flex flex-1 items-center justify-between relative",onClick:T=>{u(S)}},[a.createElementVNode("div",{class:"flex flex-1 flex-col cursor-pointer",onClick:T=>g(b,S)},[a.createElementVNode("div",Yu,a.toDisplayString(a.unref(ri)(a.unref(si)(a.unref(l))))+" #"+a.toDisplayString(S+1),1),a.createElementVNode("div",Zu,a.toDisplayString(b.title),1)],8,Xu),a.createVNode(ii,{onRemoveItem:T=>h(S),"enable-edit":!0,onEditItem:T=>g(b,S)},null,8,["onRemoveItem","onEditItem"])],8,Ku)],2))),256))])])]),a.createVNode(oi,{ref_key:"modalRef",ref:o,entity:a.unref(ri)(a.unref(l)),callback:f},null,8,["entity"])],64))}},Qu=["for"],Ju={key:0,class:"v-field-label inline-block mb-2"},ed={key:0},td={key:1,class:"absolute right-0 -bottom-6 text-sm text-gray-600 font-normal"},nd={key:2,class:"absolute left-0 -bottom-6 text-sm text-gray-600 font-normal"},Qt={__name:"InputWrapper",props:{field:{type:String,required:!0},labelText:{type:String,default:""},value:{type:[String,Number],default:""},limit:{type:Number,default:null},showCount:{type:Boolean,default:!1},darkTheme:{type:Boolean,default:!1},isRequired:{type:Boolean,default:!1}},setup(n){return(e,t)=>{var r;return a.openBlock(),a.createElementBlock("label",{for:n.field,class:"block space-y-2xsSpace text-sm font-medium leading-none text-gray-700 relative"},[n.labelText||e.$slots.label?(a.openBlock(),a.createElementBlock("span",Ju,[e.$slots.label?a.renderSlot(e.$slots,"label",{key:0}):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createTextVNode(a.toDisplayString(n.labelText)+" ",1),n.isRequired?(a.openBlock(),a.createElementBlock("span",ed," *")):a.createCommentVNode("",!0)],64))])):a.createCommentVNode("",!0),a.renderSlot(e.$slots,"default"),n.limit?(a.openBlock(),a.createElementBlock("span",td,a.toDisplayString((r=n.value)==null?void 0:r.length)+"/"+a.toDisplayString(n.limit)+" characters ",1)):a.createCommentVNode("",!0),n.showCount?(a.openBlock(),a.createElementBlock("span",nd," Word count: "+a.toDisplayString(n.value),1)):a.createCommentVNode("",!0)],8,Qu)}}},rd={class:"flex items-center gap-2"},sd=["aria-checked"],id={key:0,class:"text-sm text-gray-700 font-medium"},rs={__name:"VToggle",props:{modelValue:{type:[Number,Boolean]},title:{type:String},isDisabled:{type:Boolean},small:{type:Boolean},ring:{type:Boolean}},emits:"update:modelValue",setup(n,{emit:e}){const t=n,r=e,s=a.computed(()=>({"!bg-brand-700 hover:!bg-brand-700":t.modelValue,"!h-3 !w-6":t.small,"focus:outline-none focus:ring-2 focus:ring-brand-700 focus:ring-offset-2":t.ring!==!1})),l=()=>{t.isDisabled||r("update:modelValue",!t.modelValue)};return(o,c)=>(a.openBlock(),a.createElementBlock("div",rd,[a.createElementVNode("button",{type:"button",class:a.normalizeClass(["relative inline-flex h-5 w-10 flex-shrink-0 cursor-pointer rounded-full border-2 border-transparent bg-gray-100 transition-colors duration-200 ease-in-out",s.value]),role:"switch","aria-checked":n.modelValue,onClick:l},[a.createElementVNode("span",{"aria-hidden":"true",class:a.normalizeClass(["pointer-events-none inline-block h-4 w-4 transform rounded-full bg-white shadow ring-0 transition duration-200 ease-in-out",{"translate-x-5":n.modelValue,"translate-x-0":!n.modelValue,"!translate-x-3":n.small&&n.modelValue,"!h-2 !w-2":n.small}])},null,2)],10,sd),n.title?(a.openBlock(),a.createElementBlock("span",id,a.toDisplayString(n.title),1)):a.createCommentVNode("",!0)]))}},od={class:"flex flex-col gap-2"},ad=["value"],ld={__name:"SiteContent",props:a.mergeModels({sites:{type:Object,required:!0},errors:{type:Object,required:!1,default:()=>({})}},{url:{},urlModifiers:{}}),emits:["update:url"],setup(n){const e=a.useModel(n,"url");return(t,r)=>(a.openBlock(),a.createElementBlock("div",od,[r[1]||(r[1]=a.createElementVNode("label",{class:"text-sm font-medium text-gray-700"},"Select a page from the site*",-1)),a.withDirectives(a.createElementVNode("select",{"onUpdate:modelValue":r[0]||(r[0]=s=>e.value=s),name:"url"},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(n.sites,s=>(a.openBlock(),a.createElementBlock("option",{value:s.href},a.toDisplayString(s.name),9,ad))),256))],512),[[a.vModelSelect,e.value]])]))}},cd={__name:"ExternalPage",props:{url:{},urlModifiers:{}},emits:["update:url"],setup(n){const e=a.useModel(n,"url");return(t,r)=>(a.openBlock(),a.createBlock(Qt,{"is-vertical":"",field:"title","label-text":"URL *",class:"w-full"},{default:a.withCtx(()=>[a.withDirectives(a.createElementVNode("input",{"onUpdate:modelValue":r[0]||(r[0]=s=>e.value=s),name:"title",type:"text",placeholder:"Enter your url",class:"border-1 border-solid border-gray-300 rounded-lg bg-white w-full"},null,512),[[a.vModelText,e.value]])]),_:1}))}},ud={class:"flex flex-col gap-5"},dd={key:0,class:"text-sm text-gray-700 font-medium py-2"},fd={class:"text-sm flex items-center gap-6 font-medium text-gray-700"},hd={class:"flex items-center gap-2 cursor-pointer"},pd=["name","value","disabled"],md={class:"flex flex-col gap-2"},gd=["value"],vd={class:"flex items-center gap-2"},ss={__name:"LinkedTo",props:a.mergeModels({label:{type:String,required:!1},sites:{type:Object,required:!0},name:{type:String,required:!0},options:{type:Array,required:!1,default:["site-content","external-page"]}},{type:{default:"site-content"},typeModifiers:{},url:{},urlModifiers:{},openInNewTab:{},openInNewTabModifiers:{}}),emits:["update:type","update:url","update:openInNewTab"],setup(n){const e=a.useModel(n,"type"),t=a.useModel(n,"url"),r=a.useModel(n,"openInNewTab"),s=o=>o.split("-").map(c=>c.charAt(0).toUpperCase()+c.slice(1)).join(" "),l=o=>({"site-content":ld,"external-page":cd})[o]||null;return(o,c)=>(a.openBlock(),a.createElementBlock("div",ud,[a.createElementVNode("div",null,[n.label?(a.openBlock(),a.createElementBlock("p",dd,a.toDisplayString(n.label),1)):a.createCommentVNode("",!0),a.createElementVNode("div",fd,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(n.options,i=>(a.openBlock(),a.createElementBlock("label",hd,[a.withDirectives(a.createElementVNode("input",{name:n.name,type:"radio",value:i,"onUpdate:modelValue":c[0]||(c[0]=u=>e.value=u),class:"checked:bg-brand-600 hover:bg-brand-600 checked:hover:bg-brand-600 focus:bg-brand-600 focus:ring-brand-600 focus:checked:bg-brand-600 rounded-full",disabled:i==="form"},null,8,pd),[[a.vModelRadio,e.value]]),a.createElementVNode("span",null,a.toDisplayString(s(i)),1)]))),256))])]),a.createElementVNode("div",md,[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(l(e.value)),{url:t.value,"onUpdate:url":c[1]||(c[1]=i=>t.value=i),sites:n.sites},null,40,["url","sites"])),a.createElementVNode("input",{type:"hidden",name:"url",value:t.value},null,8,gd)]),a.createElementVNode("div",vd,[a.createVNode(rs,{class:"mb-1",name:"open_in_new_tab",modelValue:r.value,"onUpdate:modelValue":c[2]||(c[2]=i=>r.value=i),title:"Open in a new tab"},null,8,["modelValue"])])]))}},yd={class:"flex justify-between pb-2"},bd={class:"flex justify-between w-full py-1"},xd={class:"text-lg font-semibold text-gray-900"},Ed={class:"text-sm text-gray-600 mt-1"},wd={class:"flex flex-col gap-3"},Ad={class:"flex items-center justify-between"},Sd={class:"text-lg font-semibold text-gray-900"},Td={class:"relative flex items-end"},Nd={class:"flex flex-col gap-6"},Od={class:"flex flex-col gap-1.5"},Cd=["onUpdate:modelValue"],Go={__name:"VLinks",props:{...Tr},emits:["update"],setup(n,{emit:e}){const t=e,r=n,s=a.ref(r.data.component),l=a.ref(null),o=a.ref(null),c=a.ref(null);function i(){var h,f;s.value.hasOwnProperty("data")||(s.value.data=[]),!(((h=s.value.data)==null?void 0:h.length)>=s.value.max_items)&&((f=s.value.data)==null||f.push(hu()),a.nextTick(()=>{o.value&&o.value.scrollIntoView({behavior:"smooth"})}),t("update",!1))}const u=h=>{var f;c.value=h,(f=l==null?void 0:l.value)==null||f.open(h)},d=h=>{var f;(f=s.value.data)==null||f.splice(h,1),t("update",!1)};return(h,f)=>{var g;return a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createElementVNode("div",yd,[a.createElementVNode("div",bd,[a.createElementVNode("div",null,[a.createElementVNode("p",xd,a.toDisplayString(s.value.name),1),a.createElementVNode("p",Ed,a.toDisplayString(s.value.supportive_text),1)]),a.createElementVNode("div",null,[a.createElementVNode("a",{onClick:i,class:a.normalizeClass(["text-sm cursor-pointer flex items-center justify-center gap-1 rounded-[99px] border border-brand-600 bg-brand-500 px-3.5 py-2 font-semibold text-white hover:bg-brand-600",{"border-gray-100 bg-gray-100 !text-gray-400 hover:bg-gray-100":((g=s.value.data)==null?void 0:g.length)>=s.value.max_items}])},[a.createVNode(a.unref(ns),{class:"h-5 w-5"}),f[0]||(f[0]=a.createElementVNode("span",null,"Add",-1))],2)])])]),a.createElementVNode("div",wd,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(s.value.data,(p,v)=>(a.openBlock(),a.createElementBlock("div",{class:"flex flex-col gap-4 rounded-xl px-6 py-4 bg-gray-200",key:v,ref_for:!0,ref:v===s.value.data.length-1?b=>o.value=b:null},[a.createElementVNode("div",Ad,[a.createElementVNode("div",Sd," Link #"+a.toDisplayString(v+1),1),a.createElementVNode("div",Td,[a.createVNode(ii,{onRemoveItem:b=>u(v)},null,8,["onRemoveItem"])])]),a.createElementVNode("div",Nd,[a.createElementVNode("div",Od,[a.createVNode(Qt,{"is-vertical":"",field:"title","label-text":"Title *",class:"w-full mb-4",value:p.title,limit:20},{default:a.withCtx(()=>[a.withDirectives(a.createElementVNode("input",{"onUpdate:modelValue":b=>p.title=b,name:"title",type:"text",placeholder:"Title",maxlength:20,class:"border-1 border-solid border-gray-300 rounded-lg bg-white w-full"},null,8,Cd),[[a.vModelText,p.title]])]),_:2},1032,["value"]),a.createVNode(ss,{label:"Linked to",name:`link_${v+1}`,type:p.type,"onUpdate:type":b=>p.type=b,url:p.url,"onUpdate:url":b=>p.url=b,openInNewTab:p.open_in_new_tab,"onUpdate:openInNewTab":b=>p.open_in_new_tab=b,sites:h.sites},null,8,["name","type","onUpdate:type","url","onUpdate:url","openInNewTab","onUpdate:openInNewTab","sites"])])])]))),128))]),a.createVNode(oi,{ref_key:"modalRef",ref:l,entity:"link",callback:d},null,512)],64)}}},kd={class:"flex flex-col gap-4"},Rd={class:"text-lg font-semibold text-gray-900 border-b border-gray-200 pb-4"},Id=["maxlength"],Ld={__name:"VHeader",props:{...Tr},emits:["update"],setup(n,{emit:e}){const t=n,r=a.ref(t.data.component);return(s,l)=>(a.openBlock(),a.createElementBlock("div",kd,[a.createElementVNode("p",Rd,a.toDisplayString(r.value.name),1),r.value.hasOwnProperty("title")?(a.openBlock(),a.createBlock(Qt,{key:0,"is-vertical":"",field:"title","label-text":"Title *",class:"w-full mb-4",value:r.value.title,limit:51},{default:a.withCtx(()=>[a.withDirectives(a.createElementVNode("input",{"onUpdate:modelValue":l[0]||(l[0]=o=>r.value.title=o),name:"title",type:"text",placeholder:"Title",maxlength:51,class:"border-1 border-solid border-gray-300 rounded-lg bg-white w-full"},null,512),[[a.vModelText,r.value.title]])]),_:1},8,["value"])):a.createCommentVNode("",!0),r.value.hasOwnProperty("supporting_text")?(a.openBlock(),a.createBlock(Qt,{key:1,"is-vertical":"",field:"supporting_text","label-text":"Supporting Text *",class:"w-full mb-4",value:r.value.supporting_text,limit:r.value.supporting_text_max_length??100},{default:a.withCtx(()=>[a.withDirectives(a.createElementVNode("input",{"onUpdate:modelValue":l[1]||(l[1]=o=>r.value.supporting_text=o),name:"supporting_text",type:"text",placeholder:"Supporting Text",maxlength:r.value.supporting_text_max_length??100,class:"border-1 border-solid border-gray-300 rounded-lg bg-white w-full"},null,8,Id),[[a.vModelText,r.value.supporting_text]])]),_:1},8,["value","limit"])):a.createCommentVNode("",!0)]))}};function Wo(n,e){return function(){return n.apply(e,arguments)}}const{toString:Bd}=Object.prototype,{getPrototypeOf:ai}=Object,{iterator:is,toStringTag:Ko}=Symbol,os=(n=>e=>{const t=Bd.call(e);return n[t]||(n[t]=t.slice(8,-1).toLowerCase())})(Object.create(null)),jt=n=>(n=n.toLowerCase(),e=>os(e)===n),as=n=>e=>typeof e===n,{isArray:Yn}=Array,Nr=as("undefined");function Pd(n){return n!==null&&!Nr(n)&&n.constructor!==null&&!Nr(n.constructor)&&Tt(n.constructor.isBuffer)&&n.constructor.isBuffer(n)}const Xo=jt("ArrayBuffer");function Fd(n){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(n):e=n&&n.buffer&&Xo(n.buffer),e}const Md=as("string"),Tt=as("function"),Yo=as("number"),ls=n=>n!==null&&typeof n=="object",Dd=n=>n===!0||n===!1,cs=n=>{if(os(n)!=="object")return!1;const e=ai(n);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Ko in n)&&!(is in n)},Ud=jt("Date"),jd=jt("File"),Vd=jt("Blob"),$d=jt("FileList"),_d=n=>ls(n)&&Tt(n.pipe),qd=n=>{let e;return n&&(typeof FormData=="function"&&n instanceof FormData||Tt(n.append)&&((e=os(n))==="formdata"||e==="object"&&Tt(n.toString)&&n.toString()==="[object FormData]"))},zd=jt("URLSearchParams"),[Hd,Gd,Wd,Kd]=["ReadableStream","Request","Response","Headers"].map(jt),Xd=n=>n.trim?n.trim():n.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Or(n,e,{allOwnKeys:t=!1}={}){if(n===null||typeof n>"u")return;let r,s;if(typeof n!="object"&&(n=[n]),Yn(n))for(r=0,s=n.length;r<s;r++)e.call(null,n[r],r,n);else{const l=t?Object.getOwnPropertyNames(n):Object.keys(n),o=l.length;let c;for(r=0;r<o;r++)c=l[r],e.call(null,n[c],c,n)}}function Zo(n,e){e=e.toLowerCase();const t=Object.keys(n);let r=t.length,s;for(;r-- >0;)if(s=t[r],e===s.toLowerCase())return s;return null}const Ln=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Qo=n=>!Nr(n)&&n!==Ln;function li(){const{caseless:n}=Qo(this)&&this||{},e={},t=(r,s)=>{const l=n&&Zo(e,s)||s;cs(e[l])&&cs(r)?e[l]=li(e[l],r):cs(r)?e[l]=li({},r):Yn(r)?e[l]=r.slice():e[l]=r};for(let r=0,s=arguments.length;r<s;r++)arguments[r]&&Or(arguments[r],t);return e}const Yd=(n,e,t,{allOwnKeys:r}={})=>(Or(e,(s,l)=>{t&&Tt(s)?n[l]=Wo(s,t):n[l]=s},{allOwnKeys:r}),n),Zd=n=>(n.charCodeAt(0)===65279&&(n=n.slice(1)),n),Qd=(n,e,t,r)=>{n.prototype=Object.create(e.prototype,r),n.prototype.constructor=n,Object.defineProperty(n,"super",{value:e.prototype}),t&&Object.assign(n.prototype,t)},Jd=(n,e,t,r)=>{let s,l,o;const c={};if(e=e||{},n==null)return e;do{for(s=Object.getOwnPropertyNames(n),l=s.length;l-- >0;)o=s[l],(!r||r(o,n,e))&&!c[o]&&(e[o]=n[o],c[o]=!0);n=t!==!1&&ai(n)}while(n&&(!t||t(n,e))&&n!==Object.prototype);return e},ef=(n,e,t)=>{n=String(n),(t===void 0||t>n.length)&&(t=n.length),t-=e.length;const r=n.indexOf(e,t);return r!==-1&&r===t},tf=n=>{if(!n)return null;if(Yn(n))return n;let e=n.length;if(!Yo(e))return null;const t=new Array(e);for(;e-- >0;)t[e]=n[e];return t},nf=(n=>e=>n&&e instanceof n)(typeof Uint8Array<"u"&&ai(Uint8Array)),rf=(n,e)=>{const r=(n&&n[is]).call(n);let s;for(;(s=r.next())&&!s.done;){const l=s.value;e.call(n,l[0],l[1])}},sf=(n,e)=>{let t;const r=[];for(;(t=n.exec(e))!==null;)r.push(t);return r},of=jt("HTMLFormElement"),af=n=>n.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,r,s){return r.toUpperCase()+s}),Jo=(({hasOwnProperty:n})=>(e,t)=>n.call(e,t))(Object.prototype),lf=jt("RegExp"),ea=(n,e)=>{const t=Object.getOwnPropertyDescriptors(n),r={};Or(t,(s,l)=>{let o;(o=e(s,l,n))!==!1&&(r[l]=o||s)}),Object.defineProperties(n,r)},cf=n=>{ea(n,(e,t)=>{if(Tt(n)&&["arguments","caller","callee"].indexOf(t)!==-1)return!1;const r=n[t];if(Tt(r)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+t+"'")})}})},uf=(n,e)=>{const t={},r=s=>{s.forEach(l=>{t[l]=!0})};return Yn(n)?r(n):r(String(n).split(e)),t},df=()=>{},ff=(n,e)=>n!=null&&Number.isFinite(n=+n)?n:e;function hf(n){return!!(n&&Tt(n.append)&&n[Ko]==="FormData"&&n[is])}const pf=n=>{const e=new Array(10),t=(r,s)=>{if(ls(r)){if(e.indexOf(r)>=0)return;if(!("toJSON"in r)){e[s]=r;const l=Yn(r)?[]:{};return Or(r,(o,c)=>{const i=t(o,s+1);!Nr(i)&&(l[c]=i)}),e[s]=void 0,l}}return r};return t(n,0)},mf=jt("AsyncFunction"),gf=n=>n&&(ls(n)||Tt(n))&&Tt(n.then)&&Tt(n.catch),ta=((n,e)=>n?setImmediate:e?((t,r)=>(Ln.addEventListener("message",({source:s,data:l})=>{s===Ln&&l===t&&r.length&&r.shift()()},!1),s=>{r.push(s),Ln.postMessage(t,"*")}))(`axios@${Math.random()}`,[]):t=>setTimeout(t))(typeof setImmediate=="function",Tt(Ln.postMessage)),vf=typeof queueMicrotask<"u"?queueMicrotask.bind(Ln):typeof process<"u"&&process.nextTick||ta,ee={isArray:Yn,isArrayBuffer:Xo,isBuffer:Pd,isFormData:qd,isArrayBufferView:Fd,isString:Md,isNumber:Yo,isBoolean:Dd,isObject:ls,isPlainObject:cs,isReadableStream:Hd,isRequest:Gd,isResponse:Wd,isHeaders:Kd,isUndefined:Nr,isDate:Ud,isFile:jd,isBlob:Vd,isRegExp:lf,isFunction:Tt,isStream:_d,isURLSearchParams:zd,isTypedArray:nf,isFileList:$d,forEach:Or,merge:li,extend:Yd,trim:Xd,stripBOM:Zd,inherits:Qd,toFlatObject:Jd,kindOf:os,kindOfTest:jt,endsWith:ef,toArray:tf,forEachEntry:rf,matchAll:sf,isHTMLForm:of,hasOwnProperty:Jo,hasOwnProp:Jo,reduceDescriptors:ea,freezeMethods:cf,toObjectSet:uf,toCamelCase:af,noop:df,toFiniteNumber:ff,findKey:Zo,global:Ln,isContextDefined:Qo,isSpecCompliantForm:hf,toJSONObject:pf,isAsyncFn:mf,isThenable:gf,setImmediate:ta,asap:vf,isIterable:n=>n!=null&&Tt(n[is])};function Me(n,e,t,r,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=n,this.name="AxiosError",e&&(this.code=e),t&&(this.config=t),r&&(this.request=r),s&&(this.response=s,this.status=s.status?s.status:null)}ee.inherits(Me,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:ee.toJSONObject(this.config),code:this.code,status:this.status}}});const na=Me.prototype,ra={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(n=>{ra[n]={value:n}}),Object.defineProperties(Me,ra),Object.defineProperty(na,"isAxiosError",{value:!0}),Me.from=(n,e,t,r,s,l)=>{const o=Object.create(na);return ee.toFlatObject(n,o,function(i){return i!==Error.prototype},c=>c!=="isAxiosError"),Me.call(o,n.message,e,t,r,s),o.cause=n,o.name=n.name,l&&Object.assign(o,l),o};const yf=null;function ci(n){return ee.isPlainObject(n)||ee.isArray(n)}function sa(n){return ee.endsWith(n,"[]")?n.slice(0,-2):n}function ia(n,e,t){return n?n.concat(e).map(function(s,l){return s=sa(s),!t&&l?"["+s+"]":s}).join(t?".":""):e}function bf(n){return ee.isArray(n)&&!n.some(ci)}const xf=ee.toFlatObject(ee,{},null,function(e){return/^is[A-Z]/.test(e)});function us(n,e,t){if(!ee.isObject(n))throw new TypeError("target must be an object");e=e||new FormData,t=ee.toFlatObject(t,{metaTokens:!0,dots:!1,indexes:!1},!1,function(v,b){return!ee.isUndefined(b[v])});const r=t.metaTokens,s=t.visitor||d,l=t.dots,o=t.indexes,i=(t.Blob||typeof Blob<"u"&&Blob)&&ee.isSpecCompliantForm(e);if(!ee.isFunction(s))throw new TypeError("visitor must be a function");function u(p){if(p===null)return"";if(ee.isDate(p))return p.toISOString();if(!i&&ee.isBlob(p))throw new Me("Blob is not supported. Use a Buffer instead.");return ee.isArrayBuffer(p)||ee.isTypedArray(p)?i&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function d(p,v,b){let S=p;if(p&&!b&&typeof p=="object"){if(ee.endsWith(v,"{}"))v=r?v:v.slice(0,-2),p=JSON.stringify(p);else if(ee.isArray(p)&&bf(p)||(ee.isFileList(p)||ee.endsWith(v,"[]"))&&(S=ee.toArray(p)))return v=sa(v),S.forEach(function(k,F){!(ee.isUndefined(k)||k===null)&&e.append(o===!0?ia([v],F,l):o===null?v:v+"[]",u(k))}),!1}return ci(p)?!0:(e.append(ia(b,v,l),u(p)),!1)}const h=[],f=Object.assign(xf,{defaultVisitor:d,convertValue:u,isVisitable:ci});function g(p,v){if(!ee.isUndefined(p)){if(h.indexOf(p)!==-1)throw Error("Circular reference detected in "+v.join("."));h.push(p),ee.forEach(p,function(S,T){(!(ee.isUndefined(S)||S===null)&&s.call(e,S,ee.isString(T)?T.trim():T,v,f))===!0&&g(S,v?v.concat(T):[T])}),h.pop()}}if(!ee.isObject(n))throw new TypeError("data must be an object");return g(n),e}function oa(n){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(n).replace(/[!'()~]|%20|%00/g,function(r){return e[r]})}function ui(n,e){this._pairs=[],n&&us(n,this,e)}const aa=ui.prototype;aa.append=function(e,t){this._pairs.push([e,t])},aa.toString=function(e){const t=e?function(r){return e.call(this,r,oa)}:oa;return this._pairs.map(function(s){return t(s[0])+"="+t(s[1])},"").join("&")};function Ef(n){return encodeURIComponent(n).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function la(n,e,t){if(!e)return n;const r=t&&t.encode||Ef;ee.isFunction(t)&&(t={serialize:t});const s=t&&t.serialize;let l;if(s?l=s(e,t):l=ee.isURLSearchParams(e)?e.toString():new ui(e,t).toString(r),l){const o=n.indexOf("#");o!==-1&&(n=n.slice(0,o)),n+=(n.indexOf("?")===-1?"?":"&")+l}return n}class ca{constructor(){this.handlers=[]}use(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){ee.forEach(this.handlers,function(r){r!==null&&e(r)})}}const ua={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},wf={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:ui,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},di=typeof window<"u"&&typeof document<"u",fi=typeof navigator=="object"&&navigator||void 0,Af=di&&(!fi||["ReactNative","NativeScript","NS"].indexOf(fi.product)<0),Sf=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Tf=di&&window.location.href||"http://localhost",gt={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:di,hasStandardBrowserEnv:Af,hasStandardBrowserWebWorkerEnv:Sf,navigator:fi,origin:Tf},Symbol.toStringTag,{value:"Module"})),...wf};function Nf(n,e){return us(n,new gt.classes.URLSearchParams,Object.assign({visitor:function(t,r,s,l){return gt.isNode&&ee.isBuffer(t)?(this.append(r,t.toString("base64")),!1):l.defaultVisitor.apply(this,arguments)}},e))}function Of(n){return ee.matchAll(/\w+|\[(\w*)]/g,n).map(e=>e[0]==="[]"?"":e[1]||e[0])}function Cf(n){const e={},t=Object.keys(n);let r;const s=t.length;let l;for(r=0;r<s;r++)l=t[r],e[l]=n[l];return e}function da(n){function e(t,r,s,l){let o=t[l++];if(o==="__proto__")return!0;const c=Number.isFinite(+o),i=l>=t.length;return o=!o&&ee.isArray(s)?s.length:o,i?(ee.hasOwnProp(s,o)?s[o]=[s[o],r]:s[o]=r,!c):((!s[o]||!ee.isObject(s[o]))&&(s[o]=[]),e(t,r,s[o],l)&&ee.isArray(s[o])&&(s[o]=Cf(s[o])),!c)}if(ee.isFormData(n)&&ee.isFunction(n.entries)){const t={};return ee.forEachEntry(n,(r,s)=>{e(Of(r),s,t,0)}),t}return null}function kf(n,e,t){if(ee.isString(n))try{return(e||JSON.parse)(n),ee.trim(n)}catch(r){if(r.name!=="SyntaxError")throw r}return(t||JSON.stringify)(n)}const Cr={transitional:ua,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const r=t.getContentType()||"",s=r.indexOf("application/json")>-1,l=ee.isObject(e);if(l&&ee.isHTMLForm(e)&&(e=new FormData(e)),ee.isFormData(e))return s?JSON.stringify(da(e)):e;if(ee.isArrayBuffer(e)||ee.isBuffer(e)||ee.isStream(e)||ee.isFile(e)||ee.isBlob(e)||ee.isReadableStream(e))return e;if(ee.isArrayBufferView(e))return e.buffer;if(ee.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let c;if(l){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Nf(e,this.formSerializer).toString();if((c=ee.isFileList(e))||r.indexOf("multipart/form-data")>-1){const i=this.env&&this.env.FormData;return us(c?{"files[]":e}:e,i&&new i,this.formSerializer)}}return l||s?(t.setContentType("application/json",!1),kf(e)):e}],transformResponse:[function(e){const t=this.transitional||Cr.transitional,r=t&&t.forcedJSONParsing,s=this.responseType==="json";if(ee.isResponse(e)||ee.isReadableStream(e))return e;if(e&&ee.isString(e)&&(r&&!this.responseType||s)){const o=!(t&&t.silentJSONParsing)&&s;try{return JSON.parse(e)}catch(c){if(o)throw c.name==="SyntaxError"?Me.from(c,Me.ERR_BAD_RESPONSE,this,null,this.response):c}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:gt.classes.FormData,Blob:gt.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};ee.forEach(["delete","get","head","post","put","patch"],n=>{Cr.headers[n]={}});const Rf=ee.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),If=n=>{const e={};let t,r,s;return n&&n.split(`
2
+ `).forEach(function(o){s=o.indexOf(":"),t=o.substring(0,s).trim().toLowerCase(),r=o.substring(s+1).trim(),!(!t||e[t]&&Rf[t])&&(t==="set-cookie"?e[t]?e[t].push(r):e[t]=[r]:e[t]=e[t]?e[t]+", "+r:r)}),e},fa=Symbol("internals");function kr(n){return n&&String(n).trim().toLowerCase()}function ds(n){return n===!1||n==null?n:ee.isArray(n)?n.map(ds):String(n)}function Lf(n){const e=Object.create(null),t=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=t.exec(n);)e[r[1]]=r[2];return e}const Bf=n=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(n.trim());function hi(n,e,t,r,s){if(ee.isFunction(r))return r.call(this,e,t);if(s&&(e=t),!!ee.isString(e)){if(ee.isString(r))return e.indexOf(r)!==-1;if(ee.isRegExp(r))return r.test(e)}}function Pf(n){return n.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,r)=>t.toUpperCase()+r)}function Ff(n,e){const t=ee.toCamelCase(" "+e);["get","set","has"].forEach(r=>{Object.defineProperty(n,r+t,{value:function(s,l,o){return this[r].call(this,e,s,l,o)},configurable:!0})})}let Nt=class{constructor(e){e&&this.set(e)}set(e,t,r){const s=this;function l(c,i,u){const d=kr(i);if(!d)throw new Error("header name must be a non-empty string");const h=ee.findKey(s,d);(!h||s[h]===void 0||u===!0||u===void 0&&s[h]!==!1)&&(s[h||i]=ds(c))}const o=(c,i)=>ee.forEach(c,(u,d)=>l(u,d,i));if(ee.isPlainObject(e)||e instanceof this.constructor)o(e,t);else if(ee.isString(e)&&(e=e.trim())&&!Bf(e))o(If(e),t);else if(ee.isObject(e)&&ee.isIterable(e)){let c={},i,u;for(const d of e){if(!ee.isArray(d))throw TypeError("Object iterator must return a key-value pair");c[u=d[0]]=(i=c[u])?ee.isArray(i)?[...i,d[1]]:[i,d[1]]:d[1]}o(c,t)}else e!=null&&l(t,e,r);return this}get(e,t){if(e=kr(e),e){const r=ee.findKey(this,e);if(r){const s=this[r];if(!t)return s;if(t===!0)return Lf(s);if(ee.isFunction(t))return t.call(this,s,r);if(ee.isRegExp(t))return t.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=kr(e),e){const r=ee.findKey(this,e);return!!(r&&this[r]!==void 0&&(!t||hi(this,this[r],r,t)))}return!1}delete(e,t){const r=this;let s=!1;function l(o){if(o=kr(o),o){const c=ee.findKey(r,o);c&&(!t||hi(r,r[c],c,t))&&(delete r[c],s=!0)}}return ee.isArray(e)?e.forEach(l):l(e),s}clear(e){const t=Object.keys(this);let r=t.length,s=!1;for(;r--;){const l=t[r];(!e||hi(this,this[l],l,e,!0))&&(delete this[l],s=!0)}return s}normalize(e){const t=this,r={};return ee.forEach(this,(s,l)=>{const o=ee.findKey(r,l);if(o){t[o]=ds(s),delete t[l];return}const c=e?Pf(l):String(l).trim();c!==l&&delete t[l],t[c]=ds(s),r[c]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return ee.forEach(this,(r,s)=>{r!=null&&r!==!1&&(t[s]=e&&ee.isArray(r)?r.join(", "):r)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join(`
3
+ `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const r=new this(e);return t.forEach(s=>r.set(s)),r}static accessor(e){const r=(this[fa]=this[fa]={accessors:{}}).accessors,s=this.prototype;function l(o){const c=kr(o);r[c]||(Ff(s,o),r[c]=!0)}return ee.isArray(e)?e.forEach(l):l(e),this}};Nt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),ee.reduceDescriptors(Nt.prototype,({value:n},e)=>{let t=e[0].toUpperCase()+e.slice(1);return{get:()=>n,set(r){this[t]=r}}}),ee.freezeMethods(Nt);function pi(n,e){const t=this||Cr,r=e||t,s=Nt.from(r.headers);let l=r.data;return ee.forEach(n,function(c){l=c.call(t,l,s.normalize(),e?e.status:void 0)}),s.normalize(),l}function ha(n){return!!(n&&n.__CANCEL__)}function Zn(n,e,t){Me.call(this,n??"canceled",Me.ERR_CANCELED,e,t),this.name="CanceledError"}ee.inherits(Zn,Me,{__CANCEL__:!0});function pa(n,e,t){const r=t.config.validateStatus;!t.status||!r||r(t.status)?n(t):e(new Me("Request failed with status code "+t.status,[Me.ERR_BAD_REQUEST,Me.ERR_BAD_RESPONSE][Math.floor(t.status/100)-4],t.config,t.request,t))}function Mf(n){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(n);return e&&e[1]||""}function Df(n,e){n=n||10;const t=new Array(n),r=new Array(n);let s=0,l=0,o;return e=e!==void 0?e:1e3,function(i){const u=Date.now(),d=r[l];o||(o=u),t[s]=i,r[s]=u;let h=l,f=0;for(;h!==s;)f+=t[h++],h=h%n;if(s=(s+1)%n,s===l&&(l=(l+1)%n),u-o<e)return;const g=d&&u-d;return g?Math.round(f*1e3/g):void 0}}function Uf(n,e){let t=0,r=1e3/e,s,l;const o=(u,d=Date.now())=>{t=d,s=null,l&&(clearTimeout(l),l=null),n.apply(null,u)};return[(...u)=>{const d=Date.now(),h=d-t;h>=r?o(u,d):(s=u,l||(l=setTimeout(()=>{l=null,o(s)},r-h)))},()=>s&&o(s)]}const fs=(n,e,t=3)=>{let r=0;const s=Df(50,250);return Uf(l=>{const o=l.loaded,c=l.lengthComputable?l.total:void 0,i=o-r,u=s(i),d=o<=c;r=o;const h={loaded:o,total:c,progress:c?o/c:void 0,bytes:i,rate:u||void 0,estimated:u&&c&&d?(c-o)/u:void 0,event:l,lengthComputable:c!=null,[e?"download":"upload"]:!0};n(h)},t)},ma=(n,e)=>{const t=n!=null;return[r=>e[0]({lengthComputable:t,total:n,loaded:r}),e[1]]},ga=n=>(...e)=>ee.asap(()=>n(...e)),jf=gt.hasStandardBrowserEnv?((n,e)=>t=>(t=new URL(t,gt.origin),n.protocol===t.protocol&&n.host===t.host&&(e||n.port===t.port)))(new URL(gt.origin),gt.navigator&&/(msie|trident)/i.test(gt.navigator.userAgent)):()=>!0,Vf=gt.hasStandardBrowserEnv?{write(n,e,t,r,s,l){const o=[n+"="+encodeURIComponent(e)];ee.isNumber(t)&&o.push("expires="+new Date(t).toGMTString()),ee.isString(r)&&o.push("path="+r),ee.isString(s)&&o.push("domain="+s),l===!0&&o.push("secure"),document.cookie=o.join("; ")},read(n){const e=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(n){this.write(n,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function $f(n){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(n)}function _f(n,e){return e?n.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):n}function va(n,e,t){let r=!$f(e);return n&&(r||t==!1)?_f(n,e):e}const ya=n=>n instanceof Nt?{...n}:n;function Bn(n,e){e=e||{};const t={};function r(u,d,h,f){return ee.isPlainObject(u)&&ee.isPlainObject(d)?ee.merge.call({caseless:f},u,d):ee.isPlainObject(d)?ee.merge({},d):ee.isArray(d)?d.slice():d}function s(u,d,h,f){if(ee.isUndefined(d)){if(!ee.isUndefined(u))return r(void 0,u,h,f)}else return r(u,d,h,f)}function l(u,d){if(!ee.isUndefined(d))return r(void 0,d)}function o(u,d){if(ee.isUndefined(d)){if(!ee.isUndefined(u))return r(void 0,u)}else return r(void 0,d)}function c(u,d,h){if(h in e)return r(u,d);if(h in n)return r(void 0,u)}const i={url:l,method:l,data:l,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:c,headers:(u,d,h)=>s(ya(u),ya(d),h,!0)};return ee.forEach(Object.keys(Object.assign({},n,e)),function(d){const h=i[d]||s,f=h(n[d],e[d],d);ee.isUndefined(f)&&h!==c||(t[d]=f)}),t}const ba=n=>{const e=Bn({},n);let{data:t,withXSRFToken:r,xsrfHeaderName:s,xsrfCookieName:l,headers:o,auth:c}=e;e.headers=o=Nt.from(o),e.url=la(va(e.baseURL,e.url,e.allowAbsoluteUrls),n.params,n.paramsSerializer),c&&o.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):"")));let i;if(ee.isFormData(t)){if(gt.hasStandardBrowserEnv||gt.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if((i=o.getContentType())!==!1){const[u,...d]=i?i.split(";").map(h=>h.trim()).filter(Boolean):[];o.setContentType([u||"multipart/form-data",...d].join("; "))}}if(gt.hasStandardBrowserEnv&&(r&&ee.isFunction(r)&&(r=r(e)),r||r!==!1&&jf(e.url))){const u=s&&l&&Vf.read(l);u&&o.set(s,u)}return e},qf=typeof XMLHttpRequest<"u"&&function(n){return new Promise(function(t,r){const s=ba(n);let l=s.data;const o=Nt.from(s.headers).normalize();let{responseType:c,onUploadProgress:i,onDownloadProgress:u}=s,d,h,f,g,p;function v(){g&&g(),p&&p(),s.cancelToken&&s.cancelToken.unsubscribe(d),s.signal&&s.signal.removeEventListener("abort",d)}let b=new XMLHttpRequest;b.open(s.method.toUpperCase(),s.url,!0),b.timeout=s.timeout;function S(){if(!b)return;const k=Nt.from("getAllResponseHeaders"in b&&b.getAllResponseHeaders()),M={data:!c||c==="text"||c==="json"?b.responseText:b.response,status:b.status,statusText:b.statusText,headers:k,config:n,request:b};pa(function(X){t(X),v()},function(X){r(X),v()},M),b=null}"onloadend"in b?b.onloadend=S:b.onreadystatechange=function(){!b||b.readyState!==4||b.status===0&&!(b.responseURL&&b.responseURL.indexOf("file:")===0)||setTimeout(S)},b.onabort=function(){b&&(r(new Me("Request aborted",Me.ECONNABORTED,n,b)),b=null)},b.onerror=function(){r(new Me("Network Error",Me.ERR_NETWORK,n,b)),b=null},b.ontimeout=function(){let F=s.timeout?"timeout of "+s.timeout+"ms exceeded":"timeout exceeded";const M=s.transitional||ua;s.timeoutErrorMessage&&(F=s.timeoutErrorMessage),r(new Me(F,M.clarifyTimeoutError?Me.ETIMEDOUT:Me.ECONNABORTED,n,b)),b=null},l===void 0&&o.setContentType(null),"setRequestHeader"in b&&ee.forEach(o.toJSON(),function(F,M){b.setRequestHeader(M,F)}),ee.isUndefined(s.withCredentials)||(b.withCredentials=!!s.withCredentials),c&&c!=="json"&&(b.responseType=s.responseType),u&&([f,p]=fs(u,!0),b.addEventListener("progress",f)),i&&b.upload&&([h,g]=fs(i),b.upload.addEventListener("progress",h),b.upload.addEventListener("loadend",g)),(s.cancelToken||s.signal)&&(d=k=>{b&&(r(!k||k.type?new Zn(null,n,b):k),b.abort(),b=null)},s.cancelToken&&s.cancelToken.subscribe(d),s.signal&&(s.signal.aborted?d():s.signal.addEventListener("abort",d)));const T=Mf(s.url);if(T&&gt.protocols.indexOf(T)===-1){r(new Me("Unsupported protocol "+T+":",Me.ERR_BAD_REQUEST,n));return}b.send(l||null)})},zf=(n,e)=>{const{length:t}=n=n?n.filter(Boolean):[];if(e||t){let r=new AbortController,s;const l=function(u){if(!s){s=!0,c();const d=u instanceof Error?u:this.reason;r.abort(d instanceof Me?d:new Zn(d instanceof Error?d.message:d))}};let o=e&&setTimeout(()=>{o=null,l(new Me(`timeout ${e} of ms exceeded`,Me.ETIMEDOUT))},e);const c=()=>{n&&(o&&clearTimeout(o),o=null,n.forEach(u=>{u.unsubscribe?u.unsubscribe(l):u.removeEventListener("abort",l)}),n=null)};n.forEach(u=>u.addEventListener("abort",l));const{signal:i}=r;return i.unsubscribe=()=>ee.asap(c),i}},Hf=function*(n,e){let t=n.byteLength;if(t<e){yield n;return}let r=0,s;for(;r<t;)s=r+e,yield n.slice(r,s),r=s},Gf=async function*(n,e){for await(const t of Wf(n))yield*Hf(t,e)},Wf=async function*(n){if(n[Symbol.asyncIterator]){yield*n;return}const e=n.getReader();try{for(;;){const{done:t,value:r}=await e.read();if(t)break;yield r}}finally{await e.cancel()}},xa=(n,e,t,r)=>{const s=Gf(n,e);let l=0,o,c=i=>{o||(o=!0,r&&r(i))};return new ReadableStream({async pull(i){try{const{done:u,value:d}=await s.next();if(u){c(),i.close();return}let h=d.byteLength;if(t){let f=l+=h;t(f)}i.enqueue(new Uint8Array(d))}catch(u){throw c(u),u}},cancel(i){return c(i),s.return()}},{highWaterMark:2})},hs=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Ea=hs&&typeof ReadableStream=="function",Kf=hs&&(typeof TextEncoder=="function"?(n=>e=>n.encode(e))(new TextEncoder):async n=>new Uint8Array(await new Response(n).arrayBuffer())),wa=(n,...e)=>{try{return!!n(...e)}catch{return!1}},Xf=Ea&&wa(()=>{let n=!1;const e=new Request(gt.origin,{body:new ReadableStream,method:"POST",get duplex(){return n=!0,"half"}}).headers.has("Content-Type");return n&&!e}),Aa=64*1024,mi=Ea&&wa(()=>ee.isReadableStream(new Response("").body)),ps={stream:mi&&(n=>n.body)};hs&&(n=>{["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!ps[e]&&(ps[e]=ee.isFunction(n[e])?t=>t[e]():(t,r)=>{throw new Me(`Response type '${e}' is not supported`,Me.ERR_NOT_SUPPORT,r)})})})(new Response);const Yf=async n=>{if(n==null)return 0;if(ee.isBlob(n))return n.size;if(ee.isSpecCompliantForm(n))return(await new Request(gt.origin,{method:"POST",body:n}).arrayBuffer()).byteLength;if(ee.isArrayBufferView(n)||ee.isArrayBuffer(n))return n.byteLength;if(ee.isURLSearchParams(n)&&(n=n+""),ee.isString(n))return(await Kf(n)).byteLength},Zf=async(n,e)=>{const t=ee.toFiniteNumber(n.getContentLength());return t??Yf(e)},gi={http:yf,xhr:qf,fetch:hs&&(async n=>{let{url:e,method:t,data:r,signal:s,cancelToken:l,timeout:o,onDownloadProgress:c,onUploadProgress:i,responseType:u,headers:d,withCredentials:h="same-origin",fetchOptions:f}=ba(n);u=u?(u+"").toLowerCase():"text";let g=zf([s,l&&l.toAbortSignal()],o),p;const v=g&&g.unsubscribe&&(()=>{g.unsubscribe()});let b;try{if(i&&Xf&&t!=="get"&&t!=="head"&&(b=await Zf(d,r))!==0){let M=new Request(e,{method:"POST",body:r,duplex:"half"}),z;if(ee.isFormData(r)&&(z=M.headers.get("content-type"))&&d.setContentType(z),M.body){const[X,H]=ma(b,fs(ga(i)));r=xa(M.body,Aa,X,H)}}ee.isString(h)||(h=h?"include":"omit");const S="credentials"in Request.prototype;p=new Request(e,{...f,signal:g,method:t.toUpperCase(),headers:d.normalize().toJSON(),body:r,duplex:"half",credentials:S?h:void 0});let T=await fetch(p);const k=mi&&(u==="stream"||u==="response");if(mi&&(c||k&&v)){const M={};["status","statusText","headers"].forEach(re=>{M[re]=T[re]});const z=ee.toFiniteNumber(T.headers.get("content-length")),[X,H]=c&&ma(z,fs(ga(c),!0))||[];T=new Response(xa(T.body,Aa,X,()=>{H&&H(),v&&v()}),M)}u=u||"text";let F=await ps[ee.findKey(ps,u)||"text"](T,n);return!k&&v&&v(),await new Promise((M,z)=>{pa(M,z,{data:F,headers:Nt.from(T.headers),status:T.status,statusText:T.statusText,config:n,request:p})})}catch(S){throw v&&v(),S&&S.name==="TypeError"&&/Load failed|fetch/i.test(S.message)?Object.assign(new Me("Network Error",Me.ERR_NETWORK,n,p),{cause:S.cause||S}):Me.from(S,S&&S.code,n,p)}})};ee.forEach(gi,(n,e)=>{if(n){try{Object.defineProperty(n,"name",{value:e})}catch{}Object.defineProperty(n,"adapterName",{value:e})}});const Sa=n=>`- ${n}`,Qf=n=>ee.isFunction(n)||n===null||n===!1,Ta={getAdapter:n=>{n=ee.isArray(n)?n:[n];const{length:e}=n;let t,r;const s={};for(let l=0;l<e;l++){t=n[l];let o;if(r=t,!Qf(t)&&(r=gi[(o=String(t)).toLowerCase()],r===void 0))throw new Me(`Unknown adapter '${o}'`);if(r)break;s[o||"#"+l]=r}if(!r){const l=Object.entries(s).map(([c,i])=>`adapter ${c} `+(i===!1?"is not supported by the environment":"is not available in the build"));let o=e?l.length>1?`since :
4
+ `+l.map(Sa).join(`
5
+ `):" "+Sa(l[0]):"as no adapter specified";throw new Me("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return r},adapters:gi};function vi(n){if(n.cancelToken&&n.cancelToken.throwIfRequested(),n.signal&&n.signal.aborted)throw new Zn(null,n)}function Na(n){return vi(n),n.headers=Nt.from(n.headers),n.data=pi.call(n,n.transformRequest),["post","put","patch"].indexOf(n.method)!==-1&&n.headers.setContentType("application/x-www-form-urlencoded",!1),Ta.getAdapter(n.adapter||Cr.adapter)(n).then(function(r){return vi(n),r.data=pi.call(n,n.transformResponse,r),r.headers=Nt.from(r.headers),r},function(r){return ha(r)||(vi(n),r&&r.response&&(r.response.data=pi.call(n,n.transformResponse,r.response),r.response.headers=Nt.from(r.response.headers))),Promise.reject(r)})}const Oa="1.9.0",ms={};["object","boolean","number","function","string","symbol"].forEach((n,e)=>{ms[n]=function(r){return typeof r===n||"a"+(e<1?"n ":" ")+n}});const Ca={};ms.transitional=function(e,t,r){function s(l,o){return"[Axios v"+Oa+"] Transitional option '"+l+"'"+o+(r?". "+r:"")}return(l,o,c)=>{if(e===!1)throw new Me(s(o," has been removed"+(t?" in "+t:"")),Me.ERR_DEPRECATED);return t&&!Ca[o]&&(Ca[o]=!0,console.warn(s(o," has been deprecated since v"+t+" and will be removed in the near future"))),e?e(l,o,c):!0}},ms.spelling=function(e){return(t,r)=>(console.warn(`${r} is likely a misspelling of ${e}`),!0)};function Jf(n,e,t){if(typeof n!="object")throw new Me("options must be an object",Me.ERR_BAD_OPTION_VALUE);const r=Object.keys(n);let s=r.length;for(;s-- >0;){const l=r[s],o=e[l];if(o){const c=n[l],i=c===void 0||o(c,l,n);if(i!==!0)throw new Me("option "+l+" must be "+i,Me.ERR_BAD_OPTION_VALUE);continue}if(t!==!0)throw new Me("Unknown option "+l,Me.ERR_BAD_OPTION)}}const gs={assertOptions:Jf,validators:ms},Jt=gs.validators;let Pn=class{constructor(e){this.defaults=e||{},this.interceptors={request:new ca,response:new ca}}async request(e,t){try{return await this._request(e,t)}catch(r){if(r instanceof Error){let s={};Error.captureStackTrace?Error.captureStackTrace(s):s=new Error;const l=s.stack?s.stack.replace(/^.+\n/,""):"";try{r.stack?l&&!String(r.stack).endsWith(l.replace(/^.+\n.+\n/,""))&&(r.stack+=`
6
+ `+l):r.stack=l}catch{}}throw r}}_request(e,t){typeof e=="string"?(t=t||{},t.url=e):t=e||{},t=Bn(this.defaults,t);const{transitional:r,paramsSerializer:s,headers:l}=t;r!==void 0&&gs.assertOptions(r,{silentJSONParsing:Jt.transitional(Jt.boolean),forcedJSONParsing:Jt.transitional(Jt.boolean),clarifyTimeoutError:Jt.transitional(Jt.boolean)},!1),s!=null&&(ee.isFunction(s)?t.paramsSerializer={serialize:s}:gs.assertOptions(s,{encode:Jt.function,serialize:Jt.function},!0)),t.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),gs.assertOptions(t,{baseUrl:Jt.spelling("baseURL"),withXsrfToken:Jt.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let o=l&&ee.merge(l.common,l[t.method]);l&&ee.forEach(["delete","get","head","post","put","patch","common"],p=>{delete l[p]}),t.headers=Nt.concat(o,l);const c=[];let i=!0;this.interceptors.request.forEach(function(v){typeof v.runWhen=="function"&&v.runWhen(t)===!1||(i=i&&v.synchronous,c.unshift(v.fulfilled,v.rejected))});const u=[];this.interceptors.response.forEach(function(v){u.push(v.fulfilled,v.rejected)});let d,h=0,f;if(!i){const p=[Na.bind(this),void 0];for(p.unshift.apply(p,c),p.push.apply(p,u),f=p.length,d=Promise.resolve(t);h<f;)d=d.then(p[h++],p[h++]);return d}f=c.length;let g=t;for(h=0;h<f;){const p=c[h++],v=c[h++];try{g=p(g)}catch(b){v.call(this,b);break}}try{d=Na.call(this,g)}catch(p){return Promise.reject(p)}for(h=0,f=u.length;h<f;)d=d.then(u[h++],u[h++]);return d}getUri(e){e=Bn(this.defaults,e);const t=va(e.baseURL,e.url,e.allowAbsoluteUrls);return la(t,e.params,e.paramsSerializer)}};ee.forEach(["delete","get","head","options"],function(e){Pn.prototype[e]=function(t,r){return this.request(Bn(r||{},{method:e,url:t,data:(r||{}).data}))}}),ee.forEach(["post","put","patch"],function(e){function t(r){return function(l,o,c){return this.request(Bn(c||{},{method:e,headers:r?{"Content-Type":"multipart/form-data"}:{},url:l,data:o}))}}Pn.prototype[e]=t(),Pn.prototype[e+"Form"]=t(!0)});let eh=class tu{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(l){t=l});const r=this;this.promise.then(s=>{if(!r._listeners)return;let l=r._listeners.length;for(;l-- >0;)r._listeners[l](s);r._listeners=null}),this.promise.then=s=>{let l;const o=new Promise(c=>{r.subscribe(c),l=c}).then(s);return o.cancel=function(){r.unsubscribe(l)},o},e(function(l,o,c){r.reason||(r.reason=new Zn(l,o,c),t(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);t!==-1&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=r=>{e.abort(r)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new tu(function(s){e=s}),cancel:e}}};function th(n){return function(t){return n.apply(null,t)}}function nh(n){return ee.isObject(n)&&n.isAxiosError===!0}const yi={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(yi).forEach(([n,e])=>{yi[e]=n});function ka(n){const e=new Pn(n),t=Wo(Pn.prototype.request,e);return ee.extend(t,Pn.prototype,e,{allOwnKeys:!0}),ee.extend(t,e,null,{allOwnKeys:!0}),t.create=function(s){return ka(Bn(n,s))},t}const tt=ka(Cr);tt.Axios=Pn,tt.CanceledError=Zn,tt.CancelToken=eh,tt.isCancel=ha,tt.VERSION=Oa,tt.toFormData=us,tt.AxiosError=Me,tt.Cancel=tt.CanceledError,tt.all=function(e){return Promise.all(e)},tt.spread=th,tt.isAxiosError=nh,tt.mergeConfig=Bn,tt.AxiosHeaders=Nt,tt.formToJSON=n=>da(ee.isHTMLForm(n)?new FormData(n):n),tt.getAdapter=Ta.getAdapter,tt.HttpStatusCode=yi,tt.default=tt;const{Axios:Rx,AxiosError:Ix,CanceledError:Lx,isCancel:Bx,CancelToken:Px,VERSION:Fx,all:Mx,Cancel:Dx,isAxiosError:Ux,spread:jx,toFormData:Vx,AxiosHeaders:$x,HttpStatusCode:_x,formToJSON:qx,getAdapter:zx,mergeConfig:Hx}=tt;var En=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function bi(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var xi={exports:{}},Ra;function rh(){return Ra||(Ra=1,function(n,e){(function(r,s){n.exports=s()})(self,function(){return function(){var t={3099:function(o){o.exports=function(c){if(typeof c!="function")throw TypeError(String(c)+" is not a function");return c}},6077:function(o,c,i){var u=i(111);o.exports=function(d){if(!u(d)&&d!==null)throw TypeError("Can't set "+String(d)+" as a prototype");return d}},1223:function(o,c,i){var u=i(5112),d=i(30),h=i(3070),f=u("unscopables"),g=Array.prototype;g[f]==null&&h.f(g,f,{configurable:!0,value:d(null)}),o.exports=function(p){g[f][p]=!0}},1530:function(o,c,i){var u=i(8710).charAt;o.exports=function(d,h,f){return h+(f?u(d,h).length:1)}},5787:function(o){o.exports=function(c,i,u){if(!(c instanceof i))throw TypeError("Incorrect "+(u?u+" ":"")+"invocation");return c}},9670:function(o,c,i){var u=i(111);o.exports=function(d){if(!u(d))throw TypeError(String(d)+" is not an object");return d}},4019:function(o){o.exports=typeof ArrayBuffer<"u"&&typeof DataView<"u"},260:function(o,c,i){var u=i(4019),d=i(9781),h=i(7854),f=i(111),g=i(6656),p=i(648),v=i(8880),b=i(1320),S=i(3070).f,T=i(9518),k=i(7674),F=i(5112),M=i(9711),z=h.Int8Array,X=z&&z.prototype,H=h.Uint8ClampedArray,re=H&&H.prototype,G=z&&T(z),E=X&&T(X),P=Object.prototype,O=P.isPrototypeOf,_=F("toStringTag"),j=M("TYPED_ARRAY_TAG"),V=u&&!!k&&p(h.opera)!=="Opera",K=!1,q,J={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},te={BigInt64Array:8,BigUint64Array:8},me=function(N){if(!f(N))return!1;var R=p(N);return R==="DataView"||g(J,R)||g(te,R)},ge=function(ye){if(!f(ye))return!1;var N=p(ye);return g(J,N)||g(te,N)},ve=function(ye){if(ge(ye))return ye;throw TypeError("Target is not a typed array")},xe=function(ye){if(k){if(O.call(G,ye))return ye}else for(var N in J)if(g(J,q)){var R=h[N];if(R&&(ye===R||O.call(R,ye)))return ye}throw TypeError("Target is not a typed array constructor")},he=function(ye,N,R){if(d){if(R)for(var w in J){var C=h[w];C&&g(C.prototype,ye)&&delete C.prototype[ye]}(!E[ye]||R)&&b(E,ye,R?N:V&&X[ye]||N)}},Oe=function(ye,N,R){var w,C;if(d){if(k){if(R)for(w in J)C=h[w],C&&g(C,ye)&&delete C[ye];if(!G[ye]||R)try{return b(G,ye,R?N:V&&z[ye]||N)}catch{}else return}for(w in J)C=h[w],C&&(!C[ye]||R)&&b(C,ye,N)}};for(q in J)h[q]||(V=!1);if((!V||typeof G!="function"||G===Function.prototype)&&(G=function(){throw TypeError("Incorrect invocation")},V))for(q in J)h[q]&&k(h[q],G);if((!V||!E||E===P)&&(E=G.prototype,V))for(q in J)h[q]&&k(h[q].prototype,E);if(V&&T(re)!==E&&k(re,E),d&&!g(E,_)){K=!0,S(E,_,{get:function(){return f(this)?this[j]:void 0}});for(q in J)h[q]&&v(h[q],j,q)}o.exports={NATIVE_ARRAY_BUFFER_VIEWS:V,TYPED_ARRAY_TAG:K&&j,aTypedArray:ve,aTypedArrayConstructor:xe,exportTypedArrayMethod:he,exportTypedArrayStaticMethod:Oe,isView:me,isTypedArray:ge,TypedArray:G,TypedArrayPrototype:E}},3331:function(o,c,i){var u=i(7854),d=i(9781),h=i(4019),f=i(8880),g=i(2248),p=i(7293),v=i(5787),b=i(9958),S=i(7466),T=i(7067),k=i(1179),F=i(9518),M=i(7674),z=i(8006).f,X=i(3070).f,H=i(1285),re=i(8003),G=i(9909),E=G.get,P=G.set,O="ArrayBuffer",_="DataView",j="prototype",V="Wrong length",K="Wrong index",q=u[O],J=q,te=u[_],me=te&&te[j],ge=Object.prototype,ve=u.RangeError,xe=k.pack,he=k.unpack,Oe=function(Q){return[Q&255]},ye=function(Q){return[Q&255,Q>>8&255]},N=function(Q){return[Q&255,Q>>8&255,Q>>16&255,Q>>24&255]},R=function(Q){return Q[3]<<24|Q[2]<<16|Q[1]<<8|Q[0]},w=function(Q){return xe(Q,23,4)},C=function(Q){return xe(Q,52,8)},y=function(Q,ne){X(Q[j],ne,{get:function(){return E(this)[ne]}})},x=function(Q,ne,oe,fe){var we=T(oe),De=E(Q);if(we+ne>De.byteLength)throw ve(K);var Ge=E(De.buffer).bytes,je=we+De.byteOffset,Be=Ge.slice(je,je+ne);return fe?Be:Be.reverse()},I=function(Q,ne,oe,fe,we,De){var Ge=T(oe),je=E(Q);if(Ge+ne>je.byteLength)throw ve(K);for(var Be=E(je.buffer).bytes,Ve=Ge+je.byteOffset,rt=fe(+we),it=0;it<ne;it++)Be[Ve+it]=rt[De?it:ne-it-1]};if(!h)J=function(ne){v(this,J,O);var oe=T(ne);P(this,{bytes:H.call(new Array(oe),0),byteLength:oe}),d||(this.byteLength=oe)},te=function(ne,oe,fe){v(this,te,_),v(ne,J,_);var we=E(ne).byteLength,De=b(oe);if(De<0||De>we)throw ve("Wrong offset");if(fe=fe===void 0?we-De:S(fe),De+fe>we)throw ve(V);P(this,{buffer:ne,byteLength:fe,byteOffset:De}),d||(this.buffer=ne,this.byteLength=fe,this.byteOffset=De)},d&&(y(J,"byteLength"),y(te,"buffer"),y(te,"byteLength"),y(te,"byteOffset")),g(te[j],{getInt8:function(ne){return x(this,1,ne)[0]<<24>>24},getUint8:function(ne){return x(this,1,ne)[0]},getInt16:function(ne){var oe=x(this,2,ne,arguments.length>1?arguments[1]:void 0);return(oe[1]<<8|oe[0])<<16>>16},getUint16:function(ne){var oe=x(this,2,ne,arguments.length>1?arguments[1]:void 0);return oe[1]<<8|oe[0]},getInt32:function(ne){return R(x(this,4,ne,arguments.length>1?arguments[1]:void 0))},getUint32:function(ne){return R(x(this,4,ne,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(ne){return he(x(this,4,ne,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(ne){return he(x(this,8,ne,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(ne,oe){I(this,1,ne,Oe,oe)},setUint8:function(ne,oe){I(this,1,ne,Oe,oe)},setInt16:function(ne,oe){I(this,2,ne,ye,oe,arguments.length>2?arguments[2]:void 0)},setUint16:function(ne,oe){I(this,2,ne,ye,oe,arguments.length>2?arguments[2]:void 0)},setInt32:function(ne,oe){I(this,4,ne,N,oe,arguments.length>2?arguments[2]:void 0)},setUint32:function(ne,oe){I(this,4,ne,N,oe,arguments.length>2?arguments[2]:void 0)},setFloat32:function(ne,oe){I(this,4,ne,w,oe,arguments.length>2?arguments[2]:void 0)},setFloat64:function(ne,oe){I(this,8,ne,C,oe,arguments.length>2?arguments[2]:void 0)}});else{if(!p(function(){q(1)})||!p(function(){new q(-1)})||p(function(){return new q,new q(1.5),new q(NaN),q.name!=O})){J=function(ne){return v(this,J),new q(T(ne))};for(var B=J[j]=q[j],U=z(q),$=0,W;U.length>$;)(W=U[$++])in J||f(J,W,q[W]);B.constructor=J}M&&F(me)!==ge&&M(me,ge);var Z=new te(new J(2)),Y=me.setInt8;Z.setInt8(0,2147483648),Z.setInt8(1,2147483649),(Z.getInt8(0)||!Z.getInt8(1))&&g(me,{setInt8:function(ne,oe){Y.call(this,ne,oe<<24>>24)},setUint8:function(ne,oe){Y.call(this,ne,oe<<24>>24)}},{unsafe:!0})}re(J,O),re(te,_),o.exports={ArrayBuffer:J,DataView:te}},1048:function(o,c,i){var u=i(7908),d=i(1400),h=i(7466),f=Math.min;o.exports=[].copyWithin||function(p,v){var b=u(this),S=h(b.length),T=d(p,S),k=d(v,S),F=arguments.length>2?arguments[2]:void 0,M=f((F===void 0?S:d(F,S))-k,S-T),z=1;for(k<T&&T<k+M&&(z=-1,k+=M-1,T+=M-1);M-- >0;)k in b?b[T]=b[k]:delete b[T],T+=z,k+=z;return b}},1285:function(o,c,i){var u=i(7908),d=i(1400),h=i(7466);o.exports=function(g){for(var p=u(this),v=h(p.length),b=arguments.length,S=d(b>1?arguments[1]:void 0,v),T=b>2?arguments[2]:void 0,k=T===void 0?v:d(T,v);k>S;)p[S++]=g;return p}},8533:function(o,c,i){var u=i(2092).forEach,d=i(9341),h=d("forEach");o.exports=h?[].forEach:function(g){return u(this,g,arguments.length>1?arguments[1]:void 0)}},8457:function(o,c,i){var u=i(9974),d=i(7908),h=i(3411),f=i(7659),g=i(7466),p=i(6135),v=i(1246);o.exports=function(S){var T=d(S),k=typeof this=="function"?this:Array,F=arguments.length,M=F>1?arguments[1]:void 0,z=M!==void 0,X=v(T),H=0,re,G,E,P,O,_;if(z&&(M=u(M,F>2?arguments[2]:void 0,2)),X!=null&&!(k==Array&&f(X)))for(P=X.call(T),O=P.next,G=new k;!(E=O.call(P)).done;H++)_=z?h(P,M,[E.value,H],!0):E.value,p(G,H,_);else for(re=g(T.length),G=new k(re);re>H;H++)_=z?M(T[H],H):T[H],p(G,H,_);return G.length=H,G}},1318:function(o,c,i){var u=i(5656),d=i(7466),h=i(1400),f=function(g){return function(p,v,b){var S=u(p),T=d(S.length),k=h(b,T),F;if(g&&v!=v){for(;T>k;)if(F=S[k++],F!=F)return!0}else for(;T>k;k++)if((g||k in S)&&S[k]===v)return g||k||0;return!g&&-1}};o.exports={includes:f(!0),indexOf:f(!1)}},2092:function(o,c,i){var u=i(9974),d=i(8361),h=i(7908),f=i(7466),g=i(5417),p=[].push,v=function(b){var S=b==1,T=b==2,k=b==3,F=b==4,M=b==6,z=b==7,X=b==5||M;return function(H,re,G,E){for(var P=h(H),O=d(P),_=u(re,G,3),j=f(O.length),V=0,K=E||g,q=S?K(H,j):T||z?K(H,0):void 0,J,te;j>V;V++)if((X||V in O)&&(J=O[V],te=_(J,V,P),b))if(S)q[V]=te;else if(te)switch(b){case 3:return!0;case 5:return J;case 6:return V;case 2:p.call(q,J)}else switch(b){case 4:return!1;case 7:p.call(q,J)}return M?-1:k||F?F:q}};o.exports={forEach:v(0),map:v(1),filter:v(2),some:v(3),every:v(4),find:v(5),findIndex:v(6),filterOut:v(7)}},6583:function(o,c,i){var u=i(5656),d=i(9958),h=i(7466),f=i(9341),g=Math.min,p=[].lastIndexOf,v=!!p&&1/[1].lastIndexOf(1,-0)<0,b=f("lastIndexOf"),S=v||!b;o.exports=S?function(k){if(v)return p.apply(this,arguments)||0;var F=u(this),M=h(F.length),z=M-1;for(arguments.length>1&&(z=g(z,d(arguments[1]))),z<0&&(z=M+z);z>=0;z--)if(z in F&&F[z]===k)return z||0;return-1}:p},1194:function(o,c,i){var u=i(7293),d=i(5112),h=i(7392),f=d("species");o.exports=function(g){return h>=51||!u(function(){var p=[],v=p.constructor={};return v[f]=function(){return{foo:1}},p[g](Boolean).foo!==1})}},9341:function(o,c,i){var u=i(7293);o.exports=function(d,h){var f=[][d];return!!f&&u(function(){f.call(null,h||function(){throw 1},1)})}},3671:function(o,c,i){var u=i(3099),d=i(7908),h=i(8361),f=i(7466),g=function(p){return function(v,b,S,T){u(b);var k=d(v),F=h(k),M=f(k.length),z=p?M-1:0,X=p?-1:1;if(S<2)for(;;){if(z in F){T=F[z],z+=X;break}if(z+=X,p?z<0:M<=z)throw TypeError("Reduce of empty array with no initial value")}for(;p?z>=0:M>z;z+=X)z in F&&(T=b(T,F[z],z,k));return T}};o.exports={left:g(!1),right:g(!0)}},5417:function(o,c,i){var u=i(111),d=i(3157),h=i(5112),f=h("species");o.exports=function(g,p){var v;return d(g)&&(v=g.constructor,typeof v=="function"&&(v===Array||d(v.prototype))?v=void 0:u(v)&&(v=v[f],v===null&&(v=void 0))),new(v===void 0?Array:v)(p===0?0:p)}},3411:function(o,c,i){var u=i(9670),d=i(9212);o.exports=function(h,f,g,p){try{return p?f(u(g)[0],g[1]):f(g)}catch(v){throw d(h),v}}},7072:function(o,c,i){var u=i(5112),d=u("iterator"),h=!1;try{var f=0,g={next:function(){return{done:!!f++}},return:function(){h=!0}};g[d]=function(){return this},Array.from(g,function(){throw 2})}catch{}o.exports=function(p,v){if(!v&&!h)return!1;var b=!1;try{var S={};S[d]=function(){return{next:function(){return{done:b=!0}}}},p(S)}catch{}return b}},4326:function(o){var c={}.toString;o.exports=function(i){return c.call(i).slice(8,-1)}},648:function(o,c,i){var u=i(1694),d=i(4326),h=i(5112),f=h("toStringTag"),g=d(function(){return arguments}())=="Arguments",p=function(v,b){try{return v[b]}catch{}};o.exports=u?d:function(v){var b,S,T;return v===void 0?"Undefined":v===null?"Null":typeof(S=p(b=Object(v),f))=="string"?S:g?d(b):(T=d(b))=="Object"&&typeof b.callee=="function"?"Arguments":T}},9920:function(o,c,i){var u=i(6656),d=i(3887),h=i(1236),f=i(3070);o.exports=function(g,p){for(var v=d(p),b=f.f,S=h.f,T=0;T<v.length;T++){var k=v[T];u(g,k)||b(g,k,S(p,k))}}},8544:function(o,c,i){var u=i(7293);o.exports=!u(function(){function d(){}return d.prototype.constructor=null,Object.getPrototypeOf(new d)!==d.prototype})},4994:function(o,c,i){var u=i(3383).IteratorPrototype,d=i(30),h=i(9114),f=i(8003),g=i(7497),p=function(){return this};o.exports=function(v,b,S){var T=b+" Iterator";return v.prototype=d(u,{next:h(1,S)}),f(v,T,!1,!0),g[T]=p,v}},8880:function(o,c,i){var u=i(9781),d=i(3070),h=i(9114);o.exports=u?function(f,g,p){return d.f(f,g,h(1,p))}:function(f,g,p){return f[g]=p,f}},9114:function(o){o.exports=function(c,i){return{enumerable:!(c&1),configurable:!(c&2),writable:!(c&4),value:i}}},6135:function(o,c,i){var u=i(7593),d=i(3070),h=i(9114);o.exports=function(f,g,p){var v=u(g);v in f?d.f(f,v,h(0,p)):f[v]=p}},654:function(o,c,i){var u=i(2109),d=i(4994),h=i(9518),f=i(7674),g=i(8003),p=i(8880),v=i(1320),b=i(5112),S=i(1913),T=i(7497),k=i(3383),F=k.IteratorPrototype,M=k.BUGGY_SAFARI_ITERATORS,z=b("iterator"),X="keys",H="values",re="entries",G=function(){return this};o.exports=function(E,P,O,_,j,V,K){d(O,P,_);var q=function(N){if(N===j&&ve)return ve;if(!M&&N in me)return me[N];switch(N){case X:return function(){return new O(this,N)};case H:return function(){return new O(this,N)};case re:return function(){return new O(this,N)}}return function(){return new O(this)}},J=P+" Iterator",te=!1,me=E.prototype,ge=me[z]||me["@@iterator"]||j&&me[j],ve=!M&&ge||q(j),xe=P=="Array"&&me.entries||ge,he,Oe,ye;if(xe&&(he=h(xe.call(new E)),F!==Object.prototype&&he.next&&(!S&&h(he)!==F&&(f?f(he,F):typeof he[z]!="function"&&p(he,z,G)),g(he,J,!0,!0),S&&(T[J]=G))),j==H&&ge&&ge.name!==H&&(te=!0,ve=function(){return ge.call(this)}),(!S||K)&&me[z]!==ve&&p(me,z,ve),T[P]=ve,j)if(Oe={values:q(H),keys:V?ve:q(X),entries:q(re)},K)for(ye in Oe)(M||te||!(ye in me))&&v(me,ye,Oe[ye]);else u({target:P,proto:!0,forced:M||te},Oe);return Oe}},9781:function(o,c,i){var u=i(7293);o.exports=!u(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},317:function(o,c,i){var u=i(7854),d=i(111),h=u.document,f=d(h)&&d(h.createElement);o.exports=function(g){return f?h.createElement(g):{}}},8324:function(o){o.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},8113:function(o,c,i){var u=i(5005);o.exports=u("navigator","userAgent")||""},7392:function(o,c,i){var u=i(7854),d=i(8113),h=u.process,f=h&&h.versions,g=f&&f.v8,p,v;g?(p=g.split("."),v=p[0]+p[1]):d&&(p=d.match(/Edge\/(\d+)/),(!p||p[1]>=74)&&(p=d.match(/Chrome\/(\d+)/),p&&(v=p[1]))),o.exports=v&&+v},748:function(o){o.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},2109:function(o,c,i){var u=i(7854),d=i(1236).f,h=i(8880),f=i(1320),g=i(3505),p=i(9920),v=i(4705);o.exports=function(b,S){var T=b.target,k=b.global,F=b.stat,M,z,X,H,re,G;if(k?z=u:F?z=u[T]||g(T,{}):z=(u[T]||{}).prototype,z)for(X in S){if(re=S[X],b.noTargetGet?(G=d(z,X),H=G&&G.value):H=z[X],M=v(k?X:T+(F?".":"#")+X,b.forced),!M&&H!==void 0){if(typeof re==typeof H)continue;p(re,H)}(b.sham||H&&H.sham)&&h(re,"sham",!0),f(z,X,re,b)}}},7293:function(o){o.exports=function(c){try{return!!c()}catch{return!0}}},7007:function(o,c,i){i(4916);var u=i(1320),d=i(7293),h=i(5112),f=i(2261),g=i(8880),p=h("species"),v=!d(function(){var F=/./;return F.exec=function(){var M=[];return M.groups={a:"7"},M},"".replace(F,"$<a>")!=="7"}),b=function(){return"a".replace(/./,"$0")==="$0"}(),S=h("replace"),T=function(){return/./[S]?/./[S]("a","$0")==="":!1}(),k=!d(function(){var F=/(?:)/,M=F.exec;F.exec=function(){return M.apply(this,arguments)};var z="ab".split(F);return z.length!==2||z[0]!=="a"||z[1]!=="b"});o.exports=function(F,M,z,X){var H=h(F),re=!d(function(){var j={};return j[H]=function(){return 7},""[F](j)!=7}),G=re&&!d(function(){var j=!1,V=/a/;return F==="split"&&(V={},V.constructor={},V.constructor[p]=function(){return V},V.flags="",V[H]=/./[H]),V.exec=function(){return j=!0,null},V[H](""),!j});if(!re||!G||F==="replace"&&!(v&&b&&!T)||F==="split"&&!k){var E=/./[H],P=z(H,""[F],function(j,V,K,q,J){return V.exec===f?re&&!J?{done:!0,value:E.call(V,K,q)}:{done:!0,value:j.call(K,V,q)}:{done:!1}},{REPLACE_KEEPS_$0:b,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:T}),O=P[0],_=P[1];u(String.prototype,F,O),u(RegExp.prototype,H,M==2?function(j,V){return _.call(j,this,V)}:function(j){return _.call(j,this)})}X&&g(RegExp.prototype[H],"sham",!0)}},9974:function(o,c,i){var u=i(3099);o.exports=function(d,h,f){if(u(d),h===void 0)return d;switch(f){case 0:return function(){return d.call(h)};case 1:return function(g){return d.call(h,g)};case 2:return function(g,p){return d.call(h,g,p)};case 3:return function(g,p,v){return d.call(h,g,p,v)}}return function(){return d.apply(h,arguments)}}},5005:function(o,c,i){var u=i(857),d=i(7854),h=function(f){return typeof f=="function"?f:void 0};o.exports=function(f,g){return arguments.length<2?h(u[f])||h(d[f]):u[f]&&u[f][g]||d[f]&&d[f][g]}},1246:function(o,c,i){var u=i(648),d=i(7497),h=i(5112),f=h("iterator");o.exports=function(g){if(g!=null)return g[f]||g["@@iterator"]||d[u(g)]}},8554:function(o,c,i){var u=i(9670),d=i(1246);o.exports=function(h){var f=d(h);if(typeof f!="function")throw TypeError(String(h)+" is not iterable");return u(f.call(h))}},647:function(o,c,i){var u=i(7908),d=Math.floor,h="".replace,f=/\$([$&'`]|\d\d?|<[^>]*>)/g,g=/\$([$&'`]|\d\d?)/g;o.exports=function(p,v,b,S,T,k){var F=b+p.length,M=S.length,z=g;return T!==void 0&&(T=u(T),z=f),h.call(k,z,function(X,H){var re;switch(H.charAt(0)){case"$":return"$";case"&":return p;case"`":return v.slice(0,b);case"'":return v.slice(F);case"<":re=T[H.slice(1,-1)];break;default:var G=+H;if(G===0)return X;if(G>M){var E=d(G/10);return E===0?X:E<=M?S[E-1]===void 0?H.charAt(1):S[E-1]+H.charAt(1):X}re=S[G-1]}return re===void 0?"":re})}},7854:function(o,c,i){var u=function(d){return d&&d.Math==Math&&d};o.exports=u(typeof globalThis=="object"&&globalThis)||u(typeof window=="object"&&window)||u(typeof self=="object"&&self)||u(typeof i.g=="object"&&i.g)||function(){return this}()||Function("return this")()},6656:function(o){var c={}.hasOwnProperty;o.exports=function(i,u){return c.call(i,u)}},3501:function(o){o.exports={}},490:function(o,c,i){var u=i(5005);o.exports=u("document","documentElement")},4664:function(o,c,i){var u=i(9781),d=i(7293),h=i(317);o.exports=!u&&!d(function(){return Object.defineProperty(h("div"),"a",{get:function(){return 7}}).a!=7})},1179:function(o){var c=Math.abs,i=Math.pow,u=Math.floor,d=Math.log,h=Math.LN2,f=function(p,v,b){var S=new Array(b),T=b*8-v-1,k=(1<<T)-1,F=k>>1,M=v===23?i(2,-24)-i(2,-77):0,z=p<0||p===0&&1/p<0?1:0,X=0,H,re,G;for(p=c(p),p!=p||p===1/0?(re=p!=p?1:0,H=k):(H=u(d(p)/h),p*(G=i(2,-H))<1&&(H--,G*=2),H+F>=1?p+=M/G:p+=M*i(2,1-F),p*G>=2&&(H++,G/=2),H+F>=k?(re=0,H=k):H+F>=1?(re=(p*G-1)*i(2,v),H=H+F):(re=p*i(2,F-1)*i(2,v),H=0));v>=8;S[X++]=re&255,re/=256,v-=8);for(H=H<<v|re,T+=v;T>0;S[X++]=H&255,H/=256,T-=8);return S[--X]|=z*128,S},g=function(p,v){var b=p.length,S=b*8-v-1,T=(1<<S)-1,k=T>>1,F=S-7,M=b-1,z=p[M--],X=z&127,H;for(z>>=7;F>0;X=X*256+p[M],M--,F-=8);for(H=X&(1<<-F)-1,X>>=-F,F+=v;F>0;H=H*256+p[M],M--,F-=8);if(X===0)X=1-k;else{if(X===T)return H?NaN:z?-1/0:1/0;H=H+i(2,v),X=X-k}return(z?-1:1)*H*i(2,X-v)};o.exports={pack:f,unpack:g}},8361:function(o,c,i){var u=i(7293),d=i(4326),h="".split;o.exports=u(function(){return!Object("z").propertyIsEnumerable(0)})?function(f){return d(f)=="String"?h.call(f,""):Object(f)}:Object},9587:function(o,c,i){var u=i(111),d=i(7674);o.exports=function(h,f,g){var p,v;return d&&typeof(p=f.constructor)=="function"&&p!==g&&u(v=p.prototype)&&v!==g.prototype&&d(h,v),h}},2788:function(o,c,i){var u=i(5465),d=Function.toString;typeof u.inspectSource!="function"&&(u.inspectSource=function(h){return d.call(h)}),o.exports=u.inspectSource},9909:function(o,c,i){var u=i(8536),d=i(7854),h=i(111),f=i(8880),g=i(6656),p=i(5465),v=i(6200),b=i(3501),S=d.WeakMap,T,k,F,M=function(P){return F(P)?k(P):T(P,{})},z=function(P){return function(O){var _;if(!h(O)||(_=k(O)).type!==P)throw TypeError("Incompatible receiver, "+P+" required");return _}};if(u){var X=p.state||(p.state=new S),H=X.get,re=X.has,G=X.set;T=function(P,O){return O.facade=P,G.call(X,P,O),O},k=function(P){return H.call(X,P)||{}},F=function(P){return re.call(X,P)}}else{var E=v("state");b[E]=!0,T=function(P,O){return O.facade=P,f(P,E,O),O},k=function(P){return g(P,E)?P[E]:{}},F=function(P){return g(P,E)}}o.exports={set:T,get:k,has:F,enforce:M,getterFor:z}},7659:function(o,c,i){var u=i(5112),d=i(7497),h=u("iterator"),f=Array.prototype;o.exports=function(g){return g!==void 0&&(d.Array===g||f[h]===g)}},3157:function(o,c,i){var u=i(4326);o.exports=Array.isArray||function(h){return u(h)=="Array"}},4705:function(o,c,i){var u=i(7293),d=/#|\.prototype\./,h=function(b,S){var T=g[f(b)];return T==v?!0:T==p?!1:typeof S=="function"?u(S):!!S},f=h.normalize=function(b){return String(b).replace(d,".").toLowerCase()},g=h.data={},p=h.NATIVE="N",v=h.POLYFILL="P";o.exports=h},111:function(o){o.exports=function(c){return typeof c=="object"?c!==null:typeof c=="function"}},1913:function(o){o.exports=!1},7850:function(o,c,i){var u=i(111),d=i(4326),h=i(5112),f=h("match");o.exports=function(g){var p;return u(g)&&((p=g[f])!==void 0?!!p:d(g)=="RegExp")}},9212:function(o,c,i){var u=i(9670);o.exports=function(d){var h=d.return;if(h!==void 0)return u(h.call(d)).value}},3383:function(o,c,i){var u=i(7293),d=i(9518),h=i(8880),f=i(6656),g=i(5112),p=i(1913),v=g("iterator"),b=!1,S=function(){return this},T,k,F;[].keys&&(F=[].keys(),"next"in F?(k=d(d(F)),k!==Object.prototype&&(T=k)):b=!0);var M=T==null||u(function(){var z={};return T[v].call(z)!==z});M&&(T={}),(!p||M)&&!f(T,v)&&h(T,v,S),o.exports={IteratorPrototype:T,BUGGY_SAFARI_ITERATORS:b}},7497:function(o){o.exports={}},133:function(o,c,i){var u=i(7293);o.exports=!!Object.getOwnPropertySymbols&&!u(function(){return!String(Symbol())})},590:function(o,c,i){var u=i(7293),d=i(5112),h=i(1913),f=d("iterator");o.exports=!u(function(){var g=new URL("b?a=1&b=2&c=3","http://a"),p=g.searchParams,v="";return g.pathname="c%20d",p.forEach(function(b,S){p.delete("b"),v+=S+b}),h&&!g.toJSON||!p.sort||g.href!=="http://a/c%20d?a=1&c=3"||p.get("c")!=="3"||String(new URLSearchParams("?a=1"))!=="a=1"||!p[f]||new URL("https://a@b").username!=="a"||new URLSearchParams(new URLSearchParams("a=b")).get("a")!=="b"||new URL("http://тест").host!=="xn--e1aybc"||new URL("http://a#б").hash!=="#%D0%B1"||v!=="a1c3"||new URL("http://x",void 0).host!=="x"})},8536:function(o,c,i){var u=i(7854),d=i(2788),h=u.WeakMap;o.exports=typeof h=="function"&&/native code/.test(d(h))},1574:function(o,c,i){var u=i(9781),d=i(7293),h=i(1956),f=i(5181),g=i(5296),p=i(7908),v=i(8361),b=Object.assign,S=Object.defineProperty;o.exports=!b||d(function(){if(u&&b({b:1},b(S({},"a",{enumerable:!0,get:function(){S(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var T={},k={},F=Symbol(),M="abcdefghijklmnopqrst";return T[F]=7,M.split("").forEach(function(z){k[z]=z}),b({},T)[F]!=7||h(b({},k)).join("")!=M})?function(k,F){for(var M=p(k),z=arguments.length,X=1,H=f.f,re=g.f;z>X;)for(var G=v(arguments[X++]),E=H?h(G).concat(H(G)):h(G),P=E.length,O=0,_;P>O;)_=E[O++],(!u||re.call(G,_))&&(M[_]=G[_]);return M}:b},30:function(o,c,i){var u=i(9670),d=i(6048),h=i(748),f=i(3501),g=i(490),p=i(317),v=i(6200),b=">",S="<",T="prototype",k="script",F=v("IE_PROTO"),M=function(){},z=function(E){return S+k+b+E+S+"/"+k+b},X=function(E){E.write(z("")),E.close();var P=E.parentWindow.Object;return E=null,P},H=function(){var E=p("iframe"),P="java"+k+":",O;return E.style.display="none",g.appendChild(E),E.src=String(P),O=E.contentWindow.document,O.open(),O.write(z("document.F=Object")),O.close(),O.F},re,G=function(){try{re=document.domain&&new ActiveXObject("htmlfile")}catch{}G=re?X(re):H();for(var E=h.length;E--;)delete G[T][h[E]];return G()};f[F]=!0,o.exports=Object.create||function(P,O){var _;return P!==null?(M[T]=u(P),_=new M,M[T]=null,_[F]=P):_=G(),O===void 0?_:d(_,O)}},6048:function(o,c,i){var u=i(9781),d=i(3070),h=i(9670),f=i(1956);o.exports=u?Object.defineProperties:function(p,v){h(p);for(var b=f(v),S=b.length,T=0,k;S>T;)d.f(p,k=b[T++],v[k]);return p}},3070:function(o,c,i){var u=i(9781),d=i(4664),h=i(9670),f=i(7593),g=Object.defineProperty;c.f=u?g:function(v,b,S){if(h(v),b=f(b,!0),h(S),d)try{return g(v,b,S)}catch{}if("get"in S||"set"in S)throw TypeError("Accessors not supported");return"value"in S&&(v[b]=S.value),v}},1236:function(o,c,i){var u=i(9781),d=i(5296),h=i(9114),f=i(5656),g=i(7593),p=i(6656),v=i(4664),b=Object.getOwnPropertyDescriptor;c.f=u?b:function(T,k){if(T=f(T),k=g(k,!0),v)try{return b(T,k)}catch{}if(p(T,k))return h(!d.f.call(T,k),T[k])}},8006:function(o,c,i){var u=i(6324),d=i(748),h=d.concat("length","prototype");c.f=Object.getOwnPropertyNames||function(g){return u(g,h)}},5181:function(o,c){c.f=Object.getOwnPropertySymbols},9518:function(o,c,i){var u=i(6656),d=i(7908),h=i(6200),f=i(8544),g=h("IE_PROTO"),p=Object.prototype;o.exports=f?Object.getPrototypeOf:function(v){return v=d(v),u(v,g)?v[g]:typeof v.constructor=="function"&&v instanceof v.constructor?v.constructor.prototype:v instanceof Object?p:null}},6324:function(o,c,i){var u=i(6656),d=i(5656),h=i(1318).indexOf,f=i(3501);o.exports=function(g,p){var v=d(g),b=0,S=[],T;for(T in v)!u(f,T)&&u(v,T)&&S.push(T);for(;p.length>b;)u(v,T=p[b++])&&(~h(S,T)||S.push(T));return S}},1956:function(o,c,i){var u=i(6324),d=i(748);o.exports=Object.keys||function(f){return u(f,d)}},5296:function(o,c){var i={}.propertyIsEnumerable,u=Object.getOwnPropertyDescriptor,d=u&&!i.call({1:2},1);c.f=d?function(f){var g=u(this,f);return!!g&&g.enumerable}:i},7674:function(o,c,i){var u=i(9670),d=i(6077);o.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var h=!1,f={},g;try{g=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,g.call(f,[]),h=f instanceof Array}catch{}return function(v,b){return u(v),d(b),h?g.call(v,b):v.__proto__=b,v}}():void 0)},288:function(o,c,i){var u=i(1694),d=i(648);o.exports=u?{}.toString:function(){return"[object "+d(this)+"]"}},3887:function(o,c,i){var u=i(5005),d=i(8006),h=i(5181),f=i(9670);o.exports=u("Reflect","ownKeys")||function(p){var v=d.f(f(p)),b=h.f;return b?v.concat(b(p)):v}},857:function(o,c,i){var u=i(7854);o.exports=u},2248:function(o,c,i){var u=i(1320);o.exports=function(d,h,f){for(var g in h)u(d,g,h[g],f);return d}},1320:function(o,c,i){var u=i(7854),d=i(8880),h=i(6656),f=i(3505),g=i(2788),p=i(9909),v=p.get,b=p.enforce,S=String(String).split("String");(o.exports=function(T,k,F,M){var z=M?!!M.unsafe:!1,X=M?!!M.enumerable:!1,H=M?!!M.noTargetGet:!1,re;if(typeof F=="function"&&(typeof k=="string"&&!h(F,"name")&&d(F,"name",k),re=b(F),re.source||(re.source=S.join(typeof k=="string"?k:""))),T===u){X?T[k]=F:f(k,F);return}else z?!H&&T[k]&&(X=!0):delete T[k];X?T[k]=F:d(T,k,F)})(Function.prototype,"toString",function(){return typeof this=="function"&&v(this).source||g(this)})},7651:function(o,c,i){var u=i(4326),d=i(2261);o.exports=function(h,f){var g=h.exec;if(typeof g=="function"){var p=g.call(h,f);if(typeof p!="object")throw TypeError("RegExp exec method returned something other than an Object or null");return p}if(u(h)!=="RegExp")throw TypeError("RegExp#exec called on incompatible receiver");return d.call(h,f)}},2261:function(o,c,i){var u=i(7066),d=i(2999),h=RegExp.prototype.exec,f=String.prototype.replace,g=h,p=function(){var T=/a/,k=/b*/g;return h.call(T,"a"),h.call(k,"a"),T.lastIndex!==0||k.lastIndex!==0}(),v=d.UNSUPPORTED_Y||d.BROKEN_CARET,b=/()??/.exec("")[1]!==void 0,S=p||b||v;S&&(g=function(k){var F=this,M,z,X,H,re=v&&F.sticky,G=u.call(F),E=F.source,P=0,O=k;return re&&(G=G.replace("y",""),G.indexOf("g")===-1&&(G+="g"),O=String(k).slice(F.lastIndex),F.lastIndex>0&&(!F.multiline||F.multiline&&k[F.lastIndex-1]!==`
7
+ `)&&(E="(?: "+E+")",O=" "+O,P++),z=new RegExp("^(?:"+E+")",G)),b&&(z=new RegExp("^"+E+"$(?!\\s)",G)),p&&(M=F.lastIndex),X=h.call(re?z:F,O),re?X?(X.input=X.input.slice(P),X[0]=X[0].slice(P),X.index=F.lastIndex,F.lastIndex+=X[0].length):F.lastIndex=0:p&&X&&(F.lastIndex=F.global?X.index+X[0].length:M),b&&X&&X.length>1&&f.call(X[0],z,function(){for(H=1;H<arguments.length-2;H++)arguments[H]===void 0&&(X[H]=void 0)}),X}),o.exports=g},7066:function(o,c,i){var u=i(9670);o.exports=function(){var d=u(this),h="";return d.global&&(h+="g"),d.ignoreCase&&(h+="i"),d.multiline&&(h+="m"),d.dotAll&&(h+="s"),d.unicode&&(h+="u"),d.sticky&&(h+="y"),h}},2999:function(o,c,i){var u=i(7293);function d(h,f){return RegExp(h,f)}c.UNSUPPORTED_Y=u(function(){var h=d("a","y");return h.lastIndex=2,h.exec("abcd")!=null}),c.BROKEN_CARET=u(function(){var h=d("^r","gy");return h.lastIndex=2,h.exec("str")!=null})},4488:function(o){o.exports=function(c){if(c==null)throw TypeError("Can't call method on "+c);return c}},3505:function(o,c,i){var u=i(7854),d=i(8880);o.exports=function(h,f){try{d(u,h,f)}catch{u[h]=f}return f}},6340:function(o,c,i){var u=i(5005),d=i(3070),h=i(5112),f=i(9781),g=h("species");o.exports=function(p){var v=u(p),b=d.f;f&&v&&!v[g]&&b(v,g,{configurable:!0,get:function(){return this}})}},8003:function(o,c,i){var u=i(3070).f,d=i(6656),h=i(5112),f=h("toStringTag");o.exports=function(g,p,v){g&&!d(g=v?g:g.prototype,f)&&u(g,f,{configurable:!0,value:p})}},6200:function(o,c,i){var u=i(2309),d=i(9711),h=u("keys");o.exports=function(f){return h[f]||(h[f]=d(f))}},5465:function(o,c,i){var u=i(7854),d=i(3505),h="__core-js_shared__",f=u[h]||d(h,{});o.exports=f},2309:function(o,c,i){var u=i(1913),d=i(5465);(o.exports=function(h,f){return d[h]||(d[h]=f!==void 0?f:{})})("versions",[]).push({version:"3.9.0",mode:u?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},6707:function(o,c,i){var u=i(9670),d=i(3099),h=i(5112),f=h("species");o.exports=function(g,p){var v=u(g).constructor,b;return v===void 0||(b=u(v)[f])==null?p:d(b)}},8710:function(o,c,i){var u=i(9958),d=i(4488),h=function(f){return function(g,p){var v=String(d(g)),b=u(p),S=v.length,T,k;return b<0||b>=S?f?"":void 0:(T=v.charCodeAt(b),T<55296||T>56319||b+1===S||(k=v.charCodeAt(b+1))<56320||k>57343?f?v.charAt(b):T:f?v.slice(b,b+2):(T-55296<<10)+(k-56320)+65536)}};o.exports={codeAt:h(!1),charAt:h(!0)}},3197:function(o){var c=2147483647,i=36,u=1,d=26,h=38,f=700,g=72,p=128,v="-",b=/[^\0-\u007E]/,S=/[.\u3002\uFF0E\uFF61]/g,T="Overflow: input needs wider integers to process",k=i-u,F=Math.floor,M=String.fromCharCode,z=function(G){for(var E=[],P=0,O=G.length;P<O;){var _=G.charCodeAt(P++);if(_>=55296&&_<=56319&&P<O){var j=G.charCodeAt(P++);(j&64512)==56320?E.push(((_&1023)<<10)+(j&1023)+65536):(E.push(_),P--)}else E.push(_)}return E},X=function(G){return G+22+75*(G<26)},H=function(G,E,P){var O=0;for(G=P?F(G/f):G>>1,G+=F(G/E);G>k*d>>1;O+=i)G=F(G/k);return F(O+(k+1)*G/(G+h))},re=function(G){var E=[];G=z(G);var P=G.length,O=p,_=0,j=g,V,K;for(V=0;V<G.length;V++)K=G[V],K<128&&E.push(M(K));var q=E.length,J=q;for(q&&E.push(v);J<P;){var te=c;for(V=0;V<G.length;V++)K=G[V],K>=O&&K<te&&(te=K);var me=J+1;if(te-O>F((c-_)/me))throw RangeError(T);for(_+=(te-O)*me,O=te,V=0;V<G.length;V++){if(K=G[V],K<O&&++_>c)throw RangeError(T);if(K==O){for(var ge=_,ve=i;;ve+=i){var xe=ve<=j?u:ve>=j+d?d:ve-j;if(ge<xe)break;var he=ge-xe,Oe=i-xe;E.push(M(X(xe+he%Oe))),ge=F(he/Oe)}E.push(M(X(ge))),j=H(_,me,J==q),_=0,++J}}++_,++O}return E.join("")};o.exports=function(G){var E=[],P=G.toLowerCase().replace(S,".").split("."),O,_;for(O=0;O<P.length;O++)_=P[O],E.push(b.test(_)?"xn--"+re(_):_);return E.join(".")}},6091:function(o,c,i){var u=i(7293),d=i(1361),h="​…᠎";o.exports=function(f){return u(function(){return!!d[f]()||h[f]()!=h||d[f].name!==f})}},3111:function(o,c,i){var u=i(4488),d=i(1361),h="["+d+"]",f=RegExp("^"+h+h+"*"),g=RegExp(h+h+"*$"),p=function(v){return function(b){var S=String(u(b));return v&1&&(S=S.replace(f,"")),v&2&&(S=S.replace(g,"")),S}};o.exports={start:p(1),end:p(2),trim:p(3)}},1400:function(o,c,i){var u=i(9958),d=Math.max,h=Math.min;o.exports=function(f,g){var p=u(f);return p<0?d(p+g,0):h(p,g)}},7067:function(o,c,i){var u=i(9958),d=i(7466);o.exports=function(h){if(h===void 0)return 0;var f=u(h),g=d(f);if(f!==g)throw RangeError("Wrong length or index");return g}},5656:function(o,c,i){var u=i(8361),d=i(4488);o.exports=function(h){return u(d(h))}},9958:function(o){var c=Math.ceil,i=Math.floor;o.exports=function(u){return isNaN(u=+u)?0:(u>0?i:c)(u)}},7466:function(o,c,i){var u=i(9958),d=Math.min;o.exports=function(h){return h>0?d(u(h),9007199254740991):0}},7908:function(o,c,i){var u=i(4488);o.exports=function(d){return Object(u(d))}},4590:function(o,c,i){var u=i(3002);o.exports=function(d,h){var f=u(d);if(f%h)throw RangeError("Wrong offset");return f}},3002:function(o,c,i){var u=i(9958);o.exports=function(d){var h=u(d);if(h<0)throw RangeError("The argument can't be less than 0");return h}},7593:function(o,c,i){var u=i(111);o.exports=function(d,h){if(!u(d))return d;var f,g;if(h&&typeof(f=d.toString)=="function"&&!u(g=f.call(d))||typeof(f=d.valueOf)=="function"&&!u(g=f.call(d))||!h&&typeof(f=d.toString)=="function"&&!u(g=f.call(d)))return g;throw TypeError("Can't convert object to primitive value")}},1694:function(o,c,i){var u=i(5112),d=u("toStringTag"),h={};h[d]="z",o.exports=String(h)==="[object z]"},9843:function(o,c,i){var u=i(2109),d=i(7854),h=i(9781),f=i(3832),g=i(260),p=i(3331),v=i(5787),b=i(9114),S=i(8880),T=i(7466),k=i(7067),F=i(4590),M=i(7593),z=i(6656),X=i(648),H=i(111),re=i(30),G=i(7674),E=i(8006).f,P=i(7321),O=i(2092).forEach,_=i(6340),j=i(3070),V=i(1236),K=i(9909),q=i(9587),J=K.get,te=K.set,me=j.f,ge=V.f,ve=Math.round,xe=d.RangeError,he=p.ArrayBuffer,Oe=p.DataView,ye=g.NATIVE_ARRAY_BUFFER_VIEWS,N=g.TYPED_ARRAY_TAG,R=g.TypedArray,w=g.TypedArrayPrototype,C=g.aTypedArrayConstructor,y=g.isTypedArray,x="BYTES_PER_ELEMENT",I="Wrong length",B=function(Q,ne){for(var oe=0,fe=ne.length,we=new(C(Q))(fe);fe>oe;)we[oe]=ne[oe++];return we},U=function(Q,ne){me(Q,ne,{get:function(){return J(this)[ne]}})},$=function(Q){var ne;return Q instanceof he||(ne=X(Q))=="ArrayBuffer"||ne=="SharedArrayBuffer"},W=function(Q,ne){return y(Q)&&typeof ne!="symbol"&&ne in Q&&String(+ne)==String(ne)},Z=function(ne,oe){return W(ne,oe=M(oe,!0))?b(2,ne[oe]):ge(ne,oe)},Y=function(ne,oe,fe){return W(ne,oe=M(oe,!0))&&H(fe)&&z(fe,"value")&&!z(fe,"get")&&!z(fe,"set")&&!fe.configurable&&(!z(fe,"writable")||fe.writable)&&(!z(fe,"enumerable")||fe.enumerable)?(ne[oe]=fe.value,ne):me(ne,oe,fe)};h?(ye||(V.f=Z,j.f=Y,U(w,"buffer"),U(w,"byteOffset"),U(w,"byteLength"),U(w,"length")),u({target:"Object",stat:!0,forced:!ye},{getOwnPropertyDescriptor:Z,defineProperty:Y}),o.exports=function(Q,ne,oe){var fe=Q.match(/\d+$/)[0]/8,we=Q+(oe?"Clamped":"")+"Array",De="get"+Q,Ge="set"+Q,je=d[we],Be=je,Ve=Be&&Be.prototype,rt={},it=function(_e,Pe){var We=J(_e);return We.view[De](Pe*fe+We.byteOffset,!0)},Dt=function(_e,Pe,We){var pe=J(_e);oe&&(We=(We=ve(We))<0?0:We>255?255:We&255),pe.view[Ge](Pe*fe+pe.byteOffset,We,!0)},bt=function(_e,Pe){me(_e,Pe,{get:function(){return it(this,Pe)},set:function(We){return Dt(this,Pe,We)},enumerable:!0})};ye?f&&(Be=ne(function(_e,Pe,We,pe){return v(_e,Be,we),q(function(){return H(Pe)?$(Pe)?pe!==void 0?new je(Pe,F(We,fe),pe):We!==void 0?new je(Pe,F(We,fe)):new je(Pe):y(Pe)?B(Be,Pe):P.call(Be,Pe):new je(k(Pe))}(),_e,Be)}),G&&G(Be,R),O(E(je),function(_e){_e in Be||S(Be,_e,je[_e])}),Be.prototype=Ve):(Be=ne(function(_e,Pe,We,pe){v(_e,Be,we);var be=0,Ce=0,Ie,Re,$e;if(!H(Pe))$e=k(Pe),Re=$e*fe,Ie=new he(Re);else if($(Pe)){Ie=Pe,Ce=F(We,fe);var Ke=Pe.byteLength;if(pe===void 0){if(Ke%fe||(Re=Ke-Ce,Re<0))throw xe(I)}else if(Re=T(pe)*fe,Re+Ce>Ke)throw xe(I);$e=Re/fe}else return y(Pe)?B(Be,Pe):P.call(Be,Pe);for(te(_e,{buffer:Ie,byteOffset:Ce,byteLength:Re,length:$e,view:new Oe(Ie)});be<$e;)bt(_e,be++)}),G&&G(Be,R),Ve=Be.prototype=re(w)),Ve.constructor!==Be&&S(Ve,"constructor",Be),N&&S(Ve,N,we),rt[we]=Be,u({global:!0,forced:Be!=je,sham:!ye},rt),x in Be||S(Be,x,fe),x in Ve||S(Ve,x,fe),_(we)}):o.exports=function(){}},3832:function(o,c,i){var u=i(7854),d=i(7293),h=i(7072),f=i(260).NATIVE_ARRAY_BUFFER_VIEWS,g=u.ArrayBuffer,p=u.Int8Array;o.exports=!f||!d(function(){p(1)})||!d(function(){new p(-1)})||!h(function(v){new p,new p(null),new p(1.5),new p(v)},!0)||d(function(){return new p(new g(2),1,void 0).length!==1})},3074:function(o,c,i){var u=i(260).aTypedArrayConstructor,d=i(6707);o.exports=function(h,f){for(var g=d(h,h.constructor),p=0,v=f.length,b=new(u(g))(v);v>p;)b[p]=f[p++];return b}},7321:function(o,c,i){var u=i(7908),d=i(7466),h=i(1246),f=i(7659),g=i(9974),p=i(260).aTypedArrayConstructor;o.exports=function(b){var S=u(b),T=arguments.length,k=T>1?arguments[1]:void 0,F=k!==void 0,M=h(S),z,X,H,re,G,E;if(M!=null&&!f(M))for(G=M.call(S),E=G.next,S=[];!(re=E.call(G)).done;)S.push(re.value);for(F&&T>2&&(k=g(k,arguments[2],2)),X=d(S.length),H=new(p(this))(X),z=0;X>z;z++)H[z]=F?k(S[z],z):S[z];return H}},9711:function(o){var c=0,i=Math.random();o.exports=function(u){return"Symbol("+String(u===void 0?"":u)+")_"+(++c+i).toString(36)}},3307:function(o,c,i){var u=i(133);o.exports=u&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},5112:function(o,c,i){var u=i(7854),d=i(2309),h=i(6656),f=i(9711),g=i(133),p=i(3307),v=d("wks"),b=u.Symbol,S=p?b:b&&b.withoutSetter||f;o.exports=function(T){return h(v,T)||(g&&h(b,T)?v[T]=b[T]:v[T]=S("Symbol."+T)),v[T]}},1361:function(o){o.exports=`
8
+ \v\f\r                 \u2028\u2029\uFEFF`},8264:function(o,c,i){var u=i(2109),d=i(7854),h=i(3331),f=i(6340),g="ArrayBuffer",p=h[g],v=d[g];u({global:!0,forced:v!==p},{ArrayBuffer:p}),f(g)},2222:function(o,c,i){var u=i(2109),d=i(7293),h=i(3157),f=i(111),g=i(7908),p=i(7466),v=i(6135),b=i(5417),S=i(1194),T=i(5112),k=i(7392),F=T("isConcatSpreadable"),M=9007199254740991,z="Maximum allowed index exceeded",X=k>=51||!d(function(){var E=[];return E[F]=!1,E.concat()[0]!==E}),H=S("concat"),re=function(E){if(!f(E))return!1;var P=E[F];return P!==void 0?!!P:h(E)},G=!X||!H;u({target:"Array",proto:!0,forced:G},{concat:function(P){var O=g(this),_=b(O,0),j=0,V,K,q,J,te;for(V=-1,q=arguments.length;V<q;V++)if(te=V===-1?O:arguments[V],re(te)){if(J=p(te.length),j+J>M)throw TypeError(z);for(K=0;K<J;K++,j++)K in te&&v(_,j,te[K])}else{if(j>=M)throw TypeError(z);v(_,j++,te)}return _.length=j,_}})},7327:function(o,c,i){var u=i(2109),d=i(2092).filter,h=i(1194),f=h("filter");u({target:"Array",proto:!0,forced:!f},{filter:function(p){return d(this,p,arguments.length>1?arguments[1]:void 0)}})},2772:function(o,c,i){var u=i(2109),d=i(1318).indexOf,h=i(9341),f=[].indexOf,g=!!f&&1/[1].indexOf(1,-0)<0,p=h("indexOf");u({target:"Array",proto:!0,forced:g||!p},{indexOf:function(b){return g?f.apply(this,arguments)||0:d(this,b,arguments.length>1?arguments[1]:void 0)}})},6992:function(o,c,i){var u=i(5656),d=i(1223),h=i(7497),f=i(9909),g=i(654),p="Array Iterator",v=f.set,b=f.getterFor(p);o.exports=g(Array,"Array",function(S,T){v(this,{type:p,target:u(S),index:0,kind:T})},function(){var S=b(this),T=S.target,k=S.kind,F=S.index++;return!T||F>=T.length?(S.target=void 0,{value:void 0,done:!0}):k=="keys"?{value:F,done:!1}:k=="values"?{value:T[F],done:!1}:{value:[F,T[F]],done:!1}},"values"),h.Arguments=h.Array,d("keys"),d("values"),d("entries")},1249:function(o,c,i){var u=i(2109),d=i(2092).map,h=i(1194),f=h("map");u({target:"Array",proto:!0,forced:!f},{map:function(p){return d(this,p,arguments.length>1?arguments[1]:void 0)}})},7042:function(o,c,i){var u=i(2109),d=i(111),h=i(3157),f=i(1400),g=i(7466),p=i(5656),v=i(6135),b=i(5112),S=i(1194),T=S("slice"),k=b("species"),F=[].slice,M=Math.max;u({target:"Array",proto:!0,forced:!T},{slice:function(X,H){var re=p(this),G=g(re.length),E=f(X,G),P=f(H===void 0?G:H,G),O,_,j;if(h(re)&&(O=re.constructor,typeof O=="function"&&(O===Array||h(O.prototype))?O=void 0:d(O)&&(O=O[k],O===null&&(O=void 0)),O===Array||O===void 0))return F.call(re,E,P);for(_=new(O===void 0?Array:O)(M(P-E,0)),j=0;E<P;E++,j++)E in re&&v(_,j,re[E]);return _.length=j,_}})},561:function(o,c,i){var u=i(2109),d=i(1400),h=i(9958),f=i(7466),g=i(7908),p=i(5417),v=i(6135),b=i(1194),S=b("splice"),T=Math.max,k=Math.min,F=9007199254740991,M="Maximum allowed length exceeded";u({target:"Array",proto:!0,forced:!S},{splice:function(X,H){var re=g(this),G=f(re.length),E=d(X,G),P=arguments.length,O,_,j,V,K,q;if(P===0?O=_=0:P===1?(O=0,_=G-E):(O=P-2,_=k(T(h(H),0),G-E)),G+O-_>F)throw TypeError(M);for(j=p(re,_),V=0;V<_;V++)K=E+V,K in re&&v(j,V,re[K]);if(j.length=_,O<_){for(V=E;V<G-_;V++)K=V+_,q=V+O,K in re?re[q]=re[K]:delete re[q];for(V=G;V>G-_+O;V--)delete re[V-1]}else if(O>_)for(V=G-_;V>E;V--)K=V+_-1,q=V+O-1,K in re?re[q]=re[K]:delete re[q];for(V=0;V<O;V++)re[V+E]=arguments[V+2];return re.length=G-_+O,j}})},8309:function(o,c,i){var u=i(9781),d=i(3070).f,h=Function.prototype,f=h.toString,g=/^\s*function ([^ (]*)/,p="name";u&&!(p in h)&&d(h,p,{configurable:!0,get:function(){try{return f.call(this).match(g)[1]}catch{return""}}})},489:function(o,c,i){var u=i(2109),d=i(7293),h=i(7908),f=i(9518),g=i(8544),p=d(function(){f(1)});u({target:"Object",stat:!0,forced:p,sham:!g},{getPrototypeOf:function(b){return f(h(b))}})},1539:function(o,c,i){var u=i(1694),d=i(1320),h=i(288);u||d(Object.prototype,"toString",h,{unsafe:!0})},4916:function(o,c,i){var u=i(2109),d=i(2261);u({target:"RegExp",proto:!0,forced:/./.exec!==d},{exec:d})},9714:function(o,c,i){var u=i(1320),d=i(9670),h=i(7293),f=i(7066),g="toString",p=RegExp.prototype,v=p[g],b=h(function(){return v.call({source:"a",flags:"b"})!="/a/b"}),S=v.name!=g;(b||S)&&u(RegExp.prototype,g,function(){var k=d(this),F=String(k.source),M=k.flags,z=String(M===void 0&&k instanceof RegExp&&!("flags"in p)?f.call(k):M);return"/"+F+"/"+z},{unsafe:!0})},8783:function(o,c,i){var u=i(8710).charAt,d=i(9909),h=i(654),f="String Iterator",g=d.set,p=d.getterFor(f);h(String,"String",function(v){g(this,{type:f,string:String(v),index:0})},function(){var b=p(this),S=b.string,T=b.index,k;return T>=S.length?{value:void 0,done:!0}:(k=u(S,T),b.index+=k.length,{value:k,done:!1})})},4723:function(o,c,i){var u=i(7007),d=i(9670),h=i(7466),f=i(4488),g=i(1530),p=i(7651);u("match",1,function(v,b,S){return[function(k){var F=f(this),M=k==null?void 0:k[v];return M!==void 0?M.call(k,F):new RegExp(k)[v](String(F))},function(T){var k=S(b,T,this);if(k.done)return k.value;var F=d(T),M=String(this);if(!F.global)return p(F,M);var z=F.unicode;F.lastIndex=0;for(var X=[],H=0,re;(re=p(F,M))!==null;){var G=String(re[0]);X[H]=G,G===""&&(F.lastIndex=g(M,h(F.lastIndex),z)),H++}return H===0?null:X}]})},5306:function(o,c,i){var u=i(7007),d=i(9670),h=i(7466),f=i(9958),g=i(4488),p=i(1530),v=i(647),b=i(7651),S=Math.max,T=Math.min,k=function(F){return F===void 0?F:String(F)};u("replace",2,function(F,M,z,X){var H=X.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,re=X.REPLACE_KEEPS_$0,G=H?"$":"$0";return[function(P,O){var _=g(this),j=P==null?void 0:P[F];return j!==void 0?j.call(P,_,O):M.call(String(_),P,O)},function(E,P){if(!H&&re||typeof P=="string"&&P.indexOf(G)===-1){var O=z(M,E,this,P);if(O.done)return O.value}var _=d(E),j=String(this),V=typeof P=="function";V||(P=String(P));var K=_.global;if(K){var q=_.unicode;_.lastIndex=0}for(var J=[];;){var te=b(_,j);if(te===null||(J.push(te),!K))break;var me=String(te[0]);me===""&&(_.lastIndex=p(j,h(_.lastIndex),q))}for(var ge="",ve=0,xe=0;xe<J.length;xe++){te=J[xe];for(var he=String(te[0]),Oe=S(T(f(te.index),j.length),0),ye=[],N=1;N<te.length;N++)ye.push(k(te[N]));var R=te.groups;if(V){var w=[he].concat(ye,Oe,j);R!==void 0&&w.push(R);var C=String(P.apply(void 0,w))}else C=v(he,j,Oe,ye,R,P);Oe>=ve&&(ge+=j.slice(ve,Oe)+C,ve=Oe+he.length)}return ge+j.slice(ve)}]})},3123:function(o,c,i){var u=i(7007),d=i(7850),h=i(9670),f=i(4488),g=i(6707),p=i(1530),v=i(7466),b=i(7651),S=i(2261),T=i(7293),k=[].push,F=Math.min,M=4294967295,z=!T(function(){return!RegExp(M,"y")});u("split",2,function(X,H,re){var G;return"abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?G=function(E,P){var O=String(f(this)),_=P===void 0?M:P>>>0;if(_===0)return[];if(E===void 0)return[O];if(!d(E))return H.call(O,E,_);for(var j=[],V=(E.ignoreCase?"i":"")+(E.multiline?"m":"")+(E.unicode?"u":"")+(E.sticky?"y":""),K=0,q=new RegExp(E.source,V+"g"),J,te,me;(J=S.call(q,O))&&(te=q.lastIndex,!(te>K&&(j.push(O.slice(K,J.index)),J.length>1&&J.index<O.length&&k.apply(j,J.slice(1)),me=J[0].length,K=te,j.length>=_)));)q.lastIndex===J.index&&q.lastIndex++;return K===O.length?(me||!q.test(""))&&j.push(""):j.push(O.slice(K)),j.length>_?j.slice(0,_):j}:"0".split(void 0,0).length?G=function(E,P){return E===void 0&&P===0?[]:H.call(this,E,P)}:G=H,[function(P,O){var _=f(this),j=P==null?void 0:P[X];return j!==void 0?j.call(P,_,O):G.call(String(_),P,O)},function(E,P){var O=re(G,E,this,P,G!==H);if(O.done)return O.value;var _=h(E),j=String(this),V=g(_,RegExp),K=_.unicode,q=(_.ignoreCase?"i":"")+(_.multiline?"m":"")+(_.unicode?"u":"")+(z?"y":"g"),J=new V(z?_:"^(?:"+_.source+")",q),te=P===void 0?M:P>>>0;if(te===0)return[];if(j.length===0)return b(J,j)===null?[j]:[];for(var me=0,ge=0,ve=[];ge<j.length;){J.lastIndex=z?ge:0;var xe=b(J,z?j:j.slice(ge)),he;if(xe===null||(he=F(v(J.lastIndex+(z?0:ge)),j.length))===me)ge=p(j,ge,K);else{if(ve.push(j.slice(me,ge)),ve.length===te)return ve;for(var Oe=1;Oe<=xe.length-1;Oe++)if(ve.push(xe[Oe]),ve.length===te)return ve;ge=me=he}}return ve.push(j.slice(me)),ve}]},!z)},3210:function(o,c,i){var u=i(2109),d=i(3111).trim,h=i(6091);u({target:"String",proto:!0,forced:h("trim")},{trim:function(){return d(this)}})},2990:function(o,c,i){var u=i(260),d=i(1048),h=u.aTypedArray,f=u.exportTypedArrayMethod;f("copyWithin",function(p,v){return d.call(h(this),p,v,arguments.length>2?arguments[2]:void 0)})},8927:function(o,c,i){var u=i(260),d=i(2092).every,h=u.aTypedArray,f=u.exportTypedArrayMethod;f("every",function(p){return d(h(this),p,arguments.length>1?arguments[1]:void 0)})},3105:function(o,c,i){var u=i(260),d=i(1285),h=u.aTypedArray,f=u.exportTypedArrayMethod;f("fill",function(p){return d.apply(h(this),arguments)})},5035:function(o,c,i){var u=i(260),d=i(2092).filter,h=i(3074),f=u.aTypedArray,g=u.exportTypedArrayMethod;g("filter",function(v){var b=d(f(this),v,arguments.length>1?arguments[1]:void 0);return h(this,b)})},7174:function(o,c,i){var u=i(260),d=i(2092).findIndex,h=u.aTypedArray,f=u.exportTypedArrayMethod;f("findIndex",function(p){return d(h(this),p,arguments.length>1?arguments[1]:void 0)})},4345:function(o,c,i){var u=i(260),d=i(2092).find,h=u.aTypedArray,f=u.exportTypedArrayMethod;f("find",function(p){return d(h(this),p,arguments.length>1?arguments[1]:void 0)})},2846:function(o,c,i){var u=i(260),d=i(2092).forEach,h=u.aTypedArray,f=u.exportTypedArrayMethod;f("forEach",function(p){d(h(this),p,arguments.length>1?arguments[1]:void 0)})},4731:function(o,c,i){var u=i(260),d=i(1318).includes,h=u.aTypedArray,f=u.exportTypedArrayMethod;f("includes",function(p){return d(h(this),p,arguments.length>1?arguments[1]:void 0)})},7209:function(o,c,i){var u=i(260),d=i(1318).indexOf,h=u.aTypedArray,f=u.exportTypedArrayMethod;f("indexOf",function(p){return d(h(this),p,arguments.length>1?arguments[1]:void 0)})},6319:function(o,c,i){var u=i(7854),d=i(260),h=i(6992),f=i(5112),g=f("iterator"),p=u.Uint8Array,v=h.values,b=h.keys,S=h.entries,T=d.aTypedArray,k=d.exportTypedArrayMethod,F=p&&p.prototype[g],M=!!F&&(F.name=="values"||F.name==null),z=function(){return v.call(T(this))};k("entries",function(){return S.call(T(this))}),k("keys",function(){return b.call(T(this))}),k("values",z,!M),k(g,z,!M)},8867:function(o,c,i){var u=i(260),d=u.aTypedArray,h=u.exportTypedArrayMethod,f=[].join;h("join",function(p){return f.apply(d(this),arguments)})},7789:function(o,c,i){var u=i(260),d=i(6583),h=u.aTypedArray,f=u.exportTypedArrayMethod;f("lastIndexOf",function(p){return d.apply(h(this),arguments)})},3739:function(o,c,i){var u=i(260),d=i(2092).map,h=i(6707),f=u.aTypedArray,g=u.aTypedArrayConstructor,p=u.exportTypedArrayMethod;p("map",function(b){return d(f(this),b,arguments.length>1?arguments[1]:void 0,function(S,T){return new(g(h(S,S.constructor)))(T)})})},4483:function(o,c,i){var u=i(260),d=i(3671).right,h=u.aTypedArray,f=u.exportTypedArrayMethod;f("reduceRight",function(p){return d(h(this),p,arguments.length,arguments.length>1?arguments[1]:void 0)})},9368:function(o,c,i){var u=i(260),d=i(3671).left,h=u.aTypedArray,f=u.exportTypedArrayMethod;f("reduce",function(p){return d(h(this),p,arguments.length,arguments.length>1?arguments[1]:void 0)})},2056:function(o,c,i){var u=i(260),d=u.aTypedArray,h=u.exportTypedArrayMethod,f=Math.floor;h("reverse",function(){for(var p=this,v=d(p).length,b=f(v/2),S=0,T;S<b;)T=p[S],p[S++]=p[--v],p[v]=T;return p})},3462:function(o,c,i){var u=i(260),d=i(7466),h=i(4590),f=i(7908),g=i(7293),p=u.aTypedArray,v=u.exportTypedArrayMethod,b=g(function(){new Int8Array(1).set({})});v("set",function(T){p(this);var k=h(arguments.length>1?arguments[1]:void 0,1),F=this.length,M=f(T),z=d(M.length),X=0;if(z+k>F)throw RangeError("Wrong length");for(;X<z;)this[k+X]=M[X++]},b)},678:function(o,c,i){var u=i(260),d=i(6707),h=i(7293),f=u.aTypedArray,g=u.aTypedArrayConstructor,p=u.exportTypedArrayMethod,v=[].slice,b=h(function(){new Int8Array(1).slice()});p("slice",function(T,k){for(var F=v.call(f(this),T,k),M=d(this,this.constructor),z=0,X=F.length,H=new(g(M))(X);X>z;)H[z]=F[z++];return H},b)},7462:function(o,c,i){var u=i(260),d=i(2092).some,h=u.aTypedArray,f=u.exportTypedArrayMethod;f("some",function(p){return d(h(this),p,arguments.length>1?arguments[1]:void 0)})},3824:function(o,c,i){var u=i(260),d=u.aTypedArray,h=u.exportTypedArrayMethod,f=[].sort;h("sort",function(p){return f.call(d(this),p)})},5021:function(o,c,i){var u=i(260),d=i(7466),h=i(1400),f=i(6707),g=u.aTypedArray,p=u.exportTypedArrayMethod;p("subarray",function(b,S){var T=g(this),k=T.length,F=h(b,k);return new(f(T,T.constructor))(T.buffer,T.byteOffset+F*T.BYTES_PER_ELEMENT,d((S===void 0?k:h(S,k))-F))})},2974:function(o,c,i){var u=i(7854),d=i(260),h=i(7293),f=u.Int8Array,g=d.aTypedArray,p=d.exportTypedArrayMethod,v=[].toLocaleString,b=[].slice,S=!!f&&h(function(){v.call(new f(1))}),T=h(function(){return[1,2].toLocaleString()!=new f([1,2]).toLocaleString()})||!h(function(){f.prototype.toLocaleString.call([1,2])});p("toLocaleString",function(){return v.apply(S?b.call(g(this)):g(this),arguments)},T)},5016:function(o,c,i){var u=i(260).exportTypedArrayMethod,d=i(7293),h=i(7854),f=h.Uint8Array,g=f&&f.prototype||{},p=[].toString,v=[].join;d(function(){p.call({})})&&(p=function(){return v.call(this)});var b=g.toString!=p;u("toString",p,b)},2472:function(o,c,i){var u=i(9843);u("Uint8",function(d){return function(f,g,p){return d(this,f,g,p)}})},4747:function(o,c,i){var u=i(7854),d=i(8324),h=i(8533),f=i(8880);for(var g in d){var p=u[g],v=p&&p.prototype;if(v&&v.forEach!==h)try{f(v,"forEach",h)}catch{v.forEach=h}}},3948:function(o,c,i){var u=i(7854),d=i(8324),h=i(6992),f=i(8880),g=i(5112),p=g("iterator"),v=g("toStringTag"),b=h.values;for(var S in d){var T=u[S],k=T&&T.prototype;if(k){if(k[p]!==b)try{f(k,p,b)}catch{k[p]=b}if(k[v]||f(k,v,S),d[S]){for(var F in h)if(k[F]!==h[F])try{f(k,F,h[F])}catch{k[F]=h[F]}}}}},1637:function(o,c,i){i(6992);var u=i(2109),d=i(5005),h=i(590),f=i(1320),g=i(2248),p=i(8003),v=i(4994),b=i(9909),S=i(5787),T=i(6656),k=i(9974),F=i(648),M=i(9670),z=i(111),X=i(30),H=i(9114),re=i(8554),G=i(1246),E=i(5112),P=d("fetch"),O=d("Headers"),_=E("iterator"),j="URLSearchParams",V=j+"Iterator",K=b.set,q=b.getterFor(j),J=b.getterFor(V),te=/\+/g,me=Array(4),ge=function(B){return me[B-1]||(me[B-1]=RegExp("((?:%[\\da-f]{2}){"+B+"})","gi"))},ve=function(B){try{return decodeURIComponent(B)}catch{return B}},xe=function(B){var U=B.replace(te," "),$=4;try{return decodeURIComponent(U)}catch{for(;$;)U=U.replace(ge($--),ve);return U}},he=/[!'()~]|%20/g,Oe={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},ye=function(B){return Oe[B]},N=function(B){return encodeURIComponent(B).replace(he,ye)},R=function(B,U){if(U)for(var $=U.split("&"),W=0,Z,Y;W<$.length;)Z=$[W++],Z.length&&(Y=Z.split("="),B.push({key:xe(Y.shift()),value:xe(Y.join("="))}))},w=function(B){this.entries.length=0,R(this.entries,B)},C=function(B,U){if(B<U)throw TypeError("Not enough arguments")},y=v(function(U,$){K(this,{type:V,iterator:re(q(U).entries),kind:$})},"Iterator",function(){var U=J(this),$=U.kind,W=U.iterator.next(),Z=W.value;return W.done||(W.value=$==="keys"?Z.key:$==="values"?Z.value:[Z.key,Z.value]),W}),x=function(){S(this,x,j);var U=arguments.length>0?arguments[0]:void 0,$=this,W=[],Z,Y,Q,ne,oe,fe,we,De,Ge;if(K($,{type:j,entries:W,updateURL:function(){},updateSearchParams:w}),U!==void 0)if(z(U))if(Z=G(U),typeof Z=="function")for(Y=Z.call(U),Q=Y.next;!(ne=Q.call(Y)).done;){if(oe=re(M(ne.value)),fe=oe.next,(we=fe.call(oe)).done||(De=fe.call(oe)).done||!fe.call(oe).done)throw TypeError("Expected sequence with length 2");W.push({key:we.value+"",value:De.value+""})}else for(Ge in U)T(U,Ge)&&W.push({key:Ge,value:U[Ge]+""});else R(W,typeof U=="string"?U.charAt(0)==="?"?U.slice(1):U:U+"")},I=x.prototype;g(I,{append:function(U,$){C(arguments.length,2);var W=q(this);W.entries.push({key:U+"",value:$+""}),W.updateURL()},delete:function(B){C(arguments.length,1);for(var U=q(this),$=U.entries,W=B+"",Z=0;Z<$.length;)$[Z].key===W?$.splice(Z,1):Z++;U.updateURL()},get:function(U){C(arguments.length,1);for(var $=q(this).entries,W=U+"",Z=0;Z<$.length;Z++)if($[Z].key===W)return $[Z].value;return null},getAll:function(U){C(arguments.length,1);for(var $=q(this).entries,W=U+"",Z=[],Y=0;Y<$.length;Y++)$[Y].key===W&&Z.push($[Y].value);return Z},has:function(U){C(arguments.length,1);for(var $=q(this).entries,W=U+"",Z=0;Z<$.length;)if($[Z++].key===W)return!0;return!1},set:function(U,$){C(arguments.length,1);for(var W=q(this),Z=W.entries,Y=!1,Q=U+"",ne=$+"",oe=0,fe;oe<Z.length;oe++)fe=Z[oe],fe.key===Q&&(Y?Z.splice(oe--,1):(Y=!0,fe.value=ne));Y||Z.push({key:Q,value:ne}),W.updateURL()},sort:function(){var U=q(this),$=U.entries,W=$.slice(),Z,Y,Q;for($.length=0,Q=0;Q<W.length;Q++){for(Z=W[Q],Y=0;Y<Q;Y++)if($[Y].key>Z.key){$.splice(Y,0,Z);break}Y===Q&&$.push(Z)}U.updateURL()},forEach:function(U){for(var $=q(this).entries,W=k(U,arguments.length>1?arguments[1]:void 0,3),Z=0,Y;Z<$.length;)Y=$[Z++],W(Y.value,Y.key,this)},keys:function(){return new y(this,"keys")},values:function(){return new y(this,"values")},entries:function(){return new y(this,"entries")}},{enumerable:!0}),f(I,_,I.entries),f(I,"toString",function(){for(var U=q(this).entries,$=[],W=0,Z;W<U.length;)Z=U[W++],$.push(N(Z.key)+"="+N(Z.value));return $.join("&")},{enumerable:!0}),p(x,j),u({global:!0,forced:!h},{URLSearchParams:x}),!h&&typeof P=="function"&&typeof O=="function"&&u({global:!0,enumerable:!0,forced:!0},{fetch:function(U){var $=[U],W,Z,Y;return arguments.length>1&&(W=arguments[1],z(W)&&(Z=W.body,F(Z)===j&&(Y=W.headers?new O(W.headers):new O,Y.has("content-type")||Y.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"),W=X(W,{body:H(0,String(Z)),headers:H(0,Y)}))),$.push(W)),P.apply(this,$)}}),o.exports={URLSearchParams:x,getState:q}},285:function(o,c,i){i(8783);var u=i(2109),d=i(9781),h=i(590),f=i(7854),g=i(6048),p=i(1320),v=i(5787),b=i(6656),S=i(1574),T=i(8457),k=i(8710).codeAt,F=i(3197),M=i(8003),z=i(1637),X=i(9909),H=f.URL,re=z.URLSearchParams,G=z.getState,E=X.set,P=X.getterFor("URL"),O=Math.floor,_=Math.pow,j="Invalid authority",V="Invalid scheme",K="Invalid host",q="Invalid port",J=/[A-Za-z]/,te=/[\d+-.A-Za-z]/,me=/\d/,ge=/^(0x|0X)/,ve=/^[0-7]+$/,xe=/^\d+$/,he=/^[\dA-Fa-f]+$/,Oe=/[\u0000\t\u000A\u000D #%/:?@[\\]]/,ye=/[\u0000\t\u000A\u000D #/:?@[\\]]/,N=/^[\u0000-\u001F ]+|[\u0000-\u001F ]+$/g,R=/[\t\u000A\u000D]/g,w,C=function(L,ae){var se,ce,de;if(ae.charAt(0)=="["){if(ae.charAt(ae.length-1)!="]"||(se=x(ae.slice(1,-1)),!se))return K;L.host=se}else if(ne(L)){if(ae=F(ae),Oe.test(ae)||(se=y(ae),se===null))return K;L.host=se}else{if(ye.test(ae))return K;for(se="",ce=T(ae),de=0;de<ce.length;de++)se+=Y(ce[de],U);L.host=se}},y=function(L){var ae=L.split("."),se,ce,de,Le,Ae,Ue,qe;if(ae.length&&ae[ae.length-1]==""&&ae.pop(),se=ae.length,se>4)return L;for(ce=[],de=0;de<se;de++){if(Le=ae[de],Le=="")return L;if(Ae=10,Le.length>1&&Le.charAt(0)=="0"&&(Ae=ge.test(Le)?16:8,Le=Le.slice(Ae==8?1:2)),Le==="")Ue=0;else{if(!(Ae==10?xe:Ae==8?ve:he).test(Le))return L;Ue=parseInt(Le,Ae)}ce.push(Ue)}for(de=0;de<se;de++)if(Ue=ce[de],de==se-1){if(Ue>=_(256,5-se))return null}else if(Ue>255)return null;for(qe=ce.pop(),de=0;de<ce.length;de++)qe+=ce[de]*_(256,3-de);return qe},x=function(L){var ae=[0,0,0,0,0,0,0,0],se=0,ce=null,de=0,Le,Ae,Ue,qe,Qe,Et,ue,st=function(){return L.charAt(de)};if(st()==":"){if(L.charAt(1)!=":")return;de+=2,se++,ce=se}for(;st();){if(se==8)return;if(st()==":"){if(ce!==null)return;de++,se++,ce=se;continue}for(Le=Ae=0;Ae<4&&he.test(st());)Le=Le*16+parseInt(st(),16),de++,Ae++;if(st()=="."){if(Ae==0||(de-=Ae,se>6))return;for(Ue=0;st();){if(qe=null,Ue>0)if(st()=="."&&Ue<4)de++;else return;if(!me.test(st()))return;for(;me.test(st());){if(Qe=parseInt(st(),10),qe===null)qe=Qe;else{if(qe==0)return;qe=qe*10+Qe}if(qe>255)return;de++}ae[se]=ae[se]*256+qe,Ue++,(Ue==2||Ue==4)&&se++}if(Ue!=4)return;break}else if(st()==":"){if(de++,!st())return}else if(st())return;ae[se++]=Le}if(ce!==null)for(Et=se-ce,se=7;se!=0&&Et>0;)ue=ae[se],ae[se--]=ae[ce+Et-1],ae[ce+--Et]=ue;else if(se!=8)return;return ae},I=function(L){for(var ae=null,se=1,ce=null,de=0,Le=0;Le<8;Le++)L[Le]!==0?(de>se&&(ae=ce,se=de),ce=null,de=0):(ce===null&&(ce=Le),++de);return de>se&&(ae=ce,se=de),ae},B=function(L){var ae,se,ce,de;if(typeof L=="number"){for(ae=[],se=0;se<4;se++)ae.unshift(L%256),L=O(L/256);return ae.join(".")}else if(typeof L=="object"){for(ae="",ce=I(L),se=0;se<8;se++)de&&L[se]===0||(de&&(de=!1),ce===se?(ae+=se?":":"::",de=!0):(ae+=L[se].toString(16),se<7&&(ae+=":")));return"["+ae+"]"}return L},U={},$=S({},U,{" ":1,'"':1,"<":1,">":1,"`":1}),W=S({},$,{"#":1,"?":1,"{":1,"}":1}),Z=S({},W,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),Y=function(L,ae){var se=k(L,0);return se>32&&se<127&&!b(ae,L)?L:encodeURIComponent(L)},Q={ftp:21,file:null,http:80,https:443,ws:80,wss:443},ne=function(L){return b(Q,L.scheme)},oe=function(L){return L.username!=""||L.password!=""},fe=function(L){return!L.host||L.cannotBeABaseURL||L.scheme=="file"},we=function(L,ae){var se;return L.length==2&&J.test(L.charAt(0))&&((se=L.charAt(1))==":"||!ae&&se=="|")},De=function(L){var ae;return L.length>1&&we(L.slice(0,2))&&(L.length==2||(ae=L.charAt(2))==="/"||ae==="\\"||ae==="?"||ae==="#")},Ge=function(L){var ae=L.path,se=ae.length;se&&(L.scheme!="file"||se!=1||!we(ae[0],!0))&&ae.pop()},je=function(L){return L==="."||L.toLowerCase()==="%2e"},Be=function(L){return L=L.toLowerCase(),L===".."||L==="%2e."||L===".%2e"||L==="%2e%2e"},Ve={},rt={},it={},Dt={},bt={},_e={},Pe={},We={},pe={},be={},Ce={},Ie={},Re={},$e={},Ke={},et={},dt={},ft={},Rt={},Ut={},lt={},Ot=function(L,ae,se,ce){var de=se||Ve,Le=0,Ae="",Ue=!1,qe=!1,Qe=!1,Et,ue,st,It;for(se||(L.scheme="",L.username="",L.password="",L.host=null,L.port=null,L.path=[],L.query=null,L.fragment=null,L.cannotBeABaseURL=!1,ae=ae.replace(N,"")),ae=ae.replace(R,""),Et=T(ae);Le<=Et.length;){switch(ue=Et[Le],de){case Ve:if(ue&&J.test(ue))Ae+=ue.toLowerCase(),de=rt;else{if(se)return V;de=it;continue}break;case rt:if(ue&&(te.test(ue)||ue=="+"||ue=="-"||ue=="."))Ae+=ue.toLowerCase();else if(ue==":"){if(se&&(ne(L)!=b(Q,Ae)||Ae=="file"&&(oe(L)||L.port!==null)||L.scheme=="file"&&!L.host))return;if(L.scheme=Ae,se){ne(L)&&Q[L.scheme]==L.port&&(L.port=null);return}Ae="",L.scheme=="file"?de=$e:ne(L)&&ce&&ce.scheme==L.scheme?de=Dt:ne(L)?de=We:Et[Le+1]=="/"?(de=bt,Le++):(L.cannotBeABaseURL=!0,L.path.push(""),de=Rt)}else{if(se)return V;Ae="",de=it,Le=0;continue}break;case it:if(!ce||ce.cannotBeABaseURL&&ue!="#")return V;if(ce.cannotBeABaseURL&&ue=="#"){L.scheme=ce.scheme,L.path=ce.path.slice(),L.query=ce.query,L.fragment="",L.cannotBeABaseURL=!0,de=lt;break}de=ce.scheme=="file"?$e:_e;continue;case Dt:if(ue=="/"&&Et[Le+1]=="/")de=pe,Le++;else{de=_e;continue}break;case bt:if(ue=="/"){de=be;break}else{de=ft;continue}case _e:if(L.scheme=ce.scheme,ue==w)L.username=ce.username,L.password=ce.password,L.host=ce.host,L.port=ce.port,L.path=ce.path.slice(),L.query=ce.query;else if(ue=="/"||ue=="\\"&&ne(L))de=Pe;else if(ue=="?")L.username=ce.username,L.password=ce.password,L.host=ce.host,L.port=ce.port,L.path=ce.path.slice(),L.query="",de=Ut;else if(ue=="#")L.username=ce.username,L.password=ce.password,L.host=ce.host,L.port=ce.port,L.path=ce.path.slice(),L.query=ce.query,L.fragment="",de=lt;else{L.username=ce.username,L.password=ce.password,L.host=ce.host,L.port=ce.port,L.path=ce.path.slice(),L.path.pop(),de=ft;continue}break;case Pe:if(ne(L)&&(ue=="/"||ue=="\\"))de=pe;else if(ue=="/")de=be;else{L.username=ce.username,L.password=ce.password,L.host=ce.host,L.port=ce.port,de=ft;continue}break;case We:if(de=pe,ue!="/"||Ae.charAt(Le+1)!="/")continue;Le++;break;case pe:if(ue!="/"&&ue!="\\"){de=be;continue}break;case be:if(ue=="@"){Ue&&(Ae="%40"+Ae),Ue=!0,st=T(Ae);for(var Gn=0;Gn<st.length;Gn++){var vn=st[Gn];if(vn==":"&&!Qe){Qe=!0;continue}var kn=Y(vn,Z);Qe?L.password+=kn:L.username+=kn}Ae=""}else if(ue==w||ue=="/"||ue=="?"||ue=="#"||ue=="\\"&&ne(L)){if(Ue&&Ae=="")return j;Le-=T(Ae).length+1,Ae="",de=Ce}else Ae+=ue;break;case Ce:case Ie:if(se&&L.scheme=="file"){de=et;continue}else if(ue==":"&&!qe){if(Ae=="")return K;if(It=C(L,Ae),It)return It;if(Ae="",de=Re,se==Ie)return}else if(ue==w||ue=="/"||ue=="?"||ue=="#"||ue=="\\"&&ne(L)){if(ne(L)&&Ae=="")return K;if(se&&Ae==""&&(oe(L)||L.port!==null))return;if(It=C(L,Ae),It)return It;if(Ae="",de=dt,se)return;continue}else ue=="["?qe=!0:ue=="]"&&(qe=!1),Ae+=ue;break;case Re:if(me.test(ue))Ae+=ue;else if(ue==w||ue=="/"||ue=="?"||ue=="#"||ue=="\\"&&ne(L)||se){if(Ae!=""){var Yt=parseInt(Ae,10);if(Yt>65535)return q;L.port=ne(L)&&Yt===Q[L.scheme]?null:Yt,Ae=""}if(se)return;de=dt;continue}else return q;break;case $e:if(L.scheme="file",ue=="/"||ue=="\\")de=Ke;else if(ce&&ce.scheme=="file")if(ue==w)L.host=ce.host,L.path=ce.path.slice(),L.query=ce.query;else if(ue=="?")L.host=ce.host,L.path=ce.path.slice(),L.query="",de=Ut;else if(ue=="#")L.host=ce.host,L.path=ce.path.slice(),L.query=ce.query,L.fragment="",de=lt;else{De(Et.slice(Le).join(""))||(L.host=ce.host,L.path=ce.path.slice(),Ge(L)),de=ft;continue}else{de=ft;continue}break;case Ke:if(ue=="/"||ue=="\\"){de=et;break}ce&&ce.scheme=="file"&&!De(Et.slice(Le).join(""))&&(we(ce.path[0],!0)?L.path.push(ce.path[0]):L.host=ce.host),de=ft;continue;case et:if(ue==w||ue=="/"||ue=="\\"||ue=="?"||ue=="#"){if(!se&&we(Ae))de=ft;else if(Ae==""){if(L.host="",se)return;de=dt}else{if(It=C(L,Ae),It)return It;if(L.host=="localhost"&&(L.host=""),se)return;Ae="",de=dt}continue}else Ae+=ue;break;case dt:if(ne(L)){if(de=ft,ue!="/"&&ue!="\\")continue}else if(!se&&ue=="?")L.query="",de=Ut;else if(!se&&ue=="#")L.fragment="",de=lt;else if(ue!=w&&(de=ft,ue!="/"))continue;break;case ft:if(ue==w||ue=="/"||ue=="\\"&&ne(L)||!se&&(ue=="?"||ue=="#")){if(Be(Ae)?(Ge(L),ue!="/"&&!(ue=="\\"&&ne(L))&&L.path.push("")):je(Ae)?ue!="/"&&!(ue=="\\"&&ne(L))&&L.path.push(""):(L.scheme=="file"&&!L.path.length&&we(Ae)&&(L.host&&(L.host=""),Ae=Ae.charAt(0)+":"),L.path.push(Ae)),Ae="",L.scheme=="file"&&(ue==w||ue=="?"||ue=="#"))for(;L.path.length>1&&L.path[0]==="";)L.path.shift();ue=="?"?(L.query="",de=Ut):ue=="#"&&(L.fragment="",de=lt)}else Ae+=Y(ue,W);break;case Rt:ue=="?"?(L.query="",de=Ut):ue=="#"?(L.fragment="",de=lt):ue!=w&&(L.path[0]+=Y(ue,U));break;case Ut:!se&&ue=="#"?(L.fragment="",de=lt):ue!=w&&(ue=="'"&&ne(L)?L.query+="%27":ue=="#"?L.query+="%23":L.query+=Y(ue,U));break;case lt:ue!=w&&(L.fragment+=Y(ue,$));break}Le++}},Xt=function(ae){var se=v(this,Xt,"URL"),ce=arguments.length>1?arguments[1]:void 0,de=String(ae),Le=E(se,{type:"URL"}),Ae,Ue;if(ce!==void 0){if(ce instanceof Xt)Ae=P(ce);else if(Ue=Ot(Ae={},String(ce)),Ue)throw TypeError(Ue)}if(Ue=Ot(Le,de,null,Ae),Ue)throw TypeError(Ue);var qe=Le.searchParams=new re,Qe=G(qe);Qe.updateSearchParams(Le.query),Qe.updateURL=function(){Le.query=String(qe)||null},d||(se.href=gn.call(se),se.origin=Cn.call(se),se.protocol=ot.call(se),se.username=fr.call(se),se.password=hr.call(se),se.host=pr.call(se),se.hostname=mr.call(se),se.port=gr.call(se),se.pathname=ct.call(se),se.search=vr.call(se),se.searchParams=yr.call(se),se.hash=br.call(se))},Hn=Xt.prototype,gn=function(){var L=P(this),ae=L.scheme,se=L.username,ce=L.password,de=L.host,Le=L.port,Ae=L.path,Ue=L.query,qe=L.fragment,Qe=ae+":";return de!==null?(Qe+="//",oe(L)&&(Qe+=se+(ce?":"+ce:"")+"@"),Qe+=B(de),Le!==null&&(Qe+=":"+Le)):ae=="file"&&(Qe+="//"),Qe+=L.cannotBeABaseURL?Ae[0]:Ae.length?"/"+Ae.join("/"):"",Ue!==null&&(Qe+="?"+Ue),qe!==null&&(Qe+="#"+qe),Qe},Cn=function(){var L=P(this),ae=L.scheme,se=L.port;if(ae=="blob")try{return new URL(ae.path[0]).origin}catch{return"null"}return ae=="file"||!ne(L)?"null":ae+"://"+B(L.host)+(se!==null?":"+se:"")},ot=function(){return P(this).scheme+":"},fr=function(){return P(this).username},hr=function(){return P(this).password},pr=function(){var L=P(this),ae=L.host,se=L.port;return ae===null?"":se===null?B(ae):B(ae)+":"+se},mr=function(){var L=P(this).host;return L===null?"":B(L)},gr=function(){var L=P(this).port;return L===null?"":String(L)},ct=function(){var L=P(this),ae=L.path;return L.cannotBeABaseURL?ae[0]:ae.length?"/"+ae.join("/"):""},vr=function(){var L=P(this).query;return L?"?"+L:""},yr=function(){return P(this).searchParams},br=function(){var L=P(this).fragment;return L?"#"+L:""},xt=function(L,ae){return{get:L,set:ae,configurable:!0,enumerable:!0}};if(d&&g(Hn,{href:xt(gn,function(L){var ae=P(this),se=String(L),ce=Ot(ae,se);if(ce)throw TypeError(ce);G(ae.searchParams).updateSearchParams(ae.query)}),origin:xt(Cn),protocol:xt(ot,function(L){var ae=P(this);Ot(ae,String(L)+":",Ve)}),username:xt(fr,function(L){var ae=P(this),se=T(String(L));if(!fe(ae)){ae.username="";for(var ce=0;ce<se.length;ce++)ae.username+=Y(se[ce],Z)}}),password:xt(hr,function(L){var ae=P(this),se=T(String(L));if(!fe(ae)){ae.password="";for(var ce=0;ce<se.length;ce++)ae.password+=Y(se[ce],Z)}}),host:xt(pr,function(L){var ae=P(this);ae.cannotBeABaseURL||Ot(ae,String(L),Ce)}),hostname:xt(mr,function(L){var ae=P(this);ae.cannotBeABaseURL||Ot(ae,String(L),Ie)}),port:xt(gr,function(L){var ae=P(this);fe(ae)||(L=String(L),L==""?ae.port=null:Ot(ae,L,Re))}),pathname:xt(ct,function(L){var ae=P(this);ae.cannotBeABaseURL||(ae.path=[],Ot(ae,L+"",dt))}),search:xt(vr,function(L){var ae=P(this);L=String(L),L==""?ae.query=null:(L.charAt(0)=="?"&&(L=L.slice(1)),ae.query="",Ot(ae,L,Ut)),G(ae.searchParams).updateSearchParams(ae.query)}),searchParams:xt(yr),hash:xt(br,function(L){var ae=P(this);if(L=String(L),L==""){ae.fragment=null;return}L.charAt(0)=="#"&&(L=L.slice(1)),ae.fragment="",Ot(ae,L,lt)})}),p(Hn,"toJSON",function(){return gn.call(this)},{enumerable:!0}),p(Hn,"toString",function(){return gn.call(this)},{enumerable:!0}),H){var xr=H.createObjectURL,pt=H.revokeObjectURL;xr&&p(Xt,"createObjectURL",function(ae){return xr.apply(H,arguments)}),pt&&p(Xt,"revokeObjectURL",function(ae){return pt.apply(H,arguments)})}M(Xt,"URL"),u({global:!0,forced:!h,sham:!d},{URL:Xt})}},r={};function s(o){if(r[o])return r[o].exports;var c=r[o]={exports:{}};return t[o](c,c.exports,s),c.exports}(function(){s.d=function(o,c){for(var i in c)s.o(c,i)&&!s.o(o,i)&&Object.defineProperty(o,i,{enumerable:!0,get:c[i]})}})(),function(){s.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}()}(),function(){s.o=function(o,c){return Object.prototype.hasOwnProperty.call(o,c)}}(),function(){s.r=function(o){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(o,"__esModule",{value:!0})}}();var l={};return function(){s.r(l),s.d(l,{Dropzone:function(){return q},default:function(){return ye}}),s(2222),s(7327),s(2772),s(6992),s(1249),s(7042),s(561),s(8264),s(8309),s(489),s(1539),s(4916),s(9714),s(8783),s(4723),s(5306),s(3123),s(3210),s(2472),s(2990),s(8927),s(3105),s(5035),s(4345),s(7174),s(2846),s(4731),s(7209),s(6319),s(8867),s(7789),s(3739),s(9368),s(4483),s(2056),s(3462),s(678),s(7462),s(3824),s(5021),s(2974),s(5016),s(4747),s(3948),s(285);function o(N,R){var w;if(typeof Symbol>"u"||N[Symbol.iterator]==null){if(Array.isArray(N)||(w=c(N))||N&&typeof N.length=="number"){w&&(N=w);var C=0,y=function(){};return{s:y,n:function(){return C>=N.length?{done:!0}:{done:!1,value:N[C++]}},e:function($){throw $},f:y}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
9
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var x=!0,I=!1,B;return{s:function(){w=N[Symbol.iterator]()},n:function(){var $=w.next();return x=$.done,$},e:function($){I=!0,B=$},f:function(){try{!x&&w.return!=null&&w.return()}finally{if(I)throw B}}}}function c(N,R){if(N){if(typeof N=="string")return i(N,R);var w=Object.prototype.toString.call(N).slice(8,-1);if(w==="Object"&&N.constructor&&(w=N.constructor.name),w==="Map"||w==="Set")return Array.from(N);if(w==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(w))return i(N,R)}}function i(N,R){(R==null||R>N.length)&&(R=N.length);for(var w=0,C=new Array(R);w<R;w++)C[w]=N[w];return C}function u(N,R){if(!(N instanceof R))throw new TypeError("Cannot call a class as a function")}function d(N,R){for(var w=0;w<R.length;w++){var C=R[w];C.enumerable=C.enumerable||!1,C.configurable=!0,"value"in C&&(C.writable=!0),Object.defineProperty(N,C.key,C)}}function h(N,R,w){return R&&d(N.prototype,R),N}var f=function(){function N(){u(this,N)}return h(N,[{key:"on",value:function(w,C){return this._callbacks=this._callbacks||{},this._callbacks[w]||(this._callbacks[w]=[]),this._callbacks[w].push(C),this}},{key:"emit",value:function(w){this._callbacks=this._callbacks||{};for(var C=this._callbacks[w],y=arguments.length,x=new Array(y>1?y-1:0),I=1;I<y;I++)x[I-1]=arguments[I];if(C){var B=o(C),U;try{for(B.s();!(U=B.n()).done;){var $=U.value;$.apply(this,x)}}catch(W){B.e(W)}finally{B.f()}}return this.element&&this.element.dispatchEvent(this.makeEvent("dropzone:"+w,{args:x})),this}},{key:"makeEvent",value:function(w,C){var y={bubbles:!0,cancelable:!0,detail:C};if(typeof window.CustomEvent=="function")return new CustomEvent(w,y);var x=document.createEvent("CustomEvent");return x.initCustomEvent(w,y.bubbles,y.cancelable,y.detail),x}},{key:"off",value:function(w,C){if(!this._callbacks||arguments.length===0)return this._callbacks={},this;var y=this._callbacks[w];if(!y)return this;if(arguments.length===1)return delete this._callbacks[w],this;for(var x=0;x<y.length;x++){var I=y[x];if(I===C){y.splice(x,1);break}}return this}}]),N}(),g='<div class="dz-preview dz-file-preview"> <div class="dz-image"><img data-dz-thumbnail/></div> <div class="dz-details"> <div class="dz-size"><span data-dz-size></span></div> <div class="dz-filename"><span data-dz-name></span></div> </div> <div class="dz-progress"> <span class="dz-upload" data-dz-uploadprogress></span> </div> <div class="dz-error-message"><span data-dz-errormessage></span></div> <div class="dz-success-mark"> <svg width="54px" height="54px" viewBox="0 0 54 54" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <title>Check</title> <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"> <path d="M23.5,31.8431458 L17.5852419,25.9283877 C16.0248253,24.3679711 13.4910294,24.366835 11.9289322,25.9289322 C10.3700136,27.4878508 10.3665912,30.0234455 11.9283877,31.5852419 L20.4147581,40.0716123 C20.5133999,40.1702541 20.6159315,40.2626649 20.7218615,40.3488435 C22.2835669,41.8725651 24.794234,41.8626202 26.3461564,40.3106978 L43.3106978,23.3461564 C44.8771021,21.7797521 44.8758057,19.2483887 43.3137085,17.6862915 C41.7547899,16.1273729 39.2176035,16.1255422 37.6538436,17.6893022 L23.5,31.8431458 Z M27,53 C41.3594035,53 53,41.3594035 53,27 C53,12.6405965 41.3594035,1 27,1 C12.6405965,1 1,12.6405965 1,27 C1,41.3594035 12.6405965,53 27,53 Z" stroke-opacity="0.198794158" stroke="#747474" fill-opacity="0.816519475" fill="#FFFFFF"></path> </g> </svg> </div> <div class="dz-error-mark"> <svg width="54px" height="54px" viewBox="0 0 54 54" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <title>Error</title> <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"> <g stroke="#747474" stroke-opacity="0.198794158" fill="#FFFFFF" fill-opacity="0.816519475"> <path d="M32.6568542,29 L38.3106978,23.3461564 C39.8771021,21.7797521 39.8758057,19.2483887 38.3137085,17.6862915 C36.7547899,16.1273729 34.2176035,16.1255422 32.6538436,17.6893022 L27,23.3431458 L21.3461564,17.6893022 C19.7823965,16.1255422 17.2452101,16.1273729 15.6862915,17.6862915 C14.1241943,19.2483887 14.1228979,21.7797521 15.6893022,23.3461564 L21.3431458,29 L15.6893022,34.6538436 C14.1228979,36.2202479 14.1241943,38.7516113 15.6862915,40.3137085 C17.2452101,41.8726271 19.7823965,41.8744578 21.3461564,40.3106978 L27,34.6568542 L32.6538436,40.3106978 C34.2176035,41.8744578 36.7547899,41.8726271 38.3137085,40.3137085 C39.8758057,38.7516113 39.8771021,36.2202479 38.3106978,34.6538436 L32.6568542,29 Z M27,53 C41.3594035,53 53,41.3594035 53,27 C53,12.6405965 41.3594035,1 27,1 C12.6405965,1 1,12.6405965 1,27 C1,41.3594035 12.6405965,53 27,53 Z"></path> </g> </g> </svg> </div> </div> ',p=g;function v(N,R){var w;if(typeof Symbol>"u"||N[Symbol.iterator]==null){if(Array.isArray(N)||(w=b(N))||N&&typeof N.length=="number"){w&&(N=w);var C=0,y=function(){};return{s:y,n:function(){return C>=N.length?{done:!0}:{done:!1,value:N[C++]}},e:function($){throw $},f:y}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
10
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var x=!0,I=!1,B;return{s:function(){w=N[Symbol.iterator]()},n:function(){var $=w.next();return x=$.done,$},e:function($){I=!0,B=$},f:function(){try{!x&&w.return!=null&&w.return()}finally{if(I)throw B}}}}function b(N,R){if(N){if(typeof N=="string")return S(N,R);var w=Object.prototype.toString.call(N).slice(8,-1);if(w==="Object"&&N.constructor&&(w=N.constructor.name),w==="Map"||w==="Set")return Array.from(N);if(w==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(w))return S(N,R)}}function S(N,R){(R==null||R>N.length)&&(R=N.length);for(var w=0,C=new Array(R);w<R;w++)C[w]=N[w];return C}var T={url:null,method:"post",withCredentials:!1,timeout:null,parallelUploads:2,uploadMultiple:!1,chunking:!1,forceChunking:!1,chunkSize:2e6,parallelChunkUploads:!1,retryChunks:!1,retryChunksLimit:3,maxFilesize:256,paramName:"file",createImageThumbnails:!0,maxThumbnailFilesize:10,thumbnailWidth:120,thumbnailHeight:120,thumbnailMethod:"crop",resizeWidth:null,resizeHeight:null,resizeMimeType:null,resizeQuality:.8,resizeMethod:"contain",filesizeBase:1e3,maxFiles:null,headers:null,clickable:!0,ignoreHiddenFiles:!0,acceptedFiles:null,acceptedMimeTypes:null,autoProcessQueue:!0,autoQueue:!0,addRemoveLinks:!1,previewsContainer:null,disablePreviews:!1,hiddenInputContainer:"body",capture:null,renameFilename:null,renameFile:null,forceFallback:!1,dictDefaultMessage:"Drop files here to upload",dictFallbackMessage:"Your browser does not support drag'n'drop file uploads.",dictFallbackText:"Please use the fallback form below to upload your files like in the olden days.",dictFileTooBig:"File is too big ({{filesize}}MiB). Max filesize: {{maxFilesize}}MiB.",dictInvalidFileType:"You can't upload files of this type.",dictResponseError:"Server responded with {{statusCode}} code.",dictCancelUpload:"Cancel upload",dictUploadCanceled:"Upload canceled.",dictCancelUploadConfirmation:"Are you sure you want to cancel this upload?",dictRemoveFile:"Remove file",dictRemoveFileConfirmation:null,dictMaxFilesExceeded:"You can not upload any more files.",dictFileSizeUnits:{tb:"TB",gb:"GB",mb:"MB",kb:"KB",b:"b"},init:function(){},params:function(R,w,C){if(C)return{dzuuid:C.file.upload.uuid,dzchunkindex:C.index,dztotalfilesize:C.file.size,dzchunksize:this.options.chunkSize,dztotalchunkcount:C.file.upload.totalChunkCount,dzchunkbyteoffset:C.index*this.options.chunkSize}},accept:function(R,w){return w()},chunksUploaded:function(R,w){w()},fallback:function(){var R;this.element.className="".concat(this.element.className," dz-browser-not-supported");var w=v(this.element.getElementsByTagName("div")),C;try{for(w.s();!(C=w.n()).done;){var y=C.value;if(/(^| )dz-message($| )/.test(y.className)){R=y,y.className="dz-message";break}}}catch(I){w.e(I)}finally{w.f()}R||(R=q.createElement('<div class="dz-message"><span></span></div>'),this.element.appendChild(R));var x=R.getElementsByTagName("span")[0];return x&&(x.textContent!=null?x.textContent=this.options.dictFallbackMessage:x.innerText!=null&&(x.innerText=this.options.dictFallbackMessage)),this.element.appendChild(this.getFallbackForm())},resize:function(R,w,C,y){var x={srcX:0,srcY:0,srcWidth:R.width,srcHeight:R.height},I=R.width/R.height;w==null&&C==null?(w=x.srcWidth,C=x.srcHeight):w==null?w=C*I:C==null&&(C=w/I),w=Math.min(w,x.srcWidth),C=Math.min(C,x.srcHeight);var B=w/C;if(x.srcWidth>w||x.srcHeight>C)if(y==="crop")I>B?(x.srcHeight=R.height,x.srcWidth=x.srcHeight*B):(x.srcWidth=R.width,x.srcHeight=x.srcWidth/B);else if(y==="contain")I>B?C=w/I:w=C*I;else throw new Error("Unknown resizeMethod '".concat(y,"'"));return x.srcX=(R.width-x.srcWidth)/2,x.srcY=(R.height-x.srcHeight)/2,x.trgWidth=w,x.trgHeight=C,x},transformFile:function(R,w){return(this.options.resizeWidth||this.options.resizeHeight)&&R.type.match(/image.*/)?this.resizeImage(R,this.options.resizeWidth,this.options.resizeHeight,this.options.resizeMethod,w):w(R)},previewTemplate:p,drop:function(R){return this.element.classList.remove("dz-drag-hover")},dragstart:function(R){},dragend:function(R){return this.element.classList.remove("dz-drag-hover")},dragenter:function(R){return this.element.classList.add("dz-drag-hover")},dragover:function(R){return this.element.classList.add("dz-drag-hover")},dragleave:function(R){return this.element.classList.remove("dz-drag-hover")},paste:function(R){},reset:function(){return this.element.classList.remove("dz-started")},addedfile:function(R){var w=this;if(this.element===this.previewsContainer&&this.element.classList.add("dz-started"),this.previewsContainer&&!this.options.disablePreviews){R.previewElement=q.createElement(this.options.previewTemplate.trim()),R.previewTemplate=R.previewElement,this.previewsContainer.appendChild(R.previewElement);var C=v(R.previewElement.querySelectorAll("[data-dz-name]")),y;try{for(C.s();!(y=C.n()).done;){var x=y.value;x.textContent=R.name}}catch(Y){C.e(Y)}finally{C.f()}var I=v(R.previewElement.querySelectorAll("[data-dz-size]")),B;try{for(I.s();!(B=I.n()).done;)x=B.value,x.innerHTML=this.filesize(R.size)}catch(Y){I.e(Y)}finally{I.f()}this.options.addRemoveLinks&&(R._removeLink=q.createElement('<a class="dz-remove" href="javascript:undefined;" data-dz-remove>'.concat(this.options.dictRemoveFile,"</a>")),R.previewElement.appendChild(R._removeLink));var U=function(Q){return Q.preventDefault(),Q.stopPropagation(),R.status===q.UPLOADING?q.confirm(w.options.dictCancelUploadConfirmation,function(){return w.removeFile(R)}):w.options.dictRemoveFileConfirmation?q.confirm(w.options.dictRemoveFileConfirmation,function(){return w.removeFile(R)}):w.removeFile(R)},$=v(R.previewElement.querySelectorAll("[data-dz-remove]")),W;try{for($.s();!(W=$.n()).done;){var Z=W.value;Z.addEventListener("click",U)}}catch(Y){$.e(Y)}finally{$.f()}}},removedfile:function(R){return R.previewElement!=null&&R.previewElement.parentNode!=null&&R.previewElement.parentNode.removeChild(R.previewElement),this._updateMaxFilesReachedClass()},thumbnail:function(R,w){if(R.previewElement){R.previewElement.classList.remove("dz-file-preview");var C=v(R.previewElement.querySelectorAll("[data-dz-thumbnail]")),y;try{for(C.s();!(y=C.n()).done;){var x=y.value;x.alt=R.name,x.src=w}}catch(I){C.e(I)}finally{C.f()}return setTimeout(function(){return R.previewElement.classList.add("dz-image-preview")},1)}},error:function(R,w){if(R.previewElement){R.previewElement.classList.add("dz-error"),typeof w!="string"&&w.error&&(w=w.error);var C=v(R.previewElement.querySelectorAll("[data-dz-errormessage]")),y;try{for(C.s();!(y=C.n()).done;){var x=y.value;x.textContent=w}}catch(I){C.e(I)}finally{C.f()}}},errormultiple:function(){},processing:function(R){if(R.previewElement&&(R.previewElement.classList.add("dz-processing"),R._removeLink))return R._removeLink.innerHTML=this.options.dictCancelUpload},processingmultiple:function(){},uploadprogress:function(R,w,C){if(R.previewElement){var y=v(R.previewElement.querySelectorAll("[data-dz-uploadprogress]")),x;try{for(y.s();!(x=y.n()).done;){var I=x.value;I.nodeName==="PROGRESS"?I.value=w:I.style.width="".concat(w,"%")}}catch(B){y.e(B)}finally{y.f()}}},totaluploadprogress:function(){},sending:function(){},sendingmultiple:function(){},success:function(R){if(R.previewElement)return R.previewElement.classList.add("dz-success")},successmultiple:function(){},canceled:function(R){return this.emit("error",R,this.options.dictUploadCanceled)},canceledmultiple:function(){},complete:function(R){if(R._removeLink&&(R._removeLink.innerHTML=this.options.dictRemoveFile),R.previewElement)return R.previewElement.classList.add("dz-complete")},completemultiple:function(){},maxfilesexceeded:function(){},maxfilesreached:function(){},queuecomplete:function(){},addedfiles:function(){}},k=T;function F(N){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?F=function(w){return typeof w}:F=function(w){return w&&typeof Symbol=="function"&&w.constructor===Symbol&&w!==Symbol.prototype?"symbol":typeof w},F(N)}function M(N,R){var w;if(typeof Symbol>"u"||N[Symbol.iterator]==null){if(Array.isArray(N)||(w=z(N))||N&&typeof N.length=="number"){w&&(N=w);var C=0,y=function(){};return{s:y,n:function(){return C>=N.length?{done:!0}:{done:!1,value:N[C++]}},e:function($){throw $},f:y}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
11
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var x=!0,I=!1,B;return{s:function(){w=N[Symbol.iterator]()},n:function(){var $=w.next();return x=$.done,$},e:function($){I=!0,B=$},f:function(){try{!x&&w.return!=null&&w.return()}finally{if(I)throw B}}}}function z(N,R){if(N){if(typeof N=="string")return X(N,R);var w=Object.prototype.toString.call(N).slice(8,-1);if(w==="Object"&&N.constructor&&(w=N.constructor.name),w==="Map"||w==="Set")return Array.from(N);if(w==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(w))return X(N,R)}}function X(N,R){(R==null||R>N.length)&&(R=N.length);for(var w=0,C=new Array(R);w<R;w++)C[w]=N[w];return C}function H(N,R){if(!(N instanceof R))throw new TypeError("Cannot call a class as a function")}function re(N,R){for(var w=0;w<R.length;w++){var C=R[w];C.enumerable=C.enumerable||!1,C.configurable=!0,"value"in C&&(C.writable=!0),Object.defineProperty(N,C.key,C)}}function G(N,R,w){return R&&re(N.prototype,R),w&&re(N,w),N}function E(N,R){if(typeof R!="function"&&R!==null)throw new TypeError("Super expression must either be null or a function");N.prototype=Object.create(R&&R.prototype,{constructor:{value:N,writable:!0,configurable:!0}}),R&&P(N,R)}function P(N,R){return P=Object.setPrototypeOf||function(C,y){return C.__proto__=y,C},P(N,R)}function O(N){var R=V();return function(){var C=K(N),y;if(R){var x=K(this).constructor;y=Reflect.construct(C,arguments,x)}else y=C.apply(this,arguments);return _(this,y)}}function _(N,R){return R&&(F(R)==="object"||typeof R=="function")?R:j(N)}function j(N){if(N===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return N}function V(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function K(N){return K=Object.setPrototypeOf?Object.getPrototypeOf:function(w){return w.__proto__||Object.getPrototypeOf(w)},K(N)}var q=function(N){E(w,N);var R=O(w);function w(C,y){var x;H(this,w),x=R.call(this);var I,B;if(x.element=C,x.version=w.version,x.clickableElements=[],x.listeners=[],x.files=[],typeof x.element=="string"&&(x.element=document.querySelector(x.element)),!x.element||x.element.nodeType==null)throw new Error("Invalid dropzone element.");if(x.element.dropzone)throw new Error("Dropzone already attached.");w.instances.push(j(x)),x.element.dropzone=j(x);var U=(B=w.optionsForElement(x.element))!=null?B:{};if(x.options=w.extend({},k,U,y??{}),x.options.previewTemplate=x.options.previewTemplate.replace(/\n*/g,""),x.options.forceFallback||!w.isBrowserSupported())return _(x,x.options.fallback.call(j(x)));if(x.options.url==null&&(x.options.url=x.element.getAttribute("action")),!x.options.url)throw new Error("No URL provided.");if(x.options.acceptedFiles&&x.options.acceptedMimeTypes)throw new Error("You can't provide both 'acceptedFiles' and 'acceptedMimeTypes'. 'acceptedMimeTypes' is deprecated.");if(x.options.uploadMultiple&&x.options.chunking)throw new Error("You cannot set both: uploadMultiple and chunking.");return x.options.acceptedMimeTypes&&(x.options.acceptedFiles=x.options.acceptedMimeTypes,delete x.options.acceptedMimeTypes),x.options.renameFilename!=null&&(x.options.renameFile=function($){return x.options.renameFilename.call(j(x),$.name,$)}),typeof x.options.method=="string"&&(x.options.method=x.options.method.toUpperCase()),(I=x.getExistingFallback())&&I.parentNode&&I.parentNode.removeChild(I),x.options.previewsContainer!==!1&&(x.options.previewsContainer?x.previewsContainer=w.getElement(x.options.previewsContainer,"previewsContainer"):x.previewsContainer=x.element),x.options.clickable&&(x.options.clickable===!0?x.clickableElements=[x.element]:x.clickableElements=w.getElements(x.options.clickable,"clickable")),x.init(),x}return G(w,[{key:"getAcceptedFiles",value:function(){return this.files.filter(function(y){return y.accepted}).map(function(y){return y})}},{key:"getRejectedFiles",value:function(){return this.files.filter(function(y){return!y.accepted}).map(function(y){return y})}},{key:"getFilesWithStatus",value:function(y){return this.files.filter(function(x){return x.status===y}).map(function(x){return x})}},{key:"getQueuedFiles",value:function(){return this.getFilesWithStatus(w.QUEUED)}},{key:"getUploadingFiles",value:function(){return this.getFilesWithStatus(w.UPLOADING)}},{key:"getAddedFiles",value:function(){return this.getFilesWithStatus(w.ADDED)}},{key:"getActiveFiles",value:function(){return this.files.filter(function(y){return y.status===w.UPLOADING||y.status===w.QUEUED}).map(function(y){return y})}},{key:"init",value:function(){var y=this;if(this.element.tagName==="form"&&this.element.setAttribute("enctype","multipart/form-data"),this.element.classList.contains("dropzone")&&!this.element.querySelector(".dz-message")&&this.element.appendChild(w.createElement('<div class="dz-default dz-message"><button class="dz-button" type="button">'.concat(this.options.dictDefaultMessage,"</button></div>"))),this.clickableElements.length){var x=function Z(){y.hiddenFileInput&&y.hiddenFileInput.parentNode.removeChild(y.hiddenFileInput),y.hiddenFileInput=document.createElement("input"),y.hiddenFileInput.setAttribute("type","file"),(y.options.maxFiles===null||y.options.maxFiles>1)&&y.hiddenFileInput.setAttribute("multiple","multiple"),y.hiddenFileInput.className="dz-hidden-input",y.options.acceptedFiles!==null&&y.hiddenFileInput.setAttribute("accept",y.options.acceptedFiles),y.options.capture!==null&&y.hiddenFileInput.setAttribute("capture",y.options.capture),y.hiddenFileInput.setAttribute("tabindex","-1"),y.hiddenFileInput.style.visibility="hidden",y.hiddenFileInput.style.position="absolute",y.hiddenFileInput.style.top="0",y.hiddenFileInput.style.left="0",y.hiddenFileInput.style.height="0",y.hiddenFileInput.style.width="0",w.getElement(y.options.hiddenInputContainer,"hiddenInputContainer").appendChild(y.hiddenFileInput),y.hiddenFileInput.addEventListener("change",function(){var Y=y.hiddenFileInput.files;if(Y.length){var Q=M(Y),ne;try{for(Q.s();!(ne=Q.n()).done;){var oe=ne.value;y.addFile(oe)}}catch(fe){Q.e(fe)}finally{Q.f()}}y.emit("addedfiles",Y),Z()})};x()}this.URL=window.URL!==null?window.URL:window.webkitURL;var I=M(this.events),B;try{for(I.s();!(B=I.n()).done;){var U=B.value;this.on(U,this.options[U])}}catch(Z){I.e(Z)}finally{I.f()}this.on("uploadprogress",function(){return y.updateTotalUploadProgress()}),this.on("removedfile",function(){return y.updateTotalUploadProgress()}),this.on("canceled",function(Z){return y.emit("complete",Z)}),this.on("complete",function(Z){if(y.getAddedFiles().length===0&&y.getUploadingFiles().length===0&&y.getQueuedFiles().length===0)return setTimeout(function(){return y.emit("queuecomplete")},0)});var $=function(Y){if(Y.dataTransfer.types){for(var Q=0;Q<Y.dataTransfer.types.length;Q++)if(Y.dataTransfer.types[Q]==="Files")return!0}return!1},W=function(Y){if($(Y))return Y.stopPropagation(),Y.preventDefault?Y.preventDefault():Y.returnValue=!1};return this.listeners=[{element:this.element,events:{dragstart:function(Y){return y.emit("dragstart",Y)},dragenter:function(Y){return W(Y),y.emit("dragenter",Y)},dragover:function(Y){var Q;try{Q=Y.dataTransfer.effectAllowed}catch{}return Y.dataTransfer.dropEffect=Q==="move"||Q==="linkMove"?"move":"copy",W(Y),y.emit("dragover",Y)},dragleave:function(Y){return y.emit("dragleave",Y)},drop:function(Y){return W(Y),y.drop(Y)},dragend:function(Y){return y.emit("dragend",Y)}}}],this.clickableElements.forEach(function(Z){return y.listeners.push({element:Z,events:{click:function(Q){return(Z!==y.element||Q.target===y.element||w.elementInside(Q.target,y.element.querySelector(".dz-message")))&&y.hiddenFileInput.click(),!0}}})}),this.enable(),this.options.init.call(this)}},{key:"destroy",value:function(){return this.disable(),this.removeAllFiles(!0),this.hiddenFileInput!=null&&this.hiddenFileInput.parentNode&&(this.hiddenFileInput.parentNode.removeChild(this.hiddenFileInput),this.hiddenFileInput=null),delete this.element.dropzone,w.instances.splice(w.instances.indexOf(this),1)}},{key:"updateTotalUploadProgress",value:function(){var y,x=0,I=0,B=this.getActiveFiles();if(B.length){var U=M(this.getActiveFiles()),$;try{for(U.s();!($=U.n()).done;){var W=$.value;x+=W.upload.bytesSent,I+=W.upload.total}}catch(Z){U.e(Z)}finally{U.f()}y=100*x/I}else y=100;return this.emit("totaluploadprogress",y,I,x)}},{key:"_getParamName",value:function(y){return typeof this.options.paramName=="function"?this.options.paramName(y):"".concat(this.options.paramName).concat(this.options.uploadMultiple?"[".concat(y,"]"):"")}},{key:"_renameFile",value:function(y){return typeof this.options.renameFile!="function"?y.name:this.options.renameFile(y)}},{key:"getFallbackForm",value:function(){var y,x;if(y=this.getExistingFallback())return y;var I='<div class="dz-fallback">';this.options.dictFallbackText&&(I+="<p>".concat(this.options.dictFallbackText,"</p>")),I+='<input type="file" name="'.concat(this._getParamName(0),'" ').concat(this.options.uploadMultiple?'multiple="multiple"':void 0,' /><input type="submit" value="Upload!"></div>');var B=w.createElement(I);return this.element.tagName!=="FORM"?(x=w.createElement('<form action="'.concat(this.options.url,'" enctype="multipart/form-data" method="').concat(this.options.method,'"></form>')),x.appendChild(B)):(this.element.setAttribute("enctype","multipart/form-data"),this.element.setAttribute("method",this.options.method)),x??B}},{key:"getExistingFallback",value:function(){for(var y=function(W){var Z=M(W),Y;try{for(Z.s();!(Y=Z.n()).done;){var Q=Y.value;if(/(^| )fallback($| )/.test(Q.className))return Q}}catch(ne){Z.e(ne)}finally{Z.f()}},x=0,I=["div","form"];x<I.length;x++){var B=I[x],U;if(U=y(this.element.getElementsByTagName(B)))return U}}},{key:"setupEventListeners",value:function(){return this.listeners.map(function(y){return function(){var x=[];for(var I in y.events){var B=y.events[I];x.push(y.element.addEventListener(I,B,!1))}return x}()})}},{key:"removeEventListeners",value:function(){return this.listeners.map(function(y){return function(){var x=[];for(var I in y.events){var B=y.events[I];x.push(y.element.removeEventListener(I,B,!1))}return x}()})}},{key:"disable",value:function(){var y=this;return this.clickableElements.forEach(function(x){return x.classList.remove("dz-clickable")}),this.removeEventListeners(),this.disabled=!0,this.files.map(function(x){return y.cancelUpload(x)})}},{key:"enable",value:function(){return delete this.disabled,this.clickableElements.forEach(function(y){return y.classList.add("dz-clickable")}),this.setupEventListeners()}},{key:"filesize",value:function(y){var x=0,I="b";if(y>0){for(var B=["tb","gb","mb","kb","b"],U=0;U<B.length;U++){var $=B[U],W=Math.pow(this.options.filesizeBase,4-U)/10;if(y>=W){x=y/Math.pow(this.options.filesizeBase,4-U),I=$;break}}x=Math.round(10*x)/10}return"<strong>".concat(x,"</strong> ").concat(this.options.dictFileSizeUnits[I])}},{key:"_updateMaxFilesReachedClass",value:function(){return this.options.maxFiles!=null&&this.getAcceptedFiles().length>=this.options.maxFiles?(this.getAcceptedFiles().length===this.options.maxFiles&&this.emit("maxfilesreached",this.files),this.element.classList.add("dz-max-files-reached")):this.element.classList.remove("dz-max-files-reached")}},{key:"drop",value:function(y){if(y.dataTransfer){this.emit("drop",y);for(var x=[],I=0;I<y.dataTransfer.files.length;I++)x[I]=y.dataTransfer.files[I];if(x.length){var B=y.dataTransfer.items;B&&B.length&&B[0].webkitGetAsEntry!=null?this._addFilesFromItems(B):this.handleFiles(x)}this.emit("addedfiles",x)}}},{key:"paste",value:function(y){if(he(y!=null?y.clipboardData:void 0,function(I){return I.items})!=null){this.emit("paste",y);var x=y.clipboardData.items;if(x.length)return this._addFilesFromItems(x)}}},{key:"handleFiles",value:function(y){var x=M(y),I;try{for(x.s();!(I=x.n()).done;){var B=I.value;this.addFile(B)}}catch(U){x.e(U)}finally{x.f()}}},{key:"_addFilesFromItems",value:function(y){var x=this;return function(){var I=[],B=M(y),U;try{for(B.s();!(U=B.n()).done;){var $=U.value,W;$.webkitGetAsEntry!=null&&(W=$.webkitGetAsEntry())?W.isFile?I.push(x.addFile($.getAsFile())):W.isDirectory?I.push(x._addFilesFromDirectory(W,W.name)):I.push(void 0):$.getAsFile!=null&&($.kind==null||$.kind==="file")?I.push(x.addFile($.getAsFile())):I.push(void 0)}}catch(Z){B.e(Z)}finally{B.f()}return I}()}},{key:"_addFilesFromDirectory",value:function(y,x){var I=this,B=y.createReader(),U=function(Z){return Oe(console,"log",function(Y){return Y.log(Z)})},$=function W(){return B.readEntries(function(Z){if(Z.length>0){var Y=M(Z),Q;try{for(Y.s();!(Q=Y.n()).done;){var ne=Q.value;ne.isFile?ne.file(function(oe){if(!(I.options.ignoreHiddenFiles&&oe.name.substring(0,1)==="."))return oe.fullPath="".concat(x,"/").concat(oe.name),I.addFile(oe)}):ne.isDirectory&&I._addFilesFromDirectory(ne,"".concat(x,"/").concat(ne.name))}}catch(oe){Y.e(oe)}finally{Y.f()}W()}return null},U)};return $()}},{key:"accept",value:function(y,x){this.options.maxFilesize&&y.size>this.options.maxFilesize*1024*1024?x(this.options.dictFileTooBig.replace("{{filesize}}",Math.round(y.size/1024/10.24)/100).replace("{{maxFilesize}}",this.options.maxFilesize)):w.isValidFile(y,this.options.acceptedFiles)?this.options.maxFiles!=null&&this.getAcceptedFiles().length>=this.options.maxFiles?(x(this.options.dictMaxFilesExceeded.replace("{{maxFiles}}",this.options.maxFiles)),this.emit("maxfilesexceeded",y)):this.options.accept.call(this,y,x):x(this.options.dictInvalidFileType)}},{key:"addFile",value:function(y){var x=this;y.upload={uuid:w.uuidv4(),progress:0,total:y.size,bytesSent:0,filename:this._renameFile(y)},this.files.push(y),y.status=w.ADDED,this.emit("addedfile",y),this._enqueueThumbnail(y),this.accept(y,function(I){I?(y.accepted=!1,x._errorProcessing([y],I)):(y.accepted=!0,x.options.autoQueue&&x.enqueueFile(y)),x._updateMaxFilesReachedClass()})}},{key:"enqueueFiles",value:function(y){var x=M(y),I;try{for(x.s();!(I=x.n()).done;){var B=I.value;this.enqueueFile(B)}}catch(U){x.e(U)}finally{x.f()}return null}},{key:"enqueueFile",value:function(y){var x=this;if(y.status===w.ADDED&&y.accepted===!0){if(y.status=w.QUEUED,this.options.autoProcessQueue)return setTimeout(function(){return x.processQueue()},0)}else throw new Error("This file can't be queued because it has already been processed or was rejected.")}},{key:"_enqueueThumbnail",value:function(y){var x=this;if(this.options.createImageThumbnails&&y.type.match(/image.*/)&&y.size<=this.options.maxThumbnailFilesize*1024*1024)return this._thumbnailQueue.push(y),setTimeout(function(){return x._processThumbnailQueue()},0)}},{key:"_processThumbnailQueue",value:function(){var y=this;if(!(this._processingThumbnail||this._thumbnailQueue.length===0)){this._processingThumbnail=!0;var x=this._thumbnailQueue.shift();return this.createThumbnail(x,this.options.thumbnailWidth,this.options.thumbnailHeight,this.options.thumbnailMethod,!0,function(I){return y.emit("thumbnail",x,I),y._processingThumbnail=!1,y._processThumbnailQueue()})}}},{key:"removeFile",value:function(y){if(y.status===w.UPLOADING&&this.cancelUpload(y),this.files=J(this.files,y),this.emit("removedfile",y),this.files.length===0)return this.emit("reset")}},{key:"removeAllFiles",value:function(y){y==null&&(y=!1);var x=M(this.files.slice()),I;try{for(x.s();!(I=x.n()).done;){var B=I.value;(B.status!==w.UPLOADING||y)&&this.removeFile(B)}}catch(U){x.e(U)}finally{x.f()}return null}},{key:"resizeImage",value:function(y,x,I,B,U){var $=this;return this.createThumbnail(y,x,I,B,!0,function(W,Z){if(Z==null)return U(y);var Y=$.options.resizeMimeType;Y==null&&(Y=y.type);var Q=Z.toDataURL(Y,$.options.resizeQuality);return(Y==="image/jpeg"||Y==="image/jpg")&&(Q=ve.restore(y.dataURL,Q)),U(w.dataURItoBlob(Q))})}},{key:"createThumbnail",value:function(y,x,I,B,U,$){var W=this,Z=new FileReader;Z.onload=function(){if(y.dataURL=Z.result,y.type==="image/svg+xml"){$!=null&&$(Z.result);return}W.createThumbnailFromUrl(y,x,I,B,U,$)},Z.readAsDataURL(y)}},{key:"displayExistingFile",value:function(y,x,I,B){var U=this,$=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0;if(this.emit("addedfile",y),this.emit("complete",y),!$)this.emit("thumbnail",y,x),I&&I();else{var W=function(Y){U.emit("thumbnail",y,Y),I&&I()};y.dataURL=x,this.createThumbnailFromUrl(y,this.options.thumbnailWidth,this.options.thumbnailHeight,this.options.thumbnailMethod,this.options.fixOrientation,W,B)}}},{key:"createThumbnailFromUrl",value:function(y,x,I,B,U,$,W){var Z=this,Y=document.createElement("img");return W&&(Y.crossOrigin=W),U=getComputedStyle(document.body).imageOrientation=="from-image"?!1:U,Y.onload=function(){var Q=function(oe){return oe(1)};return typeof EXIF<"u"&&EXIF!==null&&U&&(Q=function(oe){return EXIF.getData(Y,function(){return oe(EXIF.getTag(this,"Orientation"))})}),Q(function(ne){y.width=Y.width,y.height=Y.height;var oe=Z.options.resize.call(Z,y,x,I,B),fe=document.createElement("canvas"),we=fe.getContext("2d");switch(fe.width=oe.trgWidth,fe.height=oe.trgHeight,ne>4&&(fe.width=oe.trgHeight,fe.height=oe.trgWidth),ne){case 2:we.translate(fe.width,0),we.scale(-1,1);break;case 3:we.translate(fe.width,fe.height),we.rotate(Math.PI);break;case 4:we.translate(0,fe.height),we.scale(1,-1);break;case 5:we.rotate(.5*Math.PI),we.scale(1,-1);break;case 6:we.rotate(.5*Math.PI),we.translate(0,-fe.width);break;case 7:we.rotate(.5*Math.PI),we.translate(fe.height,-fe.width),we.scale(-1,1);break;case 8:we.rotate(-.5*Math.PI),we.translate(-fe.height,0);break}ge(we,Y,oe.srcX!=null?oe.srcX:0,oe.srcY!=null?oe.srcY:0,oe.srcWidth,oe.srcHeight,oe.trgX!=null?oe.trgX:0,oe.trgY!=null?oe.trgY:0,oe.trgWidth,oe.trgHeight);var De=fe.toDataURL("image/png");if($!=null)return $(De,fe)})},$!=null&&(Y.onerror=$),Y.src=y.dataURL}},{key:"processQueue",value:function(){var y=this.options.parallelUploads,x=this.getUploadingFiles().length,I=x;if(!(x>=y)){var B=this.getQueuedFiles();if(B.length>0){if(this.options.uploadMultiple)return this.processFiles(B.slice(0,y-x));for(;I<y;){if(!B.length)return;this.processFile(B.shift()),I++}}}}},{key:"processFile",value:function(y){return this.processFiles([y])}},{key:"processFiles",value:function(y){var x=M(y),I;try{for(x.s();!(I=x.n()).done;){var B=I.value;B.processing=!0,B.status=w.UPLOADING,this.emit("processing",B)}}catch(U){x.e(U)}finally{x.f()}return this.options.uploadMultiple&&this.emit("processingmultiple",y),this.uploadFiles(y)}},{key:"_getFilesWithXhr",value:function(y){return this.files.filter(function(x){return x.xhr===y}).map(function(x){return x})}},{key:"cancelUpload",value:function(y){if(y.status===w.UPLOADING){var x=this._getFilesWithXhr(y.xhr),I=M(x),B;try{for(I.s();!(B=I.n()).done;){var U=B.value;U.status=w.CANCELED}}catch(Y){I.e(Y)}finally{I.f()}typeof y.xhr<"u"&&y.xhr.abort();var $=M(x),W;try{for($.s();!(W=$.n()).done;){var Z=W.value;this.emit("canceled",Z)}}catch(Y){$.e(Y)}finally{$.f()}this.options.uploadMultiple&&this.emit("canceledmultiple",x)}else(y.status===w.ADDED||y.status===w.QUEUED)&&(y.status=w.CANCELED,this.emit("canceled",y),this.options.uploadMultiple&&this.emit("canceledmultiple",[y]));if(this.options.autoProcessQueue)return this.processQueue()}},{key:"resolveOption",value:function(y){if(typeof y=="function"){for(var x=arguments.length,I=new Array(x>1?x-1:0),B=1;B<x;B++)I[B-1]=arguments[B];return y.apply(this,I)}return y}},{key:"uploadFile",value:function(y){return this.uploadFiles([y])}},{key:"uploadFiles",value:function(y){var x=this;this._transformFiles(y,function(I){if(x.options.chunking){var B=I[0];y[0].upload.chunked=x.options.chunking&&(x.options.forceChunking||B.size>x.options.chunkSize),y[0].upload.totalChunkCount=Math.ceil(B.size/x.options.chunkSize)}if(y[0].upload.chunked){var U=y[0],$=I[0];U.upload.chunks=[];var W=function(){for(var oe=0;U.upload.chunks[oe]!==void 0;)oe++;if(!(oe>=U.upload.totalChunkCount)){var fe=oe*x.options.chunkSize,we=Math.min(fe+x.options.chunkSize,$.size),De={name:x._getParamName(0),data:$.webkitSlice?$.webkitSlice(fe,we):$.slice(fe,we),filename:U.upload.filename,chunkIndex:oe};U.upload.chunks[oe]={file:U,index:oe,dataBlock:De,status:w.UPLOADING,progress:0,retries:0},x._uploadData(y,[De])}};if(U.upload.finishedChunkUpload=function(ne,oe){var fe=!0;ne.status=w.SUCCESS,ne.dataBlock=null,ne.xhr=null;for(var we=0;we<U.upload.totalChunkCount;we++){if(U.upload.chunks[we]===void 0)return W();U.upload.chunks[we].status!==w.SUCCESS&&(fe=!1)}fe&&x.options.chunksUploaded(U,function(){x._finished(y,oe,null)})},x.options.parallelChunkUploads)for(var Z=0;Z<U.upload.totalChunkCount;Z++)W();else W()}else{for(var Y=[],Q=0;Q<y.length;Q++)Y[Q]={name:x._getParamName(Q),data:I[Q],filename:y[Q].upload.filename};x._uploadData(y,Y)}})}},{key:"_getChunk",value:function(y,x){for(var I=0;I<y.upload.totalChunkCount;I++)if(y.upload.chunks[I]!==void 0&&y.upload.chunks[I].xhr===x)return y.upload.chunks[I]}},{key:"_uploadData",value:function(y,x){var I=this,B=new XMLHttpRequest,U=M(y),$;try{for(U.s();!($=U.n()).done;){var W=$.value;W.xhr=B}}catch(Pe){U.e(Pe)}finally{U.f()}y[0].upload.chunked&&(y[0].upload.chunks[x[0].chunkIndex].xhr=B);var Z=this.resolveOption(this.options.method,y),Y=this.resolveOption(this.options.url,y);B.open(Z,Y,!0);var Q=this.resolveOption(this.options.timeout,y);Q&&(B.timeout=this.resolveOption(this.options.timeout,y)),B.withCredentials=!!this.options.withCredentials,B.onload=function(Pe){I._finishedUploading(y,B,Pe)},B.ontimeout=function(){I._handleUploadError(y,B,"Request timedout after ".concat(I.options.timeout/1e3," seconds"))},B.onerror=function(){I._handleUploadError(y,B)};var ne=B.upload!=null?B.upload:B;ne.onprogress=function(Pe){return I._updateFilesUploadProgress(y,B,Pe)};var oe={Accept:"application/json","Cache-Control":"no-cache","X-Requested-With":"XMLHttpRequest"};this.options.headers&&w.extend(oe,this.options.headers);for(var fe in oe){var we=oe[fe];we&&B.setRequestHeader(fe,we)}var De=new FormData;if(this.options.params){var Ge=this.options.params;typeof Ge=="function"&&(Ge=Ge.call(this,y,B,y[0].upload.chunked?this._getChunk(y[0],B):null));for(var je in Ge){var Be=Ge[je];if(Array.isArray(Be))for(var Ve=0;Ve<Be.length;Ve++)De.append(je,Be[Ve]);else De.append(je,Be)}}var rt=M(y),it;try{for(rt.s();!(it=rt.n()).done;){var Dt=it.value;this.emit("sending",Dt,B,De)}}catch(Pe){rt.e(Pe)}finally{rt.f()}this.options.uploadMultiple&&this.emit("sendingmultiple",y,B,De),this._addFormElementData(De);for(var bt=0;bt<x.length;bt++){var _e=x[bt];De.append(_e.name,_e.data,_e.filename)}this.submitRequest(B,De,y)}},{key:"_transformFiles",value:function(y,x){for(var I=this,B=[],U=0,$=function(Y){I.options.transformFile.call(I,y[Y],function(Q){B[Y]=Q,++U===y.length&&x(B)})},W=0;W<y.length;W++)$(W)}},{key:"_addFormElementData",value:function(y){if(this.element.tagName==="FORM"){var x=M(this.element.querySelectorAll("input, textarea, select, button")),I;try{for(x.s();!(I=x.n()).done;){var B=I.value,U=B.getAttribute("name"),$=B.getAttribute("type");if($&&($=$.toLowerCase()),!(typeof U>"u"||U===null))if(B.tagName==="SELECT"&&B.hasAttribute("multiple")){var W=M(B.options,!0),Z;try{for(W.s();!(Z=W.n()).done;){var Y=Z.value;Y.selected&&y.append(U,Y.value)}}catch(Q){W.e(Q)}finally{W.f()}}else(!$||$!=="checkbox"&&$!=="radio"||B.checked)&&y.append(U,B.value)}}catch(Q){x.e(Q)}finally{x.f()}}}},{key:"_updateFilesUploadProgress",value:function(y,x,I){if(y[0].upload.chunked){var W=y[0],Z=this._getChunk(W,x);I?(Z.progress=100*I.loaded/I.total,Z.total=I.total,Z.bytesSent=I.loaded):(Z.progress=100,Z.bytesSent=Z.total),W.upload.progress=0,W.upload.total=0,W.upload.bytesSent=0;for(var Y=0;Y<W.upload.totalChunkCount;Y++)W.upload.chunks[Y]&&typeof W.upload.chunks[Y].progress<"u"&&(W.upload.progress+=W.upload.chunks[Y].progress,W.upload.total+=W.upload.chunks[Y].total,W.upload.bytesSent+=W.upload.chunks[Y].bytesSent);W.upload.progress=W.upload.progress/W.upload.totalChunkCount,this.emit("uploadprogress",W,W.upload.progress,W.upload.bytesSent)}else{var B=M(y),U;try{for(B.s();!(U=B.n()).done;){var $=U.value;$.upload.total&&$.upload.bytesSent&&$.upload.bytesSent==$.upload.total||(I?($.upload.progress=100*I.loaded/I.total,$.upload.total=I.total,$.upload.bytesSent=I.loaded):($.upload.progress=100,$.upload.bytesSent=$.upload.total),this.emit("uploadprogress",$,$.upload.progress,$.upload.bytesSent))}}catch(Q){B.e(Q)}finally{B.f()}}}},{key:"_finishedUploading",value:function(y,x,I){var B;if(y[0].status!==w.CANCELED&&x.readyState===4){if(x.responseType!=="arraybuffer"&&x.responseType!=="blob"&&(B=x.responseText,x.getResponseHeader("content-type")&&~x.getResponseHeader("content-type").indexOf("application/json")))try{B=JSON.parse(B)}catch(U){I=U,B="Invalid JSON response from server."}this._updateFilesUploadProgress(y,x),200<=x.status&&x.status<300?y[0].upload.chunked?y[0].upload.finishedChunkUpload(this._getChunk(y[0],x),B):this._finished(y,B,I):this._handleUploadError(y,x,B)}}},{key:"_handleUploadError",value:function(y,x,I){if(y[0].status!==w.CANCELED){if(y[0].upload.chunked&&this.options.retryChunks){var B=this._getChunk(y[0],x);if(B.retries++<this.options.retryChunksLimit){this._uploadData(y,[B.dataBlock]);return}else console.warn("Retried this chunk too often. Giving up.")}this._errorProcessing(y,I||this.options.dictResponseError.replace("{{statusCode}}",x.status),x)}}},{key:"submitRequest",value:function(y,x,I){if(y.readyState!=1){console.warn("Cannot send this request because the XMLHttpRequest.readyState is not OPENED.");return}y.send(x)}},{key:"_finished",value:function(y,x,I){var B=M(y),U;try{for(B.s();!(U=B.n()).done;){var $=U.value;$.status=w.SUCCESS,this.emit("success",$,x,I),this.emit("complete",$)}}catch(W){B.e(W)}finally{B.f()}if(this.options.uploadMultiple&&(this.emit("successmultiple",y,x,I),this.emit("completemultiple",y)),this.options.autoProcessQueue)return this.processQueue()}},{key:"_errorProcessing",value:function(y,x,I){var B=M(y),U;try{for(B.s();!(U=B.n()).done;){var $=U.value;$.status=w.ERROR,this.emit("error",$,x,I),this.emit("complete",$)}}catch(W){B.e(W)}finally{B.f()}if(this.options.uploadMultiple&&(this.emit("errormultiple",y,x,I),this.emit("completemultiple",y)),this.options.autoProcessQueue)return this.processQueue()}}],[{key:"initClass",value:function(){this.prototype.Emitter=f,this.prototype.events=["drop","dragstart","dragend","dragenter","dragover","dragleave","addedfile","addedfiles","removedfile","thumbnail","error","errormultiple","processing","processingmultiple","uploadprogress","totaluploadprogress","sending","sendingmultiple","success","successmultiple","canceled","canceledmultiple","complete","completemultiple","reset","maxfilesexceeded","maxfilesreached","queuecomplete"],this.prototype._thumbnailQueue=[],this.prototype._processingThumbnail=!1}},{key:"extend",value:function(y){for(var x=arguments.length,I=new Array(x>1?x-1:0),B=1;B<x;B++)I[B-1]=arguments[B];for(var U=0,$=I;U<$.length;U++){var W=$[U];for(var Z in W){var Y=W[Z];y[Z]=Y}}return y}},{key:"uuidv4",value:function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(y){var x=Math.random()*16|0,I=y==="x"?x:x&3|8;return I.toString(16)})}}]),w}(f);q.initClass(),q.version="5.9.3",q.options={},q.optionsForElement=function(N){if(N.getAttribute("id"))return q.options[te(N.getAttribute("id"))]},q.instances=[],q.forElement=function(N){if(typeof N=="string"&&(N=document.querySelector(N)),(N!=null?N.dropzone:void 0)==null)throw new Error("No Dropzone found for given element. This is probably because you're trying to access it before Dropzone had the time to initialize. Use the `init` option to setup any additional observers on your Dropzone.");return N.dropzone},q.autoDiscover=!0,q.discover=function(){var N;if(document.querySelectorAll)N=document.querySelectorAll(".dropzone");else{N=[];var R=function(C){return function(){var y=[],x=M(C),I;try{for(x.s();!(I=x.n()).done;){var B=I.value;/(^| )dropzone($| )/.test(B.className)?y.push(N.push(B)):y.push(void 0)}}catch(U){x.e(U)}finally{x.f()}return y}()};R(document.getElementsByTagName("div")),R(document.getElementsByTagName("form"))}return function(){var w=[],C=M(N),y;try{for(C.s();!(y=C.n()).done;){var x=y.value;q.optionsForElement(x)!==!1?w.push(new q(x)):w.push(void 0)}}catch(I){C.e(I)}finally{C.f()}return w}()},q.blockedBrowsers=[/opera.*(Macintosh|Windows Phone).*version\/12/i],q.isBrowserSupported=function(){var N=!0;if(window.File&&window.FileReader&&window.FileList&&window.Blob&&window.FormData&&document.querySelector)if(!("classList"in document.createElement("a")))N=!1;else{q.blacklistedBrowsers!==void 0&&(q.blockedBrowsers=q.blacklistedBrowsers);var R=M(q.blockedBrowsers),w;try{for(R.s();!(w=R.n()).done;){var C=w.value;if(C.test(navigator.userAgent)){N=!1;continue}}}catch(y){R.e(y)}finally{R.f()}}else N=!1;return N},q.dataURItoBlob=function(N){for(var R=atob(N.split(",")[1]),w=N.split(",")[0].split(":")[1].split(";")[0],C=new ArrayBuffer(R.length),y=new Uint8Array(C),x=0,I=R.length,B=0<=I;B?x<=I:x>=I;B?x++:x--)y[x]=R.charCodeAt(x);return new Blob([C],{type:w})};var J=function(R,w){return R.filter(function(C){return C!==w}).map(function(C){return C})},te=function(R){return R.replace(/[\-_](\w)/g,function(w){return w.charAt(1).toUpperCase()})};q.createElement=function(N){var R=document.createElement("div");return R.innerHTML=N,R.childNodes[0]},q.elementInside=function(N,R){if(N===R)return!0;for(;N=N.parentNode;)if(N===R)return!0;return!1},q.getElement=function(N,R){var w;if(typeof N=="string"?w=document.querySelector(N):N.nodeType!=null&&(w=N),w==null)throw new Error("Invalid `".concat(R,"` option provided. Please provide a CSS selector or a plain HTML element."));return w},q.getElements=function(N,R){var w,C;if(N instanceof Array){C=[];try{var y=M(N,!0),x;try{for(y.s();!(x=y.n()).done;)w=x.value,C.push(this.getElement(w,R))}catch(U){y.e(U)}finally{y.f()}}catch{C=null}}else if(typeof N=="string"){C=[];var I=M(document.querySelectorAll(N)),B;try{for(I.s();!(B=I.n()).done;)w=B.value,C.push(w)}catch(U){I.e(U)}finally{I.f()}}else N.nodeType!=null&&(C=[N]);if(C==null||!C.length)throw new Error("Invalid `".concat(R,"` option provided. Please provide a CSS selector, a plain HTML element or a list of those."));return C},q.confirm=function(N,R,w){if(window.confirm(N))return R();if(w!=null)return w()},q.isValidFile=function(N,R){if(!R)return!0;R=R.split(",");var w=N.type,C=w.replace(/\/.*$/,""),y=M(R),x;try{for(y.s();!(x=y.n()).done;){var I=x.value;if(I=I.trim(),I.charAt(0)==="."){if(N.name.toLowerCase().indexOf(I.toLowerCase(),N.name.length-I.length)!==-1)return!0}else if(/\/\*$/.test(I)){if(C===I.replace(/\/.*$/,""))return!0}else if(w===I)return!0}}catch(B){y.e(B)}finally{y.f()}return!1},typeof jQuery<"u"&&jQuery!==null&&(jQuery.fn.dropzone=function(N){return this.each(function(){return new q(this,N)})}),q.ADDED="added",q.QUEUED="queued",q.ACCEPTED=q.QUEUED,q.UPLOADING="uploading",q.PROCESSING=q.UPLOADING,q.CANCELED="canceled",q.ERROR="error",q.SUCCESS="success";var me=function(R){R.naturalWidth;var w=R.naturalHeight,C=document.createElement("canvas");C.width=1,C.height=w;var y=C.getContext("2d");y.drawImage(R,0,0);for(var x=y.getImageData(1,0,1,w),I=x.data,B=0,U=w,$=w;$>B;){var W=I[($-1)*4+3];W===0?U=$:B=$,$=U+B>>1}var Z=$/w;return Z===0?1:Z},ge=function(R,w,C,y,x,I,B,U,$,W){var Z=me(w);return R.drawImage(w,C,y,x,I,B,U,$,W/Z)},ve=function(){function N(){H(this,N)}return G(N,null,[{key:"initClass",value:function(){this.KEY_STR="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}},{key:"encode64",value:function(w){for(var C="",y=void 0,x=void 0,I="",B=void 0,U=void 0,$=void 0,W="",Z=0;y=w[Z++],x=w[Z++],I=w[Z++],B=y>>2,U=(y&3)<<4|x>>4,$=(x&15)<<2|I>>6,W=I&63,isNaN(x)?$=W=64:isNaN(I)&&(W=64),C=C+this.KEY_STR.charAt(B)+this.KEY_STR.charAt(U)+this.KEY_STR.charAt($)+this.KEY_STR.charAt(W),y=x=I="",B=U=$=W="",Z<w.length;);return C}},{key:"restore",value:function(w,C){if(!w.match("data:image/jpeg;base64,"))return C;var y=this.decode64(w.replace("data:image/jpeg;base64,","")),x=this.slice2Segments(y),I=this.exifManipulation(C,x);return"data:image/jpeg;base64,".concat(this.encode64(I))}},{key:"exifManipulation",value:function(w,C){var y=this.getExifArray(C),x=this.insertExif(w,y),I=new Uint8Array(x);return I}},{key:"getExifArray",value:function(w){for(var C=void 0,y=0;y<w.length;){if(C=w[y],C[0]===255&C[1]===225)return C;y++}return[]}},{key:"insertExif",value:function(w,C){var y=w.replace("data:image/jpeg;base64,",""),x=this.decode64(y),I=x.indexOf(255,3),B=x.slice(0,I),U=x.slice(I),$=B;return $=$.concat(C),$=$.concat(U),$}},{key:"slice2Segments",value:function(w){for(var C=0,y=[];;){var x;if(w[C]===255&w[C+1]===218)break;if(w[C]===255&w[C+1]===216)C+=2;else{x=w[C+2]*256+w[C+3];var I=C+x+2,B=w.slice(C,I);y.push(B),C=I}if(C>w.length)break}return y}},{key:"decode64",value:function(w){var C=void 0,y=void 0,x="",I=void 0,B=void 0,U=void 0,$="",W=0,Z=[],Y=/[^A-Za-z0-9\+\/\=]/g;for(Y.exec(w)&&console.warn(`There were invalid base64 characters in the input text.
12
12
  Valid base64 characters are A-Z, a-z, 0-9, '+', '/',and '='
13
- Expect errors in decoding.`),A=A.replace(/[^A-Za-z0-9\+\/\=]/g,"");k=this.KEY_STR.indexOf(A.charAt(W++)),B=this.KEY_STR.indexOf(A.charAt(W++)),U=this.KEY_STR.indexOf(A.charAt(W++)),$=this.KEY_STR.indexOf(A.charAt(W++)),C=k<<2|B>>4,y=(B&15)<<4|U>>2,x=(U&3)<<6|$,Z.push(C),U!==64&&Z.push(y),$!==64&&Z.push(x),C=y=x="",k=B=U=$="",W<A.length;);return Z}}]),N}();ve.initClass();var xe=function(I,A){var C=!1,y=!0,x=I.document,k=x.documentElement,B=x.addEventListener?"addEventListener":"attachEvent",U=x.addEventListener?"removeEventListener":"detachEvent",$=x.addEventListener?"":"on",W=function Y(Q){if(!(Q.type==="readystatechange"&&x.readyState!=="complete")&&((Q.type==="load"?I:x)[U]($+Q.type,Y,!1),!C&&(C=!0)))return A.call(I,Q.type||Q)},Z=function Y(){try{k.doScroll("left")}catch{setTimeout(Y,50);return}return W("poll")};if(x.readyState!=="complete"){if(x.createEventObject&&k.doScroll){try{y=!I.frameElement}catch{}y&&Z()}return x[B]($+"DOMContentLoaded",W,!1),x[B]($+"readystatechange",W,!1),I[B]($+"load",W,!1)}};q._autoDiscoverFunction=function(){if(q.autoDiscover)return q.discover()},xe(window,q._autoDiscoverFunction);function he(N,I){return typeof N<"u"&&N!==null?I(N):void 0}function Oe(N,I,A){if(typeof N<"u"&&N!==null&&typeof N[I]=="function")return A(N,I)}window.Dropzone=q;var ye=q}(),o}()})}(yi)),yi.exports}var sh=rh();const bi=vi(sh),ih={xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"};function ah(n,e){return l.openBlock(),l.createElementBlock("svg",ih,e[0]||(e[0]=[l.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m8 16 4-4m0 0 4 4m-4-4v9m8-4.257A5.5 5.5 0 0 0 16.5 7a.62.62 0 0 1-.534-.302 7.5 7.5 0 1 0-11.78 9.096"},null,-1)]))}const oh={render:ah},lh={class:"file-upload"},ch=["name","value"],uh={key:0,class:"preview"},dh={class:"file-upload-preview"},fh=["src"],hh={key:1,class:"preview"},ph={class:"file-upload-preview"},mh=["src","title"],gh=["href"],vh={class:"file-upload-title"},yh={class:"file-upload-file-remove"},bh={class:"absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 p-4 rounded-lg flex flex-col justify-center items-center w-full"},Io={__name:"FileUpload",props:{name:{type:String,required:!1},modelValue:{type:[String,Object],default:null},submitEndpoint:{type:String,required:!1},deleteEndpoint:{type:String,required:!1},formData:{type:Object,default:null},csrf:{type:String,required:!1},background:{type:String,default:""}},emits:["update:modelValue"],setup(n,{emit:e}){bi.autoDiscover=!1;const t=n,r=l.ref([]),s=l.ref(bi),o=l.ref(null),a=l.computed(()=>JSON.stringify(r)),c=u=>["image/gif","image/jpeg","image/png","image/tiff"].includes(u),i=u=>{tt.delete(t.deleteEndpoint+"?"+u.id).then(()=>{r.value=null}).catch(console.error)};return l.onMounted(()=>{var d;o.value=t.formData;const u=t.csrf;s.value=new bi(s.value,{url:(t==null?void 0:t.submitEndpoint)+"?"+((d=o.value)==null?void 0:d.id),addRemoveLinks:!0,maxFiles:1,sending:(h,f,g)=>{g.append("_token",u),g.append("field",t.name)},success:(h,f)=>{h.value=f},complete:h=>{var f;(f=s.value)==null||f.removeFile(h)}}),r.value=t.modelValue}),(u,d)=>(l.openBlock(),l.createElementBlock("div",lh,[l.createElementVNode("input",{type:"hidden",name:n.name,value:a.value},null,8,ch),n.modelValue?(l.openBlock(),l.createElementBlock("div",uh,[d[1]||(d[1]=l.createTextVNode(" @todo handle upload here ")),l.createElementVNode("span",dh,[l.createElementVNode("img",{class:"img rounded-lg h-[200px] object-contain",src:n.modelValue,title:"Image"},null,8,fh)])])):r.value&&r.value.length?(l.openBlock(),l.createElementBlock("div",hh,[l.createElementVNode("span",ph,[c(r.value.mime_type)?(l.openBlock(),l.createElementBlock("img",{key:0,class:"img",src:r.value.url,title:r.value.file_name},null,8,mh)):l.createCommentVNode("",!0)]),l.createElementVNode("a",{href:r.value.url,target:"_blank",class:"link"},[l.createElementVNode("div",vh,l.toDisplayString(r.value.file_name),1)],8,gh),l.createElementVNode("a",yh,[l.createElementVNode("i",{class:"fal fa-times",onClick:d[0]||(d[0]=h=>i(r.value))})])])):l.createCommentVNode("",!0),l.withDirectives(l.createElementVNode("div",{class:l.normalizeClass("relative rounded-lg "+n.background)},[l.createElementVNode("div",{class:"dropzone border border-dashed rounded-lg z-10 h-[200px] w-full cursor-pointer relative",ref_key:"dropzone",ref:s},null,512),l.createElementVNode("div",bh,[l.createElementVNode("div",null,[l.createVNode(l.unref(oh),{class:"w-6 h-6"})]),d[2]||(d[2]=l.createElementVNode("div",{class:"text-sm text-center"},[l.createElementVNode("p",null,[l.createElementVNode("span",{class:"text-brand-900"},"Click to upload"),l.createElementVNode("span",null," or drag and drop")]),l.createElementVNode("span",null,"(max. 20MB)")],-1))])],2),[[l.vShow,!n.modelValue]])]))}},xh={class:"flex justify-between pb-2"},Eh={class:"flex justify-between w-full py-1"},Ah={class:"text-lg font-semibold text-gray-900"},wh={class:"text-sm text-gray-600 mt-1"},Sh={class:"flex flex-col gap-3"},Th={class:"flex items-center justify-between"},Nh={class:"text-lg font-semibold text-gray-900"},Oh={class:"relative flex items-end"},Ch={class:"flex flex-col gap-6"},Rh={class:"flex flex-col gap-1.5"},Ih=["onUpdate:modelValue"],kh={__name:"VLogos",props:{...ts},emits:["update"],setup(n,{emit:e}){const t=l.inject("VFileUpload",Io),r=e,s=n,o=l.ref(s.data.component),a=l.ref(null),c=l.ref(null),i=l.ref(null);function u(){var f,g;o.value.hasOwnProperty("data")||(o.value.data=[]),!(((f=o.value.data)==null?void 0:f.length)>=o.value.max_items)&&((g=o.value.data)==null||g.push({url:null,logo:null}),l.nextTick(()=>{c.value&&c.value.scrollIntoView({behavior:"smooth"})}),r("update",!1))}const d=f=>{var g;i.value=f,(g=a==null?void 0:a.value)==null||g.open(f)},h=f=>{var g;(g=o.value.data)==null||g.splice(f,1),r("update",!1)};return(f,g)=>{var p;return l.openBlock(),l.createElementBlock(l.Fragment,null,[l.createElementVNode("div",xh,[l.createElementVNode("div",Eh,[l.createElementVNode("div",null,[l.createElementVNode("p",Ah,l.toDisplayString(o.value.name),1),l.createElementVNode("p",wh," This section can contain up to "+l.toDisplayString(o.value.max_items)+" logos ",1)]),l.createElementVNode("div",null,[l.createElementVNode("a",{onClick:u,class:l.normalizeClass(["text-sm cursor-pointer flex items-center justify-center gap-1 rounded-[99px] border border-brand-600 bg-brand-500 px-3.5 py-2 font-semibold text-white hover:bg-brand-600",{"border-gray-100 bg-gray-100 !text-gray-400 hover:bg-gray-100":((p=o.value.data)==null?void 0:p.length)>=o.value.max_items}])},[l.createVNode(l.unref(Js),{class:"h-5 w-5"}),g[0]||(g[0]=l.createElementVNode("span",null,"Add",-1))],2)])])]),l.createElementVNode("div",Sh,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(o.value.data,(v,b)=>(l.openBlock(),l.createElementBlock("div",{class:"flex flex-col gap-4 rounded-xl px-6 py-4 bg-gray-200",key:b,ref_for:!0,ref:b===o.value.data.length-1?S=>c.value=S:null},[l.createElementVNode("div",Th,[l.createElementVNode("div",Nh," Logo #"+l.toDisplayString(b+1),1),l.createElementVNode("div",Oh,[l.createVNode(ni,{onRemoveItem:S=>d(b)},null,8,["onRemoveItem"])])]),l.createElementVNode("div",Ch,[l.createElementVNode("div",Rh,[l.createVNode(l.unref(t),{name:"image",background:"bg-white",modelValue:v.logo,"onUpdate:modelValue":S=>v.logo=S},null,8,["modelValue","onUpdate:modelValue"]),l.createVNode(ln,{"is-vertical":"",field:"url","label-text":"Url *",class:"w-full my-4",value:v.url},{default:l.withCtx(()=>[l.withDirectives(l.createElementVNode("input",{"onUpdate:modelValue":S=>v.url=S,name:"url",type:"text",placeholder:"Enter your url",class:"border-1 border-solid border-gray-300 rounded-lg bg-white w-full"},null,8,Ih),[[l.vModelText,v.url]])]),_:2},1032,["value"])])])]))),128))]),l.createVNode(ri,{ref_key:"modalRef",ref:a,entity:"logo",callback:h},null,512)],64)}}},Lh={class:"page-builder"},Bh={class:"flex gap-4 px-6 overflow-auto"},Ph={class:"flex w-[356px] flex-col gap-2 pb-10"},Fh={class:"border-b border-gray-200 pb-2"},Mh=["onClick"],Dh={class:"text-lg font-semibold text-brand-800"},Uh={class:"relative flex items-center gap-3"},jh={class:"cursor-pointer"},Vh={key:0,class:"flex flex-col gap-2"},$h=["onClick"],_h={class:"flex flex-col"},qh={class:"text-sm font-medium text-gray-900"},zh={class:"flex items-center justify-between gap-3 px-[10px]"},Hh={class:"flex h-full flex-1 flex-col rounded-xl bg-gray-50 px-6 py-5 mb-20"},Gh={class:"flex justify-between space-x-xsSpace pt-xsSpace gap-4 sticky bottom-0 w-full bg-gray-200 py-2 px-6"},Wh={__name:"PageBuilder",props:{modelValue:{required:!0,type:Object},sites:{type:Array,default:()=>[]}},emits:["save","close"],setup(n,{emit:e}){var f;const t=e,r=n,s=l.ref(JSON.parse(window.localStorage.getItem("pageBuilderOpenStates"))),o=l.ref(((f=r.modelValue)==null?void 0:f.sections)??[]);let a=l.ref(null);const c=l.ref({sliders:l.markRaw(qa),vertical_tabs:l.markRaw(qa),links:l.markRaw(za),header:l.markRaw(Ld),link_grid:l.markRaw(za),logos:l.markRaw(kh)});s.value||(s.value={},o.value.forEach((g,p)=>{s.value[p]=!0}),window.localStorage.setItem("pageBuilderOpenStates",JSON.stringify(s.value)));const i=(g,p,v)=>{a.value={page:r.modelValue,component:p,componentIndex:v,sectionIndex:g}},u=()=>{t("close",r.modelValue)},d=(g=!0)=>{t("save",{page:r.modelValue,redirect:g})},h=l.computed(()=>{var g,p,v,b;return(p=(g=a.value)==null?void 0:g.component)!=null&&p.type?c.value[(b=(v=a.value)==null?void 0:v.component)==null?void 0:b.type]:""});return(g,p)=>{var v,b;return l.openBlock(),l.createElementBlock("div",Lh,[l.createElementVNode("div",Bh,[l.createElementVNode("div",Ph,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(n.modelValue.sections,(S,T)=>(l.openBlock(),l.createElementBlock("div",Fh,[l.createElementVNode("div",{onClick:R=>s.value[T]=!s.value[T],class:"flex cursor-pointer items-center justify-between px-2 py-4"},[l.createElementVNode("span",Dh,l.toDisplayString(S.title),1),l.createElementVNode("div",Uh,[l.createElementVNode("div",jh,[s.value[T]?(l.openBlock(),l.createBlock(l.unref(au),{key:1,class:"h-5 w-5"})):(l.openBlock(),l.createBlock(l.unref(Va),{key:0,class:"h-5 w-5"}))])])],8,Mh),s.value[T]?(l.openBlock(),l.createElementBlock("div",Vh,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(S.components,(R,F)=>{var M,z;return l.openBlock(),l.createElementBlock("div",{onClick:X=>i(T,R,F),class:l.normalizeClass(["flex cursor-pointer items-center justify-between rounded-lg py-1.5 pl-6 pr-2 hover:bg-gray-100",{"bg-gray-200 hover:bg-gray-200":((M=l.unref(a))==null?void 0:M.sectionIndex)===T&&((z=l.unref(a))==null?void 0:z.componentIndex)===F}])},[l.createElementVNode("div",_h,[p[0]||(p[0]=l.createElementVNode("div",{class:"text-xs text-gray-600"},"Sub-module",-1)),l.createElementVNode("div",qh,l.toDisplayString(R.name),1)]),l.createElementVNode("div",zh,[l.createVNode(l.unref(Va),{class:"h-5 w-5"})])],10,$h)}),256))])):l.createCommentVNode("",!0)]))),256))]),l.createElementVNode("div",Hh,[l.unref(a)?l.createCommentVNode("",!0):(l.openBlock(),l.createBlock(cu,{key:0})),(l.openBlock(),l.createBlock(l.resolveDynamicComponent(h.value),{key:((v=l.unref(a))==null?void 0:v.sectionIndex)+((b=l.unref(a))==null?void 0:b.componentIndex),data:l.unref(a),sites:n.sites,onUpdate:d},null,40,["data","sites"]))])]),l.renderSlot(g.$slots,"default",{},()=>[l.createElementVNode("div",Gh,[l.createElementVNode("a",{onClick:u,class:"w-[200px] py-[9px] bg-white rounded-full border border-gray-300 shadow-xs text-md font-semibold hover:bg-gray-100 text-gray-700 text-center cursor-pointer"}," Cancel "),l.createElementVNode("a",{onClick:l.withModifiers(d,["prevent"]),class:"w-full py-[9px] rounded-full shadow-xs text-md font-semibold text-white bg-brand-600 hover:bg-brand-700 border border-brand-600 text-center cursor-pointer"},"Save changes")])])])}}},ko="data:image/jpeg;base64,AAAAHGZ0eXBhdmlmAAAAAGF2aWZtaWYxbWlhZgAAAOptZXRhAAAAAAAAACFoZGxyAAAAAAAAAABwaWN0AAAAAAAAAAAAAAAAAAAAAA5waXRtAAAAAAABAAAAImlsb2MAAAAAREAAAQABAAAAAAEOAAEAAAAAAAARtAAAACNpaW5mAAAAAAABAAAAFWluZmUCAAAAAAEAAGF2MDEAAAAAamlwcnAAAABLaXBjbwAAABNjb2xybmNseAABAA0ABoAAAAAMYXYxQ4EMDAAAAAAUaXNwZQAAAAAAAAZBAAAGQQAAABBwaXhpAAAAAAMICAgAAAAXaXBtYQAAAAAAAAABAAEEAYIDBAAAEbxtZGF0EgAKChsqsgZA4ICGg0IyoyMRQAEEEEFA9LrNypVG96LMWWcCoG7e3fR+Ni4S+KmSHgWobWA8OtL9vwZBTQcXX7wPCOaSqjXsz7F6l4FRLlK0rP8o5OlSIUR601ydI43hGj9Zmp+aRpVBIDeJVv2kawzorrWwnkCzlZFEN6kIWzNhDWD17lK5jFHp5nVzBnO7b5xDqgQ41jePfiYsmcXTc+mBRKMYDdHKDnPl/8IBX52Y26kxwh/9P6mo2zGVNs0ONs6XQWBAZF4FLOrQA20MzyF4txDPqWsBcwcki9kP0ye4x2YvaF310Dkfqua5RxdagnQIp81oTTmcVFxZXrNgz/NbDxWQbz/z1D+FoX3neKlSbFhq3ucDHwXJEktw8cZ2XEwmctcaK9W4pdEpJcNmr6e+P5AdDI1gEFOIRzxrfwX7huahRibmG/eDl0/UOLLG7W2K9GM9oA4EfGC0bPjq+Jf334oN7xreU0X+TYQJz/0xj9pPHguWOxMDm9si/e6goowSH/lorQ9UvkgeziFfzDstH4yzAIuV68sxclnujfPQhdXX99gMzUcL0sIhl4Rjw1/oYxWSImpbfTD/sCvela/JWOTP0QMQXX+pC/5stV+H1qJFXPiRG8OhXE0d0PS7I4eD8sVdEfCyszn+lGwa+JXDMgdVcufTugRLQj0TkBzxy6//k6wSt25hJlTRACEGLFtkmZDg92hcP1XELKV7GGk0MY2407yrVkFnFhFdo7MORa4zOTSoG4srhkzTnpKmrgu/2wPYleLn8jEHAuKyO9utn9Z3wI2k7zdKIUzGnUjvk4VRAerEWwLsdvapS6+R77tjD8ReIJU1+ffObq2U3/7ddqdkHDrXsX5TtC9hupIhjj7yd2yDXOnU4ptZKlZlz7V96Z3bk4Dzr0DidAz2u1GIVgymuhj3LNiUVabDehwgCN4odwcZiodNOtwfG5DveLcAAthj19sWP7zblztGw/pps07vA0mdKmk2Jg10RZyPSnLZsMaK4/GcfKexJZxnfD5InLXuOrwBCKy2XxH4sdItujUvy/JlAyhwZ9d30WPbav9ZoSXD/xD8xnBoZgT+EsnCyQBrxjgPoW+U8U8hOVPFY7bHXJ9yYfRdBG9g/aWr/e893U07phoIxJeXejmsLobU3qGnN5br4lcKQF0vxxNB5XSaRX26X//78Rq059n0mh8mR9p8CivLohVCCYlVNvYk+M9gPHr0720q1ofNETgYLaly6c4kSsS+f/dn1/5VqNrMfBZ9iCZsmU2jWDgE5JETYjxU/3SNryPwESpkO2TgM+l6/Fv3GR6+58EiLI0WiWvJGxhgi8cQKdcp8kmu563nVw95R1H5EgZ6iT4i7KuHysoFFC8t/sEpmwvbRkZaa5/D5AFIpG5fo5SguTfyjPGIpugqjUmikhv8u2BkUaoZX/zGRzGj8A3iugRk9WoH2zNDcg9PWxAv73+huXdua93kztViDB9dBkW2RZT4v8FOzAMvBozOD6aGxHVqIVVzwsoQBYTtILtoMBPtCkxi6SsTWLLXb0Up6ymtmFFOdGxUTnxMnZkCuVsrEsuErrLEGRPqVFRVtN4ysgq5/a9pwC5kLpF9wyXP699hHNHp4S4+GZCK9w79aUh/OsAlMFeWOxnz0+iG01cCM8Ps7eOaTsYGXnRMZqA5FzklKkttUjQ8M6l7PkUqs/5C5tDrCIYiWDlhSdypaxs2TbUlVBduh/J9kFTpvj948AVLBKOs3gakAHQ5X6c3SxDXdFqB0a41HG+HOERNYquTykXNTqH75tz/RoNXkejf/RUNUZvljVlfEs8eTmpai9sFCHIyFXUaeuzklBpsc9IaL7DakbvgKO8WPcNfcsx4FQh/iMOBqahytkLpGLoElIVtZkjOWxURscH5KvLqd2sWkqk5SiWY/L/Jr9JNUN+NixqcIsEzZIcROG5V/c6FHVsP3voC0DUUofgYCk7bi8GTUN3eJTTh8M0zFG4eWpxIrcjo4fKpeARX/lGqS7HdBij52bWiWSulAfSjz4tJaYSRupL0k28hjjCXLEwEWfHn05iyy9ZTPHF0KlXvlfUrziuV4w16PdJGhNpGs/JYrclGZ90V7HBJkbUh3ZAsXButMqqhasVQdLCMnX2AbuBM3ok7oz84HETQRCdkir7kfo4192LwjzTRMhGK64+GRZ97MVwtF8nN4ngKljikDBOZiWpLLS7lK0t4/tdw3xNVio1ejBNJqhzF7KFJnyHN8jWQWHSujMbgxmrSMNhOp+cNeCG/CJm9zT8lRmYl1vgDSmaAx6CFR6avfdD9p43Etip9rIypLW1nYCZ3T8HE28vnWvOOWKJoUm4Sb6QdTen6WJqaXICS0/uCotX6Ond1LO0WRmelsJb0lm2BabdixgWPgwg/5FA6pmVVMDr67a/n+NWSpwq/IOXs+tmfZowmgwDkistatDsLwKuqSNtpnOYnTBBI8xq7i+pgDtcfzo+GnBy67aUKI4C0HqAdpwZkaSCb7kVhEW6oG1cN7/pwrhy7QA72tqAg88rzt15B3PjwBOUMxIkjmfQ40GA3NwJLPkPqwmjRNLN3lf3zL3H1YClhYrUk9M8HJ2W+rElAcVkEURUrxxbyEoZegA/hXmlU3cmH59DpPKuaLXOEp9gpsV0IB/QAqtjEbToeOT96LOLtYzD+bp2tkxYbnS2IYXQUhFK+M3ETdydEb0bodINuCbglIwkbu1gjylsf3jM8bPelYuBJ8roiI1zwqDKf7xw752r5dnPn+dQ7nMebZBBxsQlgEOLj41vbfm9dlA1a0pKKle+9octPYEWu7y1cJxc7oKHXTC0MkPAH81B/TuiKwOrfkRtocCOLlLzmgeCDurXtp0aWWHunI6S0rO2ea+M4YPb0T3r9OyZ55Xah5/Hi8JYR5IJ8PTEMbuu0GRpwzAd8v+DJP+Z4w2X52Qgm50O8gDNmhu7UsdhKCa2XgwfV3Wz4pJFl4H0y5UuD4ncKETycAKELlLKvW20K62WZFFwAyf/3hrq5uhp5NVc8F1YiECNJXd5oSVL1K6QjOOAmJyBsMyXPn3+QwTrffNqo8FjM5HPP/acHOsXa7yA7MKHBouxu7GG+Ws8kK/+JgsHyicmrqKRxOtBkiLj4qN6A98JUWe9ceFeE3SBSd9pdv/oSHVOxePXpOnWS6/6HULby3QlWngDmexi6sWOHkn1CV/MKOn+NOnvhhbRF35NlPDbPE12l6c5Fs0li9GyNsc5g0sjkdpJ3Zn4f4RS0PItBRualUCgWzE1yABv1Q+GUgh/A/3wyr5WtGiibYJuF8qctNEqCD7wPPxwF3gcepur//pUPmaUQcDBnQGcexUD0yIwVx27+Mm3GFSqQXdU9yQu+jU114Kvh4OsVRQ9jxlhc8TWF1m/rxZc9HPG1mmQs+xpVmKLD6ayR0o/H6wL/3SwpmlltR4TOqwO969YFHdbjDlqRVJmW06nGxHxbgiaXyiMW2tboIaihOQpaM0ljuqNo+uKQxpjU45nf9RJmjxfJzwCXzGiunvtOeE1hHWRLcCD9Q54t5bKohypXgOYwWSFe2I0BPOUQJ8FSJVvZbK+bavXEk8/FwAxsrMe97EmbmrLt2QiWonGGqhViZE2CYVnbCfiunw/sS+YoBjM5N2h9G/KIzPlpKJTt7Awh2bulvNmf4dLZSsIqC0/fnPTtTxRT9HEaXqjlRLp18FnZB0YCkEOmzj5qjl93D6+hHcA7u8lU3Mmd9pnebwmFNyoBkRybmkHntmmyof3dtCREO9ZmPUKcqGkZ5GiYysPJ72Dq8wiHDh5wFdCjpgFdEf7YeAOGHe1TnX5xP3mk3vpeBa/Y3sMfn500UY9AH8X92hzK7SCV1r+zzYRczz/RMHL9s1QwiOFs0YjoTc9bW/gVCDHTLOYfwVcx0jihdMbk2vuoAxsAX0lizu+lSpgVxFEpDZpWj7jpkxmLHf5id6a59EnID/oJp/1pY139OP9S24VoDpD+Qf/NVztiOOLl201VMVmegtirJPNx/A+E81Raod83V4+TpJgr0VFOZ47Rh8qKcpE7ek+Am+TSjG2y5f1akQFofwawgribkgTVLBSKwEffODKdnrbE7z0gSoAbUMOp+6VN8APZRMTQ4gCirN2UxcE7WLAIgBttO7CfhohfhdPvkrIdJHSviQDEGvfXvuAljmwO99qxKgwKB7RWE5k3vzX/qWmmb5Lwfjudvy2x7fEptqcXSq3arrJtGSjGAps/GVMsBma6yJ2qtfcrrCs+CygW3OxYh0CxqFqOjmlD7k8jReF7iUU1SHYPcNPS53m4dCRXW0c2yTqHLmCHQosr1A/K8a1wLQLbRUD22FunagzRyD6VhyjYAMQl6S3T8gtrGVt8qCQWi7aTgs4yBBM4JSJh3/ixTWfJX0MIUDifqKq8enuSmqFx/mCZYo5P5FbYbQf0M4xAOBXOPLCzYJ9/dAyILWH7zbvH+OOs63gYhFNmkZvDqsoDl2ZaN5+d6XGopWfbIgIdekUgnkwGXMzpWvzGzt28sZdikZJ+R2YDS8VyerRdzRHSuPkjl27ffZvfTAdcc2LpeJEXnu+lNPVagGCH6kL0/gV/Cbk32GdFJRxjwDfn3EK9vYLWXuPqb2fwhV2j7RWSd3UhT3hHcVC33zsNc2ADCGzKIj757/PX+bAMOWKLqsE5VhL598Zm3aiZc72FZb/bGmPDNqFk9qowm6lnn2SSGpsI0YnM3+grwfxFFBTYbaLMbvl45nqKzZYxbMi8Bj4w1VtK1tfHFIyp/G15pR1V6qo0MmzMNXaHCtqHq7LJbRNWvZKUaxyX6+IKEWepgloQuXogNqe/FX07tjVXmQTRcCNQMunYQEDjXGfVZMNzo5ANpOrmOZBJSWAXTbb6YVi5O14p/c9otJPzD4MFELg1mxMGi1P2BHitTT5AJEdYpLrOWKNfyuTKWSJRdhl1wgAkS01HUBZ8U0fX/ObZCDARNVyGUzjTG8ADGbHRVFLAufzah3fZWcEuy/WSaPEG51LEugrZbDAclC2+ma9TFjb/bX9/Qup/nZSFqF5XGmBv6rBpIC0FukNKpy6PXI2PcUaWbEChrYaMODNcz/WP7ePJfeezVEekcl7kV2fNgrz+FJ3SOWtPnLNXcp1deGzgwMW/FtLO8PADkxRtS7p3NwuqxgcsK8v6Qwtv5uWs5POKYuXuIb2cBMXEfhlqWyZLldk3e0hMThlmzpkvJLkDH5JsK2Ls8xQkVO3Xhcm2boZd2fKwYc+2p5x752JjOirMNAL3NlfrdkQq1//VMIjWbKxV2RAijFSjNJTBTxVPpuZNPmmKhH367BwMftROfOOdP3KYIeequ6nShktuYSOZJVRp7NeiPnGwO7rax5U9r3lnie+84sFK66fRpguuAz8Kg1PnJYUsC5W39cHnQbkZ7KUQLHCDpVI64kOdhxmrYu5OGAkIJkRHQbb/QtM+iUtvfPgAl/8WL+pZ4Hanm07MeTXcjie8Jq6o6G6lF/VXyzZFQGwonffQzb+WHgXdlHlYtPglo5CS7fzAQP7EYPM8PShZnmkysxTrA2fS/UVwlLhqNr1CaMFHaRXO/NJhuiufe83tot7jhyl9vXa9n0047EfylrX8305tvshCwyjRdow1w/1ddWI+dh4W6UpYz0jIVaNbotWQcgZG7gM2+6oTtDhDAQwlsBg0xijwuUTFFuQFSa1+uUPDWnIybAuvuHkE1wOIEWXO2gI7j2A8JbQq4hd+jt03ztXEGlyqJpQ4S5m8BD+oghq0GJKcuyMjJVfGow63d7CAs4DU99U37hHlQ1bI1YPidy6vGLmoYi4TZUYPq9t9vNyO1NtSYwVPO18sLbhsv2TJzQQ1Sw0dAu5llcisY2G1YCIVQO54Klh4D13C1miwtBQuHViO45hfwzPL4i6j9Iiw/Tm52I1U1IYm9w846xdKgNj9ao2+aw1AJfcajS3gej36pd+1YHYtyTHs3Q57X1kj8Hjnq5dLASg4CZ/oTb12TJsfFPzmidqg0O0iAohcFTz6mJ/Gqrdt1UA=",Kh={xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"};function Xh(n,e){return l.openBlock(),l.createElementBlock("svg",Kh,e[0]||(e[0]=[l.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M7 17 17 7m0 0H7m10 0v10"},null,-1)]))}const xi={render:Xh};/**
13
+ Expect errors in decoding.`),w=w.replace(/[^A-Za-z0-9\+\/\=]/g,"");I=this.KEY_STR.indexOf(w.charAt(W++)),B=this.KEY_STR.indexOf(w.charAt(W++)),U=this.KEY_STR.indexOf(w.charAt(W++)),$=this.KEY_STR.indexOf(w.charAt(W++)),C=I<<2|B>>4,y=(B&15)<<4|U>>2,x=(U&3)<<6|$,Z.push(C),U!==64&&Z.push(y),$!==64&&Z.push(x),C=y=x="",I=B=U=$="",W<w.length;);return Z}}]),N}();ve.initClass();var xe=function(R,w){var C=!1,y=!0,x=R.document,I=x.documentElement,B=x.addEventListener?"addEventListener":"attachEvent",U=x.addEventListener?"removeEventListener":"detachEvent",$=x.addEventListener?"":"on",W=function Y(Q){if(!(Q.type==="readystatechange"&&x.readyState!=="complete")&&((Q.type==="load"?R:x)[U]($+Q.type,Y,!1),!C&&(C=!0)))return w.call(R,Q.type||Q)},Z=function Y(){try{I.doScroll("left")}catch{setTimeout(Y,50);return}return W("poll")};if(x.readyState!=="complete"){if(x.createEventObject&&I.doScroll){try{y=!R.frameElement}catch{}y&&Z()}return x[B]($+"DOMContentLoaded",W,!1),x[B]($+"readystatechange",W,!1),R[B]($+"load",W,!1)}};q._autoDiscoverFunction=function(){if(q.autoDiscover)return q.discover()},xe(window,q._autoDiscoverFunction);function he(N,R){return typeof N<"u"&&N!==null?R(N):void 0}function Oe(N,R,w){if(typeof N<"u"&&N!==null&&typeof N[R]=="function")return w(N,R)}window.Dropzone=q;var ye=q}(),l}()})}(xi)),xi.exports}var sh=rh();const Ei=bi(sh),ih={xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"};function oh(n,e){return a.openBlock(),a.createElementBlock("svg",ih,e[0]||(e[0]=[a.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m8 16 4-4m0 0 4 4m-4-4v9m8-4.257A5.5 5.5 0 0 0 16.5 7a.62.62 0 0 1-.534-.302 7.5 7.5 0 1 0-11.78 9.096"},null,-1)]))}const ah={render:oh},lh={class:"file-upload"},ch=["name","value"],uh={key:0,class:"preview"},dh={class:"file-upload-preview"},fh=["src"],hh={key:1,class:"preview"},ph={class:"file-upload-preview"},mh=["src","title"],gh=["href"],vh={class:"file-upload-title"},yh={class:"file-upload-file-remove"},bh={class:"absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 p-4 rounded-lg flex flex-col justify-center items-center w-full"},Ia={__name:"FileUpload",props:{name:{type:String,required:!1},modelValue:{type:[String,Object],default:null},submitEndpoint:{type:String,required:!1},deleteEndpoint:{type:String,required:!1},formData:{type:Object,default:null},csrf:{type:String,required:!1},background:{type:String,default:""}},emits:["update:modelValue"],setup(n,{emit:e}){Ei.autoDiscover=!1;const t=n,r=a.ref([]),s=a.ref(Ei),l=a.ref(null),o=a.computed(()=>JSON.stringify(r)),c=u=>["image/gif","image/jpeg","image/png","image/tiff"].includes(u),i=u=>{tt.delete(t.deleteEndpoint+"?"+u.id).then(()=>{r.value=null}).catch(console.error)};return a.onMounted(()=>{var d;l.value=t.formData;const u=t.csrf;s.value=new Ei(s.value,{url:(t==null?void 0:t.submitEndpoint)+"?"+((d=l.value)==null?void 0:d.id),addRemoveLinks:!0,maxFiles:1,sending:(h,f,g)=>{g.append("_token",u),g.append("field",t.name)},success:(h,f)=>{h.value=f},complete:h=>{var f;(f=s.value)==null||f.removeFile(h)}}),r.value=t.modelValue}),(u,d)=>(a.openBlock(),a.createElementBlock("div",lh,[a.createElementVNode("input",{type:"hidden",name:n.name,value:o.value},null,8,ch),n.modelValue?(a.openBlock(),a.createElementBlock("div",uh,[d[1]||(d[1]=a.createTextVNode(" @todo handle upload here ")),a.createElementVNode("span",dh,[a.createElementVNode("img",{class:"img rounded-lg h-[200px] object-contain",src:n.modelValue,title:"Image"},null,8,fh)])])):r.value&&r.value.length?(a.openBlock(),a.createElementBlock("div",hh,[a.createElementVNode("span",ph,[c(r.value.mime_type)?(a.openBlock(),a.createElementBlock("img",{key:0,class:"img",src:r.value.url,title:r.value.file_name},null,8,mh)):a.createCommentVNode("",!0)]),a.createElementVNode("a",{href:r.value.url,target:"_blank",class:"link"},[a.createElementVNode("div",vh,a.toDisplayString(r.value.file_name),1)],8,gh),a.createElementVNode("a",yh,[a.createElementVNode("i",{class:"fal fa-times",onClick:d[0]||(d[0]=h=>i(r.value))})])])):a.createCommentVNode("",!0),a.withDirectives(a.createElementVNode("div",{class:a.normalizeClass("relative rounded-lg "+n.background)},[a.createElementVNode("div",{class:"dropzone border border-dashed rounded-lg z-10 h-[200px] w-full cursor-pointer relative",ref_key:"dropzone",ref:s},null,512),a.createElementVNode("div",bh,[a.createElementVNode("div",null,[a.createVNode(a.unref(ah),{class:"w-6 h-6"})]),d[2]||(d[2]=a.createElementVNode("div",{class:"text-sm text-center"},[a.createElementVNode("p",null,[a.createElementVNode("span",{class:"text-brand-900"},"Click to upload"),a.createElementVNode("span",null," or drag and drop")]),a.createElementVNode("span",null,"(max. 20MB)")],-1))])],2),[[a.vShow,!n.modelValue]])]))}},xh={class:"flex justify-between pb-2"},Eh={class:"flex justify-between w-full py-1"},wh={class:"text-lg font-semibold text-gray-900"},Ah={class:"text-sm text-gray-600 mt-1"},Sh={class:"flex flex-col gap-3"},Th={class:"flex items-center justify-between"},Nh={class:"text-lg font-semibold text-gray-900"},Oh={class:"relative flex items-end"},Ch={class:"flex flex-col gap-6"},kh={class:"flex flex-col gap-1.5"},Rh=["onUpdate:modelValue"],Ih={__name:"VLogos",props:{...Tr},emits:["update"],setup(n,{emit:e}){const t=a.inject("VFileUpload",Ia),r=e,s=n,l=a.ref(s.data.component),o=a.ref(null),c=a.ref(null),i=a.ref(null);function u(){var f,g;l.value.hasOwnProperty("data")||(l.value.data=[]),!(((f=l.value.data)==null?void 0:f.length)>=l.value.max_items)&&((g=l.value.data)==null||g.push({url:null,logo:null}),a.nextTick(()=>{c.value&&c.value.scrollIntoView({behavior:"smooth"})}),r("update",!1))}const d=f=>{var g;i.value=f,(g=o==null?void 0:o.value)==null||g.open(f)},h=f=>{var g;(g=l.value.data)==null||g.splice(f,1),r("update",!1)};return(f,g)=>{var p;return a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createElementVNode("div",xh,[a.createElementVNode("div",Eh,[a.createElementVNode("div",null,[a.createElementVNode("p",wh,a.toDisplayString(l.value.name),1),a.createElementVNode("p",Ah," This section can contain up to "+a.toDisplayString(l.value.max_items)+" logos ",1)]),a.createElementVNode("div",null,[a.createElementVNode("a",{onClick:u,class:a.normalizeClass(["text-sm cursor-pointer flex items-center justify-center gap-1 rounded-[99px] border border-brand-600 bg-brand-500 px-3.5 py-2 font-semibold text-white hover:bg-brand-600",{"border-gray-100 bg-gray-100 !text-gray-400 hover:bg-gray-100":((p=l.value.data)==null?void 0:p.length)>=l.value.max_items}])},[a.createVNode(a.unref(ns),{class:"h-5 w-5"}),g[0]||(g[0]=a.createElementVNode("span",null,"Add",-1))],2)])])]),a.createElementVNode("div",Sh,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(l.value.data,(v,b)=>(a.openBlock(),a.createElementBlock("div",{class:"flex flex-col gap-4 rounded-xl px-6 py-4 bg-gray-200",key:b,ref_for:!0,ref:b===l.value.data.length-1?S=>c.value=S:null},[a.createElementVNode("div",Th,[a.createElementVNode("div",Nh," Logo #"+a.toDisplayString(b+1),1),a.createElementVNode("div",Oh,[a.createVNode(ii,{onRemoveItem:S=>d(b)},null,8,["onRemoveItem"])])]),a.createElementVNode("div",Ch,[a.createElementVNode("div",kh,[a.createVNode(a.unref(t),{name:"image",background:"bg-white",modelValue:v.logo,"onUpdate:modelValue":S=>v.logo=S},null,8,["modelValue","onUpdate:modelValue"]),a.createVNode(Qt,{"is-vertical":"",field:"url","label-text":"Url *",class:"w-full my-4",value:v.url},{default:a.withCtx(()=>[a.withDirectives(a.createElementVNode("input",{"onUpdate:modelValue":S=>v.url=S,name:"url",type:"text",placeholder:"Enter your url",class:"border-1 border-solid border-gray-300 rounded-lg bg-white w-full"},null,8,Rh),[[a.vModelText,v.url]])]),_:2},1032,["value"])])])]))),128))]),a.createVNode(oi,{ref_key:"modalRef",ref:o,entity:"logo",callback:h},null,512)],64)}}},Lh={class:"flex flex-col"},Bh={class:"flex flex-col gap-4 mb-4 border-b border-gray-200 pb-4"},Ph={class:"flex flex-col gap-6"},Fh={class:"flex flex-col gap-1.5"},Mh={key:0,class:"text-base text-gray-900 font-semibold"},Dh={key:1,class:"text-gray-600 text-base font-normal mt-2"},Uh={__name:"VCollectionCarousel",props:{...Tr},emits:["update"],setup(n,{emit:e}){const t=n,r=a.ref(t.data.component);return(s,l)=>{var o,c,i;return a.openBlock(),a.createElementBlock("div",Lh,[a.createElementVNode("div",Bh,[l[4]||(l[4]=a.createElementVNode("p",{class:"text-lg font-semibold text-gray-900 border-b border-gray-200 pb-4"}," Carousel ",-1)),a.createElementVNode("div",Ph,[a.createElementVNode("div",Fh,[r.value.button?(a.openBlock(),a.createBlock(Qt,{key:0,"is-vertical":"",field:"title","label-text":"Button label *",class:"w-full mb-4",value:r.value.button.title,limit:51},{default:a.withCtx(()=>[a.withDirectives(a.createElementVNode("input",{"onUpdate:modelValue":l[0]||(l[0]=u=>r.value.button.title=u),name:"title",type:"text",placeholder:"Title",maxlength:51,class:"border-1 border-solid border-gray-300 rounded-lg bg-white w-full"},null,512),[[a.vModelText,r.value.button.title]])]),_:1},8,["value"])):a.createCommentVNode("",!0),(o=r.value)!=null&&o.button?(a.openBlock(),a.createBlock(ss,{key:1,label:"Link to",name:"button",type:r.value.button.type,"onUpdate:type":l[1]||(l[1]=u=>r.value.button.type=u),url:r.value.button.url,"onUpdate:url":l[2]||(l[2]=u=>r.value.button.url=u),openInNewTab:r.value.button.open_in_new_tab,"onUpdate:openInNewTab":l[3]||(l[3]=u=>r.value.button.open_in_new_tab=u),sites:s.sites},null,8,["type","url","openInNewTab","sites"])):a.createCommentVNode("",!0)])])]),a.createElementVNode("div",null,[(c=r.value.content)!=null&&c.label?(a.openBlock(),a.createElementBlock("h3",Mh,a.toDisplayString(r.value.data.content.label),1)):a.createCommentVNode("",!0),(i=r.value.content)!=null&&i.supportive_text?(a.openBlock(),a.createElementBlock("p",Dh,a.toDisplayString(r.value.data.content.supportive_text),1)):a.createCommentVNode("",!0)])])}}},jh={class:"page-builder overflow-auto"},Vh={class:"flex gap-4 px-6 overflow-auto"},$h={class:"flex w-[356px] flex-col gap-2 pb-10"},_h={class:"border-b border-gray-200 pb-2"},qh=["onClick"],zh={class:"text-lg font-semibold text-brand-800"},Hh={class:"relative flex items-center gap-3"},Gh={class:"cursor-pointer"},Wh={key:0,class:"flex flex-col gap-2"},Kh=["onClick"],Xh={class:"flex flex-col"},Yh={class:"text-sm font-medium text-gray-900"},Zh={class:"flex items-center justify-between gap-3 px-[10px]"},Qh={class:"flex h-full flex-1 flex-col rounded-xl bg-gray-50 px-6 py-5 mb-20"},Jh={class:"flex justify-between space-x-xsSpace pt-xsSpace gap-4 sticky bottom-0 w-full bg-gray-200 py-2 px-6"},ep={__name:"PageBuilder",props:{modelValue:{required:!0,type:Object},sites:{type:Array,default:()=>[]}},emits:["save","close"],setup(n,{emit:e}){var f;const t=e,r=n,s=a.ref(JSON.parse(window.localStorage.getItem("pageBuilderOpenStates"))),l=a.ref(((f=r.modelValue)==null?void 0:f.sections)??[]);let o=a.ref(null);const c=a.ref({sliders:a.markRaw(Ho),vertical_tabs:a.markRaw(Ho),links:a.markRaw(Go),header:a.markRaw(Ld),link_grid:a.markRaw(Go),logos:a.markRaw(Ih),carousel:a.markRaw(Uh)});s.value||(s.value={},l.value.forEach((g,p)=>{s.value[p]=!0}),window.localStorage.setItem("pageBuilderOpenStates",JSON.stringify(s.value)));const i=(g,p,v)=>{o.value={page:r.modelValue,component:p,componentIndex:v,sectionIndex:g}},u=()=>{t("close",r.modelValue)},d=(g=!0)=>{t("save",{page:r.modelValue,redirect:g})},h=a.computed(()=>{var g,p,v,b;return(p=(g=o.value)==null?void 0:g.component)!=null&&p.type?c.value[(b=(v=o.value)==null?void 0:v.component)==null?void 0:b.type]:""});return(g,p)=>{var v,b;return a.openBlock(),a.createElementBlock("div",jh,[a.createElementVNode("div",Vh,[a.createElementVNode("div",$h,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(n.modelValue.sections,(S,T)=>(a.openBlock(),a.createElementBlock("div",_h,[a.createElementVNode("div",{onClick:k=>s.value[T]=!s.value[T],class:"flex cursor-pointer items-center justify-between px-2 py-4"},[a.createElementVNode("span",zh,a.toDisplayString(S.title),1),a.createElementVNode("div",Hh,[a.createElementVNode("div",Gh,[s.value[T]?(a.openBlock(),a.createBlock(a.unref(ou),{key:1,class:"h-5 w-5"})):(a.openBlock(),a.createBlock(a.unref(ni),{key:0,class:"h-5 w-5"}))])])],8,qh),s.value[T]?(a.openBlock(),a.createElementBlock("div",Wh,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(S.components,(k,F)=>{var M,z;return a.openBlock(),a.createElementBlock("div",{onClick:X=>i(T,k,F),class:a.normalizeClass(["flex cursor-pointer items-center justify-between rounded-lg py-1.5 pl-6 pr-2 hover:bg-gray-100",{"bg-gray-200 hover:bg-gray-200":((M=a.unref(o))==null?void 0:M.sectionIndex)===T&&((z=a.unref(o))==null?void 0:z.componentIndex)===F}])},[a.createElementVNode("div",Xh,[p[0]||(p[0]=a.createElementVNode("div",{class:"text-xs text-gray-600"},"Sub-module",-1)),a.createElementVNode("div",Yh,a.toDisplayString(k.name),1)]),a.createElementVNode("div",Zh,[a.createVNode(a.unref(ni),{class:"h-5 w-5"})])],10,Kh)}),256))])):a.createCommentVNode("",!0)]))),256))]),a.createElementVNode("div",Qh,[a.unref(o)?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(cu,{key:0})),(a.openBlock(),a.createBlock(a.resolveDynamicComponent(h.value),{key:((v=a.unref(o))==null?void 0:v.sectionIndex)+((b=a.unref(o))==null?void 0:b.componentIndex),data:a.unref(o),sites:n.sites,onUpdate:d},null,40,["data","sites"]))])]),a.renderSlot(g.$slots,"default",{},()=>[a.createElementVNode("div",Jh,[a.createElementVNode("a",{onClick:u,class:"w-[200px] py-[9px] bg-white rounded-full border border-gray-300 shadow-xs text-md font-semibold hover:bg-gray-100 text-gray-700 text-center cursor-pointer"}," Cancel "),a.createElementVNode("a",{onClick:a.withModifiers(d,["prevent"]),class:"w-full py-[9px] rounded-full shadow-xs text-md font-semibold text-white bg-brand-600 hover:bg-brand-700 border border-brand-600 text-center cursor-pointer"},"Save changes")])])])}}},La="data:image/jpeg;base64,AAAAHGZ0eXBhdmlmAAAAAGF2aWZtaWYxbWlhZgAAAOptZXRhAAAAAAAAACFoZGxyAAAAAAAAAABwaWN0AAAAAAAAAAAAAAAAAAAAAA5waXRtAAAAAAABAAAAImlsb2MAAAAAREAAAQABAAAAAAEOAAEAAAAAAAARtAAAACNpaW5mAAAAAAABAAAAFWluZmUCAAAAAAEAAGF2MDEAAAAAamlwcnAAAABLaXBjbwAAABNjb2xybmNseAABAA0ABoAAAAAMYXYxQ4EMDAAAAAAUaXNwZQAAAAAAAAZBAAAGQQAAABBwaXhpAAAAAAMICAgAAAAXaXBtYQAAAAAAAAABAAEEAYIDBAAAEbxtZGF0EgAKChsqsgZA4ICGg0IyoyMRQAEEEEFA9LrNypVG96LMWWcCoG7e3fR+Ni4S+KmSHgWobWA8OtL9vwZBTQcXX7wPCOaSqjXsz7F6l4FRLlK0rP8o5OlSIUR601ydI43hGj9Zmp+aRpVBIDeJVv2kawzorrWwnkCzlZFEN6kIWzNhDWD17lK5jFHp5nVzBnO7b5xDqgQ41jePfiYsmcXTc+mBRKMYDdHKDnPl/8IBX52Y26kxwh/9P6mo2zGVNs0ONs6XQWBAZF4FLOrQA20MzyF4txDPqWsBcwcki9kP0ye4x2YvaF310Dkfqua5RxdagnQIp81oTTmcVFxZXrNgz/NbDxWQbz/z1D+FoX3neKlSbFhq3ucDHwXJEktw8cZ2XEwmctcaK9W4pdEpJcNmr6e+P5AdDI1gEFOIRzxrfwX7huahRibmG/eDl0/UOLLG7W2K9GM9oA4EfGC0bPjq+Jf334oN7xreU0X+TYQJz/0xj9pPHguWOxMDm9si/e6goowSH/lorQ9UvkgeziFfzDstH4yzAIuV68sxclnujfPQhdXX99gMzUcL0sIhl4Rjw1/oYxWSImpbfTD/sCvela/JWOTP0QMQXX+pC/5stV+H1qJFXPiRG8OhXE0d0PS7I4eD8sVdEfCyszn+lGwa+JXDMgdVcufTugRLQj0TkBzxy6//k6wSt25hJlTRACEGLFtkmZDg92hcP1XELKV7GGk0MY2407yrVkFnFhFdo7MORa4zOTSoG4srhkzTnpKmrgu/2wPYleLn8jEHAuKyO9utn9Z3wI2k7zdKIUzGnUjvk4VRAerEWwLsdvapS6+R77tjD8ReIJU1+ffObq2U3/7ddqdkHDrXsX5TtC9hupIhjj7yd2yDXOnU4ptZKlZlz7V96Z3bk4Dzr0DidAz2u1GIVgymuhj3LNiUVabDehwgCN4odwcZiodNOtwfG5DveLcAAthj19sWP7zblztGw/pps07vA0mdKmk2Jg10RZyPSnLZsMaK4/GcfKexJZxnfD5InLXuOrwBCKy2XxH4sdItujUvy/JlAyhwZ9d30WPbav9ZoSXD/xD8xnBoZgT+EsnCyQBrxjgPoW+U8U8hOVPFY7bHXJ9yYfRdBG9g/aWr/e893U07phoIxJeXejmsLobU3qGnN5br4lcKQF0vxxNB5XSaRX26X//78Rq059n0mh8mR9p8CivLohVCCYlVNvYk+M9gPHr0720q1ofNETgYLaly6c4kSsS+f/dn1/5VqNrMfBZ9iCZsmU2jWDgE5JETYjxU/3SNryPwESpkO2TgM+l6/Fv3GR6+58EiLI0WiWvJGxhgi8cQKdcp8kmu563nVw95R1H5EgZ6iT4i7KuHysoFFC8t/sEpmwvbRkZaa5/D5AFIpG5fo5SguTfyjPGIpugqjUmikhv8u2BkUaoZX/zGRzGj8A3iugRk9WoH2zNDcg9PWxAv73+huXdua93kztViDB9dBkW2RZT4v8FOzAMvBozOD6aGxHVqIVVzwsoQBYTtILtoMBPtCkxi6SsTWLLXb0Up6ymtmFFOdGxUTnxMnZkCuVsrEsuErrLEGRPqVFRVtN4ysgq5/a9pwC5kLpF9wyXP699hHNHp4S4+GZCK9w79aUh/OsAlMFeWOxnz0+iG01cCM8Ps7eOaTsYGXnRMZqA5FzklKkttUjQ8M6l7PkUqs/5C5tDrCIYiWDlhSdypaxs2TbUlVBduh/J9kFTpvj948AVLBKOs3gakAHQ5X6c3SxDXdFqB0a41HG+HOERNYquTykXNTqH75tz/RoNXkejf/RUNUZvljVlfEs8eTmpai9sFCHIyFXUaeuzklBpsc9IaL7DakbvgKO8WPcNfcsx4FQh/iMOBqahytkLpGLoElIVtZkjOWxURscH5KvLqd2sWkqk5SiWY/L/Jr9JNUN+NixqcIsEzZIcROG5V/c6FHVsP3voC0DUUofgYCk7bi8GTUN3eJTTh8M0zFG4eWpxIrcjo4fKpeARX/lGqS7HdBij52bWiWSulAfSjz4tJaYSRupL0k28hjjCXLEwEWfHn05iyy9ZTPHF0KlXvlfUrziuV4w16PdJGhNpGs/JYrclGZ90V7HBJkbUh3ZAsXButMqqhasVQdLCMnX2AbuBM3ok7oz84HETQRCdkir7kfo4192LwjzTRMhGK64+GRZ97MVwtF8nN4ngKljikDBOZiWpLLS7lK0t4/tdw3xNVio1ejBNJqhzF7KFJnyHN8jWQWHSujMbgxmrSMNhOp+cNeCG/CJm9zT8lRmYl1vgDSmaAx6CFR6avfdD9p43Etip9rIypLW1nYCZ3T8HE28vnWvOOWKJoUm4Sb6QdTen6WJqaXICS0/uCotX6Ond1LO0WRmelsJb0lm2BabdixgWPgwg/5FA6pmVVMDr67a/n+NWSpwq/IOXs+tmfZowmgwDkistatDsLwKuqSNtpnOYnTBBI8xq7i+pgDtcfzo+GnBy67aUKI4C0HqAdpwZkaSCb7kVhEW6oG1cN7/pwrhy7QA72tqAg88rzt15B3PjwBOUMxIkjmfQ40GA3NwJLPkPqwmjRNLN3lf3zL3H1YClhYrUk9M8HJ2W+rElAcVkEURUrxxbyEoZegA/hXmlU3cmH59DpPKuaLXOEp9gpsV0IB/QAqtjEbToeOT96LOLtYzD+bp2tkxYbnS2IYXQUhFK+M3ETdydEb0bodINuCbglIwkbu1gjylsf3jM8bPelYuBJ8roiI1zwqDKf7xw752r5dnPn+dQ7nMebZBBxsQlgEOLj41vbfm9dlA1a0pKKle+9octPYEWu7y1cJxc7oKHXTC0MkPAH81B/TuiKwOrfkRtocCOLlLzmgeCDurXtp0aWWHunI6S0rO2ea+M4YPb0T3r9OyZ55Xah5/Hi8JYR5IJ8PTEMbuu0GRpwzAd8v+DJP+Z4w2X52Qgm50O8gDNmhu7UsdhKCa2XgwfV3Wz4pJFl4H0y5UuD4ncKETycAKELlLKvW20K62WZFFwAyf/3hrq5uhp5NVc8F1YiECNJXd5oSVL1K6QjOOAmJyBsMyXPn3+QwTrffNqo8FjM5HPP/acHOsXa7yA7MKHBouxu7GG+Ws8kK/+JgsHyicmrqKRxOtBkiLj4qN6A98JUWe9ceFeE3SBSd9pdv/oSHVOxePXpOnWS6/6HULby3QlWngDmexi6sWOHkn1CV/MKOn+NOnvhhbRF35NlPDbPE12l6c5Fs0li9GyNsc5g0sjkdpJ3Zn4f4RS0PItBRualUCgWzE1yABv1Q+GUgh/A/3wyr5WtGiibYJuF8qctNEqCD7wPPxwF3gcepur//pUPmaUQcDBnQGcexUD0yIwVx27+Mm3GFSqQXdU9yQu+jU114Kvh4OsVRQ9jxlhc8TWF1m/rxZc9HPG1mmQs+xpVmKLD6ayR0o/H6wL/3SwpmlltR4TOqwO969YFHdbjDlqRVJmW06nGxHxbgiaXyiMW2tboIaihOQpaM0ljuqNo+uKQxpjU45nf9RJmjxfJzwCXzGiunvtOeE1hHWRLcCD9Q54t5bKohypXgOYwWSFe2I0BPOUQJ8FSJVvZbK+bavXEk8/FwAxsrMe97EmbmrLt2QiWonGGqhViZE2CYVnbCfiunw/sS+YoBjM5N2h9G/KIzPlpKJTt7Awh2bulvNmf4dLZSsIqC0/fnPTtTxRT9HEaXqjlRLp18FnZB0YCkEOmzj5qjl93D6+hHcA7u8lU3Mmd9pnebwmFNyoBkRybmkHntmmyof3dtCREO9ZmPUKcqGkZ5GiYysPJ72Dq8wiHDh5wFdCjpgFdEf7YeAOGHe1TnX5xP3mk3vpeBa/Y3sMfn500UY9AH8X92hzK7SCV1r+zzYRczz/RMHL9s1QwiOFs0YjoTc9bW/gVCDHTLOYfwVcx0jihdMbk2vuoAxsAX0lizu+lSpgVxFEpDZpWj7jpkxmLHf5id6a59EnID/oJp/1pY139OP9S24VoDpD+Qf/NVztiOOLl201VMVmegtirJPNx/A+E81Raod83V4+TpJgr0VFOZ47Rh8qKcpE7ek+Am+TSjG2y5f1akQFofwawgribkgTVLBSKwEffODKdnrbE7z0gSoAbUMOp+6VN8APZRMTQ4gCirN2UxcE7WLAIgBttO7CfhohfhdPvkrIdJHSviQDEGvfXvuAljmwO99qxKgwKB7RWE5k3vzX/qWmmb5Lwfjudvy2x7fEptqcXSq3arrJtGSjGAps/GVMsBma6yJ2qtfcrrCs+CygW3OxYh0CxqFqOjmlD7k8jReF7iUU1SHYPcNPS53m4dCRXW0c2yTqHLmCHQosr1A/K8a1wLQLbRUD22FunagzRyD6VhyjYAMQl6S3T8gtrGVt8qCQWi7aTgs4yBBM4JSJh3/ixTWfJX0MIUDifqKq8enuSmqFx/mCZYo5P5FbYbQf0M4xAOBXOPLCzYJ9/dAyILWH7zbvH+OOs63gYhFNmkZvDqsoDl2ZaN5+d6XGopWfbIgIdekUgnkwGXMzpWvzGzt28sZdikZJ+R2YDS8VyerRdzRHSuPkjl27ffZvfTAdcc2LpeJEXnu+lNPVagGCH6kL0/gV/Cbk32GdFJRxjwDfn3EK9vYLWXuPqb2fwhV2j7RWSd3UhT3hHcVC33zsNc2ADCGzKIj757/PX+bAMOWKLqsE5VhL598Zm3aiZc72FZb/bGmPDNqFk9qowm6lnn2SSGpsI0YnM3+grwfxFFBTYbaLMbvl45nqKzZYxbMi8Bj4w1VtK1tfHFIyp/G15pR1V6qo0MmzMNXaHCtqHq7LJbRNWvZKUaxyX6+IKEWepgloQuXogNqe/FX07tjVXmQTRcCNQMunYQEDjXGfVZMNzo5ANpOrmOZBJSWAXTbb6YVi5O14p/c9otJPzD4MFELg1mxMGi1P2BHitTT5AJEdYpLrOWKNfyuTKWSJRdhl1wgAkS01HUBZ8U0fX/ObZCDARNVyGUzjTG8ADGbHRVFLAufzah3fZWcEuy/WSaPEG51LEugrZbDAclC2+ma9TFjb/bX9/Qup/nZSFqF5XGmBv6rBpIC0FukNKpy6PXI2PcUaWbEChrYaMODNcz/WP7ePJfeezVEekcl7kV2fNgrz+FJ3SOWtPnLNXcp1deGzgwMW/FtLO8PADkxRtS7p3NwuqxgcsK8v6Qwtv5uWs5POKYuXuIb2cBMXEfhlqWyZLldk3e0hMThlmzpkvJLkDH5JsK2Ls8xQkVO3Xhcm2boZd2fKwYc+2p5x752JjOirMNAL3NlfrdkQq1//VMIjWbKxV2RAijFSjNJTBTxVPpuZNPmmKhH367BwMftROfOOdP3KYIeequ6nShktuYSOZJVRp7NeiPnGwO7rax5U9r3lnie+84sFK66fRpguuAz8Kg1PnJYUsC5W39cHnQbkZ7KUQLHCDpVI64kOdhxmrYu5OGAkIJkRHQbb/QtM+iUtvfPgAl/8WL+pZ4Hanm07MeTXcjie8Jq6o6G6lF/VXyzZFQGwonffQzb+WHgXdlHlYtPglo5CS7fzAQP7EYPM8PShZnmkysxTrA2fS/UVwlLhqNr1CaMFHaRXO/NJhuiufe83tot7jhyl9vXa9n0047EfylrX8305tvshCwyjRdow1w/1ddWI+dh4W6UpYz0jIVaNbotWQcgZG7gM2+6oTtDhDAQwlsBg0xijwuUTFFuQFSa1+uUPDWnIybAuvuHkE1wOIEWXO2gI7j2A8JbQq4hd+jt03ztXEGlyqJpQ4S5m8BD+oghq0GJKcuyMjJVfGow63d7CAs4DU99U37hHlQ1bI1YPidy6vGLmoYi4TZUYPq9t9vNyO1NtSYwVPO18sLbhsv2TJzQQ1Sw0dAu5llcisY2G1YCIVQO54Klh4D13C1miwtBQuHViO45hfwzPL4i6j9Iiw/Tm52I1U1IYm9w846xdKgNj9ao2+aw1AJfcajS3gej36pd+1YHYtyTHs3Q57X1kj8Hjnq5dLASg4CZ/oTb12TJsfFPzmidqg0O0iAohcFTz6mJ/Gqrdt1UA=",tp={xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"};function np(n,e){return a.openBlock(),a.createElementBlock("svg",tp,e[0]||(e[0]=[a.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M7 17 17 7m0 0H7m10 0v10"},null,-1)]))}const vs={render:np};/**
14
14
  * Vue 3 Carousel 0.15.1
15
15
  * (c) 2025
16
16
  * @license MIT
17
- */const Lo=["viewport","carousel"],ms={"bottom-to-top":"btt","left-to-right":"ltr","right-to-left":"rtl","top-to-bottom":"ttb"},Bo=["ltr","left-to-right","rtl","right-to-left","ttb","top-to-bottom","btt","bottom-to-top"],Yh={ariaGallery:"Gallery",ariaNavigateToPage:"Navigate to page {slideNumber}",ariaNavigateToSlide:"Navigate to slide {slideNumber}",ariaNextSlide:"Navigate to next slide",ariaPreviousSlide:"Navigate to previous slide",iconArrowDown:"Arrow pointing downwards",iconArrowLeft:"Arrow pointing to the left",iconArrowRight:"Arrow pointing to the right",iconArrowUp:"Arrow pointing upwards",itemXofY:"Item {currentSlide} of {slidesCount}"},Po=["slide","fade"],Fo=["center","start","end","center-even","center-odd"],Mo=10,gs=.3,nt={autoplay:0,breakpointMode:Lo[0],breakpoints:void 0,dir:Bo[0],enabled:!0,gap:0,height:"auto",i18n:Yh,ignoreAnimations:!1,itemsToScroll:1,itemsToShow:1,modelValue:0,mouseDrag:!0,mouseWheel:!1,pauseAutoplayOnHover:!1,preventExcessiveDragging:!1,slideEffect:Po[0],snapAlign:Fo[0],touchDrag:!0,transition:300,wrapAround:!1},Fn=Symbol("carousel"),Zh=n=>{const e=l.shallowReactive([]),t=r=>{r!==void 0?e.slice(r).forEach((s,o)=>{var a;(a=s.exposed)===null||a===void 0||a.setIndex(r+o)}):e.forEach((s,o)=>{var a;(a=s.exposed)===null||a===void 0||a.setIndex(o)})};return{cleanup:()=>{e.splice(0,e.length)},getSlides:()=>e,registerSlide:(r,s)=>{if(!r||r.props.isClone)return;const o=s??e.length;e.splice(o,0,r),t(o),n("slide-registered",{slide:r,index:o})},unregisterSlide:r=>{const s=e.indexOf(r);s!==-1&&(n("slide-unregistered",{slide:r,index:s}),e.splice(s,1),t(s))}}};function Qh(n){return n.length===0?0:n.reduce((t,r)=>t+r,0)/n.length}function Do({slides:n,position:e,toShow:t}){const r=[],s=e==="before",o=s?-t:0,a=s?0:t;if(n.length<=0)return r;for(let c=o;c<a;c++){const u={index:s?c:c+n.length,isClone:!0,id:void 0,key:`clone-${e}-${c}`},d=n[(c%n.length+n.length)%n.length].vnode,h=l.cloneVNode(d,u);h.el=null,r.push(h)}return r}const Jh='a[href], button, input, textarea, select, details, [tabindex]:not([tabindex="-1"])';function Uo(n){if(!n.el||!(n.el instanceof Element))return;const e=n.el.querySelectorAll(Jh);for(const t of e)t instanceof HTMLElement&&!t.hasAttribute("disabled")&&t.getAttribute("aria-hidden")!=="true"&&t.setAttribute("tabindex","-1")}function ep(n,e){return Object.keys(n).filter(t=>!e.includes(t)).reduce((t,r)=>(t[r]=n[r],t),{})}function tp(n){const{isVertical:e,isReversed:t,dragged:r,effectiveSlideSize:s,threshold:o}=n,a=e?r.y:r.x;if(a===0)return 0;const c=a/s,i=Math.abs(c);if(i<o)return 0;const u=i<1?Math.sign(c):Math.round(c);return t?u:-u}function cn({val:n,max:e,min:t}){return e<t?n:Math.min(Math.max(n,isNaN(t)?n:t),isNaN(e)?n:e)}function np(n){const{transform:e}=window.getComputedStyle(n);return e.split(/[(,)]/).slice(1,-1).map(t=>parseFloat(t))}function rp(n){let e=1,t=1;return n.forEach(r=>{const s=np(r);s.length===6&&(e/=s[0],t/=s[3])}),{widthMultiplier:e,heightMultiplier:t}}function sp(n,e){switch(n){case"start":return 0;case"center":case"center-odd":return(e-1)/2;case"center-even":return(e-2)/2;case"end":return e-1;default:return 0}}function ip(n,e,t){switch(n){case"start":return 0;case"center":case"center-odd":return(t-e)/2;case"center-even":return t/2-e;case"end":return t-e;default:return 0}}function Ei({slideSize:n,viewportSize:e,align:t,itemsToShow:r}){return r!==void 0?sp(t,r):n!==void 0&&e!==void 0?ip(t,n,e):0}function jo(n="",e={}){return Object.entries(e).reduce((t,[r,s])=>t.replace(`{${r}}`,String(s)),n)}function Vo({val:n,max:e,min:t=0}){const r=e-t+1;return((n-t)%r+r)%r+t}function Ai(n,e=0){let t=!1,r=0,s=null;function o(...a){if(t)return;t=!0;const c=()=>{s=requestAnimationFrame(i=>{i-r>e?(r=i,n(...a),t=!1):c()})};c()}return o.cancel=()=>{s&&(cancelAnimationFrame(s),s=null,t=!1)},o}function vs(n,e="px"){if(!(n==null||n===""))return typeof n=="number"||parseFloat(n).toString()===n?`${n}${e}`:n}const ap=l.defineComponent({name:"CarouselAria",setup(){const n=l.inject(Fn);return n?()=>l.h("div",{class:["carousel__liveregion","carousel__sr-only"],"aria-live":"polite","aria-atomic":"true"},jo(n.config.i18n.itemXofY,{currentSlide:n.currentSlide+1,slidesCount:n.slidesCount})):()=>""}});function op(n){let e=!1;const t={x:0,y:0},r=l.reactive({x:0,y:0}),s=l.ref(!1),{isSliding:o}=n,a=l.computed(()=>typeof o=="boolean"?o:o.value),c=d=>{var h;const f=d.target.tagName;if(["INPUT","TEXTAREA","SELECT"].includes(f)||a.value||(e=d.type==="touchstart",e&&d.touches.length>1))return;if(!e&&(d.preventDefault(),d.button!==0))return;t.x=e?d.touches[0].clientX:d.clientX,t.y=e?d.touches[0].clientY:d.clientY;const g=e?"touchmove":"mousemove",p=e?"touchend":"mouseup";document.addEventListener(g,i,{passive:!1}),document.addEventListener(p,u,{passive:!0}),(h=n.onDragStart)===null||h===void 0||h.call(n)},i=Ai(d=>{var h;if(e&&d.touches.length>1)return;s.value=!0;const f=e?d.touches[0].clientX:d.clientX,g=e?d.touches[0].clientY:d.clientY;r.x=f-t.x,r.y=g-t.y,(h=n.onDrag)===null||h===void 0||h.call(n,{deltaX:r.x,deltaY:r.y,isTouch:e})}),u=()=>{var d;i.cancel();const h=Math.abs(r.x)+Math.abs(r.y);!e&&h>10&&window.addEventListener("click",p=>{p.preventDefault(),p.stopPropagation()},{once:!0,capture:!0}),(d=n.onDragEnd)===null||d===void 0||d.call(n),r.x=0,r.y=0,s.value=!1;const f=e?"touchmove":"mousemove",g=e?"touchend":"mouseup";document.removeEventListener(f,i),document.removeEventListener(g,u)};return{dragged:r,isDragging:s,handleDragStart:c}}function lp(){const n=l.ref(!1);return{isHover:n,handleMouseEnter:()=>{n.value=!0},handleMouseLeave:()=>{n.value=!1}}}function cp(n){const{isVertical:e,isSliding:t,config:r}=n,s=l.computed(()=>typeof e=="boolean"?e:e.value),o=l.computed(()=>typeof t=="boolean"?t:t.value);return{handleScroll:c=>{var i,u;if(c.preventDefault(),!r.mouseWheel||o.value)return;const d=typeof r.mouseWheel=="object"&&(i=r.mouseWheel.threshold)!==null&&i!==void 0?i:Mo,h=Math.abs(c.deltaY)>d?c.deltaY:0,f=Math.abs(c.deltaX)>d?c.deltaX:0;if(h===0&&f===0)return;const g=s.value?h:f,v=(g!==0?g:s.value?f:h)>0;(u=n.onWheel)===null||u===void 0||u.call(n,{deltaX:f,deltaY:h,isScrollingForward:v})}}}const up={autoplay:{default:nt.autoplay,type:Number},breakpoints:{default:nt.breakpoints,type:Object},breakpointMode:{default:nt.breakpointMode,validator(n){return Lo.includes(n)}},clamp:{type:Boolean},dir:{type:String,default:nt.dir,validator(n,e){if(!Bo.includes(n))return!1;const t=n in ms?ms[n]:n;return["ttb","btt"].includes(t)&&(!e.height||e.height==="auto")&&console.warn(`[vue3-carousel]: The dir "${n}" is not supported with height "auto".`),!0}},enabled:{default:nt.enabled,type:Boolean},gap:{default:nt.gap,type:Number},height:{default:nt.height,type:[Number,String]},i18n:{default:nt.i18n,type:Object},ignoreAnimations:{default:!1,type:[Array,Boolean,String]},itemsToScroll:{default:nt.itemsToScroll,type:Number},itemsToShow:{default:nt.itemsToShow,type:[Number,String]},modelValue:{default:void 0,type:Number},mouseDrag:{default:nt.mouseDrag,type:[Boolean,Object]},mouseWheel:{default:nt.mouseWheel,type:[Boolean,Object]},mouseScrollThreshold:{default:nt.mouseScrollThreshold,type:Number},pauseAutoplayOnHover:{default:nt.pauseAutoplayOnHover,type:Boolean},preventExcessiveDragging:{default:!1,type:Boolean,validator(n,e){return n&&e.wrapAround&&console.warn('[vue3-carousel]: "preventExcessiveDragging" cannot be used with wrapAround. The setting will be ignored.'),!0}},slideEffect:{type:String,default:nt.slideEffect,validator(n){return Po.includes(n)}},snapAlign:{default:nt.snapAlign,validator(n){return Fo.includes(n)}},touchDrag:{default:nt.touchDrag,type:[Boolean,Object]},transition:{default:nt.transition,type:Number},wrapAround:{default:nt.wrapAround,type:Boolean}},dp=l.defineComponent({name:"VueCarousel",props:up,emits:["before-init","drag","init","loop","slide-end","slide-registered","slide-start","slide-unregistered","update:modelValue","wheel"],setup(n,{slots:e,emit:t,expose:r}){var s;const o=Zh(t),a=o.getSlides(),c=l.computed(()=>a.length),i=l.ref(null),u=l.ref(null),d=l.ref(0),h=l.computed(()=>Object.assign(Object.assign(Object.assign({},nt),ep(n,["breakpoints","modelValue"])),{i18n:Object.assign(Object.assign({},nt.i18n),n.i18n)})),f=l.shallowReactive(Object.assign({},h.value)),g=l.ref((s=n.modelValue)!==null&&s!==void 0?s:0),p=l.ref(g.value);l.watch(g,pe=>p.value=pe);const v=l.ref(0),b=l.computed(()=>Math.ceil((c.value-1)/2)),S=l.computed(()=>c.value-1),T=l.computed(()=>0);let R=null,F=null,M=null;const z=l.computed(()=>d.value+f.gap),X=l.computed(()=>{const pe=f.dir||"ltr";return pe in ms?ms[pe]:pe}),H=l.computed(()=>["rtl","btt"].includes(X.value)),re=l.computed(()=>["ttb","btt"].includes(X.value)),G=l.computed(()=>f.itemsToShow==="auto"),E=l.computed(()=>re.value?"height":"width");function P(){var pe;if(!he.value)return;const be=(h.value.breakpointMode==="carousel"?(pe=i.value)===null||pe===void 0?void 0:pe.getBoundingClientRect().width:typeof window<"u"?window.innerWidth:0)||0,Ce=Object.keys(n.breakpoints||{}).map(Ie=>Number(Ie)).sort((Ie,$e)=>+$e-+Ie),ke={};Ce.some(Ie=>be>=Ie?(Object.assign(ke,n.breakpoints[Ie]),ke.i18n&&Object.assign(ke.i18n,h.value.i18n,n.breakpoints[Ie].i18n),!0):!1),Object.assign(f,h.value,ke),G.value||(f.itemsToShow=cn({val:Number(f.itemsToShow),max:n.clamp?c.value:1/0,min:1}))}const O=Ai(()=>{P(),te(),J()}),_=l.shallowReactive(new Set),j=l.ref([]);function V({widthMultiplier:pe,heightMultiplier:be}){j.value=a.map(Ce=>{var ke;const Ie=(ke=Ce.exposed)===null||ke===void 0?void 0:ke.getBoundingRect();return{width:Ie.width*pe,height:Ie.height*be}})}const K=l.ref({width:0,height:0});function q({widthMultiplier:pe,heightMultiplier:be}){var Ce;const ke=((Ce=u.value)===null||Ce===void 0?void 0:Ce.getBoundingClientRect())||{width:0,height:0};K.value={width:ke.width*pe,height:ke.height*be}}function J(){if(!u.value)return;const pe=rp(_);if(q(pe),V(pe),G.value)d.value=Qh(j.value.map(be=>be[E.value]));else{const be=Number(f.itemsToShow),Ce=(be-1)*f.gap;d.value=(K.value[E.value]-Ce)/be}}function te(){!f.wrapAround&&c.value>0&&(g.value=cn({val:g.value,max:S.value,min:T.value}))}const me=l.computed(()=>typeof n.ignoreAnimations=="string"?n.ignoreAnimations.split(","):Array.isArray(n.ignoreAnimations)?n.ignoreAnimations:n.ignoreAnimations?!1:[]);l.watchEffect(()=>te()),l.watchEffect(()=>{J()});let ge;const ve=pe=>{const be=pe.target;if(!(!(be!=null&&be.contains(i.value))||Array.isArray(me.value)&&me.value.includes(pe.animationName))&&(_.add(be),!ge)){const Ce=()=>{ge=requestAnimationFrame(()=>{J(),Ce()})};Ce()}},xe=pe=>{const be=pe.target;be&&_.delete(be),ge&&_.size===0&&(cancelAnimationFrame(ge),J())},he=l.ref(!1);typeof document<"u"&&l.watchEffect(()=>{he.value&&me.value!==!1?(document.addEventListener("animationstart",ve),document.addEventListener("animationend",xe)):(document.removeEventListener("animationstart",ve),document.removeEventListener("animationend",xe))}),l.onMounted(()=>{he.value=!0,P(),y(),i.value&&(M=new ResizeObserver(O),M.observe(i.value)),t("init")}),l.onBeforeUnmount(()=>{he.value=!1,o.cleanup(),F&&clearTimeout(F),ge&&cancelAnimationFrame(ge),R&&clearInterval(R),M&&(M.disconnect(),M=null),typeof document<"u"&&A(),i.value&&(i.value.removeEventListener("transitionend",J),i.value.removeEventListener("animationiteration",J))});const{isHover:Oe,handleMouseEnter:ye,handleMouseLeave:N}=lp(),I=Ai(pe=>{if(!pe.ctrlKey)switch(pe.key){case"ArrowLeft":case"ArrowUp":re.value===pe.key.endsWith("Up")&&(H.value?ae(!0):fe(!0));break;case"ArrowRight":case"ArrowDown":re.value===pe.key.endsWith("Down")&&(H.value?fe(!0):ae(!0));break}},200),A=()=>{document.removeEventListener("keydown",I)},C=()=>{document.addEventListener("keydown",I)};function y(){!f.autoplay||f.autoplay<=0||(R=setInterval(()=>{f.pauseAutoplayOnHover&&Oe.value||ae()},f.autoplay))}function x(){k(),y()}function k(){R&&(clearInterval(R),R=null)}const B=l.ref(!1),U=({deltaX:pe,deltaY:be,isTouch:Ce})=>{var ke,Ie,$e,Ke;t("drag",{deltaX:pe,deltaY:be});const et=Ce?typeof f.touchDrag=="object"&&(Ie=(ke=f.touchDrag)===null||ke===void 0?void 0:ke.threshold)!==null&&Ie!==void 0?Ie:gs:typeof f.mouseDrag=="object"&&(Ke=($e=f.mouseDrag)===null||$e===void 0?void 0:$e.threshold)!==null&&Ke!==void 0?Ke:gs,dt=tp({isVertical:re.value,isReversed:H.value,dragged:{x:pe,y:be},effectiveSlideSize:z.value,threshold:et});dt!==0&&(p.value=f.wrapAround?g.value+dt:cn({val:g.value+dt,max:S.value,min:T.value}))},$=()=>Ae(p.value),{dragged:W,isDragging:Z,handleDragStart:Y}=op({isSliding:B,onDrag:U,onDragEnd:$}),Q=({deltaX:pe,deltaY:be,isScrollingForward:Ce})=>{t("wheel",{deltaX:pe,deltaY:be}),Ce?H.value?fe():ae():H.value?ae():fe()},{handleScroll:ne}=cp({isVertical:re,isSliding:B,config:f,onWheel:Q});function ae(pe=!1){Ae(g.value+f.itemsToScroll,pe)}function fe(pe=!1){Ae(g.value-f.itemsToScroll,pe)}function Ae(pe,be=!1){if(!be&&B.value)return;let Ce=pe,ke=pe;v.value=g.value,f.wrapAround?ke=Vo({val:Ce,max:S.value,min:T.value}):Ce=cn({val:Ce,max:S.value,min:T.value}),t("slide-start",{slidingToIndex:pe,currentSlideIndex:g.value,prevSlideIndex:v.value,slidesCount:c.value}),k(),B.value=!0,g.value=Ce,ke!==Ce&&Ge.pause(),t("update:modelValue",ke),F=setTimeout(()=>{f.wrapAround&&ke!==Ce&&(Ge.resume(),g.value=ke,t("loop",{currentSlideIndex:g.value,slidingToIndex:pe})),t("slide-end",{currentSlideIndex:g.value,prevSlideIndex:v.value,slidesCount:c.value}),B.value=!1,x()},f.transition)}function De(){P(),te(),J(),x()}l.watch(()=>[h.value,n.breakpoints],()=>P(),{deep:!0}),l.watch(()=>n.autoplay,()=>x());const Ge=l.watch(()=>n.modelValue,pe=>{pe!==g.value&&Ae(Number(pe),!0)});t("before-init");const je=l.computed(()=>{if(!f.wrapAround)return{before:0,after:0};if(G.value)return{before:a.length,after:a.length};const pe=Number(f.itemsToShow),be=Math.ceil(pe+(f.itemsToScroll-1)),Ce=be-p.value,ke=be-(c.value-(p.value+1));return{before:Math.max(0,Ce),after:Math.max(0,ke)}}),Be=l.computed(()=>je.value.before?G.value?j.value.slice(-1*je.value.before).reduce((pe,be)=>pe+be[E.value]+f.gap,0)*-1:je.value.before*z.value*-1:0),Ve=l.computed(()=>{var pe;if(G.value){const be=(g.value%a.length+a.length)%a.length;return Ei({slideSize:(pe=j.value[be])===null||pe===void 0?void 0:pe[E.value],viewportSize:K.value[E.value],align:f.snapAlign})}return Ei({align:f.snapAlign,itemsToShow:+f.itemsToShow})}),rt=l.computed(()=>{let pe=0;if(G.value){if(g.value<0?pe=j.value.slice(g.value).reduce((be,Ce)=>be+Ce[E.value]+f.gap,0)*-1:pe=j.value.slice(0,g.value).reduce((be,Ce)=>be+Ce[E.value]+f.gap,0),pe-=Ve.value,!f.wrapAround){const be=j.value.reduce((Ce,ke)=>Ce+ke[E.value]+f.gap,0)-K.value[E.value]-f.gap;pe=cn({val:pe,max:be,min:0})}}else{let be=g.value-Ve.value;f.wrapAround||(be=cn({val:be,max:c.value-+f.itemsToShow,min:0})),pe=be*z.value}return pe*(H.value?1:-1)}),it=l.computed(()=>{var pe,be;if(!G.value){const Ie=g.value-Ve.value;return f.wrapAround?{min:Math.floor(Ie),max:Math.ceil(Ie+Number(f.itemsToShow)-1)}:{min:Math.floor(cn({val:Ie,max:c.value-Number(f.itemsToShow),min:0})),max:Math.ceil(cn({val:Ie+Number(f.itemsToShow)-1,max:c.value-1,min:0}))}}let Ce=0;{let Ie=0,$e=0-je.value.before;const Ke=Math.abs(rt.value+Be.value);for(;Ie<=Ke;){const et=($e%a.length+a.length)%a.length;Ie+=((pe=j.value[et])===null||pe===void 0?void 0:pe[E.value])+f.gap,$e++}Ce=$e-1}let ke=0;{let Ie=Ce,$e=0;for(Ie<0?$e=j.value.slice(0,Ie).reduce((Ke,et)=>Ke+et[E.value]+f.gap,0)-Math.abs(rt.value+Be.value):$e=j.value.slice(0,Ie).reduce((Ke,et)=>Ke+et[E.value]+f.gap,0)-Math.abs(rt.value);$e<K.value[E.value];){const Ke=(Ie%a.length+a.length)%a.length;$e+=((be=j.value[Ke])===null||be===void 0?void 0:be[E.value])+f.gap,Ie++}ke=Ie-1}return{min:Math.floor(Ce),max:Math.ceil(ke)}}),Dt=l.computed(()=>{if(f.slideEffect==="fade")return;const pe=re.value?"Y":"X",be=re.value?W.y:W.x;let Ce=rt.value+be;if(!f.wrapAround&&f.preventExcessiveDragging){let ke=0;G.value?ke=j.value.reduce((Ke,et)=>Ke+et[E.value],0):ke=(c.value-Number(f.itemsToShow))*z.value;const Ie=H.value?0:-1*ke,$e=H.value?ke:0;Ce=cn({val:Ce,min:Ie,max:$e})}return`translate${pe}(${Ce}px)`}),bt=l.computed(()=>({"--vc-carousel-height":vs(f.height),"--vc-cloned-offset":vs(Be.value),"--vc-slide-gap":vs(f.gap),"--vc-transition-duration":B.value?vs(f.transition,"ms"):void 0})),_e={slideTo:Ae,next:ae,prev:fe},Pe=l.reactive({activeSlide:p,config:f,currentSlide:g,isSliding:B,isVertical:re,maxSlide:S,minSlide:T,nav:_e,normalizedDir:X,slideRegistry:o,slideSize:d,slides:a,slidesCount:c,viewport:u,visibleRange:it});l.provide(Fn,Pe);const We=l.reactive({config:f,currentSlide:g,maxSlide:S,middleSlide:b,minSlide:T,slideSize:d,slidesCount:c});return r(l.reactive(Object.assign({data:We,next:ae,prev:fe,restartCarousel:De,slideTo:Ae,updateBreakpointsConfig:P,updateSlideSize:J,updateSlidesData:te},l.toRefs(Pe)))),()=>{var pe;const be=e.default||e.slides,Ce=(be==null?void 0:be(We))||[],{before:ke,after:Ie}=je.value,$e=Do({slides:a,position:"before",toShow:ke}),Ke=Do({slides:a,position:"after",toShow:Ie}),et=[...$e,...Ce,...Ke];if(!f.enabled||!et.length)return l.h("section",{ref:i,class:["carousel","is-disabled"]},et);const dt=((pe=e.addons)===null||pe===void 0?void 0:pe.call(e,We))||[],ft=l.h("ol",{class:"carousel__track",onMousedownCapture:f.mouseDrag?Y:null,onTouchstartPassiveCapture:f.touchDrag?Y:null,onWheel:f.mouseWheel?ne:null,style:{transform:Dt.value}},et),It=l.h("div",{class:"carousel__viewport",ref:u},ft);return l.h("section",{ref:i,class:["carousel",`is-${X.value}`,`is-effect-${f.slideEffect}`,{"is-dragging":Z.value,"is-hover":Oe.value,"is-sliding":B.value,"is-vertical":re.value}],dir:X.value,style:bt.value,"aria-label":f.i18n.ariaGallery,tabindex:"0",onBlur:A,onFocus:C,onMouseenter:ye,onMouseleave:N},[It,dt,l.h(ap)])}}});var wi;(function(n){n.arrowDown="arrowDown",n.arrowLeft="arrowLeft",n.arrowRight="arrowRight",n.arrowUp="arrowUp"})(wi||(wi={}));const $o=n=>`icon${n.charAt(0).toUpperCase()+n.slice(1)}`,fp={arrowDown:"M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z",arrowLeft:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z",arrowRight:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z",arrowUp:"M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6-6 6z"};function hp(n){return n in wi}const _o=n=>n&&hp(n),qo=l.defineComponent({props:{name:{type:String,required:!0,validator:_o},title:{type:String,default:n=>n.name?nt.i18n[$o(n.name)]:""}},setup(n){const e=l.inject(Fn,null);return()=>{const t=n.name;if(!t||!_o(t))return;const r=fp[t],s=l.h("path",{d:r}),o=(e==null?void 0:e.config.i18n[$o(t)])||n.title,a=l.h("title",o);return l.h("svg",{class:"carousel__icon",viewBox:"0 0 24 24",role:"img","aria-label":o},[a,s])}}});l.defineComponent({name:"CarouselNavigation",inheritAttrs:!1,props:{carousel:{type:Object}},setup(n,{slots:e,attrs:t}){let r=l.inject(Fn,null);const{next:s,prev:o}=e,a=()=>({btt:"arrowDown",ltr:"arrowLeft",rtl:"arrowRight",ttb:"arrowUp"})[r.normalizedDir],c=()=>({btt:"arrowUp",ltr:"arrowRight",rtl:"arrowLeft",ttb:"arrowDown"})[r.normalizedDir],i=l.computed(()=>!r.config.wrapAround&&r.currentSlide<=r.minSlide),u=l.computed(()=>!r.config.wrapAround&&r.currentSlide>=r.maxSlide);return()=>{if(n.carousel&&(r=n.carousel),!r)return console.warn("[vue3-carousel]: A carousel component must be provided for the navigation component to display"),"";const{i18n:d}=r.config,h=l.h("button",Object.assign(Object.assign({type:"button",disabled:i.value,"aria-label":d.ariaPreviousSlide,title:d.ariaPreviousSlide,onClick:r.nav.prev},t),{class:["carousel__prev",{"carousel__prev--disabled":i.value},t.class]}),(o==null?void 0:o())||l.h(qo,{name:a()})),f=l.h("button",Object.assign(Object.assign({type:"button",disabled:u.value,"aria-label":d.ariaNextSlide,title:d.ariaNextSlide,onClick:r.nav.next},t),{class:["carousel__next",{"carousel__next--disabled":u.value},t.class]}),(s==null?void 0:s())||l.h(qo,{name:c()}));return[h,f]}}}),l.defineComponent({name:"CarouselPagination",props:{disableOnClick:{type:Boolean},paginateByItemsToShow:{type:Boolean},carousel:{type:Object}},setup(n){let e=l.inject(Fn,null);const t=l.computed(()=>e.config.itemsToShow),r=l.computed(()=>Ei({align:e.config.snapAlign,itemsToShow:t.value})),s=l.computed(()=>n.paginateByItemsToShow&&t.value>1),o=l.computed(()=>Math.ceil((e.activeSlide-r.value)/t.value)),a=l.computed(()=>Math.ceil(e.slidesCount/t.value)),c=i=>Vo(s.value?{val:o.value,max:a.value-1,min:0}:{val:e.activeSlide,max:e.maxSlide,min:e.minSlide})===i;return()=>{var i,u;if(n.carousel&&(e=n.carousel),!e)return console.warn("[vue3-carousel]: A carousel component must be provided for the pagination component to display"),"";const d=[];for(let h=s.value?0:e.minSlide;h<=(s.value?a.value-1:e.maxSlide);h++){const f=jo(e.config.i18n[s.value?"ariaNavigateToPage":"ariaNavigateToSlide"],{slideNumber:h+1}),g=c(h),p=l.h("button",{type:"button",class:{"carousel__pagination-button":!0,"carousel__pagination-button--active":g},"aria-label":f,"aria-pressed":g,"aria-controls":(u=(i=e.slides[h])===null||i===void 0?void 0:i.exposed)===null||u===void 0?void 0:u.id,title:f,disabled:n.disableOnClick,onClick:()=>e.nav.slideTo(s.value?Math.floor(h*+e.config.itemsToShow+r.value):h)}),v=l.h("li",{class:"carousel__pagination-item",key:h},p);d.push(v)}return l.h("ol",{class:"carousel__pagination"},d)}}});const pp=l.defineComponent({name:"CarouselSlide",props:{id:{type:String,default:n=>n.isClone?void 0:l.useId()},index:{type:Number,default:void 0},isClone:{type:Boolean,default:!1}},setup(n,{attrs:e,slots:t,expose:r}){const s=l.inject(Fn);if(l.provide(Fn,void 0),!s)return()=>"";const o=l.ref(n.index),a=p=>{o.value=p},c=l.getCurrentInstance(),i=()=>{const p=c.vnode.el;return p?p.getBoundingClientRect():{width:0,height:0}};r({id:n.id,setIndex:a,getBoundingRect:i});const u=l.computed(()=>o.value===s.activeSlide),d=l.computed(()=>o.value===s.activeSlide-1),h=l.computed(()=>o.value===s.activeSlide+1),f=l.computed(()=>o.value>=s.visibleRange.min&&o.value<=s.visibleRange.max),g=l.computed(()=>{if(s.config.itemsToShow==="auto")return;const p=s.config.itemsToShow,v=s.config.gap>0&&p>1?`calc(${100/p}% - ${s.config.gap*(p-1)/p}px)`:`${100/p}%`;return s.isVertical?{height:v}:{width:v}});return s.slideRegistry.registerSlide(c,n.index),l.onUnmounted(()=>{s.slideRegistry.unregisterSlide(c)}),n.isClone&&(l.onMounted(()=>{Uo(c.vnode)}),l.onUpdated(()=>{Uo(c.vnode)})),()=>{var p,v;return s.config.enabled?l.h("li",{style:[e.style,Object.assign({},g.value)],class:{carousel__slide:!0,"carousel__slide--clone":n.isClone,"carousel__slide--visible":f.value,"carousel__slide--active":u.value,"carousel__slide--prev":d.value,"carousel__slide--next":h.value,"carousel__slide--sliding":s.isSliding},onFocusin:()=>{s.viewport&&(s.viewport.scrollLeft=0),s.nav.slideTo(o.value)},id:n.isClone?void 0:n.id,"aria-hidden":n.isClone||void 0},(v=t.default)===null||v===void 0?void 0:v.call(t,{currentIndex:o.value,isActive:u.value,isClone:n.isClone,isPrev:d.value,isNext:h.value,isSliding:s.isSliding,isVisible:f.value})):(p=t.default)===null||p===void 0?void 0:p.call(t)}}}),mp={class:"flex h-[872px] w-full bg-navy-800 relative rounded-[48px] z-10"},gp={class:"lg:p-8 p-4 flex relative w-full"},vp={class:"lg:w-1/2 lg:pl-8 lg:pr-16 pl-4 pr-8 flex flex-col lg:mt-[218px] mt-[100px] absolute top-0 left-5 lg:relative"},yp={class:"gap-2 flex z-10 mb-4"},bp=["onClick"],xp={class:"lg:text-[48px] text-[40px] font-semibold text-white mb-3 lg:leading-normal leading-[48px]"},Ep=["innerHTML"],Ap={class:"flex gap-3 mt-8 flex-col lg:flex-row"},wp=["href","target"],Sp=["href","target"],Tp=["src"],Np={key:1,class:"rounded-[40px] h-[674px] max-w-[882px] lg:w-1/2 w-full object-cover",src:ko},Op=Sr({__name:"VSliderPresenter",props:{component:{required:!0,type:Object}},setup(n){const e=n,t=l.ref(0),s=l.ref(e.component).value.data.filter(a=>a.public),o=a=>a.startsWith("http")?a:`//${a}`;return(a,c)=>(l.openBlock(),l.createElementBlock("div",mp,[l.createVNode(l.unref(dp),{"items-to-show":1,modelValue:t.value,"onUpdate:modelValue":c[0]||(c[0]=i=>t.value=i),autoplay:5e3,class:"carousel w-full","wrap-around":!0},{default:l.withCtx(()=>[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(l.unref(s),(i,u)=>(l.openBlock(),l.createBlock(l.unref(pp),{key:u},{default:l.withCtx(()=>[l.createElementVNode("div",gp,[l.createElementVNode("div",vp,[l.createElementVNode("div",yp,[l.unref(s).length>1?(l.openBlock(!0),l.createElementBlock(l.Fragment,{key:0},l.renderList(l.unref(s),(d,h)=>(l.openBlock(),l.createElementBlock("a",{onClick:f=>t.value=h,class:l.normalizeClass(["w-4 h-1 bg-navy-400 rounded-full cursor-pointer",{"!w-12 !bg-white":t.value===h}])},null,10,bp))),256)):l.createCommentVNode("",!0)]),l.createElementVNode("h3",xp,l.toDisplayString(i==null?void 0:i.title),1),l.createElementVNode("p",{class:"text-lg font-normal text-navy-50",innerHTML:i==null?void 0:i.description},null,8,Ep),l.createElementVNode("div",Ap,[i.secondary_button.show?(l.openBlock(),l.createElementBlock("a",{key:0,class:"text-white text-base font-semibold border border-white px-6 py-2 rounded-full hover:bg-navy-800 hover:opacity-60",href:o(i.secondary_button.url),target:i.secondary_button.open_in_new_tab?"_blank":""},[l.createElementVNode("span",null,l.toDisplayString(i.secondary_button.label),1)],8,wp)):l.createCommentVNode("",!0),i.primary_button.show?(l.openBlock(),l.createElementBlock("a",{key:1,class:"flex items-center gap-2 text-navy-800 bg-white text-base font-semibold border border-white px-6 py-2 rounded-full hover:bg-navy-50",href:o(i.primary_button.url),target:i.primary_button.open_in_new_tab?"_blank":""},[l.createTextVNode(l.toDisplayString(i.primary_button.label)+" ",1),l.createVNode(l.unref(xi),{class:"w-5 h-5"})],8,Sp)):l.createCommentVNode("",!0)])]),i.featured_image?(l.openBlock(),l.createElementBlock("img",{key:0,src:i.featured_image,alt:"Slide Image",class:"rounded-[40px] h-[674px] max-w-[882px] lg:w-1/2 w-full object-cover"},null,8,Tp)):(l.openBlock(),l.createElementBlock("img",Np))])]),_:2},1024))),128))]),_:1},8,["modelValue"])]))}},[["__scopeId","data-v-960591f8"]]),Cp=["target","href"],zo={__name:"VLinkPresenter",props:{component:{required:!0,type:Object}},setup(n){const e=n,t=l.ref(e.component),r=t.value.type==="link_grid";return(s,o)=>(l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(["flex justify-center h-[136px] w-full relative rounded-b-[48px] bg-navy-600 -mt-12 gap-[60px]",{"bg-transparent !justify-start flex-wrap mt-8 !h-auto !gap-4":r}])},[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(t.value.data,a=>(l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(["flex justify-center",{"!block":r}])},[l.createElementVNode("a",{target:a.open_in_new_tab?"_blank":"",href:a.url.startsWith("http")?a.url:`//${a.url}`,class:l.normalizeClass(["text-white flex gap-1.5 items-center cursor-pointer mt-12 text-sm font-semibold hover:text-gray-300",{"bg-white border border-gray-300 rounded-full !text-gray-700 px-4 h-[44px] w-max !mt-0 !text-base hover:bg-gray-100":r}])},[l.createElementVNode("span",null,l.toDisplayString(a.title),1),l.createVNode(l.unref(xi),{class:"w-5 h-5"})],10,Cp)],2))),256))],2))}},Rp={class:"rounded-[48px] max-w-[1392px] 1xl:max-w-[1824px] mx-auto w-full"},Ip={class:"md:px-[90px]"},kp={__name:"HeroHeader",props:{section:{required:!0,type:Object}},setup(n){const e=n,t=l.ref(e.section),r=l.ref({sliders:l.markRaw(Op),links:l.markRaw(zo)}),s=o=>o!=null&&o.type?r.value[o==null?void 0:o.type]:"";return(o,a)=>(l.openBlock(),l.createElementBlock("div",Rp,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(t.value.components,(c,i)=>(l.openBlock(),l.createElementBlock("div",Ip,[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(s(c)),{key:i,component:c},null,8,["component"]))]))),256))]))}},Ho={__name:"VHeaderPresenter",props:{component:{required:!0,type:Object}},setup(n){const e=n,t=l.ref(e.component);return(r,s)=>{var o,a,c,i,u,d,h;return l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(["flex flex-col",{"items-center":(o=t.value)==null?void 0:o.center}])},[(a=t.value)!=null&&a.title?(l.openBlock(),l.createElementBlock("p",{key:0,class:l.normalizeClass(["pb-4 text-4xl font-semibold text-white",{"!text-gray-900":(c=t.value)==null?void 0:c.dark}])},l.toDisplayString((i=t.value)==null?void 0:i.title),3)):l.createCommentVNode("",!0),(u=t.value)!=null&&u.supporting_text?(l.openBlock(),l.createElementBlock("p",{key:1,class:l.normalizeClass(["text-navy-25 text-xl font-normal leading-[30px]",{"!text-navy-900":(d=t.value)==null?void 0:d.dark}])},l.toDisplayString((h=t.value)==null?void 0:h.supporting_text),3)):l.createCommentVNode("",!0)],2)}}},Lp={xmlns:"http://www.w3.org/2000/svg",width:"341",height:"336",fill:"none"};function Bp(n,e){return l.openBlock(),l.createElementBlock("svg",Lp,e[0]||(e[0]=[l.createElementVNode("path",{fill:"#78BDB5","fill-rule":"evenodd",d:"M198.752-176.557c89.734-37.714 189.985-82.087 275.305-35.237 89.35 49.062 132.236 156.992 132.061 258.925-.154 90.488-63.843 162.678-132.881 221.174-60.961 51.652-136.137 83.393-215.483 73.993-79.145-9.376-146.313-56.631-191.593-122.217C17.667 149.839-17.165 64.238 9.896-16.715c27.51-82.293 108.864-126.223 188.856-159.842","clip-rule":"evenodd"},null,-1)]))}const Pp={render:Bp},Fp={class:"w-full bg-navy-800 py-10 relative lg:h-[336px]"},Mp={class:"max-w-[1400px] mx-auto w-full"},Dp={class:"max-md:mx-[30px] max-1xl:mx-[120px] 1xl:mx-0 relative z-10"},Up={class:"w-full md:w-3/4"},jp={__name:"QuickLinks",props:{section:{required:!0,type:Object}},setup(n){const e=n,t=l.ref(e.section),r=l.ref({header:l.markRaw(Ho),link_grid:l.markRaw(zo)}),s=o=>o!=null&&o.type?r.value[o==null?void 0:o.type]:"";return(o,a)=>(l.openBlock(),l.createElementBlock("div",Fp,[l.createElementVNode("div",Mp,[l.createElementVNode("div",Dp,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(t.value.components,(c,i)=>(l.openBlock(),l.createElementBlock("div",Up,[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(s(c)),{key:i,component:c},null,8,["component"]))]))),256))])]),l.createVNode(l.unref(Pp),{class:"absolute right-0 top-0"})]))}},Vp={class:"flex flex-col md:flex-row justify-center gap-4 items-stretch mt-6"},$p={class:"flex-1 w-full md:w-1/2 flex flex-col"},_p=["onClick"],qp={class:"py-4 pl-4 md:pl-6"},zp=["innerHTML"],Hp={class:"flex-1 w-full md:w-1/2 bg-transparent flex flex-col items-center"},Gp=["src"],Wp={key:1,class:"rounded-[20px] md:rounded-[40px] object-contain max-h-[200px] md:max-h-[387px] w-full",src:ko,alt:"No Image Available"},Kp=["target","href"],Xp=Sr({__name:"VVerticalTabPresenter",props:{component:{required:!0,type:Object}},setup(n){const e=n,t=l.ref(e.component),r=l.ref(null),s=l.ref(t.value.data.filter(a=>a.public)),o=a=>{r.value=a};return l.onMounted(()=>{s.value.length>0&&o(s.value[0])}),(a,c)=>(l.openBlock(),l.createElementBlock("div",Vp,[l.createElementVNode("div",$p,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(s.value,i=>(l.openBlock(),l.createElementBlock("div",{key:i.title},[l.createElementVNode("div",{class:l.normalizeClass(["flex-col flex gap-1.5 cursor-pointer mb-4 group",{"border-l-4 border-brand-600":r.value===i,"border-l-4 border-gray-100":r.value!==i}]),onClick:l.withModifiers(u=>o(i),["prevent"])},[l.createElementVNode("div",qp,[l.createElementVNode("p",{class:l.normalizeClass([{"text-gray-900":r.value===i,"text-gray-600":r.value!==i},"text-lg md:text-xl font-semibold mb-2 group-hover:text-gray-900"])},l.toDisplayString(i.title),3),l.createElementVNode("p",{class:l.normalizeClass([{"text-gray-700":r.value===i,"text-gray-400":r.value!==i},"text-sm md:text-md font-normal group-hover:text-gray-700"]),innerHTML:i.description},null,10,zp)])],10,_p)]))),128))]),l.createElementVNode("div",Hp,[l.createVNode(l.Transition,{name:"fade",mode:"out-in"},{default:l.withCtx(()=>{var i,u,d,h,f,g,p,v,b,S;return[(l.openBlock(),l.createElementBlock("div",{class:"flex flex-col items-center",key:(i=r.value)==null?void 0:i.title},[(u=r.value)!=null&&u.featured_image?(l.openBlock(),l.createElementBlock("img",{key:0,src:r.value.featured_image,alt:"Selected Item Image",class:"rounded-[20px] md:rounded-[40px] object-contain max-h-[200px] md:max-h-[387px] w-full"},null,8,Gp)):(l.openBlock(),l.createElementBlock("img",Wp)),(h=(d=r.value)==null?void 0:d.primary_button)!=null&&h.show?(l.openBlock(),l.createElementBlock("a",{key:2,class:"text-sm md:text-md font-semibold text-brand-600 flex items-center gap-2 mt-4",target:(g=(f=r.value)==null?void 0:f.primary_button)!=null&&g.is_new_tab?"_blank":"",href:(v=(p=r.value)==null?void 0:p.primary_button)!=null&&v.url.startsWith("http")?r.value.primary_button.url:`//${r.value.primary_button.url}`},[l.createTextVNode(l.toDisplayString(((S=(b=r.value)==null?void 0:b.primary_button)==null?void 0:S.label)??"N/A")+" ",1),l.createVNode(l.unref(xi),{class:"w-4 h-4 md:w-5 md:h-5"})],8,Kp)):l.createCommentVNode("",!0)]))]}),_:1})])]))}},[["__scopeId","data-v-e5b200c8"]]),Yp={class:"max-w-[1400px] mx-auto w-full"},Zp={class:"max-md:mx-[30px] max-1xl:mx-[120px] 1xl:mx-0 bg-navy-25 rounded-[48px] p-16"},Qp={__name:"VTabs",props:{section:{required:!0,type:Object}},setup(n){const e=n,t=l.ref(e.section),r=l.ref({header:l.markRaw(Ho),vertical_tabs:l.markRaw(Xp)}),s=o=>o!=null&&o.type?r.value[o==null?void 0:o.type]:"";return(o,a)=>(l.openBlock(),l.createElementBlock("div",Yp,[l.createElementVNode("div",Zp,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(t.value.components,(c,i)=>(l.openBlock(),l.createElementBlock("div",null,[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(s(c)),{key:i,component:c},null,8,["component"]))]))),256))])]))}},Jp=["href"],em=["src"],tm={key:1,class:"text-sm"},nm={__name:"LogoCloud",props:{section:{required:!0,type:Object}},setup(n){const e=n,t=l.ref(e.section),r=t.value.display==="horizontal",s=o=>o==="small"?"h-[32px]":o==="medium"?"h-[40px]":"h-[32px]";return(o,a)=>(l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(["w-full relative",{"bg-gray-50":!r}])},[l.createElementVNode("div",{class:l.normalizeClass(["1xl:max-w-[1824px] mx-auto relative flex justify-center items-center",{"py-8":r,"flex-col py-6":!r}])},[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(t.value.components,(c,i)=>(l.openBlock(),l.createElementBlock("div",null,[(c==null?void 0:c.type)==="header"&&(c!=null&&c.supporting_text)?(l.openBlock(),l.createElementBlock("p",{key:0,class:l.normalizeClass(["mr-[48px] text-base text-gray-600 font-medium",{"mb-6":!r}])},l.toDisplayString(c==null?void 0:c.supporting_text),3)):l.createCommentVNode("",!0),(c==null?void 0:c.type)==="logos"?(l.openBlock(),l.createElementBlock("div",{key:1,class:l.normalizeClass(["flex flex-wrap justify-center",{"gap-6":r,"gap-12":!r}])},[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(c.data,u=>(l.openBlock(),l.createElementBlock("a",{href:u==null?void 0:u.url,title:"Brand"},[u!=null&&u.logo?(l.openBlock(),l.createElementBlock("img",{key:0,src:u==null?void 0:u.logo,class:l.normalizeClass(s(c==null?void 0:c.height)),alt:"Brand Logo"},null,10,em)):(l.openBlock(),l.createElementBlock("span",tm,"No photo"))],8,Jp))),256))],2)):l.createCommentVNode("",!0)]))),256))],2)],2))}},rm={class:"page-render"},sm={__name:"PageRender",props:{page:{required:!0,type:Object}},setup(n){const e=l.ref({header:l.markRaw(kp),quick_links:l.markRaw(jp),tabs:l.markRaw(Qp),logo:l.markRaw(nm)}),t=r=>r!=null&&r.type?e.value[r==null?void 0:r.type]:"";return(r,s)=>(l.openBlock(),l.createElementBlock("div",rm,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(n.page.sections,(o,a)=>(l.openBlock(),l.createElementBlock("div",null,[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(t(o)),{key:a,section:o},null,8,["section"]))]))),256))]))}};var Go=typeof global=="object"&&global&&global.Object===Object&&global,im=typeof self=="object"&&self&&self.Object===Object&&self,Jt=Go||im||Function("return this")(),An=Jt.Symbol,Wo=Object.prototype,am=Wo.hasOwnProperty,om=Wo.toString,Rr=An?An.toStringTag:void 0;function lm(n){var e=am.call(n,Rr),t=n[Rr];try{n[Rr]=void 0;var r=!0}catch{}var s=om.call(n);return r&&(e?n[Rr]=t:delete n[Rr]),s}var cm=Object.prototype,um=cm.toString;function dm(n){return um.call(n)}var fm="[object Null]",hm="[object Undefined]",Ko=An?An.toStringTag:void 0;function Qn(n){return n==null?n===void 0?hm:fm:Ko&&Ko in Object(n)?lm(n):dm(n)}function un(n){return n!=null&&typeof n=="object"}var Mn=Array.isArray;function wn(n){var e=typeof n;return n!=null&&(e=="object"||e=="function")}function Xo(n){return n}var pm="[object AsyncFunction]",mm="[object Function]",gm="[object GeneratorFunction]",vm="[object Proxy]";function Si(n){if(!wn(n))return!1;var e=Qn(n);return e==mm||e==gm||e==pm||e==vm}var Ti=Jt["__core-js_shared__"],Yo=function(){var n=/[^.]+$/.exec(Ti&&Ti.keys&&Ti.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""}();function ym(n){return!!Yo&&Yo in n}var bm=Function.prototype,xm=bm.toString;function Dn(n){if(n!=null){try{return xm.call(n)}catch{}try{return n+""}catch{}}return""}var Em=/[\\^$.*+?()[\]{}|]/g,Am=/^\[object .+?Constructor\]$/,wm=Function.prototype,Sm=Object.prototype,Tm=wm.toString,Nm=Sm.hasOwnProperty,Om=RegExp("^"+Tm.call(Nm).replace(Em,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Cm(n){if(!wn(n)||ym(n))return!1;var e=Si(n)?Om:Am;return e.test(Dn(n))}function Rm(n,e){return n==null?void 0:n[e]}function Un(n,e){var t=Rm(n,e);return Cm(t)?t:void 0}var Ni=Un(Jt,"WeakMap"),Zo=Object.create,Im=function(){function n(){}return function(e){if(!wn(e))return{};if(Zo)return Zo(e);n.prototype=e;var t=new n;return n.prototype=void 0,t}}();function km(n,e,t){switch(t.length){case 0:return n.call(e);case 1:return n.call(e,t[0]);case 2:return n.call(e,t[0],t[1]);case 3:return n.call(e,t[0],t[1],t[2])}return n.apply(e,t)}function Lm(n,e){var t=-1,r=n.length;for(e||(e=Array(r));++t<r;)e[t]=n[t];return e}var Bm=800,Pm=16,Fm=Date.now;function Mm(n){var e=0,t=0;return function(){var r=Fm(),s=Pm-(r-t);if(t=r,s>0){if(++e>=Bm)return arguments[0]}else e=0;return n.apply(void 0,arguments)}}function Dm(n){return function(){return n}}var ys=function(){try{var n=Un(Object,"defineProperty");return n({},"",{}),n}catch{}}(),Um=ys?function(n,e){return ys(n,"toString",{configurable:!0,enumerable:!1,value:Dm(e),writable:!0})}:Xo,jm=Mm(Um);function Vm(n,e){for(var t=-1,r=n==null?0:n.length;++t<r&&e(n[t],t,n)!==!1;);return n}var $m=9007199254740991,_m=/^(?:0|[1-9]\d*)$/;function Qo(n,e){var t=typeof n;return e=e??$m,!!e&&(t=="number"||t!="symbol"&&_m.test(n))&&n>-1&&n%1==0&&n<e}function Oi(n,e,t){e=="__proto__"&&ys?ys(n,e,{configurable:!0,enumerable:!0,value:t,writable:!0}):n[e]=t}function Ir(n,e){return n===e||n!==n&&e!==e}var qm=Object.prototype,zm=qm.hasOwnProperty;function Jo(n,e,t){var r=n[e];(!(zm.call(n,e)&&Ir(r,t))||t===void 0&&!(e in n))&&Oi(n,e,t)}function Hm(n,e,t,r){var s=!t;t||(t={});for(var o=-1,a=e.length;++o<a;){var c=e[o],i=void 0;i===void 0&&(i=n[c]),s?Oi(t,c,i):Jo(t,c,i)}return t}var el=Math.max;function Gm(n,e,t){return e=el(e===void 0?n.length-1:e,0),function(){for(var r=arguments,s=-1,o=el(r.length-e,0),a=Array(o);++s<o;)a[s]=r[e+s];s=-1;for(var c=Array(e+1);++s<e;)c[s]=r[s];return c[e]=t(a),km(n,this,c)}}function Wm(n,e){return jm(Gm(n,e,Xo),n+"")}var Km=9007199254740991;function tl(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=Km}function bs(n){return n!=null&&tl(n.length)&&!Si(n)}function Xm(n,e,t){if(!wn(t))return!1;var r=typeof e;return(r=="number"?bs(t)&&Qo(e,t.length):r=="string"&&e in t)?Ir(t[e],n):!1}function Ym(n){return Wm(function(e,t){var r=-1,s=t.length,o=s>1?t[s-1]:void 0,a=s>2?t[2]:void 0;for(o=n.length>3&&typeof o=="function"?(s--,o):void 0,a&&Xm(t[0],t[1],a)&&(o=s<3?void 0:o,s=1),e=Object(e);++r<s;){var c=t[r];c&&n(e,c,r,o)}return e})}var Zm=Object.prototype;function Ci(n){var e=n&&n.constructor,t=typeof e=="function"&&e.prototype||Zm;return n===t}function Qm(n,e){for(var t=-1,r=Array(n);++t<n;)r[t]=e(t);return r}var Jm="[object Arguments]";function nl(n){return un(n)&&Qn(n)==Jm}var rl=Object.prototype,eg=rl.hasOwnProperty,tg=rl.propertyIsEnumerable,Ri=nl(function(){return arguments}())?nl:function(n){return un(n)&&eg.call(n,"callee")&&!tg.call(n,"callee")};function ng(){return!1}var sl=typeof Ye=="object"&&Ye&&!Ye.nodeType&&Ye,il=sl&&typeof module=="object"&&module&&!module.nodeType&&module,rg=il&&il.exports===sl,al=rg?Jt.Buffer:void 0,sg=al?al.isBuffer:void 0,kr=sg||ng,ig="[object Arguments]",ag="[object Array]",og="[object Boolean]",lg="[object Date]",cg="[object Error]",ug="[object Function]",dg="[object Map]",fg="[object Number]",hg="[object Object]",pg="[object RegExp]",mg="[object Set]",gg="[object String]",vg="[object WeakMap]",yg="[object ArrayBuffer]",bg="[object DataView]",xg="[object Float32Array]",Eg="[object Float64Array]",Ag="[object Int8Array]",wg="[object Int16Array]",Sg="[object Int32Array]",Tg="[object Uint8Array]",Ng="[object Uint8ClampedArray]",Og="[object Uint16Array]",Cg="[object Uint32Array]",Je={};Je[xg]=Je[Eg]=Je[Ag]=Je[wg]=Je[Sg]=Je[Tg]=Je[Ng]=Je[Og]=Je[Cg]=!0,Je[ig]=Je[ag]=Je[yg]=Je[og]=Je[bg]=Je[lg]=Je[cg]=Je[ug]=Je[dg]=Je[fg]=Je[hg]=Je[pg]=Je[mg]=Je[gg]=Je[vg]=!1;function Rg(n){return un(n)&&tl(n.length)&&!!Je[Qn(n)]}function Ii(n){return function(e){return n(e)}}var ol=typeof Ye=="object"&&Ye&&!Ye.nodeType&&Ye,Lr=ol&&typeof module=="object"&&module&&!module.nodeType&&module,Ig=Lr&&Lr.exports===ol,ki=Ig&&Go.process,Jn=function(){try{var n=Lr&&Lr.require&&Lr.require("util").types;return n||ki&&ki.binding&&ki.binding("util")}catch{}}(),ll=Jn&&Jn.isTypedArray,Li=ll?Ii(ll):Rg,kg=Object.prototype,Lg=kg.hasOwnProperty;function cl(n,e){var t=Mn(n),r=!t&&Ri(n),s=!t&&!r&&kr(n),o=!t&&!r&&!s&&Li(n),a=t||r||s||o,c=a?Qm(n.length,String):[],i=c.length;for(var u in n)(e||Lg.call(n,u))&&!(a&&(u=="length"||s&&(u=="offset"||u=="parent")||o&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||Qo(u,i)))&&c.push(u);return c}function ul(n,e){return function(t){return n(e(t))}}var Bg=ul(Object.keys,Object),Pg=Object.prototype,Fg=Pg.hasOwnProperty;function Mg(n){if(!Ci(n))return Bg(n);var e=[];for(var t in Object(n))Fg.call(n,t)&&t!="constructor"&&e.push(t);return e}function Dg(n){return bs(n)?cl(n):Mg(n)}function Ug(n){var e=[];if(n!=null)for(var t in Object(n))e.push(t);return e}var jg=Object.prototype,Vg=jg.hasOwnProperty;function $g(n){if(!wn(n))return Ug(n);var e=Ci(n),t=[];for(var r in n)r=="constructor"&&(e||!Vg.call(n,r))||t.push(r);return t}function dl(n){return bs(n)?cl(n,!0):$g(n)}var Br=Un(Object,"create");function _g(){this.__data__=Br?Br(null):{},this.size=0}function qg(n){var e=this.has(n)&&delete this.__data__[n];return this.size-=e?1:0,e}var zg="__lodash_hash_undefined__",Hg=Object.prototype,Gg=Hg.hasOwnProperty;function Wg(n){var e=this.__data__;if(Br){var t=e[n];return t===zg?void 0:t}return Gg.call(e,n)?e[n]:void 0}var Kg=Object.prototype,Xg=Kg.hasOwnProperty;function Yg(n){var e=this.__data__;return Br?e[n]!==void 0:Xg.call(e,n)}var Zg="__lodash_hash_undefined__";function Qg(n,e){var t=this.__data__;return this.size+=this.has(n)?0:1,t[n]=Br&&e===void 0?Zg:e,this}function jn(n){var e=-1,t=n==null?0:n.length;for(this.clear();++e<t;){var r=n[e];this.set(r[0],r[1])}}jn.prototype.clear=_g,jn.prototype.delete=qg,jn.prototype.get=Wg,jn.prototype.has=Yg,jn.prototype.set=Qg;function Jg(){this.__data__=[],this.size=0}function xs(n,e){for(var t=n.length;t--;)if(Ir(n[t][0],e))return t;return-1}var e0=Array.prototype,t0=e0.splice;function n0(n){var e=this.__data__,t=xs(e,n);if(t<0)return!1;var r=e.length-1;return t==r?e.pop():t0.call(e,t,1),--this.size,!0}function r0(n){var e=this.__data__,t=xs(e,n);return t<0?void 0:e[t][1]}function s0(n){return xs(this.__data__,n)>-1}function i0(n,e){var t=this.__data__,r=xs(t,n);return r<0?(++this.size,t.push([n,e])):t[r][1]=e,this}function dn(n){var e=-1,t=n==null?0:n.length;for(this.clear();++e<t;){var r=n[e];this.set(r[0],r[1])}}dn.prototype.clear=Jg,dn.prototype.delete=n0,dn.prototype.get=r0,dn.prototype.has=s0,dn.prototype.set=i0;var Pr=Un(Jt,"Map");function a0(){this.size=0,this.__data__={hash:new jn,map:new(Pr||dn),string:new jn}}function o0(n){var e=typeof n;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?n!=="__proto__":n===null}function Es(n,e){var t=n.__data__;return o0(e)?t[typeof e=="string"?"string":"hash"]:t.map}function l0(n){var e=Es(this,n).delete(n);return this.size-=e?1:0,e}function c0(n){return Es(this,n).get(n)}function u0(n){return Es(this,n).has(n)}function d0(n,e){var t=Es(this,n),r=t.size;return t.set(n,e),this.size+=t.size==r?0:1,this}function Vn(n){var e=-1,t=n==null?0:n.length;for(this.clear();++e<t;){var r=n[e];this.set(r[0],r[1])}}Vn.prototype.clear=a0,Vn.prototype.delete=l0,Vn.prototype.get=c0,Vn.prototype.has=u0,Vn.prototype.set=d0;function f0(n,e){for(var t=-1,r=e.length,s=n.length;++t<r;)n[s+t]=e[t];return n}var fl=ul(Object.getPrototypeOf,Object),h0="[object Object]",p0=Function.prototype,m0=Object.prototype,hl=p0.toString,g0=m0.hasOwnProperty,v0=hl.call(Object);function y0(n){if(!un(n)||Qn(n)!=h0)return!1;var e=fl(n);if(e===null)return!0;var t=g0.call(e,"constructor")&&e.constructor;return typeof t=="function"&&t instanceof t&&hl.call(t)==v0}function b0(){this.__data__=new dn,this.size=0}function x0(n){var e=this.__data__,t=e.delete(n);return this.size=e.size,t}function E0(n){return this.__data__.get(n)}function A0(n){return this.__data__.has(n)}var w0=200;function S0(n,e){var t=this.__data__;if(t instanceof dn){var r=t.__data__;if(!Pr||r.length<w0-1)return r.push([n,e]),this.size=++t.size,this;t=this.__data__=new Vn(r)}return t.set(n,e),this.size=t.size,this}function en(n){var e=this.__data__=new dn(n);this.size=e.size}en.prototype.clear=b0,en.prototype.delete=x0,en.prototype.get=E0,en.prototype.has=A0,en.prototype.set=S0;var pl=typeof Ye=="object"&&Ye&&!Ye.nodeType&&Ye,ml=pl&&typeof module=="object"&&module&&!module.nodeType&&module,T0=ml&&ml.exports===pl,gl=T0?Jt.Buffer:void 0,vl=gl?gl.allocUnsafe:void 0;function yl(n,e){if(e)return n.slice();var t=n.length,r=vl?vl(t):new n.constructor(t);return n.copy(r),r}function N0(n,e){for(var t=-1,r=n==null?0:n.length,s=0,o=[];++t<r;){var a=n[t];e(a,t,n)&&(o[s++]=a)}return o}function O0(){return[]}var C0=Object.prototype,R0=C0.propertyIsEnumerable,bl=Object.getOwnPropertySymbols,I0=bl?function(n){return n==null?[]:(n=Object(n),N0(bl(n),function(e){return R0.call(n,e)}))}:O0;function k0(n,e,t){var r=e(n);return Mn(n)?r:f0(r,t(n))}function Bi(n){return k0(n,Dg,I0)}var Pi=Un(Jt,"DataView"),Fi=Un(Jt,"Promise"),Mi=Un(Jt,"Set"),xl="[object Map]",L0="[object Object]",El="[object Promise]",Al="[object Set]",wl="[object WeakMap]",Sl="[object DataView]",B0=Dn(Pi),P0=Dn(Pr),F0=Dn(Fi),M0=Dn(Mi),D0=Dn(Ni),Vt=Qn;(Pi&&Vt(new Pi(new ArrayBuffer(1)))!=Sl||Pr&&Vt(new Pr)!=xl||Fi&&Vt(Fi.resolve())!=El||Mi&&Vt(new Mi)!=Al||Ni&&Vt(new Ni)!=wl)&&(Vt=function(n){var e=Qn(n),t=e==L0?n.constructor:void 0,r=t?Dn(t):"";if(r)switch(r){case B0:return Sl;case P0:return xl;case F0:return El;case M0:return Al;case D0:return wl}return e});var U0=Object.prototype,j0=U0.hasOwnProperty;function V0(n){var e=n.length,t=new n.constructor(e);return e&&typeof n[0]=="string"&&j0.call(n,"index")&&(t.index=n.index,t.input=n.input),t}var As=Jt.Uint8Array;function Di(n){var e=new n.constructor(n.byteLength);return new As(e).set(new As(n)),e}function $0(n,e){var t=Di(n.buffer);return new n.constructor(t,n.byteOffset,n.byteLength)}var _0=/\w*$/;function q0(n){var e=new n.constructor(n.source,_0.exec(n));return e.lastIndex=n.lastIndex,e}var Tl=An?An.prototype:void 0,Nl=Tl?Tl.valueOf:void 0;function z0(n){return Nl?Object(Nl.call(n)):{}}function Ol(n,e){var t=e?Di(n.buffer):n.buffer;return new n.constructor(t,n.byteOffset,n.length)}var H0="[object Boolean]",G0="[object Date]",W0="[object Map]",K0="[object Number]",X0="[object RegExp]",Y0="[object Set]",Z0="[object String]",Q0="[object Symbol]",J0="[object ArrayBuffer]",e1="[object DataView]",t1="[object Float32Array]",n1="[object Float64Array]",r1="[object Int8Array]",s1="[object Int16Array]",i1="[object Int32Array]",a1="[object Uint8Array]",o1="[object Uint8ClampedArray]",l1="[object Uint16Array]",c1="[object Uint32Array]";function u1(n,e,t){var r=n.constructor;switch(e){case J0:return Di(n);case H0:case G0:return new r(+n);case e1:return $0(n);case t1:case n1:case r1:case s1:case i1:case a1:case o1:case l1:case c1:return Ol(n,t);case W0:return new r;case K0:case Z0:return new r(n);case X0:return q0(n);case Y0:return new r;case Q0:return z0(n)}}function Cl(n){return typeof n.constructor=="function"&&!Ci(n)?Im(fl(n)):{}}var d1="[object Map]";function f1(n){return un(n)&&Vt(n)==d1}var Rl=Jn&&Jn.isMap,h1=Rl?Ii(Rl):f1,p1="[object Set]";function m1(n){return un(n)&&Vt(n)==p1}var Il=Jn&&Jn.isSet,g1=Il?Ii(Il):m1,v1=1,kl="[object Arguments]",y1="[object Array]",b1="[object Boolean]",x1="[object Date]",E1="[object Error]",Ll="[object Function]",A1="[object GeneratorFunction]",w1="[object Map]",S1="[object Number]",Bl="[object Object]",T1="[object RegExp]",N1="[object Set]",O1="[object String]",C1="[object Symbol]",R1="[object WeakMap]",I1="[object ArrayBuffer]",k1="[object DataView]",L1="[object Float32Array]",B1="[object Float64Array]",P1="[object Int8Array]",F1="[object Int16Array]",M1="[object Int32Array]",D1="[object Uint8Array]",U1="[object Uint8ClampedArray]",j1="[object Uint16Array]",V1="[object Uint32Array]",Ze={};Ze[kl]=Ze[y1]=Ze[I1]=Ze[k1]=Ze[b1]=Ze[x1]=Ze[L1]=Ze[B1]=Ze[P1]=Ze[F1]=Ze[M1]=Ze[w1]=Ze[S1]=Ze[Bl]=Ze[T1]=Ze[N1]=Ze[O1]=Ze[C1]=Ze[D1]=Ze[U1]=Ze[j1]=Ze[V1]=!0,Ze[E1]=Ze[Ll]=Ze[R1]=!1;function ws(n,e,t,r,s,o){var a,c=e&v1;if(a!==void 0)return a;if(!wn(n))return n;var i=Mn(n);if(i)a=V0(n);else{var u=Vt(n),d=u==Ll||u==A1;if(kr(n))return yl(n,c);if(u==Bl||u==kl||d&&!s)a=d?{}:Cl(n);else{if(!Ze[u])return s?n:{};a=u1(n,u,c)}}o||(o=new en);var h=o.get(n);if(h)return h;o.set(n,a),g1(n)?n.forEach(function(p){a.add(ws(p,e,t,p,n,o))}):h1(n)&&n.forEach(function(p,v){a.set(v,ws(p,e,t,v,n,o))});var f=Bi,g=i?void 0:f(n);return Vm(g||n,function(p,v){g&&(v=p,p=n[v]),Jo(a,v,ws(p,e,t,v,n,o))}),a}var $1=1,_1=4;function er(n){return ws(n,$1|_1)}var q1="__lodash_hash_undefined__";function z1(n){return this.__data__.set(n,q1),this}function H1(n){return this.__data__.has(n)}function Ss(n){var e=-1,t=n==null?0:n.length;for(this.__data__=new Vn;++e<t;)this.add(n[e])}Ss.prototype.add=Ss.prototype.push=z1,Ss.prototype.has=H1;function G1(n,e){for(var t=-1,r=n==null?0:n.length;++t<r;)if(e(n[t],t,n))return!0;return!1}function W1(n,e){return n.has(e)}var K1=1,X1=2;function Pl(n,e,t,r,s,o){var a=t&K1,c=n.length,i=e.length;if(c!=i&&!(a&&i>c))return!1;var u=o.get(n),d=o.get(e);if(u&&d)return u==e&&d==n;var h=-1,f=!0,g=t&X1?new Ss:void 0;for(o.set(n,e),o.set(e,n);++h<c;){var p=n[h],v=e[h];if(r)var b=a?r(v,p,h,e,n,o):r(p,v,h,n,e,o);if(b!==void 0){if(b)continue;f=!1;break}if(g){if(!G1(e,function(S,T){if(!W1(g,T)&&(p===S||s(p,S,t,r,o)))return g.push(T)})){f=!1;break}}else if(!(p===v||s(p,v,t,r,o))){f=!1;break}}return o.delete(n),o.delete(e),f}function Y1(n){var e=-1,t=Array(n.size);return n.forEach(function(r,s){t[++e]=[s,r]}),t}function Z1(n){var e=-1,t=Array(n.size);return n.forEach(function(r){t[++e]=r}),t}var Q1=1,J1=2,ev="[object Boolean]",tv="[object Date]",nv="[object Error]",rv="[object Map]",sv="[object Number]",iv="[object RegExp]",av="[object Set]",ov="[object String]",lv="[object Symbol]",cv="[object ArrayBuffer]",uv="[object DataView]",Fl=An?An.prototype:void 0,Ui=Fl?Fl.valueOf:void 0;function dv(n,e,t,r,s,o,a){switch(t){case uv:if(n.byteLength!=e.byteLength||n.byteOffset!=e.byteOffset)return!1;n=n.buffer,e=e.buffer;case cv:return!(n.byteLength!=e.byteLength||!o(new As(n),new As(e)));case ev:case tv:case sv:return Ir(+n,+e);case nv:return n.name==e.name&&n.message==e.message;case iv:case ov:return n==e+"";case rv:var c=Y1;case av:var i=r&Q1;if(c||(c=Z1),n.size!=e.size&&!i)return!1;var u=a.get(n);if(u)return u==e;r|=J1,a.set(n,e);var d=Pl(c(n),c(e),r,s,o,a);return a.delete(n),d;case lv:if(Ui)return Ui.call(n)==Ui.call(e)}return!1}var fv=1,hv=Object.prototype,pv=hv.hasOwnProperty;function mv(n,e,t,r,s,o){var a=t&fv,c=Bi(n),i=c.length,u=Bi(e),d=u.length;if(i!=d&&!a)return!1;for(var h=i;h--;){var f=c[h];if(!(a?f in e:pv.call(e,f)))return!1}var g=o.get(n),p=o.get(e);if(g&&p)return g==e&&p==n;var v=!0;o.set(n,e),o.set(e,n);for(var b=a;++h<i;){f=c[h];var S=n[f],T=e[f];if(r)var R=a?r(T,S,f,e,n,o):r(S,T,f,n,e,o);if(!(R===void 0?S===T||s(S,T,t,r,o):R)){v=!1;break}b||(b=f=="constructor")}if(v&&!b){var F=n.constructor,M=e.constructor;F!=M&&"constructor"in n&&"constructor"in e&&!(typeof F=="function"&&F instanceof F&&typeof M=="function"&&M instanceof M)&&(v=!1)}return o.delete(n),o.delete(e),v}var gv=1,Ml="[object Arguments]",Dl="[object Array]",Ts="[object Object]",vv=Object.prototype,Ul=vv.hasOwnProperty;function yv(n,e,t,r,s,o){var a=Mn(n),c=Mn(e),i=a?Dl:Vt(n),u=c?Dl:Vt(e);i=i==Ml?Ts:i,u=u==Ml?Ts:u;var d=i==Ts,h=u==Ts,f=i==u;if(f&&kr(n)){if(!kr(e))return!1;a=!0,d=!1}if(f&&!d)return o||(o=new en),a||Li(n)?Pl(n,e,t,r,s,o):dv(n,e,i,t,r,s,o);if(!(t&gv)){var g=d&&Ul.call(n,"__wrapped__"),p=h&&Ul.call(e,"__wrapped__");if(g||p){var v=g?n.value():n,b=p?e.value():e;return o||(o=new en),s(v,b,t,r,o)}}return f?(o||(o=new en),mv(n,e,t,r,s,o)):!1}function jl(n,e,t,r,s){return n===e?!0:n==null||e==null||!un(n)&&!un(e)?n!==n&&e!==e:yv(n,e,t,r,jl,s)}function bv(n){return function(e,t,r){for(var s=-1,o=Object(e),a=r(e),c=a.length;c--;){var i=a[++s];if(t(o[i],i,o)===!1)break}return e}}var xv=bv();function ji(n,e,t){(t!==void 0&&!Ir(n[e],t)||t===void 0&&!(e in n))&&Oi(n,e,t)}function Ev(n){return un(n)&&bs(n)}function Vi(n,e){if(!(e==="constructor"&&typeof n[e]=="function")&&e!="__proto__")return n[e]}function Av(n){return Hm(n,dl(n))}function wv(n,e,t,r,s,o,a){var c=Vi(n,t),i=Vi(e,t),u=a.get(i);if(u){ji(n,t,u);return}var d=o?o(c,i,t+"",n,e,a):void 0,h=d===void 0;if(h){var f=Mn(i),g=!f&&kr(i),p=!f&&!g&&Li(i);d=i,f||g||p?Mn(c)?d=c:Ev(c)?d=Lm(c):g?(h=!1,d=yl(i,!0)):p?(h=!1,d=Ol(i,!0)):d=[]:y0(i)||Ri(i)?(d=c,Ri(c)?d=Av(c):(!wn(c)||Si(c))&&(d=Cl(i))):h=!1}h&&(a.set(i,d),s(d,i,r,o,a),a.delete(i)),ji(n,t,d)}function Vl(n,e,t,r,s){n!==e&&xv(e,function(o,a){if(s||(s=new en),wn(o))wv(n,e,a,t,Vl,r,s);else{var c=r?r(Vi(n,a),o,a+"",n,e,s):void 0;c===void 0&&(c=o),ji(n,a,c)}},dl)}function $i(n,e){return jl(n,e)}var Sn=Ym(function(n,e,t){Vl(n,e,t)}),Ne=(n=>(n[n.TYPE=3]="TYPE",n[n.LEVEL=12]="LEVEL",n[n.ATTRIBUTE=13]="ATTRIBUTE",n[n.BLOT=14]="BLOT",n[n.INLINE=7]="INLINE",n[n.BLOCK=11]="BLOCK",n[n.BLOCK_BLOT=10]="BLOCK_BLOT",n[n.INLINE_BLOT=6]="INLINE_BLOT",n[n.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",n[n.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",n[n.ANY=15]="ANY",n))(Ne||{});class tn{constructor(e,t,r={}){this.attrName=e,this.keyName=t;const s=Ne.TYPE&Ne.ATTRIBUTE;this.scope=r.scope!=null?r.scope&Ne.LEVEL|s:Ne.ATTRIBUTE,r.whitelist!=null&&(this.whitelist=r.whitelist)}static keys(e){return Array.from(e.attributes).map(t=>t.name)}add(e,t){return this.canAdd(e,t)?(e.setAttribute(this.keyName,t),!0):!1}canAdd(e,t){return this.whitelist==null?!0:typeof t=="string"?this.whitelist.indexOf(t.replace(/["']/g,""))>-1:this.whitelist.indexOf(t)>-1}remove(e){e.removeAttribute(this.keyName)}value(e){const t=e.getAttribute(this.keyName);return this.canAdd(e,t)&&t?t:""}}class tr extends Error{constructor(e){e="[Parchment] "+e,super(e),this.message=e,this.name=this.constructor.name}}const $l=class Ua{constructor(){this.attributes={},this.classes={},this.tags={},this.types={}}static find(e,t=!1){if(e==null)return null;if(this.blots.has(e))return this.blots.get(e)||null;if(t){let r=null;try{r=e.parentNode}catch{return null}return this.find(r,t)}return null}create(e,t,r){const s=this.query(t);if(s==null)throw new tr(`Unable to create ${t} blot`);const o=s,a=t instanceof Node||t.nodeType===Node.TEXT_NODE?t:o.create(r),c=new o(e,a,r);return Ua.blots.set(c.domNode,c),c}find(e,t=!1){return Ua.find(e,t)}query(e,t=Ne.ANY){let r;return typeof e=="string"?r=this.types[e]||this.attributes[e]:e instanceof Text||e.nodeType===Node.TEXT_NODE?r=this.types.text:typeof e=="number"?e&Ne.LEVEL&Ne.BLOCK?r=this.types.block:e&Ne.LEVEL&Ne.INLINE&&(r=this.types.inline):e instanceof Element&&((e.getAttribute("class")||"").split(/\s+/).some(s=>(r=this.classes[s],!!r)),r=r||this.tags[e.tagName]),r==null?null:"scope"in r&&t&Ne.LEVEL&r.scope&&t&Ne.TYPE&r.scope?r:null}register(...e){return e.map(t=>{const r="blotName"in t,s="attrName"in t;if(!r&&!s)throw new tr("Invalid definition");if(r&&t.blotName==="abstract")throw new tr("Cannot register abstract class");const o=r?t.blotName:s?t.attrName:void 0;return this.types[o]=t,s?typeof t.keyName=="string"&&(this.attributes[t.keyName]=t):r&&(t.className&&(this.classes[t.className]=t),t.tagName&&(Array.isArray(t.tagName)?t.tagName=t.tagName.map(a=>a.toUpperCase()):t.tagName=t.tagName.toUpperCase(),(Array.isArray(t.tagName)?t.tagName:[t.tagName]).forEach(a=>{(this.tags[a]==null||t.className==null)&&(this.tags[a]=t)}))),t})}};$l.blots=new WeakMap;let nr=$l;function _l(n,e){return(n.getAttribute("class")||"").split(/\s+/).filter(t=>t.indexOf(`${e}-`)===0)}class Sv extends tn{static keys(e){return(e.getAttribute("class")||"").split(/\s+/).map(t=>t.split("-").slice(0,-1).join("-"))}add(e,t){return this.canAdd(e,t)?(this.remove(e),e.classList.add(`${this.keyName}-${t}`),!0):!1}remove(e){_l(e,this.keyName).forEach(t=>{e.classList.remove(t)}),e.classList.length===0&&e.removeAttribute("class")}value(e){const t=(_l(e,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(e,t)?t:""}}const $t=Sv;function _i(n){const e=n.split("-"),t=e.slice(1).map(r=>r[0].toUpperCase()+r.slice(1)).join("");return e[0]+t}class Tv extends tn{static keys(e){return(e.getAttribute("style")||"").split(";").map(t=>t.split(":")[0].trim())}add(e,t){return this.canAdd(e,t)?(e.style[_i(this.keyName)]=t,!0):!1}remove(e){e.style[_i(this.keyName)]="",e.getAttribute("style")||e.removeAttribute("style")}value(e){const t=e.style[_i(this.keyName)];return this.canAdd(e,t)?t:""}}const Tn=Tv;class Nv{constructor(e){this.attributes={},this.domNode=e,this.build()}attribute(e,t){t?e.add(this.domNode,t)&&(e.value(this.domNode)!=null?this.attributes[e.attrName]=e:delete this.attributes[e.attrName]):(e.remove(this.domNode),delete this.attributes[e.attrName])}build(){this.attributes={};const e=nr.find(this.domNode);if(e==null)return;const t=tn.keys(this.domNode),r=$t.keys(this.domNode),s=Tn.keys(this.domNode);t.concat(r).concat(s).forEach(o=>{const a=e.scroll.query(o,Ne.ATTRIBUTE);a instanceof tn&&(this.attributes[a.attrName]=a)})}copy(e){Object.keys(this.attributes).forEach(t=>{const r=this.attributes[t].value(this.domNode);e.format(t,r)})}move(e){this.copy(e),Object.keys(this.attributes).forEach(t=>{this.attributes[t].remove(this.domNode)}),this.attributes={}}values(){return Object.keys(this.attributes).reduce((e,t)=>(e[t]=this.attributes[t].value(this.domNode),e),{})}}const Ns=Nv,ql=class{constructor(e,t){this.scroll=e,this.domNode=t,nr.blots.set(t,this),this.prev=null,this.next=null}static create(e){if(this.tagName==null)throw new tr("Blot definition missing tagName");let t,r;return Array.isArray(this.tagName)?(typeof e=="string"?(r=e.toUpperCase(),parseInt(r,10).toString()===r&&(r=parseInt(r,10))):typeof e=="number"&&(r=e),typeof r=="number"?t=document.createElement(this.tagName[r-1]):r&&this.tagName.indexOf(r)>-1?t=document.createElement(r):t=document.createElement(this.tagName[0])):t=document.createElement(this.tagName),this.className&&t.classList.add(this.className),t}get statics(){return this.constructor}attach(){}clone(){const e=this.domNode.cloneNode(!1);return this.scroll.create(e)}detach(){this.parent!=null&&this.parent.removeChild(this),nr.blots.delete(this.domNode)}deleteAt(e,t){this.isolate(e,t).remove()}formatAt(e,t,r,s){const o=this.isolate(e,t);if(this.scroll.query(r,Ne.BLOT)!=null&&s)o.wrap(r,s);else if(this.scroll.query(r,Ne.ATTRIBUTE)!=null){const a=this.scroll.create(this.statics.scope);o.wrap(a),a.format(r,s)}}insertAt(e,t,r){const s=r==null?this.scroll.create("text",t):this.scroll.create(t,r),o=this.split(e);this.parent.insertBefore(s,o||void 0)}isolate(e,t){const r=this.split(e);if(r==null)throw new Error("Attempt to isolate at end");return r.split(t),r}length(){return 1}offset(e=this.parent){return this.parent==null||this===e?0:this.parent.children.offset(this)+this.parent.offset(e)}optimize(e){this.statics.requiredContainer&&!(this.parent instanceof this.statics.requiredContainer)&&this.wrap(this.statics.requiredContainer.blotName)}remove(){this.domNode.parentNode!=null&&this.domNode.parentNode.removeChild(this.domNode),this.detach()}replaceWith(e,t){const r=typeof e=="string"?this.scroll.create(e,t):e;return this.parent!=null&&(this.parent.insertBefore(r,this.next||void 0),this.remove()),r}split(e,t){return e===0?this:this.next}update(e,t){}wrap(e,t){const r=typeof e=="string"?this.scroll.create(e,t):e;if(this.parent!=null&&this.parent.insertBefore(r,this.next||void 0),typeof r.appendChild!="function")throw new tr(`Cannot wrap ${e}`);return r.appendChild(this),r}};ql.blotName="abstract";let zl=ql;const Hl=class extends zl{static value(e){return!0}index(e,t){return this.domNode===e||this.domNode.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(t,1):-1}position(e,t){let r=Array.from(this.parent.domNode.childNodes).indexOf(this.domNode);return e>0&&(r+=1),[this.parent.domNode,r]}value(){return{[this.statics.blotName]:this.statics.value(this.domNode)||!0}}};Hl.scope=Ne.INLINE_BLOT;const vt=Hl;class Ov{constructor(){this.head=null,this.tail=null,this.length=0}append(...e){if(this.insertBefore(e[0],null),e.length>1){const t=e.slice(1);this.append(...t)}}at(e){const t=this.iterator();let r=t();for(;r&&e>0;)e-=1,r=t();return r}contains(e){const t=this.iterator();let r=t();for(;r;){if(r===e)return!0;r=t()}return!1}indexOf(e){const t=this.iterator();let r=t(),s=0;for(;r;){if(r===e)return s;s+=1,r=t()}return-1}insertBefore(e,t){e!=null&&(this.remove(e),e.next=t,t!=null?(e.prev=t.prev,t.prev!=null&&(t.prev.next=e),t.prev=e,t===this.head&&(this.head=e)):this.tail!=null?(this.tail.next=e,e.prev=this.tail,this.tail=e):(e.prev=null,this.head=this.tail=e),this.length+=1)}offset(e){let t=0,r=this.head;for(;r!=null;){if(r===e)return t;t+=r.length(),r=r.next}return-1}remove(e){this.contains(e)&&(e.prev!=null&&(e.prev.next=e.next),e.next!=null&&(e.next.prev=e.prev),e===this.head&&(this.head=e.next),e===this.tail&&(this.tail=e.prev),this.length-=1)}iterator(e=this.head){return()=>{const t=e;return e!=null&&(e=e.next),t}}find(e,t=!1){const r=this.iterator();let s=r();for(;s;){const o=s.length();if(e<o||t&&e===o&&(s.next==null||s.next.length()!==0))return[s,e];e-=o,s=r()}return[null,0]}forEach(e){const t=this.iterator();let r=t();for(;r;)e(r),r=t()}forEachAt(e,t,r){if(t<=0)return;const[s,o]=this.find(e);let a=e-o;const c=this.iterator(s);let i=c();for(;i&&a<e+t;){const u=i.length();e>a?r(i,e-a,Math.min(t,a+u-e)):r(i,0,Math.min(u,e+t-a)),a+=u,i=c()}}map(e){return this.reduce((t,r)=>(t.push(e(r)),t),[])}reduce(e,t){const r=this.iterator();let s=r();for(;s;)t=e(t,s),s=r();return t}}function Gl(n,e){const t=e.find(n);if(t)return t;try{return e.create(n)}catch{const r=e.create(Ne.INLINE);return Array.from(n.childNodes).forEach(s=>{r.domNode.appendChild(s)}),n.parentNode&&n.parentNode.replaceChild(r.domNode,n),r.attach(),r}}const Wl=class kn extends zl{constructor(e,t){super(e,t),this.uiNode=null,this.build()}appendChild(e){this.insertBefore(e)}attach(){super.attach(),this.children.forEach(e=>{e.attach()})}attachUI(e){this.uiNode!=null&&this.uiNode.remove(),this.uiNode=e,kn.uiClass&&this.uiNode.classList.add(kn.uiClass),this.uiNode.setAttribute("contenteditable","false"),this.domNode.insertBefore(this.uiNode,this.domNode.firstChild)}build(){this.children=new Ov,Array.from(this.domNode.childNodes).filter(e=>e!==this.uiNode).reverse().forEach(e=>{try{const t=Gl(e,this.scroll);this.insertBefore(t,this.children.head||void 0)}catch(t){if(t instanceof tr)return;throw t}})}deleteAt(e,t){if(e===0&&t===this.length())return this.remove();this.children.forEachAt(e,t,(r,s,o)=>{r.deleteAt(s,o)})}descendant(e,t=0){const[r,s]=this.children.find(t);return e.blotName==null&&e(r)||e.blotName!=null&&r instanceof e?[r,s]:r instanceof kn?r.descendant(e,s):[null,-1]}descendants(e,t=0,r=Number.MAX_VALUE){let s=[],o=r;return this.children.forEachAt(t,r,(a,c,i)=>{(e.blotName==null&&e(a)||e.blotName!=null&&a instanceof e)&&s.push(a),a instanceof kn&&(s=s.concat(a.descendants(e,c,o))),o-=i}),s}detach(){this.children.forEach(e=>{e.detach()}),super.detach()}enforceAllowedChildren(){let e=!1;this.children.forEach(t=>{e||this.statics.allowedChildren.some(r=>t instanceof r)||(t.statics.scope===Ne.BLOCK_BLOT?(t.next!=null&&this.splitAfter(t),t.prev!=null&&this.splitAfter(t.prev),t.parent.unwrap(),e=!0):t instanceof kn?t.unwrap():t.remove())})}formatAt(e,t,r,s){this.children.forEachAt(e,t,(o,a,c)=>{o.formatAt(a,c,r,s)})}insertAt(e,t,r){const[s,o]=this.children.find(e);if(s)s.insertAt(o,t,r);else{const a=r==null?this.scroll.create("text",t):this.scroll.create(t,r);this.appendChild(a)}}insertBefore(e,t){e.parent!=null&&e.parent.children.remove(e);let r=null;this.children.insertBefore(e,t||null),e.parent=this,t!=null&&(r=t.domNode),(this.domNode.parentNode!==e.domNode||this.domNode.nextSibling!==r)&&this.domNode.insertBefore(e.domNode,r),e.attach()}length(){return this.children.reduce((e,t)=>e+t.length(),0)}moveChildren(e,t){this.children.forEach(r=>{e.insertBefore(r,t)})}optimize(e){if(super.optimize(e),this.enforceAllowedChildren(),this.uiNode!=null&&this.uiNode!==this.domNode.firstChild&&this.domNode.insertBefore(this.uiNode,this.domNode.firstChild),this.children.length===0)if(this.statics.defaultChild!=null){const t=this.scroll.create(this.statics.defaultChild.blotName);this.appendChild(t)}else this.remove()}path(e,t=!1){const[r,s]=this.children.find(e,t),o=[[this,e]];return r instanceof kn?o.concat(r.path(s,t)):(r!=null&&o.push([r,s]),o)}removeChild(e){this.children.remove(e)}replaceWith(e,t){const r=typeof e=="string"?this.scroll.create(e,t):e;return r instanceof kn&&this.moveChildren(r),super.replaceWith(r)}split(e,t=!1){if(!t){if(e===0)return this;if(e===this.length())return this.next}const r=this.clone();return this.parent&&this.parent.insertBefore(r,this.next||void 0),this.children.forEachAt(e,this.length(),(s,o,a)=>{const c=s.split(o,t);c!=null&&r.appendChild(c)}),r}splitAfter(e){const t=this.clone();for(;e.next!=null;)t.appendChild(e.next);return this.parent&&this.parent.insertBefore(t,this.next||void 0),t}unwrap(){this.parent&&this.moveChildren(this.parent,this.next||void 0),this.remove()}update(e,t){const r=[],s=[];e.forEach(o=>{o.target===this.domNode&&o.type==="childList"&&(r.push(...o.addedNodes),s.push(...o.removedNodes))}),s.forEach(o=>{if(o.parentNode!=null&&o.tagName!=="IFRAME"&&document.body.compareDocumentPosition(o)&Node.DOCUMENT_POSITION_CONTAINED_BY)return;const a=this.scroll.find(o);a!=null&&(a.domNode.parentNode==null||a.domNode.parentNode===this.domNode)&&a.detach()}),r.filter(o=>o.parentNode===this.domNode&&o!==this.uiNode).sort((o,a)=>o===a?0:o.compareDocumentPosition(a)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1).forEach(o=>{let a=null;o.nextSibling!=null&&(a=this.scroll.find(o.nextSibling));const c=Gl(o,this.scroll);(c.next!==a||c.next==null)&&(c.parent!=null&&c.parent.removeChild(this),this.insertBefore(c,a||void 0))}),this.enforceAllowedChildren()}};Wl.uiClass="";const _t=Wl;function Cv(n,e){if(Object.keys(n).length!==Object.keys(e).length)return!1;for(const t in n)if(n[t]!==e[t])return!1;return!0}const rr=class wr extends _t{static create(e){return super.create(e)}static formats(e,t){const r=t.query(wr.blotName);if(!(r!=null&&e.tagName===r.tagName)){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return e.tagName.toLowerCase()}}constructor(e,t){super(e,t),this.attributes=new Ns(this.domNode)}format(e,t){if(e===this.statics.blotName&&!t)this.children.forEach(r=>{r instanceof wr||(r=r.wrap(wr.blotName,!0)),this.attributes.copy(r)}),this.unwrap();else{const r=this.scroll.query(e,Ne.INLINE);if(r==null)return;r instanceof tn?this.attributes.attribute(r,t):t&&(e!==this.statics.blotName||this.formats()[e]!==t)&&this.replaceWith(e,t)}}formats(){const e=this.attributes.values(),t=this.statics.formats(this.domNode,this.scroll);return t!=null&&(e[this.statics.blotName]=t),e}formatAt(e,t,r,s){this.formats()[r]!=null||this.scroll.query(r,Ne.ATTRIBUTE)?this.isolate(e,t).format(r,s):super.formatAt(e,t,r,s)}optimize(e){super.optimize(e);const t=this.formats();if(Object.keys(t).length===0)return this.unwrap();const r=this.next;r instanceof wr&&r.prev===this&&Cv(t,r.formats())&&(r.moveChildren(this),r.remove())}replaceWith(e,t){const r=super.replaceWith(e,t);return this.attributes.copy(r),r}update(e,t){super.update(e,t),e.some(r=>r.target===this.domNode&&r.type==="attributes")&&this.attributes.build()}wrap(e,t){const r=super.wrap(e,t);return r instanceof wr&&this.attributes.move(r),r}};rr.allowedChildren=[rr,vt],rr.blotName="inline",rr.scope=Ne.INLINE_BLOT,rr.tagName="SPAN";const qi=rr,sr=class ja extends _t{static create(e){return super.create(e)}static formats(e,t){const r=t.query(ja.blotName);if(!(r!=null&&e.tagName===r.tagName)){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return e.tagName.toLowerCase()}}constructor(e,t){super(e,t),this.attributes=new Ns(this.domNode)}format(e,t){const r=this.scroll.query(e,Ne.BLOCK);r!=null&&(r instanceof tn?this.attributes.attribute(r,t):e===this.statics.blotName&&!t?this.replaceWith(ja.blotName):t&&(e!==this.statics.blotName||this.formats()[e]!==t)&&this.replaceWith(e,t))}formats(){const e=this.attributes.values(),t=this.statics.formats(this.domNode,this.scroll);return t!=null&&(e[this.statics.blotName]=t),e}formatAt(e,t,r,s){this.scroll.query(r,Ne.BLOCK)!=null?this.format(r,s):super.formatAt(e,t,r,s)}insertAt(e,t,r){if(r==null||this.scroll.query(t,Ne.INLINE)!=null)super.insertAt(e,t,r);else{const s=this.split(e);if(s!=null){const o=this.scroll.create(t,r);s.parent.insertBefore(o,s)}else throw new Error("Attempt to insertAt after block boundaries")}}replaceWith(e,t){const r=super.replaceWith(e,t);return this.attributes.copy(r),r}update(e,t){super.update(e,t),e.some(r=>r.target===this.domNode&&r.type==="attributes")&&this.attributes.build()}};sr.blotName="block",sr.scope=Ne.BLOCK_BLOT,sr.tagName="P",sr.allowedChildren=[qi,sr,vt];const Fr=sr,zi=class extends _t{checkMerge(){return this.next!==null&&this.next.statics.blotName===this.statics.blotName}deleteAt(e,t){super.deleteAt(e,t),this.enforceAllowedChildren()}formatAt(e,t,r,s){super.formatAt(e,t,r,s),this.enforceAllowedChildren()}insertAt(e,t,r){super.insertAt(e,t,r),this.enforceAllowedChildren()}optimize(e){super.optimize(e),this.children.length>0&&this.next!=null&&this.checkMerge()&&(this.next.moveChildren(this),this.next.remove())}};zi.blotName="container",zi.scope=Ne.BLOCK_BLOT;const Os=zi;class Rv extends vt{static formats(e,t){}format(e,t){super.formatAt(0,this.length(),e,t)}formatAt(e,t,r,s){e===0&&t===this.length()?this.format(r,s):super.formatAt(e,t,r,s)}formats(){return this.statics.formats(this.domNode,this.scroll)}}const Rt=Rv,Iv={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},kv=100,ir=class extends _t{constructor(e,t){super(null,t),this.registry=e,this.scroll=this,this.build(),this.observer=new MutationObserver(r=>{this.update(r)}),this.observer.observe(this.domNode,Iv),this.attach()}create(e,t){return this.registry.create(this,e,t)}find(e,t=!1){const r=this.registry.find(e,t);return r?r.scroll===this?r:t?this.find(r.scroll.domNode.parentNode,!0):null:null}query(e,t=Ne.ANY){return this.registry.query(e,t)}register(...e){return this.registry.register(...e)}build(){this.scroll!=null&&super.build()}detach(){super.detach(),this.observer.disconnect()}deleteAt(e,t){this.update(),e===0&&t===this.length()?this.children.forEach(r=>{r.remove()}):super.deleteAt(e,t)}formatAt(e,t,r,s){this.update(),super.formatAt(e,t,r,s)}insertAt(e,t,r){this.update(),super.insertAt(e,t,r)}optimize(e=[],t={}){super.optimize(t);const r=t.mutationsMap||new WeakMap;let s=Array.from(this.observer.takeRecords());for(;s.length>0;)e.push(s.pop());const o=(i,u=!0)=>{i==null||i===this||i.domNode.parentNode!=null&&(r.has(i.domNode)||r.set(i.domNode,[]),u&&o(i.parent))},a=i=>{r.has(i.domNode)&&(i instanceof _t&&i.children.forEach(a),r.delete(i.domNode),i.optimize(t))};let c=e;for(let i=0;c.length>0;i+=1){if(i>=kv)throw new Error("[Parchment] Maximum optimize iterations reached");for(c.forEach(u=>{const d=this.find(u.target,!0);d!=null&&(d.domNode===u.target&&(u.type==="childList"?(o(this.find(u.previousSibling,!1)),Array.from(u.addedNodes).forEach(h=>{const f=this.find(h,!1);o(f,!1),f instanceof _t&&f.children.forEach(g=>{o(g,!1)})})):u.type==="attributes"&&o(d.prev)),o(d))}),this.children.forEach(a),c=Array.from(this.observer.takeRecords()),s=c.slice();s.length>0;)e.push(s.pop())}}update(e,t={}){e=e||this.observer.takeRecords();const r=new WeakMap;e.map(s=>{const o=this.find(s.target,!0);return o==null?null:r.has(o.domNode)?(r.get(o.domNode).push(s),null):(r.set(o.domNode,[s]),o)}).forEach(s=>{s!=null&&s!==this&&r.has(s.domNode)&&s.update(r.get(s.domNode)||[],t)}),t.mutationsMap=r,r.has(this.domNode)&&super.update(r.get(this.domNode),t),this.optimize(e,t)}};ir.blotName="scroll",ir.defaultChild=Fr,ir.allowedChildren=[Fr,Os],ir.scope=Ne.BLOCK_BLOT,ir.tagName="DIV";const Hi=ir,Gi=class nu extends vt{static create(e){return document.createTextNode(e)}static value(e){return e.data}constructor(e,t){super(e,t),this.text=this.statics.value(this.domNode)}deleteAt(e,t){this.domNode.data=this.text=this.text.slice(0,e)+this.text.slice(e+t)}index(e,t){return this.domNode===e?t:-1}insertAt(e,t,r){r==null?(this.text=this.text.slice(0,e)+t+this.text.slice(e),this.domNode.data=this.text):super.insertAt(e,t,r)}length(){return this.text.length}optimize(e){super.optimize(e),this.text=this.statics.value(this.domNode),this.text.length===0?this.remove():this.next instanceof nu&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())}position(e,t=!1){return[this.domNode,e]}split(e,t=!1){if(!t){if(e===0)return this;if(e===this.length())return this.next}const r=this.scroll.create(this.domNode.splitText(e));return this.parent.insertBefore(r,this.next||void 0),this.text=this.statics.value(this.domNode),r}update(e,t){e.some(r=>r.type==="characterData"&&r.target===this.domNode)&&(this.text=this.statics.value(this.domNode))}value(){return this.text}};Gi.blotName="text",Gi.scope=Ne.INLINE_BLOT;const Cs=Gi,Lv=Object.freeze(Object.defineProperty({__proto__:null,Attributor:tn,AttributorStore:Ns,BlockBlot:Fr,ClassAttributor:$t,ContainerBlot:Os,EmbedBlot:Rt,InlineBlot:qi,LeafBlot:vt,ParentBlot:_t,Registry:nr,Scope:Ne,ScrollBlot:Hi,StyleAttributor:Tn,TextBlot:Cs},Symbol.toStringTag,{value:"Module"}));var Rs={exports:{}},Wi,Kl;function Bv(){if(Kl)return Wi;Kl=1;var n=-1,e=1,t=0;function r(E,P,O,_,j){if(E===P)return E?[[t,E]]:[];if(O!=null){var V=re(E,P,O);if(V)return V}var K=c(E,P),q=E.substring(0,K);E=E.substring(K),P=P.substring(K),K=u(E,P);var J=E.substring(E.length-K);E=E.substring(0,E.length-K),P=P.substring(0,P.length-K);var te=s(E,P);return q&&te.unshift([t,q]),J&&te.push([t,J]),T(te,j),_&&h(te),te}function s(E,P){var O;if(!E)return[[e,P]];if(!P)return[[n,E]];var _=E.length>P.length?E:P,j=E.length>P.length?P:E,V=_.indexOf(j);if(V!==-1)return O=[[e,_.substring(0,V)],[t,j],[e,_.substring(V+j.length)]],E.length>P.length&&(O[0][0]=O[2][0]=n),O;if(j.length===1)return[[n,E],[e,P]];var K=d(E,P);if(K){var q=K[0],J=K[1],te=K[2],me=K[3],ge=K[4],ve=r(q,te),xe=r(J,me);return ve.concat([[t,ge]],xe)}return o(E,P)}function o(E,P){for(var O=E.length,_=P.length,j=Math.ceil((O+_)/2),V=j,K=2*j,q=new Array(K),J=new Array(K),te=0;te<K;te++)q[te]=-1,J[te]=-1;q[V+1]=0,J[V+1]=0;for(var me=O-_,ge=me%2!==0,ve=0,xe=0,he=0,Oe=0,ye=0;ye<j;ye++){for(var N=-ye+ve;N<=ye-xe;N+=2){var I=V+N,A;N===-ye||N!==ye&&q[I-1]<q[I+1]?A=q[I+1]:A=q[I-1]+1;for(var C=A-N;A<O&&C<_&&E.charAt(A)===P.charAt(C);)A++,C++;if(q[I]=A,A>O)xe+=2;else if(C>_)ve+=2;else if(ge){var y=V+me-N;if(y>=0&&y<K&&J[y]!==-1){var x=O-J[y];if(A>=x)return a(E,P,A,C)}}}for(var k=-ye+he;k<=ye-Oe;k+=2){var y=V+k,x;k===-ye||k!==ye&&J[y-1]<J[y+1]?x=J[y+1]:x=J[y-1]+1;for(var B=x-k;x<O&&B<_&&E.charAt(O-x-1)===P.charAt(_-B-1);)x++,B++;if(J[y]=x,x>O)Oe+=2;else if(B>_)he+=2;else if(!ge){var I=V+me-k;if(I>=0&&I<K&&q[I]!==-1){var A=q[I],C=V+A-I;if(x=O-x,A>=x)return a(E,P,A,C)}}}}return[[n,E],[e,P]]}function a(E,P,O,_){var j=E.substring(0,O),V=P.substring(0,_),K=E.substring(O),q=P.substring(_),J=r(j,V),te=r(K,q);return J.concat(te)}function c(E,P){if(!E||!P||E.charAt(0)!==P.charAt(0))return 0;for(var O=0,_=Math.min(E.length,P.length),j=_,V=0;O<j;)E.substring(V,j)==P.substring(V,j)?(O=j,V=O):_=j,j=Math.floor((_-O)/2+O);return R(E.charCodeAt(j-1))&&j--,j}function i(E,P){var O=E.length,_=P.length;if(O==0||_==0)return 0;O>_?E=E.substring(O-_):O<_&&(P=P.substring(0,O));var j=Math.min(O,_);if(E==P)return j;for(var V=0,K=1;;){var q=E.substring(j-K),J=P.indexOf(q);if(J==-1)return V;K+=J,(J==0||E.substring(j-K)==P.substring(0,K))&&(V=K,K++)}}function u(E,P){if(!E||!P||E.slice(-1)!==P.slice(-1))return 0;for(var O=0,_=Math.min(E.length,P.length),j=_,V=0;O<j;)E.substring(E.length-j,E.length-V)==P.substring(P.length-j,P.length-V)?(O=j,V=O):_=j,j=Math.floor((_-O)/2+O);return F(E.charCodeAt(E.length-j))&&j--,j}function d(E,P){var O=E.length>P.length?E:P,_=E.length>P.length?P:E;if(O.length<4||_.length*2<O.length)return null;function j(xe,he,Oe){for(var ye=xe.substring(Oe,Oe+Math.floor(xe.length/4)),N=-1,I="",A,C,y,x;(N=he.indexOf(ye,N+1))!==-1;){var k=c(xe.substring(Oe),he.substring(N)),B=u(xe.substring(0,Oe),he.substring(0,N));I.length<B+k&&(I=he.substring(N-B,N)+he.substring(N,N+k),A=xe.substring(0,Oe-B),C=xe.substring(Oe+k),y=he.substring(0,N-B),x=he.substring(N+k))}return I.length*2>=xe.length?[A,C,y,x,I]:null}var V=j(O,_,Math.ceil(O.length/4)),K=j(O,_,Math.ceil(O.length/2)),q;if(!V&&!K)return null;K?V?q=V[4].length>K[4].length?V:K:q=K:q=V;var J,te,me,ge;E.length>P.length?(J=q[0],te=q[1],me=q[2],ge=q[3]):(me=q[0],ge=q[1],J=q[2],te=q[3]);var ve=q[4];return[J,te,me,ge,ve]}function h(E){for(var P=!1,O=[],_=0,j=null,V=0,K=0,q=0,J=0,te=0;V<E.length;)E[V][0]==t?(O[_++]=V,K=J,q=te,J=0,te=0,j=E[V][1]):(E[V][0]==e?J+=E[V][1].length:te+=E[V][1].length,j&&j.length<=Math.max(K,q)&&j.length<=Math.max(J,te)&&(E.splice(O[_-1],0,[n,j]),E[O[_-1]+1][0]=e,_--,_--,V=_>0?O[_-1]:-1,K=0,q=0,J=0,te=0,j=null,P=!0)),V++;for(P&&T(E),S(E),V=1;V<E.length;){if(E[V-1][0]==n&&E[V][0]==e){var me=E[V-1][1],ge=E[V][1],ve=i(me,ge),xe=i(ge,me);ve>=xe?(ve>=me.length/2||ve>=ge.length/2)&&(E.splice(V,0,[t,ge.substring(0,ve)]),E[V-1][1]=me.substring(0,me.length-ve),E[V+1][1]=ge.substring(ve),V++):(xe>=me.length/2||xe>=ge.length/2)&&(E.splice(V,0,[t,me.substring(0,xe)]),E[V-1][0]=e,E[V-1][1]=ge.substring(0,ge.length-xe),E[V+1][0]=n,E[V+1][1]=me.substring(xe),V++),V++}V++}}var f=/[^a-zA-Z0-9]/,g=/\s/,p=/[\r\n]/,v=/\n\r?\n$/,b=/^\r?\n\r?\n/;function S(E){function P(xe,he){if(!xe||!he)return 6;var Oe=xe.charAt(xe.length-1),ye=he.charAt(0),N=Oe.match(f),I=ye.match(f),A=N&&Oe.match(g),C=I&&ye.match(g),y=A&&Oe.match(p),x=C&&ye.match(p),k=y&&xe.match(v),B=x&&he.match(b);return k||B?5:y||x?4:N&&!A&&C?3:A||C?2:N||I?1:0}for(var O=1;O<E.length-1;){if(E[O-1][0]==t&&E[O+1][0]==t){var _=E[O-1][1],j=E[O][1],V=E[O+1][1],K=u(_,j);if(K){var q=j.substring(j.length-K);_=_.substring(0,_.length-K),j=q+j.substring(0,j.length-K),V=q+V}for(var J=_,te=j,me=V,ge=P(_,j)+P(j,V);j.charAt(0)===V.charAt(0);){_+=j.charAt(0),j=j.substring(1)+V.charAt(0),V=V.substring(1);var ve=P(_,j)+P(j,V);ve>=ge&&(ge=ve,J=_,te=j,me=V)}E[O-1][1]!=J&&(J?E[O-1][1]=J:(E.splice(O-1,1),O--),E[O][1]=te,me?E[O+1][1]=me:(E.splice(O+1,1),O--))}O++}}function T(E,P){E.push([t,""]);for(var O=0,_=0,j=0,V="",K="",q;O<E.length;){if(O<E.length-1&&!E[O][1]){E.splice(O,1);continue}switch(E[O][0]){case e:j++,K+=E[O][1],O++;break;case n:_++,V+=E[O][1],O++;break;case t:var J=O-j-_-1;if(P){if(J>=0&&z(E[J][1])){var te=E[J][1].slice(-1);if(E[J][1]=E[J][1].slice(0,-1),V=te+V,K=te+K,!E[J][1]){E.splice(J,1),O--;var me=J-1;E[me]&&E[me][0]===e&&(j++,K=E[me][1]+K,me--),E[me]&&E[me][0]===n&&(_++,V=E[me][1]+V,me--),J=me}}if(M(E[O][1])){var te=E[O][1].charAt(0);E[O][1]=E[O][1].slice(1),V+=te,K+=te}}if(O<E.length-1&&!E[O][1]){E.splice(O,1);break}if(V.length>0||K.length>0){V.length>0&&K.length>0&&(q=c(K,V),q!==0&&(J>=0?E[J][1]+=K.substring(0,q):(E.splice(0,0,[t,K.substring(0,q)]),O++),K=K.substring(q),V=V.substring(q)),q=u(K,V),q!==0&&(E[O][1]=K.substring(K.length-q)+E[O][1],K=K.substring(0,K.length-q),V=V.substring(0,V.length-q)));var ge=j+_;V.length===0&&K.length===0?(E.splice(O-ge,ge),O=O-ge):V.length===0?(E.splice(O-ge,ge,[e,K]),O=O-ge+1):K.length===0?(E.splice(O-ge,ge,[n,V]),O=O-ge+1):(E.splice(O-ge,ge,[n,V],[e,K]),O=O-ge+2)}O!==0&&E[O-1][0]===t?(E[O-1][1]+=E[O][1],E.splice(O,1)):O++,j=0,_=0,V="",K="";break}}E[E.length-1][1]===""&&E.pop();var ve=!1;for(O=1;O<E.length-1;)E[O-1][0]===t&&E[O+1][0]===t&&(E[O][1].substring(E[O][1].length-E[O-1][1].length)===E[O-1][1]?(E[O][1]=E[O-1][1]+E[O][1].substring(0,E[O][1].length-E[O-1][1].length),E[O+1][1]=E[O-1][1]+E[O+1][1],E.splice(O-1,1),ve=!0):E[O][1].substring(0,E[O+1][1].length)==E[O+1][1]&&(E[O-1][1]+=E[O+1][1],E[O][1]=E[O][1].substring(E[O+1][1].length)+E[O+1][1],E.splice(O+1,1),ve=!0)),O++;ve&&T(E,P)}function R(E){return E>=55296&&E<=56319}function F(E){return E>=56320&&E<=57343}function M(E){return F(E.charCodeAt(0))}function z(E){return R(E.charCodeAt(E.length-1))}function X(E){for(var P=[],O=0;O<E.length;O++)E[O][1].length>0&&P.push(E[O]);return P}function H(E,P,O,_){return z(E)||M(_)?null:X([[t,E],[n,P],[e,O],[t,_]])}function re(E,P,O){var _=typeof O=="number"?{index:O,length:0}:O.oldRange,j=typeof O=="number"?null:O.newRange,V=E.length,K=P.length;if(_.length===0&&(j===null||j.length===0)){var q=_.index,J=E.slice(0,q),te=E.slice(q),me=j?j.index:null;e:{var ge=q+K-V;if(me!==null&&me!==ge||ge<0||ge>K)break e;var ve=P.slice(0,ge),xe=P.slice(ge);if(xe!==te)break e;var he=Math.min(q,ge),Oe=J.slice(0,he),ye=ve.slice(0,he);if(Oe!==ye)break e;var N=J.slice(he),I=ve.slice(he);return H(Oe,N,I,te)}e:{if(me!==null&&me!==q)break e;var A=q,ve=P.slice(0,A),xe=P.slice(A);if(ve!==J)break e;var C=Math.min(V-A,K-A),y=te.slice(te.length-C),x=xe.slice(xe.length-C);if(y!==x)break e;var N=te.slice(0,te.length-C),I=xe.slice(0,xe.length-C);return H(J,N,I,y)}}if(_.length>0&&j&&j.length===0)e:{var Oe=E.slice(0,_.index),y=E.slice(_.index+_.length),he=Oe.length,C=y.length;if(K<he+C)break e;var ye=P.slice(0,he),x=P.slice(K-C);if(Oe!==ye||y!==x)break e;var N=E.slice(he,V-C),I=P.slice(he,K-C);return H(Oe,N,I,y)}return null}function G(E,P,O,_){return r(E,P,O,_,!0)}return G.INSERT=e,G.DELETE=n,G.EQUAL=t,Wi=G,Wi}var Mr={exports:{}};Mr.exports;var Xl;function Yl(){return Xl||(Xl=1,function(n,e){var t=200,r="__lodash_hash_undefined__",s=9007199254740991,o="[object Arguments]",a="[object Array]",c="[object Boolean]",i="[object Date]",u="[object Error]",d="[object Function]",h="[object GeneratorFunction]",f="[object Map]",g="[object Number]",p="[object Object]",v="[object Promise]",b="[object RegExp]",S="[object Set]",T="[object String]",R="[object Symbol]",F="[object WeakMap]",M="[object ArrayBuffer]",z="[object DataView]",X="[object Float32Array]",H="[object Float64Array]",re="[object Int8Array]",G="[object Int16Array]",E="[object Int32Array]",P="[object Uint8Array]",O="[object Uint8ClampedArray]",_="[object Uint16Array]",j="[object Uint32Array]",V=/[\\^$.*+?()[\]{}|]/g,K=/\w*$/,q=/^\[object .+?Constructor\]$/,J=/^(?:0|[1-9]\d*)$/,te={};te[o]=te[a]=te[M]=te[z]=te[c]=te[i]=te[X]=te[H]=te[re]=te[G]=te[E]=te[f]=te[g]=te[p]=te[b]=te[S]=te[T]=te[R]=te[P]=te[O]=te[_]=te[j]=!0,te[u]=te[d]=te[F]=!1;var me=typeof En=="object"&&En&&En.Object===Object&&En,ge=typeof self=="object"&&self&&self.Object===Object&&self,ve=me||ge||Function("return this")(),xe=e&&!e.nodeType&&e,he=xe&&!0&&n&&!n.nodeType&&n,Oe=he&&he.exports===xe;function ye(m,w){return m.set(w[0],w[1]),m}function N(m,w){return m.add(w),m}function I(m,w){for(var D=-1,ie=m?m.length:0;++D<ie&&w(m[D],D,m)!==!1;);return m}function A(m,w){for(var D=-1,ie=w.length,Fe=m.length;++D<ie;)m[Fe+D]=w[D];return m}function C(m,w,D,ie){for(var Fe=-1,Re=m?m.length:0;++Fe<Re;)D=w(D,m[Fe],Fe,m);return D}function y(m,w){for(var D=-1,ie=Array(m);++D<m;)ie[D]=w(D);return ie}function x(m,w){return m==null?void 0:m[w]}function k(m){var w=!1;if(m!=null&&typeof m.toString!="function")try{w=!!(m+"")}catch{}return w}function B(m){var w=-1,D=Array(m.size);return m.forEach(function(ie,Fe){D[++w]=[Fe,ie]}),D}function U(m,w){return function(D){return m(w(D))}}function $(m){var w=-1,D=Array(m.size);return m.forEach(function(ie){D[++w]=ie}),D}var W=Array.prototype,Z=Function.prototype,Y=Object.prototype,Q=ve["__core-js_shared__"],ne=function(){var m=/[^.]+$/.exec(Q&&Q.keys&&Q.keys.IE_PROTO||"");return m?"Symbol(src)_1."+m:""}(),ae=Z.toString,fe=Y.hasOwnProperty,Ae=Y.toString,De=RegExp("^"+ae.call(fe).replace(V,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ge=Oe?ve.Buffer:void 0,je=ve.Symbol,Be=ve.Uint8Array,Ve=U(Object.getPrototypeOf,Object),rt=Object.create,it=Y.propertyIsEnumerable,Dt=W.splice,bt=Object.getOwnPropertySymbols,_e=Ge?Ge.isBuffer:void 0,Pe=U(Object.keys,Object),We=Zt(ve,"DataView"),pe=Zt(ve,"Map"),be=Zt(ve,"Promise"),Ce=Zt(ve,"Set"),ke=Zt(ve,"WeakMap"),Ie=Zt(Object,"create"),$e=St(We),Ke=St(pe),et=St(be),dt=St(Ce),ft=St(ke),It=je?je.prototype:void 0,Ut=It?It.valueOf:void 0;function lt(m){var w=-1,D=m?m.length:0;for(this.clear();++w<D;){var ie=m[w];this.set(ie[0],ie[1])}}function Ot(){this.__data__=Ie?Ie(null):{}}function Xt(m){return this.has(m)&&delete this.__data__[m]}function Hn(m){var w=this.__data__;if(Ie){var D=w[m];return D===r?void 0:D}return fe.call(w,m)?w[m]:void 0}function gn(m){var w=this.__data__;return Ie?w[m]!==void 0:fe.call(w,m)}function Cn(m,w){var D=this.__data__;return D[m]=Ie&&w===void 0?r:w,this}lt.prototype.clear=Ot,lt.prototype.delete=Xt,lt.prototype.get=Hn,lt.prototype.has=gn,lt.prototype.set=Cn;function at(m){var w=-1,D=m?m.length:0;for(this.clear();++w<D;){var ie=m[w];this.set(ie[0],ie[1])}}function fr(){this.__data__=[]}function hr(m){var w=this.__data__,D=Ue(w,m);if(D<0)return!1;var ie=w.length-1;return D==ie?w.pop():Dt.call(w,D,1),!0}function pr(m){var w=this.__data__,D=Ue(w,m);return D<0?void 0:w[D][1]}function mr(m){return Ue(this.__data__,m)>-1}function gr(m,w){var D=this.__data__,ie=Ue(D,m);return ie<0?D.push([m,w]):D[ie][1]=w,this}at.prototype.clear=fr,at.prototype.delete=hr,at.prototype.get=pr,at.prototype.has=mr,at.prototype.set=gr;function ct(m){var w=-1,D=m?m.length:0;for(this.clear();++w<D;){var ie=m[w];this.set(ie[0],ie[1])}}function vr(){this.__data__={hash:new lt,map:new(pe||at),string:new lt}}function yr(m){return Wn(this,m).delete(m)}function br(m){return Wn(this,m).get(m)}function xt(m){return Wn(this,m).has(m)}function xr(m,w){return Wn(this,m).set(m,w),this}ct.prototype.clear=vr,ct.prototype.delete=yr,ct.prototype.get=br,ct.prototype.has=xt,ct.prototype.set=xr;function pt(m){this.__data__=new at(m)}function L(){this.__data__=new at}function oe(m){return this.__data__.delete(m)}function se(m){return this.__data__.get(m)}function ce(m){return this.__data__.has(m)}function de(m,w){var D=this.__data__;if(D instanceof at){var ie=D.__data__;if(!pe||ie.length<t-1)return ie.push([m,w]),this;D=this.__data__=new ct(ie)}return D.set(m,w),this}pt.prototype.clear=L,pt.prototype.delete=oe,pt.prototype.get=se,pt.prototype.has=ce,pt.prototype.set=de;function Le(m,w){var D=Qr(m)||Er(m)?y(m.length,String):[],ie=D.length,Fe=!!ie;for(var Re in m)fe.call(m,Re)&&!(Fe&&(Re=="length"||La(Re,ie)))&&D.push(Re);return D}function we(m,w,D){var ie=m[w];(!(fe.call(m,w)&&Ws(ie,D))||D===void 0&&!(w in m))&&(m[w]=D)}function Ue(m,w){for(var D=m.length;D--;)if(Ws(m[D][0],w))return D;return-1}function qe(m,w){return m&&Zr(w,es(w),m)}function Qe(m,w,D,ie,Fe,Re,He){var ze;if(ie&&(ze=Re?ie(m,Fe,Re,He):ie(m)),ze!==void 0)return ze;if(!on(m))return m;var ot=Qr(m);if(ot){if(ze=Ia(m),!w)return Oa(m,ze)}else{var Xe=bn(m),At=Xe==d||Xe==h;if(Ks(m))return vn(m,w);if(Xe==p||Xe==o||At&&!Re){if(k(m))return Re?m:{};if(ze=an(At?{}:m),!w)return Ca(m,qe(ze,m))}else{if(!te[Xe])return Re?m:{};ze=ka(m,Xe,Qe,w)}}He||(He=new pt);var Ct=He.get(m);if(Ct)return Ct;if(He.set(m,ze),!ot)var ut=D?Ra(m):es(m);return I(ut||m,function(wt,mt){ut&&(mt=wt,wt=m[mt]),we(ze,mt,Qe(wt,w,D,ie,mt,m,He))}),ze}function Et(m){return on(m)?rt(m):{}}function ue(m,w,D){var ie=w(m);return Qr(m)?ie:A(ie,D(m))}function st(m){return Ae.call(m)}function kt(m){if(!on(m)||Pa(m))return!1;var w=Jr(m)||k(m)?De:q;return w.test(St(m))}function Gn(m){if(!Hs(m))return Pe(m);var w=[];for(var D in Object(m))fe.call(m,D)&&D!="constructor"&&w.push(D);return w}function vn(m,w){if(w)return m.slice();var D=new m.constructor(m.length);return m.copy(D),D}function Rn(m){var w=new m.constructor(m.byteLength);return new Be(w).set(new Be(m)),w}function Yt(m,w){var D=w?Rn(m.buffer):m.buffer;return new m.constructor(D,m.byteOffset,m.byteLength)}function qs(m,w,D){var ie=w?D(B(m),!0):B(m);return C(ie,ye,new m.constructor)}function zs(m){var w=new m.constructor(m.source,K.exec(m));return w.lastIndex=m.lastIndex,w}function Sa(m,w,D){var ie=w?D($(m),!0):$(m);return C(ie,N,new m.constructor)}function Ta(m){return Ut?Object(Ut.call(m)):{}}function Na(m,w){var D=w?Rn(m.buffer):m.buffer;return new m.constructor(D,m.byteOffset,m.length)}function Oa(m,w){var D=-1,ie=m.length;for(w||(w=Array(ie));++D<ie;)w[D]=m[D];return w}function Zr(m,w,D,ie){D||(D={});for(var Fe=-1,Re=w.length;++Fe<Re;){var He=w[Fe],ze=void 0;we(D,He,ze===void 0?m[He]:ze)}return D}function Ca(m,w){return Zr(m,yn(m),w)}function Ra(m){return ue(m,es,yn)}function Wn(m,w){var D=m.__data__;return Ba(w)?D[typeof w=="string"?"string":"hash"]:D.map}function Zt(m,w){var D=x(m,w);return kt(D)?D:void 0}var yn=bt?U(bt,Object):Ma,bn=st;(We&&bn(new We(new ArrayBuffer(1)))!=z||pe&&bn(new pe)!=f||be&&bn(be.resolve())!=v||Ce&&bn(new Ce)!=S||ke&&bn(new ke)!=F)&&(bn=function(m){var w=Ae.call(m),D=w==p?m.constructor:void 0,ie=D?St(D):void 0;if(ie)switch(ie){case $e:return z;case Ke:return f;case et:return v;case dt:return S;case ft:return F}return w});function Ia(m){var w=m.length,D=m.constructor(w);return w&&typeof m[0]=="string"&&fe.call(m,"index")&&(D.index=m.index,D.input=m.input),D}function an(m){return typeof m.constructor=="function"&&!Hs(m)?Et(Ve(m)):{}}function ka(m,w,D,ie){var Fe=m.constructor;switch(w){case M:return Rn(m);case c:case i:return new Fe(+m);case z:return Yt(m,ie);case X:case H:case re:case G:case E:case P:case O:case _:case j:return Na(m,ie);case f:return qs(m,ie,D);case g:case T:return new Fe(m);case b:return zs(m);case S:return Sa(m,ie,D);case R:return Ta(m)}}function La(m,w){return w=w??s,!!w&&(typeof m=="number"||J.test(m))&&m>-1&&m%1==0&&m<w}function Ba(m){var w=typeof m;return w=="string"||w=="number"||w=="symbol"||w=="boolean"?m!=="__proto__":m===null}function Pa(m){return!!ne&&ne in m}function Hs(m){var w=m&&m.constructor,D=typeof w=="function"&&w.prototype||Y;return m===D}function St(m){if(m!=null){try{return ae.call(m)}catch{}try{return m+""}catch{}}return""}function Gs(m){return Qe(m,!0,!0)}function Ws(m,w){return m===w||m!==m&&w!==w}function Er(m){return Fa(m)&&fe.call(m,"callee")&&(!it.call(m,"callee")||Ae.call(m)==o)}var Qr=Array.isArray;function Ar(m){return m!=null&&Xs(m.length)&&!Jr(m)}function Fa(m){return Ys(m)&&Ar(m)}var Ks=_e||Da;function Jr(m){var w=on(m)?Ae.call(m):"";return w==d||w==h}function Xs(m){return typeof m=="number"&&m>-1&&m%1==0&&m<=s}function on(m){var w=typeof m;return!!m&&(w=="object"||w=="function")}function Ys(m){return!!m&&typeof m=="object"}function es(m){return Ar(m)?Le(m):Gn(m)}function Ma(){return[]}function Da(){return!1}n.exports=Gs}(Mr,Mr.exports)),Mr.exports}var Dr={exports:{}};Dr.exports;var Zl;function Ql(){return Zl||(Zl=1,function(n,e){var t=200,r="__lodash_hash_undefined__",s=1,o=2,a=9007199254740991,c="[object Arguments]",i="[object Array]",u="[object AsyncFunction]",d="[object Boolean]",h="[object Date]",f="[object Error]",g="[object Function]",p="[object GeneratorFunction]",v="[object Map]",b="[object Number]",S="[object Null]",T="[object Object]",R="[object Promise]",F="[object Proxy]",M="[object RegExp]",z="[object Set]",X="[object String]",H="[object Symbol]",re="[object Undefined]",G="[object WeakMap]",E="[object ArrayBuffer]",P="[object DataView]",O="[object Float32Array]",_="[object Float64Array]",j="[object Int8Array]",V="[object Int16Array]",K="[object Int32Array]",q="[object Uint8Array]",J="[object Uint8ClampedArray]",te="[object Uint16Array]",me="[object Uint32Array]",ge=/[\\^$.*+?()[\]{}|]/g,ve=/^\[object .+?Constructor\]$/,xe=/^(?:0|[1-9]\d*)$/,he={};he[O]=he[_]=he[j]=he[V]=he[K]=he[q]=he[J]=he[te]=he[me]=!0,he[c]=he[i]=he[E]=he[d]=he[P]=he[h]=he[f]=he[g]=he[v]=he[b]=he[T]=he[M]=he[z]=he[X]=he[G]=!1;var Oe=typeof En=="object"&&En&&En.Object===Object&&En,ye=typeof self=="object"&&self&&self.Object===Object&&self,N=Oe||ye||Function("return this")(),I=e&&!e.nodeType&&e,A=I&&!0&&n&&!n.nodeType&&n,C=A&&A.exports===I,y=C&&Oe.process,x=function(){try{return y&&y.binding&&y.binding("util")}catch{}}(),k=x&&x.isTypedArray;function B(m,w){for(var D=-1,ie=m==null?0:m.length,Fe=0,Re=[];++D<ie;){var He=m[D];w(He,D,m)&&(Re[Fe++]=He)}return Re}function U(m,w){for(var D=-1,ie=w.length,Fe=m.length;++D<ie;)m[Fe+D]=w[D];return m}function $(m,w){for(var D=-1,ie=m==null?0:m.length;++D<ie;)if(w(m[D],D,m))return!0;return!1}function W(m,w){for(var D=-1,ie=Array(m);++D<m;)ie[D]=w(D);return ie}function Z(m){return function(w){return m(w)}}function Y(m,w){return m.has(w)}function Q(m,w){return m==null?void 0:m[w]}function ne(m){var w=-1,D=Array(m.size);return m.forEach(function(ie,Fe){D[++w]=[Fe,ie]}),D}function ae(m,w){return function(D){return m(w(D))}}function fe(m){var w=-1,D=Array(m.size);return m.forEach(function(ie){D[++w]=ie}),D}var Ae=Array.prototype,De=Function.prototype,Ge=Object.prototype,je=N["__core-js_shared__"],Be=De.toString,Ve=Ge.hasOwnProperty,rt=function(){var m=/[^.]+$/.exec(je&&je.keys&&je.keys.IE_PROTO||"");return m?"Symbol(src)_1."+m:""}(),it=Ge.toString,Dt=RegExp("^"+Be.call(Ve).replace(ge,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),bt=C?N.Buffer:void 0,_e=N.Symbol,Pe=N.Uint8Array,We=Ge.propertyIsEnumerable,pe=Ae.splice,be=_e?_e.toStringTag:void 0,Ce=Object.getOwnPropertySymbols,ke=bt?bt.isBuffer:void 0,Ie=ae(Object.keys,Object),$e=yn(N,"DataView"),Ke=yn(N,"Map"),et=yn(N,"Promise"),dt=yn(N,"Set"),ft=yn(N,"WeakMap"),It=yn(Object,"create"),Ut=St($e),lt=St(Ke),Ot=St(et),Xt=St(dt),Hn=St(ft),gn=_e?_e.prototype:void 0,Cn=gn?gn.valueOf:void 0;function at(m){var w=-1,D=m==null?0:m.length;for(this.clear();++w<D;){var ie=m[w];this.set(ie[0],ie[1])}}function fr(){this.__data__=It?It(null):{},this.size=0}function hr(m){var w=this.has(m)&&delete this.__data__[m];return this.size-=w?1:0,w}function pr(m){var w=this.__data__;if(It){var D=w[m];return D===r?void 0:D}return Ve.call(w,m)?w[m]:void 0}function mr(m){var w=this.__data__;return It?w[m]!==void 0:Ve.call(w,m)}function gr(m,w){var D=this.__data__;return this.size+=this.has(m)?0:1,D[m]=It&&w===void 0?r:w,this}at.prototype.clear=fr,at.prototype.delete=hr,at.prototype.get=pr,at.prototype.has=mr,at.prototype.set=gr;function ct(m){var w=-1,D=m==null?0:m.length;for(this.clear();++w<D;){var ie=m[w];this.set(ie[0],ie[1])}}function vr(){this.__data__=[],this.size=0}function yr(m){var w=this.__data__,D=vn(w,m);if(D<0)return!1;var ie=w.length-1;return D==ie?w.pop():pe.call(w,D,1),--this.size,!0}function br(m){var w=this.__data__,D=vn(w,m);return D<0?void 0:w[D][1]}function xt(m){return vn(this.__data__,m)>-1}function xr(m,w){var D=this.__data__,ie=vn(D,m);return ie<0?(++this.size,D.push([m,w])):D[ie][1]=w,this}ct.prototype.clear=vr,ct.prototype.delete=yr,ct.prototype.get=br,ct.prototype.has=xt,ct.prototype.set=xr;function pt(m){var w=-1,D=m==null?0:m.length;for(this.clear();++w<D;){var ie=m[w];this.set(ie[0],ie[1])}}function L(){this.size=0,this.__data__={hash:new at,map:new(Ke||ct),string:new at}}function oe(m){var w=Zt(this,m).delete(m);return this.size-=w?1:0,w}function se(m){return Zt(this,m).get(m)}function ce(m){return Zt(this,m).has(m)}function de(m,w){var D=Zt(this,m),ie=D.size;return D.set(m,w),this.size+=D.size==ie?0:1,this}pt.prototype.clear=L,pt.prototype.delete=oe,pt.prototype.get=se,pt.prototype.has=ce,pt.prototype.set=de;function Le(m){var w=-1,D=m==null?0:m.length;for(this.__data__=new pt;++w<D;)this.add(m[w])}function we(m){return this.__data__.set(m,r),this}function Ue(m){return this.__data__.has(m)}Le.prototype.add=Le.prototype.push=we,Le.prototype.has=Ue;function qe(m){var w=this.__data__=new ct(m);this.size=w.size}function Qe(){this.__data__=new ct,this.size=0}function Et(m){var w=this.__data__,D=w.delete(m);return this.size=w.size,D}function ue(m){return this.__data__.get(m)}function st(m){return this.__data__.has(m)}function kt(m,w){var D=this.__data__;if(D instanceof ct){var ie=D.__data__;if(!Ke||ie.length<t-1)return ie.push([m,w]),this.size=++D.size,this;D=this.__data__=new pt(ie)}return D.set(m,w),this.size=D.size,this}qe.prototype.clear=Qe,qe.prototype.delete=Et,qe.prototype.get=ue,qe.prototype.has=st,qe.prototype.set=kt;function Gn(m,w){var D=Er(m),ie=!D&&Ws(m),Fe=!D&&!ie&&Ar(m),Re=!D&&!ie&&!Fe&&Ys(m),He=D||ie||Fe||Re,ze=He?W(m.length,String):[],ot=ze.length;for(var Xe in m)Ve.call(m,Xe)&&!(He&&(Xe=="length"||Fe&&(Xe=="offset"||Xe=="parent")||Re&&(Xe=="buffer"||Xe=="byteLength"||Xe=="byteOffset")||ka(Xe,ot)))&&ze.push(Xe);return ze}function vn(m,w){for(var D=m.length;D--;)if(Gs(m[D][0],w))return D;return-1}function Rn(m,w,D){var ie=w(m);return Er(m)?ie:U(ie,D(m))}function Yt(m){return m==null?m===void 0?re:S:be&&be in Object(m)?bn(m):Hs(m)}function qs(m){return on(m)&&Yt(m)==c}function zs(m,w,D,ie,Fe){return m===w?!0:m==null||w==null||!on(m)&&!on(w)?m!==m&&w!==w:Sa(m,w,D,ie,zs,Fe)}function Sa(m,w,D,ie,Fe,Re){var He=Er(m),ze=Er(w),ot=He?i:an(m),Xe=ze?i:an(w);ot=ot==c?T:ot,Xe=Xe==c?T:Xe;var At=ot==T,Ct=Xe==T,ut=ot==Xe;if(ut&&Ar(m)){if(!Ar(w))return!1;He=!0,At=!1}if(ut&&!At)return Re||(Re=new qe),He||Ys(m)?Zr(m,w,D,ie,Fe,Re):Ca(m,w,ot,D,ie,Fe,Re);if(!(D&s)){var wt=At&&Ve.call(m,"__wrapped__"),mt=Ct&&Ve.call(w,"__wrapped__");if(wt||mt){var In=wt?m.value():m,xn=mt?w.value():w;return Re||(Re=new qe),Fe(In,xn,D,ie,Re)}}return ut?(Re||(Re=new qe),Ra(m,w,D,ie,Fe,Re)):!1}function Ta(m){if(!Xs(m)||Ba(m))return!1;var w=Ks(m)?Dt:ve;return w.test(St(m))}function Na(m){return on(m)&&Jr(m.length)&&!!he[Yt(m)]}function Oa(m){if(!Pa(m))return Ie(m);var w=[];for(var D in Object(m))Ve.call(m,D)&&D!="constructor"&&w.push(D);return w}function Zr(m,w,D,ie,Fe,Re){var He=D&s,ze=m.length,ot=w.length;if(ze!=ot&&!(He&&ot>ze))return!1;var Xe=Re.get(m);if(Xe&&Re.get(w))return Xe==w;var At=-1,Ct=!0,ut=D&o?new Le:void 0;for(Re.set(m,w),Re.set(w,m);++At<ze;){var wt=m[At],mt=w[At];if(ie)var In=He?ie(mt,wt,At,w,m,Re):ie(wt,mt,At,m,w,Re);if(In!==void 0){if(In)continue;Ct=!1;break}if(ut){if(!$(w,function(xn,Kn){if(!Y(ut,Kn)&&(wt===xn||Fe(wt,xn,D,ie,Re)))return ut.push(Kn)})){Ct=!1;break}}else if(!(wt===mt||Fe(wt,mt,D,ie,Re))){Ct=!1;break}}return Re.delete(m),Re.delete(w),Ct}function Ca(m,w,D,ie,Fe,Re,He){switch(D){case P:if(m.byteLength!=w.byteLength||m.byteOffset!=w.byteOffset)return!1;m=m.buffer,w=w.buffer;case E:return!(m.byteLength!=w.byteLength||!Re(new Pe(m),new Pe(w)));case d:case h:case b:return Gs(+m,+w);case f:return m.name==w.name&&m.message==w.message;case M:case X:return m==w+"";case v:var ze=ne;case z:var ot=ie&s;if(ze||(ze=fe),m.size!=w.size&&!ot)return!1;var Xe=He.get(m);if(Xe)return Xe==w;ie|=o,He.set(m,w);var At=Zr(ze(m),ze(w),ie,Fe,Re,He);return He.delete(m),At;case H:if(Cn)return Cn.call(m)==Cn.call(w)}return!1}function Ra(m,w,D,ie,Fe,Re){var He=D&s,ze=Wn(m),ot=ze.length,Xe=Wn(w),At=Xe.length;if(ot!=At&&!He)return!1;for(var Ct=ot;Ct--;){var ut=ze[Ct];if(!(He?ut in w:Ve.call(w,ut)))return!1}var wt=Re.get(m);if(wt&&Re.get(w))return wt==w;var mt=!0;Re.set(m,w),Re.set(w,m);for(var In=He;++Ct<ot;){ut=ze[Ct];var xn=m[ut],Kn=w[ut];if(ie)var eu=He?ie(Kn,xn,ut,w,m,Re):ie(xn,Kn,ut,m,w,Re);if(!(eu===void 0?xn===Kn||Fe(xn,Kn,D,ie,Re):eu)){mt=!1;break}In||(In=ut=="constructor")}if(mt&&!In){var Zs=m.constructor,Qs=w.constructor;Zs!=Qs&&"constructor"in m&&"constructor"in w&&!(typeof Zs=="function"&&Zs instanceof Zs&&typeof Qs=="function"&&Qs instanceof Qs)&&(mt=!1)}return Re.delete(m),Re.delete(w),mt}function Wn(m){return Rn(m,es,Ia)}function Zt(m,w){var D=m.__data__;return La(w)?D[typeof w=="string"?"string":"hash"]:D.map}function yn(m,w){var D=Q(m,w);return Ta(D)?D:void 0}function bn(m){var w=Ve.call(m,be),D=m[be];try{m[be]=void 0;var ie=!0}catch{}var Fe=it.call(m);return ie&&(w?m[be]=D:delete m[be]),Fe}var Ia=Ce?function(m){return m==null?[]:(m=Object(m),B(Ce(m),function(w){return We.call(m,w)}))}:Ma,an=Yt;($e&&an(new $e(new ArrayBuffer(1)))!=P||Ke&&an(new Ke)!=v||et&&an(et.resolve())!=R||dt&&an(new dt)!=z||ft&&an(new ft)!=G)&&(an=function(m){var w=Yt(m),D=w==T?m.constructor:void 0,ie=D?St(D):"";if(ie)switch(ie){case Ut:return P;case lt:return v;case Ot:return R;case Xt:return z;case Hn:return G}return w});function ka(m,w){return w=w??a,!!w&&(typeof m=="number"||xe.test(m))&&m>-1&&m%1==0&&m<w}function La(m){var w=typeof m;return w=="string"||w=="number"||w=="symbol"||w=="boolean"?m!=="__proto__":m===null}function Ba(m){return!!rt&&rt in m}function Pa(m){var w=m&&m.constructor,D=typeof w=="function"&&w.prototype||Ge;return m===D}function Hs(m){return it.call(m)}function St(m){if(m!=null){try{return Be.call(m)}catch{}try{return m+""}catch{}}return""}function Gs(m,w){return m===w||m!==m&&w!==w}var Ws=qs(function(){return arguments}())?qs:function(m){return on(m)&&Ve.call(m,"callee")&&!We.call(m,"callee")},Er=Array.isArray;function Qr(m){return m!=null&&Jr(m.length)&&!Ks(m)}var Ar=ke||Da;function Fa(m,w){return zs(m,w)}function Ks(m){if(!Xs(m))return!1;var w=Yt(m);return w==g||w==p||w==u||w==F}function Jr(m){return typeof m=="number"&&m>-1&&m%1==0&&m<=a}function Xs(m){var w=typeof m;return m!=null&&(w=="object"||w=="function")}function on(m){return m!=null&&typeof m=="object"}var Ys=k?Z(k):Na;function es(m){return Qr(m)?Gn(m):Oa(m)}function Ma(){return[]}function Da(){return!1}n.exports=Fa}(Dr,Dr.exports)),Dr.exports}var Is={},Jl;function Pv(){if(Jl)return Is;Jl=1,Object.defineProperty(Is,"__esModule",{value:!0});const n=Yl(),e=Ql();var t;return function(r){function s(i={},u={},d=!1){typeof i!="object"&&(i={}),typeof u!="object"&&(u={});let h=n(u);d||(h=Object.keys(h).reduce((f,g)=>(h[g]!=null&&(f[g]=h[g]),f),{}));for(const f in i)i[f]!==void 0&&u[f]===void 0&&(h[f]=i[f]);return Object.keys(h).length>0?h:void 0}r.compose=s;function o(i={},u={}){typeof i!="object"&&(i={}),typeof u!="object"&&(u={});const d=Object.keys(i).concat(Object.keys(u)).reduce((h,f)=>(e(i[f],u[f])||(h[f]=u[f]===void 0?null:u[f]),h),{});return Object.keys(d).length>0?d:void 0}r.diff=o;function a(i={},u={}){i=i||{};const d=Object.keys(u).reduce((h,f)=>(u[f]!==i[f]&&i[f]!==void 0&&(h[f]=u[f]),h),{});return Object.keys(i).reduce((h,f)=>(i[f]!==u[f]&&u[f]===void 0&&(h[f]=null),h),d)}r.invert=a;function c(i,u,d=!1){if(typeof i!="object")return u;if(typeof u!="object")return;if(!d)return u;const h=Object.keys(u).reduce((f,g)=>(i[g]===void 0&&(f[g]=u[g]),f),{});return Object.keys(h).length>0?h:void 0}r.transform=c}(t||(t={})),Is.default=t,Is}var ks={},ec;function tc(){if(ec)return ks;ec=1,Object.defineProperty(ks,"__esModule",{value:!0});var n;return function(e){function t(r){return typeof r.delete=="number"?r.delete:typeof r.retain=="number"?r.retain:typeof r.retain=="object"&&r.retain!==null?1:typeof r.insert=="string"?r.insert.length:1}e.length=t}(n||(n={})),ks.default=n,ks}var Ls={},nc;function Fv(){if(nc)return Ls;nc=1,Object.defineProperty(Ls,"__esModule",{value:!0});const n=tc();class e{constructor(r){this.ops=r,this.index=0,this.offset=0}hasNext(){return this.peekLength()<1/0}next(r){r||(r=1/0);const s=this.ops[this.index];if(s){const o=this.offset,a=n.default.length(s);if(r>=a-o?(r=a-o,this.index+=1,this.offset=0):this.offset+=r,typeof s.delete=="number")return{delete:r};{const c={};return s.attributes&&(c.attributes=s.attributes),typeof s.retain=="number"?c.retain=r:typeof s.retain=="object"&&s.retain!==null?c.retain=s.retain:typeof s.insert=="string"?c.insert=s.insert.substr(o,r):c.insert=s.insert,c}}else return{retain:1/0}}peek(){return this.ops[this.index]}peekLength(){return this.ops[this.index]?n.default.length(this.ops[this.index])-this.offset:1/0}peekType(){const r=this.ops[this.index];return r?typeof r.delete=="number"?"delete":typeof r.retain=="number"||typeof r.retain=="object"&&r.retain!==null?"retain":"insert":"retain"}rest(){if(this.hasNext()){if(this.offset===0)return this.ops.slice(this.index);{const r=this.offset,s=this.index,o=this.next(),a=this.ops.slice(this.index);return this.offset=r,this.index=s,[o].concat(a)}}else return[]}}return Ls.default=e,Ls}var rc;function Mv(){return rc||(rc=1,function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.AttributeMap=e.OpIterator=e.Op=void 0;const t=Bv(),r=Yl(),s=Ql(),o=Pv();e.AttributeMap=o.default;const a=tc();e.Op=a.default;const c=Fv();e.OpIterator=c.default;const i="\0",u=(h,f)=>{if(typeof h!="object"||h===null)throw new Error(`cannot retain a ${typeof h}`);if(typeof f!="object"||f===null)throw new Error(`cannot retain a ${typeof f}`);const g=Object.keys(h)[0];if(!g||g!==Object.keys(f)[0])throw new Error(`embed types not matched: ${g} != ${Object.keys(f)[0]}`);return[g,h[g],f[g]]};class d{constructor(f){Array.isArray(f)?this.ops=f:f!=null&&Array.isArray(f.ops)?this.ops=f.ops:this.ops=[]}static registerEmbed(f,g){this.handlers[f]=g}static unregisterEmbed(f){delete this.handlers[f]}static getHandler(f){const g=this.handlers[f];if(!g)throw new Error(`no handlers for embed type "${f}"`);return g}insert(f,g){const p={};return typeof f=="string"&&f.length===0?this:(p.insert=f,g!=null&&typeof g=="object"&&Object.keys(g).length>0&&(p.attributes=g),this.push(p))}delete(f){return f<=0?this:this.push({delete:f})}retain(f,g){if(typeof f=="number"&&f<=0)return this;const p={retain:f};return g!=null&&typeof g=="object"&&Object.keys(g).length>0&&(p.attributes=g),this.push(p)}push(f){let g=this.ops.length,p=this.ops[g-1];if(f=r(f),typeof p=="object"){if(typeof f.delete=="number"&&typeof p.delete=="number")return this.ops[g-1]={delete:p.delete+f.delete},this;if(typeof p.delete=="number"&&f.insert!=null&&(g-=1,p=this.ops[g-1],typeof p!="object"))return this.ops.unshift(f),this;if(s(f.attributes,p.attributes)){if(typeof f.insert=="string"&&typeof p.insert=="string")return this.ops[g-1]={insert:p.insert+f.insert},typeof f.attributes=="object"&&(this.ops[g-1].attributes=f.attributes),this;if(typeof f.retain=="number"&&typeof p.retain=="number")return this.ops[g-1]={retain:p.retain+f.retain},typeof f.attributes=="object"&&(this.ops[g-1].attributes=f.attributes),this}}return g===this.ops.length?this.ops.push(f):this.ops.splice(g,0,f),this}chop(){const f=this.ops[this.ops.length-1];return f&&typeof f.retain=="number"&&!f.attributes&&this.ops.pop(),this}filter(f){return this.ops.filter(f)}forEach(f){this.ops.forEach(f)}map(f){return this.ops.map(f)}partition(f){const g=[],p=[];return this.forEach(v=>{(f(v)?g:p).push(v)}),[g,p]}reduce(f,g){return this.ops.reduce(f,g)}changeLength(){return this.reduce((f,g)=>g.insert?f+a.default.length(g):g.delete?f-g.delete:f,0)}length(){return this.reduce((f,g)=>f+a.default.length(g),0)}slice(f=0,g=1/0){const p=[],v=new c.default(this.ops);let b=0;for(;b<g&&v.hasNext();){let S;b<f?S=v.next(f-b):(S=v.next(g-b),p.push(S)),b+=a.default.length(S)}return new d(p)}compose(f){const g=new c.default(this.ops),p=new c.default(f.ops),v=[],b=p.peek();if(b!=null&&typeof b.retain=="number"&&b.attributes==null){let T=b.retain;for(;g.peekType()==="insert"&&g.peekLength()<=T;)T-=g.peekLength(),v.push(g.next());b.retain-T>0&&p.next(b.retain-T)}const S=new d(v);for(;g.hasNext()||p.hasNext();)if(p.peekType()==="insert")S.push(p.next());else if(g.peekType()==="delete")S.push(g.next());else{const T=Math.min(g.peekLength(),p.peekLength()),R=g.next(T),F=p.next(T);if(F.retain){const M={};if(typeof R.retain=="number")M.retain=typeof F.retain=="number"?T:F.retain;else if(typeof F.retain=="number")R.retain==null?M.insert=R.insert:M.retain=R.retain;else{const X=R.retain==null?"insert":"retain",[H,re,G]=u(R[X],F.retain),E=d.getHandler(H);M[X]={[H]:E.compose(re,G,X==="retain")}}const z=o.default.compose(R.attributes,F.attributes,typeof R.retain=="number");if(z&&(M.attributes=z),S.push(M),!p.hasNext()&&s(S.ops[S.ops.length-1],M)){const X=new d(g.rest());return S.concat(X).chop()}}else typeof F.delete=="number"&&(typeof R.retain=="number"||typeof R.retain=="object"&&R.retain!==null)&&S.push(F)}return S.chop()}concat(f){const g=new d(this.ops.slice());return f.ops.length>0&&(g.push(f.ops[0]),g.ops=g.ops.concat(f.ops.slice(1))),g}diff(f,g){if(this.ops===f.ops)return new d;const p=[this,f].map(R=>R.map(F=>{if(F.insert!=null)return typeof F.insert=="string"?F.insert:i;const M=R===f?"on":"with";throw new Error("diff() called "+M+" non-document")}).join("")),v=new d,b=t(p[0],p[1],g,!0),S=new c.default(this.ops),T=new c.default(f.ops);return b.forEach(R=>{let F=R[1].length;for(;F>0;){let M=0;switch(R[0]){case t.INSERT:M=Math.min(T.peekLength(),F),v.push(T.next(M));break;case t.DELETE:M=Math.min(F,S.peekLength()),S.next(M),v.delete(M);break;case t.EQUAL:M=Math.min(S.peekLength(),T.peekLength(),F);const z=S.next(M),X=T.next(M);s(z.insert,X.insert)?v.retain(M,o.default.diff(z.attributes,X.attributes)):v.push(X).delete(M);break}F-=M}}),v.chop()}eachLine(f,g=`
18
- `){const p=new c.default(this.ops);let v=new d,b=0;for(;p.hasNext();){if(p.peekType()!=="insert")return;const S=p.peek(),T=a.default.length(S)-p.peekLength(),R=typeof S.insert=="string"?S.insert.indexOf(g,T)-T:-1;if(R<0)v.push(p.next());else if(R>0)v.push(p.next(R));else{if(f(v,p.next(1).attributes||{},b)===!1)return;b+=1,v=new d}}v.length()>0&&f(v,{},b)}invert(f){const g=new d;return this.reduce((p,v)=>{if(v.insert)g.delete(a.default.length(v));else{if(typeof v.retain=="number"&&v.attributes==null)return g.retain(v.retain),p+v.retain;if(v.delete||typeof v.retain=="number"){const b=v.delete||v.retain;return f.slice(p,p+b).forEach(T=>{v.delete?g.push(T):v.retain&&v.attributes&&g.retain(a.default.length(T),o.default.invert(v.attributes,T.attributes))}),p+b}else if(typeof v.retain=="object"&&v.retain!==null){const b=f.slice(p,p+1),S=new c.default(b.ops).next(),[T,R,F]=u(v.retain,S.insert),M=d.getHandler(T);return g.retain({[T]:M.invert(R,F)},o.default.invert(v.attributes,S.attributes)),p+1}}return p},0),g.chop()}transform(f,g=!1){if(g=!!g,typeof f=="number")return this.transformPosition(f,g);const p=f,v=new c.default(this.ops),b=new c.default(p.ops),S=new d;for(;v.hasNext()||b.hasNext();)if(v.peekType()==="insert"&&(g||b.peekType()!=="insert"))S.retain(a.default.length(v.next()));else if(b.peekType()==="insert")S.push(b.next());else{const T=Math.min(v.peekLength(),b.peekLength()),R=v.next(T),F=b.next(T);if(R.delete)continue;if(F.delete)S.push(F);else{const M=R.retain,z=F.retain;let X=typeof z=="object"&&z!==null?z:T;if(typeof M=="object"&&M!==null&&typeof z=="object"&&z!==null){const H=Object.keys(M)[0];if(H===Object.keys(z)[0]){const re=d.getHandler(H);re&&(X={[H]:re.transform(M[H],z[H],g)})}}S.retain(X,o.default.transform(R.attributes,F.attributes,g))}}return S.chop()}transformPosition(f,g=!1){g=!!g;const p=new c.default(this.ops);let v=0;for(;p.hasNext()&&v<=f;){const b=p.peekLength(),S=p.peekType();if(p.next(),S==="delete"){f-=Math.min(b,f-v);continue}else S==="insert"&&(v<f||!g)&&(f+=b);v+=b}return f}}d.Op=a.default,d.OpIterator=c.default,d.AttributeMap=o.default,d.handlers={},e.default=d,n.exports=d,n.exports.default=d}(Rs,Rs.exports)),Rs.exports}var Lt=Mv();const Te=vi(Lt);class qt extends Rt{static value(){}optimize(){(this.prev||this.next)&&this.remove()}length(){return 0}value(){return""}}qt.blotName="break",qt.tagName="BR";let zt=class extends Cs{};const Dv={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function Bs(n){return n.replace(/[&<>"']/g,e=>Dv[e])}const sn=class sn extends qi{static compare(e,t){const r=sn.order.indexOf(e),s=sn.order.indexOf(t);return r>=0||s>=0?r-s:e===t?0:e<t?-1:1}formatAt(e,t,r,s){if(sn.compare(this.statics.blotName,r)<0&&this.scroll.query(r,Ne.BLOT)){const o=this.isolate(e,t);s&&o.wrap(r,s)}else super.formatAt(e,t,r,s)}optimize(e){if(super.optimize(e),this.parent instanceof sn&&sn.compare(this.statics.blotName,this.parent.statics.blotName)>0){const t=this.parent.isolate(this.offset(),this.length());this.moveChildren(t),t.wrap(this)}}};Ee(sn,"allowedChildren",[sn,qt,Rt,zt]),Ee(sn,"order",["cursor","inline","link","underline","strike","italic","bold","script","code"]);let nn=sn;const sc=1;class ht extends Fr{constructor(){super(...arguments);Ee(this,"cache",{})}delta(){return this.cache.delta==null&&(this.cache.delta=ic(this)),this.cache.delta}deleteAt(t,r){super.deleteAt(t,r),this.cache={}}formatAt(t,r,s,o){r<=0||(this.scroll.query(s,Ne.BLOCK)?t+r===this.length()&&this.format(s,o):super.formatAt(t,Math.min(r,this.length()-t-1),s,o),this.cache={})}insertAt(t,r,s){if(s!=null){super.insertAt(t,r,s),this.cache={};return}if(r.length===0)return;const o=r.split(`
19
- `),a=o.shift();a.length>0&&(t<this.length()-1||this.children.tail==null?super.insertAt(Math.min(t,this.length()-1),a):this.children.tail.insertAt(this.children.tail.length(),a),this.cache={});let c=this;o.reduce((i,u)=>(c=c.split(i,!0),c.insertAt(0,u),u.length),t+a.length)}insertBefore(t,r){const{head:s}=this.children;super.insertBefore(t,r),s instanceof qt&&s.remove(),this.cache={}}length(){return this.cache.length==null&&(this.cache.length=super.length()+sc),this.cache.length}moveChildren(t,r){super.moveChildren(t,r),this.cache={}}optimize(t){super.optimize(t),this.cache={}}path(t){return super.path(t,!0)}removeChild(t){super.removeChild(t),this.cache={}}split(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(r&&(t===0||t>=this.length()-sc)){const o=this.clone();return t===0?(this.parent.insertBefore(o,this),this):(this.parent.insertBefore(o,this.next),o)}const s=super.split(t,r);return this.cache={},s}}ht.blotName="block",ht.tagName="P",ht.defaultChild=qt,ht.allowedChildren=[qt,nn,Rt,zt];class Bt extends Rt{attach(){super.attach(),this.attributes=new Ns(this.domNode)}delta(){return new Te().insert(this.value(),{...this.formats(),...this.attributes.values()})}format(e,t){const r=this.scroll.query(e,Ne.BLOCK_ATTRIBUTE);r!=null&&this.attributes.attribute(r,t)}formatAt(e,t,r,s){this.format(r,s)}insertAt(e,t,r){if(r!=null){super.insertAt(e,t,r);return}const s=t.split(`
20
- `),o=s.pop(),a=s.map(i=>{const u=this.scroll.create(ht.blotName);return u.insertAt(0,i),u}),c=this.split(e);a.forEach(i=>{this.parent.insertBefore(i,c)}),o&&this.parent.insertBefore(this.scroll.create("text",o),c)}}Bt.scope=Ne.BLOCK_BLOT;function ic(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return n.descendants(vt).reduce((t,r)=>r.length()===0?t:t.insert(r.value(),Pt(r,{},e)),new Te).insert(`
21
- `,Pt(n))}function Pt(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return n==null||("formats"in n&&typeof n.formats=="function"&&(e={...e,...n.formats()},t&&delete e["code-token"]),n.parent==null||n.parent.statics.blotName==="scroll"||n.parent.statics.scope!==n.statics.scope)?e:Pt(n.parent,e,t)}const Mt=class Mt extends Rt{static value(){}constructor(e,t,r){super(e,t),this.selection=r,this.textNode=document.createTextNode(Mt.CONTENTS),this.domNode.appendChild(this.textNode),this.savedLength=0}detach(){this.parent!=null&&this.parent.removeChild(this)}format(e,t){if(this.savedLength!==0){super.format(e,t);return}let r=this,s=0;for(;r!=null&&r.statics.scope!==Ne.BLOCK_BLOT;)s+=r.offset(r.parent),r=r.parent;r!=null&&(this.savedLength=Mt.CONTENTS.length,r.optimize(),r.formatAt(s,Mt.CONTENTS.length,e,t),this.savedLength=0)}index(e,t){return e===this.textNode?0:super.index(e,t)}length(){return this.savedLength}position(){return[this.textNode,this.textNode.data.length]}remove(){super.remove(),this.parent=null}restore(){if(this.selection.composing||this.parent==null)return null;const e=this.selection.getNativeRange();for(;this.domNode.lastChild!=null&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);const t=this.prev instanceof zt?this.prev:null,r=t?t.length():0,s=this.next instanceof zt?this.next:null,o=s?s.text:"",{textNode:a}=this,c=a.data.split(Mt.CONTENTS).join("");a.data=Mt.CONTENTS;let i;if(t)i=t,(c||s)&&(t.insertAt(t.length(),c+o),s&&s.remove());else if(s)i=s,s.insertAt(0,c);else{const u=document.createTextNode(c);i=this.scroll.create(u),this.parent.insertBefore(i,this)}if(this.remove(),e){const u=(f,g)=>t&&f===t.domNode?g:f===a?r+g-1:s&&f===s.domNode?r+c.length+g:null,d=u(e.start.node,e.start.offset),h=u(e.end.node,e.end.offset);if(d!==null&&h!==null)return{startNode:i.domNode,startOffset:d,endNode:i.domNode,endOffset:h}}return null}update(e,t){if(e.some(r=>r.type==="characterData"&&r.target===this.textNode)){const r=this.restore();r&&(t.range=r)}}optimize(e){super.optimize(e);let{parent:t}=this;for(;t;){if(t.domNode.tagName==="A"){this.savedLength=Mt.CONTENTS.length,t.isolate(this.offset(t),this.length()).unwrap(),this.savedLength=0;break}t=t.parent}}value(){return""}};Ee(Mt,"blotName","cursor"),Ee(Mt,"className","ql-cursor"),Ee(Mt,"tagName","span"),Ee(Mt,"CONTENTS","\uFEFF");let ar=Mt;var Ki={exports:{}},ac;function Uv(){return ac||(ac=1,function(n){var e=Object.prototype.hasOwnProperty,t="~";function r(){}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(t=!1));function s(i,u,d){this.fn=i,this.context=u,this.once=d||!1}function o(i,u,d,h,f){if(typeof d!="function")throw new TypeError("The listener must be a function");var g=new s(d,h||i,f),p=t?t+u:u;return i._events[p]?i._events[p].fn?i._events[p]=[i._events[p],g]:i._events[p].push(g):(i._events[p]=g,i._eventsCount++),i}function a(i,u){--i._eventsCount===0?i._events=new r:delete i._events[u]}function c(){this._events=new r,this._eventsCount=0}c.prototype.eventNames=function(){var u=[],d,h;if(this._eventsCount===0)return u;for(h in d=this._events)e.call(d,h)&&u.push(t?h.slice(1):h);return Object.getOwnPropertySymbols?u.concat(Object.getOwnPropertySymbols(d)):u},c.prototype.listeners=function(u){var d=t?t+u:u,h=this._events[d];if(!h)return[];if(h.fn)return[h.fn];for(var f=0,g=h.length,p=new Array(g);f<g;f++)p[f]=h[f].fn;return p},c.prototype.listenerCount=function(u){var d=t?t+u:u,h=this._events[d];return h?h.fn?1:h.length:0},c.prototype.emit=function(u,d,h,f,g,p){var v=t?t+u:u;if(!this._events[v])return!1;var b=this._events[v],S=arguments.length,T,R;if(b.fn){switch(b.once&&this.removeListener(u,b.fn,void 0,!0),S){case 1:return b.fn.call(b.context),!0;case 2:return b.fn.call(b.context,d),!0;case 3:return b.fn.call(b.context,d,h),!0;case 4:return b.fn.call(b.context,d,h,f),!0;case 5:return b.fn.call(b.context,d,h,f,g),!0;case 6:return b.fn.call(b.context,d,h,f,g,p),!0}for(R=1,T=new Array(S-1);R<S;R++)T[R-1]=arguments[R];b.fn.apply(b.context,T)}else{var F=b.length,M;for(R=0;R<F;R++)switch(b[R].once&&this.removeListener(u,b[R].fn,void 0,!0),S){case 1:b[R].fn.call(b[R].context);break;case 2:b[R].fn.call(b[R].context,d);break;case 3:b[R].fn.call(b[R].context,d,h);break;case 4:b[R].fn.call(b[R].context,d,h,f);break;default:if(!T)for(M=1,T=new Array(S-1);M<S;M++)T[M-1]=arguments[M];b[R].fn.apply(b[R].context,T)}}return!0},c.prototype.on=function(u,d,h){return o(this,u,d,h,!1)},c.prototype.once=function(u,d,h){return o(this,u,d,h,!0)},c.prototype.removeListener=function(u,d,h,f){var g=t?t+u:u;if(!this._events[g])return this;if(!d)return a(this,g),this;var p=this._events[g];if(p.fn)p.fn===d&&(!f||p.once)&&(!h||p.context===h)&&a(this,g);else{for(var v=0,b=[],S=p.length;v<S;v++)(p[v].fn!==d||f&&!p[v].once||h&&p[v].context!==h)&&b.push(p[v]);b.length?this._events[g]=b.length===1?b[0]:b:a(this,g)}return this},c.prototype.removeAllListeners=function(u){var d;return u?(d=t?t+u:u,this._events[d]&&a(this,d)):(this._events=new r,this._eventsCount=0),this},c.prototype.off=c.prototype.removeListener,c.prototype.addListener=c.prototype.on,c.prefixed=t,c.EventEmitter=c,n.exports=c}(Ki)),Ki.exports}var jv=Uv();const Vv=vi(jv),Xi=new WeakMap,Yi=["error","warn","log","info"];let Zi="warn";function oc(n){if(Zi&&Yi.indexOf(n)<=Yi.indexOf(Zi)){for(var e=arguments.length,t=new Array(e>1?e-1:0),r=1;r<e;r++)t[r-1]=arguments[r];console[n](...t)}}function fn(n){return Yi.reduce((e,t)=>(e[t]=oc.bind(console,t,n),e),{})}fn.level=n=>{Zi=n},oc.level=fn.level;const Qi=fn("quill:events");["selectionchange","mousedown","mouseup","click"].forEach(n=>{document.addEventListener(n,function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];Array.from(document.querySelectorAll(".ql-container")).forEach(s=>{const o=Xi.get(s);o&&o.emitter&&o.emitter.handleDOM(...t)})})});class Se extends Vv{constructor(){super(),this.domListeners={},this.on("error",Qi.error)}emit(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Qi.log.call(Qi,...t),super.emit(...t)}handleDOM(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),s=1;s<t;s++)r[s-1]=arguments[s];(this.domListeners[e.type]||[]).forEach(o=>{let{node:a,handler:c}=o;(e.target===a||a.contains(e.target))&&c(e,...r)})}listenDOM(e,t,r){this.domListeners[e]||(this.domListeners[e]=[]),this.domListeners[e].push({node:t,handler:r})}}Ee(Se,"events",{EDITOR_CHANGE:"editor-change",SCROLL_BEFORE_UPDATE:"scroll-before-update",SCROLL_BLOT_MOUNT:"scroll-blot-mount",SCROLL_BLOT_UNMOUNT:"scroll-blot-unmount",SCROLL_OPTIMIZE:"scroll-optimize",SCROLL_UPDATE:"scroll-update",SCROLL_EMBED_UPDATE:"scroll-embed-update",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change",COMPOSITION_BEFORE_START:"composition-before-start",COMPOSITION_START:"composition-start",COMPOSITION_BEFORE_END:"composition-before-end",COMPOSITION_END:"composition-end"}),Ee(Se,"sources",{API:"api",SILENT:"silent",USER:"user"});const Ji=fn("quill:selection");class $n{constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;this.index=e,this.length=t}}class $v{constructor(e,t){this.emitter=t,this.scroll=e,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=this.scroll.create("cursor",this),this.savedRange=new $n(0,0),this.lastRange=this.savedRange,this.lastNative=null,this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,()=>{!this.mouseDown&&!this.composing&&setTimeout(this.update.bind(this,Se.sources.USER),1)}),this.emitter.on(Se.events.SCROLL_BEFORE_UPDATE,()=>{if(!this.hasFocus())return;const r=this.getNativeRange();r!=null&&r.start.node!==this.cursor.textNode&&this.emitter.once(Se.events.SCROLL_UPDATE,(s,o)=>{try{this.root.contains(r.start.node)&&this.root.contains(r.end.node)&&this.setNativeRange(r.start.node,r.start.offset,r.end.node,r.end.offset);const a=o.some(c=>c.type==="characterData"||c.type==="childList"||c.type==="attributes"&&c.target===this.root);this.update(a?Se.sources.SILENT:s)}catch{}})}),this.emitter.on(Se.events.SCROLL_OPTIMIZE,(r,s)=>{if(s.range){const{startNode:o,startOffset:a,endNode:c,endOffset:i}=s.range;this.setNativeRange(o,a,c,i),this.update(Se.sources.SILENT)}}),this.update(Se.sources.SILENT)}handleComposition(){this.emitter.on(Se.events.COMPOSITION_BEFORE_START,()=>{this.composing=!0}),this.emitter.on(Se.events.COMPOSITION_END,()=>{if(this.composing=!1,this.cursor.parent){const e=this.cursor.restore();if(!e)return;setTimeout(()=>{this.setNativeRange(e.startNode,e.startOffset,e.endNode,e.endOffset)},1)}})}handleDragging(){this.emitter.listenDOM("mousedown",document.body,()=>{this.mouseDown=!0}),this.emitter.listenDOM("mouseup",document.body,()=>{this.mouseDown=!1,this.update(Se.sources.USER)})}focus(){this.hasFocus()||(this.root.focus({preventScroll:!0}),this.setRange(this.savedRange))}format(e,t){this.scroll.update();const r=this.getNativeRange();if(!(r==null||!r.native.collapsed||this.scroll.query(e,Ne.BLOCK))){if(r.start.node!==this.cursor.textNode){const s=this.scroll.find(r.start.node,!1);if(s==null)return;if(s instanceof vt){const o=s.split(r.start.offset);s.parent.insertBefore(this.cursor,o)}else s.insertBefore(this.cursor,r.start.node);this.cursor.attach()}this.cursor.format(e,t),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}getBounds(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;const r=this.scroll.length();e=Math.min(e,r-1),t=Math.min(e+t,r-1)-e;let s,[o,a]=this.scroll.leaf(e);if(o==null)return null;if(t>0&&a===o.length()){const[d]=this.scroll.leaf(e+1);if(d){const[h]=this.scroll.line(e),[f]=this.scroll.line(e+1);h===f&&(o=d,a=0)}}[s,a]=o.position(a,!0);const c=document.createRange();if(t>0)return c.setStart(s,a),[o,a]=this.scroll.leaf(e+t),o==null?null:([s,a]=o.position(a,!0),c.setEnd(s,a),c.getBoundingClientRect());let i="left",u;if(s instanceof Text){if(!s.data.length)return null;a<s.data.length?(c.setStart(s,a),c.setEnd(s,a+1)):(c.setStart(s,a-1),c.setEnd(s,a),i="right"),u=c.getBoundingClientRect()}else{if(!(o.domNode instanceof Element))return null;u=o.domNode.getBoundingClientRect(),a>0&&(i="right")}return{bottom:u.top+u.height,height:u.height,left:u[i],right:u[i],top:u.top,width:0}}getNativeRange(){const e=document.getSelection();if(e==null||e.rangeCount<=0)return null;const t=e.getRangeAt(0);if(t==null)return null;const r=this.normalizeNative(t);return Ji.info("getNativeRange",r),r}getRange(){const e=this.scroll.domNode;if("isConnected"in e&&!e.isConnected)return[null,null];const t=this.getNativeRange();return t==null?[null,null]:[this.normalizedToRange(t),t]}hasFocus(){return document.activeElement===this.root||document.activeElement!=null&&ea(this.root,document.activeElement)}normalizedToRange(e){const t=[[e.start.node,e.start.offset]];e.native.collapsed||t.push([e.end.node,e.end.offset]);const r=t.map(a=>{const[c,i]=a,u=this.scroll.find(c,!0),d=u.offset(this.scroll);return i===0?d:u instanceof vt?d+u.index(c,i):d+u.length()}),s=Math.min(Math.max(...r),this.scroll.length()-1),o=Math.min(s,...r);return new $n(o,s-o)}normalizeNative(e){if(!ea(this.root,e.startContainer)||!e.collapsed&&!ea(this.root,e.endContainer))return null;const t={start:{node:e.startContainer,offset:e.startOffset},end:{node:e.endContainer,offset:e.endOffset},native:e};return[t.start,t.end].forEach(r=>{let{node:s,offset:o}=r;for(;!(s instanceof Text)&&s.childNodes.length>0;)if(s.childNodes.length>o)s=s.childNodes[o],o=0;else if(s.childNodes.length===o)s=s.lastChild,s instanceof Text?o=s.data.length:s.childNodes.length>0?o=s.childNodes.length:o=s.childNodes.length+1;else break;r.node=s,r.offset=o}),t}rangeToNative(e){const t=this.scroll.length(),r=(s,o)=>{s=Math.min(t-1,s);const[a,c]=this.scroll.leaf(s);return a?a.position(c,o):[null,-1]};return[...r(e.index,!1),...r(e.index+e.length,!0)]}setNativeRange(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e,s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:t,o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(Ji.info("setNativeRange",e,t,r,s),e!=null&&(this.root.parentNode==null||e.parentNode==null||r.parentNode==null))return;const a=document.getSelection();if(a!=null)if(e!=null){this.hasFocus()||this.root.focus({preventScroll:!0});const{native:c}=this.getNativeRange()||{};if(c==null||o||e!==c.startContainer||t!==c.startOffset||r!==c.endContainer||s!==c.endOffset){e instanceof Element&&e.tagName==="BR"&&(t=Array.from(e.parentNode.childNodes).indexOf(e),e=e.parentNode),r instanceof Element&&r.tagName==="BR"&&(s=Array.from(r.parentNode.childNodes).indexOf(r),r=r.parentNode);const i=document.createRange();i.setStart(e,t),i.setEnd(r,s),a.removeAllRanges(),a.addRange(i)}}else a.removeAllRanges(),this.root.blur()}setRange(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Se.sources.API;if(typeof t=="string"&&(r=t,t=!1),Ji.info("setRange",e),e!=null){const s=this.rangeToNative(e);this.setNativeRange(...s,t)}else this.setNativeRange(null);this.update(r)}update(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Se.sources.USER;const t=this.lastRange,[r,s]=this.getRange();if(this.lastRange=r,this.lastNative=s,this.lastRange!=null&&(this.savedRange=this.lastRange),!$i(t,this.lastRange)){if(!this.composing&&s!=null&&s.native.collapsed&&s.start.node!==this.cursor.textNode){const a=this.cursor.restore();a&&this.setNativeRange(a.startNode,a.startOffset,a.endNode,a.endOffset)}const o=[Se.events.SELECTION_CHANGE,er(this.lastRange),er(t),e];this.emitter.emit(Se.events.EDITOR_CHANGE,...o),e!==Se.sources.SILENT&&this.emitter.emit(...o)}}}function ea(n,e){try{e.parentNode}catch{return!1}return n.contains(e)}const _v=/^[ -~]*$/;class qv{constructor(e){this.scroll=e,this.delta=this.getDelta()}applyDelta(e){this.scroll.update();let t=this.scroll.length();this.scroll.batchStart();const r=lc(e),s=new Te;return Hv(r.ops.slice()).reduce((a,c)=>{const i=Lt.Op.length(c);let u=c.attributes||{},d=!1,h=!1;if(c.insert!=null){if(s.retain(i),typeof c.insert=="string"){const p=c.insert;h=!p.endsWith(`
22
- `)&&(t<=a||!!this.scroll.descendant(Bt,a)[0]),this.scroll.insertAt(a,p);const[v,b]=this.scroll.line(a);let S=Sn({},Pt(v));if(v instanceof ht){const[T]=v.descendant(vt,b);T&&(S=Sn(S,Pt(T)))}u=Lt.AttributeMap.diff(S,u)||{}}else if(typeof c.insert=="object"){const p=Object.keys(c.insert)[0];if(p==null)return a;const v=this.scroll.query(p,Ne.INLINE)!=null;if(v)(t<=a||this.scroll.descendant(Bt,a)[0])&&(h=!0);else if(a>0){const[b,S]=this.scroll.descendant(vt,a-1);b instanceof zt?b.value()[S]!==`
23
- `&&(d=!0):b instanceof Rt&&b.statics.scope===Ne.INLINE_BLOT&&(d=!0)}if(this.scroll.insertAt(a,p,c.insert[p]),v){const[b]=this.scroll.descendant(vt,a);if(b){const S=Sn({},Pt(b));u=Lt.AttributeMap.diff(S,u)||{}}}}t+=i}else if(s.push(c),c.retain!==null&&typeof c.retain=="object"){const p=Object.keys(c.retain)[0];if(p==null)return a;this.scroll.updateEmbedAt(a,p,c.retain[p])}Object.keys(u).forEach(p=>{this.scroll.formatAt(a,i,p,u[p])});const f=d?1:0,g=h?1:0;return t+=f+g,s.retain(f),s.delete(g),a+i+f+g},0),s.reduce((a,c)=>typeof c.delete=="number"?(this.scroll.deleteAt(a,c.delete),a):a+Lt.Op.length(c),0),this.scroll.batchEnd(),this.scroll.optimize(),this.update(r)}deleteText(e,t){return this.scroll.deleteAt(e,t),this.update(new Te().retain(e).delete(t))}formatLine(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.scroll.update(),Object.keys(r).forEach(o=>{this.scroll.lines(e,Math.max(t,1)).forEach(a=>{a.format(o,r[o])})}),this.scroll.optimize();const s=new Te().retain(e).retain(t,er(r));return this.update(s)}formatText(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.keys(r).forEach(o=>{this.scroll.formatAt(e,t,o,r[o])});const s=new Te().retain(e).retain(t,er(r));return this.update(s)}getContents(e,t){return this.delta.slice(e,e+t)}getDelta(){return this.scroll.lines().reduce((e,t)=>e.concat(t.delta()),new Te)}getFormat(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=[],s=[];t===0?this.scroll.path(e).forEach(c=>{const[i]=c;i instanceof ht?r.push(i):i instanceof vt&&s.push(i)}):(r=this.scroll.lines(e,t),s=this.scroll.descendants(vt,e,t));const[o,a]=[r,s].map(c=>{const i=c.shift();if(i==null)return{};let u=Pt(i);for(;Object.keys(u).length>0;){const d=c.shift();if(d==null)return u;u=zv(Pt(d),u)}return u});return{...o,...a}}getHTML(e,t){const[r,s]=this.scroll.line(e);if(r){const o=r.length();return r.length()>=s+t&&!(s===0&&t===o)?Ur(r,s,t,!0):Ur(this.scroll,e,t,!0)}return""}getText(e,t){return this.getContents(e,t).filter(r=>typeof r.insert=="string").map(r=>r.insert).join("")}insertContents(e,t){const r=lc(t),s=new Te().retain(e).concat(r);return this.scroll.insertContents(e,r),this.update(s)}insertEmbed(e,t,r){return this.scroll.insertAt(e,t,r),this.update(new Te().retain(e).insert({[t]:r}))}insertText(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return t=t.replace(/\r\n/g,`
17
+ */const Ba=["viewport","carousel"],ys={"bottom-to-top":"btt","left-to-right":"ltr","right-to-left":"rtl","top-to-bottom":"ttb"},Pa=["ltr","left-to-right","rtl","right-to-left","ttb","top-to-bottom","btt","bottom-to-top"],rp={ariaGallery:"Gallery",ariaNavigateToPage:"Navigate to page {slideNumber}",ariaNavigateToSlide:"Navigate to slide {slideNumber}",ariaNextSlide:"Navigate to next slide",ariaPreviousSlide:"Navigate to previous slide",iconArrowDown:"Arrow pointing downwards",iconArrowLeft:"Arrow pointing to the left",iconArrowRight:"Arrow pointing to the right",iconArrowUp:"Arrow pointing upwards",itemXofY:"Item {currentSlide} of {slidesCount}"},Fa=["slide","fade"],Ma=["center","start","end","center-even","center-odd"],Da=10,bs=.3,nt={autoplay:0,breakpointMode:Ba[0],breakpoints:void 0,dir:Pa[0],enabled:!0,gap:0,height:"auto",i18n:rp,ignoreAnimations:!1,itemsToScroll:1,itemsToShow:1,modelValue:0,mouseDrag:!0,mouseWheel:!1,pauseAutoplayOnHover:!1,preventExcessiveDragging:!1,slideEffect:Fa[0],snapAlign:Ma[0],touchDrag:!0,transition:300,wrapAround:!1},Fn=Symbol("carousel"),sp=n=>{const e=a.shallowReactive([]),t=r=>{r!==void 0?e.slice(r).forEach((s,l)=>{var o;(o=s.exposed)===null||o===void 0||o.setIndex(r+l)}):e.forEach((s,l)=>{var o;(o=s.exposed)===null||o===void 0||o.setIndex(l)})};return{cleanup:()=>{e.splice(0,e.length)},getSlides:()=>e,registerSlide:(r,s)=>{if(!r||r.props.isClone)return;const l=s??e.length;e.splice(l,0,r),t(l),n("slide-registered",{slide:r,index:l})},unregisterSlide:r=>{const s=e.indexOf(r);s!==-1&&(n("slide-unregistered",{slide:r,index:s}),e.splice(s,1),t(s))}}};function ip(n){return n.length===0?0:n.reduce((t,r)=>t+r,0)/n.length}function Ua({slides:n,position:e,toShow:t}){const r=[],s=e==="before",l=s?-t:0,o=s?0:t;if(n.length<=0)return r;for(let c=l;c<o;c++){const u={index:s?c:c+n.length,isClone:!0,id:void 0,key:`clone-${e}-${c}`},d=n[(c%n.length+n.length)%n.length].vnode,h=a.cloneVNode(d,u);h.el=null,r.push(h)}return r}const op='a[href], button, input, textarea, select, details, [tabindex]:not([tabindex="-1"])';function ja(n){if(!n.el||!(n.el instanceof Element))return;const e=n.el.querySelectorAll(op);for(const t of e)t instanceof HTMLElement&&!t.hasAttribute("disabled")&&t.getAttribute("aria-hidden")!=="true"&&t.setAttribute("tabindex","-1")}function ap(n,e){return Object.keys(n).filter(t=>!e.includes(t)).reduce((t,r)=>(t[r]=n[r],t),{})}function lp(n){const{isVertical:e,isReversed:t,dragged:r,effectiveSlideSize:s,threshold:l}=n,o=e?r.y:r.x;if(o===0)return 0;const c=o/s,i=Math.abs(c);if(i<l)return 0;const u=i<1?Math.sign(c):Math.round(c);return t?u:-u}function cn({val:n,max:e,min:t}){return e<t?n:Math.min(Math.max(n,isNaN(t)?n:t),isNaN(e)?n:e)}function cp(n){const{transform:e}=window.getComputedStyle(n);return e.split(/[(,)]/).slice(1,-1).map(t=>parseFloat(t))}function up(n){let e=1,t=1;return n.forEach(r=>{const s=cp(r);s.length===6&&(e/=s[0],t/=s[3])}),{widthMultiplier:e,heightMultiplier:t}}function dp(n,e){switch(n){case"start":return 0;case"center":case"center-odd":return(e-1)/2;case"center-even":return(e-2)/2;case"end":return e-1;default:return 0}}function fp(n,e,t){switch(n){case"start":return 0;case"center":case"center-odd":return(t-e)/2;case"center-even":return t/2-e;case"end":return t-e;default:return 0}}function wi({slideSize:n,viewportSize:e,align:t,itemsToShow:r}){return r!==void 0?dp(t,r):n!==void 0&&e!==void 0?fp(t,n,e):0}function Va(n="",e={}){return Object.entries(e).reduce((t,[r,s])=>t.replace(`{${r}}`,String(s)),n)}function $a({val:n,max:e,min:t=0}){const r=e-t+1;return((n-t)%r+r)%r+t}function Ai(n,e=0){let t=!1,r=0,s=null;function l(...o){if(t)return;t=!0;const c=()=>{s=requestAnimationFrame(i=>{i-r>e?(r=i,n(...o),t=!1):c()})};c()}return l.cancel=()=>{s&&(cancelAnimationFrame(s),s=null,t=!1)},l}function xs(n,e="px"){if(!(n==null||n===""))return typeof n=="number"||parseFloat(n).toString()===n?`${n}${e}`:n}const hp=a.defineComponent({name:"CarouselAria",setup(){const n=a.inject(Fn);return n?()=>a.h("div",{class:["carousel__liveregion","carousel__sr-only"],"aria-live":"polite","aria-atomic":"true"},Va(n.config.i18n.itemXofY,{currentSlide:n.currentSlide+1,slidesCount:n.slidesCount})):()=>""}});function pp(n){let e=!1;const t={x:0,y:0},r=a.reactive({x:0,y:0}),s=a.ref(!1),{isSliding:l}=n,o=a.computed(()=>typeof l=="boolean"?l:l.value),c=d=>{var h;const f=d.target.tagName;if(["INPUT","TEXTAREA","SELECT"].includes(f)||o.value||(e=d.type==="touchstart",e&&d.touches.length>1))return;if(!e&&(d.preventDefault(),d.button!==0))return;t.x=e?d.touches[0].clientX:d.clientX,t.y=e?d.touches[0].clientY:d.clientY;const g=e?"touchmove":"mousemove",p=e?"touchend":"mouseup";document.addEventListener(g,i,{passive:!1}),document.addEventListener(p,u,{passive:!0}),(h=n.onDragStart)===null||h===void 0||h.call(n)},i=Ai(d=>{var h;if(e&&d.touches.length>1)return;s.value=!0;const f=e?d.touches[0].clientX:d.clientX,g=e?d.touches[0].clientY:d.clientY;r.x=f-t.x,r.y=g-t.y,(h=n.onDrag)===null||h===void 0||h.call(n,{deltaX:r.x,deltaY:r.y,isTouch:e})}),u=()=>{var d;i.cancel();const h=Math.abs(r.x)+Math.abs(r.y);!e&&h>10&&window.addEventListener("click",p=>{p.preventDefault(),p.stopPropagation()},{once:!0,capture:!0}),(d=n.onDragEnd)===null||d===void 0||d.call(n),r.x=0,r.y=0,s.value=!1;const f=e?"touchmove":"mousemove",g=e?"touchend":"mouseup";document.removeEventListener(f,i),document.removeEventListener(g,u)};return{dragged:r,isDragging:s,handleDragStart:c}}function mp(){const n=a.ref(!1);return{isHover:n,handleMouseEnter:()=>{n.value=!0},handleMouseLeave:()=>{n.value=!1}}}function gp(n){const{isVertical:e,isSliding:t,config:r}=n,s=a.computed(()=>typeof e=="boolean"?e:e.value),l=a.computed(()=>typeof t=="boolean"?t:t.value);return{handleScroll:c=>{var i,u;if(c.preventDefault(),!r.mouseWheel||l.value)return;const d=typeof r.mouseWheel=="object"&&(i=r.mouseWheel.threshold)!==null&&i!==void 0?i:Da,h=Math.abs(c.deltaY)>d?c.deltaY:0,f=Math.abs(c.deltaX)>d?c.deltaX:0;if(h===0&&f===0)return;const g=s.value?h:f,v=(g!==0?g:s.value?f:h)>0;(u=n.onWheel)===null||u===void 0||u.call(n,{deltaX:f,deltaY:h,isScrollingForward:v})}}}const vp={autoplay:{default:nt.autoplay,type:Number},breakpoints:{default:nt.breakpoints,type:Object},breakpointMode:{default:nt.breakpointMode,validator(n){return Ba.includes(n)}},clamp:{type:Boolean},dir:{type:String,default:nt.dir,validator(n,e){if(!Pa.includes(n))return!1;const t=n in ys?ys[n]:n;return["ttb","btt"].includes(t)&&(!e.height||e.height==="auto")&&console.warn(`[vue3-carousel]: The dir "${n}" is not supported with height "auto".`),!0}},enabled:{default:nt.enabled,type:Boolean},gap:{default:nt.gap,type:Number},height:{default:nt.height,type:[Number,String]},i18n:{default:nt.i18n,type:Object},ignoreAnimations:{default:!1,type:[Array,Boolean,String]},itemsToScroll:{default:nt.itemsToScroll,type:Number},itemsToShow:{default:nt.itemsToShow,type:[Number,String]},modelValue:{default:void 0,type:Number},mouseDrag:{default:nt.mouseDrag,type:[Boolean,Object]},mouseWheel:{default:nt.mouseWheel,type:[Boolean,Object]},mouseScrollThreshold:{default:nt.mouseScrollThreshold,type:Number},pauseAutoplayOnHover:{default:nt.pauseAutoplayOnHover,type:Boolean},preventExcessiveDragging:{default:!1,type:Boolean,validator(n,e){return n&&e.wrapAround&&console.warn('[vue3-carousel]: "preventExcessiveDragging" cannot be used with wrapAround. The setting will be ignored.'),!0}},slideEffect:{type:String,default:nt.slideEffect,validator(n){return Fa.includes(n)}},snapAlign:{default:nt.snapAlign,validator(n){return Ma.includes(n)}},touchDrag:{default:nt.touchDrag,type:[Boolean,Object]},transition:{default:nt.transition,type:Number},wrapAround:{default:nt.wrapAround,type:Boolean}},yp=a.defineComponent({name:"VueCarousel",props:vp,emits:["before-init","drag","init","loop","slide-end","slide-registered","slide-start","slide-unregistered","update:modelValue","wheel"],setup(n,{slots:e,emit:t,expose:r}){var s;const l=sp(t),o=l.getSlides(),c=a.computed(()=>o.length),i=a.ref(null),u=a.ref(null),d=a.ref(0),h=a.computed(()=>Object.assign(Object.assign(Object.assign({},nt),ap(n,["breakpoints","modelValue"])),{i18n:Object.assign(Object.assign({},nt.i18n),n.i18n)})),f=a.shallowReactive(Object.assign({},h.value)),g=a.ref((s=n.modelValue)!==null&&s!==void 0?s:0),p=a.ref(g.value);a.watch(g,pe=>p.value=pe);const v=a.ref(0),b=a.computed(()=>Math.ceil((c.value-1)/2)),S=a.computed(()=>c.value-1),T=a.computed(()=>0);let k=null,F=null,M=null;const z=a.computed(()=>d.value+f.gap),X=a.computed(()=>{const pe=f.dir||"ltr";return pe in ys?ys[pe]:pe}),H=a.computed(()=>["rtl","btt"].includes(X.value)),re=a.computed(()=>["ttb","btt"].includes(X.value)),G=a.computed(()=>f.itemsToShow==="auto"),E=a.computed(()=>re.value?"height":"width");function P(){var pe;if(!he.value)return;const be=(h.value.breakpointMode==="carousel"?(pe=i.value)===null||pe===void 0?void 0:pe.getBoundingClientRect().width:typeof window<"u"?window.innerWidth:0)||0,Ce=Object.keys(n.breakpoints||{}).map(Re=>Number(Re)).sort((Re,$e)=>+$e-+Re),Ie={};Ce.some(Re=>be>=Re?(Object.assign(Ie,n.breakpoints[Re]),Ie.i18n&&Object.assign(Ie.i18n,h.value.i18n,n.breakpoints[Re].i18n),!0):!1),Object.assign(f,h.value,Ie),G.value||(f.itemsToShow=cn({val:Number(f.itemsToShow),max:n.clamp?c.value:1/0,min:1}))}const O=Ai(()=>{P(),te(),J()}),_=a.shallowReactive(new Set),j=a.ref([]);function V({widthMultiplier:pe,heightMultiplier:be}){j.value=o.map(Ce=>{var Ie;const Re=(Ie=Ce.exposed)===null||Ie===void 0?void 0:Ie.getBoundingRect();return{width:Re.width*pe,height:Re.height*be}})}const K=a.ref({width:0,height:0});function q({widthMultiplier:pe,heightMultiplier:be}){var Ce;const Ie=((Ce=u.value)===null||Ce===void 0?void 0:Ce.getBoundingClientRect())||{width:0,height:0};K.value={width:Ie.width*pe,height:Ie.height*be}}function J(){if(!u.value)return;const pe=up(_);if(q(pe),V(pe),G.value)d.value=ip(j.value.map(be=>be[E.value]));else{const be=Number(f.itemsToShow),Ce=(be-1)*f.gap;d.value=(K.value[E.value]-Ce)/be}}function te(){!f.wrapAround&&c.value>0&&(g.value=cn({val:g.value,max:S.value,min:T.value}))}const me=a.computed(()=>typeof n.ignoreAnimations=="string"?n.ignoreAnimations.split(","):Array.isArray(n.ignoreAnimations)?n.ignoreAnimations:n.ignoreAnimations?!1:[]);a.watchEffect(()=>te()),a.watchEffect(()=>{J()});let ge;const ve=pe=>{const be=pe.target;if(!(!(be!=null&&be.contains(i.value))||Array.isArray(me.value)&&me.value.includes(pe.animationName))&&(_.add(be),!ge)){const Ce=()=>{ge=requestAnimationFrame(()=>{J(),Ce()})};Ce()}},xe=pe=>{const be=pe.target;be&&_.delete(be),ge&&_.size===0&&(cancelAnimationFrame(ge),J())},he=a.ref(!1);typeof document<"u"&&a.watchEffect(()=>{he.value&&me.value!==!1?(document.addEventListener("animationstart",ve),document.addEventListener("animationend",xe)):(document.removeEventListener("animationstart",ve),document.removeEventListener("animationend",xe))}),a.onMounted(()=>{he.value=!0,P(),y(),i.value&&(M=new ResizeObserver(O),M.observe(i.value)),t("init")}),a.onBeforeUnmount(()=>{he.value=!1,l.cleanup(),F&&clearTimeout(F),ge&&cancelAnimationFrame(ge),k&&clearInterval(k),M&&(M.disconnect(),M=null),typeof document<"u"&&w(),i.value&&(i.value.removeEventListener("transitionend",J),i.value.removeEventListener("animationiteration",J))});const{isHover:Oe,handleMouseEnter:ye,handleMouseLeave:N}=mp(),R=Ai(pe=>{if(!pe.ctrlKey)switch(pe.key){case"ArrowLeft":case"ArrowUp":re.value===pe.key.endsWith("Up")&&(H.value?oe(!0):fe(!0));break;case"ArrowRight":case"ArrowDown":re.value===pe.key.endsWith("Down")&&(H.value?fe(!0):oe(!0));break}},200),w=()=>{document.removeEventListener("keydown",R)},C=()=>{document.addEventListener("keydown",R)};function y(){!f.autoplay||f.autoplay<=0||(k=setInterval(()=>{f.pauseAutoplayOnHover&&Oe.value||oe()},f.autoplay))}function x(){I(),y()}function I(){k&&(clearInterval(k),k=null)}const B=a.ref(!1),U=({deltaX:pe,deltaY:be,isTouch:Ce})=>{var Ie,Re,$e,Ke;t("drag",{deltaX:pe,deltaY:be});const et=Ce?typeof f.touchDrag=="object"&&(Re=(Ie=f.touchDrag)===null||Ie===void 0?void 0:Ie.threshold)!==null&&Re!==void 0?Re:bs:typeof f.mouseDrag=="object"&&(Ke=($e=f.mouseDrag)===null||$e===void 0?void 0:$e.threshold)!==null&&Ke!==void 0?Ke:bs,dt=lp({isVertical:re.value,isReversed:H.value,dragged:{x:pe,y:be},effectiveSlideSize:z.value,threshold:et});dt!==0&&(p.value=f.wrapAround?g.value+dt:cn({val:g.value+dt,max:S.value,min:T.value}))},$=()=>we(p.value),{dragged:W,isDragging:Z,handleDragStart:Y}=pp({isSliding:B,onDrag:U,onDragEnd:$}),Q=({deltaX:pe,deltaY:be,isScrollingForward:Ce})=>{t("wheel",{deltaX:pe,deltaY:be}),Ce?H.value?fe():oe():H.value?oe():fe()},{handleScroll:ne}=gp({isVertical:re,isSliding:B,config:f,onWheel:Q});function oe(pe=!1){we(g.value+f.itemsToScroll,pe)}function fe(pe=!1){we(g.value-f.itemsToScroll,pe)}function we(pe,be=!1){if(!be&&B.value)return;let Ce=pe,Ie=pe;v.value=g.value,f.wrapAround?Ie=$a({val:Ce,max:S.value,min:T.value}):Ce=cn({val:Ce,max:S.value,min:T.value}),t("slide-start",{slidingToIndex:pe,currentSlideIndex:g.value,prevSlideIndex:v.value,slidesCount:c.value}),I(),B.value=!0,g.value=Ce,Ie!==Ce&&Ge.pause(),t("update:modelValue",Ie),F=setTimeout(()=>{f.wrapAround&&Ie!==Ce&&(Ge.resume(),g.value=Ie,t("loop",{currentSlideIndex:g.value,slidingToIndex:pe})),t("slide-end",{currentSlideIndex:g.value,prevSlideIndex:v.value,slidesCount:c.value}),B.value=!1,x()},f.transition)}function De(){P(),te(),J(),x()}a.watch(()=>[h.value,n.breakpoints],()=>P(),{deep:!0}),a.watch(()=>n.autoplay,()=>x());const Ge=a.watch(()=>n.modelValue,pe=>{pe!==g.value&&we(Number(pe),!0)});t("before-init");const je=a.computed(()=>{if(!f.wrapAround)return{before:0,after:0};if(G.value)return{before:o.length,after:o.length};const pe=Number(f.itemsToShow),be=Math.ceil(pe+(f.itemsToScroll-1)),Ce=be-p.value,Ie=be-(c.value-(p.value+1));return{before:Math.max(0,Ce),after:Math.max(0,Ie)}}),Be=a.computed(()=>je.value.before?G.value?j.value.slice(-1*je.value.before).reduce((pe,be)=>pe+be[E.value]+f.gap,0)*-1:je.value.before*z.value*-1:0),Ve=a.computed(()=>{var pe;if(G.value){const be=(g.value%o.length+o.length)%o.length;return wi({slideSize:(pe=j.value[be])===null||pe===void 0?void 0:pe[E.value],viewportSize:K.value[E.value],align:f.snapAlign})}return wi({align:f.snapAlign,itemsToShow:+f.itemsToShow})}),rt=a.computed(()=>{let pe=0;if(G.value){if(g.value<0?pe=j.value.slice(g.value).reduce((be,Ce)=>be+Ce[E.value]+f.gap,0)*-1:pe=j.value.slice(0,g.value).reduce((be,Ce)=>be+Ce[E.value]+f.gap,0),pe-=Ve.value,!f.wrapAround){const be=j.value.reduce((Ce,Ie)=>Ce+Ie[E.value]+f.gap,0)-K.value[E.value]-f.gap;pe=cn({val:pe,max:be,min:0})}}else{let be=g.value-Ve.value;f.wrapAround||(be=cn({val:be,max:c.value-+f.itemsToShow,min:0})),pe=be*z.value}return pe*(H.value?1:-1)}),it=a.computed(()=>{var pe,be;if(!G.value){const Re=g.value-Ve.value;return f.wrapAround?{min:Math.floor(Re),max:Math.ceil(Re+Number(f.itemsToShow)-1)}:{min:Math.floor(cn({val:Re,max:c.value-Number(f.itemsToShow),min:0})),max:Math.ceil(cn({val:Re+Number(f.itemsToShow)-1,max:c.value-1,min:0}))}}let Ce=0;{let Re=0,$e=0-je.value.before;const Ke=Math.abs(rt.value+Be.value);for(;Re<=Ke;){const et=($e%o.length+o.length)%o.length;Re+=((pe=j.value[et])===null||pe===void 0?void 0:pe[E.value])+f.gap,$e++}Ce=$e-1}let Ie=0;{let Re=Ce,$e=0;for(Re<0?$e=j.value.slice(0,Re).reduce((Ke,et)=>Ke+et[E.value]+f.gap,0)-Math.abs(rt.value+Be.value):$e=j.value.slice(0,Re).reduce((Ke,et)=>Ke+et[E.value]+f.gap,0)-Math.abs(rt.value);$e<K.value[E.value];){const Ke=(Re%o.length+o.length)%o.length;$e+=((be=j.value[Ke])===null||be===void 0?void 0:be[E.value])+f.gap,Re++}Ie=Re-1}return{min:Math.floor(Ce),max:Math.ceil(Ie)}}),Dt=a.computed(()=>{if(f.slideEffect==="fade")return;const pe=re.value?"Y":"X",be=re.value?W.y:W.x;let Ce=rt.value+be;if(!f.wrapAround&&f.preventExcessiveDragging){let Ie=0;G.value?Ie=j.value.reduce((Ke,et)=>Ke+et[E.value],0):Ie=(c.value-Number(f.itemsToShow))*z.value;const Re=H.value?0:-1*Ie,$e=H.value?Ie:0;Ce=cn({val:Ce,min:Re,max:$e})}return`translate${pe}(${Ce}px)`}),bt=a.computed(()=>({"--vc-carousel-height":xs(f.height),"--vc-cloned-offset":xs(Be.value),"--vc-slide-gap":xs(f.gap),"--vc-transition-duration":B.value?xs(f.transition,"ms"):void 0})),_e={slideTo:we,next:oe,prev:fe},Pe=a.reactive({activeSlide:p,config:f,currentSlide:g,isSliding:B,isVertical:re,maxSlide:S,minSlide:T,nav:_e,normalizedDir:X,slideRegistry:l,slideSize:d,slides:o,slidesCount:c,viewport:u,visibleRange:it});a.provide(Fn,Pe);const We=a.reactive({config:f,currentSlide:g,maxSlide:S,middleSlide:b,minSlide:T,slideSize:d,slidesCount:c});return r(a.reactive(Object.assign({data:We,next:oe,prev:fe,restartCarousel:De,slideTo:we,updateBreakpointsConfig:P,updateSlideSize:J,updateSlidesData:te},a.toRefs(Pe)))),()=>{var pe;const be=e.default||e.slides,Ce=(be==null?void 0:be(We))||[],{before:Ie,after:Re}=je.value,$e=Ua({slides:o,position:"before",toShow:Ie}),Ke=Ua({slides:o,position:"after",toShow:Re}),et=[...$e,...Ce,...Ke];if(!f.enabled||!et.length)return a.h("section",{ref:i,class:["carousel","is-disabled"]},et);const dt=((pe=e.addons)===null||pe===void 0?void 0:pe.call(e,We))||[],ft=a.h("ol",{class:"carousel__track",onMousedownCapture:f.mouseDrag?Y:null,onTouchstartPassiveCapture:f.touchDrag?Y:null,onWheel:f.mouseWheel?ne:null,style:{transform:Dt.value}},et),Rt=a.h("div",{class:"carousel__viewport",ref:u},ft);return a.h("section",{ref:i,class:["carousel",`is-${X.value}`,`is-effect-${f.slideEffect}`,{"is-dragging":Z.value,"is-hover":Oe.value,"is-sliding":B.value,"is-vertical":re.value}],dir:X.value,style:bt.value,"aria-label":f.i18n.ariaGallery,tabindex:"0",onBlur:w,onFocus:C,onMouseenter:ye,onMouseleave:N},[Rt,dt,a.h(hp)])}}});var Si;(function(n){n.arrowDown="arrowDown",n.arrowLeft="arrowLeft",n.arrowRight="arrowRight",n.arrowUp="arrowUp"})(Si||(Si={}));const _a=n=>`icon${n.charAt(0).toUpperCase()+n.slice(1)}`,bp={arrowDown:"M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z",arrowLeft:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z",arrowRight:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z",arrowUp:"M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6-6 6z"};function xp(n){return n in Si}const qa=n=>n&&xp(n),za=a.defineComponent({props:{name:{type:String,required:!0,validator:qa},title:{type:String,default:n=>n.name?nt.i18n[_a(n.name)]:""}},setup(n){const e=a.inject(Fn,null);return()=>{const t=n.name;if(!t||!qa(t))return;const r=bp[t],s=a.h("path",{d:r}),l=(e==null?void 0:e.config.i18n[_a(t)])||n.title,o=a.h("title",l);return a.h("svg",{class:"carousel__icon",viewBox:"0 0 24 24",role:"img","aria-label":l},[o,s])}}});a.defineComponent({name:"CarouselNavigation",inheritAttrs:!1,props:{carousel:{type:Object}},setup(n,{slots:e,attrs:t}){let r=a.inject(Fn,null);const{next:s,prev:l}=e,o=()=>({btt:"arrowDown",ltr:"arrowLeft",rtl:"arrowRight",ttb:"arrowUp"})[r.normalizedDir],c=()=>({btt:"arrowUp",ltr:"arrowRight",rtl:"arrowLeft",ttb:"arrowDown"})[r.normalizedDir],i=a.computed(()=>!r.config.wrapAround&&r.currentSlide<=r.minSlide),u=a.computed(()=>!r.config.wrapAround&&r.currentSlide>=r.maxSlide);return()=>{if(n.carousel&&(r=n.carousel),!r)return console.warn("[vue3-carousel]: A carousel component must be provided for the navigation component to display"),"";const{i18n:d}=r.config,h=a.h("button",Object.assign(Object.assign({type:"button",disabled:i.value,"aria-label":d.ariaPreviousSlide,title:d.ariaPreviousSlide,onClick:r.nav.prev},t),{class:["carousel__prev",{"carousel__prev--disabled":i.value},t.class]}),(l==null?void 0:l())||a.h(za,{name:o()})),f=a.h("button",Object.assign(Object.assign({type:"button",disabled:u.value,"aria-label":d.ariaNextSlide,title:d.ariaNextSlide,onClick:r.nav.next},t),{class:["carousel__next",{"carousel__next--disabled":u.value},t.class]}),(s==null?void 0:s())||a.h(za,{name:c()}));return[h,f]}}}),a.defineComponent({name:"CarouselPagination",props:{disableOnClick:{type:Boolean},paginateByItemsToShow:{type:Boolean},carousel:{type:Object}},setup(n){let e=a.inject(Fn,null);const t=a.computed(()=>e.config.itemsToShow),r=a.computed(()=>wi({align:e.config.snapAlign,itemsToShow:t.value})),s=a.computed(()=>n.paginateByItemsToShow&&t.value>1),l=a.computed(()=>Math.ceil((e.activeSlide-r.value)/t.value)),o=a.computed(()=>Math.ceil(e.slidesCount/t.value)),c=i=>$a(s.value?{val:l.value,max:o.value-1,min:0}:{val:e.activeSlide,max:e.maxSlide,min:e.minSlide})===i;return()=>{var i,u;if(n.carousel&&(e=n.carousel),!e)return console.warn("[vue3-carousel]: A carousel component must be provided for the pagination component to display"),"";const d=[];for(let h=s.value?0:e.minSlide;h<=(s.value?o.value-1:e.maxSlide);h++){const f=Va(e.config.i18n[s.value?"ariaNavigateToPage":"ariaNavigateToSlide"],{slideNumber:h+1}),g=c(h),p=a.h("button",{type:"button",class:{"carousel__pagination-button":!0,"carousel__pagination-button--active":g},"aria-label":f,"aria-pressed":g,"aria-controls":(u=(i=e.slides[h])===null||i===void 0?void 0:i.exposed)===null||u===void 0?void 0:u.id,title:f,disabled:n.disableOnClick,onClick:()=>e.nav.slideTo(s.value?Math.floor(h*+e.config.itemsToShow+r.value):h)}),v=a.h("li",{class:"carousel__pagination-item",key:h},p);d.push(v)}return a.h("ol",{class:"carousel__pagination"},d)}}});const Ep=a.defineComponent({name:"CarouselSlide",props:{id:{type:String,default:n=>n.isClone?void 0:a.useId()},index:{type:Number,default:void 0},isClone:{type:Boolean,default:!1}},setup(n,{attrs:e,slots:t,expose:r}){const s=a.inject(Fn);if(a.provide(Fn,void 0),!s)return()=>"";const l=a.ref(n.index),o=p=>{l.value=p},c=a.getCurrentInstance(),i=()=>{const p=c.vnode.el;return p?p.getBoundingClientRect():{width:0,height:0}};r({id:n.id,setIndex:o,getBoundingRect:i});const u=a.computed(()=>l.value===s.activeSlide),d=a.computed(()=>l.value===s.activeSlide-1),h=a.computed(()=>l.value===s.activeSlide+1),f=a.computed(()=>l.value>=s.visibleRange.min&&l.value<=s.visibleRange.max),g=a.computed(()=>{if(s.config.itemsToShow==="auto")return;const p=s.config.itemsToShow,v=s.config.gap>0&&p>1?`calc(${100/p}% - ${s.config.gap*(p-1)/p}px)`:`${100/p}%`;return s.isVertical?{height:v}:{width:v}});return s.slideRegistry.registerSlide(c,n.index),a.onUnmounted(()=>{s.slideRegistry.unregisterSlide(c)}),n.isClone&&(a.onMounted(()=>{ja(c.vnode)}),a.onUpdated(()=>{ja(c.vnode)})),()=>{var p,v;return s.config.enabled?a.h("li",{style:[e.style,Object.assign({},g.value)],class:{carousel__slide:!0,"carousel__slide--clone":n.isClone,"carousel__slide--visible":f.value,"carousel__slide--active":u.value,"carousel__slide--prev":d.value,"carousel__slide--next":h.value,"carousel__slide--sliding":s.isSliding},onFocusin:()=>{s.viewport&&(s.viewport.scrollLeft=0),s.nav.slideTo(l.value)},id:n.isClone?void 0:n.id,"aria-hidden":n.isClone||void 0},(v=t.default)===null||v===void 0?void 0:v.call(t,{currentIndex:l.value,isActive:u.value,isClone:n.isClone,isPrev:d.value,isNext:h.value,isSliding:s.isSliding,isVisible:f.value})):(p=t.default)===null||p===void 0?void 0:p.call(t)}}}),wp={class:"flex h-[872px] w-full bg-navy-800 relative rounded-[48px] z-10"},Ap={class:"lg:p-8 p-4 flex relative w-full"},Sp={class:"lg:w-1/2 lg:pl-8 lg:pr-16 pl-4 pr-8 flex flex-col lg:mt-[218px] mt-[100px] absolute top-0 left-5 lg:relative"},Tp={class:"gap-2 flex z-10 mb-4"},Np=["onClick"],Op={class:"lg:text-[48px] text-[40px] font-semibold text-white mb-3 lg:leading-normal leading-[48px]"},Cp=["innerHTML"],kp={class:"flex gap-3 mt-8 flex-col lg:flex-row"},Rp=["href","target"],Ip=["href","target"],Lp=["src"],Bp={key:1,class:"rounded-[40px] h-[674px] max-w-[882px] lg:w-1/2 w-full object-cover",src:La},Pp=Sr({__name:"VSliderPresenter",props:{component:{required:!0,type:Object}},setup(n){const e=n,t=a.ref(0),s=a.ref(e.component).value.data.filter(o=>o.public),l=o=>o.startsWith("http")?o:`//${o}`;return(o,c)=>(a.openBlock(),a.createElementBlock("div",wp,[a.createVNode(a.unref(yp),{"items-to-show":1,modelValue:t.value,"onUpdate:modelValue":c[0]||(c[0]=i=>t.value=i),autoplay:5e3,class:"carousel w-full","wrap-around":!0},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(s),(i,u)=>(a.openBlock(),a.createBlock(a.unref(Ep),{key:u},{default:a.withCtx(()=>[a.createElementVNode("div",Ap,[a.createElementVNode("div",Sp,[a.createElementVNode("div",Tp,[a.unref(s).length>1?(a.openBlock(!0),a.createElementBlock(a.Fragment,{key:0},a.renderList(a.unref(s),(d,h)=>(a.openBlock(),a.createElementBlock("a",{onClick:f=>t.value=h,class:a.normalizeClass(["w-4 h-1 bg-navy-400 rounded-full cursor-pointer",{"!w-12 !bg-white":t.value===h}])},null,10,Np))),256)):a.createCommentVNode("",!0)]),a.createElementVNode("h3",Op,a.toDisplayString(i==null?void 0:i.title),1),a.createElementVNode("p",{class:"text-lg font-normal text-navy-50",innerHTML:i==null?void 0:i.description},null,8,Cp),a.createElementVNode("div",kp,[i.secondary_button.show?(a.openBlock(),a.createElementBlock("a",{key:0,class:"text-white text-base font-semibold border border-white px-6 py-2 rounded-full hover:bg-navy-800 hover:opacity-60",href:l(i.secondary_button.url),target:i.secondary_button.open_in_new_tab?"_blank":""},[a.createElementVNode("span",null,a.toDisplayString(i.secondary_button.label),1)],8,Rp)):a.createCommentVNode("",!0),i.primary_button.show?(a.openBlock(),a.createElementBlock("a",{key:1,class:"flex items-center gap-2 text-navy-800 bg-white text-base font-semibold border border-white px-6 py-2 rounded-full hover:bg-navy-50",href:l(i.primary_button.url),target:i.primary_button.open_in_new_tab?"_blank":""},[a.createTextVNode(a.toDisplayString(i.primary_button.label)+" ",1),a.createVNode(a.unref(vs),{class:"w-5 h-5"})],8,Ip)):a.createCommentVNode("",!0)])]),i.featured_image?(a.openBlock(),a.createElementBlock("img",{key:0,src:i.featured_image,alt:"Slide Image",class:"rounded-[40px] h-[674px] max-w-[882px] lg:w-1/2 w-full object-cover"},null,8,Lp)):(a.openBlock(),a.createElementBlock("img",Bp))])]),_:2},1024))),128))]),_:1},8,["modelValue"])]))}},[["__scopeId","data-v-960591f8"]]),Fp=["target","href"],Ha={__name:"VLinkPresenter",props:{component:{required:!0,type:Object}},setup(n){const e=n,t=a.ref(e.component),r=t.value.type==="link_grid";return(s,l)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["flex justify-center h-[136px] w-full relative rounded-b-[48px] bg-navy-600 -mt-12 gap-[60px]",{"bg-transparent !justify-start flex-wrap mt-8 !h-auto !gap-4":r}])},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(t.value.data,o=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["flex justify-center",{"!block":r}])},[a.createElementVNode("a",{target:o.open_in_new_tab?"_blank":"",href:o.url.startsWith("http")?o.url:`//${o.url}`,class:a.normalizeClass(["text-white flex gap-1.5 items-center cursor-pointer mt-12 text-sm font-semibold hover:text-gray-300",{"bg-white border border-gray-300 rounded-full !text-gray-700 px-4 h-[44px] w-max !mt-0 !text-base hover:bg-gray-100":r}])},[a.createElementVNode("span",null,a.toDisplayString(o.title),1),a.createVNode(a.unref(vs),{class:"w-5 h-5"})],10,Fp)],2))),256))],2))}},Mp={class:"rounded-[48px] max-w-[1392px] 1xl:max-w-[1824px] mx-auto w-full"},Dp={class:"md:px-[90px]"},Up={__name:"HeroHeader",props:{section:{required:!0,type:Object}},setup(n){const e=n,t=a.ref(e.section),r=a.ref({sliders:a.markRaw(Pp),links:a.markRaw(Ha)}),s=l=>l!=null&&l.type?r.value[l==null?void 0:l.type]:"";return(l,o)=>(a.openBlock(),a.createElementBlock("div",Mp,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(t.value.components,(c,i)=>(a.openBlock(),a.createElementBlock("div",Dp,[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(s(c)),{key:i,component:c},null,8,["component"]))]))),256))]))}},Ti={__name:"VHeaderPresenter",props:{component:{required:!0,type:Object}},setup(n){const e=n,t=a.ref(e.component);return(r,s)=>{var l,o,c,i,u,d,h;return a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["flex flex-col",{"items-center":(l=t.value)==null?void 0:l.center}])},[(o=t.value)!=null&&o.title?(a.openBlock(),a.createElementBlock("p",{key:0,class:a.normalizeClass(["pb-4 text-4xl font-semibold text-white",{"!text-gray-900":(c=t.value)==null?void 0:c.dark}])},a.toDisplayString((i=t.value)==null?void 0:i.title),3)):a.createCommentVNode("",!0),(u=t.value)!=null&&u.supporting_text?(a.openBlock(),a.createElementBlock("p",{key:1,class:a.normalizeClass(["text-navy-25 text-xl font-normal leading-[30px]",{"!text-navy-900":(d=t.value)==null?void 0:d.dark}])},a.toDisplayString((h=t.value)==null?void 0:h.supporting_text),3)):a.createCommentVNode("",!0)],2)}}},jp={xmlns:"http://www.w3.org/2000/svg",width:"341",height:"336",fill:"none"};function Vp(n,e){return a.openBlock(),a.createElementBlock("svg",jp,e[0]||(e[0]=[a.createElementVNode("path",{fill:"#78BDB5","fill-rule":"evenodd",d:"M198.752-176.557c89.734-37.714 189.985-82.087 275.305-35.237 89.35 49.062 132.236 156.992 132.061 258.925-.154 90.488-63.843 162.678-132.881 221.174-60.961 51.652-136.137 83.393-215.483 73.993-79.145-9.376-146.313-56.631-191.593-122.217C17.667 149.839-17.165 64.238 9.896-16.715c27.51-82.293 108.864-126.223 188.856-159.842","clip-rule":"evenodd"},null,-1)]))}const $p={render:Vp},_p={class:"w-full bg-navy-800 py-10 relative lg:h-[336px]"},qp={class:"max-w-[1400px] mx-auto w-full"},zp={class:"max-md:mx-[30px] max-1xl:mx-[120px] 1xl:mx-0 relative z-10"},Hp={class:"w-full md:w-3/4"},Gp={__name:"QuickLinks",props:{section:{required:!0,type:Object}},setup(n){const e=n,t=a.ref(e.section),r=a.ref({header:a.markRaw(Ti),link_grid:a.markRaw(Ha)}),s=l=>l!=null&&l.type?r.value[l==null?void 0:l.type]:"";return(l,o)=>(a.openBlock(),a.createElementBlock("div",_p,[a.createElementVNode("div",qp,[a.createElementVNode("div",zp,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(t.value.components,(c,i)=>(a.openBlock(),a.createElementBlock("div",Hp,[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(s(c)),{key:i,component:c},null,8,["component"]))]))),256))])]),a.createVNode(a.unref($p),{class:"absolute right-0 top-0"})]))}},Wp={class:"flex flex-col md:flex-row justify-center gap-4 items-stretch mt-6"},Kp={class:"flex-1 w-full md:w-1/2 flex flex-col"},Xp=["onClick"],Yp={class:"py-4 pl-4 md:pl-6"},Zp=["innerHTML"],Qp={class:"flex-1 w-full md:w-1/2 bg-transparent flex flex-col items-center"},Jp=["src"],em={key:1,class:"rounded-[20px] md:rounded-[40px] object-contain max-h-[200px] md:max-h-[387px] w-full",src:La,alt:"No Image Available"},tm=["target","href"],nm=Sr({__name:"VVerticalTabPresenter",props:{component:{required:!0,type:Object}},setup(n){const e=n,t=a.ref(e.component),r=a.ref(null),s=a.ref(t.value.data.filter(o=>o.public)),l=o=>{r.value=o};return a.onMounted(()=>{s.value.length>0&&l(s.value[0])}),(o,c)=>(a.openBlock(),a.createElementBlock("div",Wp,[a.createElementVNode("div",Kp,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(s.value,i=>(a.openBlock(),a.createElementBlock("div",{key:i.title},[a.createElementVNode("div",{class:a.normalizeClass(["flex-col flex gap-1.5 cursor-pointer mb-4 group",{"border-l-4 border-brand-600":r.value===i,"border-l-4 border-gray-100":r.value!==i}]),onClick:a.withModifiers(u=>l(i),["prevent"])},[a.createElementVNode("div",Yp,[a.createElementVNode("p",{class:a.normalizeClass([{"text-gray-900":r.value===i,"text-gray-600":r.value!==i},"text-lg md:text-xl font-semibold mb-2 group-hover:text-gray-900"])},a.toDisplayString(i.title),3),a.createElementVNode("p",{class:a.normalizeClass([{"text-gray-700":r.value===i,"text-gray-400":r.value!==i},"text-sm md:text-md font-normal group-hover:text-gray-700"]),innerHTML:i.description},null,10,Zp)])],10,Xp)]))),128))]),a.createElementVNode("div",Qp,[a.createVNode(a.Transition,{name:"fade",mode:"out-in"},{default:a.withCtx(()=>{var i,u,d,h,f,g,p,v,b,S;return[(a.openBlock(),a.createElementBlock("div",{class:"flex flex-col items-center",key:(i=r.value)==null?void 0:i.title},[(u=r.value)!=null&&u.featured_image?(a.openBlock(),a.createElementBlock("img",{key:0,src:r.value.featured_image,alt:"Selected Item Image",class:"rounded-[20px] md:rounded-[40px] object-contain max-h-[200px] md:max-h-[387px] w-full"},null,8,Jp)):(a.openBlock(),a.createElementBlock("img",em)),(h=(d=r.value)==null?void 0:d.primary_button)!=null&&h.show?(a.openBlock(),a.createElementBlock("a",{key:2,class:"text-sm md:text-md font-semibold text-brand-600 flex items-center gap-2 mt-4",target:(g=(f=r.value)==null?void 0:f.primary_button)!=null&&g.is_new_tab?"_blank":"",href:(v=(p=r.value)==null?void 0:p.primary_button)!=null&&v.url.startsWith("http")?r.value.primary_button.url:`//${r.value.primary_button.url}`},[a.createTextVNode(a.toDisplayString(((S=(b=r.value)==null?void 0:b.primary_button)==null?void 0:S.label)??"N/A")+" ",1),a.createVNode(a.unref(vs),{class:"w-4 h-4 md:w-5 md:h-5"})],8,tm)):a.createCommentVNode("",!0)]))]}),_:1})])]))}},[["__scopeId","data-v-e5b200c8"]]),rm={class:"max-w-[1400px] mx-auto w-full"},sm={class:"max-md:mx-[30px] max-1xl:mx-[120px] 1xl:mx-0 bg-navy-25 rounded-[48px] p-16"},im={__name:"VTabs",props:{section:{required:!0,type:Object}},setup(n){const e=n,t=a.ref(e.section),r=a.ref({header:a.markRaw(Ti),vertical_tabs:a.markRaw(nm)}),s=l=>l!=null&&l.type?r.value[l==null?void 0:l.type]:"";return(l,o)=>(a.openBlock(),a.createElementBlock("div",rm,[a.createElementVNode("div",sm,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(t.value.components,(c,i)=>(a.openBlock(),a.createElementBlock("div",null,[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(s(c)),{key:i,component:c},null,8,["component"]))]))),256))])]))}},om=["href"],am=["src"],lm={key:1,class:"text-sm"},cm={__name:"LogoCloud",props:{section:{required:!0,type:Object}},setup(n){const e=n,t=a.ref(e.section),r=t.value.display==="horizontal",s=l=>l==="small"?"h-[32px]":l==="medium"?"h-[40px]":"h-[32px]";return(l,o)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["w-full relative",{"bg-gray-50":!r}])},[a.createElementVNode("div",{class:a.normalizeClass(["1xl:max-w-[1824px] mx-auto relative flex justify-center items-center",{"py-8":r,"flex-col py-6":!r}])},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(t.value.components,(c,i)=>(a.openBlock(),a.createElementBlock("div",null,[(c==null?void 0:c.type)==="header"&&(c!=null&&c.supporting_text)?(a.openBlock(),a.createElementBlock("p",{key:0,class:a.normalizeClass(["mr-[48px] text-base text-gray-600 font-medium",{"mb-6":!r}])},a.toDisplayString(c==null?void 0:c.supporting_text),3)):a.createCommentVNode("",!0),(c==null?void 0:c.type)==="logos"?(a.openBlock(),a.createElementBlock("div",{key:1,class:a.normalizeClass(["flex flex-wrap justify-center",{"gap-6":r,"gap-12":!r}])},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(c.data,u=>(a.openBlock(),a.createElementBlock("a",{href:u==null?void 0:u.url,title:"Brand"},[u!=null&&u.logo?(a.openBlock(),a.createElementBlock("img",{key:0,src:u==null?void 0:u.logo,class:a.normalizeClass(s(c==null?void 0:c.height)),alt:"Brand Logo"},null,10,am)):(a.openBlock(),a.createElementBlock("span",lm,"No photo"))],8,om))),256))],2)):a.createCommentVNode("",!0)]))),256))],2)],2))}},um={xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"};function dm(n,e){return a.openBlock(),a.createElementBlock("svg",um,e[0]||(e[0]=[a.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 6v6l4 2m6-2c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10"},null,-1)]))}const fm={render:dm},hm={xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"};function pm(n,e){return a.openBlock(),a.createElementBlock("svg",hm,e[0]||(e[0]=[a.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M2 2h1.306c.246 0 .37 0 .468.045a.5.5 0 0 1 .213.185c.059.092.076.213.111.457L4.571 6m0 0 1.052 7.731c.134.982.2 1.472.435 1.841a2 2 0 0 0 .853.745c.398.183.893.183 1.883.183h8.558c.942 0 1.414 0 1.799-.17a2 2 0 0 0 .841-.696c.239-.346.327-.81.503-1.735l1.324-6.95c.062-.325.093-.488.048-.615a.5.5 0 0 0-.22-.266C21.532 6 21.366 6 21.034 6zM10 21a1 1 0 1 1-2 0 1 1 0 0 1 2 0m8 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0"},null,-1)]))}const mm={render:pm},gm={xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"};function vm(n,e){return a.openBlock(),a.createElementBlock("svg",gm,e[0]||(e[0]=[a.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m15 18-6-6 6-6"},null,-1)]))}const ym={render:vm},bm={xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"};function xm(n,e){return a.openBlock(),a.createElementBlock("svg",bm,e[0]||(e[0]=[a.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M8 8V7m0 5.5v-1M8 17v-1m-1.2 4h10.4c1.68 0 2.52 0 3.162-.327a3 3 0 0 0 1.311-1.311C22 17.72 22 16.88 22 15.2V8.8c0-1.68 0-2.52-.327-3.162a3 3 0 0 0-1.311-1.311C19.72 4 18.88 4 17.2 4H6.8c-1.68 0-2.52 0-3.162.327a3 3 0 0 0-1.311 1.311C2 6.28 2 7.12 2 8.8v6.4c0 1.68 0 2.52.327 3.162a3 3 0 0 0 1.311 1.311C4.28 20 5.12 20 6.8 20"},null,-1)]))}const Em={render:xm},wm={class:"relative"},Am={class:"mb-4"},Sm=["src"],Tm={key:0,class:"flex gap-2"},Nm={class:"text-[24px] font-semibold text-gray-900 mb-3 leading-[23px] mt-3"},Om=["innerHTML"],Cm={key:1,class:"flex gap-2 text-gray-600 mt-6 font-semibold"},km=["innerHTML"],Rm={key:2,class:"flex gap-2 text-gray-600 mt-2 font-semibold"},Im=["innerHTML"],Lm={class:"border-t border-gray-200 mt-4 pt-[17px] flex justify-between items-center"},Bm=["href"],Pm=["href"],Fm={class:"absolute top-[-65px] right-4 flex gap-4"},Mm={key:0,class:"flex justify-center mb-[40px]"},Dm=["href","target"],Um=4,jm={__name:"VCarouselPresenter",props:{component:{required:!0,type:Object},hasBackground:{type:Boolean,default:!0}},setup(n){var c;const e=n,t=a.ref(0),r=[...((c=e.component.content)==null?void 0:c.items)||[]],s=i=>i.startsWith("http")?i:`//${i}`,l=()=>{t.value<=r.length-Um&&t.value++},o=()=>{t.value>0&&t.value--};return(i,u)=>{var d;return a.openBlock(),a.createElementBlock("div",wm,[a.createElementVNode("div",{class:"slider-wrapper flex transition-transform duration-500 gap-0 mb-6",style:a.normalizeStyle({transform:`translateX(-${t.value*504}px)`})},[(a.openBlock(),a.createElementBlock(a.Fragment,null,a.renderList(r,(h,f)=>{var g,p,v;return a.createElementVNode("div",{key:f,class:a.normalizeClass(["slider-item flex-shrink-0 flex-1 mr-6 min-w-[480px]",{"h-[309px]":!n.hasBackground,"h-full":n.hasBackground}])},[a.createElementVNode("div",{class:a.normalizeClass(["w-full p-4 rounded-[16px]",{"bg-gray-50 h-full flex flex-col justify-between":!n.hasBackground,"bg-white":n.hasBackground}])},[a.createElementVNode("div",null,[a.createElementVNode("div",Am,[h.image?(a.openBlock(),a.createElementBlock("img",{key:0,src:h.image,alt:"Slide Image",class:"rounded-[8px] h-[220px] w-full object-cover"},null,8,Sm)):a.createCommentVNode("",!0)]),h.tags&&h.tags.length?(a.openBlock(),a.createElementBlock("div",Tm,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(h.tags,b=>(a.openBlock(),a.createElementBlock("span",{key:b,class:"bg-navy-50 border border-navy-200 text-navy-700 px-2 py-0.5 rounded-[6px] text-sm"},a.toDisplayString(b),1))),128))])):a.createCommentVNode("",!0),a.createElementVNode("h3",Nm,a.toDisplayString(h==null?void 0:h.title),1),a.createElementVNode("p",{class:"text-base font-normal text-gray-600 leading-[24px] multiline-ellipsis",innerHTML:h==null?void 0:h.description},null,8,Om),(h==null?void 0:h.type)==="event"?(a.openBlock(),a.createElementBlock("div",Cm,[a.createVNode(a.unref(fm),{class:"w-4 h-4 mt-[3px]"}),a.createElementVNode("div",{class:"text-sm",innerHTML:h==null?void 0:h.line_1},null,8,km)])):a.createCommentVNode("",!0),h.type==="event"?(a.openBlock(),a.createElementBlock("div",Rm,[a.createVNode(a.unref(Em),{class:"w-4 h-4 mt-[3px]"}),a.createElementVNode("div",{class:"text-sm",innerHTML:h==null?void 0:h.line_2},null,8,Im)])):a.createCommentVNode("",!0)]),a.createElementVNode("div",Lm,[(g=h.primary_button)!=null&&g.url?(a.openBlock(),a.createElementBlock("a",{key:0,href:s(h.primary_button.url),target:"_blank",class:"hover:bg-brand-600 bg-brand-500 text-white h-[40px] rounded-full px-[14px] py-[10px] inline-flex gap-1.5 items-center shadow-xs text-sm"},[((p=h.primary_button)==null?void 0:p.icon)==="plus"?(a.openBlock(),a.createBlock(a.unref(ns),{key:0,class:"w-4 h-4"})):a.createCommentVNode("",!0),((v=h.primary_button)==null?void 0:v.icon)==="shopping-cart-01"?(a.openBlock(),a.createBlock(a.unref(mm),{key:1,class:"w-4 h-4"})):a.createCommentVNode("",!0),a.createTextVNode(" "+a.toDisplayString(h.primary_button.title),1)],8,Bm)):a.createCommentVNode("",!0),h.secondary_button?(a.openBlock(),a.createElementBlock("a",{key:1,target:"_blank",href:s(h.secondary_button.url),class:"text-sm text-gray-600 hover:text-gray-800"},a.toDisplayString(h.secondary_button.title??"Learn more"),9,Pm)):a.createCommentVNode("",!0)])],2)],2)}),64))],4),a.createElementVNode("div",Fm,[a.createElementVNode("button",{onClick:o,class:"p-2.5 bg-white text-navy-800 rounded-full hover:opacity-100 opacity-50"},[a.createVNode(a.unref(ym),{class:"w-6 h-6"})]),a.createElementVNode("button",{onClick:l,class:"p-2.5 bg-white text-navy-800 rounded-full hover:opacity-100 opacity-50"},[a.createVNode(a.unref(ni),{class:"w-6 h-6"})])]),(d=n.component)!=null&&d.button?(a.openBlock(),a.createElementBlock("div",Mm,[a.createElementVNode("a",{class:"border-brand-300 hover:border-brand-700 border text-brand-700 h-[44px] rounded-full px-[14px] py-[10px] inline-flex gap-1.5 items-center font-semibold text-base",href:n.component.button.url,target:n.component.button.is_new_tab?"_blank":""},[a.createTextVNode(a.toDisplayString(n.component.button.title)+" ",1),a.createVNode(a.unref(vs),{class:"w-5 h-5"})],8,Dm)])):a.createCommentVNode("",!0)])}}},Vm={class:"max-w-[1400px] mx-auto w-full"},$m={class:"max-md:mx-[30px] max-1xl:mx-[120px] 1xl:mx-0 rounded-[48px] pt-[40px]"},_m={__name:"CollectionCarousel",props:{section:{required:!0,type:Object}},setup(n){const e=n,t=a.ref(e.section),r=a.computed(()=>t.value.components.find(l=>l.type==="header")),s=a.computed(()=>t.value.components.find(l=>l.type==="carousel"));return(l,o)=>{var c,i,u,d;return a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["overflow-hidden",{"rounded-br-[48px] rounded-tl-[48px] bg-aqua-100":(c=t.value)==null?void 0:c.has_background}])},[a.createElementVNode("div",Vm,[a.createElementVNode("div",$m,[a.createVNode(Ti,{component:r.value},null,8,["component"])])]),a.createElementVNode("div",{class:a.normalizeClass(["max-w-[1400px] mx-auto w-full",{"mt-0":!((i=t.value)!=null&&i.has_background),"mt-6":(u=t.value)==null?void 0:u.has_background}])},[a.createVNode(jm,{component:s.value,"has-background":(d=t.value)==null?void 0:d.has_background},null,8,["component","has-background"])],2)],2)}}},qm={class:"page-render"},zm={__name:"PageRender",props:{page:{required:!0,type:Object}},setup(n){const e=a.ref({header:a.markRaw(Up),quick_links:a.markRaw(Gp),tabs:a.markRaw(im),logo:a.markRaw(cm),collection_carousel:a.markRaw(_m)}),t=r=>r!=null&&r.type?e.value[r==null?void 0:r.type]:"";return(r,s)=>(a.openBlock(),a.createElementBlock("div",qm,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(n.page.sections,(l,o)=>(a.openBlock(),a.createElementBlock("div",null,[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(t(l)),{key:o,section:l},null,8,["section"]))]))),256))]))}};var Ga=typeof global=="object"&&global&&global.Object===Object&&global,Hm=typeof self=="object"&&self&&self.Object===Object&&self,en=Ga||Hm||Function("return this")(),wn=en.Symbol,Wa=Object.prototype,Gm=Wa.hasOwnProperty,Wm=Wa.toString,Rr=wn?wn.toStringTag:void 0;function Km(n){var e=Gm.call(n,Rr),t=n[Rr];try{n[Rr]=void 0;var r=!0}catch{}var s=Wm.call(n);return r&&(e?n[Rr]=t:delete n[Rr]),s}var Xm=Object.prototype,Ym=Xm.toString;function Zm(n){return Ym.call(n)}var Qm="[object Null]",Jm="[object Undefined]",Ka=wn?wn.toStringTag:void 0;function Qn(n){return n==null?n===void 0?Jm:Qm:Ka&&Ka in Object(n)?Km(n):Zm(n)}function un(n){return n!=null&&typeof n=="object"}var Mn=Array.isArray;function An(n){var e=typeof n;return n!=null&&(e=="object"||e=="function")}function Xa(n){return n}var eg="[object AsyncFunction]",tg="[object Function]",ng="[object GeneratorFunction]",rg="[object Proxy]";function Ni(n){if(!An(n))return!1;var e=Qn(n);return e==tg||e==ng||e==eg||e==rg}var Oi=en["__core-js_shared__"],Ya=function(){var n=/[^.]+$/.exec(Oi&&Oi.keys&&Oi.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""}();function sg(n){return!!Ya&&Ya in n}var ig=Function.prototype,og=ig.toString;function Dn(n){if(n!=null){try{return og.call(n)}catch{}try{return n+""}catch{}}return""}var ag=/[\\^$.*+?()[\]{}|]/g,lg=/^\[object .+?Constructor\]$/,cg=Function.prototype,ug=Object.prototype,dg=cg.toString,fg=ug.hasOwnProperty,hg=RegExp("^"+dg.call(fg).replace(ag,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function pg(n){if(!An(n)||sg(n))return!1;var e=Ni(n)?hg:lg;return e.test(Dn(n))}function mg(n,e){return n==null?void 0:n[e]}function Un(n,e){var t=mg(n,e);return pg(t)?t:void 0}var Ci=Un(en,"WeakMap"),Za=Object.create,gg=function(){function n(){}return function(e){if(!An(e))return{};if(Za)return Za(e);n.prototype=e;var t=new n;return n.prototype=void 0,t}}();function vg(n,e,t){switch(t.length){case 0:return n.call(e);case 1:return n.call(e,t[0]);case 2:return n.call(e,t[0],t[1]);case 3:return n.call(e,t[0],t[1],t[2])}return n.apply(e,t)}function yg(n,e){var t=-1,r=n.length;for(e||(e=Array(r));++t<r;)e[t]=n[t];return e}var bg=800,xg=16,Eg=Date.now;function wg(n){var e=0,t=0;return function(){var r=Eg(),s=xg-(r-t);if(t=r,s>0){if(++e>=bg)return arguments[0]}else e=0;return n.apply(void 0,arguments)}}function Ag(n){return function(){return n}}var Es=function(){try{var n=Un(Object,"defineProperty");return n({},"",{}),n}catch{}}(),Sg=Es?function(n,e){return Es(n,"toString",{configurable:!0,enumerable:!1,value:Ag(e),writable:!0})}:Xa,Tg=wg(Sg);function Ng(n,e){for(var t=-1,r=n==null?0:n.length;++t<r&&e(n[t],t,n)!==!1;);return n}var Og=9007199254740991,Cg=/^(?:0|[1-9]\d*)$/;function Qa(n,e){var t=typeof n;return e=e??Og,!!e&&(t=="number"||t!="symbol"&&Cg.test(n))&&n>-1&&n%1==0&&n<e}function ki(n,e,t){e=="__proto__"&&Es?Es(n,e,{configurable:!0,enumerable:!0,value:t,writable:!0}):n[e]=t}function Ir(n,e){return n===e||n!==n&&e!==e}var kg=Object.prototype,Rg=kg.hasOwnProperty;function Ja(n,e,t){var r=n[e];(!(Rg.call(n,e)&&Ir(r,t))||t===void 0&&!(e in n))&&ki(n,e,t)}function Ig(n,e,t,r){var s=!t;t||(t={});for(var l=-1,o=e.length;++l<o;){var c=e[l],i=void 0;i===void 0&&(i=n[c]),s?ki(t,c,i):Ja(t,c,i)}return t}var el=Math.max;function Lg(n,e,t){return e=el(e===void 0?n.length-1:e,0),function(){for(var r=arguments,s=-1,l=el(r.length-e,0),o=Array(l);++s<l;)o[s]=r[e+s];s=-1;for(var c=Array(e+1);++s<e;)c[s]=r[s];return c[e]=t(o),vg(n,this,c)}}function Bg(n,e){return Tg(Lg(n,e,Xa),n+"")}var Pg=9007199254740991;function tl(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=Pg}function ws(n){return n!=null&&tl(n.length)&&!Ni(n)}function Fg(n,e,t){if(!An(t))return!1;var r=typeof e;return(r=="number"?ws(t)&&Qa(e,t.length):r=="string"&&e in t)?Ir(t[e],n):!1}function Mg(n){return Bg(function(e,t){var r=-1,s=t.length,l=s>1?t[s-1]:void 0,o=s>2?t[2]:void 0;for(l=n.length>3&&typeof l=="function"?(s--,l):void 0,o&&Fg(t[0],t[1],o)&&(l=s<3?void 0:l,s=1),e=Object(e);++r<s;){var c=t[r];c&&n(e,c,r,l)}return e})}var Dg=Object.prototype;function Ri(n){var e=n&&n.constructor,t=typeof e=="function"&&e.prototype||Dg;return n===t}function Ug(n,e){for(var t=-1,r=Array(n);++t<n;)r[t]=e(t);return r}var jg="[object Arguments]";function nl(n){return un(n)&&Qn(n)==jg}var rl=Object.prototype,Vg=rl.hasOwnProperty,$g=rl.propertyIsEnumerable,Ii=nl(function(){return arguments}())?nl:function(n){return un(n)&&Vg.call(n,"callee")&&!$g.call(n,"callee")};function _g(){return!1}var sl=typeof Ye=="object"&&Ye&&!Ye.nodeType&&Ye,il=sl&&typeof module=="object"&&module&&!module.nodeType&&module,qg=il&&il.exports===sl,ol=qg?en.Buffer:void 0,zg=ol?ol.isBuffer:void 0,Lr=zg||_g,Hg="[object Arguments]",Gg="[object Array]",Wg="[object Boolean]",Kg="[object Date]",Xg="[object Error]",Yg="[object Function]",Zg="[object Map]",Qg="[object Number]",Jg="[object Object]",e0="[object RegExp]",t0="[object Set]",n0="[object String]",r0="[object WeakMap]",s0="[object ArrayBuffer]",i0="[object DataView]",o0="[object Float32Array]",a0="[object Float64Array]",l0="[object Int8Array]",c0="[object Int16Array]",u0="[object Int32Array]",d0="[object Uint8Array]",f0="[object Uint8ClampedArray]",h0="[object Uint16Array]",p0="[object Uint32Array]",Je={};Je[o0]=Je[a0]=Je[l0]=Je[c0]=Je[u0]=Je[d0]=Je[f0]=Je[h0]=Je[p0]=!0,Je[Hg]=Je[Gg]=Je[s0]=Je[Wg]=Je[i0]=Je[Kg]=Je[Xg]=Je[Yg]=Je[Zg]=Je[Qg]=Je[Jg]=Je[e0]=Je[t0]=Je[n0]=Je[r0]=!1;function m0(n){return un(n)&&tl(n.length)&&!!Je[Qn(n)]}function Li(n){return function(e){return n(e)}}var al=typeof Ye=="object"&&Ye&&!Ye.nodeType&&Ye,Br=al&&typeof module=="object"&&module&&!module.nodeType&&module,g0=Br&&Br.exports===al,Bi=g0&&Ga.process,Jn=function(){try{var n=Br&&Br.require&&Br.require("util").types;return n||Bi&&Bi.binding&&Bi.binding("util")}catch{}}(),ll=Jn&&Jn.isTypedArray,Pi=ll?Li(ll):m0,v0=Object.prototype,y0=v0.hasOwnProperty;function cl(n,e){var t=Mn(n),r=!t&&Ii(n),s=!t&&!r&&Lr(n),l=!t&&!r&&!s&&Pi(n),o=t||r||s||l,c=o?Ug(n.length,String):[],i=c.length;for(var u in n)(e||y0.call(n,u))&&!(o&&(u=="length"||s&&(u=="offset"||u=="parent")||l&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||Qa(u,i)))&&c.push(u);return c}function ul(n,e){return function(t){return n(e(t))}}var b0=ul(Object.keys,Object),x0=Object.prototype,E0=x0.hasOwnProperty;function w0(n){if(!Ri(n))return b0(n);var e=[];for(var t in Object(n))E0.call(n,t)&&t!="constructor"&&e.push(t);return e}function A0(n){return ws(n)?cl(n):w0(n)}function S0(n){var e=[];if(n!=null)for(var t in Object(n))e.push(t);return e}var T0=Object.prototype,N0=T0.hasOwnProperty;function O0(n){if(!An(n))return S0(n);var e=Ri(n),t=[];for(var r in n)r=="constructor"&&(e||!N0.call(n,r))||t.push(r);return t}function dl(n){return ws(n)?cl(n,!0):O0(n)}var Pr=Un(Object,"create");function C0(){this.__data__=Pr?Pr(null):{},this.size=0}function k0(n){var e=this.has(n)&&delete this.__data__[n];return this.size-=e?1:0,e}var R0="__lodash_hash_undefined__",I0=Object.prototype,L0=I0.hasOwnProperty;function B0(n){var e=this.__data__;if(Pr){var t=e[n];return t===R0?void 0:t}return L0.call(e,n)?e[n]:void 0}var P0=Object.prototype,F0=P0.hasOwnProperty;function M0(n){var e=this.__data__;return Pr?e[n]!==void 0:F0.call(e,n)}var D0="__lodash_hash_undefined__";function U0(n,e){var t=this.__data__;return this.size+=this.has(n)?0:1,t[n]=Pr&&e===void 0?D0:e,this}function jn(n){var e=-1,t=n==null?0:n.length;for(this.clear();++e<t;){var r=n[e];this.set(r[0],r[1])}}jn.prototype.clear=C0,jn.prototype.delete=k0,jn.prototype.get=B0,jn.prototype.has=M0,jn.prototype.set=U0;function j0(){this.__data__=[],this.size=0}function As(n,e){for(var t=n.length;t--;)if(Ir(n[t][0],e))return t;return-1}var V0=Array.prototype,$0=V0.splice;function _0(n){var e=this.__data__,t=As(e,n);if(t<0)return!1;var r=e.length-1;return t==r?e.pop():$0.call(e,t,1),--this.size,!0}function q0(n){var e=this.__data__,t=As(e,n);return t<0?void 0:e[t][1]}function z0(n){return As(this.__data__,n)>-1}function H0(n,e){var t=this.__data__,r=As(t,n);return r<0?(++this.size,t.push([n,e])):t[r][1]=e,this}function dn(n){var e=-1,t=n==null?0:n.length;for(this.clear();++e<t;){var r=n[e];this.set(r[0],r[1])}}dn.prototype.clear=j0,dn.prototype.delete=_0,dn.prototype.get=q0,dn.prototype.has=z0,dn.prototype.set=H0;var Fr=Un(en,"Map");function G0(){this.size=0,this.__data__={hash:new jn,map:new(Fr||dn),string:new jn}}function W0(n){var e=typeof n;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?n!=="__proto__":n===null}function Ss(n,e){var t=n.__data__;return W0(e)?t[typeof e=="string"?"string":"hash"]:t.map}function K0(n){var e=Ss(this,n).delete(n);return this.size-=e?1:0,e}function X0(n){return Ss(this,n).get(n)}function Y0(n){return Ss(this,n).has(n)}function Z0(n,e){var t=Ss(this,n),r=t.size;return t.set(n,e),this.size+=t.size==r?0:1,this}function Vn(n){var e=-1,t=n==null?0:n.length;for(this.clear();++e<t;){var r=n[e];this.set(r[0],r[1])}}Vn.prototype.clear=G0,Vn.prototype.delete=K0,Vn.prototype.get=X0,Vn.prototype.has=Y0,Vn.prototype.set=Z0;function Q0(n,e){for(var t=-1,r=e.length,s=n.length;++t<r;)n[s+t]=e[t];return n}var fl=ul(Object.getPrototypeOf,Object),J0="[object Object]",e1=Function.prototype,t1=Object.prototype,hl=e1.toString,n1=t1.hasOwnProperty,r1=hl.call(Object);function s1(n){if(!un(n)||Qn(n)!=J0)return!1;var e=fl(n);if(e===null)return!0;var t=n1.call(e,"constructor")&&e.constructor;return typeof t=="function"&&t instanceof t&&hl.call(t)==r1}function i1(){this.__data__=new dn,this.size=0}function o1(n){var e=this.__data__,t=e.delete(n);return this.size=e.size,t}function a1(n){return this.__data__.get(n)}function l1(n){return this.__data__.has(n)}var c1=200;function u1(n,e){var t=this.__data__;if(t instanceof dn){var r=t.__data__;if(!Fr||r.length<c1-1)return r.push([n,e]),this.size=++t.size,this;t=this.__data__=new Vn(r)}return t.set(n,e),this.size=t.size,this}function tn(n){var e=this.__data__=new dn(n);this.size=e.size}tn.prototype.clear=i1,tn.prototype.delete=o1,tn.prototype.get=a1,tn.prototype.has=l1,tn.prototype.set=u1;var pl=typeof Ye=="object"&&Ye&&!Ye.nodeType&&Ye,ml=pl&&typeof module=="object"&&module&&!module.nodeType&&module,d1=ml&&ml.exports===pl,gl=d1?en.Buffer:void 0,vl=gl?gl.allocUnsafe:void 0;function yl(n,e){if(e)return n.slice();var t=n.length,r=vl?vl(t):new n.constructor(t);return n.copy(r),r}function f1(n,e){for(var t=-1,r=n==null?0:n.length,s=0,l=[];++t<r;){var o=n[t];e(o,t,n)&&(l[s++]=o)}return l}function h1(){return[]}var p1=Object.prototype,m1=p1.propertyIsEnumerable,bl=Object.getOwnPropertySymbols,g1=bl?function(n){return n==null?[]:(n=Object(n),f1(bl(n),function(e){return m1.call(n,e)}))}:h1;function v1(n,e,t){var r=e(n);return Mn(n)?r:Q0(r,t(n))}function Fi(n){return v1(n,A0,g1)}var Mi=Un(en,"DataView"),Di=Un(en,"Promise"),Ui=Un(en,"Set"),xl="[object Map]",y1="[object Object]",El="[object Promise]",wl="[object Set]",Al="[object WeakMap]",Sl="[object DataView]",b1=Dn(Mi),x1=Dn(Fr),E1=Dn(Di),w1=Dn(Ui),A1=Dn(Ci),Vt=Qn;(Mi&&Vt(new Mi(new ArrayBuffer(1)))!=Sl||Fr&&Vt(new Fr)!=xl||Di&&Vt(Di.resolve())!=El||Ui&&Vt(new Ui)!=wl||Ci&&Vt(new Ci)!=Al)&&(Vt=function(n){var e=Qn(n),t=e==y1?n.constructor:void 0,r=t?Dn(t):"";if(r)switch(r){case b1:return Sl;case x1:return xl;case E1:return El;case w1:return wl;case A1:return Al}return e});var S1=Object.prototype,T1=S1.hasOwnProperty;function N1(n){var e=n.length,t=new n.constructor(e);return e&&typeof n[0]=="string"&&T1.call(n,"index")&&(t.index=n.index,t.input=n.input),t}var Ts=en.Uint8Array;function ji(n){var e=new n.constructor(n.byteLength);return new Ts(e).set(new Ts(n)),e}function O1(n,e){var t=ji(n.buffer);return new n.constructor(t,n.byteOffset,n.byteLength)}var C1=/\w*$/;function k1(n){var e=new n.constructor(n.source,C1.exec(n));return e.lastIndex=n.lastIndex,e}var Tl=wn?wn.prototype:void 0,Nl=Tl?Tl.valueOf:void 0;function R1(n){return Nl?Object(Nl.call(n)):{}}function Ol(n,e){var t=e?ji(n.buffer):n.buffer;return new n.constructor(t,n.byteOffset,n.length)}var I1="[object Boolean]",L1="[object Date]",B1="[object Map]",P1="[object Number]",F1="[object RegExp]",M1="[object Set]",D1="[object String]",U1="[object Symbol]",j1="[object ArrayBuffer]",V1="[object DataView]",$1="[object Float32Array]",_1="[object Float64Array]",q1="[object Int8Array]",z1="[object Int16Array]",H1="[object Int32Array]",G1="[object Uint8Array]",W1="[object Uint8ClampedArray]",K1="[object Uint16Array]",X1="[object Uint32Array]";function Y1(n,e,t){var r=n.constructor;switch(e){case j1:return ji(n);case I1:case L1:return new r(+n);case V1:return O1(n);case $1:case _1:case q1:case z1:case H1:case G1:case W1:case K1:case X1:return Ol(n,t);case B1:return new r;case P1:case D1:return new r(n);case F1:return k1(n);case M1:return new r;case U1:return R1(n)}}function Cl(n){return typeof n.constructor=="function"&&!Ri(n)?gg(fl(n)):{}}var Z1="[object Map]";function Q1(n){return un(n)&&Vt(n)==Z1}var kl=Jn&&Jn.isMap,J1=kl?Li(kl):Q1,ev="[object Set]";function tv(n){return un(n)&&Vt(n)==ev}var Rl=Jn&&Jn.isSet,nv=Rl?Li(Rl):tv,rv=1,Il="[object Arguments]",sv="[object Array]",iv="[object Boolean]",ov="[object Date]",av="[object Error]",Ll="[object Function]",lv="[object GeneratorFunction]",cv="[object Map]",uv="[object Number]",Bl="[object Object]",dv="[object RegExp]",fv="[object Set]",hv="[object String]",pv="[object Symbol]",mv="[object WeakMap]",gv="[object ArrayBuffer]",vv="[object DataView]",yv="[object Float32Array]",bv="[object Float64Array]",xv="[object Int8Array]",Ev="[object Int16Array]",wv="[object Int32Array]",Av="[object Uint8Array]",Sv="[object Uint8ClampedArray]",Tv="[object Uint16Array]",Nv="[object Uint32Array]",Ze={};Ze[Il]=Ze[sv]=Ze[gv]=Ze[vv]=Ze[iv]=Ze[ov]=Ze[yv]=Ze[bv]=Ze[xv]=Ze[Ev]=Ze[wv]=Ze[cv]=Ze[uv]=Ze[Bl]=Ze[dv]=Ze[fv]=Ze[hv]=Ze[pv]=Ze[Av]=Ze[Sv]=Ze[Tv]=Ze[Nv]=!0,Ze[av]=Ze[Ll]=Ze[mv]=!1;function Ns(n,e,t,r,s,l){var o,c=e&rv;if(o!==void 0)return o;if(!An(n))return n;var i=Mn(n);if(i)o=N1(n);else{var u=Vt(n),d=u==Ll||u==lv;if(Lr(n))return yl(n,c);if(u==Bl||u==Il||d&&!s)o=d?{}:Cl(n);else{if(!Ze[u])return s?n:{};o=Y1(n,u,c)}}l||(l=new tn);var h=l.get(n);if(h)return h;l.set(n,o),nv(n)?n.forEach(function(p){o.add(Ns(p,e,t,p,n,l))}):J1(n)&&n.forEach(function(p,v){o.set(v,Ns(p,e,t,v,n,l))});var f=Fi,g=i?void 0:f(n);return Ng(g||n,function(p,v){g&&(v=p,p=n[v]),Ja(o,v,Ns(p,e,t,v,n,l))}),o}var Ov=1,Cv=4;function er(n){return Ns(n,Ov|Cv)}var kv="__lodash_hash_undefined__";function Rv(n){return this.__data__.set(n,kv),this}function Iv(n){return this.__data__.has(n)}function Os(n){var e=-1,t=n==null?0:n.length;for(this.__data__=new Vn;++e<t;)this.add(n[e])}Os.prototype.add=Os.prototype.push=Rv,Os.prototype.has=Iv;function Lv(n,e){for(var t=-1,r=n==null?0:n.length;++t<r;)if(e(n[t],t,n))return!0;return!1}function Bv(n,e){return n.has(e)}var Pv=1,Fv=2;function Pl(n,e,t,r,s,l){var o=t&Pv,c=n.length,i=e.length;if(c!=i&&!(o&&i>c))return!1;var u=l.get(n),d=l.get(e);if(u&&d)return u==e&&d==n;var h=-1,f=!0,g=t&Fv?new Os:void 0;for(l.set(n,e),l.set(e,n);++h<c;){var p=n[h],v=e[h];if(r)var b=o?r(v,p,h,e,n,l):r(p,v,h,n,e,l);if(b!==void 0){if(b)continue;f=!1;break}if(g){if(!Lv(e,function(S,T){if(!Bv(g,T)&&(p===S||s(p,S,t,r,l)))return g.push(T)})){f=!1;break}}else if(!(p===v||s(p,v,t,r,l))){f=!1;break}}return l.delete(n),l.delete(e),f}function Mv(n){var e=-1,t=Array(n.size);return n.forEach(function(r,s){t[++e]=[s,r]}),t}function Dv(n){var e=-1,t=Array(n.size);return n.forEach(function(r){t[++e]=r}),t}var Uv=1,jv=2,Vv="[object Boolean]",$v="[object Date]",_v="[object Error]",qv="[object Map]",zv="[object Number]",Hv="[object RegExp]",Gv="[object Set]",Wv="[object String]",Kv="[object Symbol]",Xv="[object ArrayBuffer]",Yv="[object DataView]",Fl=wn?wn.prototype:void 0,Vi=Fl?Fl.valueOf:void 0;function Zv(n,e,t,r,s,l,o){switch(t){case Yv:if(n.byteLength!=e.byteLength||n.byteOffset!=e.byteOffset)return!1;n=n.buffer,e=e.buffer;case Xv:return!(n.byteLength!=e.byteLength||!l(new Ts(n),new Ts(e)));case Vv:case $v:case zv:return Ir(+n,+e);case _v:return n.name==e.name&&n.message==e.message;case Hv:case Wv:return n==e+"";case qv:var c=Mv;case Gv:var i=r&Uv;if(c||(c=Dv),n.size!=e.size&&!i)return!1;var u=o.get(n);if(u)return u==e;r|=jv,o.set(n,e);var d=Pl(c(n),c(e),r,s,l,o);return o.delete(n),d;case Kv:if(Vi)return Vi.call(n)==Vi.call(e)}return!1}var Qv=1,Jv=Object.prototype,ey=Jv.hasOwnProperty;function ty(n,e,t,r,s,l){var o=t&Qv,c=Fi(n),i=c.length,u=Fi(e),d=u.length;if(i!=d&&!o)return!1;for(var h=i;h--;){var f=c[h];if(!(o?f in e:ey.call(e,f)))return!1}var g=l.get(n),p=l.get(e);if(g&&p)return g==e&&p==n;var v=!0;l.set(n,e),l.set(e,n);for(var b=o;++h<i;){f=c[h];var S=n[f],T=e[f];if(r)var k=o?r(T,S,f,e,n,l):r(S,T,f,n,e,l);if(!(k===void 0?S===T||s(S,T,t,r,l):k)){v=!1;break}b||(b=f=="constructor")}if(v&&!b){var F=n.constructor,M=e.constructor;F!=M&&"constructor"in n&&"constructor"in e&&!(typeof F=="function"&&F instanceof F&&typeof M=="function"&&M instanceof M)&&(v=!1)}return l.delete(n),l.delete(e),v}var ny=1,Ml="[object Arguments]",Dl="[object Array]",Cs="[object Object]",ry=Object.prototype,Ul=ry.hasOwnProperty;function sy(n,e,t,r,s,l){var o=Mn(n),c=Mn(e),i=o?Dl:Vt(n),u=c?Dl:Vt(e);i=i==Ml?Cs:i,u=u==Ml?Cs:u;var d=i==Cs,h=u==Cs,f=i==u;if(f&&Lr(n)){if(!Lr(e))return!1;o=!0,d=!1}if(f&&!d)return l||(l=new tn),o||Pi(n)?Pl(n,e,t,r,s,l):Zv(n,e,i,t,r,s,l);if(!(t&ny)){var g=d&&Ul.call(n,"__wrapped__"),p=h&&Ul.call(e,"__wrapped__");if(g||p){var v=g?n.value():n,b=p?e.value():e;return l||(l=new tn),s(v,b,t,r,l)}}return f?(l||(l=new tn),ty(n,e,t,r,s,l)):!1}function jl(n,e,t,r,s){return n===e?!0:n==null||e==null||!un(n)&&!un(e)?n!==n&&e!==e:sy(n,e,t,r,jl,s)}function iy(n){return function(e,t,r){for(var s=-1,l=Object(e),o=r(e),c=o.length;c--;){var i=o[++s];if(t(l[i],i,l)===!1)break}return e}}var oy=iy();function $i(n,e,t){(t!==void 0&&!Ir(n[e],t)||t===void 0&&!(e in n))&&ki(n,e,t)}function ay(n){return un(n)&&ws(n)}function _i(n,e){if(!(e==="constructor"&&typeof n[e]=="function")&&e!="__proto__")return n[e]}function ly(n){return Ig(n,dl(n))}function cy(n,e,t,r,s,l,o){var c=_i(n,t),i=_i(e,t),u=o.get(i);if(u){$i(n,t,u);return}var d=l?l(c,i,t+"",n,e,o):void 0,h=d===void 0;if(h){var f=Mn(i),g=!f&&Lr(i),p=!f&&!g&&Pi(i);d=i,f||g||p?Mn(c)?d=c:ay(c)?d=yg(c):g?(h=!1,d=yl(i,!0)):p?(h=!1,d=Ol(i,!0)):d=[]:s1(i)||Ii(i)?(d=c,Ii(c)?d=ly(c):(!An(c)||Ni(c))&&(d=Cl(i))):h=!1}h&&(o.set(i,d),s(d,i,r,l,o),o.delete(i)),$i(n,t,d)}function Vl(n,e,t,r,s){n!==e&&oy(e,function(l,o){if(s||(s=new tn),An(l))cy(n,e,o,t,Vl,r,s);else{var c=r?r(_i(n,o),l,o+"",n,e,s):void 0;c===void 0&&(c=l),$i(n,o,c)}},dl)}function qi(n,e){return jl(n,e)}var Sn=Mg(function(n,e,t){Vl(n,e,t)}),Ne=(n=>(n[n.TYPE=3]="TYPE",n[n.LEVEL=12]="LEVEL",n[n.ATTRIBUTE=13]="ATTRIBUTE",n[n.BLOT=14]="BLOT",n[n.INLINE=7]="INLINE",n[n.BLOCK=11]="BLOCK",n[n.BLOCK_BLOT=10]="BLOCK_BLOT",n[n.INLINE_BLOT=6]="INLINE_BLOT",n[n.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",n[n.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",n[n.ANY=15]="ANY",n))(Ne||{});class nn{constructor(e,t,r={}){this.attrName=e,this.keyName=t;const s=Ne.TYPE&Ne.ATTRIBUTE;this.scope=r.scope!=null?r.scope&Ne.LEVEL|s:Ne.ATTRIBUTE,r.whitelist!=null&&(this.whitelist=r.whitelist)}static keys(e){return Array.from(e.attributes).map(t=>t.name)}add(e,t){return this.canAdd(e,t)?(e.setAttribute(this.keyName,t),!0):!1}canAdd(e,t){return this.whitelist==null?!0:typeof t=="string"?this.whitelist.indexOf(t.replace(/["']/g,""))>-1:this.whitelist.indexOf(t)>-1}remove(e){e.removeAttribute(this.keyName)}value(e){const t=e.getAttribute(this.keyName);return this.canAdd(e,t)&&t?t:""}}class tr extends Error{constructor(e){e="[Parchment] "+e,super(e),this.message=e,this.name=this.constructor.name}}const $l=class $o{constructor(){this.attributes={},this.classes={},this.tags={},this.types={}}static find(e,t=!1){if(e==null)return null;if(this.blots.has(e))return this.blots.get(e)||null;if(t){let r=null;try{r=e.parentNode}catch{return null}return this.find(r,t)}return null}create(e,t,r){const s=this.query(t);if(s==null)throw new tr(`Unable to create ${t} blot`);const l=s,o=t instanceof Node||t.nodeType===Node.TEXT_NODE?t:l.create(r),c=new l(e,o,r);return $o.blots.set(c.domNode,c),c}find(e,t=!1){return $o.find(e,t)}query(e,t=Ne.ANY){let r;return typeof e=="string"?r=this.types[e]||this.attributes[e]:e instanceof Text||e.nodeType===Node.TEXT_NODE?r=this.types.text:typeof e=="number"?e&Ne.LEVEL&Ne.BLOCK?r=this.types.block:e&Ne.LEVEL&Ne.INLINE&&(r=this.types.inline):e instanceof Element&&((e.getAttribute("class")||"").split(/\s+/).some(s=>(r=this.classes[s],!!r)),r=r||this.tags[e.tagName]),r==null?null:"scope"in r&&t&Ne.LEVEL&r.scope&&t&Ne.TYPE&r.scope?r:null}register(...e){return e.map(t=>{const r="blotName"in t,s="attrName"in t;if(!r&&!s)throw new tr("Invalid definition");if(r&&t.blotName==="abstract")throw new tr("Cannot register abstract class");const l=r?t.blotName:s?t.attrName:void 0;return this.types[l]=t,s?typeof t.keyName=="string"&&(this.attributes[t.keyName]=t):r&&(t.className&&(this.classes[t.className]=t),t.tagName&&(Array.isArray(t.tagName)?t.tagName=t.tagName.map(o=>o.toUpperCase()):t.tagName=t.tagName.toUpperCase(),(Array.isArray(t.tagName)?t.tagName:[t.tagName]).forEach(o=>{(this.tags[o]==null||t.className==null)&&(this.tags[o]=t)}))),t})}};$l.blots=new WeakMap;let nr=$l;function _l(n,e){return(n.getAttribute("class")||"").split(/\s+/).filter(t=>t.indexOf(`${e}-`)===0)}class uy extends nn{static keys(e){return(e.getAttribute("class")||"").split(/\s+/).map(t=>t.split("-").slice(0,-1).join("-"))}add(e,t){return this.canAdd(e,t)?(this.remove(e),e.classList.add(`${this.keyName}-${t}`),!0):!1}remove(e){_l(e,this.keyName).forEach(t=>{e.classList.remove(t)}),e.classList.length===0&&e.removeAttribute("class")}value(e){const t=(_l(e,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(e,t)?t:""}}const $t=uy;function zi(n){const e=n.split("-"),t=e.slice(1).map(r=>r[0].toUpperCase()+r.slice(1)).join("");return e[0]+t}class dy extends nn{static keys(e){return(e.getAttribute("style")||"").split(";").map(t=>t.split(":")[0].trim())}add(e,t){return this.canAdd(e,t)?(e.style[zi(this.keyName)]=t,!0):!1}remove(e){e.style[zi(this.keyName)]="",e.getAttribute("style")||e.removeAttribute("style")}value(e){const t=e.style[zi(this.keyName)];return this.canAdd(e,t)?t:""}}const Tn=dy;class fy{constructor(e){this.attributes={},this.domNode=e,this.build()}attribute(e,t){t?e.add(this.domNode,t)&&(e.value(this.domNode)!=null?this.attributes[e.attrName]=e:delete this.attributes[e.attrName]):(e.remove(this.domNode),delete this.attributes[e.attrName])}build(){this.attributes={};const e=nr.find(this.domNode);if(e==null)return;const t=nn.keys(this.domNode),r=$t.keys(this.domNode),s=Tn.keys(this.domNode);t.concat(r).concat(s).forEach(l=>{const o=e.scroll.query(l,Ne.ATTRIBUTE);o instanceof nn&&(this.attributes[o.attrName]=o)})}copy(e){Object.keys(this.attributes).forEach(t=>{const r=this.attributes[t].value(this.domNode);e.format(t,r)})}move(e){this.copy(e),Object.keys(this.attributes).forEach(t=>{this.attributes[t].remove(this.domNode)}),this.attributes={}}values(){return Object.keys(this.attributes).reduce((e,t)=>(e[t]=this.attributes[t].value(this.domNode),e),{})}}const ks=fy,ql=class{constructor(e,t){this.scroll=e,this.domNode=t,nr.blots.set(t,this),this.prev=null,this.next=null}static create(e){if(this.tagName==null)throw new tr("Blot definition missing tagName");let t,r;return Array.isArray(this.tagName)?(typeof e=="string"?(r=e.toUpperCase(),parseInt(r,10).toString()===r&&(r=parseInt(r,10))):typeof e=="number"&&(r=e),typeof r=="number"?t=document.createElement(this.tagName[r-1]):r&&this.tagName.indexOf(r)>-1?t=document.createElement(r):t=document.createElement(this.tagName[0])):t=document.createElement(this.tagName),this.className&&t.classList.add(this.className),t}get statics(){return this.constructor}attach(){}clone(){const e=this.domNode.cloneNode(!1);return this.scroll.create(e)}detach(){this.parent!=null&&this.parent.removeChild(this),nr.blots.delete(this.domNode)}deleteAt(e,t){this.isolate(e,t).remove()}formatAt(e,t,r,s){const l=this.isolate(e,t);if(this.scroll.query(r,Ne.BLOT)!=null&&s)l.wrap(r,s);else if(this.scroll.query(r,Ne.ATTRIBUTE)!=null){const o=this.scroll.create(this.statics.scope);l.wrap(o),o.format(r,s)}}insertAt(e,t,r){const s=r==null?this.scroll.create("text",t):this.scroll.create(t,r),l=this.split(e);this.parent.insertBefore(s,l||void 0)}isolate(e,t){const r=this.split(e);if(r==null)throw new Error("Attempt to isolate at end");return r.split(t),r}length(){return 1}offset(e=this.parent){return this.parent==null||this===e?0:this.parent.children.offset(this)+this.parent.offset(e)}optimize(e){this.statics.requiredContainer&&!(this.parent instanceof this.statics.requiredContainer)&&this.wrap(this.statics.requiredContainer.blotName)}remove(){this.domNode.parentNode!=null&&this.domNode.parentNode.removeChild(this.domNode),this.detach()}replaceWith(e,t){const r=typeof e=="string"?this.scroll.create(e,t):e;return this.parent!=null&&(this.parent.insertBefore(r,this.next||void 0),this.remove()),r}split(e,t){return e===0?this:this.next}update(e,t){}wrap(e,t){const r=typeof e=="string"?this.scroll.create(e,t):e;if(this.parent!=null&&this.parent.insertBefore(r,this.next||void 0),typeof r.appendChild!="function")throw new tr(`Cannot wrap ${e}`);return r.appendChild(this),r}};ql.blotName="abstract";let zl=ql;const Hl=class extends zl{static value(e){return!0}index(e,t){return this.domNode===e||this.domNode.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(t,1):-1}position(e,t){let r=Array.from(this.parent.domNode.childNodes).indexOf(this.domNode);return e>0&&(r+=1),[this.parent.domNode,r]}value(){return{[this.statics.blotName]:this.statics.value(this.domNode)||!0}}};Hl.scope=Ne.INLINE_BLOT;const vt=Hl;class hy{constructor(){this.head=null,this.tail=null,this.length=0}append(...e){if(this.insertBefore(e[0],null),e.length>1){const t=e.slice(1);this.append(...t)}}at(e){const t=this.iterator();let r=t();for(;r&&e>0;)e-=1,r=t();return r}contains(e){const t=this.iterator();let r=t();for(;r;){if(r===e)return!0;r=t()}return!1}indexOf(e){const t=this.iterator();let r=t(),s=0;for(;r;){if(r===e)return s;s+=1,r=t()}return-1}insertBefore(e,t){e!=null&&(this.remove(e),e.next=t,t!=null?(e.prev=t.prev,t.prev!=null&&(t.prev.next=e),t.prev=e,t===this.head&&(this.head=e)):this.tail!=null?(this.tail.next=e,e.prev=this.tail,this.tail=e):(e.prev=null,this.head=this.tail=e),this.length+=1)}offset(e){let t=0,r=this.head;for(;r!=null;){if(r===e)return t;t+=r.length(),r=r.next}return-1}remove(e){this.contains(e)&&(e.prev!=null&&(e.prev.next=e.next),e.next!=null&&(e.next.prev=e.prev),e===this.head&&(this.head=e.next),e===this.tail&&(this.tail=e.prev),this.length-=1)}iterator(e=this.head){return()=>{const t=e;return e!=null&&(e=e.next),t}}find(e,t=!1){const r=this.iterator();let s=r();for(;s;){const l=s.length();if(e<l||t&&e===l&&(s.next==null||s.next.length()!==0))return[s,e];e-=l,s=r()}return[null,0]}forEach(e){const t=this.iterator();let r=t();for(;r;)e(r),r=t()}forEachAt(e,t,r){if(t<=0)return;const[s,l]=this.find(e);let o=e-l;const c=this.iterator(s);let i=c();for(;i&&o<e+t;){const u=i.length();e>o?r(i,e-o,Math.min(t,o+u-e)):r(i,0,Math.min(u,e+t-o)),o+=u,i=c()}}map(e){return this.reduce((t,r)=>(t.push(e(r)),t),[])}reduce(e,t){const r=this.iterator();let s=r();for(;s;)t=e(t,s),s=r();return t}}function Gl(n,e){const t=e.find(n);if(t)return t;try{return e.create(n)}catch{const r=e.create(Ne.INLINE);return Array.from(n.childNodes).forEach(s=>{r.domNode.appendChild(s)}),n.parentNode&&n.parentNode.replaceChild(r.domNode,n),r.attach(),r}}const Wl=class In extends zl{constructor(e,t){super(e,t),this.uiNode=null,this.build()}appendChild(e){this.insertBefore(e)}attach(){super.attach(),this.children.forEach(e=>{e.attach()})}attachUI(e){this.uiNode!=null&&this.uiNode.remove(),this.uiNode=e,In.uiClass&&this.uiNode.classList.add(In.uiClass),this.uiNode.setAttribute("contenteditable","false"),this.domNode.insertBefore(this.uiNode,this.domNode.firstChild)}build(){this.children=new hy,Array.from(this.domNode.childNodes).filter(e=>e!==this.uiNode).reverse().forEach(e=>{try{const t=Gl(e,this.scroll);this.insertBefore(t,this.children.head||void 0)}catch(t){if(t instanceof tr)return;throw t}})}deleteAt(e,t){if(e===0&&t===this.length())return this.remove();this.children.forEachAt(e,t,(r,s,l)=>{r.deleteAt(s,l)})}descendant(e,t=0){const[r,s]=this.children.find(t);return e.blotName==null&&e(r)||e.blotName!=null&&r instanceof e?[r,s]:r instanceof In?r.descendant(e,s):[null,-1]}descendants(e,t=0,r=Number.MAX_VALUE){let s=[],l=r;return this.children.forEachAt(t,r,(o,c,i)=>{(e.blotName==null&&e(o)||e.blotName!=null&&o instanceof e)&&s.push(o),o instanceof In&&(s=s.concat(o.descendants(e,c,l))),l-=i}),s}detach(){this.children.forEach(e=>{e.detach()}),super.detach()}enforceAllowedChildren(){let e=!1;this.children.forEach(t=>{e||this.statics.allowedChildren.some(r=>t instanceof r)||(t.statics.scope===Ne.BLOCK_BLOT?(t.next!=null&&this.splitAfter(t),t.prev!=null&&this.splitAfter(t.prev),t.parent.unwrap(),e=!0):t instanceof In?t.unwrap():t.remove())})}formatAt(e,t,r,s){this.children.forEachAt(e,t,(l,o,c)=>{l.formatAt(o,c,r,s)})}insertAt(e,t,r){const[s,l]=this.children.find(e);if(s)s.insertAt(l,t,r);else{const o=r==null?this.scroll.create("text",t):this.scroll.create(t,r);this.appendChild(o)}}insertBefore(e,t){e.parent!=null&&e.parent.children.remove(e);let r=null;this.children.insertBefore(e,t||null),e.parent=this,t!=null&&(r=t.domNode),(this.domNode.parentNode!==e.domNode||this.domNode.nextSibling!==r)&&this.domNode.insertBefore(e.domNode,r),e.attach()}length(){return this.children.reduce((e,t)=>e+t.length(),0)}moveChildren(e,t){this.children.forEach(r=>{e.insertBefore(r,t)})}optimize(e){if(super.optimize(e),this.enforceAllowedChildren(),this.uiNode!=null&&this.uiNode!==this.domNode.firstChild&&this.domNode.insertBefore(this.uiNode,this.domNode.firstChild),this.children.length===0)if(this.statics.defaultChild!=null){const t=this.scroll.create(this.statics.defaultChild.blotName);this.appendChild(t)}else this.remove()}path(e,t=!1){const[r,s]=this.children.find(e,t),l=[[this,e]];return r instanceof In?l.concat(r.path(s,t)):(r!=null&&l.push([r,s]),l)}removeChild(e){this.children.remove(e)}replaceWith(e,t){const r=typeof e=="string"?this.scroll.create(e,t):e;return r instanceof In&&this.moveChildren(r),super.replaceWith(r)}split(e,t=!1){if(!t){if(e===0)return this;if(e===this.length())return this.next}const r=this.clone();return this.parent&&this.parent.insertBefore(r,this.next||void 0),this.children.forEachAt(e,this.length(),(s,l,o)=>{const c=s.split(l,t);c!=null&&r.appendChild(c)}),r}splitAfter(e){const t=this.clone();for(;e.next!=null;)t.appendChild(e.next);return this.parent&&this.parent.insertBefore(t,this.next||void 0),t}unwrap(){this.parent&&this.moveChildren(this.parent,this.next||void 0),this.remove()}update(e,t){const r=[],s=[];e.forEach(l=>{l.target===this.domNode&&l.type==="childList"&&(r.push(...l.addedNodes),s.push(...l.removedNodes))}),s.forEach(l=>{if(l.parentNode!=null&&l.tagName!=="IFRAME"&&document.body.compareDocumentPosition(l)&Node.DOCUMENT_POSITION_CONTAINED_BY)return;const o=this.scroll.find(l);o!=null&&(o.domNode.parentNode==null||o.domNode.parentNode===this.domNode)&&o.detach()}),r.filter(l=>l.parentNode===this.domNode&&l!==this.uiNode).sort((l,o)=>l===o?0:l.compareDocumentPosition(o)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1).forEach(l=>{let o=null;l.nextSibling!=null&&(o=this.scroll.find(l.nextSibling));const c=Gl(l,this.scroll);(c.next!==o||c.next==null)&&(c.parent!=null&&c.parent.removeChild(this),this.insertBefore(c,o||void 0))}),this.enforceAllowedChildren()}};Wl.uiClass="";const _t=Wl;function py(n,e){if(Object.keys(n).length!==Object.keys(e).length)return!1;for(const t in n)if(n[t]!==e[t])return!1;return!0}const rr=class Ar extends _t{static create(e){return super.create(e)}static formats(e,t){const r=t.query(Ar.blotName);if(!(r!=null&&e.tagName===r.tagName)){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return e.tagName.toLowerCase()}}constructor(e,t){super(e,t),this.attributes=new ks(this.domNode)}format(e,t){if(e===this.statics.blotName&&!t)this.children.forEach(r=>{r instanceof Ar||(r=r.wrap(Ar.blotName,!0)),this.attributes.copy(r)}),this.unwrap();else{const r=this.scroll.query(e,Ne.INLINE);if(r==null)return;r instanceof nn?this.attributes.attribute(r,t):t&&(e!==this.statics.blotName||this.formats()[e]!==t)&&this.replaceWith(e,t)}}formats(){const e=this.attributes.values(),t=this.statics.formats(this.domNode,this.scroll);return t!=null&&(e[this.statics.blotName]=t),e}formatAt(e,t,r,s){this.formats()[r]!=null||this.scroll.query(r,Ne.ATTRIBUTE)?this.isolate(e,t).format(r,s):super.formatAt(e,t,r,s)}optimize(e){super.optimize(e);const t=this.formats();if(Object.keys(t).length===0)return this.unwrap();const r=this.next;r instanceof Ar&&r.prev===this&&py(t,r.formats())&&(r.moveChildren(this),r.remove())}replaceWith(e,t){const r=super.replaceWith(e,t);return this.attributes.copy(r),r}update(e,t){super.update(e,t),e.some(r=>r.target===this.domNode&&r.type==="attributes")&&this.attributes.build()}wrap(e,t){const r=super.wrap(e,t);return r instanceof Ar&&this.attributes.move(r),r}};rr.allowedChildren=[rr,vt],rr.blotName="inline",rr.scope=Ne.INLINE_BLOT,rr.tagName="SPAN";const Hi=rr,sr=class _o extends _t{static create(e){return super.create(e)}static formats(e,t){const r=t.query(_o.blotName);if(!(r!=null&&e.tagName===r.tagName)){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return e.tagName.toLowerCase()}}constructor(e,t){super(e,t),this.attributes=new ks(this.domNode)}format(e,t){const r=this.scroll.query(e,Ne.BLOCK);r!=null&&(r instanceof nn?this.attributes.attribute(r,t):e===this.statics.blotName&&!t?this.replaceWith(_o.blotName):t&&(e!==this.statics.blotName||this.formats()[e]!==t)&&this.replaceWith(e,t))}formats(){const e=this.attributes.values(),t=this.statics.formats(this.domNode,this.scroll);return t!=null&&(e[this.statics.blotName]=t),e}formatAt(e,t,r,s){this.scroll.query(r,Ne.BLOCK)!=null?this.format(r,s):super.formatAt(e,t,r,s)}insertAt(e,t,r){if(r==null||this.scroll.query(t,Ne.INLINE)!=null)super.insertAt(e,t,r);else{const s=this.split(e);if(s!=null){const l=this.scroll.create(t,r);s.parent.insertBefore(l,s)}else throw new Error("Attempt to insertAt after block boundaries")}}replaceWith(e,t){const r=super.replaceWith(e,t);return this.attributes.copy(r),r}update(e,t){super.update(e,t),e.some(r=>r.target===this.domNode&&r.type==="attributes")&&this.attributes.build()}};sr.blotName="block",sr.scope=Ne.BLOCK_BLOT,sr.tagName="P",sr.allowedChildren=[Hi,sr,vt];const Mr=sr,Gi=class extends _t{checkMerge(){return this.next!==null&&this.next.statics.blotName===this.statics.blotName}deleteAt(e,t){super.deleteAt(e,t),this.enforceAllowedChildren()}formatAt(e,t,r,s){super.formatAt(e,t,r,s),this.enforceAllowedChildren()}insertAt(e,t,r){super.insertAt(e,t,r),this.enforceAllowedChildren()}optimize(e){super.optimize(e),this.children.length>0&&this.next!=null&&this.checkMerge()&&(this.next.moveChildren(this),this.next.remove())}};Gi.blotName="container",Gi.scope=Ne.BLOCK_BLOT;const Rs=Gi;class my extends vt{static formats(e,t){}format(e,t){super.formatAt(0,this.length(),e,t)}formatAt(e,t,r,s){e===0&&t===this.length()?this.format(r,s):super.formatAt(e,t,r,s)}formats(){return this.statics.formats(this.domNode,this.scroll)}}const kt=my,gy={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},vy=100,ir=class extends _t{constructor(e,t){super(null,t),this.registry=e,this.scroll=this,this.build(),this.observer=new MutationObserver(r=>{this.update(r)}),this.observer.observe(this.domNode,gy),this.attach()}create(e,t){return this.registry.create(this,e,t)}find(e,t=!1){const r=this.registry.find(e,t);return r?r.scroll===this?r:t?this.find(r.scroll.domNode.parentNode,!0):null:null}query(e,t=Ne.ANY){return this.registry.query(e,t)}register(...e){return this.registry.register(...e)}build(){this.scroll!=null&&super.build()}detach(){super.detach(),this.observer.disconnect()}deleteAt(e,t){this.update(),e===0&&t===this.length()?this.children.forEach(r=>{r.remove()}):super.deleteAt(e,t)}formatAt(e,t,r,s){this.update(),super.formatAt(e,t,r,s)}insertAt(e,t,r){this.update(),super.insertAt(e,t,r)}optimize(e=[],t={}){super.optimize(t);const r=t.mutationsMap||new WeakMap;let s=Array.from(this.observer.takeRecords());for(;s.length>0;)e.push(s.pop());const l=(i,u=!0)=>{i==null||i===this||i.domNode.parentNode!=null&&(r.has(i.domNode)||r.set(i.domNode,[]),u&&l(i.parent))},o=i=>{r.has(i.domNode)&&(i instanceof _t&&i.children.forEach(o),r.delete(i.domNode),i.optimize(t))};let c=e;for(let i=0;c.length>0;i+=1){if(i>=vy)throw new Error("[Parchment] Maximum optimize iterations reached");for(c.forEach(u=>{const d=this.find(u.target,!0);d!=null&&(d.domNode===u.target&&(u.type==="childList"?(l(this.find(u.previousSibling,!1)),Array.from(u.addedNodes).forEach(h=>{const f=this.find(h,!1);l(f,!1),f instanceof _t&&f.children.forEach(g=>{l(g,!1)})})):u.type==="attributes"&&l(d.prev)),l(d))}),this.children.forEach(o),c=Array.from(this.observer.takeRecords()),s=c.slice();s.length>0;)e.push(s.pop())}}update(e,t={}){e=e||this.observer.takeRecords();const r=new WeakMap;e.map(s=>{const l=this.find(s.target,!0);return l==null?null:r.has(l.domNode)?(r.get(l.domNode).push(s),null):(r.set(l.domNode,[s]),l)}).forEach(s=>{s!=null&&s!==this&&r.has(s.domNode)&&s.update(r.get(s.domNode)||[],t)}),t.mutationsMap=r,r.has(this.domNode)&&super.update(r.get(this.domNode),t),this.optimize(e,t)}};ir.blotName="scroll",ir.defaultChild=Mr,ir.allowedChildren=[Mr,Rs],ir.scope=Ne.BLOCK_BLOT,ir.tagName="DIV";const Wi=ir,Ki=class nu extends vt{static create(e){return document.createTextNode(e)}static value(e){return e.data}constructor(e,t){super(e,t),this.text=this.statics.value(this.domNode)}deleteAt(e,t){this.domNode.data=this.text=this.text.slice(0,e)+this.text.slice(e+t)}index(e,t){return this.domNode===e?t:-1}insertAt(e,t,r){r==null?(this.text=this.text.slice(0,e)+t+this.text.slice(e),this.domNode.data=this.text):super.insertAt(e,t,r)}length(){return this.text.length}optimize(e){super.optimize(e),this.text=this.statics.value(this.domNode),this.text.length===0?this.remove():this.next instanceof nu&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())}position(e,t=!1){return[this.domNode,e]}split(e,t=!1){if(!t){if(e===0)return this;if(e===this.length())return this.next}const r=this.scroll.create(this.domNode.splitText(e));return this.parent.insertBefore(r,this.next||void 0),this.text=this.statics.value(this.domNode),r}update(e,t){e.some(r=>r.type==="characterData"&&r.target===this.domNode)&&(this.text=this.statics.value(this.domNode))}value(){return this.text}};Ki.blotName="text",Ki.scope=Ne.INLINE_BLOT;const Is=Ki,yy=Object.freeze(Object.defineProperty({__proto__:null,Attributor:nn,AttributorStore:ks,BlockBlot:Mr,ClassAttributor:$t,ContainerBlot:Rs,EmbedBlot:kt,InlineBlot:Hi,LeafBlot:vt,ParentBlot:_t,Registry:nr,Scope:Ne,ScrollBlot:Wi,StyleAttributor:Tn,TextBlot:Is},Symbol.toStringTag,{value:"Module"}));var Ls={exports:{}},Xi,Kl;function by(){if(Kl)return Xi;Kl=1;var n=-1,e=1,t=0;function r(E,P,O,_,j){if(E===P)return E?[[t,E]]:[];if(O!=null){var V=re(E,P,O);if(V)return V}var K=c(E,P),q=E.substring(0,K);E=E.substring(K),P=P.substring(K),K=u(E,P);var J=E.substring(E.length-K);E=E.substring(0,E.length-K),P=P.substring(0,P.length-K);var te=s(E,P);return q&&te.unshift([t,q]),J&&te.push([t,J]),T(te,j),_&&h(te),te}function s(E,P){var O;if(!E)return[[e,P]];if(!P)return[[n,E]];var _=E.length>P.length?E:P,j=E.length>P.length?P:E,V=_.indexOf(j);if(V!==-1)return O=[[e,_.substring(0,V)],[t,j],[e,_.substring(V+j.length)]],E.length>P.length&&(O[0][0]=O[2][0]=n),O;if(j.length===1)return[[n,E],[e,P]];var K=d(E,P);if(K){var q=K[0],J=K[1],te=K[2],me=K[3],ge=K[4],ve=r(q,te),xe=r(J,me);return ve.concat([[t,ge]],xe)}return l(E,P)}function l(E,P){for(var O=E.length,_=P.length,j=Math.ceil((O+_)/2),V=j,K=2*j,q=new Array(K),J=new Array(K),te=0;te<K;te++)q[te]=-1,J[te]=-1;q[V+1]=0,J[V+1]=0;for(var me=O-_,ge=me%2!==0,ve=0,xe=0,he=0,Oe=0,ye=0;ye<j;ye++){for(var N=-ye+ve;N<=ye-xe;N+=2){var R=V+N,w;N===-ye||N!==ye&&q[R-1]<q[R+1]?w=q[R+1]:w=q[R-1]+1;for(var C=w-N;w<O&&C<_&&E.charAt(w)===P.charAt(C);)w++,C++;if(q[R]=w,w>O)xe+=2;else if(C>_)ve+=2;else if(ge){var y=V+me-N;if(y>=0&&y<K&&J[y]!==-1){var x=O-J[y];if(w>=x)return o(E,P,w,C)}}}for(var I=-ye+he;I<=ye-Oe;I+=2){var y=V+I,x;I===-ye||I!==ye&&J[y-1]<J[y+1]?x=J[y+1]:x=J[y-1]+1;for(var B=x-I;x<O&&B<_&&E.charAt(O-x-1)===P.charAt(_-B-1);)x++,B++;if(J[y]=x,x>O)Oe+=2;else if(B>_)he+=2;else if(!ge){var R=V+me-I;if(R>=0&&R<K&&q[R]!==-1){var w=q[R],C=V+w-R;if(x=O-x,w>=x)return o(E,P,w,C)}}}}return[[n,E],[e,P]]}function o(E,P,O,_){var j=E.substring(0,O),V=P.substring(0,_),K=E.substring(O),q=P.substring(_),J=r(j,V),te=r(K,q);return J.concat(te)}function c(E,P){if(!E||!P||E.charAt(0)!==P.charAt(0))return 0;for(var O=0,_=Math.min(E.length,P.length),j=_,V=0;O<j;)E.substring(V,j)==P.substring(V,j)?(O=j,V=O):_=j,j=Math.floor((_-O)/2+O);return k(E.charCodeAt(j-1))&&j--,j}function i(E,P){var O=E.length,_=P.length;if(O==0||_==0)return 0;O>_?E=E.substring(O-_):O<_&&(P=P.substring(0,O));var j=Math.min(O,_);if(E==P)return j;for(var V=0,K=1;;){var q=E.substring(j-K),J=P.indexOf(q);if(J==-1)return V;K+=J,(J==0||E.substring(j-K)==P.substring(0,K))&&(V=K,K++)}}function u(E,P){if(!E||!P||E.slice(-1)!==P.slice(-1))return 0;for(var O=0,_=Math.min(E.length,P.length),j=_,V=0;O<j;)E.substring(E.length-j,E.length-V)==P.substring(P.length-j,P.length-V)?(O=j,V=O):_=j,j=Math.floor((_-O)/2+O);return F(E.charCodeAt(E.length-j))&&j--,j}function d(E,P){var O=E.length>P.length?E:P,_=E.length>P.length?P:E;if(O.length<4||_.length*2<O.length)return null;function j(xe,he,Oe){for(var ye=xe.substring(Oe,Oe+Math.floor(xe.length/4)),N=-1,R="",w,C,y,x;(N=he.indexOf(ye,N+1))!==-1;){var I=c(xe.substring(Oe),he.substring(N)),B=u(xe.substring(0,Oe),he.substring(0,N));R.length<B+I&&(R=he.substring(N-B,N)+he.substring(N,N+I),w=xe.substring(0,Oe-B),C=xe.substring(Oe+I),y=he.substring(0,N-B),x=he.substring(N+I))}return R.length*2>=xe.length?[w,C,y,x,R]:null}var V=j(O,_,Math.ceil(O.length/4)),K=j(O,_,Math.ceil(O.length/2)),q;if(!V&&!K)return null;K?V?q=V[4].length>K[4].length?V:K:q=K:q=V;var J,te,me,ge;E.length>P.length?(J=q[0],te=q[1],me=q[2],ge=q[3]):(me=q[0],ge=q[1],J=q[2],te=q[3]);var ve=q[4];return[J,te,me,ge,ve]}function h(E){for(var P=!1,O=[],_=0,j=null,V=0,K=0,q=0,J=0,te=0;V<E.length;)E[V][0]==t?(O[_++]=V,K=J,q=te,J=0,te=0,j=E[V][1]):(E[V][0]==e?J+=E[V][1].length:te+=E[V][1].length,j&&j.length<=Math.max(K,q)&&j.length<=Math.max(J,te)&&(E.splice(O[_-1],0,[n,j]),E[O[_-1]+1][0]=e,_--,_--,V=_>0?O[_-1]:-1,K=0,q=0,J=0,te=0,j=null,P=!0)),V++;for(P&&T(E),S(E),V=1;V<E.length;){if(E[V-1][0]==n&&E[V][0]==e){var me=E[V-1][1],ge=E[V][1],ve=i(me,ge),xe=i(ge,me);ve>=xe?(ve>=me.length/2||ve>=ge.length/2)&&(E.splice(V,0,[t,ge.substring(0,ve)]),E[V-1][1]=me.substring(0,me.length-ve),E[V+1][1]=ge.substring(ve),V++):(xe>=me.length/2||xe>=ge.length/2)&&(E.splice(V,0,[t,me.substring(0,xe)]),E[V-1][0]=e,E[V-1][1]=ge.substring(0,ge.length-xe),E[V+1][0]=n,E[V+1][1]=me.substring(xe),V++),V++}V++}}var f=/[^a-zA-Z0-9]/,g=/\s/,p=/[\r\n]/,v=/\n\r?\n$/,b=/^\r?\n\r?\n/;function S(E){function P(xe,he){if(!xe||!he)return 6;var Oe=xe.charAt(xe.length-1),ye=he.charAt(0),N=Oe.match(f),R=ye.match(f),w=N&&Oe.match(g),C=R&&ye.match(g),y=w&&Oe.match(p),x=C&&ye.match(p),I=y&&xe.match(v),B=x&&he.match(b);return I||B?5:y||x?4:N&&!w&&C?3:w||C?2:N||R?1:0}for(var O=1;O<E.length-1;){if(E[O-1][0]==t&&E[O+1][0]==t){var _=E[O-1][1],j=E[O][1],V=E[O+1][1],K=u(_,j);if(K){var q=j.substring(j.length-K);_=_.substring(0,_.length-K),j=q+j.substring(0,j.length-K),V=q+V}for(var J=_,te=j,me=V,ge=P(_,j)+P(j,V);j.charAt(0)===V.charAt(0);){_+=j.charAt(0),j=j.substring(1)+V.charAt(0),V=V.substring(1);var ve=P(_,j)+P(j,V);ve>=ge&&(ge=ve,J=_,te=j,me=V)}E[O-1][1]!=J&&(J?E[O-1][1]=J:(E.splice(O-1,1),O--),E[O][1]=te,me?E[O+1][1]=me:(E.splice(O+1,1),O--))}O++}}function T(E,P){E.push([t,""]);for(var O=0,_=0,j=0,V="",K="",q;O<E.length;){if(O<E.length-1&&!E[O][1]){E.splice(O,1);continue}switch(E[O][0]){case e:j++,K+=E[O][1],O++;break;case n:_++,V+=E[O][1],O++;break;case t:var J=O-j-_-1;if(P){if(J>=0&&z(E[J][1])){var te=E[J][1].slice(-1);if(E[J][1]=E[J][1].slice(0,-1),V=te+V,K=te+K,!E[J][1]){E.splice(J,1),O--;var me=J-1;E[me]&&E[me][0]===e&&(j++,K=E[me][1]+K,me--),E[me]&&E[me][0]===n&&(_++,V=E[me][1]+V,me--),J=me}}if(M(E[O][1])){var te=E[O][1].charAt(0);E[O][1]=E[O][1].slice(1),V+=te,K+=te}}if(O<E.length-1&&!E[O][1]){E.splice(O,1);break}if(V.length>0||K.length>0){V.length>0&&K.length>0&&(q=c(K,V),q!==0&&(J>=0?E[J][1]+=K.substring(0,q):(E.splice(0,0,[t,K.substring(0,q)]),O++),K=K.substring(q),V=V.substring(q)),q=u(K,V),q!==0&&(E[O][1]=K.substring(K.length-q)+E[O][1],K=K.substring(0,K.length-q),V=V.substring(0,V.length-q)));var ge=j+_;V.length===0&&K.length===0?(E.splice(O-ge,ge),O=O-ge):V.length===0?(E.splice(O-ge,ge,[e,K]),O=O-ge+1):K.length===0?(E.splice(O-ge,ge,[n,V]),O=O-ge+1):(E.splice(O-ge,ge,[n,V],[e,K]),O=O-ge+2)}O!==0&&E[O-1][0]===t?(E[O-1][1]+=E[O][1],E.splice(O,1)):O++,j=0,_=0,V="",K="";break}}E[E.length-1][1]===""&&E.pop();var ve=!1;for(O=1;O<E.length-1;)E[O-1][0]===t&&E[O+1][0]===t&&(E[O][1].substring(E[O][1].length-E[O-1][1].length)===E[O-1][1]?(E[O][1]=E[O-1][1]+E[O][1].substring(0,E[O][1].length-E[O-1][1].length),E[O+1][1]=E[O-1][1]+E[O+1][1],E.splice(O-1,1),ve=!0):E[O][1].substring(0,E[O+1][1].length)==E[O+1][1]&&(E[O-1][1]+=E[O+1][1],E[O][1]=E[O][1].substring(E[O+1][1].length)+E[O+1][1],E.splice(O+1,1),ve=!0)),O++;ve&&T(E,P)}function k(E){return E>=55296&&E<=56319}function F(E){return E>=56320&&E<=57343}function M(E){return F(E.charCodeAt(0))}function z(E){return k(E.charCodeAt(E.length-1))}function X(E){for(var P=[],O=0;O<E.length;O++)E[O][1].length>0&&P.push(E[O]);return P}function H(E,P,O,_){return z(E)||M(_)?null:X([[t,E],[n,P],[e,O],[t,_]])}function re(E,P,O){var _=typeof O=="number"?{index:O,length:0}:O.oldRange,j=typeof O=="number"?null:O.newRange,V=E.length,K=P.length;if(_.length===0&&(j===null||j.length===0)){var q=_.index,J=E.slice(0,q),te=E.slice(q),me=j?j.index:null;e:{var ge=q+K-V;if(me!==null&&me!==ge||ge<0||ge>K)break e;var ve=P.slice(0,ge),xe=P.slice(ge);if(xe!==te)break e;var he=Math.min(q,ge),Oe=J.slice(0,he),ye=ve.slice(0,he);if(Oe!==ye)break e;var N=J.slice(he),R=ve.slice(he);return H(Oe,N,R,te)}e:{if(me!==null&&me!==q)break e;var w=q,ve=P.slice(0,w),xe=P.slice(w);if(ve!==J)break e;var C=Math.min(V-w,K-w),y=te.slice(te.length-C),x=xe.slice(xe.length-C);if(y!==x)break e;var N=te.slice(0,te.length-C),R=xe.slice(0,xe.length-C);return H(J,N,R,y)}}if(_.length>0&&j&&j.length===0)e:{var Oe=E.slice(0,_.index),y=E.slice(_.index+_.length),he=Oe.length,C=y.length;if(K<he+C)break e;var ye=P.slice(0,he),x=P.slice(K-C);if(Oe!==ye||y!==x)break e;var N=E.slice(he,V-C),R=P.slice(he,K-C);return H(Oe,N,R,y)}return null}function G(E,P,O,_){return r(E,P,O,_,!0)}return G.INSERT=e,G.DELETE=n,G.EQUAL=t,Xi=G,Xi}var Dr={exports:{}};Dr.exports;var Xl;function Yl(){return Xl||(Xl=1,function(n,e){var t=200,r="__lodash_hash_undefined__",s=9007199254740991,l="[object Arguments]",o="[object Array]",c="[object Boolean]",i="[object Date]",u="[object Error]",d="[object Function]",h="[object GeneratorFunction]",f="[object Map]",g="[object Number]",p="[object Object]",v="[object Promise]",b="[object RegExp]",S="[object Set]",T="[object String]",k="[object Symbol]",F="[object WeakMap]",M="[object ArrayBuffer]",z="[object DataView]",X="[object Float32Array]",H="[object Float64Array]",re="[object Int8Array]",G="[object Int16Array]",E="[object Int32Array]",P="[object Uint8Array]",O="[object Uint8ClampedArray]",_="[object Uint16Array]",j="[object Uint32Array]",V=/[\\^$.*+?()[\]{}|]/g,K=/\w*$/,q=/^\[object .+?Constructor\]$/,J=/^(?:0|[1-9]\d*)$/,te={};te[l]=te[o]=te[M]=te[z]=te[c]=te[i]=te[X]=te[H]=te[re]=te[G]=te[E]=te[f]=te[g]=te[p]=te[b]=te[S]=te[T]=te[k]=te[P]=te[O]=te[_]=te[j]=!0,te[u]=te[d]=te[F]=!1;var me=typeof En=="object"&&En&&En.Object===Object&&En,ge=typeof self=="object"&&self&&self.Object===Object&&self,ve=me||ge||Function("return this")(),xe=e&&!e.nodeType&&e,he=xe&&!0&&n&&!n.nodeType&&n,Oe=he&&he.exports===xe;function ye(m,A){return m.set(A[0],A[1]),m}function N(m,A){return m.add(A),m}function R(m,A){for(var D=-1,ie=m?m.length:0;++D<ie&&A(m[D],D,m)!==!1;);return m}function w(m,A){for(var D=-1,ie=A.length,Fe=m.length;++D<ie;)m[Fe+D]=A[D];return m}function C(m,A,D,ie){for(var Fe=-1,ke=m?m.length:0;++Fe<ke;)D=A(D,m[Fe],Fe,m);return D}function y(m,A){for(var D=-1,ie=Array(m);++D<m;)ie[D]=A(D);return ie}function x(m,A){return m==null?void 0:m[A]}function I(m){var A=!1;if(m!=null&&typeof m.toString!="function")try{A=!!(m+"")}catch{}return A}function B(m){var A=-1,D=Array(m.size);return m.forEach(function(ie,Fe){D[++A]=[Fe,ie]}),D}function U(m,A){return function(D){return m(A(D))}}function $(m){var A=-1,D=Array(m.size);return m.forEach(function(ie){D[++A]=ie}),D}var W=Array.prototype,Z=Function.prototype,Y=Object.prototype,Q=ve["__core-js_shared__"],ne=function(){var m=/[^.]+$/.exec(Q&&Q.keys&&Q.keys.IE_PROTO||"");return m?"Symbol(src)_1."+m:""}(),oe=Z.toString,fe=Y.hasOwnProperty,we=Y.toString,De=RegExp("^"+oe.call(fe).replace(V,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ge=Oe?ve.Buffer:void 0,je=ve.Symbol,Be=ve.Uint8Array,Ve=U(Object.getPrototypeOf,Object),rt=Object.create,it=Y.propertyIsEnumerable,Dt=W.splice,bt=Object.getOwnPropertySymbols,_e=Ge?Ge.isBuffer:void 0,Pe=U(Object.keys,Object),We=Zt(ve,"DataView"),pe=Zt(ve,"Map"),be=Zt(ve,"Promise"),Ce=Zt(ve,"Set"),Ie=Zt(ve,"WeakMap"),Re=Zt(Object,"create"),$e=St(We),Ke=St(pe),et=St(be),dt=St(Ce),ft=St(Ie),Rt=je?je.prototype:void 0,Ut=Rt?Rt.valueOf:void 0;function lt(m){var A=-1,D=m?m.length:0;for(this.clear();++A<D;){var ie=m[A];this.set(ie[0],ie[1])}}function Ot(){this.__data__=Re?Re(null):{}}function Xt(m){return this.has(m)&&delete this.__data__[m]}function Hn(m){var A=this.__data__;if(Re){var D=A[m];return D===r?void 0:D}return fe.call(A,m)?A[m]:void 0}function gn(m){var A=this.__data__;return Re?A[m]!==void 0:fe.call(A,m)}function Cn(m,A){var D=this.__data__;return D[m]=Re&&A===void 0?r:A,this}lt.prototype.clear=Ot,lt.prototype.delete=Xt,lt.prototype.get=Hn,lt.prototype.has=gn,lt.prototype.set=Cn;function ot(m){var A=-1,D=m?m.length:0;for(this.clear();++A<D;){var ie=m[A];this.set(ie[0],ie[1])}}function fr(){this.__data__=[]}function hr(m){var A=this.__data__,D=Ue(A,m);if(D<0)return!1;var ie=A.length-1;return D==ie?A.pop():Dt.call(A,D,1),!0}function pr(m){var A=this.__data__,D=Ue(A,m);return D<0?void 0:A[D][1]}function mr(m){return Ue(this.__data__,m)>-1}function gr(m,A){var D=this.__data__,ie=Ue(D,m);return ie<0?D.push([m,A]):D[ie][1]=A,this}ot.prototype.clear=fr,ot.prototype.delete=hr,ot.prototype.get=pr,ot.prototype.has=mr,ot.prototype.set=gr;function ct(m){var A=-1,D=m?m.length:0;for(this.clear();++A<D;){var ie=m[A];this.set(ie[0],ie[1])}}function vr(){this.__data__={hash:new lt,map:new(pe||ot),string:new lt}}function yr(m){return Wn(this,m).delete(m)}function br(m){return Wn(this,m).get(m)}function xt(m){return Wn(this,m).has(m)}function xr(m,A){return Wn(this,m).set(m,A),this}ct.prototype.clear=vr,ct.prototype.delete=yr,ct.prototype.get=br,ct.prototype.has=xt,ct.prototype.set=xr;function pt(m){this.__data__=new ot(m)}function L(){this.__data__=new ot}function ae(m){return this.__data__.delete(m)}function se(m){return this.__data__.get(m)}function ce(m){return this.__data__.has(m)}function de(m,A){var D=this.__data__;if(D instanceof ot){var ie=D.__data__;if(!pe||ie.length<t-1)return ie.push([m,A]),this;D=this.__data__=new ct(ie)}return D.set(m,A),this}pt.prototype.clear=L,pt.prototype.delete=ae,pt.prototype.get=se,pt.prototype.has=ce,pt.prototype.set=de;function Le(m,A){var D=Jr(m)||Er(m)?y(m.length,String):[],ie=D.length,Fe=!!ie;for(var ke in m)fe.call(m,ke)&&!(Fe&&(ke=="length"||Fo(ke,ie)))&&D.push(ke);return D}function Ae(m,A,D){var ie=m[A];(!(fe.call(m,A)&&Ys(ie,D))||D===void 0&&!(A in m))&&(m[A]=D)}function Ue(m,A){for(var D=m.length;D--;)if(Ys(m[D][0],A))return D;return-1}function qe(m,A){return m&&Qr(A,ts(A),m)}function Qe(m,A,D,ie,Fe,ke,He){var ze;if(ie&&(ze=ke?ie(m,Fe,ke,He):ie(m)),ze!==void 0)return ze;if(!ln(m))return m;var at=Jr(m);if(at){if(ze=Bo(m),!A)return Ro(m,ze)}else{var Xe=bn(m),wt=Xe==d||Xe==h;if(Zs(m))return vn(m,A);if(Xe==p||Xe==l||wt&&!ke){if(I(m))return ke?m:{};if(ze=an(wt?{}:m),!A)return Io(m,qe(ze,m))}else{if(!te[Xe])return ke?m:{};ze=Po(m,Xe,Qe,A)}}He||(He=new pt);var Ct=He.get(m);if(Ct)return Ct;if(He.set(m,ze),!at)var ut=D?Lo(m):ts(m);return R(ut||m,function(At,mt){ut&&(mt=At,At=m[mt]),Ae(ze,mt,Qe(At,A,D,ie,mt,m,He))}),ze}function Et(m){return ln(m)?rt(m):{}}function ue(m,A,D){var ie=A(m);return Jr(m)?ie:w(ie,D(m))}function st(m){return we.call(m)}function It(m){if(!ln(m)||Do(m))return!1;var A=es(m)||I(m)?De:q;return A.test(St(m))}function Gn(m){if(!Ks(m))return Pe(m);var A=[];for(var D in Object(m))fe.call(m,D)&&D!="constructor"&&A.push(D);return A}function vn(m,A){if(A)return m.slice();var D=new m.constructor(m.length);return m.copy(D),D}function kn(m){var A=new m.constructor(m.byteLength);return new Be(A).set(new Be(m)),A}function Yt(m,A){var D=A?kn(m.buffer):m.buffer;return new m.constructor(D,m.byteOffset,m.byteLength)}function Gs(m,A,D){var ie=A?D(B(m),!0):B(m);return C(ie,ye,new m.constructor)}function Ws(m){var A=new m.constructor(m.source,K.exec(m));return A.lastIndex=m.lastIndex,A}function Oo(m,A,D){var ie=A?D($(m),!0):$(m);return C(ie,N,new m.constructor)}function Co(m){return Ut?Object(Ut.call(m)):{}}function ko(m,A){var D=A?kn(m.buffer):m.buffer;return new m.constructor(D,m.byteOffset,m.length)}function Ro(m,A){var D=-1,ie=m.length;for(A||(A=Array(ie));++D<ie;)A[D]=m[D];return A}function Qr(m,A,D,ie){D||(D={});for(var Fe=-1,ke=A.length;++Fe<ke;){var He=A[Fe],ze=void 0;Ae(D,He,ze===void 0?m[He]:ze)}return D}function Io(m,A){return Qr(m,yn(m),A)}function Lo(m){return ue(m,ts,yn)}function Wn(m,A){var D=m.__data__;return Mo(A)?D[typeof A=="string"?"string":"hash"]:D.map}function Zt(m,A){var D=x(m,A);return It(D)?D:void 0}var yn=bt?U(bt,Object):jo,bn=st;(We&&bn(new We(new ArrayBuffer(1)))!=z||pe&&bn(new pe)!=f||be&&bn(be.resolve())!=v||Ce&&bn(new Ce)!=S||Ie&&bn(new Ie)!=F)&&(bn=function(m){var A=we.call(m),D=A==p?m.constructor:void 0,ie=D?St(D):void 0;if(ie)switch(ie){case $e:return z;case Ke:return f;case et:return v;case dt:return S;case ft:return F}return A});function Bo(m){var A=m.length,D=m.constructor(A);return A&&typeof m[0]=="string"&&fe.call(m,"index")&&(D.index=m.index,D.input=m.input),D}function an(m){return typeof m.constructor=="function"&&!Ks(m)?Et(Ve(m)):{}}function Po(m,A,D,ie){var Fe=m.constructor;switch(A){case M:return kn(m);case c:case i:return new Fe(+m);case z:return Yt(m,ie);case X:case H:case re:case G:case E:case P:case O:case _:case j:return ko(m,ie);case f:return Gs(m,ie,D);case g:case T:return new Fe(m);case b:return Ws(m);case S:return Oo(m,ie,D);case k:return Co(m)}}function Fo(m,A){return A=A??s,!!A&&(typeof m=="number"||J.test(m))&&m>-1&&m%1==0&&m<A}function Mo(m){var A=typeof m;return A=="string"||A=="number"||A=="symbol"||A=="boolean"?m!=="__proto__":m===null}function Do(m){return!!ne&&ne in m}function Ks(m){var A=m&&m.constructor,D=typeof A=="function"&&A.prototype||Y;return m===D}function St(m){if(m!=null){try{return oe.call(m)}catch{}try{return m+""}catch{}}return""}function Xs(m){return Qe(m,!0,!0)}function Ys(m,A){return m===A||m!==m&&A!==A}function Er(m){return Uo(m)&&fe.call(m,"callee")&&(!it.call(m,"callee")||we.call(m)==l)}var Jr=Array.isArray;function wr(m){return m!=null&&Qs(m.length)&&!es(m)}function Uo(m){return Js(m)&&wr(m)}var Zs=_e||Vo;function es(m){var A=ln(m)?we.call(m):"";return A==d||A==h}function Qs(m){return typeof m=="number"&&m>-1&&m%1==0&&m<=s}function ln(m){var A=typeof m;return!!m&&(A=="object"||A=="function")}function Js(m){return!!m&&typeof m=="object"}function ts(m){return wr(m)?Le(m):Gn(m)}function jo(){return[]}function Vo(){return!1}n.exports=Xs}(Dr,Dr.exports)),Dr.exports}var Ur={exports:{}};Ur.exports;var Zl;function Ql(){return Zl||(Zl=1,function(n,e){var t=200,r="__lodash_hash_undefined__",s=1,l=2,o=9007199254740991,c="[object Arguments]",i="[object Array]",u="[object AsyncFunction]",d="[object Boolean]",h="[object Date]",f="[object Error]",g="[object Function]",p="[object GeneratorFunction]",v="[object Map]",b="[object Number]",S="[object Null]",T="[object Object]",k="[object Promise]",F="[object Proxy]",M="[object RegExp]",z="[object Set]",X="[object String]",H="[object Symbol]",re="[object Undefined]",G="[object WeakMap]",E="[object ArrayBuffer]",P="[object DataView]",O="[object Float32Array]",_="[object Float64Array]",j="[object Int8Array]",V="[object Int16Array]",K="[object Int32Array]",q="[object Uint8Array]",J="[object Uint8ClampedArray]",te="[object Uint16Array]",me="[object Uint32Array]",ge=/[\\^$.*+?()[\]{}|]/g,ve=/^\[object .+?Constructor\]$/,xe=/^(?:0|[1-9]\d*)$/,he={};he[O]=he[_]=he[j]=he[V]=he[K]=he[q]=he[J]=he[te]=he[me]=!0,he[c]=he[i]=he[E]=he[d]=he[P]=he[h]=he[f]=he[g]=he[v]=he[b]=he[T]=he[M]=he[z]=he[X]=he[G]=!1;var Oe=typeof En=="object"&&En&&En.Object===Object&&En,ye=typeof self=="object"&&self&&self.Object===Object&&self,N=Oe||ye||Function("return this")(),R=e&&!e.nodeType&&e,w=R&&!0&&n&&!n.nodeType&&n,C=w&&w.exports===R,y=C&&Oe.process,x=function(){try{return y&&y.binding&&y.binding("util")}catch{}}(),I=x&&x.isTypedArray;function B(m,A){for(var D=-1,ie=m==null?0:m.length,Fe=0,ke=[];++D<ie;){var He=m[D];A(He,D,m)&&(ke[Fe++]=He)}return ke}function U(m,A){for(var D=-1,ie=A.length,Fe=m.length;++D<ie;)m[Fe+D]=A[D];return m}function $(m,A){for(var D=-1,ie=m==null?0:m.length;++D<ie;)if(A(m[D],D,m))return!0;return!1}function W(m,A){for(var D=-1,ie=Array(m);++D<m;)ie[D]=A(D);return ie}function Z(m){return function(A){return m(A)}}function Y(m,A){return m.has(A)}function Q(m,A){return m==null?void 0:m[A]}function ne(m){var A=-1,D=Array(m.size);return m.forEach(function(ie,Fe){D[++A]=[Fe,ie]}),D}function oe(m,A){return function(D){return m(A(D))}}function fe(m){var A=-1,D=Array(m.size);return m.forEach(function(ie){D[++A]=ie}),D}var we=Array.prototype,De=Function.prototype,Ge=Object.prototype,je=N["__core-js_shared__"],Be=De.toString,Ve=Ge.hasOwnProperty,rt=function(){var m=/[^.]+$/.exec(je&&je.keys&&je.keys.IE_PROTO||"");return m?"Symbol(src)_1."+m:""}(),it=Ge.toString,Dt=RegExp("^"+Be.call(Ve).replace(ge,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),bt=C?N.Buffer:void 0,_e=N.Symbol,Pe=N.Uint8Array,We=Ge.propertyIsEnumerable,pe=we.splice,be=_e?_e.toStringTag:void 0,Ce=Object.getOwnPropertySymbols,Ie=bt?bt.isBuffer:void 0,Re=oe(Object.keys,Object),$e=yn(N,"DataView"),Ke=yn(N,"Map"),et=yn(N,"Promise"),dt=yn(N,"Set"),ft=yn(N,"WeakMap"),Rt=yn(Object,"create"),Ut=St($e),lt=St(Ke),Ot=St(et),Xt=St(dt),Hn=St(ft),gn=_e?_e.prototype:void 0,Cn=gn?gn.valueOf:void 0;function ot(m){var A=-1,D=m==null?0:m.length;for(this.clear();++A<D;){var ie=m[A];this.set(ie[0],ie[1])}}function fr(){this.__data__=Rt?Rt(null):{},this.size=0}function hr(m){var A=this.has(m)&&delete this.__data__[m];return this.size-=A?1:0,A}function pr(m){var A=this.__data__;if(Rt){var D=A[m];return D===r?void 0:D}return Ve.call(A,m)?A[m]:void 0}function mr(m){var A=this.__data__;return Rt?A[m]!==void 0:Ve.call(A,m)}function gr(m,A){var D=this.__data__;return this.size+=this.has(m)?0:1,D[m]=Rt&&A===void 0?r:A,this}ot.prototype.clear=fr,ot.prototype.delete=hr,ot.prototype.get=pr,ot.prototype.has=mr,ot.prototype.set=gr;function ct(m){var A=-1,D=m==null?0:m.length;for(this.clear();++A<D;){var ie=m[A];this.set(ie[0],ie[1])}}function vr(){this.__data__=[],this.size=0}function yr(m){var A=this.__data__,D=vn(A,m);if(D<0)return!1;var ie=A.length-1;return D==ie?A.pop():pe.call(A,D,1),--this.size,!0}function br(m){var A=this.__data__,D=vn(A,m);return D<0?void 0:A[D][1]}function xt(m){return vn(this.__data__,m)>-1}function xr(m,A){var D=this.__data__,ie=vn(D,m);return ie<0?(++this.size,D.push([m,A])):D[ie][1]=A,this}ct.prototype.clear=vr,ct.prototype.delete=yr,ct.prototype.get=br,ct.prototype.has=xt,ct.prototype.set=xr;function pt(m){var A=-1,D=m==null?0:m.length;for(this.clear();++A<D;){var ie=m[A];this.set(ie[0],ie[1])}}function L(){this.size=0,this.__data__={hash:new ot,map:new(Ke||ct),string:new ot}}function ae(m){var A=Zt(this,m).delete(m);return this.size-=A?1:0,A}function se(m){return Zt(this,m).get(m)}function ce(m){return Zt(this,m).has(m)}function de(m,A){var D=Zt(this,m),ie=D.size;return D.set(m,A),this.size+=D.size==ie?0:1,this}pt.prototype.clear=L,pt.prototype.delete=ae,pt.prototype.get=se,pt.prototype.has=ce,pt.prototype.set=de;function Le(m){var A=-1,D=m==null?0:m.length;for(this.__data__=new pt;++A<D;)this.add(m[A])}function Ae(m){return this.__data__.set(m,r),this}function Ue(m){return this.__data__.has(m)}Le.prototype.add=Le.prototype.push=Ae,Le.prototype.has=Ue;function qe(m){var A=this.__data__=new ct(m);this.size=A.size}function Qe(){this.__data__=new ct,this.size=0}function Et(m){var A=this.__data__,D=A.delete(m);return this.size=A.size,D}function ue(m){return this.__data__.get(m)}function st(m){return this.__data__.has(m)}function It(m,A){var D=this.__data__;if(D instanceof ct){var ie=D.__data__;if(!Ke||ie.length<t-1)return ie.push([m,A]),this.size=++D.size,this;D=this.__data__=new pt(ie)}return D.set(m,A),this.size=D.size,this}qe.prototype.clear=Qe,qe.prototype.delete=Et,qe.prototype.get=ue,qe.prototype.has=st,qe.prototype.set=It;function Gn(m,A){var D=Er(m),ie=!D&&Ys(m),Fe=!D&&!ie&&wr(m),ke=!D&&!ie&&!Fe&&Js(m),He=D||ie||Fe||ke,ze=He?W(m.length,String):[],at=ze.length;for(var Xe in m)Ve.call(m,Xe)&&!(He&&(Xe=="length"||Fe&&(Xe=="offset"||Xe=="parent")||ke&&(Xe=="buffer"||Xe=="byteLength"||Xe=="byteOffset")||Po(Xe,at)))&&ze.push(Xe);return ze}function vn(m,A){for(var D=m.length;D--;)if(Xs(m[D][0],A))return D;return-1}function kn(m,A,D){var ie=A(m);return Er(m)?ie:U(ie,D(m))}function Yt(m){return m==null?m===void 0?re:S:be&&be in Object(m)?bn(m):Ks(m)}function Gs(m){return ln(m)&&Yt(m)==c}function Ws(m,A,D,ie,Fe){return m===A?!0:m==null||A==null||!ln(m)&&!ln(A)?m!==m&&A!==A:Oo(m,A,D,ie,Ws,Fe)}function Oo(m,A,D,ie,Fe,ke){var He=Er(m),ze=Er(A),at=He?i:an(m),Xe=ze?i:an(A);at=at==c?T:at,Xe=Xe==c?T:Xe;var wt=at==T,Ct=Xe==T,ut=at==Xe;if(ut&&wr(m)){if(!wr(A))return!1;He=!0,wt=!1}if(ut&&!wt)return ke||(ke=new qe),He||Js(m)?Qr(m,A,D,ie,Fe,ke):Io(m,A,at,D,ie,Fe,ke);if(!(D&s)){var At=wt&&Ve.call(m,"__wrapped__"),mt=Ct&&Ve.call(A,"__wrapped__");if(At||mt){var Rn=At?m.value():m,xn=mt?A.value():A;return ke||(ke=new qe),Fe(Rn,xn,D,ie,ke)}}return ut?(ke||(ke=new qe),Lo(m,A,D,ie,Fe,ke)):!1}function Co(m){if(!Qs(m)||Mo(m))return!1;var A=Zs(m)?Dt:ve;return A.test(St(m))}function ko(m){return ln(m)&&es(m.length)&&!!he[Yt(m)]}function Ro(m){if(!Do(m))return Re(m);var A=[];for(var D in Object(m))Ve.call(m,D)&&D!="constructor"&&A.push(D);return A}function Qr(m,A,D,ie,Fe,ke){var He=D&s,ze=m.length,at=A.length;if(ze!=at&&!(He&&at>ze))return!1;var Xe=ke.get(m);if(Xe&&ke.get(A))return Xe==A;var wt=-1,Ct=!0,ut=D&l?new Le:void 0;for(ke.set(m,A),ke.set(A,m);++wt<ze;){var At=m[wt],mt=A[wt];if(ie)var Rn=He?ie(mt,At,wt,A,m,ke):ie(At,mt,wt,m,A,ke);if(Rn!==void 0){if(Rn)continue;Ct=!1;break}if(ut){if(!$(A,function(xn,Kn){if(!Y(ut,Kn)&&(At===xn||Fe(At,xn,D,ie,ke)))return ut.push(Kn)})){Ct=!1;break}}else if(!(At===mt||Fe(At,mt,D,ie,ke))){Ct=!1;break}}return ke.delete(m),ke.delete(A),Ct}function Io(m,A,D,ie,Fe,ke,He){switch(D){case P:if(m.byteLength!=A.byteLength||m.byteOffset!=A.byteOffset)return!1;m=m.buffer,A=A.buffer;case E:return!(m.byteLength!=A.byteLength||!ke(new Pe(m),new Pe(A)));case d:case h:case b:return Xs(+m,+A);case f:return m.name==A.name&&m.message==A.message;case M:case X:return m==A+"";case v:var ze=ne;case z:var at=ie&s;if(ze||(ze=fe),m.size!=A.size&&!at)return!1;var Xe=He.get(m);if(Xe)return Xe==A;ie|=l,He.set(m,A);var wt=Qr(ze(m),ze(A),ie,Fe,ke,He);return He.delete(m),wt;case H:if(Cn)return Cn.call(m)==Cn.call(A)}return!1}function Lo(m,A,D,ie,Fe,ke){var He=D&s,ze=Wn(m),at=ze.length,Xe=Wn(A),wt=Xe.length;if(at!=wt&&!He)return!1;for(var Ct=at;Ct--;){var ut=ze[Ct];if(!(He?ut in A:Ve.call(A,ut)))return!1}var At=ke.get(m);if(At&&ke.get(A))return At==A;var mt=!0;ke.set(m,A),ke.set(A,m);for(var Rn=He;++Ct<at;){ut=ze[Ct];var xn=m[ut],Kn=A[ut];if(ie)var eu=He?ie(Kn,xn,ut,A,m,ke):ie(xn,Kn,ut,m,A,ke);if(!(eu===void 0?xn===Kn||Fe(xn,Kn,D,ie,ke):eu)){mt=!1;break}Rn||(Rn=ut=="constructor")}if(mt&&!Rn){var ei=m.constructor,ti=A.constructor;ei!=ti&&"constructor"in m&&"constructor"in A&&!(typeof ei=="function"&&ei instanceof ei&&typeof ti=="function"&&ti instanceof ti)&&(mt=!1)}return ke.delete(m),ke.delete(A),mt}function Wn(m){return kn(m,ts,Bo)}function Zt(m,A){var D=m.__data__;return Fo(A)?D[typeof A=="string"?"string":"hash"]:D.map}function yn(m,A){var D=Q(m,A);return Co(D)?D:void 0}function bn(m){var A=Ve.call(m,be),D=m[be];try{m[be]=void 0;var ie=!0}catch{}var Fe=it.call(m);return ie&&(A?m[be]=D:delete m[be]),Fe}var Bo=Ce?function(m){return m==null?[]:(m=Object(m),B(Ce(m),function(A){return We.call(m,A)}))}:jo,an=Yt;($e&&an(new $e(new ArrayBuffer(1)))!=P||Ke&&an(new Ke)!=v||et&&an(et.resolve())!=k||dt&&an(new dt)!=z||ft&&an(new ft)!=G)&&(an=function(m){var A=Yt(m),D=A==T?m.constructor:void 0,ie=D?St(D):"";if(ie)switch(ie){case Ut:return P;case lt:return v;case Ot:return k;case Xt:return z;case Hn:return G}return A});function Po(m,A){return A=A??o,!!A&&(typeof m=="number"||xe.test(m))&&m>-1&&m%1==0&&m<A}function Fo(m){var A=typeof m;return A=="string"||A=="number"||A=="symbol"||A=="boolean"?m!=="__proto__":m===null}function Mo(m){return!!rt&&rt in m}function Do(m){var A=m&&m.constructor,D=typeof A=="function"&&A.prototype||Ge;return m===D}function Ks(m){return it.call(m)}function St(m){if(m!=null){try{return Be.call(m)}catch{}try{return m+""}catch{}}return""}function Xs(m,A){return m===A||m!==m&&A!==A}var Ys=Gs(function(){return arguments}())?Gs:function(m){return ln(m)&&Ve.call(m,"callee")&&!We.call(m,"callee")},Er=Array.isArray;function Jr(m){return m!=null&&es(m.length)&&!Zs(m)}var wr=Ie||Vo;function Uo(m,A){return Ws(m,A)}function Zs(m){if(!Qs(m))return!1;var A=Yt(m);return A==g||A==p||A==u||A==F}function es(m){return typeof m=="number"&&m>-1&&m%1==0&&m<=o}function Qs(m){var A=typeof m;return m!=null&&(A=="object"||A=="function")}function ln(m){return m!=null&&typeof m=="object"}var Js=I?Z(I):ko;function ts(m){return Jr(m)?Gn(m):Ro(m)}function jo(){return[]}function Vo(){return!1}n.exports=Uo}(Ur,Ur.exports)),Ur.exports}var Bs={},Jl;function xy(){if(Jl)return Bs;Jl=1,Object.defineProperty(Bs,"__esModule",{value:!0});const n=Yl(),e=Ql();var t;return function(r){function s(i={},u={},d=!1){typeof i!="object"&&(i={}),typeof u!="object"&&(u={});let h=n(u);d||(h=Object.keys(h).reduce((f,g)=>(h[g]!=null&&(f[g]=h[g]),f),{}));for(const f in i)i[f]!==void 0&&u[f]===void 0&&(h[f]=i[f]);return Object.keys(h).length>0?h:void 0}r.compose=s;function l(i={},u={}){typeof i!="object"&&(i={}),typeof u!="object"&&(u={});const d=Object.keys(i).concat(Object.keys(u)).reduce((h,f)=>(e(i[f],u[f])||(h[f]=u[f]===void 0?null:u[f]),h),{});return Object.keys(d).length>0?d:void 0}r.diff=l;function o(i={},u={}){i=i||{};const d=Object.keys(u).reduce((h,f)=>(u[f]!==i[f]&&i[f]!==void 0&&(h[f]=u[f]),h),{});return Object.keys(i).reduce((h,f)=>(i[f]!==u[f]&&u[f]===void 0&&(h[f]=null),h),d)}r.invert=o;function c(i,u,d=!1){if(typeof i!="object")return u;if(typeof u!="object")return;if(!d)return u;const h=Object.keys(u).reduce((f,g)=>(i[g]===void 0&&(f[g]=u[g]),f),{});return Object.keys(h).length>0?h:void 0}r.transform=c}(t||(t={})),Bs.default=t,Bs}var Ps={},ec;function tc(){if(ec)return Ps;ec=1,Object.defineProperty(Ps,"__esModule",{value:!0});var n;return function(e){function t(r){return typeof r.delete=="number"?r.delete:typeof r.retain=="number"?r.retain:typeof r.retain=="object"&&r.retain!==null?1:typeof r.insert=="string"?r.insert.length:1}e.length=t}(n||(n={})),Ps.default=n,Ps}var Fs={},nc;function Ey(){if(nc)return Fs;nc=1,Object.defineProperty(Fs,"__esModule",{value:!0});const n=tc();class e{constructor(r){this.ops=r,this.index=0,this.offset=0}hasNext(){return this.peekLength()<1/0}next(r){r||(r=1/0);const s=this.ops[this.index];if(s){const l=this.offset,o=n.default.length(s);if(r>=o-l?(r=o-l,this.index+=1,this.offset=0):this.offset+=r,typeof s.delete=="number")return{delete:r};{const c={};return s.attributes&&(c.attributes=s.attributes),typeof s.retain=="number"?c.retain=r:typeof s.retain=="object"&&s.retain!==null?c.retain=s.retain:typeof s.insert=="string"?c.insert=s.insert.substr(l,r):c.insert=s.insert,c}}else return{retain:1/0}}peek(){return this.ops[this.index]}peekLength(){return this.ops[this.index]?n.default.length(this.ops[this.index])-this.offset:1/0}peekType(){const r=this.ops[this.index];return r?typeof r.delete=="number"?"delete":typeof r.retain=="number"||typeof r.retain=="object"&&r.retain!==null?"retain":"insert":"retain"}rest(){if(this.hasNext()){if(this.offset===0)return this.ops.slice(this.index);{const r=this.offset,s=this.index,l=this.next(),o=this.ops.slice(this.index);return this.offset=r,this.index=s,[l].concat(o)}}else return[]}}return Fs.default=e,Fs}var rc;function wy(){return rc||(rc=1,function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.AttributeMap=e.OpIterator=e.Op=void 0;const t=by(),r=Yl(),s=Ql(),l=xy();e.AttributeMap=l.default;const o=tc();e.Op=o.default;const c=Ey();e.OpIterator=c.default;const i="\0",u=(h,f)=>{if(typeof h!="object"||h===null)throw new Error(`cannot retain a ${typeof h}`);if(typeof f!="object"||f===null)throw new Error(`cannot retain a ${typeof f}`);const g=Object.keys(h)[0];if(!g||g!==Object.keys(f)[0])throw new Error(`embed types not matched: ${g} != ${Object.keys(f)[0]}`);return[g,h[g],f[g]]};class d{constructor(f){Array.isArray(f)?this.ops=f:f!=null&&Array.isArray(f.ops)?this.ops=f.ops:this.ops=[]}static registerEmbed(f,g){this.handlers[f]=g}static unregisterEmbed(f){delete this.handlers[f]}static getHandler(f){const g=this.handlers[f];if(!g)throw new Error(`no handlers for embed type "${f}"`);return g}insert(f,g){const p={};return typeof f=="string"&&f.length===0?this:(p.insert=f,g!=null&&typeof g=="object"&&Object.keys(g).length>0&&(p.attributes=g),this.push(p))}delete(f){return f<=0?this:this.push({delete:f})}retain(f,g){if(typeof f=="number"&&f<=0)return this;const p={retain:f};return g!=null&&typeof g=="object"&&Object.keys(g).length>0&&(p.attributes=g),this.push(p)}push(f){let g=this.ops.length,p=this.ops[g-1];if(f=r(f),typeof p=="object"){if(typeof f.delete=="number"&&typeof p.delete=="number")return this.ops[g-1]={delete:p.delete+f.delete},this;if(typeof p.delete=="number"&&f.insert!=null&&(g-=1,p=this.ops[g-1],typeof p!="object"))return this.ops.unshift(f),this;if(s(f.attributes,p.attributes)){if(typeof f.insert=="string"&&typeof p.insert=="string")return this.ops[g-1]={insert:p.insert+f.insert},typeof f.attributes=="object"&&(this.ops[g-1].attributes=f.attributes),this;if(typeof f.retain=="number"&&typeof p.retain=="number")return this.ops[g-1]={retain:p.retain+f.retain},typeof f.attributes=="object"&&(this.ops[g-1].attributes=f.attributes),this}}return g===this.ops.length?this.ops.push(f):this.ops.splice(g,0,f),this}chop(){const f=this.ops[this.ops.length-1];return f&&typeof f.retain=="number"&&!f.attributes&&this.ops.pop(),this}filter(f){return this.ops.filter(f)}forEach(f){this.ops.forEach(f)}map(f){return this.ops.map(f)}partition(f){const g=[],p=[];return this.forEach(v=>{(f(v)?g:p).push(v)}),[g,p]}reduce(f,g){return this.ops.reduce(f,g)}changeLength(){return this.reduce((f,g)=>g.insert?f+o.default.length(g):g.delete?f-g.delete:f,0)}length(){return this.reduce((f,g)=>f+o.default.length(g),0)}slice(f=0,g=1/0){const p=[],v=new c.default(this.ops);let b=0;for(;b<g&&v.hasNext();){let S;b<f?S=v.next(f-b):(S=v.next(g-b),p.push(S)),b+=o.default.length(S)}return new d(p)}compose(f){const g=new c.default(this.ops),p=new c.default(f.ops),v=[],b=p.peek();if(b!=null&&typeof b.retain=="number"&&b.attributes==null){let T=b.retain;for(;g.peekType()==="insert"&&g.peekLength()<=T;)T-=g.peekLength(),v.push(g.next());b.retain-T>0&&p.next(b.retain-T)}const S=new d(v);for(;g.hasNext()||p.hasNext();)if(p.peekType()==="insert")S.push(p.next());else if(g.peekType()==="delete")S.push(g.next());else{const T=Math.min(g.peekLength(),p.peekLength()),k=g.next(T),F=p.next(T);if(F.retain){const M={};if(typeof k.retain=="number")M.retain=typeof F.retain=="number"?T:F.retain;else if(typeof F.retain=="number")k.retain==null?M.insert=k.insert:M.retain=k.retain;else{const X=k.retain==null?"insert":"retain",[H,re,G]=u(k[X],F.retain),E=d.getHandler(H);M[X]={[H]:E.compose(re,G,X==="retain")}}const z=l.default.compose(k.attributes,F.attributes,typeof k.retain=="number");if(z&&(M.attributes=z),S.push(M),!p.hasNext()&&s(S.ops[S.ops.length-1],M)){const X=new d(g.rest());return S.concat(X).chop()}}else typeof F.delete=="number"&&(typeof k.retain=="number"||typeof k.retain=="object"&&k.retain!==null)&&S.push(F)}return S.chop()}concat(f){const g=new d(this.ops.slice());return f.ops.length>0&&(g.push(f.ops[0]),g.ops=g.ops.concat(f.ops.slice(1))),g}diff(f,g){if(this.ops===f.ops)return new d;const p=[this,f].map(k=>k.map(F=>{if(F.insert!=null)return typeof F.insert=="string"?F.insert:i;const M=k===f?"on":"with";throw new Error("diff() called "+M+" non-document")}).join("")),v=new d,b=t(p[0],p[1],g,!0),S=new c.default(this.ops),T=new c.default(f.ops);return b.forEach(k=>{let F=k[1].length;for(;F>0;){let M=0;switch(k[0]){case t.INSERT:M=Math.min(T.peekLength(),F),v.push(T.next(M));break;case t.DELETE:M=Math.min(F,S.peekLength()),S.next(M),v.delete(M);break;case t.EQUAL:M=Math.min(S.peekLength(),T.peekLength(),F);const z=S.next(M),X=T.next(M);s(z.insert,X.insert)?v.retain(M,l.default.diff(z.attributes,X.attributes)):v.push(X).delete(M);break}F-=M}}),v.chop()}eachLine(f,g=`
18
+ `){const p=new c.default(this.ops);let v=new d,b=0;for(;p.hasNext();){if(p.peekType()!=="insert")return;const S=p.peek(),T=o.default.length(S)-p.peekLength(),k=typeof S.insert=="string"?S.insert.indexOf(g,T)-T:-1;if(k<0)v.push(p.next());else if(k>0)v.push(p.next(k));else{if(f(v,p.next(1).attributes||{},b)===!1)return;b+=1,v=new d}}v.length()>0&&f(v,{},b)}invert(f){const g=new d;return this.reduce((p,v)=>{if(v.insert)g.delete(o.default.length(v));else{if(typeof v.retain=="number"&&v.attributes==null)return g.retain(v.retain),p+v.retain;if(v.delete||typeof v.retain=="number"){const b=v.delete||v.retain;return f.slice(p,p+b).forEach(T=>{v.delete?g.push(T):v.retain&&v.attributes&&g.retain(o.default.length(T),l.default.invert(v.attributes,T.attributes))}),p+b}else if(typeof v.retain=="object"&&v.retain!==null){const b=f.slice(p,p+1),S=new c.default(b.ops).next(),[T,k,F]=u(v.retain,S.insert),M=d.getHandler(T);return g.retain({[T]:M.invert(k,F)},l.default.invert(v.attributes,S.attributes)),p+1}}return p},0),g.chop()}transform(f,g=!1){if(g=!!g,typeof f=="number")return this.transformPosition(f,g);const p=f,v=new c.default(this.ops),b=new c.default(p.ops),S=new d;for(;v.hasNext()||b.hasNext();)if(v.peekType()==="insert"&&(g||b.peekType()!=="insert"))S.retain(o.default.length(v.next()));else if(b.peekType()==="insert")S.push(b.next());else{const T=Math.min(v.peekLength(),b.peekLength()),k=v.next(T),F=b.next(T);if(k.delete)continue;if(F.delete)S.push(F);else{const M=k.retain,z=F.retain;let X=typeof z=="object"&&z!==null?z:T;if(typeof M=="object"&&M!==null&&typeof z=="object"&&z!==null){const H=Object.keys(M)[0];if(H===Object.keys(z)[0]){const re=d.getHandler(H);re&&(X={[H]:re.transform(M[H],z[H],g)})}}S.retain(X,l.default.transform(k.attributes,F.attributes,g))}}return S.chop()}transformPosition(f,g=!1){g=!!g;const p=new c.default(this.ops);let v=0;for(;p.hasNext()&&v<=f;){const b=p.peekLength(),S=p.peekType();if(p.next(),S==="delete"){f-=Math.min(b,f-v);continue}else S==="insert"&&(v<f||!g)&&(f+=b);v+=b}return f}}d.Op=o.default,d.OpIterator=c.default,d.AttributeMap=l.default,d.handlers={},e.default=d,n.exports=d,n.exports.default=d}(Ls,Ls.exports)),Ls.exports}var Lt=wy();const Te=bi(Lt);class qt extends kt{static value(){}optimize(){(this.prev||this.next)&&this.remove()}length(){return 0}value(){return""}}qt.blotName="break",qt.tagName="BR";let zt=class extends Is{};const Ay={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function Ms(n){return n.replace(/[&<>"']/g,e=>Ay[e])}const on=class on extends Hi{static compare(e,t){const r=on.order.indexOf(e),s=on.order.indexOf(t);return r>=0||s>=0?r-s:e===t?0:e<t?-1:1}formatAt(e,t,r,s){if(on.compare(this.statics.blotName,r)<0&&this.scroll.query(r,Ne.BLOT)){const l=this.isolate(e,t);s&&l.wrap(r,s)}else super.formatAt(e,t,r,s)}optimize(e){if(super.optimize(e),this.parent instanceof on&&on.compare(this.statics.blotName,this.parent.statics.blotName)>0){const t=this.parent.isolate(this.offset(),this.length());this.moveChildren(t),t.wrap(this)}}};Ee(on,"allowedChildren",[on,qt,kt,zt]),Ee(on,"order",["cursor","inline","link","underline","strike","italic","bold","script","code"]);let rn=on;const sc=1;class ht extends Mr{constructor(){super(...arguments);Ee(this,"cache",{})}delta(){return this.cache.delta==null&&(this.cache.delta=ic(this)),this.cache.delta}deleteAt(t,r){super.deleteAt(t,r),this.cache={}}formatAt(t,r,s,l){r<=0||(this.scroll.query(s,Ne.BLOCK)?t+r===this.length()&&this.format(s,l):super.formatAt(t,Math.min(r,this.length()-t-1),s,l),this.cache={})}insertAt(t,r,s){if(s!=null){super.insertAt(t,r,s),this.cache={};return}if(r.length===0)return;const l=r.split(`
19
+ `),o=l.shift();o.length>0&&(t<this.length()-1||this.children.tail==null?super.insertAt(Math.min(t,this.length()-1),o):this.children.tail.insertAt(this.children.tail.length(),o),this.cache={});let c=this;l.reduce((i,u)=>(c=c.split(i,!0),c.insertAt(0,u),u.length),t+o.length)}insertBefore(t,r){const{head:s}=this.children;super.insertBefore(t,r),s instanceof qt&&s.remove(),this.cache={}}length(){return this.cache.length==null&&(this.cache.length=super.length()+sc),this.cache.length}moveChildren(t,r){super.moveChildren(t,r),this.cache={}}optimize(t){super.optimize(t),this.cache={}}path(t){return super.path(t,!0)}removeChild(t){super.removeChild(t),this.cache={}}split(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(r&&(t===0||t>=this.length()-sc)){const l=this.clone();return t===0?(this.parent.insertBefore(l,this),this):(this.parent.insertBefore(l,this.next),l)}const s=super.split(t,r);return this.cache={},s}}ht.blotName="block",ht.tagName="P",ht.defaultChild=qt,ht.allowedChildren=[qt,rn,kt,zt];class Bt extends kt{attach(){super.attach(),this.attributes=new ks(this.domNode)}delta(){return new Te().insert(this.value(),{...this.formats(),...this.attributes.values()})}format(e,t){const r=this.scroll.query(e,Ne.BLOCK_ATTRIBUTE);r!=null&&this.attributes.attribute(r,t)}formatAt(e,t,r,s){this.format(r,s)}insertAt(e,t,r){if(r!=null){super.insertAt(e,t,r);return}const s=t.split(`
20
+ `),l=s.pop(),o=s.map(i=>{const u=this.scroll.create(ht.blotName);return u.insertAt(0,i),u}),c=this.split(e);o.forEach(i=>{this.parent.insertBefore(i,c)}),l&&this.parent.insertBefore(this.scroll.create("text",l),c)}}Bt.scope=Ne.BLOCK_BLOT;function ic(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return n.descendants(vt).reduce((t,r)=>r.length()===0?t:t.insert(r.value(),Pt(r,{},e)),new Te).insert(`
21
+ `,Pt(n))}function Pt(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return n==null||("formats"in n&&typeof n.formats=="function"&&(e={...e,...n.formats()},t&&delete e["code-token"]),n.parent==null||n.parent.statics.blotName==="scroll"||n.parent.statics.scope!==n.statics.scope)?e:Pt(n.parent,e,t)}const Mt=class Mt extends kt{static value(){}constructor(e,t,r){super(e,t),this.selection=r,this.textNode=document.createTextNode(Mt.CONTENTS),this.domNode.appendChild(this.textNode),this.savedLength=0}detach(){this.parent!=null&&this.parent.removeChild(this)}format(e,t){if(this.savedLength!==0){super.format(e,t);return}let r=this,s=0;for(;r!=null&&r.statics.scope!==Ne.BLOCK_BLOT;)s+=r.offset(r.parent),r=r.parent;r!=null&&(this.savedLength=Mt.CONTENTS.length,r.optimize(),r.formatAt(s,Mt.CONTENTS.length,e,t),this.savedLength=0)}index(e,t){return e===this.textNode?0:super.index(e,t)}length(){return this.savedLength}position(){return[this.textNode,this.textNode.data.length]}remove(){super.remove(),this.parent=null}restore(){if(this.selection.composing||this.parent==null)return null;const e=this.selection.getNativeRange();for(;this.domNode.lastChild!=null&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);const t=this.prev instanceof zt?this.prev:null,r=t?t.length():0,s=this.next instanceof zt?this.next:null,l=s?s.text:"",{textNode:o}=this,c=o.data.split(Mt.CONTENTS).join("");o.data=Mt.CONTENTS;let i;if(t)i=t,(c||s)&&(t.insertAt(t.length(),c+l),s&&s.remove());else if(s)i=s,s.insertAt(0,c);else{const u=document.createTextNode(c);i=this.scroll.create(u),this.parent.insertBefore(i,this)}if(this.remove(),e){const u=(f,g)=>t&&f===t.domNode?g:f===o?r+g-1:s&&f===s.domNode?r+c.length+g:null,d=u(e.start.node,e.start.offset),h=u(e.end.node,e.end.offset);if(d!==null&&h!==null)return{startNode:i.domNode,startOffset:d,endNode:i.domNode,endOffset:h}}return null}update(e,t){if(e.some(r=>r.type==="characterData"&&r.target===this.textNode)){const r=this.restore();r&&(t.range=r)}}optimize(e){super.optimize(e);let{parent:t}=this;for(;t;){if(t.domNode.tagName==="A"){this.savedLength=Mt.CONTENTS.length,t.isolate(this.offset(t),this.length()).unwrap(),this.savedLength=0;break}t=t.parent}}value(){return""}};Ee(Mt,"blotName","cursor"),Ee(Mt,"className","ql-cursor"),Ee(Mt,"tagName","span"),Ee(Mt,"CONTENTS","\uFEFF");let or=Mt;var Yi={exports:{}},oc;function Sy(){return oc||(oc=1,function(n){var e=Object.prototype.hasOwnProperty,t="~";function r(){}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(t=!1));function s(i,u,d){this.fn=i,this.context=u,this.once=d||!1}function l(i,u,d,h,f){if(typeof d!="function")throw new TypeError("The listener must be a function");var g=new s(d,h||i,f),p=t?t+u:u;return i._events[p]?i._events[p].fn?i._events[p]=[i._events[p],g]:i._events[p].push(g):(i._events[p]=g,i._eventsCount++),i}function o(i,u){--i._eventsCount===0?i._events=new r:delete i._events[u]}function c(){this._events=new r,this._eventsCount=0}c.prototype.eventNames=function(){var u=[],d,h;if(this._eventsCount===0)return u;for(h in d=this._events)e.call(d,h)&&u.push(t?h.slice(1):h);return Object.getOwnPropertySymbols?u.concat(Object.getOwnPropertySymbols(d)):u},c.prototype.listeners=function(u){var d=t?t+u:u,h=this._events[d];if(!h)return[];if(h.fn)return[h.fn];for(var f=0,g=h.length,p=new Array(g);f<g;f++)p[f]=h[f].fn;return p},c.prototype.listenerCount=function(u){var d=t?t+u:u,h=this._events[d];return h?h.fn?1:h.length:0},c.prototype.emit=function(u,d,h,f,g,p){var v=t?t+u:u;if(!this._events[v])return!1;var b=this._events[v],S=arguments.length,T,k;if(b.fn){switch(b.once&&this.removeListener(u,b.fn,void 0,!0),S){case 1:return b.fn.call(b.context),!0;case 2:return b.fn.call(b.context,d),!0;case 3:return b.fn.call(b.context,d,h),!0;case 4:return b.fn.call(b.context,d,h,f),!0;case 5:return b.fn.call(b.context,d,h,f,g),!0;case 6:return b.fn.call(b.context,d,h,f,g,p),!0}for(k=1,T=new Array(S-1);k<S;k++)T[k-1]=arguments[k];b.fn.apply(b.context,T)}else{var F=b.length,M;for(k=0;k<F;k++)switch(b[k].once&&this.removeListener(u,b[k].fn,void 0,!0),S){case 1:b[k].fn.call(b[k].context);break;case 2:b[k].fn.call(b[k].context,d);break;case 3:b[k].fn.call(b[k].context,d,h);break;case 4:b[k].fn.call(b[k].context,d,h,f);break;default:if(!T)for(M=1,T=new Array(S-1);M<S;M++)T[M-1]=arguments[M];b[k].fn.apply(b[k].context,T)}}return!0},c.prototype.on=function(u,d,h){return l(this,u,d,h,!1)},c.prototype.once=function(u,d,h){return l(this,u,d,h,!0)},c.prototype.removeListener=function(u,d,h,f){var g=t?t+u:u;if(!this._events[g])return this;if(!d)return o(this,g),this;var p=this._events[g];if(p.fn)p.fn===d&&(!f||p.once)&&(!h||p.context===h)&&o(this,g);else{for(var v=0,b=[],S=p.length;v<S;v++)(p[v].fn!==d||f&&!p[v].once||h&&p[v].context!==h)&&b.push(p[v]);b.length?this._events[g]=b.length===1?b[0]:b:o(this,g)}return this},c.prototype.removeAllListeners=function(u){var d;return u?(d=t?t+u:u,this._events[d]&&o(this,d)):(this._events=new r,this._eventsCount=0),this},c.prototype.off=c.prototype.removeListener,c.prototype.addListener=c.prototype.on,c.prefixed=t,c.EventEmitter=c,n.exports=c}(Yi)),Yi.exports}var Ty=Sy();const Ny=bi(Ty),Zi=new WeakMap,Qi=["error","warn","log","info"];let Ji="warn";function ac(n){if(Ji&&Qi.indexOf(n)<=Qi.indexOf(Ji)){for(var e=arguments.length,t=new Array(e>1?e-1:0),r=1;r<e;r++)t[r-1]=arguments[r];console[n](...t)}}function fn(n){return Qi.reduce((e,t)=>(e[t]=ac.bind(console,t,n),e),{})}fn.level=n=>{Ji=n},ac.level=fn.level;const eo=fn("quill:events");["selectionchange","mousedown","mouseup","click"].forEach(n=>{document.addEventListener(n,function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];Array.from(document.querySelectorAll(".ql-container")).forEach(s=>{const l=Zi.get(s);l&&l.emitter&&l.emitter.handleDOM(...t)})})});class Se extends Ny{constructor(){super(),this.domListeners={},this.on("error",eo.error)}emit(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return eo.log.call(eo,...t),super.emit(...t)}handleDOM(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),s=1;s<t;s++)r[s-1]=arguments[s];(this.domListeners[e.type]||[]).forEach(l=>{let{node:o,handler:c}=l;(e.target===o||o.contains(e.target))&&c(e,...r)})}listenDOM(e,t,r){this.domListeners[e]||(this.domListeners[e]=[]),this.domListeners[e].push({node:t,handler:r})}}Ee(Se,"events",{EDITOR_CHANGE:"editor-change",SCROLL_BEFORE_UPDATE:"scroll-before-update",SCROLL_BLOT_MOUNT:"scroll-blot-mount",SCROLL_BLOT_UNMOUNT:"scroll-blot-unmount",SCROLL_OPTIMIZE:"scroll-optimize",SCROLL_UPDATE:"scroll-update",SCROLL_EMBED_UPDATE:"scroll-embed-update",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change",COMPOSITION_BEFORE_START:"composition-before-start",COMPOSITION_START:"composition-start",COMPOSITION_BEFORE_END:"composition-before-end",COMPOSITION_END:"composition-end"}),Ee(Se,"sources",{API:"api",SILENT:"silent",USER:"user"});const to=fn("quill:selection");class $n{constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;this.index=e,this.length=t}}class Oy{constructor(e,t){this.emitter=t,this.scroll=e,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=this.scroll.create("cursor",this),this.savedRange=new $n(0,0),this.lastRange=this.savedRange,this.lastNative=null,this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,()=>{!this.mouseDown&&!this.composing&&setTimeout(this.update.bind(this,Se.sources.USER),1)}),this.emitter.on(Se.events.SCROLL_BEFORE_UPDATE,()=>{if(!this.hasFocus())return;const r=this.getNativeRange();r!=null&&r.start.node!==this.cursor.textNode&&this.emitter.once(Se.events.SCROLL_UPDATE,(s,l)=>{try{this.root.contains(r.start.node)&&this.root.contains(r.end.node)&&this.setNativeRange(r.start.node,r.start.offset,r.end.node,r.end.offset);const o=l.some(c=>c.type==="characterData"||c.type==="childList"||c.type==="attributes"&&c.target===this.root);this.update(o?Se.sources.SILENT:s)}catch{}})}),this.emitter.on(Se.events.SCROLL_OPTIMIZE,(r,s)=>{if(s.range){const{startNode:l,startOffset:o,endNode:c,endOffset:i}=s.range;this.setNativeRange(l,o,c,i),this.update(Se.sources.SILENT)}}),this.update(Se.sources.SILENT)}handleComposition(){this.emitter.on(Se.events.COMPOSITION_BEFORE_START,()=>{this.composing=!0}),this.emitter.on(Se.events.COMPOSITION_END,()=>{if(this.composing=!1,this.cursor.parent){const e=this.cursor.restore();if(!e)return;setTimeout(()=>{this.setNativeRange(e.startNode,e.startOffset,e.endNode,e.endOffset)},1)}})}handleDragging(){this.emitter.listenDOM("mousedown",document.body,()=>{this.mouseDown=!0}),this.emitter.listenDOM("mouseup",document.body,()=>{this.mouseDown=!1,this.update(Se.sources.USER)})}focus(){this.hasFocus()||(this.root.focus({preventScroll:!0}),this.setRange(this.savedRange))}format(e,t){this.scroll.update();const r=this.getNativeRange();if(!(r==null||!r.native.collapsed||this.scroll.query(e,Ne.BLOCK))){if(r.start.node!==this.cursor.textNode){const s=this.scroll.find(r.start.node,!1);if(s==null)return;if(s instanceof vt){const l=s.split(r.start.offset);s.parent.insertBefore(this.cursor,l)}else s.insertBefore(this.cursor,r.start.node);this.cursor.attach()}this.cursor.format(e,t),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}getBounds(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;const r=this.scroll.length();e=Math.min(e,r-1),t=Math.min(e+t,r-1)-e;let s,[l,o]=this.scroll.leaf(e);if(l==null)return null;if(t>0&&o===l.length()){const[d]=this.scroll.leaf(e+1);if(d){const[h]=this.scroll.line(e),[f]=this.scroll.line(e+1);h===f&&(l=d,o=0)}}[s,o]=l.position(o,!0);const c=document.createRange();if(t>0)return c.setStart(s,o),[l,o]=this.scroll.leaf(e+t),l==null?null:([s,o]=l.position(o,!0),c.setEnd(s,o),c.getBoundingClientRect());let i="left",u;if(s instanceof Text){if(!s.data.length)return null;o<s.data.length?(c.setStart(s,o),c.setEnd(s,o+1)):(c.setStart(s,o-1),c.setEnd(s,o),i="right"),u=c.getBoundingClientRect()}else{if(!(l.domNode instanceof Element))return null;u=l.domNode.getBoundingClientRect(),o>0&&(i="right")}return{bottom:u.top+u.height,height:u.height,left:u[i],right:u[i],top:u.top,width:0}}getNativeRange(){const e=document.getSelection();if(e==null||e.rangeCount<=0)return null;const t=e.getRangeAt(0);if(t==null)return null;const r=this.normalizeNative(t);return to.info("getNativeRange",r),r}getRange(){const e=this.scroll.domNode;if("isConnected"in e&&!e.isConnected)return[null,null];const t=this.getNativeRange();return t==null?[null,null]:[this.normalizedToRange(t),t]}hasFocus(){return document.activeElement===this.root||document.activeElement!=null&&no(this.root,document.activeElement)}normalizedToRange(e){const t=[[e.start.node,e.start.offset]];e.native.collapsed||t.push([e.end.node,e.end.offset]);const r=t.map(o=>{const[c,i]=o,u=this.scroll.find(c,!0),d=u.offset(this.scroll);return i===0?d:u instanceof vt?d+u.index(c,i):d+u.length()}),s=Math.min(Math.max(...r),this.scroll.length()-1),l=Math.min(s,...r);return new $n(l,s-l)}normalizeNative(e){if(!no(this.root,e.startContainer)||!e.collapsed&&!no(this.root,e.endContainer))return null;const t={start:{node:e.startContainer,offset:e.startOffset},end:{node:e.endContainer,offset:e.endOffset},native:e};return[t.start,t.end].forEach(r=>{let{node:s,offset:l}=r;for(;!(s instanceof Text)&&s.childNodes.length>0;)if(s.childNodes.length>l)s=s.childNodes[l],l=0;else if(s.childNodes.length===l)s=s.lastChild,s instanceof Text?l=s.data.length:s.childNodes.length>0?l=s.childNodes.length:l=s.childNodes.length+1;else break;r.node=s,r.offset=l}),t}rangeToNative(e){const t=this.scroll.length(),r=(s,l)=>{s=Math.min(t-1,s);const[o,c]=this.scroll.leaf(s);return o?o.position(c,l):[null,-1]};return[...r(e.index,!1),...r(e.index+e.length,!0)]}setNativeRange(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e,s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:t,l=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(to.info("setNativeRange",e,t,r,s),e!=null&&(this.root.parentNode==null||e.parentNode==null||r.parentNode==null))return;const o=document.getSelection();if(o!=null)if(e!=null){this.hasFocus()||this.root.focus({preventScroll:!0});const{native:c}=this.getNativeRange()||{};if(c==null||l||e!==c.startContainer||t!==c.startOffset||r!==c.endContainer||s!==c.endOffset){e instanceof Element&&e.tagName==="BR"&&(t=Array.from(e.parentNode.childNodes).indexOf(e),e=e.parentNode),r instanceof Element&&r.tagName==="BR"&&(s=Array.from(r.parentNode.childNodes).indexOf(r),r=r.parentNode);const i=document.createRange();i.setStart(e,t),i.setEnd(r,s),o.removeAllRanges(),o.addRange(i)}}else o.removeAllRanges(),this.root.blur()}setRange(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Se.sources.API;if(typeof t=="string"&&(r=t,t=!1),to.info("setRange",e),e!=null){const s=this.rangeToNative(e);this.setNativeRange(...s,t)}else this.setNativeRange(null);this.update(r)}update(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Se.sources.USER;const t=this.lastRange,[r,s]=this.getRange();if(this.lastRange=r,this.lastNative=s,this.lastRange!=null&&(this.savedRange=this.lastRange),!qi(t,this.lastRange)){if(!this.composing&&s!=null&&s.native.collapsed&&s.start.node!==this.cursor.textNode){const o=this.cursor.restore();o&&this.setNativeRange(o.startNode,o.startOffset,o.endNode,o.endOffset)}const l=[Se.events.SELECTION_CHANGE,er(this.lastRange),er(t),e];this.emitter.emit(Se.events.EDITOR_CHANGE,...l),e!==Se.sources.SILENT&&this.emitter.emit(...l)}}}function no(n,e){try{e.parentNode}catch{return!1}return n.contains(e)}const Cy=/^[ -~]*$/;class ky{constructor(e){this.scroll=e,this.delta=this.getDelta()}applyDelta(e){this.scroll.update();let t=this.scroll.length();this.scroll.batchStart();const r=lc(e),s=new Te;return Iy(r.ops.slice()).reduce((o,c)=>{const i=Lt.Op.length(c);let u=c.attributes||{},d=!1,h=!1;if(c.insert!=null){if(s.retain(i),typeof c.insert=="string"){const p=c.insert;h=!p.endsWith(`
22
+ `)&&(t<=o||!!this.scroll.descendant(Bt,o)[0]),this.scroll.insertAt(o,p);const[v,b]=this.scroll.line(o);let S=Sn({},Pt(v));if(v instanceof ht){const[T]=v.descendant(vt,b);T&&(S=Sn(S,Pt(T)))}u=Lt.AttributeMap.diff(S,u)||{}}else if(typeof c.insert=="object"){const p=Object.keys(c.insert)[0];if(p==null)return o;const v=this.scroll.query(p,Ne.INLINE)!=null;if(v)(t<=o||this.scroll.descendant(Bt,o)[0])&&(h=!0);else if(o>0){const[b,S]=this.scroll.descendant(vt,o-1);b instanceof zt?b.value()[S]!==`
23
+ `&&(d=!0):b instanceof kt&&b.statics.scope===Ne.INLINE_BLOT&&(d=!0)}if(this.scroll.insertAt(o,p,c.insert[p]),v){const[b]=this.scroll.descendant(vt,o);if(b){const S=Sn({},Pt(b));u=Lt.AttributeMap.diff(S,u)||{}}}}t+=i}else if(s.push(c),c.retain!==null&&typeof c.retain=="object"){const p=Object.keys(c.retain)[0];if(p==null)return o;this.scroll.updateEmbedAt(o,p,c.retain[p])}Object.keys(u).forEach(p=>{this.scroll.formatAt(o,i,p,u[p])});const f=d?1:0,g=h?1:0;return t+=f+g,s.retain(f),s.delete(g),o+i+f+g},0),s.reduce((o,c)=>typeof c.delete=="number"?(this.scroll.deleteAt(o,c.delete),o):o+Lt.Op.length(c),0),this.scroll.batchEnd(),this.scroll.optimize(),this.update(r)}deleteText(e,t){return this.scroll.deleteAt(e,t),this.update(new Te().retain(e).delete(t))}formatLine(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.scroll.update(),Object.keys(r).forEach(l=>{this.scroll.lines(e,Math.max(t,1)).forEach(o=>{o.format(l,r[l])})}),this.scroll.optimize();const s=new Te().retain(e).retain(t,er(r));return this.update(s)}formatText(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.keys(r).forEach(l=>{this.scroll.formatAt(e,t,l,r[l])});const s=new Te().retain(e).retain(t,er(r));return this.update(s)}getContents(e,t){return this.delta.slice(e,e+t)}getDelta(){return this.scroll.lines().reduce((e,t)=>e.concat(t.delta()),new Te)}getFormat(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=[],s=[];t===0?this.scroll.path(e).forEach(c=>{const[i]=c;i instanceof ht?r.push(i):i instanceof vt&&s.push(i)}):(r=this.scroll.lines(e,t),s=this.scroll.descendants(vt,e,t));const[l,o]=[r,s].map(c=>{const i=c.shift();if(i==null)return{};let u=Pt(i);for(;Object.keys(u).length>0;){const d=c.shift();if(d==null)return u;u=Ry(Pt(d),u)}return u});return{...l,...o}}getHTML(e,t){const[r,s]=this.scroll.line(e);if(r){const l=r.length();return r.length()>=s+t&&!(s===0&&t===l)?jr(r,s,t,!0):jr(this.scroll,e,t,!0)}return""}getText(e,t){return this.getContents(e,t).filter(r=>typeof r.insert=="string").map(r=>r.insert).join("")}insertContents(e,t){const r=lc(t),s=new Te().retain(e).concat(r);return this.scroll.insertContents(e,r),this.update(s)}insertEmbed(e,t,r){return this.scroll.insertAt(e,t,r),this.update(new Te().retain(e).insert({[t]:r}))}insertText(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return t=t.replace(/\r\n/g,`
24
24
  `).replace(/\r/g,`
25
- `),this.scroll.insertAt(e,t),Object.keys(r).forEach(s=>{this.scroll.formatAt(e,t.length,s,r[s])}),this.update(new Te().retain(e).insert(t,er(r)))}isBlank(){if(this.scroll.children.length===0)return!0;if(this.scroll.children.length>1)return!1;const e=this.scroll.children.head;if((e==null?void 0:e.statics.blotName)!==ht.blotName)return!1;const t=e;return t.children.length>1?!1:t.children.head instanceof qt}removeFormat(e,t){const r=this.getText(e,t),[s,o]=this.scroll.line(e+t);let a=0,c=new Te;s!=null&&(a=s.length()-o,c=s.delta().slice(o,o+a-1).insert(`
26
- `));const u=this.getContents(e,t+a).diff(new Te().insert(r).concat(c)),d=new Te().retain(e).concat(u);return this.applyDelta(d)}update(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;const s=this.delta;if(t.length===1&&t[0].type==="characterData"&&t[0].target.data.match(_v)&&this.scroll.find(t[0].target)){const o=this.scroll.find(t[0].target),a=Pt(o),c=o.offset(this.scroll),i=t[0].oldValue.replace(ar.CONTENTS,""),u=new Te().insert(i),d=new Te().insert(o.value()),h=r&&{oldRange:cc(r.oldRange,-c),newRange:cc(r.newRange,-c)};e=new Te().retain(c).concat(u.diff(d,h)).reduce((g,p)=>p.insert?g.insert(p.insert,a):g.push(p),new Te),this.delta=s.compose(e)}else this.delta=this.getDelta(),(!e||!$i(s.compose(e),this.delta))&&(e=s.diff(this.delta,r));return e}}function or(n,e,t){if(n.length===0){const[g]=ta(t.pop());return e<=0?`</li></${g}>`:`</li></${g}>${or([],e-1,t)}`}const[{child:r,offset:s,length:o,indent:a,type:c},...i]=n,[u,d]=ta(c);if(a>e)return t.push(c),a===e+1?`<${u}><li${d}>${Ur(r,s,o)}${or(i,a,t)}`:`<${u}><li>${or(n,e+1,t)}`;const h=t[t.length-1];if(a===e&&c===h)return`</li><li${d}>${Ur(r,s,o)}${or(i,a,t)}`;const[f]=ta(t.pop());return`</li></${f}>${or(n,e-1,t)}`}function Ur(n,e,t){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if("html"in n&&typeof n.html=="function")return n.html(e,t);if(n instanceof zt)return Bs(n.value().slice(e,e+t)).replaceAll(" ","&nbsp;");if(n instanceof _t){if(n.statics.blotName==="list-container"){const u=[];return n.children.forEachAt(e,t,(d,h,f)=>{const g="formats"in d&&typeof d.formats=="function"?d.formats():{};u.push({child:d,offset:h,length:f,indent:g.indent||0,type:g.list})}),or(u,-1,[])}const s=[];if(n.children.forEachAt(e,t,(u,d,h)=>{s.push(Ur(u,d,h))}),r||n.statics.blotName==="list")return s.join("");const{outerHTML:o,innerHTML:a}=n.domNode,[c,i]=o.split(`>${a}<`);return c==="<table"?`<table style="border: 1px solid #000;">${s.join("")}<${i}`:`${c}>${s.join("")}<${i}`}return n.domNode instanceof Element?n.domNode.outerHTML:""}function zv(n,e){return Object.keys(e).reduce((t,r)=>{if(n[r]==null)return t;const s=e[r];return s===n[r]?t[r]=s:Array.isArray(s)?s.indexOf(n[r])<0?t[r]=s.concat([n[r]]):t[r]=s:t[r]=[s,n[r]],t},{})}function ta(n){const e=n==="ordered"?"ol":"ul";switch(n){case"checked":return[e,' data-list="checked"'];case"unchecked":return[e,' data-list="unchecked"'];default:return[e,""]}}function lc(n){return n.reduce((e,t)=>{if(typeof t.insert=="string"){const r=t.insert.replace(/\r\n/g,`
25
+ `),this.scroll.insertAt(e,t),Object.keys(r).forEach(s=>{this.scroll.formatAt(e,t.length,s,r[s])}),this.update(new Te().retain(e).insert(t,er(r)))}isBlank(){if(this.scroll.children.length===0)return!0;if(this.scroll.children.length>1)return!1;const e=this.scroll.children.head;if((e==null?void 0:e.statics.blotName)!==ht.blotName)return!1;const t=e;return t.children.length>1?!1:t.children.head instanceof qt}removeFormat(e,t){const r=this.getText(e,t),[s,l]=this.scroll.line(e+t);let o=0,c=new Te;s!=null&&(o=s.length()-l,c=s.delta().slice(l,l+o-1).insert(`
26
+ `));const u=this.getContents(e,t+o).diff(new Te().insert(r).concat(c)),d=new Te().retain(e).concat(u);return this.applyDelta(d)}update(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;const s=this.delta;if(t.length===1&&t[0].type==="characterData"&&t[0].target.data.match(Cy)&&this.scroll.find(t[0].target)){const l=this.scroll.find(t[0].target),o=Pt(l),c=l.offset(this.scroll),i=t[0].oldValue.replace(or.CONTENTS,""),u=new Te().insert(i),d=new Te().insert(l.value()),h=r&&{oldRange:cc(r.oldRange,-c),newRange:cc(r.newRange,-c)};e=new Te().retain(c).concat(u.diff(d,h)).reduce((g,p)=>p.insert?g.insert(p.insert,o):g.push(p),new Te),this.delta=s.compose(e)}else this.delta=this.getDelta(),(!e||!qi(s.compose(e),this.delta))&&(e=s.diff(this.delta,r));return e}}function ar(n,e,t){if(n.length===0){const[g]=ro(t.pop());return e<=0?`</li></${g}>`:`</li></${g}>${ar([],e-1,t)}`}const[{child:r,offset:s,length:l,indent:o,type:c},...i]=n,[u,d]=ro(c);if(o>e)return t.push(c),o===e+1?`<${u}><li${d}>${jr(r,s,l)}${ar(i,o,t)}`:`<${u}><li>${ar(n,e+1,t)}`;const h=t[t.length-1];if(o===e&&c===h)return`</li><li${d}>${jr(r,s,l)}${ar(i,o,t)}`;const[f]=ro(t.pop());return`</li></${f}>${ar(n,e-1,t)}`}function jr(n,e,t){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if("html"in n&&typeof n.html=="function")return n.html(e,t);if(n instanceof zt)return Ms(n.value().slice(e,e+t)).replaceAll(" ","&nbsp;");if(n instanceof _t){if(n.statics.blotName==="list-container"){const u=[];return n.children.forEachAt(e,t,(d,h,f)=>{const g="formats"in d&&typeof d.formats=="function"?d.formats():{};u.push({child:d,offset:h,length:f,indent:g.indent||0,type:g.list})}),ar(u,-1,[])}const s=[];if(n.children.forEachAt(e,t,(u,d,h)=>{s.push(jr(u,d,h))}),r||n.statics.blotName==="list")return s.join("");const{outerHTML:l,innerHTML:o}=n.domNode,[c,i]=l.split(`>${o}<`);return c==="<table"?`<table style="border: 1px solid #000;">${s.join("")}<${i}`:`${c}>${s.join("")}<${i}`}return n.domNode instanceof Element?n.domNode.outerHTML:""}function Ry(n,e){return Object.keys(e).reduce((t,r)=>{if(n[r]==null)return t;const s=e[r];return s===n[r]?t[r]=s:Array.isArray(s)?s.indexOf(n[r])<0?t[r]=s.concat([n[r]]):t[r]=s:t[r]=[s,n[r]],t},{})}function ro(n){const e=n==="ordered"?"ol":"ul";switch(n){case"checked":return[e,' data-list="checked"'];case"unchecked":return[e,' data-list="unchecked"'];default:return[e,""]}}function lc(n){return n.reduce((e,t)=>{if(typeof t.insert=="string"){const r=t.insert.replace(/\r\n/g,`
27
27
  `).replace(/\r/g,`
28
- `);return e.insert(r,t.attributes)}return e.push(t)},new Te)}function cc(n,e){let{index:t,length:r}=n;return new $n(t+e,r)}function Hv(n){const e=[];return n.forEach(t=>{typeof t.insert=="string"?t.insert.split(`
29
- `).forEach((s,o)=>{o&&e.push({insert:`
30
- `,attributes:t.attributes}),s&&e.push({insert:s,attributes:t.attributes})}):e.push(t)}),e}class Ht{constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.quill=e,this.options=t}}Ee(Ht,"DEFAULTS",{});const Ps="\uFEFF";class na extends Rt{constructor(e,t){super(e,t),this.contentNode=document.createElement("span"),this.contentNode.setAttribute("contenteditable","false"),Array.from(this.domNode.childNodes).forEach(r=>{this.contentNode.appendChild(r)}),this.leftGuard=document.createTextNode(Ps),this.rightGuard=document.createTextNode(Ps),this.domNode.appendChild(this.leftGuard),this.domNode.appendChild(this.contentNode),this.domNode.appendChild(this.rightGuard)}index(e,t){return e===this.leftGuard?0:e===this.rightGuard?1:super.index(e,t)}restore(e){let t=null,r;const s=e.data.split(Ps).join("");if(e===this.leftGuard)if(this.prev instanceof zt){const o=this.prev.length();this.prev.insertAt(o,s),t={startNode:this.prev.domNode,startOffset:o+s.length}}else r=document.createTextNode(s),this.parent.insertBefore(this.scroll.create(r),this),t={startNode:r,startOffset:s.length};else e===this.rightGuard&&(this.next instanceof zt?(this.next.insertAt(0,s),t={startNode:this.next.domNode,startOffset:s.length}):(r=document.createTextNode(s),this.parent.insertBefore(this.scroll.create(r),this.next),t={startNode:r,startOffset:s.length}));return e.data=Ps,t}update(e,t){e.forEach(r=>{if(r.type==="characterData"&&(r.target===this.leftGuard||r.target===this.rightGuard)){const s=this.restore(r.target);s&&(t.range=s)}})}}class Gv{constructor(e,t){Ee(this,"isComposing",!1);this.scroll=e,this.emitter=t,this.setupListeners()}setupListeners(){this.scroll.domNode.addEventListener("compositionstart",e=>{this.isComposing||this.handleCompositionStart(e)}),this.scroll.domNode.addEventListener("compositionend",e=>{this.isComposing&&queueMicrotask(()=>{this.handleCompositionEnd(e)})})}handleCompositionStart(e){const t=e.target instanceof Node?this.scroll.find(e.target,!0):null;t&&!(t instanceof na)&&(this.emitter.emit(Se.events.COMPOSITION_BEFORE_START,e),this.scroll.batchStart(),this.emitter.emit(Se.events.COMPOSITION_START,e),this.isComposing=!0)}handleCompositionEnd(e){this.emitter.emit(Se.events.COMPOSITION_BEFORE_END,e),this.scroll.batchEnd(),this.emitter.emit(Se.events.COMPOSITION_END,e),this.isComposing=!1}}const Xr=class Xr{constructor(e,t){Ee(this,"modules",{});this.quill=e,this.options=t}init(){Object.keys(this.options.modules).forEach(e=>{this.modules[e]==null&&this.addModule(e)})}addModule(e){const t=this.quill.constructor.import(`modules/${e}`);return this.modules[e]=new t(this.quill,this.options.modules[e]||{}),this.modules[e]}};Ee(Xr,"DEFAULTS",{modules:{}}),Ee(Xr,"themes",{default:Xr});let lr=Xr;const Wv=n=>n.parentElement||n.getRootNode().host||null,Kv=n=>{const e=n.getBoundingClientRect(),t="offsetWidth"in n&&Math.abs(e.width)/n.offsetWidth||1,r="offsetHeight"in n&&Math.abs(e.height)/n.offsetHeight||1;return{top:e.top,right:e.left+n.clientWidth*t,bottom:e.top+n.clientHeight*r,left:e.left}},Fs=n=>{const e=parseInt(n,10);return Number.isNaN(e)?0:e},uc=(n,e,t,r,s,o)=>n<t&&e>r?0:n<t?-(t-n+s):e>r?e-n>r-t?n+s-t:e-r+o:0,Xv=(n,e)=>{var o,a,c;const t=n.ownerDocument;let r=e,s=n;for(;s;){const i=s===t.body,u=i?{top:0,right:((o=window.visualViewport)==null?void 0:o.width)??t.documentElement.clientWidth,bottom:((a=window.visualViewport)==null?void 0:a.height)??t.documentElement.clientHeight,left:0}:Kv(s),d=getComputedStyle(s),h=uc(r.left,r.right,u.left,u.right,Fs(d.scrollPaddingLeft),Fs(d.scrollPaddingRight)),f=uc(r.top,r.bottom,u.top,u.bottom,Fs(d.scrollPaddingTop),Fs(d.scrollPaddingBottom));if(h||f)if(i)(c=t.defaultView)==null||c.scrollBy(h,f);else{const{scrollLeft:g,scrollTop:p}=s;f&&(s.scrollTop+=f),h&&(s.scrollLeft+=h);const v=s.scrollLeft-g,b=s.scrollTop-p;r={left:r.left-v,top:r.top-b,right:r.right-v,bottom:r.bottom-b}}s=i||d.position==="fixed"?null:Wv(s)}},Yv=100,Zv=["block","break","cursor","inline","scroll","text"],Qv=(n,e,t)=>{const r=new nr;return Zv.forEach(s=>{const o=e.query(s);o&&r.register(o)}),n.forEach(s=>{let o=e.query(s);o||t.error(`Cannot register "${s}" specified in "formats" config. Are you sure it was registered?`);let a=0;for(;o;)if(r.register(o),o="blotName"in o?o.requiredContainer??null:null,a+=1,a>Yv){t.error(`Cycle detected in registering blot requiredContainer: "${s}"`);break}}),r},cr=fn("quill"),Ms=new nr;_t.uiClass="ql-ui";const Kt=class Kt{static debug(e){e===!0&&(e="log"),fn.level(e)}static find(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Xi.get(e)||Ms.find(e,t)}static import(e){return this.imports[e]==null&&cr.error(`Cannot import ${e}. Are you sure it was registered?`),this.imports[e]}static register(){if(typeof(arguments.length<=0?void 0:arguments[0])!="string"){const e=arguments.length<=0?void 0:arguments[0],t=!!(!(arguments.length<=1)&&arguments[1]),r="attrName"in e?e.attrName:e.blotName;typeof r=="string"?this.register(`formats/${r}`,e,t):Object.keys(e).forEach(s=>{this.register(s,e[s],t)})}else{const e=arguments.length<=0?void 0:arguments[0],t=arguments.length<=1?void 0:arguments[1],r=!!(!(arguments.length<=2)&&arguments[2]);this.imports[e]!=null&&!r&&cr.warn(`Overwriting ${e} with`,t),this.imports[e]=t,(e.startsWith("blots/")||e.startsWith("formats/"))&&t&&typeof t!="boolean"&&t.blotName!=="abstract"&&Ms.register(t),typeof t.register=="function"&&t.register(Ms)}}constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.options=Jv(e,t),this.container=this.options.container,this.container==null){cr.error("Invalid Quill container",e);return}this.options.debug&&Kt.debug(this.options.debug);const r=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",Xi.set(this.container,this),this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.emitter=new Se;const s=Hi.blotName,o=this.options.registry.query(s);if(!o||!("blotName"in o))throw new Error(`Cannot initialize Quill without "${s}" blot`);if(this.scroll=new o(this.options.registry,this.root,{emitter:this.emitter}),this.editor=new qv(this.scroll),this.selection=new $v(this.scroll,this.emitter),this.composition=new Gv(this.scroll,this.emitter),this.theme=new this.options.theme(this,this.options),this.keyboard=this.theme.addModule("keyboard"),this.clipboard=this.theme.addModule("clipboard"),this.history=this.theme.addModule("history"),this.uploader=this.theme.addModule("uploader"),this.theme.addModule("input"),this.theme.addModule("uiNode"),this.theme.init(),this.emitter.on(Se.events.EDITOR_CHANGE,a=>{a===Se.events.TEXT_CHANGE&&this.root.classList.toggle("ql-blank",this.editor.isBlank())}),this.emitter.on(Se.events.SCROLL_UPDATE,(a,c)=>{const i=this.selection.lastRange,[u]=this.selection.getRange(),d=i&&u?{oldRange:i,newRange:u}:void 0;Gt.call(this,()=>this.editor.update(null,c,d),a)}),this.emitter.on(Se.events.SCROLL_EMBED_UPDATE,(a,c)=>{const i=this.selection.lastRange,[u]=this.selection.getRange(),d=i&&u?{oldRange:i,newRange:u}:void 0;Gt.call(this,()=>{const h=new Te().retain(a.offset(this)).retain({[a.statics.blotName]:c});return this.editor.update(h,[],d)},Kt.sources.USER)}),r){const a=this.clipboard.convert({html:`${r}<p><br></p>`,text:`
31
- `});this.setContents(a)}this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable(),this.allowReadOnlyEdits=!1}addContainer(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(typeof e=="string"){const r=e;e=document.createElement("div"),e.classList.add(r)}return this.container.insertBefore(e,t),e}blur(){this.selection.setRange(null)}deleteText(e,t,r){return[e,t,,r]=hn(e,t,r),Gt.call(this,()=>this.editor.deleteText(e,t),r,e,-1*t)}disable(){this.enable(!1)}editReadOnly(e){this.allowReadOnlyEdits=!0;const t=e();return this.allowReadOnlyEdits=!1,t}enable(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.scroll.enable(e),this.container.classList.toggle("ql-disabled",!e)}focus(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.selection.focus(),e.preventScroll||this.scrollSelectionIntoView()}format(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Se.sources.API;return Gt.call(this,()=>{const s=this.getSelection(!0);let o=new Te;if(s==null)return o;if(this.scroll.query(e,Ne.BLOCK))o=this.editor.formatLine(s.index,s.length,{[e]:t});else{if(s.length===0)return this.selection.format(e,t),o;o=this.editor.formatText(s.index,s.length,{[e]:t})}return this.setSelection(s,Se.sources.SILENT),o},r)}formatLine(e,t,r,s,o){let a;return[e,t,a,o]=hn(e,t,r,s,o),Gt.call(this,()=>this.editor.formatLine(e,t,a),o,e,0)}formatText(e,t,r,s,o){let a;return[e,t,a,o]=hn(e,t,r,s,o),Gt.call(this,()=>this.editor.formatText(e,t,a),o,e,0)}getBounds(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=null;if(typeof e=="number"?r=this.selection.getBounds(e,t):r=this.selection.getBounds(e.index,e.length),!r)return null;const s=this.container.getBoundingClientRect();return{bottom:r.bottom-s.top,height:r.height,left:r.left-s.left,right:r.right-s.left,top:r.top-s.top,width:r.width}}getContents(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getLength()-e;return[e,t]=hn(e,t),this.editor.getContents(e,t)}getFormat(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.getSelection(!0),t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return typeof e=="number"?this.editor.getFormat(e,t):this.editor.getFormat(e.index,e.length)}getIndex(e){return e.offset(this.scroll)}getLength(){return this.scroll.length()}getLeaf(e){return this.scroll.leaf(e)}getLine(e){return this.scroll.line(e)}getLines(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE;return typeof e!="number"?this.scroll.lines(e.index,e.length):this.scroll.lines(e,t)}getModule(e){return this.theme.modules[e]}getSelection(){return(arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1)&&this.focus(),this.update(),this.selection.getRange()[0]}getSemanticHTML(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0;return typeof e=="number"&&(t=t??this.getLength()-e),[e,t]=hn(e,t),this.editor.getHTML(e,t)}getText(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0;return typeof e=="number"&&(t=t??this.getLength()-e),[e,t]=hn(e,t),this.editor.getText(e,t)}hasFocus(){return this.selection.hasFocus()}insertEmbed(e,t,r){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:Kt.sources.API;return Gt.call(this,()=>this.editor.insertEmbed(e,t,r),s,e)}insertText(e,t,r,s,o){let a;return[e,,a,o]=hn(e,0,r,s,o),Gt.call(this,()=>this.editor.insertText(e,t,a),o,e,t.length)}isEnabled(){return this.scroll.isEnabled()}off(){return this.emitter.off(...arguments)}on(){return this.emitter.on(...arguments)}once(){return this.emitter.once(...arguments)}removeFormat(e,t,r){return[e,t,,r]=hn(e,t,r),Gt.call(this,()=>this.editor.removeFormat(e,t),r,e)}scrollRectIntoView(e){Xv(this.root,e)}scrollIntoView(){console.warn("Quill#scrollIntoView() has been deprecated and will be removed in the near future. Please use Quill#scrollSelectionIntoView() instead."),this.scrollSelectionIntoView()}scrollSelectionIntoView(){const e=this.selection.lastRange,t=e&&this.selection.getBounds(e.index,e.length);t&&this.scrollRectIntoView(t)}setContents(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Se.sources.API;return Gt.call(this,()=>{e=new Te(e);const r=this.getLength(),s=this.editor.deleteText(0,r),o=this.editor.insertContents(0,e),a=this.editor.deleteText(this.getLength()-1,1);return s.compose(o).compose(a)},t)}setSelection(e,t,r){e==null?this.selection.setRange(null,t||Kt.sources.API):([e,t,,r]=hn(e,t,r),this.selection.setRange(new $n(Math.max(0,e),t),r),r!==Se.sources.SILENT&&this.scrollSelectionIntoView())}setText(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Se.sources.API;const r=new Te().insert(e);return this.setContents(r,t)}update(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Se.sources.USER;const t=this.scroll.update(e);return this.selection.update(e),t}updateContents(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Se.sources.API;return Gt.call(this,()=>(e=new Te(e),this.editor.applyDelta(e)),t,!0)}};Ee(Kt,"DEFAULTS",{bounds:null,modules:{clipboard:!0,keyboard:!0,history:!0,uploader:!0},placeholder:"",readOnly:!1,registry:Ms,theme:"default"}),Ee(Kt,"events",Se.events),Ee(Kt,"sources",Se.sources),Ee(Kt,"version","2.0.3"),Ee(Kt,"imports",{delta:Te,parchment:Lv,"core/module":Ht,"core/theme":lr});let le=Kt;function dc(n){return typeof n=="string"?document.querySelector(n):n}function ra(n){return Object.entries(n??{}).reduce((e,t)=>{let[r,s]=t;return{...e,[r]:s===!0?{}:s}},{})}function fc(n){return Object.fromEntries(Object.entries(n).filter(e=>e[1]!==void 0))}function Jv(n,e){const t=dc(n);if(!t)throw new Error("Invalid Quill container");const s=!e.theme||e.theme===le.DEFAULTS.theme?lr:le.import(`themes/${e.theme}`);if(!s)throw new Error(`Invalid theme ${e.theme}. Did you register it?`);const{modules:o,...a}=le.DEFAULTS,{modules:c,...i}=s.DEFAULTS;let u=ra(e.modules);u!=null&&u.toolbar&&u.toolbar.constructor!==Object&&(u={...u,toolbar:{container:u.toolbar}});const d=Sn({},ra(o),ra(c),u),h={...a,...fc(i),...fc(e)};let f=e.registry;return f?e.formats&&cr.warn('Ignoring "formats" option because "registry" is specified'):f=e.formats?Qv(e.formats,h.registry,cr):h.registry,{...h,registry:f,container:t,theme:s,modules:Object.entries(d).reduce((g,p)=>{let[v,b]=p;if(!b)return g;const S=le.import(`modules/${v}`);return S==null?(cr.error(`Cannot load ${v} module. Are you sure you registered it?`),g):{...g,[v]:Sn({},S.DEFAULTS||{},b)}},{}),bounds:dc(h.bounds)}}function Gt(n,e,t,r){if(!this.isEnabled()&&e===Se.sources.USER&&!this.allowReadOnlyEdits)return new Te;let s=t==null?null:this.getSelection();const o=this.editor.delta,a=n();if(s!=null&&(t===!0&&(t=s.index),r==null?s=hc(s,a,e):r!==0&&(s=hc(s,t,r,e)),this.setSelection(s,Se.sources.SILENT)),a.length()>0){const c=[Se.events.TEXT_CHANGE,a,o,e];this.emitter.emit(Se.events.EDITOR_CHANGE,...c),e!==Se.sources.SILENT&&this.emitter.emit(...c)}return a}function hn(n,e,t,r,s){let o={};return typeof n.index=="number"&&typeof n.length=="number"?typeof e!="number"?(s=r,r=t,t=e,e=n.length,n=n.index):(e=n.length,n=n.index):typeof e!="number"&&(s=r,r=t,t=e,e=0),typeof t=="object"?(o=t,s=r):typeof t=="string"&&(r!=null?o[t]=r:s=t),s=s||Se.sources.API,[n,e,o,s]}function hc(n,e,t,r){const s=typeof t=="number"?t:0;if(n==null)return null;let o,a;return e&&typeof e.transformPosition=="function"?[o,a]=[n.index,n.index+n.length].map(c=>e.transformPosition(c,r!==Se.sources.USER)):[o,a]=[n.index,n.index+n.length].map(c=>c<e||c===e&&r===Se.sources.USER?c:s>=0?c+s:Math.max(e,c+s)),new $n(o,a-o)}class _n extends Os{}function pc(n){return n instanceof ht||n instanceof Bt}function mc(n){return typeof n.updateContent=="function"}class ur extends Hi{constructor(e,t,r){let{emitter:s}=r;super(e,t),this.emitter=s,this.batch=!1,this.optimize(),this.enable(),this.domNode.addEventListener("dragstart",o=>this.handleDragStart(o))}batchStart(){Array.isArray(this.batch)||(this.batch=[])}batchEnd(){if(!this.batch)return;const e=this.batch;this.batch=!1,this.update(e)}emitMount(e){this.emitter.emit(Se.events.SCROLL_BLOT_MOUNT,e)}emitUnmount(e){this.emitter.emit(Se.events.SCROLL_BLOT_UNMOUNT,e)}emitEmbedUpdate(e,t){this.emitter.emit(Se.events.SCROLL_EMBED_UPDATE,e,t)}deleteAt(e,t){const[r,s]=this.line(e),[o]=this.line(e+t);if(super.deleteAt(e,t),o!=null&&r!==o&&s>0){if(r instanceof Bt||o instanceof Bt){this.optimize();return}const a=o.children.head instanceof qt?null:o.children.head;r.moveChildren(o,a),r.remove()}this.optimize()}enable(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.domNode.setAttribute("contenteditable",e?"true":"false")}formatAt(e,t,r,s){super.formatAt(e,t,r,s),this.optimize()}insertAt(e,t,r){if(e>=this.length())if(r==null||this.scroll.query(t,Ne.BLOCK)==null){const s=this.scroll.create(this.statics.defaultChild.blotName);this.appendChild(s),r==null&&t.endsWith(`
28
+ `);return e.insert(r,t.attributes)}return e.push(t)},new Te)}function cc(n,e){let{index:t,length:r}=n;return new $n(t+e,r)}function Iy(n){const e=[];return n.forEach(t=>{typeof t.insert=="string"?t.insert.split(`
29
+ `).forEach((s,l)=>{l&&e.push({insert:`
30
+ `,attributes:t.attributes}),s&&e.push({insert:s,attributes:t.attributes})}):e.push(t)}),e}class Ht{constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.quill=e,this.options=t}}Ee(Ht,"DEFAULTS",{});const Ds="\uFEFF";class so extends kt{constructor(e,t){super(e,t),this.contentNode=document.createElement("span"),this.contentNode.setAttribute("contenteditable","false"),Array.from(this.domNode.childNodes).forEach(r=>{this.contentNode.appendChild(r)}),this.leftGuard=document.createTextNode(Ds),this.rightGuard=document.createTextNode(Ds),this.domNode.appendChild(this.leftGuard),this.domNode.appendChild(this.contentNode),this.domNode.appendChild(this.rightGuard)}index(e,t){return e===this.leftGuard?0:e===this.rightGuard?1:super.index(e,t)}restore(e){let t=null,r;const s=e.data.split(Ds).join("");if(e===this.leftGuard)if(this.prev instanceof zt){const l=this.prev.length();this.prev.insertAt(l,s),t={startNode:this.prev.domNode,startOffset:l+s.length}}else r=document.createTextNode(s),this.parent.insertBefore(this.scroll.create(r),this),t={startNode:r,startOffset:s.length};else e===this.rightGuard&&(this.next instanceof zt?(this.next.insertAt(0,s),t={startNode:this.next.domNode,startOffset:s.length}):(r=document.createTextNode(s),this.parent.insertBefore(this.scroll.create(r),this.next),t={startNode:r,startOffset:s.length}));return e.data=Ds,t}update(e,t){e.forEach(r=>{if(r.type==="characterData"&&(r.target===this.leftGuard||r.target===this.rightGuard)){const s=this.restore(r.target);s&&(t.range=s)}})}}class Ly{constructor(e,t){Ee(this,"isComposing",!1);this.scroll=e,this.emitter=t,this.setupListeners()}setupListeners(){this.scroll.domNode.addEventListener("compositionstart",e=>{this.isComposing||this.handleCompositionStart(e)}),this.scroll.domNode.addEventListener("compositionend",e=>{this.isComposing&&queueMicrotask(()=>{this.handleCompositionEnd(e)})})}handleCompositionStart(e){const t=e.target instanceof Node?this.scroll.find(e.target,!0):null;t&&!(t instanceof so)&&(this.emitter.emit(Se.events.COMPOSITION_BEFORE_START,e),this.scroll.batchStart(),this.emitter.emit(Se.events.COMPOSITION_START,e),this.isComposing=!0)}handleCompositionEnd(e){this.emitter.emit(Se.events.COMPOSITION_BEFORE_END,e),this.scroll.batchEnd(),this.emitter.emit(Se.events.COMPOSITION_END,e),this.isComposing=!1}}const Yr=class Yr{constructor(e,t){Ee(this,"modules",{});this.quill=e,this.options=t}init(){Object.keys(this.options.modules).forEach(e=>{this.modules[e]==null&&this.addModule(e)})}addModule(e){const t=this.quill.constructor.import(`modules/${e}`);return this.modules[e]=new t(this.quill,this.options.modules[e]||{}),this.modules[e]}};Ee(Yr,"DEFAULTS",{modules:{}}),Ee(Yr,"themes",{default:Yr});let lr=Yr;const By=n=>n.parentElement||n.getRootNode().host||null,Py=n=>{const e=n.getBoundingClientRect(),t="offsetWidth"in n&&Math.abs(e.width)/n.offsetWidth||1,r="offsetHeight"in n&&Math.abs(e.height)/n.offsetHeight||1;return{top:e.top,right:e.left+n.clientWidth*t,bottom:e.top+n.clientHeight*r,left:e.left}},Us=n=>{const e=parseInt(n,10);return Number.isNaN(e)?0:e},uc=(n,e,t,r,s,l)=>n<t&&e>r?0:n<t?-(t-n+s):e>r?e-n>r-t?n+s-t:e-r+l:0,Fy=(n,e)=>{var l,o,c;const t=n.ownerDocument;let r=e,s=n;for(;s;){const i=s===t.body,u=i?{top:0,right:((l=window.visualViewport)==null?void 0:l.width)??t.documentElement.clientWidth,bottom:((o=window.visualViewport)==null?void 0:o.height)??t.documentElement.clientHeight,left:0}:Py(s),d=getComputedStyle(s),h=uc(r.left,r.right,u.left,u.right,Us(d.scrollPaddingLeft),Us(d.scrollPaddingRight)),f=uc(r.top,r.bottom,u.top,u.bottom,Us(d.scrollPaddingTop),Us(d.scrollPaddingBottom));if(h||f)if(i)(c=t.defaultView)==null||c.scrollBy(h,f);else{const{scrollLeft:g,scrollTop:p}=s;f&&(s.scrollTop+=f),h&&(s.scrollLeft+=h);const v=s.scrollLeft-g,b=s.scrollTop-p;r={left:r.left-v,top:r.top-b,right:r.right-v,bottom:r.bottom-b}}s=i||d.position==="fixed"?null:By(s)}},My=100,Dy=["block","break","cursor","inline","scroll","text"],Uy=(n,e,t)=>{const r=new nr;return Dy.forEach(s=>{const l=e.query(s);l&&r.register(l)}),n.forEach(s=>{let l=e.query(s);l||t.error(`Cannot register "${s}" specified in "formats" config. Are you sure it was registered?`);let o=0;for(;l;)if(r.register(l),l="blotName"in l?l.requiredContainer??null:null,o+=1,o>My){t.error(`Cycle detected in registering blot requiredContainer: "${s}"`);break}}),r},cr=fn("quill"),js=new nr;_t.uiClass="ql-ui";const Kt=class Kt{static debug(e){e===!0&&(e="log"),fn.level(e)}static find(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Zi.get(e)||js.find(e,t)}static import(e){return this.imports[e]==null&&cr.error(`Cannot import ${e}. Are you sure it was registered?`),this.imports[e]}static register(){if(typeof(arguments.length<=0?void 0:arguments[0])!="string"){const e=arguments.length<=0?void 0:arguments[0],t=!!(!(arguments.length<=1)&&arguments[1]),r="attrName"in e?e.attrName:e.blotName;typeof r=="string"?this.register(`formats/${r}`,e,t):Object.keys(e).forEach(s=>{this.register(s,e[s],t)})}else{const e=arguments.length<=0?void 0:arguments[0],t=arguments.length<=1?void 0:arguments[1],r=!!(!(arguments.length<=2)&&arguments[2]);this.imports[e]!=null&&!r&&cr.warn(`Overwriting ${e} with`,t),this.imports[e]=t,(e.startsWith("blots/")||e.startsWith("formats/"))&&t&&typeof t!="boolean"&&t.blotName!=="abstract"&&js.register(t),typeof t.register=="function"&&t.register(js)}}constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.options=jy(e,t),this.container=this.options.container,this.container==null){cr.error("Invalid Quill container",e);return}this.options.debug&&Kt.debug(this.options.debug);const r=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",Zi.set(this.container,this),this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.emitter=new Se;const s=Wi.blotName,l=this.options.registry.query(s);if(!l||!("blotName"in l))throw new Error(`Cannot initialize Quill without "${s}" blot`);if(this.scroll=new l(this.options.registry,this.root,{emitter:this.emitter}),this.editor=new ky(this.scroll),this.selection=new Oy(this.scroll,this.emitter),this.composition=new Ly(this.scroll,this.emitter),this.theme=new this.options.theme(this,this.options),this.keyboard=this.theme.addModule("keyboard"),this.clipboard=this.theme.addModule("clipboard"),this.history=this.theme.addModule("history"),this.uploader=this.theme.addModule("uploader"),this.theme.addModule("input"),this.theme.addModule("uiNode"),this.theme.init(),this.emitter.on(Se.events.EDITOR_CHANGE,o=>{o===Se.events.TEXT_CHANGE&&this.root.classList.toggle("ql-blank",this.editor.isBlank())}),this.emitter.on(Se.events.SCROLL_UPDATE,(o,c)=>{const i=this.selection.lastRange,[u]=this.selection.getRange(),d=i&&u?{oldRange:i,newRange:u}:void 0;Gt.call(this,()=>this.editor.update(null,c,d),o)}),this.emitter.on(Se.events.SCROLL_EMBED_UPDATE,(o,c)=>{const i=this.selection.lastRange,[u]=this.selection.getRange(),d=i&&u?{oldRange:i,newRange:u}:void 0;Gt.call(this,()=>{const h=new Te().retain(o.offset(this)).retain({[o.statics.blotName]:c});return this.editor.update(h,[],d)},Kt.sources.USER)}),r){const o=this.clipboard.convert({html:`${r}<p><br></p>`,text:`
31
+ `});this.setContents(o)}this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable(),this.allowReadOnlyEdits=!1}addContainer(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(typeof e=="string"){const r=e;e=document.createElement("div"),e.classList.add(r)}return this.container.insertBefore(e,t),e}blur(){this.selection.setRange(null)}deleteText(e,t,r){return[e,t,,r]=hn(e,t,r),Gt.call(this,()=>this.editor.deleteText(e,t),r,e,-1*t)}disable(){this.enable(!1)}editReadOnly(e){this.allowReadOnlyEdits=!0;const t=e();return this.allowReadOnlyEdits=!1,t}enable(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.scroll.enable(e),this.container.classList.toggle("ql-disabled",!e)}focus(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.selection.focus(),e.preventScroll||this.scrollSelectionIntoView()}format(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Se.sources.API;return Gt.call(this,()=>{const s=this.getSelection(!0);let l=new Te;if(s==null)return l;if(this.scroll.query(e,Ne.BLOCK))l=this.editor.formatLine(s.index,s.length,{[e]:t});else{if(s.length===0)return this.selection.format(e,t),l;l=this.editor.formatText(s.index,s.length,{[e]:t})}return this.setSelection(s,Se.sources.SILENT),l},r)}formatLine(e,t,r,s,l){let o;return[e,t,o,l]=hn(e,t,r,s,l),Gt.call(this,()=>this.editor.formatLine(e,t,o),l,e,0)}formatText(e,t,r,s,l){let o;return[e,t,o,l]=hn(e,t,r,s,l),Gt.call(this,()=>this.editor.formatText(e,t,o),l,e,0)}getBounds(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=null;if(typeof e=="number"?r=this.selection.getBounds(e,t):r=this.selection.getBounds(e.index,e.length),!r)return null;const s=this.container.getBoundingClientRect();return{bottom:r.bottom-s.top,height:r.height,left:r.left-s.left,right:r.right-s.left,top:r.top-s.top,width:r.width}}getContents(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getLength()-e;return[e,t]=hn(e,t),this.editor.getContents(e,t)}getFormat(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.getSelection(!0),t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return typeof e=="number"?this.editor.getFormat(e,t):this.editor.getFormat(e.index,e.length)}getIndex(e){return e.offset(this.scroll)}getLength(){return this.scroll.length()}getLeaf(e){return this.scroll.leaf(e)}getLine(e){return this.scroll.line(e)}getLines(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE;return typeof e!="number"?this.scroll.lines(e.index,e.length):this.scroll.lines(e,t)}getModule(e){return this.theme.modules[e]}getSelection(){return(arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1)&&this.focus(),this.update(),this.selection.getRange()[0]}getSemanticHTML(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0;return typeof e=="number"&&(t=t??this.getLength()-e),[e,t]=hn(e,t),this.editor.getHTML(e,t)}getText(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0;return typeof e=="number"&&(t=t??this.getLength()-e),[e,t]=hn(e,t),this.editor.getText(e,t)}hasFocus(){return this.selection.hasFocus()}insertEmbed(e,t,r){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:Kt.sources.API;return Gt.call(this,()=>this.editor.insertEmbed(e,t,r),s,e)}insertText(e,t,r,s,l){let o;return[e,,o,l]=hn(e,0,r,s,l),Gt.call(this,()=>this.editor.insertText(e,t,o),l,e,t.length)}isEnabled(){return this.scroll.isEnabled()}off(){return this.emitter.off(...arguments)}on(){return this.emitter.on(...arguments)}once(){return this.emitter.once(...arguments)}removeFormat(e,t,r){return[e,t,,r]=hn(e,t,r),Gt.call(this,()=>this.editor.removeFormat(e,t),r,e)}scrollRectIntoView(e){Fy(this.root,e)}scrollIntoView(){console.warn("Quill#scrollIntoView() has been deprecated and will be removed in the near future. Please use Quill#scrollSelectionIntoView() instead."),this.scrollSelectionIntoView()}scrollSelectionIntoView(){const e=this.selection.lastRange,t=e&&this.selection.getBounds(e.index,e.length);t&&this.scrollRectIntoView(t)}setContents(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Se.sources.API;return Gt.call(this,()=>{e=new Te(e);const r=this.getLength(),s=this.editor.deleteText(0,r),l=this.editor.insertContents(0,e),o=this.editor.deleteText(this.getLength()-1,1);return s.compose(l).compose(o)},t)}setSelection(e,t,r){e==null?this.selection.setRange(null,t||Kt.sources.API):([e,t,,r]=hn(e,t,r),this.selection.setRange(new $n(Math.max(0,e),t),r),r!==Se.sources.SILENT&&this.scrollSelectionIntoView())}setText(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Se.sources.API;const r=new Te().insert(e);return this.setContents(r,t)}update(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Se.sources.USER;const t=this.scroll.update(e);return this.selection.update(e),t}updateContents(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Se.sources.API;return Gt.call(this,()=>(e=new Te(e),this.editor.applyDelta(e)),t,!0)}};Ee(Kt,"DEFAULTS",{bounds:null,modules:{clipboard:!0,keyboard:!0,history:!0,uploader:!0},placeholder:"",readOnly:!1,registry:js,theme:"default"}),Ee(Kt,"events",Se.events),Ee(Kt,"sources",Se.sources),Ee(Kt,"version","2.0.3"),Ee(Kt,"imports",{delta:Te,parchment:yy,"core/module":Ht,"core/theme":lr});let le=Kt;function dc(n){return typeof n=="string"?document.querySelector(n):n}function io(n){return Object.entries(n??{}).reduce((e,t)=>{let[r,s]=t;return{...e,[r]:s===!0?{}:s}},{})}function fc(n){return Object.fromEntries(Object.entries(n).filter(e=>e[1]!==void 0))}function jy(n,e){const t=dc(n);if(!t)throw new Error("Invalid Quill container");const s=!e.theme||e.theme===le.DEFAULTS.theme?lr:le.import(`themes/${e.theme}`);if(!s)throw new Error(`Invalid theme ${e.theme}. Did you register it?`);const{modules:l,...o}=le.DEFAULTS,{modules:c,...i}=s.DEFAULTS;let u=io(e.modules);u!=null&&u.toolbar&&u.toolbar.constructor!==Object&&(u={...u,toolbar:{container:u.toolbar}});const d=Sn({},io(l),io(c),u),h={...o,...fc(i),...fc(e)};let f=e.registry;return f?e.formats&&cr.warn('Ignoring "formats" option because "registry" is specified'):f=e.formats?Uy(e.formats,h.registry,cr):h.registry,{...h,registry:f,container:t,theme:s,modules:Object.entries(d).reduce((g,p)=>{let[v,b]=p;if(!b)return g;const S=le.import(`modules/${v}`);return S==null?(cr.error(`Cannot load ${v} module. Are you sure you registered it?`),g):{...g,[v]:Sn({},S.DEFAULTS||{},b)}},{}),bounds:dc(h.bounds)}}function Gt(n,e,t,r){if(!this.isEnabled()&&e===Se.sources.USER&&!this.allowReadOnlyEdits)return new Te;let s=t==null?null:this.getSelection();const l=this.editor.delta,o=n();if(s!=null&&(t===!0&&(t=s.index),r==null?s=hc(s,o,e):r!==0&&(s=hc(s,t,r,e)),this.setSelection(s,Se.sources.SILENT)),o.length()>0){const c=[Se.events.TEXT_CHANGE,o,l,e];this.emitter.emit(Se.events.EDITOR_CHANGE,...c),e!==Se.sources.SILENT&&this.emitter.emit(...c)}return o}function hn(n,e,t,r,s){let l={};return typeof n.index=="number"&&typeof n.length=="number"?typeof e!="number"?(s=r,r=t,t=e,e=n.length,n=n.index):(e=n.length,n=n.index):typeof e!="number"&&(s=r,r=t,t=e,e=0),typeof t=="object"?(l=t,s=r):typeof t=="string"&&(r!=null?l[t]=r:s=t),s=s||Se.sources.API,[n,e,l,s]}function hc(n,e,t,r){const s=typeof t=="number"?t:0;if(n==null)return null;let l,o;return e&&typeof e.transformPosition=="function"?[l,o]=[n.index,n.index+n.length].map(c=>e.transformPosition(c,r!==Se.sources.USER)):[l,o]=[n.index,n.index+n.length].map(c=>c<e||c===e&&r===Se.sources.USER?c:s>=0?c+s:Math.max(e,c+s)),new $n(l,o-l)}class _n extends Rs{}function pc(n){return n instanceof ht||n instanceof Bt}function mc(n){return typeof n.updateContent=="function"}class ur extends Wi{constructor(e,t,r){let{emitter:s}=r;super(e,t),this.emitter=s,this.batch=!1,this.optimize(),this.enable(),this.domNode.addEventListener("dragstart",l=>this.handleDragStart(l))}batchStart(){Array.isArray(this.batch)||(this.batch=[])}batchEnd(){if(!this.batch)return;const e=this.batch;this.batch=!1,this.update(e)}emitMount(e){this.emitter.emit(Se.events.SCROLL_BLOT_MOUNT,e)}emitUnmount(e){this.emitter.emit(Se.events.SCROLL_BLOT_UNMOUNT,e)}emitEmbedUpdate(e,t){this.emitter.emit(Se.events.SCROLL_EMBED_UPDATE,e,t)}deleteAt(e,t){const[r,s]=this.line(e),[l]=this.line(e+t);if(super.deleteAt(e,t),l!=null&&r!==l&&s>0){if(r instanceof Bt||l instanceof Bt){this.optimize();return}const o=l.children.head instanceof qt?null:l.children.head;r.moveChildren(l,o),r.remove()}this.optimize()}enable(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.domNode.setAttribute("contenteditable",e?"true":"false")}formatAt(e,t,r,s){super.formatAt(e,t,r,s),this.optimize()}insertAt(e,t,r){if(e>=this.length())if(r==null||this.scroll.query(t,Ne.BLOCK)==null){const s=this.scroll.create(this.statics.defaultChild.blotName);this.appendChild(s),r==null&&t.endsWith(`
32
32
  `)?s.insertAt(0,t.slice(0,-1),r):s.insertAt(0,t,r)}else{const s=this.scroll.create(t,r);this.appendChild(s)}else super.insertAt(e,t,r);this.optimize()}insertBefore(e,t){if(e.statics.scope===Ne.INLINE_BLOT){const r=this.scroll.create(this.statics.defaultChild.blotName);r.appendChild(e),super.insertBefore(r,t)}else super.insertBefore(e,t)}insertContents(e,t){const r=this.deltaToRenderBlocks(t.concat(new Te().insert(`
33
- `))),s=r.pop();if(s==null)return;this.batchStart();const o=r.shift();if(o){const i=o.type==="block"&&(o.delta.length()===0||!this.descendant(Bt,e)[0]&&e<this.length()),u=o.type==="block"?o.delta:new Te().insert({[o.key]:o.value});sa(this,e,u);const d=o.type==="block"?1:0,h=e+u.length()+d;i&&this.insertAt(h-1,`
34
- `);const f=Pt(this.line(e)[0]),g=Lt.AttributeMap.diff(f,o.attributes)||{};Object.keys(g).forEach(p=>{this.formatAt(h-1,1,p,g[p])}),e=h}let[a,c]=this.children.find(e);if(r.length&&(a&&(a=a.split(c),c=0),r.forEach(i=>{if(i.type==="block"){const u=this.createBlock(i.attributes,a||void 0);sa(u,0,i.delta)}else{const u=this.create(i.key,i.value);this.insertBefore(u,a||void 0),Object.keys(i.attributes).forEach(d=>{u.format(d,i.attributes[d])})}})),s.type==="block"&&s.delta.length()){const i=a?a.offset(a.scroll)+c:this.length();sa(this,i,s.delta)}this.batchEnd(),this.optimize()}isEnabled(){return this.domNode.getAttribute("contenteditable")==="true"}leaf(e){const t=this.path(e).pop();if(!t)return[null,-1];const[r,s]=t;return r instanceof vt?[r,s]:[null,-1]}line(e){return e===this.length()?this.line(e-1):this.descendant(pc,e)}lines(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE;const r=(s,o,a)=>{let c=[],i=a;return s.children.forEachAt(o,a,(u,d,h)=>{pc(u)?c.push(u):u instanceof Os&&(c=c.concat(r(u,d,i))),i-=h}),c};return r(this,e,t)}optimize(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.batch||(super.optimize(e,t),e.length>0&&this.emitter.emit(Se.events.SCROLL_OPTIMIZE,e,t))}path(e){return super.path(e).slice(1)}remove(){}update(e){if(this.batch){Array.isArray(e)&&(this.batch=this.batch.concat(e));return}let t=Se.sources.USER;typeof e=="string"&&(t=e),Array.isArray(e)||(e=this.observer.takeRecords()),e=e.filter(r=>{let{target:s}=r;const o=this.find(s,!0);return o&&!mc(o)}),e.length>0&&this.emitter.emit(Se.events.SCROLL_BEFORE_UPDATE,t,e),super.update(e.concat([])),e.length>0&&this.emitter.emit(Se.events.SCROLL_UPDATE,t,e)}updateEmbedAt(e,t,r){const[s]=this.descendant(o=>o instanceof Bt,e);s&&s.statics.blotName===t&&mc(s)&&s.updateContent(r)}handleDragStart(e){e.preventDefault()}deltaToRenderBlocks(e){const t=[];let r=new Te;return e.forEach(s=>{const o=s==null?void 0:s.insert;if(o)if(typeof o=="string"){const a=o.split(`
35
- `);a.slice(0,-1).forEach(i=>{r.insert(i,s.attributes),t.push({type:"block",delta:r,attributes:s.attributes??{}}),r=new Te});const c=a[a.length-1];c&&r.insert(c,s.attributes)}else{const a=Object.keys(o)[0];if(!a)return;this.query(a,Ne.INLINE)?r.push(s):(r.length()&&t.push({type:"block",delta:r,attributes:{}}),r=new Te,t.push({type:"blockEmbed",key:a,value:o[a],attributes:s.attributes??{}}))}}),r.length()&&t.push({type:"block",delta:r,attributes:{}}),t}createBlock(e,t){let r;const s={};Object.entries(e).forEach(c=>{let[i,u]=c;this.query(i,Ne.BLOCK&Ne.BLOT)!=null?r=i:s[i]=u});const o=this.create(r||this.statics.defaultChild.blotName,r?e[r]:void 0);this.insertBefore(o,t||void 0);const a=o.length();return Object.entries(s).forEach(c=>{let[i,u]=c;o.formatAt(0,a,i,u)}),o}}Ee(ur,"blotName","scroll"),Ee(ur,"className","ql-editor"),Ee(ur,"tagName","DIV"),Ee(ur,"defaultChild",ht),Ee(ur,"allowedChildren",[ht,Bt,_n]);function sa(n,e,t){t.reduce((r,s)=>{const o=Lt.Op.length(s);let a=s.attributes||{};if(s.insert!=null){if(typeof s.insert=="string"){const c=s.insert;n.insertAt(r,c);const[i]=n.descendant(vt,r),u=Pt(i);a=Lt.AttributeMap.diff(u,a)||{}}else if(typeof s.insert=="object"){const c=Object.keys(s.insert)[0];if(c==null)return r;if(n.insertAt(r,c,s.insert[c]),n.scroll.query(c,Ne.INLINE)!=null){const[u]=n.descendant(vt,r),d=Pt(u);a=Lt.AttributeMap.diff(d,a)||{}}}}return Object.keys(a).forEach(c=>{n.formatAt(r,o,c,a[c])}),r+o},e)}const ia={scope:Ne.BLOCK,whitelist:["right","center","justify"]},ey=new tn("align","align",ia),gc=new $t("align","ql-align",ia),vc=new Tn("align","text-align",ia);class yc extends Tn{value(e){let t=super.value(e);return t.startsWith("rgb(")?(t=t.replace(/^[^\d]+/,"").replace(/[^\d]+$/,""),`#${t.split(",").map(s=>`00${parseInt(s,10).toString(16)}`.slice(-2)).join("")}`):t}}const ty=new $t("color","ql-color",{scope:Ne.INLINE}),aa=new yc("color","color",{scope:Ne.INLINE}),ny=new $t("background","ql-bg",{scope:Ne.INLINE}),oa=new yc("background","background-color",{scope:Ne.INLINE});class qn extends _n{static create(e){const t=super.create(e);return t.setAttribute("spellcheck","false"),t}code(e,t){return this.children.map(r=>r.length()<=1?"":r.domNode.innerText).join(`
33
+ `))),s=r.pop();if(s==null)return;this.batchStart();const l=r.shift();if(l){const i=l.type==="block"&&(l.delta.length()===0||!this.descendant(Bt,e)[0]&&e<this.length()),u=l.type==="block"?l.delta:new Te().insert({[l.key]:l.value});oo(this,e,u);const d=l.type==="block"?1:0,h=e+u.length()+d;i&&this.insertAt(h-1,`
34
+ `);const f=Pt(this.line(e)[0]),g=Lt.AttributeMap.diff(f,l.attributes)||{};Object.keys(g).forEach(p=>{this.formatAt(h-1,1,p,g[p])}),e=h}let[o,c]=this.children.find(e);if(r.length&&(o&&(o=o.split(c),c=0),r.forEach(i=>{if(i.type==="block"){const u=this.createBlock(i.attributes,o||void 0);oo(u,0,i.delta)}else{const u=this.create(i.key,i.value);this.insertBefore(u,o||void 0),Object.keys(i.attributes).forEach(d=>{u.format(d,i.attributes[d])})}})),s.type==="block"&&s.delta.length()){const i=o?o.offset(o.scroll)+c:this.length();oo(this,i,s.delta)}this.batchEnd(),this.optimize()}isEnabled(){return this.domNode.getAttribute("contenteditable")==="true"}leaf(e){const t=this.path(e).pop();if(!t)return[null,-1];const[r,s]=t;return r instanceof vt?[r,s]:[null,-1]}line(e){return e===this.length()?this.line(e-1):this.descendant(pc,e)}lines(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE;const r=(s,l,o)=>{let c=[],i=o;return s.children.forEachAt(l,o,(u,d,h)=>{pc(u)?c.push(u):u instanceof Rs&&(c=c.concat(r(u,d,i))),i-=h}),c};return r(this,e,t)}optimize(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.batch||(super.optimize(e,t),e.length>0&&this.emitter.emit(Se.events.SCROLL_OPTIMIZE,e,t))}path(e){return super.path(e).slice(1)}remove(){}update(e){if(this.batch){Array.isArray(e)&&(this.batch=this.batch.concat(e));return}let t=Se.sources.USER;typeof e=="string"&&(t=e),Array.isArray(e)||(e=this.observer.takeRecords()),e=e.filter(r=>{let{target:s}=r;const l=this.find(s,!0);return l&&!mc(l)}),e.length>0&&this.emitter.emit(Se.events.SCROLL_BEFORE_UPDATE,t,e),super.update(e.concat([])),e.length>0&&this.emitter.emit(Se.events.SCROLL_UPDATE,t,e)}updateEmbedAt(e,t,r){const[s]=this.descendant(l=>l instanceof Bt,e);s&&s.statics.blotName===t&&mc(s)&&s.updateContent(r)}handleDragStart(e){e.preventDefault()}deltaToRenderBlocks(e){const t=[];let r=new Te;return e.forEach(s=>{const l=s==null?void 0:s.insert;if(l)if(typeof l=="string"){const o=l.split(`
35
+ `);o.slice(0,-1).forEach(i=>{r.insert(i,s.attributes),t.push({type:"block",delta:r,attributes:s.attributes??{}}),r=new Te});const c=o[o.length-1];c&&r.insert(c,s.attributes)}else{const o=Object.keys(l)[0];if(!o)return;this.query(o,Ne.INLINE)?r.push(s):(r.length()&&t.push({type:"block",delta:r,attributes:{}}),r=new Te,t.push({type:"blockEmbed",key:o,value:l[o],attributes:s.attributes??{}}))}}),r.length()&&t.push({type:"block",delta:r,attributes:{}}),t}createBlock(e,t){let r;const s={};Object.entries(e).forEach(c=>{let[i,u]=c;this.query(i,Ne.BLOCK&Ne.BLOT)!=null?r=i:s[i]=u});const l=this.create(r||this.statics.defaultChild.blotName,r?e[r]:void 0);this.insertBefore(l,t||void 0);const o=l.length();return Object.entries(s).forEach(c=>{let[i,u]=c;l.formatAt(0,o,i,u)}),l}}Ee(ur,"blotName","scroll"),Ee(ur,"className","ql-editor"),Ee(ur,"tagName","DIV"),Ee(ur,"defaultChild",ht),Ee(ur,"allowedChildren",[ht,Bt,_n]);function oo(n,e,t){t.reduce((r,s)=>{const l=Lt.Op.length(s);let o=s.attributes||{};if(s.insert!=null){if(typeof s.insert=="string"){const c=s.insert;n.insertAt(r,c);const[i]=n.descendant(vt,r),u=Pt(i);o=Lt.AttributeMap.diff(u,o)||{}}else if(typeof s.insert=="object"){const c=Object.keys(s.insert)[0];if(c==null)return r;if(n.insertAt(r,c,s.insert[c]),n.scroll.query(c,Ne.INLINE)!=null){const[u]=n.descendant(vt,r),d=Pt(u);o=Lt.AttributeMap.diff(d,o)||{}}}}return Object.keys(o).forEach(c=>{n.formatAt(r,l,c,o[c])}),r+l},e)}const ao={scope:Ne.BLOCK,whitelist:["right","center","justify"]},Vy=new nn("align","align",ao),gc=new $t("align","ql-align",ao),vc=new Tn("align","text-align",ao);class yc extends Tn{value(e){let t=super.value(e);return t.startsWith("rgb(")?(t=t.replace(/^[^\d]+/,"").replace(/[^\d]+$/,""),`#${t.split(",").map(s=>`00${parseInt(s,10).toString(16)}`.slice(-2)).join("")}`):t}}const $y=new $t("color","ql-color",{scope:Ne.INLINE}),lo=new yc("color","color",{scope:Ne.INLINE}),_y=new $t("background","ql-bg",{scope:Ne.INLINE}),co=new yc("background","background-color",{scope:Ne.INLINE});class qn extends _n{static create(e){const t=super.create(e);return t.setAttribute("spellcheck","false"),t}code(e,t){return this.children.map(r=>r.length()<=1?"":r.domNode.innerText).join(`
36
36
  `).slice(e,e+t)}html(e,t){return`<pre>
37
- ${Bs(this.code(e,t))}
38
- </pre>`}}class yt extends ht{static register(){le.register(qn)}}Ee(yt,"TAB"," ");class la extends nn{}la.blotName="code",la.tagName="CODE",yt.blotName="code-block",yt.className="ql-code-block",yt.tagName="DIV",qn.blotName="code-block-container",qn.className="ql-code-block-container",qn.tagName="DIV",qn.allowedChildren=[yt],yt.allowedChildren=[zt,qt,ar],yt.requiredContainer=qn;const ca={scope:Ne.BLOCK,whitelist:["rtl"]},bc=new tn("direction","dir",ca),xc=new $t("direction","ql-direction",ca),Ec=new Tn("direction","direction",ca),Ac={scope:Ne.INLINE,whitelist:["serif","monospace"]},wc=new $t("font","ql-font",Ac);class ry extends Tn{value(e){return super.value(e).replace(/["']/g,"")}}const Sc=new ry("font","font-family",Ac),Tc=new $t("size","ql-size",{scope:Ne.INLINE,whitelist:["small","large","huge"]}),Nc=new Tn("size","font-size",{scope:Ne.INLINE,whitelist:["10px","18px","32px"]}),sy=fn("quill:keyboard"),iy=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey";class Ds extends Ht{static match(e,t){return["altKey","ctrlKey","metaKey","shiftKey"].some(r=>!!t[r]!==e[r]&&t[r]!==null)?!1:t.key===e.key||t.key===e.which}constructor(e,t){super(e,t),this.bindings={},Object.keys(this.options.bindings).forEach(r=>{this.options.bindings[r]&&this.addBinding(this.options.bindings[r])}),this.addBinding({key:"Enter",shiftKey:null},this.handleEnter),this.addBinding({key:"Enter",metaKey:null,ctrlKey:null,altKey:null},()=>{}),/Firefox/i.test(navigator.userAgent)?(this.addBinding({key:"Backspace"},{collapsed:!0},this.handleBackspace),this.addBinding({key:"Delete"},{collapsed:!0},this.handleDelete)):(this.addBinding({key:"Backspace"},{collapsed:!0,prefix:/^.?$/},this.handleBackspace),this.addBinding({key:"Delete"},{collapsed:!0,suffix:/^.?$/},this.handleDelete)),this.addBinding({key:"Backspace"},{collapsed:!1},this.handleDeleteRange),this.addBinding({key:"Delete"},{collapsed:!1},this.handleDeleteRange),this.addBinding({key:"Backspace",altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},this.handleBackspace),this.listen()}addBinding(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const s=oy(e);if(s==null){sy.warn("Attempted to add invalid keyboard binding",s);return}typeof t=="function"&&(t={handler:t}),typeof r=="function"&&(r={handler:r}),(Array.isArray(s.key)?s.key:[s.key]).forEach(a=>{const c={...s,key:a,...t,...r};this.bindings[c.key]=this.bindings[c.key]||[],this.bindings[c.key].push(c)})}listen(){this.quill.root.addEventListener("keydown",e=>{if(e.defaultPrevented||e.isComposing||e.keyCode===229&&(e.key==="Enter"||e.key==="Backspace"))return;const s=(this.bindings[e.key]||[]).concat(this.bindings[e.which]||[]).filter(S=>Ds.match(e,S));if(s.length===0)return;const o=le.find(e.target,!0);if(o&&o.scroll!==this.quill.scroll)return;const a=this.quill.getSelection();if(a==null||!this.quill.hasFocus())return;const[c,i]=this.quill.getLine(a.index),[u,d]=this.quill.getLeaf(a.index),[h,f]=a.length===0?[u,d]:this.quill.getLeaf(a.index+a.length),g=u instanceof Cs?u.value().slice(0,d):"",p=h instanceof Cs?h.value().slice(f):"",v={collapsed:a.length===0,empty:a.length===0&&c.length()<=1,format:this.quill.getFormat(a),line:c,offset:i,prefix:g,suffix:p,event:e};s.some(S=>{if(S.collapsed!=null&&S.collapsed!==v.collapsed||S.empty!=null&&S.empty!==v.empty||S.offset!=null&&S.offset!==v.offset)return!1;if(Array.isArray(S.format)){if(S.format.every(T=>v.format[T]==null))return!1}else if(typeof S.format=="object"&&!Object.keys(S.format).every(T=>S.format[T]===!0?v.format[T]!=null:S.format[T]===!1?v.format[T]==null:$i(S.format[T],v.format[T])))return!1;return S.prefix!=null&&!S.prefix.test(v.prefix)||S.suffix!=null&&!S.suffix.test(v.suffix)?!1:S.handler.call(this,a,v,S)!==!0})&&e.preventDefault()})}handleBackspace(e,t){const r=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(t.prefix)?2:1;if(e.index===0||this.quill.getLength()<=1)return;let s={};const[o]=this.quill.getLine(e.index);let a=new Te().retain(e.index-r).delete(r);if(t.offset===0){const[c]=this.quill.getLine(e.index-1);if(c&&!(c.statics.blotName==="block"&&c.length()<=1)){const u=o.formats(),d=this.quill.getFormat(e.index-1,1);if(s=Lt.AttributeMap.diff(u,d)||{},Object.keys(s).length>0){const h=new Te().retain(e.index+o.length()-2).retain(1,s);a=a.compose(h)}}}this.quill.updateContents(a,le.sources.USER),this.quill.focus()}handleDelete(e,t){const r=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(t.suffix)?2:1;if(e.index>=this.quill.getLength()-r)return;let s={};const[o]=this.quill.getLine(e.index);let a=new Te().retain(e.index).delete(r);if(t.offset>=o.length()-1){const[c]=this.quill.getLine(e.index+1);if(c){const i=o.formats(),u=this.quill.getFormat(e.index,1);s=Lt.AttributeMap.diff(i,u)||{},Object.keys(s).length>0&&(a=a.retain(c.length()-1).retain(1,s))}}this.quill.updateContents(a,le.sources.USER),this.quill.focus()}handleDeleteRange(e){da({range:e,quill:this.quill}),this.quill.focus()}handleEnter(e,t){const r=Object.keys(t.format).reduce((o,a)=>(this.quill.scroll.query(a,Ne.BLOCK)&&!Array.isArray(t.format[a])&&(o[a]=t.format[a]),o),{}),s=new Te().retain(e.index).delete(e.length).insert(`
39
- `,r);this.quill.updateContents(s,le.sources.USER),this.quill.setSelection(e.index+1,le.sources.SILENT),this.quill.focus()}}const ay={bindings:{bold:ua("bold"),italic:ua("italic"),underline:ua("underline"),indent:{key:"Tab",format:["blockquote","indent","list"],handler(n,e){return e.collapsed&&e.offset!==0?!0:(this.quill.format("indent","+1",le.sources.USER),!1)}},outdent:{key:"Tab",shiftKey:!0,format:["blockquote","indent","list"],handler(n,e){return e.collapsed&&e.offset!==0?!0:(this.quill.format("indent","-1",le.sources.USER),!1)}},"outdent backspace":{key:"Backspace",collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler(n,e){e.format.indent!=null?this.quill.format("indent","-1",le.sources.USER):e.format.list!=null&&this.quill.format("list",!1,le.sources.USER)}},"indent code-block":Oc(!0),"outdent code-block":Oc(!1),"remove tab":{key:"Tab",shiftKey:!0,collapsed:!0,prefix:/\t$/,handler(n){this.quill.deleteText(n.index-1,1,le.sources.USER)}},tab:{key:"Tab",handler(n,e){if(e.format.table)return!0;this.quill.history.cutoff();const t=new Te().retain(n.index).delete(n.length).insert(" ");return this.quill.updateContents(t,le.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(n.index+1,le.sources.SILENT),!1}},"blockquote empty enter":{key:"Enter",collapsed:!0,format:["blockquote"],empty:!0,handler(){this.quill.format("blockquote",!1,le.sources.USER)}},"list empty enter":{key:"Enter",collapsed:!0,format:["list"],empty:!0,handler(n,e){const t={list:!1};e.format.indent&&(t.indent=!1),this.quill.formatLine(n.index,n.length,t,le.sources.USER)}},"checklist enter":{key:"Enter",collapsed:!0,format:{list:"checked"},handler(n){const[e,t]=this.quill.getLine(n.index),r={...e.formats(),list:"checked"},s=new Te().retain(n.index).insert(`
37
+ ${Ms(this.code(e,t))}
38
+ </pre>`}}class yt extends ht{static register(){le.register(qn)}}Ee(yt,"TAB"," ");class uo extends rn{}uo.blotName="code",uo.tagName="CODE",yt.blotName="code-block",yt.className="ql-code-block",yt.tagName="DIV",qn.blotName="code-block-container",qn.className="ql-code-block-container",qn.tagName="DIV",qn.allowedChildren=[yt],yt.allowedChildren=[zt,qt,or],yt.requiredContainer=qn;const fo={scope:Ne.BLOCK,whitelist:["rtl"]},bc=new nn("direction","dir",fo),xc=new $t("direction","ql-direction",fo),Ec=new Tn("direction","direction",fo),wc={scope:Ne.INLINE,whitelist:["serif","monospace"]},Ac=new $t("font","ql-font",wc);class qy extends Tn{value(e){return super.value(e).replace(/["']/g,"")}}const Sc=new qy("font","font-family",wc),Tc=new $t("size","ql-size",{scope:Ne.INLINE,whitelist:["small","large","huge"]}),Nc=new Tn("size","font-size",{scope:Ne.INLINE,whitelist:["10px","18px","32px"]}),zy=fn("quill:keyboard"),Hy=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey";class Vs extends Ht{static match(e,t){return["altKey","ctrlKey","metaKey","shiftKey"].some(r=>!!t[r]!==e[r]&&t[r]!==null)?!1:t.key===e.key||t.key===e.which}constructor(e,t){super(e,t),this.bindings={},Object.keys(this.options.bindings).forEach(r=>{this.options.bindings[r]&&this.addBinding(this.options.bindings[r])}),this.addBinding({key:"Enter",shiftKey:null},this.handleEnter),this.addBinding({key:"Enter",metaKey:null,ctrlKey:null,altKey:null},()=>{}),/Firefox/i.test(navigator.userAgent)?(this.addBinding({key:"Backspace"},{collapsed:!0},this.handleBackspace),this.addBinding({key:"Delete"},{collapsed:!0},this.handleDelete)):(this.addBinding({key:"Backspace"},{collapsed:!0,prefix:/^.?$/},this.handleBackspace),this.addBinding({key:"Delete"},{collapsed:!0,suffix:/^.?$/},this.handleDelete)),this.addBinding({key:"Backspace"},{collapsed:!1},this.handleDeleteRange),this.addBinding({key:"Delete"},{collapsed:!1},this.handleDeleteRange),this.addBinding({key:"Backspace",altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},this.handleBackspace),this.listen()}addBinding(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const s=Wy(e);if(s==null){zy.warn("Attempted to add invalid keyboard binding",s);return}typeof t=="function"&&(t={handler:t}),typeof r=="function"&&(r={handler:r}),(Array.isArray(s.key)?s.key:[s.key]).forEach(o=>{const c={...s,key:o,...t,...r};this.bindings[c.key]=this.bindings[c.key]||[],this.bindings[c.key].push(c)})}listen(){this.quill.root.addEventListener("keydown",e=>{if(e.defaultPrevented||e.isComposing||e.keyCode===229&&(e.key==="Enter"||e.key==="Backspace"))return;const s=(this.bindings[e.key]||[]).concat(this.bindings[e.which]||[]).filter(S=>Vs.match(e,S));if(s.length===0)return;const l=le.find(e.target,!0);if(l&&l.scroll!==this.quill.scroll)return;const o=this.quill.getSelection();if(o==null||!this.quill.hasFocus())return;const[c,i]=this.quill.getLine(o.index),[u,d]=this.quill.getLeaf(o.index),[h,f]=o.length===0?[u,d]:this.quill.getLeaf(o.index+o.length),g=u instanceof Is?u.value().slice(0,d):"",p=h instanceof Is?h.value().slice(f):"",v={collapsed:o.length===0,empty:o.length===0&&c.length()<=1,format:this.quill.getFormat(o),line:c,offset:i,prefix:g,suffix:p,event:e};s.some(S=>{if(S.collapsed!=null&&S.collapsed!==v.collapsed||S.empty!=null&&S.empty!==v.empty||S.offset!=null&&S.offset!==v.offset)return!1;if(Array.isArray(S.format)){if(S.format.every(T=>v.format[T]==null))return!1}else if(typeof S.format=="object"&&!Object.keys(S.format).every(T=>S.format[T]===!0?v.format[T]!=null:S.format[T]===!1?v.format[T]==null:qi(S.format[T],v.format[T])))return!1;return S.prefix!=null&&!S.prefix.test(v.prefix)||S.suffix!=null&&!S.suffix.test(v.suffix)?!1:S.handler.call(this,o,v,S)!==!0})&&e.preventDefault()})}handleBackspace(e,t){const r=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(t.prefix)?2:1;if(e.index===0||this.quill.getLength()<=1)return;let s={};const[l]=this.quill.getLine(e.index);let o=new Te().retain(e.index-r).delete(r);if(t.offset===0){const[c]=this.quill.getLine(e.index-1);if(c&&!(c.statics.blotName==="block"&&c.length()<=1)){const u=l.formats(),d=this.quill.getFormat(e.index-1,1);if(s=Lt.AttributeMap.diff(u,d)||{},Object.keys(s).length>0){const h=new Te().retain(e.index+l.length()-2).retain(1,s);o=o.compose(h)}}}this.quill.updateContents(o,le.sources.USER),this.quill.focus()}handleDelete(e,t){const r=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(t.suffix)?2:1;if(e.index>=this.quill.getLength()-r)return;let s={};const[l]=this.quill.getLine(e.index);let o=new Te().retain(e.index).delete(r);if(t.offset>=l.length()-1){const[c]=this.quill.getLine(e.index+1);if(c){const i=l.formats(),u=this.quill.getFormat(e.index,1);s=Lt.AttributeMap.diff(i,u)||{},Object.keys(s).length>0&&(o=o.retain(c.length()-1).retain(1,s))}}this.quill.updateContents(o,le.sources.USER),this.quill.focus()}handleDeleteRange(e){po({range:e,quill:this.quill}),this.quill.focus()}handleEnter(e,t){const r=Object.keys(t.format).reduce((l,o)=>(this.quill.scroll.query(o,Ne.BLOCK)&&!Array.isArray(t.format[o])&&(l[o]=t.format[o]),l),{}),s=new Te().retain(e.index).delete(e.length).insert(`
39
+ `,r);this.quill.updateContents(s,le.sources.USER),this.quill.setSelection(e.index+1,le.sources.SILENT),this.quill.focus()}}const Gy={bindings:{bold:ho("bold"),italic:ho("italic"),underline:ho("underline"),indent:{key:"Tab",format:["blockquote","indent","list"],handler(n,e){return e.collapsed&&e.offset!==0?!0:(this.quill.format("indent","+1",le.sources.USER),!1)}},outdent:{key:"Tab",shiftKey:!0,format:["blockquote","indent","list"],handler(n,e){return e.collapsed&&e.offset!==0?!0:(this.quill.format("indent","-1",le.sources.USER),!1)}},"outdent backspace":{key:"Backspace",collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler(n,e){e.format.indent!=null?this.quill.format("indent","-1",le.sources.USER):e.format.list!=null&&this.quill.format("list",!1,le.sources.USER)}},"indent code-block":Oc(!0),"outdent code-block":Oc(!1),"remove tab":{key:"Tab",shiftKey:!0,collapsed:!0,prefix:/\t$/,handler(n){this.quill.deleteText(n.index-1,1,le.sources.USER)}},tab:{key:"Tab",handler(n,e){if(e.format.table)return!0;this.quill.history.cutoff();const t=new Te().retain(n.index).delete(n.length).insert(" ");return this.quill.updateContents(t,le.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(n.index+1,le.sources.SILENT),!1}},"blockquote empty enter":{key:"Enter",collapsed:!0,format:["blockquote"],empty:!0,handler(){this.quill.format("blockquote",!1,le.sources.USER)}},"list empty enter":{key:"Enter",collapsed:!0,format:["list"],empty:!0,handler(n,e){const t={list:!1};e.format.indent&&(t.indent=!1),this.quill.formatLine(n.index,n.length,t,le.sources.USER)}},"checklist enter":{key:"Enter",collapsed:!0,format:{list:"checked"},handler(n){const[e,t]=this.quill.getLine(n.index),r={...e.formats(),list:"checked"},s=new Te().retain(n.index).insert(`
40
40
  `,r).retain(e.length()-t-1).retain(1,{list:"unchecked"});this.quill.updateContents(s,le.sources.USER),this.quill.setSelection(n.index+1,le.sources.SILENT),this.quill.scrollSelectionIntoView()}},"header enter":{key:"Enter",collapsed:!0,format:["header"],suffix:/^$/,handler(n,e){const[t,r]=this.quill.getLine(n.index),s=new Te().retain(n.index).insert(`
41
- `,e.format).retain(t.length()-r-1).retain(1,{header:null});this.quill.updateContents(s,le.sources.USER),this.quill.setSelection(n.index+1,le.sources.SILENT),this.quill.scrollSelectionIntoView()}},"table backspace":{key:"Backspace",format:["table"],collapsed:!0,offset:0,handler(){}},"table delete":{key:"Delete",format:["table"],collapsed:!0,suffix:/^$/,handler(){}},"table enter":{key:"Enter",shiftKey:null,format:["table"],handler(n){const e=this.quill.getModule("table");if(e){const[t,r,s,o]=e.getTable(n),a=ly(t,r,s,o);if(a==null)return;let c=t.offset();if(a<0){const i=new Te().retain(c).insert(`
42
- `);this.quill.updateContents(i,le.sources.USER),this.quill.setSelection(n.index+1,n.length,le.sources.SILENT)}else if(a>0){c+=t.length();const i=new Te().retain(c).insert(`
43
- `);this.quill.updateContents(i,le.sources.USER),this.quill.setSelection(c,le.sources.USER)}}}},"table tab":{key:"Tab",shiftKey:null,format:["table"],handler(n,e){const{event:t,line:r}=e,s=r.offset(this.quill.scroll);t.shiftKey?this.quill.setSelection(s-1,le.sources.USER):this.quill.setSelection(s+r.length(),le.sources.USER)}},"list autofill":{key:" ",shiftKey:null,collapsed:!0,format:{"code-block":!1,blockquote:!1,table:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler(n,e){if(this.quill.scroll.query("list")==null)return!0;const{length:t}=e.prefix,[r,s]=this.quill.getLine(n.index);if(s>t)return!0;let o;switch(e.prefix.trim()){case"[]":case"[ ]":o="unchecked";break;case"[x]":o="checked";break;case"-":case"*":o="bullet";break;default:o="ordered"}this.quill.insertText(n.index," ",le.sources.USER),this.quill.history.cutoff();const a=new Te().retain(n.index-s).delete(t+1).retain(r.length()-2-s).retain(1,{list:o});return this.quill.updateContents(a,le.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(n.index-t,le.sources.SILENT),!1}},"code exit":{key:"Enter",collapsed:!0,format:["code-block"],prefix:/^$/,suffix:/^\s*$/,handler(n){const[e,t]=this.quill.getLine(n.index);let r=2,s=e;for(;s!=null&&s.length()<=1&&s.formats()["code-block"];)if(s=s.prev,r-=1,r<=0){const o=new Te().retain(n.index+e.length()-t-2).retain(1,{"code-block":null}).delete(1);return this.quill.updateContents(o,le.sources.USER),this.quill.setSelection(n.index-1,le.sources.SILENT),!1}return!0}},"embed left":Us("ArrowLeft",!1),"embed left shift":Us("ArrowLeft",!0),"embed right":Us("ArrowRight",!1),"embed right shift":Us("ArrowRight",!0),"table down":Cc(!1),"table up":Cc(!0)}};Ds.DEFAULTS=ay;function Oc(n){return{key:"Tab",shiftKey:!n,format:{"code-block":!0},handler(e,t){let{event:r}=t;const s=this.quill.scroll.query("code-block"),{TAB:o}=s;if(e.length===0&&!r.shiftKey){this.quill.insertText(e.index,o,le.sources.USER),this.quill.setSelection(e.index+o.length,le.sources.SILENT);return}const a=e.length===0?this.quill.getLines(e.index,1):this.quill.getLines(e);let{index:c,length:i}=e;a.forEach((u,d)=>{n?(u.insertAt(0,o),d===0?c+=o.length:i+=o.length):u.domNode.textContent.startsWith(o)&&(u.deleteAt(0,o.length),d===0?c-=o.length:i-=o.length)}),this.quill.update(le.sources.USER),this.quill.setSelection(c,i,le.sources.SILENT)}}}function Us(n,e){return{key:n,shiftKey:e,altKey:null,[n==="ArrowLeft"?"prefix":"suffix"]:/^$/,handler(r){let{index:s}=r;n==="ArrowRight"&&(s+=r.length+1);const[o]=this.quill.getLeaf(s);return o instanceof Rt?(n==="ArrowLeft"?e?this.quill.setSelection(r.index-1,r.length+1,le.sources.USER):this.quill.setSelection(r.index-1,le.sources.USER):e?this.quill.setSelection(r.index,r.length+1,le.sources.USER):this.quill.setSelection(r.index+r.length+1,le.sources.USER),!1):!0}}}function ua(n){return{key:n[0],shortKey:!0,handler(e,t){this.quill.format(n,!t.format[n],le.sources.USER)}}}function Cc(n){return{key:n?"ArrowUp":"ArrowDown",collapsed:!0,format:["table"],handler(e,t){const r=n?"prev":"next",s=t.line,o=s.parent[r];if(o!=null){if(o.statics.blotName==="table-row"){let a=o.children.head,c=s;for(;c.prev!=null;)c=c.prev,a=a.next;const i=a.offset(this.quill.scroll)+Math.min(t.offset,a.length()-1);this.quill.setSelection(i,0,le.sources.USER)}}else{const a=s.table()[r];a!=null&&(n?this.quill.setSelection(a.offset(this.quill.scroll)+a.length()-1,0,le.sources.USER):this.quill.setSelection(a.offset(this.quill.scroll),0,le.sources.USER))}return!1}}}function oy(n){if(typeof n=="string"||typeof n=="number")n={key:n};else if(typeof n=="object")n=er(n);else return null;return n.shortKey&&(n[iy]=n.shortKey,delete n.shortKey),n}function da(n){let{quill:e,range:t}=n;const r=e.getLines(t);let s={};if(r.length>1){const o=r[0].formats(),a=r[r.length-1].formats();s=Lt.AttributeMap.diff(a,o)||{}}e.deleteText(t,le.sources.USER),Object.keys(s).length>0&&e.formatLine(t.index,1,s,le.sources.USER),e.setSelection(t.index,le.sources.SILENT)}function ly(n,e,t,r){return e.prev==null&&e.next==null?t.prev==null&&t.next==null?r===0?-1:1:t.prev==null?-1:1:e.prev==null?-1:e.next==null?1:null}const cy=/font-weight:\s*normal/,uy=["P","OL","UL"],Rc=n=>n&&uy.includes(n.tagName),dy=n=>{Array.from(n.querySelectorAll("br")).filter(e=>Rc(e.previousElementSibling)&&Rc(e.nextElementSibling)).forEach(e=>{var t;(t=e.parentNode)==null||t.removeChild(e)})},fy=n=>{Array.from(n.querySelectorAll('b[style*="font-weight"]')).filter(e=>{var t;return(t=e.getAttribute("style"))==null?void 0:t.match(cy)}).forEach(e=>{var r;const t=n.createDocumentFragment();t.append(...e.childNodes),(r=e.parentNode)==null||r.replaceChild(t,e)})};function hy(n){n.querySelector('[id^="docs-internal-guid-"]')&&(fy(n),dy(n))}const py=/\bmso-list:[^;]*ignore/i,my=/\bmso-list:[^;]*\bl(\d+)/i,gy=/\bmso-list:[^;]*\blevel(\d+)/i,vy=(n,e)=>{const t=n.getAttribute("style"),r=t==null?void 0:t.match(my);if(!r)return null;const s=Number(r[1]),o=t==null?void 0:t.match(gy),a=o?Number(o[1]):1,c=new RegExp(`@list l${s}:level${a}\\s*\\{[^\\}]*mso-level-number-format:\\s*([\\w-]+)`,"i"),i=e.match(c),u=i&&i[1]==="bullet"?"bullet":"ordered";return{id:s,indent:a,type:u,element:n}},yy=n=>{var a,c;const e=Array.from(n.querySelectorAll("[style*=mso-list]")),t=[],r=[];e.forEach(i=>{(i.getAttribute("style")||"").match(py)?t.push(i):r.push(i)}),t.forEach(i=>{var u;return(u=i.parentNode)==null?void 0:u.removeChild(i)});const s=n.documentElement.innerHTML,o=r.map(i=>vy(i,s)).filter(i=>i);for(;o.length;){const i=[];let u=o.shift();for(;u;)i.push(u),u=o.length&&((a=o[0])==null?void 0:a.element)===u.element.nextElementSibling&&o[0].id===u.id?o.shift():null;const d=document.createElement("ul");i.forEach(g=>{const p=document.createElement("li");p.setAttribute("data-list",g.type),g.indent>1&&p.setAttribute("class",`ql-indent-${g.indent-1}`),p.innerHTML=g.element.innerHTML,d.appendChild(p)});const h=(c=i[0])==null?void 0:c.element,{parentNode:f}=h??{};h&&(f==null||f.replaceChild(d,h)),i.slice(1).forEach(g=>{let{element:p}=g;f==null||f.removeChild(p)})}};function by(n){n.documentElement.getAttribute("xmlns:w")==="urn:schemas-microsoft-com:office:word"&&yy(n)}const xy=[by,hy],Ey=n=>{n.documentElement&&xy.forEach(e=>{e(n)})},Ay=fn("quill:clipboard"),wy=[[Node.TEXT_NODE,Fy],[Node.TEXT_NODE,Bc],["br",Cy],[Node.ELEMENT_NODE,Bc],[Node.ELEMENT_NODE,Oy],[Node.ELEMENT_NODE,Ny],[Node.ELEMENT_NODE,By],["li",ky],["ol, ul",Ly],["pre",Ry],["tr",Py],["b",ha("bold")],["i",ha("italic")],["strike",ha("strike")],["style",Iy]],Sy=[ey,bc].reduce((n,e)=>(n[e.keyName]=e,n),{}),Ic=[vc,oa,aa,Ec,Sc,Nc].reduce((n,e)=>(n[e.keyName]=e,n),{});class kc extends Ht{constructor(e,t){super(e,t),this.quill.root.addEventListener("copy",r=>this.onCaptureCopy(r,!1)),this.quill.root.addEventListener("cut",r=>this.onCaptureCopy(r,!0)),this.quill.root.addEventListener("paste",this.onCapturePaste.bind(this)),this.matchers=[],wy.concat(this.options.matchers??[]).forEach(r=>{let[s,o]=r;this.addMatcher(s,o)})}addMatcher(e,t){this.matchers.push([e,t])}convert(e){let{html:t,text:r}=e,s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(s[yt.blotName])return new Te().insert(r||"",{[yt.blotName]:s[yt.blotName]});if(!t)return new Te().insert(r||"",s);const o=this.convertHTML(t);return jr(o,`
44
- `)&&(o.ops[o.ops.length-1].attributes==null||s.table)?o.compose(new Te().retain(o.length()-1).delete(1)):o}normalizeHTML(e){Ey(e)}convertHTML(e){const t=new DOMParser().parseFromString(e,"text/html");this.normalizeHTML(t);const r=t.body,s=new WeakMap,[o,a]=this.prepareMatching(r,s);return fa(this.quill.scroll,r,o,a,s)}dangerouslyPasteHTML(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:le.sources.API;if(typeof e=="string"){const s=this.convert({html:e,text:""});this.quill.setContents(s,t),this.quill.setSelection(0,le.sources.SILENT)}else{const s=this.convert({html:t,text:""});this.quill.updateContents(new Te().retain(e).concat(s),r),this.quill.setSelection(e+s.length(),le.sources.SILENT)}}onCaptureCopy(e){var a,c;let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(e.defaultPrevented)return;e.preventDefault();const[r]=this.quill.selection.getRange();if(r==null)return;const{html:s,text:o}=this.onCopy(r,t);(a=e.clipboardData)==null||a.setData("text/plain",o),(c=e.clipboardData)==null||c.setData("text/html",s),t&&da({range:r,quill:this.quill})}normalizeURIList(e){return e.split(/\r?\n/).filter(t=>t[0]!=="#").join(`
45
- `)}onCapturePaste(e){var a,c,i,u,d;if(e.defaultPrevented||!this.quill.isEnabled())return;e.preventDefault();const t=this.quill.getSelection(!0);if(t==null)return;const r=(a=e.clipboardData)==null?void 0:a.getData("text/html");let s=(c=e.clipboardData)==null?void 0:c.getData("text/plain");if(!r&&!s){const h=(i=e.clipboardData)==null?void 0:i.getData("text/uri-list");h&&(s=this.normalizeURIList(h))}const o=Array.from(((u=e.clipboardData)==null?void 0:u.files)||[]);if(!r&&o.length>0){this.quill.uploader.upload(t,o);return}if(r&&o.length>0){const h=new DOMParser().parseFromString(r,"text/html");if(h.body.childElementCount===1&&((d=h.body.firstElementChild)==null?void 0:d.tagName)==="IMG"){this.quill.uploader.upload(t,o);return}}this.onPaste(t,{html:r,text:s})}onCopy(e){const t=this.quill.getText(e);return{html:this.quill.getSemanticHTML(e),text:t}}onPaste(e,t){let{text:r,html:s}=t;const o=this.quill.getFormat(e.index),a=this.convert({text:r,html:s},o);Ay.log("onPaste",a,{text:r,html:s});const c=new Te().retain(e.index).delete(e.length).concat(a);this.quill.updateContents(c,le.sources.USER),this.quill.setSelection(c.length()-e.length,le.sources.SILENT),this.quill.scrollSelectionIntoView()}prepareMatching(e,t){const r=[],s=[];return this.matchers.forEach(o=>{const[a,c]=o;switch(a){case Node.TEXT_NODE:s.push(c);break;case Node.ELEMENT_NODE:r.push(c);break;default:Array.from(e.querySelectorAll(a)).forEach(i=>{if(t.has(i)){const u=t.get(i);u==null||u.push(c)}else t.set(i,[c])});break}}),[r,s]}}Ee(kc,"DEFAULTS",{matchers:[]});function zn(n,e,t,r){return r.query(e)?n.reduce((s,o)=>{if(!o.insert)return s;if(o.attributes&&o.attributes[e])return s.push(o);const a=t?{[e]:t}:{};return s.insert(o.insert,{...a,...o.attributes})},new Te):n}function jr(n,e){let t="";for(let r=n.ops.length-1;r>=0&&t.length<e.length;--r){const s=n.ops[r];if(typeof s.insert!="string")break;t=s.insert+t}return t.slice(-1*e.length)===e}function Nn(n,e){if(!(n instanceof Element))return!1;const t=e.query(n);return t&&t.prototype instanceof Rt?!1:["address","article","blockquote","canvas","dd","div","dl","dt","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","iframe","li","main","nav","ol","output","p","pre","section","table","td","tr","ul","video"].includes(n.tagName.toLowerCase())}function Ty(n,e){return n.previousElementSibling&&n.nextElementSibling&&!Nn(n.previousElementSibling,e)&&!Nn(n.nextElementSibling,e)}const js=new WeakMap;function Lc(n){return n==null?!1:(js.has(n)||(n.tagName==="PRE"?js.set(n,!0):js.set(n,Lc(n.parentNode))),js.get(n))}function fa(n,e,t,r,s){return e.nodeType===e.TEXT_NODE?r.reduce((o,a)=>a(e,o,n),new Te):e.nodeType===e.ELEMENT_NODE?Array.from(e.childNodes||[]).reduce((o,a)=>{let c=fa(n,a,t,r,s);return a.nodeType===e.ELEMENT_NODE&&(c=t.reduce((i,u)=>u(a,i,n),c),c=(s.get(a)||[]).reduce((i,u)=>u(a,i,n),c)),o.concat(c)},new Te):new Te}function ha(n){return(e,t,r)=>zn(t,n,!0,r)}function Ny(n,e,t){const r=tn.keys(n),s=$t.keys(n),o=Tn.keys(n),a={};return r.concat(s).concat(o).forEach(c=>{let i=t.query(c,Ne.ATTRIBUTE);i!=null&&(a[i.attrName]=i.value(n),a[i.attrName])||(i=Sy[c],i!=null&&(i.attrName===c||i.keyName===c)&&(a[i.attrName]=i.value(n)||void 0),i=Ic[c],i!=null&&(i.attrName===c||i.keyName===c)&&(i=Ic[c],a[i.attrName]=i.value(n)||void 0))}),Object.entries(a).reduce((c,i)=>{let[u,d]=i;return zn(c,u,d,t)},e)}function Oy(n,e,t){const r=t.query(n);if(r==null)return e;if(r.prototype instanceof Rt){const s={},o=r.value(n);if(o!=null)return s[r.blotName]=o,new Te().insert(s,r.formats(n,t))}else if(r.prototype instanceof Fr&&!jr(e,`
41
+ `,e.format).retain(t.length()-r-1).retain(1,{header:null});this.quill.updateContents(s,le.sources.USER),this.quill.setSelection(n.index+1,le.sources.SILENT),this.quill.scrollSelectionIntoView()}},"table backspace":{key:"Backspace",format:["table"],collapsed:!0,offset:0,handler(){}},"table delete":{key:"Delete",format:["table"],collapsed:!0,suffix:/^$/,handler(){}},"table enter":{key:"Enter",shiftKey:null,format:["table"],handler(n){const e=this.quill.getModule("table");if(e){const[t,r,s,l]=e.getTable(n),o=Ky(t,r,s,l);if(o==null)return;let c=t.offset();if(o<0){const i=new Te().retain(c).insert(`
42
+ `);this.quill.updateContents(i,le.sources.USER),this.quill.setSelection(n.index+1,n.length,le.sources.SILENT)}else if(o>0){c+=t.length();const i=new Te().retain(c).insert(`
43
+ `);this.quill.updateContents(i,le.sources.USER),this.quill.setSelection(c,le.sources.USER)}}}},"table tab":{key:"Tab",shiftKey:null,format:["table"],handler(n,e){const{event:t,line:r}=e,s=r.offset(this.quill.scroll);t.shiftKey?this.quill.setSelection(s-1,le.sources.USER):this.quill.setSelection(s+r.length(),le.sources.USER)}},"list autofill":{key:" ",shiftKey:null,collapsed:!0,format:{"code-block":!1,blockquote:!1,table:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler(n,e){if(this.quill.scroll.query("list")==null)return!0;const{length:t}=e.prefix,[r,s]=this.quill.getLine(n.index);if(s>t)return!0;let l;switch(e.prefix.trim()){case"[]":case"[ ]":l="unchecked";break;case"[x]":l="checked";break;case"-":case"*":l="bullet";break;default:l="ordered"}this.quill.insertText(n.index," ",le.sources.USER),this.quill.history.cutoff();const o=new Te().retain(n.index-s).delete(t+1).retain(r.length()-2-s).retain(1,{list:l});return this.quill.updateContents(o,le.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(n.index-t,le.sources.SILENT),!1}},"code exit":{key:"Enter",collapsed:!0,format:["code-block"],prefix:/^$/,suffix:/^\s*$/,handler(n){const[e,t]=this.quill.getLine(n.index);let r=2,s=e;for(;s!=null&&s.length()<=1&&s.formats()["code-block"];)if(s=s.prev,r-=1,r<=0){const l=new Te().retain(n.index+e.length()-t-2).retain(1,{"code-block":null}).delete(1);return this.quill.updateContents(l,le.sources.USER),this.quill.setSelection(n.index-1,le.sources.SILENT),!1}return!0}},"embed left":$s("ArrowLeft",!1),"embed left shift":$s("ArrowLeft",!0),"embed right":$s("ArrowRight",!1),"embed right shift":$s("ArrowRight",!0),"table down":Cc(!1),"table up":Cc(!0)}};Vs.DEFAULTS=Gy;function Oc(n){return{key:"Tab",shiftKey:!n,format:{"code-block":!0},handler(e,t){let{event:r}=t;const s=this.quill.scroll.query("code-block"),{TAB:l}=s;if(e.length===0&&!r.shiftKey){this.quill.insertText(e.index,l,le.sources.USER),this.quill.setSelection(e.index+l.length,le.sources.SILENT);return}const o=e.length===0?this.quill.getLines(e.index,1):this.quill.getLines(e);let{index:c,length:i}=e;o.forEach((u,d)=>{n?(u.insertAt(0,l),d===0?c+=l.length:i+=l.length):u.domNode.textContent.startsWith(l)&&(u.deleteAt(0,l.length),d===0?c-=l.length:i-=l.length)}),this.quill.update(le.sources.USER),this.quill.setSelection(c,i,le.sources.SILENT)}}}function $s(n,e){return{key:n,shiftKey:e,altKey:null,[n==="ArrowLeft"?"prefix":"suffix"]:/^$/,handler(r){let{index:s}=r;n==="ArrowRight"&&(s+=r.length+1);const[l]=this.quill.getLeaf(s);return l instanceof kt?(n==="ArrowLeft"?e?this.quill.setSelection(r.index-1,r.length+1,le.sources.USER):this.quill.setSelection(r.index-1,le.sources.USER):e?this.quill.setSelection(r.index,r.length+1,le.sources.USER):this.quill.setSelection(r.index+r.length+1,le.sources.USER),!1):!0}}}function ho(n){return{key:n[0],shortKey:!0,handler(e,t){this.quill.format(n,!t.format[n],le.sources.USER)}}}function Cc(n){return{key:n?"ArrowUp":"ArrowDown",collapsed:!0,format:["table"],handler(e,t){const r=n?"prev":"next",s=t.line,l=s.parent[r];if(l!=null){if(l.statics.blotName==="table-row"){let o=l.children.head,c=s;for(;c.prev!=null;)c=c.prev,o=o.next;const i=o.offset(this.quill.scroll)+Math.min(t.offset,o.length()-1);this.quill.setSelection(i,0,le.sources.USER)}}else{const o=s.table()[r];o!=null&&(n?this.quill.setSelection(o.offset(this.quill.scroll)+o.length()-1,0,le.sources.USER):this.quill.setSelection(o.offset(this.quill.scroll),0,le.sources.USER))}return!1}}}function Wy(n){if(typeof n=="string"||typeof n=="number")n={key:n};else if(typeof n=="object")n=er(n);else return null;return n.shortKey&&(n[Hy]=n.shortKey,delete n.shortKey),n}function po(n){let{quill:e,range:t}=n;const r=e.getLines(t);let s={};if(r.length>1){const l=r[0].formats(),o=r[r.length-1].formats();s=Lt.AttributeMap.diff(o,l)||{}}e.deleteText(t,le.sources.USER),Object.keys(s).length>0&&e.formatLine(t.index,1,s,le.sources.USER),e.setSelection(t.index,le.sources.SILENT)}function Ky(n,e,t,r){return e.prev==null&&e.next==null?t.prev==null&&t.next==null?r===0?-1:1:t.prev==null?-1:1:e.prev==null?-1:e.next==null?1:null}const Xy=/font-weight:\s*normal/,Yy=["P","OL","UL"],kc=n=>n&&Yy.includes(n.tagName),Zy=n=>{Array.from(n.querySelectorAll("br")).filter(e=>kc(e.previousElementSibling)&&kc(e.nextElementSibling)).forEach(e=>{var t;(t=e.parentNode)==null||t.removeChild(e)})},Qy=n=>{Array.from(n.querySelectorAll('b[style*="font-weight"]')).filter(e=>{var t;return(t=e.getAttribute("style"))==null?void 0:t.match(Xy)}).forEach(e=>{var r;const t=n.createDocumentFragment();t.append(...e.childNodes),(r=e.parentNode)==null||r.replaceChild(t,e)})};function Jy(n){n.querySelector('[id^="docs-internal-guid-"]')&&(Qy(n),Zy(n))}const eb=/\bmso-list:[^;]*ignore/i,tb=/\bmso-list:[^;]*\bl(\d+)/i,nb=/\bmso-list:[^;]*\blevel(\d+)/i,rb=(n,e)=>{const t=n.getAttribute("style"),r=t==null?void 0:t.match(tb);if(!r)return null;const s=Number(r[1]),l=t==null?void 0:t.match(nb),o=l?Number(l[1]):1,c=new RegExp(`@list l${s}:level${o}\\s*\\{[^\\}]*mso-level-number-format:\\s*([\\w-]+)`,"i"),i=e.match(c),u=i&&i[1]==="bullet"?"bullet":"ordered";return{id:s,indent:o,type:u,element:n}},sb=n=>{var o,c;const e=Array.from(n.querySelectorAll("[style*=mso-list]")),t=[],r=[];e.forEach(i=>{(i.getAttribute("style")||"").match(eb)?t.push(i):r.push(i)}),t.forEach(i=>{var u;return(u=i.parentNode)==null?void 0:u.removeChild(i)});const s=n.documentElement.innerHTML,l=r.map(i=>rb(i,s)).filter(i=>i);for(;l.length;){const i=[];let u=l.shift();for(;u;)i.push(u),u=l.length&&((o=l[0])==null?void 0:o.element)===u.element.nextElementSibling&&l[0].id===u.id?l.shift():null;const d=document.createElement("ul");i.forEach(g=>{const p=document.createElement("li");p.setAttribute("data-list",g.type),g.indent>1&&p.setAttribute("class",`ql-indent-${g.indent-1}`),p.innerHTML=g.element.innerHTML,d.appendChild(p)});const h=(c=i[0])==null?void 0:c.element,{parentNode:f}=h??{};h&&(f==null||f.replaceChild(d,h)),i.slice(1).forEach(g=>{let{element:p}=g;f==null||f.removeChild(p)})}};function ib(n){n.documentElement.getAttribute("xmlns:w")==="urn:schemas-microsoft-com:office:word"&&sb(n)}const ob=[ib,Jy],ab=n=>{n.documentElement&&ob.forEach(e=>{e(n)})},lb=fn("quill:clipboard"),cb=[[Node.TEXT_NODE,Eb],[Node.TEXT_NODE,Bc],["br",pb],[Node.ELEMENT_NODE,Bc],[Node.ELEMENT_NODE,hb],[Node.ELEMENT_NODE,fb],[Node.ELEMENT_NODE,bb],["li",vb],["ol, ul",yb],["pre",mb],["tr",xb],["b",go("bold")],["i",go("italic")],["strike",go("strike")],["style",gb]],ub=[Vy,bc].reduce((n,e)=>(n[e.keyName]=e,n),{}),Rc=[vc,co,lo,Ec,Sc,Nc].reduce((n,e)=>(n[e.keyName]=e,n),{});class Ic extends Ht{constructor(e,t){super(e,t),this.quill.root.addEventListener("copy",r=>this.onCaptureCopy(r,!1)),this.quill.root.addEventListener("cut",r=>this.onCaptureCopy(r,!0)),this.quill.root.addEventListener("paste",this.onCapturePaste.bind(this)),this.matchers=[],cb.concat(this.options.matchers??[]).forEach(r=>{let[s,l]=r;this.addMatcher(s,l)})}addMatcher(e,t){this.matchers.push([e,t])}convert(e){let{html:t,text:r}=e,s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(s[yt.blotName])return new Te().insert(r||"",{[yt.blotName]:s[yt.blotName]});if(!t)return new Te().insert(r||"",s);const l=this.convertHTML(t);return Vr(l,`
44
+ `)&&(l.ops[l.ops.length-1].attributes==null||s.table)?l.compose(new Te().retain(l.length()-1).delete(1)):l}normalizeHTML(e){ab(e)}convertHTML(e){const t=new DOMParser().parseFromString(e,"text/html");this.normalizeHTML(t);const r=t.body,s=new WeakMap,[l,o]=this.prepareMatching(r,s);return mo(this.quill.scroll,r,l,o,s)}dangerouslyPasteHTML(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:le.sources.API;if(typeof e=="string"){const s=this.convert({html:e,text:""});this.quill.setContents(s,t),this.quill.setSelection(0,le.sources.SILENT)}else{const s=this.convert({html:t,text:""});this.quill.updateContents(new Te().retain(e).concat(s),r),this.quill.setSelection(e+s.length(),le.sources.SILENT)}}onCaptureCopy(e){var o,c;let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(e.defaultPrevented)return;e.preventDefault();const[r]=this.quill.selection.getRange();if(r==null)return;const{html:s,text:l}=this.onCopy(r,t);(o=e.clipboardData)==null||o.setData("text/plain",l),(c=e.clipboardData)==null||c.setData("text/html",s),t&&po({range:r,quill:this.quill})}normalizeURIList(e){return e.split(/\r?\n/).filter(t=>t[0]!=="#").join(`
45
+ `)}onCapturePaste(e){var o,c,i,u,d;if(e.defaultPrevented||!this.quill.isEnabled())return;e.preventDefault();const t=this.quill.getSelection(!0);if(t==null)return;const r=(o=e.clipboardData)==null?void 0:o.getData("text/html");let s=(c=e.clipboardData)==null?void 0:c.getData("text/plain");if(!r&&!s){const h=(i=e.clipboardData)==null?void 0:i.getData("text/uri-list");h&&(s=this.normalizeURIList(h))}const l=Array.from(((u=e.clipboardData)==null?void 0:u.files)||[]);if(!r&&l.length>0){this.quill.uploader.upload(t,l);return}if(r&&l.length>0){const h=new DOMParser().parseFromString(r,"text/html");if(h.body.childElementCount===1&&((d=h.body.firstElementChild)==null?void 0:d.tagName)==="IMG"){this.quill.uploader.upload(t,l);return}}this.onPaste(t,{html:r,text:s})}onCopy(e){const t=this.quill.getText(e);return{html:this.quill.getSemanticHTML(e),text:t}}onPaste(e,t){let{text:r,html:s}=t;const l=this.quill.getFormat(e.index),o=this.convert({text:r,html:s},l);lb.log("onPaste",o,{text:r,html:s});const c=new Te().retain(e.index).delete(e.length).concat(o);this.quill.updateContents(c,le.sources.USER),this.quill.setSelection(c.length()-e.length,le.sources.SILENT),this.quill.scrollSelectionIntoView()}prepareMatching(e,t){const r=[],s=[];return this.matchers.forEach(l=>{const[o,c]=l;switch(o){case Node.TEXT_NODE:s.push(c);break;case Node.ELEMENT_NODE:r.push(c);break;default:Array.from(e.querySelectorAll(o)).forEach(i=>{if(t.has(i)){const u=t.get(i);u==null||u.push(c)}else t.set(i,[c])});break}}),[r,s]}}Ee(Ic,"DEFAULTS",{matchers:[]});function zn(n,e,t,r){return r.query(e)?n.reduce((s,l)=>{if(!l.insert)return s;if(l.attributes&&l.attributes[e])return s.push(l);const o=t?{[e]:t}:{};return s.insert(l.insert,{...o,...l.attributes})},new Te):n}function Vr(n,e){let t="";for(let r=n.ops.length-1;r>=0&&t.length<e.length;--r){const s=n.ops[r];if(typeof s.insert!="string")break;t=s.insert+t}return t.slice(-1*e.length)===e}function Nn(n,e){if(!(n instanceof Element))return!1;const t=e.query(n);return t&&t.prototype instanceof kt?!1:["address","article","blockquote","canvas","dd","div","dl","dt","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","iframe","li","main","nav","ol","output","p","pre","section","table","td","tr","ul","video"].includes(n.tagName.toLowerCase())}function db(n,e){return n.previousElementSibling&&n.nextElementSibling&&!Nn(n.previousElementSibling,e)&&!Nn(n.nextElementSibling,e)}const _s=new WeakMap;function Lc(n){return n==null?!1:(_s.has(n)||(n.tagName==="PRE"?_s.set(n,!0):_s.set(n,Lc(n.parentNode))),_s.get(n))}function mo(n,e,t,r,s){return e.nodeType===e.TEXT_NODE?r.reduce((l,o)=>o(e,l,n),new Te):e.nodeType===e.ELEMENT_NODE?Array.from(e.childNodes||[]).reduce((l,o)=>{let c=mo(n,o,t,r,s);return o.nodeType===e.ELEMENT_NODE&&(c=t.reduce((i,u)=>u(o,i,n),c),c=(s.get(o)||[]).reduce((i,u)=>u(o,i,n),c)),l.concat(c)},new Te):new Te}function go(n){return(e,t,r)=>zn(t,n,!0,r)}function fb(n,e,t){const r=nn.keys(n),s=$t.keys(n),l=Tn.keys(n),o={};return r.concat(s).concat(l).forEach(c=>{let i=t.query(c,Ne.ATTRIBUTE);i!=null&&(o[i.attrName]=i.value(n),o[i.attrName])||(i=ub[c],i!=null&&(i.attrName===c||i.keyName===c)&&(o[i.attrName]=i.value(n)||void 0),i=Rc[c],i!=null&&(i.attrName===c||i.keyName===c)&&(i=Rc[c],o[i.attrName]=i.value(n)||void 0))}),Object.entries(o).reduce((c,i)=>{let[u,d]=i;return zn(c,u,d,t)},e)}function hb(n,e,t){const r=t.query(n);if(r==null)return e;if(r.prototype instanceof kt){const s={},l=r.value(n);if(l!=null)return s[r.blotName]=l,new Te().insert(s,r.formats(n,t))}else if(r.prototype instanceof Mr&&!Vr(e,`
46
46
  `)&&e.insert(`
47
- `),"blotName"in r&&"formats"in r&&typeof r.formats=="function")return zn(e,r.blotName,r.formats(n,t),t);return e}function Cy(n,e){return jr(e,`
47
+ `),"blotName"in r&&"formats"in r&&typeof r.formats=="function")return zn(e,r.blotName,r.formats(n,t),t);return e}function pb(n,e){return Vr(e,`
48
48
  `)||e.insert(`
49
- `),e}function Ry(n,e,t){const r=t.query("code-block"),s=r&&"formats"in r&&typeof r.formats=="function"?r.formats(n,t):!0;return zn(e,"code-block",s,t)}function Iy(){return new Te}function ky(n,e,t){const r=t.query(n);if(r==null||r.blotName!=="list"||!jr(e,`
50
- `))return e;let s=-1,o=n.parentNode;for(;o!=null;)["OL","UL"].includes(o.tagName)&&(s+=1),o=o.parentNode;return s<=0?e:e.reduce((a,c)=>c.insert?c.attributes&&typeof c.attributes.indent=="number"?a.push(c):a.insert(c.insert,{indent:s,...c.attributes||{}}):a,new Te)}function Ly(n,e,t){const r=n;let s=r.tagName==="OL"?"ordered":"bullet";const o=r.getAttribute("data-checked");return o&&(s=o==="true"?"checked":"unchecked"),zn(e,"list",s,t)}function Bc(n,e,t){if(!jr(e,`
49
+ `),e}function mb(n,e,t){const r=t.query("code-block"),s=r&&"formats"in r&&typeof r.formats=="function"?r.formats(n,t):!0;return zn(e,"code-block",s,t)}function gb(){return new Te}function vb(n,e,t){const r=t.query(n);if(r==null||r.blotName!=="list"||!Vr(e,`
50
+ `))return e;let s=-1,l=n.parentNode;for(;l!=null;)["OL","UL"].includes(l.tagName)&&(s+=1),l=l.parentNode;return s<=0?e:e.reduce((o,c)=>c.insert?c.attributes&&typeof c.attributes.indent=="number"?o.push(c):o.insert(c.insert,{indent:s,...c.attributes||{}}):o,new Te)}function yb(n,e,t){const r=n;let s=r.tagName==="OL"?"ordered":"bullet";const l=r.getAttribute("data-checked");return l&&(s=l==="true"?"checked":"unchecked"),zn(e,"list",s,t)}function Bc(n,e,t){if(!Vr(e,`
51
51
  `)){if(Nn(n,t)&&(n.childNodes.length>0||n instanceof HTMLParagraphElement))return e.insert(`
52
52
  `);if(e.length()>0&&n.nextSibling){let r=n.nextSibling;for(;r!=null;){if(Nn(r,t))return e.insert(`
53
53
  `);const s=t.query(r);if(s&&s.prototype instanceof Bt)return e.insert(`
54
- `);r=r.firstChild}}}return e}function By(n,e,t){var o;const r={},s=n.style||{};return s.fontStyle==="italic"&&(r.italic=!0),s.textDecoration==="underline"&&(r.underline=!0),s.textDecoration==="line-through"&&(r.strike=!0),((o=s.fontWeight)!=null&&o.startsWith("bold")||parseInt(s.fontWeight,10)>=700)&&(r.bold=!0),e=Object.entries(r).reduce((a,c)=>{let[i,u]=c;return zn(a,i,u,t)},e),parseFloat(s.textIndent||0)>0?new Te().insert(" ").concat(e):e}function Py(n,e,t){var s,o;const r=((s=n.parentElement)==null?void 0:s.tagName)==="TABLE"?n.parentElement:(o=n.parentElement)==null?void 0:o.parentElement;if(r!=null){const c=Array.from(r.querySelectorAll("tr")).indexOf(n)+1;return zn(e,"table",c,t)}return e}function Fy(n,e,t){var s;let r=n.data;if(((s=n.parentElement)==null?void 0:s.tagName)==="O:P")return e.insert(r.trim());if(!Lc(n)){if(r.trim().length===0&&r.includes(`
55
- `)&&!Ty(n,t))return e;r=r.replace(/[^\S\u00a0]/g," "),r=r.replace(/ {2,}/g," "),(n.previousSibling==null&&n.parentElement!=null&&Nn(n.parentElement,t)||n.previousSibling instanceof Element&&Nn(n.previousSibling,t))&&(r=r.replace(/^ /,"")),(n.nextSibling==null&&n.parentElement!=null&&Nn(n.parentElement,t)||n.nextSibling instanceof Element&&Nn(n.nextSibling,t))&&(r=r.replace(/ $/,"")),r=r.replaceAll(" "," ")}return e.insert(r)}class Pc extends Ht{constructor(t,r){super(t,r);Ee(this,"lastRecorded",0);Ee(this,"ignoreChange",!1);Ee(this,"stack",{undo:[],redo:[]});Ee(this,"currentRange",null);this.quill.on(le.events.EDITOR_CHANGE,(s,o,a,c)=>{s===le.events.SELECTION_CHANGE?o&&c!==le.sources.SILENT&&(this.currentRange=o):s===le.events.TEXT_CHANGE&&(this.ignoreChange||(!this.options.userOnly||c===le.sources.USER?this.record(o,a):this.transform(o)),this.currentRange=pa(this.currentRange,o))}),this.quill.keyboard.addBinding({key:"z",shortKey:!0},this.undo.bind(this)),this.quill.keyboard.addBinding({key:["z","Z"],shortKey:!0,shiftKey:!0},this.redo.bind(this)),/Win/i.test(navigator.platform)&&this.quill.keyboard.addBinding({key:"y",shortKey:!0},this.redo.bind(this)),this.quill.root.addEventListener("beforeinput",s=>{s.inputType==="historyUndo"?(this.undo(),s.preventDefault()):s.inputType==="historyRedo"&&(this.redo(),s.preventDefault())})}change(t,r){if(this.stack[t].length===0)return;const s=this.stack[t].pop();if(!s)return;const o=this.quill.getContents(),a=s.delta.invert(o);this.stack[r].push({delta:a,range:pa(s.range,a)}),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(s.delta,le.sources.USER),this.ignoreChange=!1,this.restoreSelection(s)}clear(){this.stack={undo:[],redo:[]}}cutoff(){this.lastRecorded=0}record(t,r){if(t.ops.length===0)return;this.stack.redo=[];let s=t.invert(r),o=this.currentRange;const a=Date.now();if(this.lastRecorded+this.options.delay>a&&this.stack.undo.length>0){const c=this.stack.undo.pop();c&&(s=s.compose(c.delta),o=c.range)}else this.lastRecorded=a;s.length()!==0&&(this.stack.undo.push({delta:s,range:o}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift())}redo(){this.change("redo","undo")}transform(t){Fc(this.stack.undo,t),Fc(this.stack.redo,t)}undo(){this.change("undo","redo")}restoreSelection(t){if(t.range)this.quill.setSelection(t.range,le.sources.USER);else{const r=Dy(this.quill.scroll,t.delta);this.quill.setSelection(r,le.sources.USER)}}}Ee(Pc,"DEFAULTS",{delay:1e3,maxStack:100,userOnly:!1});function Fc(n,e){let t=e;for(let r=n.length-1;r>=0;r-=1){const s=n[r];n[r]={delta:t.transform(s.delta,!0),range:s.range&&pa(s.range,t)},t=s.delta.transform(t),n[r].delta.length()===0&&n.splice(r,1)}}function My(n,e){const t=e.ops[e.ops.length-1];return t==null?!1:t.insert!=null?typeof t.insert=="string"&&t.insert.endsWith(`
56
- `):t.attributes!=null?Object.keys(t.attributes).some(r=>n.query(r,Ne.BLOCK)!=null):!1}function Dy(n,e){const t=e.reduce((s,o)=>s+(o.delete||0),0);let r=e.length()-t;return My(n,e)&&(r-=1),r}function pa(n,e){if(!n)return n;const t=e.transformPosition(n.index),r=e.transformPosition(n.index+n.length);return{index:t,length:r-t}}class Mc extends Ht{constructor(e,t){super(e,t),e.root.addEventListener("drop",r=>{var a;r.preventDefault();let s=null;if(document.caretRangeFromPoint)s=document.caretRangeFromPoint(r.clientX,r.clientY);else if(document.caretPositionFromPoint){const c=document.caretPositionFromPoint(r.clientX,r.clientY);s=document.createRange(),s.setStart(c.offsetNode,c.offset),s.setEnd(c.offsetNode,c.offset)}const o=s&&e.selection.normalizeNative(s);if(o){const c=e.selection.normalizedToRange(o);(a=r.dataTransfer)!=null&&a.files&&this.upload(c,r.dataTransfer.files)}})}upload(e,t){const r=[];Array.from(t).forEach(s=>{var o;s&&((o=this.options.mimetypes)!=null&&o.includes(s.type))&&r.push(s)}),r.length>0&&this.options.handler.call(this,e,r)}}Mc.DEFAULTS={mimetypes:["image/png","image/jpeg"],handler(n,e){if(!this.quill.scroll.query("image"))return;const t=e.map(r=>new Promise(s=>{const o=new FileReader;o.onload=()=>{s(o.result)},o.readAsDataURL(r)}));Promise.all(t).then(r=>{const s=r.reduce((o,a)=>o.insert({image:a}),new Te().retain(n.index).delete(n.length));this.quill.updateContents(s,Se.sources.USER),this.quill.setSelection(n.index+r.length,Se.sources.SILENT)})}};const Uy=["insertText","insertReplacementText"];class jy extends Ht{constructor(e,t){super(e,t),e.root.addEventListener("beforeinput",r=>{this.handleBeforeInput(r)}),/Android/i.test(navigator.userAgent)||e.on(le.events.COMPOSITION_BEFORE_START,()=>{this.handleCompositionStart()})}deleteRange(e){da({range:e,quill:this.quill})}replaceText(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";if(e.length===0)return!1;if(t){const r=this.quill.getFormat(e.index,1);this.deleteRange(e),this.quill.updateContents(new Te().retain(e.index).insert(t,r),le.sources.USER)}else this.deleteRange(e);return this.quill.setSelection(e.index+t.length,0,le.sources.SILENT),!0}handleBeforeInput(e){if(this.quill.composition.isComposing||e.defaultPrevented||!Uy.includes(e.inputType))return;const t=e.getTargetRanges?e.getTargetRanges()[0]:null;if(!t||t.collapsed===!0)return;const r=Vy(e);if(r==null)return;const s=this.quill.selection.normalizeNative(t),o=s?this.quill.selection.normalizedToRange(s):null;o&&this.replaceText(o,r)&&e.preventDefault()}handleCompositionStart(){const e=this.quill.getSelection();e&&this.replaceText(e)}}function Vy(n){var e;return typeof n.data=="string"?n.data:(e=n.dataTransfer)!=null&&e.types.includes("text/plain")?n.dataTransfer.getData("text/plain"):null}const $y=/Mac/i.test(navigator.platform),_y=100,qy=n=>!!(n.key==="ArrowLeft"||n.key==="ArrowRight"||n.key==="ArrowUp"||n.key==="ArrowDown"||n.key==="Home"||$y&&n.key==="a"&&n.ctrlKey===!0);class zy extends Ht{constructor(t,r){super(t,r);Ee(this,"isListening",!1);Ee(this,"selectionChangeDeadline",0);this.handleArrowKeys(),this.handleNavigationShortcuts()}handleArrowKeys(){this.quill.keyboard.addBinding({key:["ArrowLeft","ArrowRight"],offset:0,shiftKey:null,handler(t,r){let{line:s,event:o}=r;if(!(s instanceof _t)||!s.uiNode)return!0;const a=getComputedStyle(s.domNode).direction==="rtl";return a&&o.key!=="ArrowRight"||!a&&o.key!=="ArrowLeft"?!0:(this.quill.setSelection(t.index-1,t.length+(o.shiftKey?1:0),le.sources.USER),!1)}})}handleNavigationShortcuts(){this.quill.root.addEventListener("keydown",t=>{!t.defaultPrevented&&qy(t)&&this.ensureListeningToSelectionChange()})}ensureListeningToSelectionChange(){if(this.selectionChangeDeadline=Date.now()+_y,this.isListening)return;this.isListening=!0;const t=()=>{this.isListening=!1,Date.now()<=this.selectionChangeDeadline&&this.handleSelectionChange()};document.addEventListener("selectionchange",t,{once:!0})}handleSelectionChange(){const t=document.getSelection();if(!t)return;const r=t.getRangeAt(0);if(r.collapsed!==!0||r.startOffset!==0)return;const s=this.quill.scroll.find(r.startContainer);if(!(s instanceof _t)||!s.uiNode)return;const o=document.createRange();o.setStartAfter(s.uiNode),o.setEndAfter(s.uiNode),t.removeAllRanges(),t.addRange(o)}}le.register({"blots/block":ht,"blots/block/embed":Bt,"blots/break":qt,"blots/container":_n,"blots/cursor":ar,"blots/embed":na,"blots/inline":nn,"blots/scroll":ur,"blots/text":zt,"modules/clipboard":kc,"modules/history":Pc,"modules/keyboard":Ds,"modules/uploader":Mc,"modules/input":jy,"modules/uiNode":zy});class Hy extends $t{add(e,t){let r=0;if(t==="+1"||t==="-1"){const s=this.value(e)||0;r=t==="+1"?s+1:s-1}else typeof t=="number"&&(r=t);return r===0?(this.remove(e),!0):super.add(e,r.toString())}canAdd(e,t){return super.canAdd(e,t)||super.canAdd(e,parseInt(t,10))}value(e){return parseInt(super.value(e),10)||void 0}}const Gy=new Hy("indent","ql-indent",{scope:Ne.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});class ma extends ht{}Ee(ma,"blotName","blockquote"),Ee(ma,"tagName","blockquote");class ga extends ht{static formats(e){return this.tagName.indexOf(e.tagName)+1}}Ee(ga,"blotName","header"),Ee(ga,"tagName",["H1","H2","H3","H4","H5","H6"]);class Vr extends _n{}Vr.blotName="list-container",Vr.tagName="OL";class $r extends ht{static create(e){const t=super.create();return t.setAttribute("data-list",e),t}static formats(e){return e.getAttribute("data-list")||void 0}static register(){le.register(Vr)}constructor(e,t){super(e,t);const r=t.ownerDocument.createElement("span"),s=o=>{if(!e.isEnabled())return;const a=this.statics.formats(t,e);a==="checked"?(this.format("list","unchecked"),o.preventDefault()):a==="unchecked"&&(this.format("list","checked"),o.preventDefault())};r.addEventListener("mousedown",s),r.addEventListener("touchstart",s),this.attachUI(r)}format(e,t){e===this.statics.blotName&&t?this.domNode.setAttribute("data-list",t):super.format(e,t)}}$r.blotName="list",$r.tagName="LI",Vr.allowedChildren=[$r],$r.requiredContainer=Vr;class _r extends nn{static create(){return super.create()}static formats(){return!0}optimize(e){super.optimize(e),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}Ee(_r,"blotName","bold"),Ee(_r,"tagName",["STRONG","B"]);class va extends _r{}Ee(va,"blotName","italic"),Ee(va,"tagName",["EM","I"]);class On extends nn{static create(e){const t=super.create(e);return t.setAttribute("href",this.sanitize(e)),t.setAttribute("rel","noopener noreferrer"),t.setAttribute("target","_blank"),t}static formats(e){return e.getAttribute("href")}static sanitize(e){return Dc(e,this.PROTOCOL_WHITELIST)?e:this.SANITIZED_URL}format(e,t){e!==this.statics.blotName||!t?super.format(e,t):this.domNode.setAttribute("href",this.constructor.sanitize(t))}}Ee(On,"blotName","link"),Ee(On,"tagName","A"),Ee(On,"SANITIZED_URL","about:blank"),Ee(On,"PROTOCOL_WHITELIST",["http","https","mailto","tel","sms"]);function Dc(n,e){const t=document.createElement("a");t.href=n;const r=t.href.slice(0,t.href.indexOf(":"));return e.indexOf(r)>-1}class ya extends nn{static create(e){return e==="super"?document.createElement("sup"):e==="sub"?document.createElement("sub"):super.create(e)}static formats(e){if(e.tagName==="SUB")return"sub";if(e.tagName==="SUP")return"super"}}Ee(ya,"blotName","script"),Ee(ya,"tagName",["SUB","SUP"]);class ba extends _r{}Ee(ba,"blotName","strike"),Ee(ba,"tagName",["S","STRIKE"]);class xa extends nn{}Ee(xa,"blotName","underline"),Ee(xa,"tagName","U");class Vs extends na{static create(e){if(window.katex==null)throw new Error("Formula module requires KaTeX.");const t=super.create(e);return typeof e=="string"&&(window.katex.render(e,t,{throwOnError:!1,errorColor:"#f00"}),t.setAttribute("data-value",e)),t}static value(e){return e.getAttribute("data-value")}html(){const{formula:e}=this.value();return`<span>${e}</span>`}}Ee(Vs,"blotName","formula"),Ee(Vs,"className","ql-formula"),Ee(Vs,"tagName","SPAN");const Uc=["alt","height","width"];class Ea extends Rt{static create(e){const t=super.create(e);return typeof e=="string"&&t.setAttribute("src",this.sanitize(e)),t}static formats(e){return Uc.reduce((t,r)=>(e.hasAttribute(r)&&(t[r]=e.getAttribute(r)),t),{})}static match(e){return/\.(jpe?g|gif|png)$/.test(e)||/^data:image\/.+;base64/.test(e)}static sanitize(e){return Dc(e,["http","https","data"])?e:"//:0"}static value(e){return e.getAttribute("src")}format(e,t){Uc.indexOf(e)>-1?t?this.domNode.setAttribute(e,t):this.domNode.removeAttribute(e):super.format(e,t)}}Ee(Ea,"blotName","image"),Ee(Ea,"tagName","IMG");const jc=["height","width"];class $s extends Bt{static create(e){const t=super.create(e);return t.setAttribute("frameborder","0"),t.setAttribute("allowfullscreen","true"),t.setAttribute("src",this.sanitize(e)),t}static formats(e){return jc.reduce((t,r)=>(e.hasAttribute(r)&&(t[r]=e.getAttribute(r)),t),{})}static sanitize(e){return On.sanitize(e)}static value(e){return e.getAttribute("src")}format(e,t){jc.indexOf(e)>-1?t?this.domNode.setAttribute(e,t):this.domNode.removeAttribute(e):super.format(e,t)}html(){const{video:e}=this.value();return`<a href="${e}">${e}</a>`}}Ee($s,"blotName","video"),Ee($s,"className","ql-video"),Ee($s,"tagName","IFRAME");const qr=new $t("code-token","hljs",{scope:Ne.INLINE});class pn extends nn{static formats(e,t){for(;e!=null&&e!==t.domNode;){if(e.classList&&e.classList.contains(yt.className))return super.formats(e,t);e=e.parentNode}}constructor(e,t,r){super(e,t,r),qr.add(this.domNode,r)}format(e,t){e!==pn.blotName?super.format(e,t):t?qr.add(this.domNode,t):(qr.remove(this.domNode),this.domNode.classList.remove(this.statics.className))}optimize(){super.optimize(...arguments),qr.value(this.domNode)||this.unwrap()}}pn.blotName="code-token",pn.className="ql-token";class Ft extends yt{static create(e){const t=super.create(e);return typeof e=="string"&&t.setAttribute("data-language",e),t}static formats(e){return e.getAttribute("data-language")||"plain"}static register(){}format(e,t){e===this.statics.blotName&&t?this.domNode.setAttribute("data-language",t):super.format(e,t)}replaceWith(e,t){return this.formatAt(0,this.length(),pn.blotName,!1),super.replaceWith(e,t)}}class zr extends qn{attach(){super.attach(),this.forceNext=!1,this.scroll.emitMount(this)}format(e,t){e===Ft.blotName&&(this.forceNext=!0,this.children.forEach(r=>{r.format(e,t)}))}formatAt(e,t,r,s){r===Ft.blotName&&(this.forceNext=!0),super.formatAt(e,t,r,s)}highlight(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(this.children.head==null)return;const s=`${Array.from(this.domNode.childNodes).filter(a=>a!==this.uiNode).map(a=>a.textContent).join(`
54
+ `);r=r.firstChild}}}return e}function bb(n,e,t){var l;const r={},s=n.style||{};return s.fontStyle==="italic"&&(r.italic=!0),s.textDecoration==="underline"&&(r.underline=!0),s.textDecoration==="line-through"&&(r.strike=!0),((l=s.fontWeight)!=null&&l.startsWith("bold")||parseInt(s.fontWeight,10)>=700)&&(r.bold=!0),e=Object.entries(r).reduce((o,c)=>{let[i,u]=c;return zn(o,i,u,t)},e),parseFloat(s.textIndent||0)>0?new Te().insert(" ").concat(e):e}function xb(n,e,t){var s,l;const r=((s=n.parentElement)==null?void 0:s.tagName)==="TABLE"?n.parentElement:(l=n.parentElement)==null?void 0:l.parentElement;if(r!=null){const c=Array.from(r.querySelectorAll("tr")).indexOf(n)+1;return zn(e,"table",c,t)}return e}function Eb(n,e,t){var s;let r=n.data;if(((s=n.parentElement)==null?void 0:s.tagName)==="O:P")return e.insert(r.trim());if(!Lc(n)){if(r.trim().length===0&&r.includes(`
55
+ `)&&!db(n,t))return e;r=r.replace(/[^\S\u00a0]/g," "),r=r.replace(/ {2,}/g," "),(n.previousSibling==null&&n.parentElement!=null&&Nn(n.parentElement,t)||n.previousSibling instanceof Element&&Nn(n.previousSibling,t))&&(r=r.replace(/^ /,"")),(n.nextSibling==null&&n.parentElement!=null&&Nn(n.parentElement,t)||n.nextSibling instanceof Element&&Nn(n.nextSibling,t))&&(r=r.replace(/ $/,"")),r=r.replaceAll(" "," ")}return e.insert(r)}class Pc extends Ht{constructor(t,r){super(t,r);Ee(this,"lastRecorded",0);Ee(this,"ignoreChange",!1);Ee(this,"stack",{undo:[],redo:[]});Ee(this,"currentRange",null);this.quill.on(le.events.EDITOR_CHANGE,(s,l,o,c)=>{s===le.events.SELECTION_CHANGE?l&&c!==le.sources.SILENT&&(this.currentRange=l):s===le.events.TEXT_CHANGE&&(this.ignoreChange||(!this.options.userOnly||c===le.sources.USER?this.record(l,o):this.transform(l)),this.currentRange=vo(this.currentRange,l))}),this.quill.keyboard.addBinding({key:"z",shortKey:!0},this.undo.bind(this)),this.quill.keyboard.addBinding({key:["z","Z"],shortKey:!0,shiftKey:!0},this.redo.bind(this)),/Win/i.test(navigator.platform)&&this.quill.keyboard.addBinding({key:"y",shortKey:!0},this.redo.bind(this)),this.quill.root.addEventListener("beforeinput",s=>{s.inputType==="historyUndo"?(this.undo(),s.preventDefault()):s.inputType==="historyRedo"&&(this.redo(),s.preventDefault())})}change(t,r){if(this.stack[t].length===0)return;const s=this.stack[t].pop();if(!s)return;const l=this.quill.getContents(),o=s.delta.invert(l);this.stack[r].push({delta:o,range:vo(s.range,o)}),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(s.delta,le.sources.USER),this.ignoreChange=!1,this.restoreSelection(s)}clear(){this.stack={undo:[],redo:[]}}cutoff(){this.lastRecorded=0}record(t,r){if(t.ops.length===0)return;this.stack.redo=[];let s=t.invert(r),l=this.currentRange;const o=Date.now();if(this.lastRecorded+this.options.delay>o&&this.stack.undo.length>0){const c=this.stack.undo.pop();c&&(s=s.compose(c.delta),l=c.range)}else this.lastRecorded=o;s.length()!==0&&(this.stack.undo.push({delta:s,range:l}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift())}redo(){this.change("redo","undo")}transform(t){Fc(this.stack.undo,t),Fc(this.stack.redo,t)}undo(){this.change("undo","redo")}restoreSelection(t){if(t.range)this.quill.setSelection(t.range,le.sources.USER);else{const r=Ab(this.quill.scroll,t.delta);this.quill.setSelection(r,le.sources.USER)}}}Ee(Pc,"DEFAULTS",{delay:1e3,maxStack:100,userOnly:!1});function Fc(n,e){let t=e;for(let r=n.length-1;r>=0;r-=1){const s=n[r];n[r]={delta:t.transform(s.delta,!0),range:s.range&&vo(s.range,t)},t=s.delta.transform(t),n[r].delta.length()===0&&n.splice(r,1)}}function wb(n,e){const t=e.ops[e.ops.length-1];return t==null?!1:t.insert!=null?typeof t.insert=="string"&&t.insert.endsWith(`
56
+ `):t.attributes!=null?Object.keys(t.attributes).some(r=>n.query(r,Ne.BLOCK)!=null):!1}function Ab(n,e){const t=e.reduce((s,l)=>s+(l.delete||0),0);let r=e.length()-t;return wb(n,e)&&(r-=1),r}function vo(n,e){if(!n)return n;const t=e.transformPosition(n.index),r=e.transformPosition(n.index+n.length);return{index:t,length:r-t}}class Mc extends Ht{constructor(e,t){super(e,t),e.root.addEventListener("drop",r=>{var o;r.preventDefault();let s=null;if(document.caretRangeFromPoint)s=document.caretRangeFromPoint(r.clientX,r.clientY);else if(document.caretPositionFromPoint){const c=document.caretPositionFromPoint(r.clientX,r.clientY);s=document.createRange(),s.setStart(c.offsetNode,c.offset),s.setEnd(c.offsetNode,c.offset)}const l=s&&e.selection.normalizeNative(s);if(l){const c=e.selection.normalizedToRange(l);(o=r.dataTransfer)!=null&&o.files&&this.upload(c,r.dataTransfer.files)}})}upload(e,t){const r=[];Array.from(t).forEach(s=>{var l;s&&((l=this.options.mimetypes)!=null&&l.includes(s.type))&&r.push(s)}),r.length>0&&this.options.handler.call(this,e,r)}}Mc.DEFAULTS={mimetypes:["image/png","image/jpeg"],handler(n,e){if(!this.quill.scroll.query("image"))return;const t=e.map(r=>new Promise(s=>{const l=new FileReader;l.onload=()=>{s(l.result)},l.readAsDataURL(r)}));Promise.all(t).then(r=>{const s=r.reduce((l,o)=>l.insert({image:o}),new Te().retain(n.index).delete(n.length));this.quill.updateContents(s,Se.sources.USER),this.quill.setSelection(n.index+r.length,Se.sources.SILENT)})}};const Sb=["insertText","insertReplacementText"];class Tb extends Ht{constructor(e,t){super(e,t),e.root.addEventListener("beforeinput",r=>{this.handleBeforeInput(r)}),/Android/i.test(navigator.userAgent)||e.on(le.events.COMPOSITION_BEFORE_START,()=>{this.handleCompositionStart()})}deleteRange(e){po({range:e,quill:this.quill})}replaceText(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";if(e.length===0)return!1;if(t){const r=this.quill.getFormat(e.index,1);this.deleteRange(e),this.quill.updateContents(new Te().retain(e.index).insert(t,r),le.sources.USER)}else this.deleteRange(e);return this.quill.setSelection(e.index+t.length,0,le.sources.SILENT),!0}handleBeforeInput(e){if(this.quill.composition.isComposing||e.defaultPrevented||!Sb.includes(e.inputType))return;const t=e.getTargetRanges?e.getTargetRanges()[0]:null;if(!t||t.collapsed===!0)return;const r=Nb(e);if(r==null)return;const s=this.quill.selection.normalizeNative(t),l=s?this.quill.selection.normalizedToRange(s):null;l&&this.replaceText(l,r)&&e.preventDefault()}handleCompositionStart(){const e=this.quill.getSelection();e&&this.replaceText(e)}}function Nb(n){var e;return typeof n.data=="string"?n.data:(e=n.dataTransfer)!=null&&e.types.includes("text/plain")?n.dataTransfer.getData("text/plain"):null}const Ob=/Mac/i.test(navigator.platform),Cb=100,kb=n=>!!(n.key==="ArrowLeft"||n.key==="ArrowRight"||n.key==="ArrowUp"||n.key==="ArrowDown"||n.key==="Home"||Ob&&n.key==="a"&&n.ctrlKey===!0);class Rb extends Ht{constructor(t,r){super(t,r);Ee(this,"isListening",!1);Ee(this,"selectionChangeDeadline",0);this.handleArrowKeys(),this.handleNavigationShortcuts()}handleArrowKeys(){this.quill.keyboard.addBinding({key:["ArrowLeft","ArrowRight"],offset:0,shiftKey:null,handler(t,r){let{line:s,event:l}=r;if(!(s instanceof _t)||!s.uiNode)return!0;const o=getComputedStyle(s.domNode).direction==="rtl";return o&&l.key!=="ArrowRight"||!o&&l.key!=="ArrowLeft"?!0:(this.quill.setSelection(t.index-1,t.length+(l.shiftKey?1:0),le.sources.USER),!1)}})}handleNavigationShortcuts(){this.quill.root.addEventListener("keydown",t=>{!t.defaultPrevented&&kb(t)&&this.ensureListeningToSelectionChange()})}ensureListeningToSelectionChange(){if(this.selectionChangeDeadline=Date.now()+Cb,this.isListening)return;this.isListening=!0;const t=()=>{this.isListening=!1,Date.now()<=this.selectionChangeDeadline&&this.handleSelectionChange()};document.addEventListener("selectionchange",t,{once:!0})}handleSelectionChange(){const t=document.getSelection();if(!t)return;const r=t.getRangeAt(0);if(r.collapsed!==!0||r.startOffset!==0)return;const s=this.quill.scroll.find(r.startContainer);if(!(s instanceof _t)||!s.uiNode)return;const l=document.createRange();l.setStartAfter(s.uiNode),l.setEndAfter(s.uiNode),t.removeAllRanges(),t.addRange(l)}}le.register({"blots/block":ht,"blots/block/embed":Bt,"blots/break":qt,"blots/container":_n,"blots/cursor":or,"blots/embed":so,"blots/inline":rn,"blots/scroll":ur,"blots/text":zt,"modules/clipboard":Ic,"modules/history":Pc,"modules/keyboard":Vs,"modules/uploader":Mc,"modules/input":Tb,"modules/uiNode":Rb});class Ib extends $t{add(e,t){let r=0;if(t==="+1"||t==="-1"){const s=this.value(e)||0;r=t==="+1"?s+1:s-1}else typeof t=="number"&&(r=t);return r===0?(this.remove(e),!0):super.add(e,r.toString())}canAdd(e,t){return super.canAdd(e,t)||super.canAdd(e,parseInt(t,10))}value(e){return parseInt(super.value(e),10)||void 0}}const Lb=new Ib("indent","ql-indent",{scope:Ne.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});class yo extends ht{}Ee(yo,"blotName","blockquote"),Ee(yo,"tagName","blockquote");class bo extends ht{static formats(e){return this.tagName.indexOf(e.tagName)+1}}Ee(bo,"blotName","header"),Ee(bo,"tagName",["H1","H2","H3","H4","H5","H6"]);class $r extends _n{}$r.blotName="list-container",$r.tagName="OL";class _r extends ht{static create(e){const t=super.create();return t.setAttribute("data-list",e),t}static formats(e){return e.getAttribute("data-list")||void 0}static register(){le.register($r)}constructor(e,t){super(e,t);const r=t.ownerDocument.createElement("span"),s=l=>{if(!e.isEnabled())return;const o=this.statics.formats(t,e);o==="checked"?(this.format("list","unchecked"),l.preventDefault()):o==="unchecked"&&(this.format("list","checked"),l.preventDefault())};r.addEventListener("mousedown",s),r.addEventListener("touchstart",s),this.attachUI(r)}format(e,t){e===this.statics.blotName&&t?this.domNode.setAttribute("data-list",t):super.format(e,t)}}_r.blotName="list",_r.tagName="LI",$r.allowedChildren=[_r],_r.requiredContainer=$r;class qr extends rn{static create(){return super.create()}static formats(){return!0}optimize(e){super.optimize(e),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}Ee(qr,"blotName","bold"),Ee(qr,"tagName",["STRONG","B"]);class xo extends qr{}Ee(xo,"blotName","italic"),Ee(xo,"tagName",["EM","I"]);class On extends rn{static create(e){const t=super.create(e);return t.setAttribute("href",this.sanitize(e)),t.setAttribute("rel","noopener noreferrer"),t.setAttribute("target","_blank"),t}static formats(e){return e.getAttribute("href")}static sanitize(e){return Dc(e,this.PROTOCOL_WHITELIST)?e:this.SANITIZED_URL}format(e,t){e!==this.statics.blotName||!t?super.format(e,t):this.domNode.setAttribute("href",this.constructor.sanitize(t))}}Ee(On,"blotName","link"),Ee(On,"tagName","A"),Ee(On,"SANITIZED_URL","about:blank"),Ee(On,"PROTOCOL_WHITELIST",["http","https","mailto","tel","sms"]);function Dc(n,e){const t=document.createElement("a");t.href=n;const r=t.href.slice(0,t.href.indexOf(":"));return e.indexOf(r)>-1}class Eo extends rn{static create(e){return e==="super"?document.createElement("sup"):e==="sub"?document.createElement("sub"):super.create(e)}static formats(e){if(e.tagName==="SUB")return"sub";if(e.tagName==="SUP")return"super"}}Ee(Eo,"blotName","script"),Ee(Eo,"tagName",["SUB","SUP"]);class wo extends qr{}Ee(wo,"blotName","strike"),Ee(wo,"tagName",["S","STRIKE"]);class Ao extends rn{}Ee(Ao,"blotName","underline"),Ee(Ao,"tagName","U");class qs extends so{static create(e){if(window.katex==null)throw new Error("Formula module requires KaTeX.");const t=super.create(e);return typeof e=="string"&&(window.katex.render(e,t,{throwOnError:!1,errorColor:"#f00"}),t.setAttribute("data-value",e)),t}static value(e){return e.getAttribute("data-value")}html(){const{formula:e}=this.value();return`<span>${e}</span>`}}Ee(qs,"blotName","formula"),Ee(qs,"className","ql-formula"),Ee(qs,"tagName","SPAN");const Uc=["alt","height","width"];class So extends kt{static create(e){const t=super.create(e);return typeof e=="string"&&t.setAttribute("src",this.sanitize(e)),t}static formats(e){return Uc.reduce((t,r)=>(e.hasAttribute(r)&&(t[r]=e.getAttribute(r)),t),{})}static match(e){return/\.(jpe?g|gif|png)$/.test(e)||/^data:image\/.+;base64/.test(e)}static sanitize(e){return Dc(e,["http","https","data"])?e:"//:0"}static value(e){return e.getAttribute("src")}format(e,t){Uc.indexOf(e)>-1?t?this.domNode.setAttribute(e,t):this.domNode.removeAttribute(e):super.format(e,t)}}Ee(So,"blotName","image"),Ee(So,"tagName","IMG");const jc=["height","width"];class zs extends Bt{static create(e){const t=super.create(e);return t.setAttribute("frameborder","0"),t.setAttribute("allowfullscreen","true"),t.setAttribute("src",this.sanitize(e)),t}static formats(e){return jc.reduce((t,r)=>(e.hasAttribute(r)&&(t[r]=e.getAttribute(r)),t),{})}static sanitize(e){return On.sanitize(e)}static value(e){return e.getAttribute("src")}format(e,t){jc.indexOf(e)>-1?t?this.domNode.setAttribute(e,t):this.domNode.removeAttribute(e):super.format(e,t)}html(){const{video:e}=this.value();return`<a href="${e}">${e}</a>`}}Ee(zs,"blotName","video"),Ee(zs,"className","ql-video"),Ee(zs,"tagName","IFRAME");const zr=new $t("code-token","hljs",{scope:Ne.INLINE});class pn extends rn{static formats(e,t){for(;e!=null&&e!==t.domNode;){if(e.classList&&e.classList.contains(yt.className))return super.formats(e,t);e=e.parentNode}}constructor(e,t,r){super(e,t,r),zr.add(this.domNode,r)}format(e,t){e!==pn.blotName?super.format(e,t):t?zr.add(this.domNode,t):(zr.remove(this.domNode),this.domNode.classList.remove(this.statics.className))}optimize(){super.optimize(...arguments),zr.value(this.domNode)||this.unwrap()}}pn.blotName="code-token",pn.className="ql-token";class Ft extends yt{static create(e){const t=super.create(e);return typeof e=="string"&&t.setAttribute("data-language",e),t}static formats(e){return e.getAttribute("data-language")||"plain"}static register(){}format(e,t){e===this.statics.blotName&&t?this.domNode.setAttribute("data-language",t):super.format(e,t)}replaceWith(e,t){return this.formatAt(0,this.length(),pn.blotName,!1),super.replaceWith(e,t)}}class Hr extends qn{attach(){super.attach(),this.forceNext=!1,this.scroll.emitMount(this)}format(e,t){e===Ft.blotName&&(this.forceNext=!0,this.children.forEach(r=>{r.format(e,t)}))}formatAt(e,t,r,s){r===Ft.blotName&&(this.forceNext=!0),super.formatAt(e,t,r,s)}highlight(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(this.children.head==null)return;const s=`${Array.from(this.domNode.childNodes).filter(o=>o!==this.uiNode).map(o=>o.textContent).join(`
57
57
  `)}
58
- `,o=Ft.formats(this.children.head.domNode);if(t||this.forceNext||this.cachedText!==s){if(s.trim().length>0||this.cachedText==null){const a=this.children.reduce((i,u)=>i.concat(ic(u,!1)),new Te),c=e(s,o);a.diff(c).reduce((i,u)=>{let{retain:d,attributes:h}=u;return d?(h&&Object.keys(h).forEach(f=>{[Ft.blotName,pn.blotName].includes(f)&&this.formatAt(i,d,f,h[f])}),i+d):i},0)}this.cachedText=s,this.forceNext=!1}}html(e,t){const[r]=this.children.find(e);return`<pre data-language="${r?Ft.formats(r.domNode):"plain"}">
59
- ${Bs(this.code(e,t))}
60
- </pre>`}optimize(e){if(super.optimize(e),this.parent!=null&&this.children.head!=null&&this.uiNode!=null){const t=Ft.formats(this.children.head.domNode);t!==this.uiNode.value&&(this.uiNode.value=t)}}}zr.allowedChildren=[Ft],Ft.requiredContainer=zr,Ft.allowedChildren=[pn,ar,zt,qt];const Wy=(n,e,t)=>{if(typeof n.versionString=="string"){const r=n.versionString.split(".")[0];if(parseInt(r,10)>=11)return n.highlight(t,{language:e}).value}return n.highlight(e,t).value};class Vc extends Ht{static register(){le.register(pn,!0),le.register(Ft,!0),le.register(zr,!0)}constructor(e,t){if(super(e,t),this.options.hljs==null)throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");this.languages=this.options.languages.reduce((r,s)=>{let{key:o}=s;return r[o]=!0,r},{}),this.highlightBlot=this.highlightBlot.bind(this),this.initListener(),this.initTimer()}initListener(){this.quill.on(le.events.SCROLL_BLOT_MOUNT,e=>{if(!(e instanceof zr))return;const t=this.quill.root.ownerDocument.createElement("select");this.options.languages.forEach(r=>{let{key:s,label:o}=r;const a=t.ownerDocument.createElement("option");a.textContent=o,a.setAttribute("value",s),t.appendChild(a)}),t.addEventListener("change",()=>{e.format(Ft.blotName,t.value),this.quill.root.focus(),this.highlight(e,!0)}),e.uiNode==null&&(e.attachUI(t),e.children.head&&(t.value=Ft.formats(e.children.head.domNode)))})}initTimer(){let e=null;this.quill.on(le.events.SCROLL_OPTIMIZE,()=>{e&&clearTimeout(e),e=setTimeout(()=>{this.highlight(),e=null},this.options.interval)})}highlight(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(this.quill.selection.composing)return;this.quill.update(le.sources.USER);const r=this.quill.getSelection();(e==null?this.quill.scroll.descendants(zr):[e]).forEach(o=>{o.highlight(this.highlightBlot,t)}),this.quill.update(le.sources.SILENT),r!=null&&this.quill.setSelection(r,le.sources.SILENT)}highlightBlot(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"plain";if(t=this.languages[t]?t:"plain",t==="plain")return Bs(e).split(`
61
- `).reduce((s,o,a)=>(a!==0&&s.insert(`
62
- `,{[yt.blotName]:t}),s.insert(o)),new Te);const r=this.quill.root.ownerDocument.createElement("div");return r.classList.add(yt.className),r.innerHTML=Wy(this.options.hljs,t,e),fa(this.quill.scroll,r,[(s,o)=>{const a=qr.value(s);return a?o.compose(new Te().retain(o.length(),{[pn.blotName]:a})):o}],[(s,o)=>s.data.split(`
63
- `).reduce((a,c,i)=>(i!==0&&a.insert(`
64
- `,{[yt.blotName]:t}),a.insert(c)),o)],new WeakMap)}}Vc.DEFAULTS={hljs:window.hljs,interval:1e3,languages:[{key:"plain",label:"Plain"},{key:"bash",label:"Bash"},{key:"cpp",label:"C++"},{key:"cs",label:"C#"},{key:"css",label:"CSS"},{key:"diff",label:"Diff"},{key:"xml",label:"HTML/XML"},{key:"java",label:"Java"},{key:"javascript",label:"JavaScript"},{key:"markdown",label:"Markdown"},{key:"php",label:"PHP"},{key:"python",label:"Python"},{key:"ruby",label:"Ruby"},{key:"sql",label:"SQL"}]};const Yr=class Yr extends ht{static create(e){const t=super.create();return e?t.setAttribute("data-row",e):t.setAttribute("data-row",Aa()),t}static formats(e){if(e.hasAttribute("data-row"))return e.getAttribute("data-row")}cellOffset(){return this.parent?this.parent.children.indexOf(this):-1}format(e,t){e===Yr.blotName&&t?this.domNode.setAttribute("data-row",t):super.format(e,t)}row(){return this.parent}rowOffset(){return this.row()?this.row().rowOffset():-1}table(){return this.row()&&this.row().table()}};Ee(Yr,"blotName","table"),Ee(Yr,"tagName","TD");let Wt=Yr;class mn extends _n{checkMerge(){if(super.checkMerge()&&this.next.children.head!=null){const e=this.children.head.formats(),t=this.children.tail.formats(),r=this.next.children.head.formats(),s=this.next.children.tail.formats();return e.table===t.table&&e.table===r.table&&e.table===s.table}return!1}optimize(e){super.optimize(e),this.children.forEach(t=>{if(t.next==null)return;const r=t.formats(),s=t.next.formats();if(r.table!==s.table){const o=this.splitAfter(t);o&&o.optimize(),this.prev&&this.prev.optimize()}})}rowOffset(){return this.parent?this.parent.children.indexOf(this):-1}table(){return this.parent&&this.parent.parent}}Ee(mn,"blotName","table-row"),Ee(mn,"tagName","TR");class rn extends _n{}Ee(rn,"blotName","table-body"),Ee(rn,"tagName","TBODY");class dr extends _n{balanceCells(){const e=this.descendants(mn),t=e.reduce((r,s)=>Math.max(s.children.length,r),0);e.forEach(r=>{new Array(t-r.children.length).fill(0).forEach(()=>{let s;r.children.head!=null&&(s=Wt.formats(r.children.head.domNode));const o=this.scroll.create(Wt.blotName,s);r.appendChild(o),o.optimize()})})}cells(e){return this.rows().map(t=>t.children.at(e))}deleteColumn(e){const[t]=this.descendant(rn);t==null||t.children.head==null||t.children.forEach(r=>{const s=r.children.at(e);s!=null&&s.remove()})}insertColumn(e){const[t]=this.descendant(rn);t==null||t.children.head==null||t.children.forEach(r=>{const s=r.children.at(e),o=Wt.formats(r.children.head.domNode),a=this.scroll.create(Wt.blotName,o);r.insertBefore(a,s)})}insertRow(e){const[t]=this.descendant(rn);if(t==null||t.children.head==null)return;const r=Aa(),s=this.scroll.create(mn.blotName);t.children.head.children.forEach(()=>{const a=this.scroll.create(Wt.blotName,r);s.appendChild(a)});const o=t.children.at(e);t.insertBefore(s,o)}rows(){const e=this.children.head;return e==null?[]:e.children.map(t=>t)}}Ee(dr,"blotName","table-container"),Ee(dr,"tagName","TABLE"),dr.allowedChildren=[rn],rn.requiredContainer=dr,rn.allowedChildren=[mn],mn.requiredContainer=rn,mn.allowedChildren=[Wt],Wt.requiredContainer=mn;function Aa(){return`row-${Math.random().toString(36).slice(2,6)}`}class Ky extends Ht{static register(){le.register(Wt),le.register(mn),le.register(rn),le.register(dr)}constructor(){super(...arguments),this.listenBalanceCells()}balanceTables(){this.quill.scroll.descendants(dr).forEach(e=>{e.balanceCells()})}deleteColumn(){const[e,,t]=this.getTable();t!=null&&(e.deleteColumn(t.cellOffset()),this.quill.update(le.sources.USER))}deleteRow(){const[,e]=this.getTable();e!=null&&(e.remove(),this.quill.update(le.sources.USER))}deleteTable(){const[e]=this.getTable();if(e==null)return;const t=e.offset();e.remove(),this.quill.update(le.sources.USER),this.quill.setSelection(t,le.sources.SILENT)}getTable(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.quill.getSelection();if(e==null)return[null,null,null,-1];const[t,r]=this.quill.getLine(e.index);if(t==null||t.statics.blotName!==Wt.blotName)return[null,null,null,-1];const s=t.parent;return[s.parent.parent,s,t,r]}insertColumn(e){const t=this.quill.getSelection();if(!t)return;const[r,s,o]=this.getTable(t);if(o==null)return;const a=o.cellOffset();r.insertColumn(a+e),this.quill.update(le.sources.USER);let c=s.rowOffset();e===0&&(c+=1),this.quill.setSelection(t.index+c,t.length,le.sources.SILENT)}insertColumnLeft(){this.insertColumn(0)}insertColumnRight(){this.insertColumn(1)}insertRow(e){const t=this.quill.getSelection();if(!t)return;const[r,s,o]=this.getTable(t);if(o==null)return;const a=s.rowOffset();r.insertRow(a+e),this.quill.update(le.sources.USER),e>0?this.quill.setSelection(t,le.sources.SILENT):this.quill.setSelection(t.index+s.children.length,t.length,le.sources.SILENT)}insertRowAbove(){this.insertRow(0)}insertRowBelow(){this.insertRow(1)}insertTable(e,t){const r=this.quill.getSelection();if(r==null)return;const s=new Array(e).fill(0).reduce(o=>{const a=new Array(t).fill(`
65
- `).join("");return o.insert(a,{table:Aa()})},new Te().retain(r.index));this.quill.updateContents(s,le.sources.USER),this.quill.setSelection(r.index,le.sources.SILENT),this.balanceTables()}listenBalanceCells(){this.quill.on(le.events.SCROLL_OPTIMIZE,e=>{e.some(t=>["TD","TR","TBODY","TABLE"].includes(t.target.tagName)?(this.quill.once(le.events.TEXT_CHANGE,(r,s,o)=>{o===le.sources.USER&&this.balanceTables()}),!0):!1)})}}const $c=fn("quill:toolbar");class wa extends Ht{constructor(e,t){var r,s;if(super(e,t),Array.isArray(this.options.container)){const o=document.createElement("div");o.setAttribute("role","toolbar"),Xy(o,this.options.container),(s=(r=e.container)==null?void 0:r.parentNode)==null||s.insertBefore(o,e.container),this.container=o}else typeof this.options.container=="string"?this.container=document.querySelector(this.options.container):this.container=this.options.container;if(!(this.container instanceof HTMLElement)){$c.error("Container required for toolbar",this.options);return}this.container.classList.add("ql-toolbar"),this.controls=[],this.handlers={},this.options.handlers&&Object.keys(this.options.handlers).forEach(o=>{var c;const a=(c=this.options.handlers)==null?void 0:c[o];a&&this.addHandler(o,a)}),Array.from(this.container.querySelectorAll("button, select")).forEach(o=>{this.attach(o)}),this.quill.on(le.events.EDITOR_CHANGE,()=>{const[o]=this.quill.selection.getRange();this.update(o)})}addHandler(e,t){this.handlers[e]=t}attach(e){let t=Array.from(e.classList).find(s=>s.indexOf("ql-")===0);if(!t)return;if(t=t.slice(3),e.tagName==="BUTTON"&&e.setAttribute("type","button"),this.handlers[t]==null&&this.quill.scroll.query(t)==null){$c.warn("ignoring attaching to nonexistent format",t,e);return}const r=e.tagName==="SELECT"?"change":"click";e.addEventListener(r,s=>{let o;if(e.tagName==="SELECT"){if(e.selectedIndex<0)return;const c=e.options[e.selectedIndex];c.hasAttribute("selected")?o=!1:o=c.value||!1}else e.classList.contains("ql-active")?o=!1:o=e.value||!e.hasAttribute("value"),s.preventDefault();this.quill.focus();const[a]=this.quill.selection.getRange();if(this.handlers[t]!=null)this.handlers[t].call(this,o);else if(this.quill.scroll.query(t).prototype instanceof Rt){if(o=prompt(`Enter ${t}`),!o)return;this.quill.updateContents(new Te().retain(a.index).delete(a.length).insert({[t]:o}),le.sources.USER)}else this.quill.format(t,o,le.sources.USER);this.update(a)}),this.controls.push([t,e])}update(e){const t=e==null?{}:this.quill.getFormat(e);this.controls.forEach(r=>{const[s,o]=r;if(o.tagName==="SELECT"){let a=null;if(e==null)a=null;else if(t[s]==null)a=o.querySelector("option[selected]");else if(!Array.isArray(t[s])){let c=t[s];typeof c=="string"&&(c=c.replace(/"/g,'\\"')),a=o.querySelector(`option[value="${c}"]`)}a==null?(o.value="",o.selectedIndex=-1):a.selected=!0}else if(e==null)o.classList.remove("ql-active"),o.setAttribute("aria-pressed","false");else if(o.hasAttribute("value")){const a=t[s],c=a===o.getAttribute("value")||a!=null&&a.toString()===o.getAttribute("value")||a==null&&!o.getAttribute("value");o.classList.toggle("ql-active",c),o.setAttribute("aria-pressed",c.toString())}else{const a=t[s]!=null;o.classList.toggle("ql-active",a),o.setAttribute("aria-pressed",a.toString())}})}}wa.DEFAULTS={};function _c(n,e,t){const r=document.createElement("button");r.setAttribute("type","button"),r.classList.add(`ql-${e}`),r.setAttribute("aria-pressed","false"),t!=null?(r.value=t,r.setAttribute("aria-label",`${e}: ${t}`)):r.setAttribute("aria-label",e),n.appendChild(r)}function Xy(n,e){Array.isArray(e[0])||(e=[e]),e.forEach(t=>{const r=document.createElement("span");r.classList.add("ql-formats"),t.forEach(s=>{if(typeof s=="string")_c(r,s);else{const o=Object.keys(s)[0],a=s[o];Array.isArray(a)?Yy(r,o,a):_c(r,o,a)}}),n.appendChild(r)})}function Yy(n,e,t){const r=document.createElement("select");r.classList.add(`ql-${e}`),t.forEach(s=>{const o=document.createElement("option");s!==!1?o.setAttribute("value",String(s)):o.setAttribute("selected","selected"),r.appendChild(o)}),n.appendChild(r)}wa.DEFAULTS={container:null,handlers:{clean(){const n=this.quill.getSelection();if(n!=null)if(n.length===0){const e=this.quill.getFormat();Object.keys(e).forEach(t=>{this.quill.scroll.query(t,Ne.INLINE)!=null&&this.quill.format(t,!1,le.sources.USER)})}else this.quill.removeFormat(n.index,n.length,le.sources.USER)},direction(n){const{align:e}=this.quill.getFormat();n==="rtl"&&e==null?this.quill.format("align","right",le.sources.USER):!n&&e==="right"&&this.quill.format("align",!1,le.sources.USER),this.quill.format("direction",n,le.sources.USER)},indent(n){const e=this.quill.getSelection(),t=this.quill.getFormat(e),r=parseInt(t.indent||0,10);if(n==="+1"||n==="-1"){let s=n==="+1"?1:-1;t.direction==="rtl"&&(s*=-1),this.quill.format("indent",r+s,le.sources.USER)}},link(n){n===!0&&(n=prompt("Enter link URL:")),this.quill.format("link",n,le.sources.USER)},list(n){const e=this.quill.getSelection(),t=this.quill.getFormat(e);n==="check"?t.list==="checked"||t.list==="unchecked"?this.quill.format("list",!1,le.sources.USER):this.quill.format("list","unchecked",le.sources.USER):this.quill.format("list",n,le.sources.USER)}}};const Zy='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="3" x2="15" y1="9" y2="9"/><line class="ql-stroke" x1="3" x2="13" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="9" y1="4" y2="4"/></svg>',Qy='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="14" x2="4" y1="14" y2="14"/><line class="ql-stroke" x1="12" x2="6" y1="4" y2="4"/></svg>',Jy='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="15" x2="5" y1="14" y2="14"/><line class="ql-stroke" x1="15" x2="9" y1="4" y2="4"/></svg>',eb='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="15" x2="3" y1="14" y2="14"/><line class="ql-stroke" x1="15" x2="3" y1="4" y2="4"/></svg>',tb='<svg viewbox="0 0 18 18"><g class="ql-fill ql-color-label"><polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"/><rect height="1" width="1" x="4" y="4"/><polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"/><rect height="1" width="1" x="2" y="6"/><rect height="1" width="1" x="3" y="5"/><rect height="1" width="1" x="4" y="7"/><polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"/><rect height="1" width="1" x="2" y="12"/><rect height="1" width="1" x="2" y="9"/><rect height="1" width="1" x="2" y="15"/><polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"/><rect height="1" width="1" x="3" y="8"/><path d="M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z"/><path d="M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z"/><path d="M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z"/><rect height="1" width="1" x="12" y="2"/><rect height="1" width="1" x="11" y="3"/><path d="M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z"/><rect height="1" width="1" x="2" y="3"/><rect height="1" width="1" x="6" y="2"/><rect height="1" width="1" x="3" y="2"/><rect height="1" width="1" x="5" y="3"/><rect height="1" width="1" x="9" y="2"/><rect height="1" width="1" x="15" y="14"/><polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"/><rect height="1" width="1" x="13" y="7"/><rect height="1" width="1" x="15" y="5"/><rect height="1" width="1" x="14" y="6"/><rect height="1" width="1" x="15" y="8"/><rect height="1" width="1" x="14" y="9"/><path d="M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z"/><rect height="1" width="1" x="14" y="3"/><polygon points="12 6.868 12 6 11.62 6 12 6.868"/><rect height="1" width="1" x="15" y="2"/><rect height="1" width="1" x="12" y="5"/><rect height="1" width="1" x="13" y="4"/><polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"/><rect height="1" width="1" x="9" y="14"/><rect height="1" width="1" x="8" y="15"/><path d="M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z"/><rect height="1" width="1" x="5" y="15"/><path d="M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z"/><rect height="1" width="1" x="11" y="15"/><path d="M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z"/><rect height="1" width="1" x="14" y="15"/><rect height="1" width="1" x="15" y="11"/></g><polyline class="ql-stroke" points="5.5 13 9 5 12.5 13"/><line class="ql-stroke" x1="11.63" x2="6.38" y1="11" y2="11"/></svg>',nb='<svg viewbox="0 0 18 18"><rect class="ql-fill ql-stroke" height="3" width="3" x="4" y="5"/><rect class="ql-fill ql-stroke" height="3" width="3" x="11" y="5"/><path class="ql-even ql-fill ql-stroke" d="M7,8c0,4.031-3,5-3,5"/><path class="ql-even ql-fill ql-stroke" d="M14,8c0,4.031-3,5-3,5"/></svg>',rb='<svg viewbox="0 0 18 18"><path class="ql-stroke" d="M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z"/><path class="ql-stroke" d="M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z"/></svg>',sb='<svg class="" viewbox="0 0 18 18"><line class="ql-stroke" x1="5" x2="13" y1="3" y2="3"/><line class="ql-stroke" x1="6" x2="9.35" y1="12" y2="3"/><line class="ql-stroke" x1="11" x2="15" y1="11" y2="15"/><line class="ql-stroke" x1="15" x2="11" y1="11" y2="15"/><rect class="ql-fill" height="1" rx="0.5" ry="0.5" width="7" x="2" y="14"/></svg>',qc='<svg viewbox="0 0 18 18"><polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"/><polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"/><line class="ql-stroke" x1="10" x2="8" y1="5" y2="13"/></svg>',Hr={align:{"":Zy,center:Qy,right:Jy,justify:eb},background:tb,blockquote:nb,bold:rb,clean:sb,code:qc,"code-block":qc,color:'<svg viewbox="0 0 18 18"><line class="ql-color-label ql-stroke ql-transparent" x1="3" x2="15" y1="15" y2="15"/><polyline class="ql-stroke" points="5.5 11 9 3 12.5 11"/><line class="ql-stroke" x1="11.63" x2="6.38" y1="9" y2="9"/></svg>',direction:{"":'<svg viewbox="0 0 18 18"><polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"/><line class="ql-stroke ql-fill" x1="15" x2="11" y1="4" y2="4"/><path class="ql-fill" d="M11,3a3,3,0,0,0,0,6h1V3H11Z"/><rect class="ql-fill" height="11" width="1" x="11" y="4"/><rect class="ql-fill" height="11" width="1" x="13" y="4"/></svg>',rtl:'<svg viewbox="0 0 18 18"><polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"/><line class="ql-stroke ql-fill" x1="9" x2="5" y1="4" y2="4"/><path class="ql-fill" d="M5,3A3,3,0,0,0,5,9H6V3H5Z"/><rect class="ql-fill" height="11" width="1" x="5" y="4"/><rect class="ql-fill" height="11" width="1" x="7" y="4"/></svg>'},formula:'<svg viewbox="0 0 18 18"><path class="ql-fill" d="M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z"/><rect class="ql-fill" height="1.6" rx="0.8" ry="0.8" width="5" x="5.15" y="6.2"/><path class="ql-fill" d="M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z"/></svg>',header:{1:'<svg viewBox="0 0 18 18"><path class="ql-fill" d="M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z"/></svg>',2:'<svg viewBox="0 0 18 18"><path class="ql-fill" d="M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z"/></svg>',3:'<svg viewBox="0 0 18 18"><path class="ql-fill" d="M16.65186,12.30664a2.6742,2.6742,0,0,1-2.915,2.68457,3.96592,3.96592,0,0,1-2.25537-.6709.56007.56007,0,0,1-.13232-.83594L11.64648,13c.209-.34082.48389-.36328.82471-.1543a2.32654,2.32654,0,0,0,1.12256.33008c.71484,0,1.12207-.35156,1.12207-.78125,0-.61523-.61621-.86816-1.46338-.86816H13.2085a.65159.65159,0,0,1-.68213-.41895l-.05518-.10937a.67114.67114,0,0,1,.14307-.78125l.71533-.86914a8.55289,8.55289,0,0,1,.68213-.7373V8.58887a3.93913,3.93913,0,0,1-.748.05469H11.9873a.54085.54085,0,0,1-.605-.60547V7.59863a.54085.54085,0,0,1,.605-.60547h3.75146a.53773.53773,0,0,1,.60547.59375v.17676a1.03723,1.03723,0,0,1-.27539.748L14.74854,10.0293A2.31132,2.31132,0,0,1,16.65186,12.30664ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z"/></svg>',4:'<svg viewBox="0 0 18 18"><path class="ql-fill" d="M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm7.05371,7.96582v.38477c0,.39648-.165.60547-.46191.60547h-.47314v1.29785a.54085.54085,0,0,1-.605.60547h-.69336a.54085.54085,0,0,1-.605-.60547V12.95605H11.333a.5412.5412,0,0,1-.60547-.60547v-.15332a1.199,1.199,0,0,1,.22021-.748l2.56348-4.05957a.7819.7819,0,0,1,.72607-.39648h1.27637a.54085.54085,0,0,1,.605.60547v3.7627h.33008A.54055.54055,0,0,1,17.05371,11.96582ZM14.28125,8.7207h-.022a4.18969,4.18969,0,0,1-.38525.81348l-1.188,1.80469v.02246h1.5293V9.60059A7.04058,7.04058,0,0,1,14.28125,8.7207Z"/></svg>',5:'<svg viewBox="0 0 18 18"><path class="ql-fill" d="M16.74023,12.18555a2.75131,2.75131,0,0,1-2.91553,2.80566,3.908,3.908,0,0,1-2.25537-.68164.54809.54809,0,0,1-.13184-.8252L11.73438,13c.209-.34082.48389-.36328.8252-.1543a2.23757,2.23757,0,0,0,1.1001.33008,1.01827,1.01827,0,0,0,1.1001-.96777c0-.61621-.53906-.97949-1.25439-.97949a2.15554,2.15554,0,0,0-.64893.09961,1.15209,1.15209,0,0,1-.814.01074l-.12109-.04395a.64116.64116,0,0,1-.45117-.71484l.231-3.00391a.56666.56666,0,0,1,.62744-.583H15.541a.54085.54085,0,0,1,.605.60547v.43945a.54085.54085,0,0,1-.605.60547H13.41748l-.04395.72559a1.29306,1.29306,0,0,1-.04395.30859h.022a2.39776,2.39776,0,0,1,.57227-.07715A2.53266,2.53266,0,0,1,16.74023,12.18555ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z"/></svg>',6:'<svg viewBox="0 0 18 18"><path class="ql-fill" d="M14.51758,9.64453a1.85627,1.85627,0,0,0-1.24316.38477H13.252a1.73532,1.73532,0,0,1,1.72754-1.4082,2.66491,2.66491,0,0,1,.5498.06641c.35254.05469.57227.01074.70508-.40723l.16406-.5166a.53393.53393,0,0,0-.373-.75977,4.83723,4.83723,0,0,0-1.17773-.14258c-2.43164,0-3.7627,2.17773-3.7627,4.43359,0,2.47559,1.60645,3.69629,3.19043,3.69629A2.70585,2.70585,0,0,0,16.96,12.19727,2.43861,2.43861,0,0,0,14.51758,9.64453Zm-.23047,3.58691c-.67187,0-1.22168-.81445-1.22168-1.45215,0-.47363.30762-.583.72559-.583.96875,0,1.27734.59375,1.27734,1.12207A.82182.82182,0,0,1,14.28711,13.23145ZM10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Z"/></svg>'},italic:'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="7" x2="13" y1="4" y2="4"/><line class="ql-stroke" x1="5" x2="11" y1="14" y2="14"/><line class="ql-stroke" x1="8" x2="10" y1="14" y2="4"/></svg>',image:'<svg viewbox="0 0 18 18"><rect class="ql-stroke" height="10" width="12" x="3" y="4"/><circle class="ql-fill" cx="6" cy="7" r="1"/><polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"/></svg>',indent:{"+1":'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="3" x2="15" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="9" x2="15" y1="9" y2="9"/><polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"/></svg>',"-1":'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="3" x2="15" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="9" x2="15" y1="9" y2="9"/><polyline class="ql-stroke" points="5 7 5 11 3 9 5 7"/></svg>'},link:'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="7" x2="11" y1="7" y2="11"/><path class="ql-even ql-stroke" d="M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z"/><path class="ql-even ql-stroke" d="M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z"/></svg>',list:{bullet:'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="6" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="6" x2="15" y1="9" y2="9"/><line class="ql-stroke" x1="6" x2="15" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="3" y1="4" y2="4"/><line class="ql-stroke" x1="3" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="3" x2="3" y1="14" y2="14"/></svg>',check:'<svg class="" viewbox="0 0 18 18"><line class="ql-stroke" x1="9" x2="15" y1="4" y2="4"/><polyline class="ql-stroke" points="3 4 4 5 6 3"/><line class="ql-stroke" x1="9" x2="15" y1="14" y2="14"/><polyline class="ql-stroke" points="3 14 4 15 6 13"/><line class="ql-stroke" x1="9" x2="15" y1="9" y2="9"/><polyline class="ql-stroke" points="3 9 4 10 6 8"/></svg>',ordered:'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="7" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="7" x2="15" y1="9" y2="9"/><line class="ql-stroke" x1="7" x2="15" y1="14" y2="14"/><line class="ql-stroke ql-thin" x1="2.5" x2="4.5" y1="5.5" y2="5.5"/><path class="ql-fill" d="M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z"/><path class="ql-stroke ql-thin" d="M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156"/><path class="ql-stroke ql-thin" d="M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109"/></svg>'},script:{sub:'<svg viewbox="0 0 18 18"><path class="ql-fill" d="M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z"/><path class="ql-fill" d="M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z"/></svg>',super:'<svg viewbox="0 0 18 18"><path class="ql-fill" d="M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z"/><path class="ql-fill" d="M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z"/></svg>'},strike:'<svg viewbox="0 0 18 18"><line class="ql-stroke ql-thin" x1="15.5" x2="2.5" y1="8.5" y2="9.5"/><path class="ql-fill" d="M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z"/><path class="ql-fill" d="M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z"/></svg>',table:'<svg viewbox="0 0 18 18"><rect class="ql-stroke" height="12" width="12" x="3" y="3"/><rect class="ql-fill" height="2" width="3" x="5" y="5"/><rect class="ql-fill" height="2" width="4" x="9" y="5"/><g class="ql-fill ql-transparent"><rect height="2" width="3" x="5" y="8"/><rect height="2" width="4" x="9" y="8"/><rect height="2" width="3" x="5" y="11"/><rect height="2" width="4" x="9" y="11"/></g></svg>',underline:'<svg viewbox="0 0 18 18"><path class="ql-stroke" d="M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3"/><rect class="ql-fill" height="1" rx="0.5" ry="0.5" width="12" x="3" y="15"/></svg>',video:'<svg viewbox="0 0 18 18"><rect class="ql-stroke" height="12" width="12" x="3" y="3"/><rect class="ql-fill" height="12" width="1" x="5" y="3"/><rect class="ql-fill" height="12" width="1" x="12" y="3"/><rect class="ql-fill" height="2" width="8" x="5" y="8"/><rect class="ql-fill" height="1" width="3" x="3" y="5"/><rect class="ql-fill" height="1" width="3" x="3" y="7"/><rect class="ql-fill" height="1" width="3" x="3" y="10"/><rect class="ql-fill" height="1" width="3" x="3" y="12"/><rect class="ql-fill" height="1" width="3" x="12" y="5"/><rect class="ql-fill" height="1" width="3" x="12" y="7"/><rect class="ql-fill" height="1" width="3" x="12" y="10"/><rect class="ql-fill" height="1" width="3" x="12" y="12"/></svg>'},ib='<svg viewbox="0 0 18 18"><polygon class="ql-stroke" points="7 11 9 13 11 11 7 11"/><polygon class="ql-stroke" points="7 7 9 5 11 7 7 7"/></svg>';let zc=0;function Hc(n,e){n.setAttribute(e,`${n.getAttribute(e)!=="true"}`)}class _s{constructor(e){this.select=e,this.container=document.createElement("span"),this.buildPicker(),this.select.style.display="none",this.select.parentNode.insertBefore(this.container,this.select),this.label.addEventListener("mousedown",()=>{this.togglePicker()}),this.label.addEventListener("keydown",t=>{switch(t.key){case"Enter":this.togglePicker();break;case"Escape":this.escape(),t.preventDefault();break}}),this.select.addEventListener("change",this.update.bind(this))}togglePicker(){this.container.classList.toggle("ql-expanded"),Hc(this.label,"aria-expanded"),Hc(this.options,"aria-hidden")}buildItem(e){const t=document.createElement("span");t.tabIndex="0",t.setAttribute("role","button"),t.classList.add("ql-picker-item");const r=e.getAttribute("value");return r&&t.setAttribute("data-value",r),e.textContent&&t.setAttribute("data-label",e.textContent),t.addEventListener("click",()=>{this.selectItem(t,!0)}),t.addEventListener("keydown",s=>{switch(s.key){case"Enter":this.selectItem(t,!0),s.preventDefault();break;case"Escape":this.escape(),s.preventDefault();break}}),t}buildLabel(){const e=document.createElement("span");return e.classList.add("ql-picker-label"),e.innerHTML=ib,e.tabIndex="0",e.setAttribute("role","button"),e.setAttribute("aria-expanded","false"),this.container.appendChild(e),e}buildOptions(){const e=document.createElement("span");e.classList.add("ql-picker-options"),e.setAttribute("aria-hidden","true"),e.tabIndex="-1",e.id=`ql-picker-options-${zc}`,zc+=1,this.label.setAttribute("aria-controls",e.id),this.options=e,Array.from(this.select.options).forEach(t=>{const r=this.buildItem(t);e.appendChild(r),t.selected===!0&&this.selectItem(r)}),this.container.appendChild(e)}buildPicker(){Array.from(this.select.attributes).forEach(e=>{this.container.setAttribute(e.name,e.value)}),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}escape(){this.close(),setTimeout(()=>this.label.focus(),1)}close(){this.container.classList.remove("ql-expanded"),this.label.setAttribute("aria-expanded","false"),this.options.setAttribute("aria-hidden","true")}selectItem(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const r=this.container.querySelector(".ql-selected");e!==r&&(r!=null&&r.classList.remove("ql-selected"),e!=null&&(e.classList.add("ql-selected"),this.select.selectedIndex=Array.from(e.parentNode.children).indexOf(e),e.hasAttribute("data-value")?this.label.setAttribute("data-value",e.getAttribute("data-value")):this.label.removeAttribute("data-value"),e.hasAttribute("data-label")?this.label.setAttribute("data-label",e.getAttribute("data-label")):this.label.removeAttribute("data-label"),t&&(this.select.dispatchEvent(new Event("change")),this.close())))}update(){let e;if(this.select.selectedIndex>-1){const r=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];e=this.select.options[this.select.selectedIndex],this.selectItem(r)}else this.selectItem(null);const t=e!=null&&e!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",t)}}class Gc extends _s{constructor(e,t){super(e),this.label.innerHTML=t,this.container.classList.add("ql-color-picker"),Array.from(this.container.querySelectorAll(".ql-picker-item")).slice(0,7).forEach(r=>{r.classList.add("ql-primary")})}buildItem(e){const t=super.buildItem(e);return t.style.backgroundColor=e.getAttribute("value")||"",t}selectItem(e,t){super.selectItem(e,t);const r=this.label.querySelector(".ql-color-label"),s=e&&e.getAttribute("data-value")||"";r&&(r.tagName==="line"?r.style.stroke=s:r.style.fill=s)}}class Wc extends _s{constructor(e,t){super(e),this.container.classList.add("ql-icon-picker"),Array.from(this.container.querySelectorAll(".ql-picker-item")).forEach(r=>{r.innerHTML=t[r.getAttribute("data-value")||""]}),this.defaultItem=this.container.querySelector(".ql-selected"),this.selectItem(this.defaultItem)}selectItem(e,t){super.selectItem(e,t);const r=e||this.defaultItem;if(r!=null){if(this.label.innerHTML===r.innerHTML)return;this.label.innerHTML=r.innerHTML}}}const ab=n=>{const{overflowY:e}=getComputedStyle(n,null);return e!=="visible"&&e!=="clip"};class Kc{constructor(e,t){this.quill=e,this.boundsContainer=t||document.body,this.root=e.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,ab(this.quill.root)&&this.quill.root.addEventListener("scroll",()=>{this.root.style.marginTop=`${-1*this.quill.root.scrollTop}px`}),this.hide()}hide(){this.root.classList.add("ql-hidden")}position(e){const t=e.left+e.width/2-this.root.offsetWidth/2,r=e.bottom+this.quill.root.scrollTop;this.root.style.left=`${t}px`,this.root.style.top=`${r}px`,this.root.classList.remove("ql-flip");const s=this.boundsContainer.getBoundingClientRect(),o=this.root.getBoundingClientRect();let a=0;if(o.right>s.right&&(a=s.right-o.right,this.root.style.left=`${t+a}px`),o.left<s.left&&(a=s.left-o.left,this.root.style.left=`${t+a}px`),o.bottom>s.bottom){const c=o.bottom-o.top,i=e.bottom-e.top+c;this.root.style.top=`${r-i}px`,this.root.classList.add("ql-flip")}return a}show(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}const ob=[!1,"center","right","justify"],lb=["#000000","#e60000","#ff9900","#ffff00","#008a00","#0066cc","#9933ff","#ffffff","#facccc","#ffebcc","#ffffcc","#cce8cc","#cce0f5","#ebd6ff","#bbbbbb","#f06666","#ffc266","#ffff66","#66b966","#66a3e0","#c285ff","#888888","#a10000","#b26b00","#b2b200","#006100","#0047b2","#6b24b2","#444444","#5c0000","#663d00","#666600","#003700","#002966","#3d1466"],cb=[!1,"serif","monospace"],ub=["1","2","3",!1],db=["small",!1,"large","huge"];class Gr extends lr{constructor(e,t){super(e,t);const r=s=>{if(!document.body.contains(e.root)){document.body.removeEventListener("click",r);return}this.tooltip!=null&&!this.tooltip.root.contains(s.target)&&document.activeElement!==this.tooltip.textbox&&!this.quill.hasFocus()&&this.tooltip.hide(),this.pickers!=null&&this.pickers.forEach(o=>{o.container.contains(s.target)||o.close()})};e.emitter.listenDOM("click",document.body,r)}addModule(e){const t=super.addModule(e);return e==="toolbar"&&this.extendToolbar(t),t}buildButtons(e,t){Array.from(e).forEach(r=>{(r.getAttribute("class")||"").split(/\s+/).forEach(o=>{if(o.startsWith("ql-")&&(o=o.slice(3),t[o]!=null))if(o==="direction")r.innerHTML=t[o][""]+t[o].rtl;else if(typeof t[o]=="string")r.innerHTML=t[o];else{const a=r.value||"";a!=null&&t[o][a]&&(r.innerHTML=t[o][a])}})})}buildPickers(e,t){this.pickers=Array.from(e).map(s=>{if(s.classList.contains("ql-align")&&(s.querySelector("option")==null&&Wr(s,ob),typeof t.align=="object"))return new Wc(s,t.align);if(s.classList.contains("ql-background")||s.classList.contains("ql-color")){const o=s.classList.contains("ql-background")?"background":"color";return s.querySelector("option")==null&&Wr(s,lb,o==="background"?"#ffffff":"#000000"),new Gc(s,t[o])}return s.querySelector("option")==null&&(s.classList.contains("ql-font")?Wr(s,cb):s.classList.contains("ql-header")?Wr(s,ub):s.classList.contains("ql-size")&&Wr(s,db)),new _s(s)});const r=()=>{this.pickers.forEach(s=>{s.update()})};this.quill.on(Se.events.EDITOR_CHANGE,r)}}Gr.DEFAULTS=Sn({},lr.DEFAULTS,{modules:{toolbar:{handlers:{formula(){this.quill.theme.tooltip.edit("formula")},image(){let n=this.container.querySelector("input.ql-image[type=file]");n==null&&(n=document.createElement("input"),n.setAttribute("type","file"),n.setAttribute("accept",this.quill.uploader.options.mimetypes.join(", ")),n.classList.add("ql-image"),n.addEventListener("change",()=>{const e=this.quill.getSelection(!0);this.quill.uploader.upload(e,n.files),n.value=""}),this.container.appendChild(n)),n.click()},video(){this.quill.theme.tooltip.edit("video")}}}}});class Xc extends Kc{constructor(e,t){super(e,t),this.textbox=this.root.querySelector('input[type="text"]'),this.listen()}listen(){this.textbox.addEventListener("keydown",e=>{e.key==="Enter"?(this.save(),e.preventDefault()):e.key==="Escape"&&(this.cancel(),e.preventDefault())})}cancel(){this.hide(),this.restoreFocus()}edit(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"link",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),this.textbox==null)return;t!=null?this.textbox.value=t:e!==this.root.getAttribute("data-mode")&&(this.textbox.value="");const r=this.quill.getBounds(this.quill.selection.savedRange);r!=null&&this.position(r),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute(`data-${e}`)||""),this.root.setAttribute("data-mode",e)}restoreFocus(){this.quill.focus({preventScroll:!0})}save(){let{value:e}=this.textbox;switch(this.root.getAttribute("data-mode")){case"link":{const{scrollTop:t}=this.quill.root;this.linkRange?(this.quill.formatText(this.linkRange,"link",e,Se.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",e,Se.sources.USER)),this.quill.root.scrollTop=t;break}case"video":e=fb(e);case"formula":{if(!e)break;const t=this.quill.getSelection(!0);if(t!=null){const r=t.index+t.length;this.quill.insertEmbed(r,this.root.getAttribute("data-mode"),e,Se.sources.USER),this.root.getAttribute("data-mode")==="formula"&&this.quill.insertText(r+1," ",Se.sources.USER),this.quill.setSelection(r+2,Se.sources.USER)}break}}this.textbox.value="",this.hide()}}function fb(n){let e=n.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||n.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);return e?`${e[1]||"https"}://www.youtube.com/embed/${e[2]}?showinfo=0`:(e=n.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?`${e[1]||"https"}://player.vimeo.com/video/${e[2]}/`:n}function Wr(n,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;e.forEach(r=>{const s=document.createElement("option");r===t?s.setAttribute("selected","selected"):s.setAttribute("value",String(r)),n.appendChild(s)})}const hb=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]];class Yc extends Xc{constructor(e,t){super(e,t),this.quill.on(Se.events.EDITOR_CHANGE,(r,s,o,a)=>{if(r===Se.events.SELECTION_CHANGE)if(s!=null&&s.length>0&&a===Se.sources.USER){this.show(),this.root.style.left="0px",this.root.style.width="",this.root.style.width=`${this.root.offsetWidth}px`;const c=this.quill.getLines(s.index,s.length);if(c.length===1){const i=this.quill.getBounds(s);i!=null&&this.position(i)}else{const i=c[c.length-1],u=this.quill.getIndex(i),d=Math.min(i.length()-1,s.index+s.length-u),h=this.quill.getBounds(new $n(u,d));h!=null&&this.position(h)}}else document.activeElement!==this.textbox&&this.quill.hasFocus()&&this.hide()})}listen(){super.listen(),this.root.querySelector(".ql-close").addEventListener("click",()=>{this.root.classList.remove("ql-editing")}),this.quill.on(Se.events.SCROLL_OPTIMIZE,()=>{setTimeout(()=>{if(this.root.classList.contains("ql-hidden"))return;const e=this.quill.getSelection();if(e!=null){const t=this.quill.getBounds(e);t!=null&&this.position(t)}},1)})}cancel(){this.show()}position(e){const t=super.position(e),r=this.root.querySelector(".ql-tooltip-arrow");return r.style.marginLeft="",t!==0&&(r.style.marginLeft=`${-1*t-r.offsetWidth/2}px`),t}}Ee(Yc,"TEMPLATE",['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].join(""));class Zc extends Gr{constructor(e,t){t.modules.toolbar!=null&&t.modules.toolbar.container==null&&(t.modules.toolbar.container=hb),super(e,t),this.quill.container.classList.add("ql-bubble")}extendToolbar(e){this.tooltip=new Yc(this.quill,this.options.bounds),e.container!=null&&(this.tooltip.root.appendChild(e.container),this.buildButtons(e.container.querySelectorAll("button"),Hr),this.buildPickers(e.container.querySelectorAll("select"),Hr))}}Zc.DEFAULTS=Sn({},Gr.DEFAULTS,{modules:{toolbar:{handlers:{link(n){n?this.quill.theme.tooltip.edit():this.quill.format("link",!1,le.sources.USER)}}}}});const pb=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]];class Qc extends Xc{constructor(){super(...arguments);Ee(this,"preview",this.root.querySelector("a.ql-preview"))}listen(){super.listen(),this.root.querySelector("a.ql-action").addEventListener("click",t=>{this.root.classList.contains("ql-editing")?this.save():this.edit("link",this.preview.textContent),t.preventDefault()}),this.root.querySelector("a.ql-remove").addEventListener("click",t=>{if(this.linkRange!=null){const r=this.linkRange;this.restoreFocus(),this.quill.formatText(r,"link",!1,Se.sources.USER),delete this.linkRange}t.preventDefault(),this.hide()}),this.quill.on(Se.events.SELECTION_CHANGE,(t,r,s)=>{if(t!=null){if(t.length===0&&s===Se.sources.USER){const[o,a]=this.quill.scroll.descendant(On,t.index);if(o!=null){this.linkRange=new $n(t.index-a,o.length());const c=On.formats(o.domNode);this.preview.textContent=c,this.preview.setAttribute("href",c),this.show();const i=this.quill.getBounds(this.linkRange);i!=null&&this.position(i);return}}else delete this.linkRange;this.hide()}})}show(){super.show(),this.root.removeAttribute("data-mode")}}Ee(Qc,"TEMPLATE",['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-action"></a>','<a class="ql-remove"></a>'].join(""));class Jc extends Gr{constructor(e,t){t.modules.toolbar!=null&&t.modules.toolbar.container==null&&(t.modules.toolbar.container=pb),super(e,t),this.quill.container.classList.add("ql-snow")}extendToolbar(e){e.container!=null&&(e.container.classList.add("ql-snow"),this.buildButtons(e.container.querySelectorAll("button"),Hr),this.buildPickers(e.container.querySelectorAll("select"),Hr),this.tooltip=new Qc(this.quill,this.options.bounds),e.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"k",shortKey:!0},(t,r)=>{e.handlers.link.call(e,!r.format.link)}))}}Jc.DEFAULTS=Sn({},Gr.DEFAULTS,{modules:{toolbar:{handlers:{link(n){if(n){const e=this.quill.getSelection();if(e==null||e.length===0)return;let t=this.quill.getText(e);/^\S+@\S+\.\S+$/.test(t)&&t.indexOf("mailto:")!==0&&(t=`mailto:${t}`);const{tooltip:r}=this.quill.theme;r.edit("link",t)}else this.quill.format("link",!1,le.sources.USER)}}}}}),le.register({"attributors/attribute/direction":bc,"attributors/class/align":gc,"attributors/class/background":ny,"attributors/class/color":ty,"attributors/class/direction":xc,"attributors/class/font":wc,"attributors/class/size":Tc,"attributors/style/align":vc,"attributors/style/background":oa,"attributors/style/color":aa,"attributors/style/direction":Ec,"attributors/style/font":Sc,"attributors/style/size":Nc},!0),le.register({"formats/align":gc,"formats/direction":xc,"formats/indent":Gy,"formats/background":oa,"formats/color":aa,"formats/font":wc,"formats/size":Tc,"formats/blockquote":ma,"formats/code-block":yt,"formats/header":ga,"formats/list":$r,"formats/bold":_r,"formats/code":la,"formats/italic":va,"formats/link":On,"formats/script":ya,"formats/strike":ba,"formats/underline":xa,"formats/formula":Vs,"formats/image":Ea,"formats/video":$s,"modules/syntax":Vc,"modules/table":Ky,"modules/toolbar":wa,"themes/bubble":Zc,"themes/snow":Jc,"ui/icons":Hr,"ui/picker":_s,"ui/icon-picker":Wc,"ui/color-picker":Gc,"ui/tooltip":Kc},!0);const mb={name:"QuillEditor",props:{modelValue:{type:String,default:""},options:{type:Object,default:()=>({theme:"snow",placeholder:"Start typing...",modules:{toolbar:[[{font:[]},{size:[]}],["bold","italic","underline","strike"],[{color:[]},{background:[]}],[{script:"sub"},{script:"super"}],[{header:1},{header:2},"blockquote","code-block"],[{list:"ordered"},{list:"bullet"},{indent:"-1"},{indent:"+1"}],[{direction:"rtl"},{align:[]}],["link","image","video","formula"],["clean"]]}})}},emits:["update:modelValue"],setup(n,{emit:e}){const t=l.ref(null);let r=null;return l.onMounted(()=>{r=new le(t.value,n.options),r.root.innerHTML=n.modelValue,r.on("text-change",()=>{e("update:modelValue",r.root.innerHTML)})}),l.watch(()=>n.modelValue,s=>{r&&r.root.innerHTML!==s&&(r.root.innerHTML=s)}),l.onBeforeUnmount(()=>{r=null}),{editorContainer:t}}},gb={class:"q-editor"},vb={ref:"editorContainer"};function yb(n,e,t,r,s,o){return l.openBlock(),l.createElementBlock("div",gb,[l.createElementVNode("div",vb,null,512)])}const bb=Sr(mb,[["render",yb]]),xb={class:"rounded-xl bg-gray-50 px-6 py-5"},Eb={key:0,class:"pb-5"},Ab={class:"text-lg font-semibold text-gray-900"},wb={key:0,class:"text-sm text-gray-600"},Kr={__name:"Card",props:{title:{type:String,default:""},supporting_text:{type:String,default:""}},setup(n){return(e,t)=>(l.openBlock(),l.createElementBlock("div",xb,[n.title?(l.openBlock(),l.createElementBlock("div",Eb,[l.createElementVNode("div",Ab,l.toDisplayString(n.title),1),n.supporting_text?(l.openBlock(),l.createElementBlock("div",wb,l.toDisplayString(n.supporting_text),1)):l.createCommentVNode("",!0)])):l.createCommentVNode("",!0),l.renderSlot(e.$slots,"default")]))}},Sb={class:"item-edit"},Tb={class:"flex items-start gap-4 px-6 pt-4 h-full"},Nb={class:"flex flex-1 flex-col gap-4"},Ob={class:"flex flex-col gap-8"},Cb={class:"flex flex-col gap-8"},Rb={class:"flex flex-col gap-4"},Ib={class:"flex w-full max-w-[356px] flex-col gap-4"},kb={class:"flex justify-between space-x-xsSpace pt-xsSpace gap-4 sticky bottom-0 w-full bg-gray-200 py-2 px-6"},Lb={__name:"ItemEdit",props:{item:{type:Object,required:!0},saveEndpoint:{type:String,required:!1},cancelEndpoint:{type:String,required:!1},sites:{type:Object,required:!0}},emits:["update"],setup(n,{emit:e}){const t=l.inject("VFileUpload",Io),r=e,s=n,o=l.ref({public:s.item.public,title:s.item.title,description:s.item.description,featured_image:s.item.featured_image});s.item.hasOwnProperty("primary_button")&&(o.value.primary_button=s.item.primary_button),s.item.hasOwnProperty("secondary_button")&&(o.value.secondary_button=s.item.secondary_button);const a=()=>{r("update",o.value),s.saveEndpoint&&tt.post(s.saveEndpoint,o.value).then(()=>{s.cancelEndpoint&&(window.location.href=s.cancelEndpoint)})},c=()=>{r("close",o.value),s.cancelEndpoint&&(window.location.href=s.cancelEndpoint)},i=l.computed(()=>{var h;return((h=o.value.description)==null?void 0:h.replace(/<[^>]*>/g," ").trim()).split(/\s+/).filter(f=>f.length>0).length});return(u,d)=>{var h,f,g,p;return l.openBlock(),l.createElementBlock("div",Sb,[l.createElementVNode("div",Tb,[l.createElementVNode("div",Nb,[l.createVNode(Kr,{title:"Description"},{default:l.withCtx(()=>[l.createElementVNode("div",Ob,[l.createVNode(ln,{"is-vertical":"",field:"title","label-text":"Title *",class:"w-full",value:o.value.title,limit:51},{default:l.withCtx(()=>[l.withDirectives(l.createElementVNode("input",{"onUpdate:modelValue":d[0]||(d[0]=v=>o.value.title=v),name:"title",type:"text",placeholder:"Title",maxlength:51,class:"border-1 border-solid border-gray-300 rounded-lg bg-white w-full"},null,512),[[l.vModelText,o.value.title]])]),_:1},8,["value"]),l.createVNode(ln,{"is-vertical":"",field:"description","label-text":"Description *",class:"w-full mb-4",value:i.value,"show-count":!0},{default:l.withCtx(()=>[l.createVNode(bb,{modelValue:o.value.description,"onUpdate:modelValue":d[1]||(d[1]=v=>o.value.description=v)},null,8,["modelValue"])]),_:1},8,["value"])])]),_:1}),o.value.hasOwnProperty("primary_button")?(l.openBlock(),l.createBlock(Kr,{key:0,title:((f=(h=n.item)==null?void 0:h.primary_button)==null?void 0:f.name)??"Primary button"},{default:l.withCtx(()=>[l.createElementVNode("div",Cb,[l.createVNode(ns,{name:"show",modelValue:o.value.primary_button.show,"onUpdate:modelValue":d[2]||(d[2]=v=>o.value.primary_button.show=v),title:"Show Button"},null,8,["modelValue"]),l.createVNode(ln,{"is-vertical":"",field:"primary_button.label","label-text":"Button Label *",class:"w-full mb-4",value:o.value.primary_button.label,limit:20},{default:l.withCtx(()=>[l.withDirectives(l.createElementVNode("input",{"onUpdate:modelValue":d[3]||(d[3]=v=>o.value.primary_button.label=v),name:"primary_button.label",type:"text",placeholder:"Label",maxlength:20,class:"border-1 border-solid border-gray-300 rounded-lg bg-white w-full"},null,512),[[l.vModelText,o.value.primary_button.label]])]),_:1},8,["value"]),l.createVNode(si,{name:"primary",type:o.value.primary_button.type,"onUpdate:type":d[4]||(d[4]=v=>o.value.primary_button.type=v),url:o.value.primary_button.url,"onUpdate:url":d[5]||(d[5]=v=>o.value.primary_button.url=v),openInNewTab:o.value.primary_button.open_in_new_tab,"onUpdate:openInNewTab":d[6]||(d[6]=v=>o.value.primary_button.open_in_new_tab=v),sites:n.sites},null,8,["type","url","openInNewTab","sites"])])]),_:1},8,["title"])):l.createCommentVNode("",!0),o.value.hasOwnProperty("secondary_button")?(l.openBlock(),l.createBlock(Kr,{key:1,title:((p=(g=n.item)==null?void 0:g.secondary_button)==null?void 0:p.name)??"Secondary button"},{default:l.withCtx(()=>{var v;return[l.createElementVNode("div",Rb,[l.createVNode(ns,{name:"show",modelValue:o.value.secondary_button.show,"onUpdate:modelValue":d[7]||(d[7]=b=>o.value.secondary_button.show=b),title:"Show Button"},null,8,["modelValue"]),(v=o.value.secondary_button)!=null&&v.show?(l.openBlock(),l.createElementBlock(l.Fragment,{key:0},[l.createVNode(ln,{"is-vertical":"",field:"secondary_button.label","label-text":"Button Label *",class:"w-full mb-4",value:o.value.secondary_button.label,limit:20},{default:l.withCtx(()=>[l.withDirectives(l.createElementVNode("input",{"onUpdate:modelValue":d[8]||(d[8]=b=>o.value.secondary_button.label=b),name:"secondary_button.label",type:"text",placeholder:"Label",maxlength:20,class:"border-1 border-solid border-gray-300 rounded-lg bg-white w-full"},null,512),[[l.vModelText,o.value.secondary_button.label]])]),_:1},8,["value"]),l.createVNode(si,{name:"secondary",type:o.value.secondary_button.type,"onUpdate:type":d[9]||(d[9]=b=>o.value.secondary_button.type=b),url:o.value.secondary_button.url,"onUpdate:url":d[10]||(d[10]=b=>o.value.secondary_button.url=b),openInNewTab:o.value.secondary_button.open_in_new_tab,"onUpdate:openInNewTab":d[11]||(d[11]=b=>o.value.secondary_button.open_in_new_tab=b),sites:n.sites},null,8,["type","url","openInNewTab","sites"])],64)):l.createCommentVNode("",!0)])]}),_:1},8,["title"])):l.createCommentVNode("",!0)]),l.createElementVNode("div",Ib,[l.createVNode(Kr,{title:"Visibility",supporting_text:"Toggle off if you'd like to hide this item"},{default:l.withCtx(()=>[l.createVNode(ns,{modelValue:o.value.public,"onUpdate:modelValue":d[12]||(d[12]=v=>o.value.public=v),name:"public",label:"Public"},null,8,["modelValue"])]),_:1}),l.createVNode(Kr,{title:"Featured Image",supporting_text:"Recommended dimension: 1200*1060px"},{default:l.withCtx(()=>[l.createVNode(l.unref(t),{name:"image",height:"h-[200px]",modelValue:o.value.featured_image,"onUpdate:modelValue":d[13]||(d[13]=v=>o.value.featured_image=v)},null,8,["modelValue"])]),_:1})])]),l.renderSlot(u.$slots,"default",{},()=>[l.createElementVNode("div",kb,[l.createElementVNode("a",{onClick:c,class:"w-[200px] py-[9px] bg-white rounded-full border border-gray-300 shadow-xs text-md font-semibold hover:bg-gray-100 text-gray-700 text-center cursor-pointer"}," Cancel "),l.createElementVNode("a",{onClick:l.withModifiers(a,["prevent"]),class:"w-full py-[9px] rounded-full shadow-xs text-md font-semibold text-white bg-brand-600 hover:bg-brand-700 border border-brand-600 text-center cursor-pointer"},"Save changes")])])])}}};Ye.ItemEdit=Lb,Ye.PageBuilder=Wh,Ye.PageRender=sm,Object.defineProperty(Ye,Symbol.toStringTag,{value:"Module"})});
58
+ `,l=Ft.formats(this.children.head.domNode);if(t||this.forceNext||this.cachedText!==s){if(s.trim().length>0||this.cachedText==null){const o=this.children.reduce((i,u)=>i.concat(ic(u,!1)),new Te),c=e(s,l);o.diff(c).reduce((i,u)=>{let{retain:d,attributes:h}=u;return d?(h&&Object.keys(h).forEach(f=>{[Ft.blotName,pn.blotName].includes(f)&&this.formatAt(i,d,f,h[f])}),i+d):i},0)}this.cachedText=s,this.forceNext=!1}}html(e,t){const[r]=this.children.find(e);return`<pre data-language="${r?Ft.formats(r.domNode):"plain"}">
59
+ ${Ms(this.code(e,t))}
60
+ </pre>`}optimize(e){if(super.optimize(e),this.parent!=null&&this.children.head!=null&&this.uiNode!=null){const t=Ft.formats(this.children.head.domNode);t!==this.uiNode.value&&(this.uiNode.value=t)}}}Hr.allowedChildren=[Ft],Ft.requiredContainer=Hr,Ft.allowedChildren=[pn,or,zt,qt];const Bb=(n,e,t)=>{if(typeof n.versionString=="string"){const r=n.versionString.split(".")[0];if(parseInt(r,10)>=11)return n.highlight(t,{language:e}).value}return n.highlight(e,t).value};class Vc extends Ht{static register(){le.register(pn,!0),le.register(Ft,!0),le.register(Hr,!0)}constructor(e,t){if(super(e,t),this.options.hljs==null)throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");this.languages=this.options.languages.reduce((r,s)=>{let{key:l}=s;return r[l]=!0,r},{}),this.highlightBlot=this.highlightBlot.bind(this),this.initListener(),this.initTimer()}initListener(){this.quill.on(le.events.SCROLL_BLOT_MOUNT,e=>{if(!(e instanceof Hr))return;const t=this.quill.root.ownerDocument.createElement("select");this.options.languages.forEach(r=>{let{key:s,label:l}=r;const o=t.ownerDocument.createElement("option");o.textContent=l,o.setAttribute("value",s),t.appendChild(o)}),t.addEventListener("change",()=>{e.format(Ft.blotName,t.value),this.quill.root.focus(),this.highlight(e,!0)}),e.uiNode==null&&(e.attachUI(t),e.children.head&&(t.value=Ft.formats(e.children.head.domNode)))})}initTimer(){let e=null;this.quill.on(le.events.SCROLL_OPTIMIZE,()=>{e&&clearTimeout(e),e=setTimeout(()=>{this.highlight(),e=null},this.options.interval)})}highlight(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(this.quill.selection.composing)return;this.quill.update(le.sources.USER);const r=this.quill.getSelection();(e==null?this.quill.scroll.descendants(Hr):[e]).forEach(l=>{l.highlight(this.highlightBlot,t)}),this.quill.update(le.sources.SILENT),r!=null&&this.quill.setSelection(r,le.sources.SILENT)}highlightBlot(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"plain";if(t=this.languages[t]?t:"plain",t==="plain")return Ms(e).split(`
61
+ `).reduce((s,l,o)=>(o!==0&&s.insert(`
62
+ `,{[yt.blotName]:t}),s.insert(l)),new Te);const r=this.quill.root.ownerDocument.createElement("div");return r.classList.add(yt.className),r.innerHTML=Bb(this.options.hljs,t,e),mo(this.quill.scroll,r,[(s,l)=>{const o=zr.value(s);return o?l.compose(new Te().retain(l.length(),{[pn.blotName]:o})):l}],[(s,l)=>s.data.split(`
63
+ `).reduce((o,c,i)=>(i!==0&&o.insert(`
64
+ `,{[yt.blotName]:t}),o.insert(c)),l)],new WeakMap)}}Vc.DEFAULTS={hljs:window.hljs,interval:1e3,languages:[{key:"plain",label:"Plain"},{key:"bash",label:"Bash"},{key:"cpp",label:"C++"},{key:"cs",label:"C#"},{key:"css",label:"CSS"},{key:"diff",label:"Diff"},{key:"xml",label:"HTML/XML"},{key:"java",label:"Java"},{key:"javascript",label:"JavaScript"},{key:"markdown",label:"Markdown"},{key:"php",label:"PHP"},{key:"python",label:"Python"},{key:"ruby",label:"Ruby"},{key:"sql",label:"SQL"}]};const Zr=class Zr extends ht{static create(e){const t=super.create();return e?t.setAttribute("data-row",e):t.setAttribute("data-row",To()),t}static formats(e){if(e.hasAttribute("data-row"))return e.getAttribute("data-row")}cellOffset(){return this.parent?this.parent.children.indexOf(this):-1}format(e,t){e===Zr.blotName&&t?this.domNode.setAttribute("data-row",t):super.format(e,t)}row(){return this.parent}rowOffset(){return this.row()?this.row().rowOffset():-1}table(){return this.row()&&this.row().table()}};Ee(Zr,"blotName","table"),Ee(Zr,"tagName","TD");let Wt=Zr;class mn extends _n{checkMerge(){if(super.checkMerge()&&this.next.children.head!=null){const e=this.children.head.formats(),t=this.children.tail.formats(),r=this.next.children.head.formats(),s=this.next.children.tail.formats();return e.table===t.table&&e.table===r.table&&e.table===s.table}return!1}optimize(e){super.optimize(e),this.children.forEach(t=>{if(t.next==null)return;const r=t.formats(),s=t.next.formats();if(r.table!==s.table){const l=this.splitAfter(t);l&&l.optimize(),this.prev&&this.prev.optimize()}})}rowOffset(){return this.parent?this.parent.children.indexOf(this):-1}table(){return this.parent&&this.parent.parent}}Ee(mn,"blotName","table-row"),Ee(mn,"tagName","TR");class sn extends _n{}Ee(sn,"blotName","table-body"),Ee(sn,"tagName","TBODY");class dr extends _n{balanceCells(){const e=this.descendants(mn),t=e.reduce((r,s)=>Math.max(s.children.length,r),0);e.forEach(r=>{new Array(t-r.children.length).fill(0).forEach(()=>{let s;r.children.head!=null&&(s=Wt.formats(r.children.head.domNode));const l=this.scroll.create(Wt.blotName,s);r.appendChild(l),l.optimize()})})}cells(e){return this.rows().map(t=>t.children.at(e))}deleteColumn(e){const[t]=this.descendant(sn);t==null||t.children.head==null||t.children.forEach(r=>{const s=r.children.at(e);s!=null&&s.remove()})}insertColumn(e){const[t]=this.descendant(sn);t==null||t.children.head==null||t.children.forEach(r=>{const s=r.children.at(e),l=Wt.formats(r.children.head.domNode),o=this.scroll.create(Wt.blotName,l);r.insertBefore(o,s)})}insertRow(e){const[t]=this.descendant(sn);if(t==null||t.children.head==null)return;const r=To(),s=this.scroll.create(mn.blotName);t.children.head.children.forEach(()=>{const o=this.scroll.create(Wt.blotName,r);s.appendChild(o)});const l=t.children.at(e);t.insertBefore(s,l)}rows(){const e=this.children.head;return e==null?[]:e.children.map(t=>t)}}Ee(dr,"blotName","table-container"),Ee(dr,"tagName","TABLE"),dr.allowedChildren=[sn],sn.requiredContainer=dr,sn.allowedChildren=[mn],mn.requiredContainer=sn,mn.allowedChildren=[Wt],Wt.requiredContainer=mn;function To(){return`row-${Math.random().toString(36).slice(2,6)}`}class Pb extends Ht{static register(){le.register(Wt),le.register(mn),le.register(sn),le.register(dr)}constructor(){super(...arguments),this.listenBalanceCells()}balanceTables(){this.quill.scroll.descendants(dr).forEach(e=>{e.balanceCells()})}deleteColumn(){const[e,,t]=this.getTable();t!=null&&(e.deleteColumn(t.cellOffset()),this.quill.update(le.sources.USER))}deleteRow(){const[,e]=this.getTable();e!=null&&(e.remove(),this.quill.update(le.sources.USER))}deleteTable(){const[e]=this.getTable();if(e==null)return;const t=e.offset();e.remove(),this.quill.update(le.sources.USER),this.quill.setSelection(t,le.sources.SILENT)}getTable(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.quill.getSelection();if(e==null)return[null,null,null,-1];const[t,r]=this.quill.getLine(e.index);if(t==null||t.statics.blotName!==Wt.blotName)return[null,null,null,-1];const s=t.parent;return[s.parent.parent,s,t,r]}insertColumn(e){const t=this.quill.getSelection();if(!t)return;const[r,s,l]=this.getTable(t);if(l==null)return;const o=l.cellOffset();r.insertColumn(o+e),this.quill.update(le.sources.USER);let c=s.rowOffset();e===0&&(c+=1),this.quill.setSelection(t.index+c,t.length,le.sources.SILENT)}insertColumnLeft(){this.insertColumn(0)}insertColumnRight(){this.insertColumn(1)}insertRow(e){const t=this.quill.getSelection();if(!t)return;const[r,s,l]=this.getTable(t);if(l==null)return;const o=s.rowOffset();r.insertRow(o+e),this.quill.update(le.sources.USER),e>0?this.quill.setSelection(t,le.sources.SILENT):this.quill.setSelection(t.index+s.children.length,t.length,le.sources.SILENT)}insertRowAbove(){this.insertRow(0)}insertRowBelow(){this.insertRow(1)}insertTable(e,t){const r=this.quill.getSelection();if(r==null)return;const s=new Array(e).fill(0).reduce(l=>{const o=new Array(t).fill(`
65
+ `).join("");return l.insert(o,{table:To()})},new Te().retain(r.index));this.quill.updateContents(s,le.sources.USER),this.quill.setSelection(r.index,le.sources.SILENT),this.balanceTables()}listenBalanceCells(){this.quill.on(le.events.SCROLL_OPTIMIZE,e=>{e.some(t=>["TD","TR","TBODY","TABLE"].includes(t.target.tagName)?(this.quill.once(le.events.TEXT_CHANGE,(r,s,l)=>{l===le.sources.USER&&this.balanceTables()}),!0):!1)})}}const $c=fn("quill:toolbar");class No extends Ht{constructor(e,t){var r,s;if(super(e,t),Array.isArray(this.options.container)){const l=document.createElement("div");l.setAttribute("role","toolbar"),Fb(l,this.options.container),(s=(r=e.container)==null?void 0:r.parentNode)==null||s.insertBefore(l,e.container),this.container=l}else typeof this.options.container=="string"?this.container=document.querySelector(this.options.container):this.container=this.options.container;if(!(this.container instanceof HTMLElement)){$c.error("Container required for toolbar",this.options);return}this.container.classList.add("ql-toolbar"),this.controls=[],this.handlers={},this.options.handlers&&Object.keys(this.options.handlers).forEach(l=>{var c;const o=(c=this.options.handlers)==null?void 0:c[l];o&&this.addHandler(l,o)}),Array.from(this.container.querySelectorAll("button, select")).forEach(l=>{this.attach(l)}),this.quill.on(le.events.EDITOR_CHANGE,()=>{const[l]=this.quill.selection.getRange();this.update(l)})}addHandler(e,t){this.handlers[e]=t}attach(e){let t=Array.from(e.classList).find(s=>s.indexOf("ql-")===0);if(!t)return;if(t=t.slice(3),e.tagName==="BUTTON"&&e.setAttribute("type","button"),this.handlers[t]==null&&this.quill.scroll.query(t)==null){$c.warn("ignoring attaching to nonexistent format",t,e);return}const r=e.tagName==="SELECT"?"change":"click";e.addEventListener(r,s=>{let l;if(e.tagName==="SELECT"){if(e.selectedIndex<0)return;const c=e.options[e.selectedIndex];c.hasAttribute("selected")?l=!1:l=c.value||!1}else e.classList.contains("ql-active")?l=!1:l=e.value||!e.hasAttribute("value"),s.preventDefault();this.quill.focus();const[o]=this.quill.selection.getRange();if(this.handlers[t]!=null)this.handlers[t].call(this,l);else if(this.quill.scroll.query(t).prototype instanceof kt){if(l=prompt(`Enter ${t}`),!l)return;this.quill.updateContents(new Te().retain(o.index).delete(o.length).insert({[t]:l}),le.sources.USER)}else this.quill.format(t,l,le.sources.USER);this.update(o)}),this.controls.push([t,e])}update(e){const t=e==null?{}:this.quill.getFormat(e);this.controls.forEach(r=>{const[s,l]=r;if(l.tagName==="SELECT"){let o=null;if(e==null)o=null;else if(t[s]==null)o=l.querySelector("option[selected]");else if(!Array.isArray(t[s])){let c=t[s];typeof c=="string"&&(c=c.replace(/"/g,'\\"')),o=l.querySelector(`option[value="${c}"]`)}o==null?(l.value="",l.selectedIndex=-1):o.selected=!0}else if(e==null)l.classList.remove("ql-active"),l.setAttribute("aria-pressed","false");else if(l.hasAttribute("value")){const o=t[s],c=o===l.getAttribute("value")||o!=null&&o.toString()===l.getAttribute("value")||o==null&&!l.getAttribute("value");l.classList.toggle("ql-active",c),l.setAttribute("aria-pressed",c.toString())}else{const o=t[s]!=null;l.classList.toggle("ql-active",o),l.setAttribute("aria-pressed",o.toString())}})}}No.DEFAULTS={};function _c(n,e,t){const r=document.createElement("button");r.setAttribute("type","button"),r.classList.add(`ql-${e}`),r.setAttribute("aria-pressed","false"),t!=null?(r.value=t,r.setAttribute("aria-label",`${e}: ${t}`)):r.setAttribute("aria-label",e),n.appendChild(r)}function Fb(n,e){Array.isArray(e[0])||(e=[e]),e.forEach(t=>{const r=document.createElement("span");r.classList.add("ql-formats"),t.forEach(s=>{if(typeof s=="string")_c(r,s);else{const l=Object.keys(s)[0],o=s[l];Array.isArray(o)?Mb(r,l,o):_c(r,l,o)}}),n.appendChild(r)})}function Mb(n,e,t){const r=document.createElement("select");r.classList.add(`ql-${e}`),t.forEach(s=>{const l=document.createElement("option");s!==!1?l.setAttribute("value",String(s)):l.setAttribute("selected","selected"),r.appendChild(l)}),n.appendChild(r)}No.DEFAULTS={container:null,handlers:{clean(){const n=this.quill.getSelection();if(n!=null)if(n.length===0){const e=this.quill.getFormat();Object.keys(e).forEach(t=>{this.quill.scroll.query(t,Ne.INLINE)!=null&&this.quill.format(t,!1,le.sources.USER)})}else this.quill.removeFormat(n.index,n.length,le.sources.USER)},direction(n){const{align:e}=this.quill.getFormat();n==="rtl"&&e==null?this.quill.format("align","right",le.sources.USER):!n&&e==="right"&&this.quill.format("align",!1,le.sources.USER),this.quill.format("direction",n,le.sources.USER)},indent(n){const e=this.quill.getSelection(),t=this.quill.getFormat(e),r=parseInt(t.indent||0,10);if(n==="+1"||n==="-1"){let s=n==="+1"?1:-1;t.direction==="rtl"&&(s*=-1),this.quill.format("indent",r+s,le.sources.USER)}},link(n){n===!0&&(n=prompt("Enter link URL:")),this.quill.format("link",n,le.sources.USER)},list(n){const e=this.quill.getSelection(),t=this.quill.getFormat(e);n==="check"?t.list==="checked"||t.list==="unchecked"?this.quill.format("list",!1,le.sources.USER):this.quill.format("list","unchecked",le.sources.USER):this.quill.format("list",n,le.sources.USER)}}};const Db='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="3" x2="15" y1="9" y2="9"/><line class="ql-stroke" x1="3" x2="13" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="9" y1="4" y2="4"/></svg>',Ub='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="14" x2="4" y1="14" y2="14"/><line class="ql-stroke" x1="12" x2="6" y1="4" y2="4"/></svg>',jb='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="15" x2="5" y1="14" y2="14"/><line class="ql-stroke" x1="15" x2="9" y1="4" y2="4"/></svg>',Vb='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="15" x2="3" y1="14" y2="14"/><line class="ql-stroke" x1="15" x2="3" y1="4" y2="4"/></svg>',$b='<svg viewbox="0 0 18 18"><g class="ql-fill ql-color-label"><polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"/><rect height="1" width="1" x="4" y="4"/><polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"/><rect height="1" width="1" x="2" y="6"/><rect height="1" width="1" x="3" y="5"/><rect height="1" width="1" x="4" y="7"/><polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"/><rect height="1" width="1" x="2" y="12"/><rect height="1" width="1" x="2" y="9"/><rect height="1" width="1" x="2" y="15"/><polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"/><rect height="1" width="1" x="3" y="8"/><path d="M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z"/><path d="M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z"/><path d="M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z"/><rect height="1" width="1" x="12" y="2"/><rect height="1" width="1" x="11" y="3"/><path d="M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z"/><rect height="1" width="1" x="2" y="3"/><rect height="1" width="1" x="6" y="2"/><rect height="1" width="1" x="3" y="2"/><rect height="1" width="1" x="5" y="3"/><rect height="1" width="1" x="9" y="2"/><rect height="1" width="1" x="15" y="14"/><polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"/><rect height="1" width="1" x="13" y="7"/><rect height="1" width="1" x="15" y="5"/><rect height="1" width="1" x="14" y="6"/><rect height="1" width="1" x="15" y="8"/><rect height="1" width="1" x="14" y="9"/><path d="M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z"/><rect height="1" width="1" x="14" y="3"/><polygon points="12 6.868 12 6 11.62 6 12 6.868"/><rect height="1" width="1" x="15" y="2"/><rect height="1" width="1" x="12" y="5"/><rect height="1" width="1" x="13" y="4"/><polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"/><rect height="1" width="1" x="9" y="14"/><rect height="1" width="1" x="8" y="15"/><path d="M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z"/><rect height="1" width="1" x="5" y="15"/><path d="M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z"/><rect height="1" width="1" x="11" y="15"/><path d="M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z"/><rect height="1" width="1" x="14" y="15"/><rect height="1" width="1" x="15" y="11"/></g><polyline class="ql-stroke" points="5.5 13 9 5 12.5 13"/><line class="ql-stroke" x1="11.63" x2="6.38" y1="11" y2="11"/></svg>',_b='<svg viewbox="0 0 18 18"><rect class="ql-fill ql-stroke" height="3" width="3" x="4" y="5"/><rect class="ql-fill ql-stroke" height="3" width="3" x="11" y="5"/><path class="ql-even ql-fill ql-stroke" d="M7,8c0,4.031-3,5-3,5"/><path class="ql-even ql-fill ql-stroke" d="M14,8c0,4.031-3,5-3,5"/></svg>',qb='<svg viewbox="0 0 18 18"><path class="ql-stroke" d="M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z"/><path class="ql-stroke" d="M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z"/></svg>',zb='<svg class="" viewbox="0 0 18 18"><line class="ql-stroke" x1="5" x2="13" y1="3" y2="3"/><line class="ql-stroke" x1="6" x2="9.35" y1="12" y2="3"/><line class="ql-stroke" x1="11" x2="15" y1="11" y2="15"/><line class="ql-stroke" x1="15" x2="11" y1="11" y2="15"/><rect class="ql-fill" height="1" rx="0.5" ry="0.5" width="7" x="2" y="14"/></svg>',qc='<svg viewbox="0 0 18 18"><polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"/><polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"/><line class="ql-stroke" x1="10" x2="8" y1="5" y2="13"/></svg>',Gr={align:{"":Db,center:Ub,right:jb,justify:Vb},background:$b,blockquote:_b,bold:qb,clean:zb,code:qc,"code-block":qc,color:'<svg viewbox="0 0 18 18"><line class="ql-color-label ql-stroke ql-transparent" x1="3" x2="15" y1="15" y2="15"/><polyline class="ql-stroke" points="5.5 11 9 3 12.5 11"/><line class="ql-stroke" x1="11.63" x2="6.38" y1="9" y2="9"/></svg>',direction:{"":'<svg viewbox="0 0 18 18"><polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"/><line class="ql-stroke ql-fill" x1="15" x2="11" y1="4" y2="4"/><path class="ql-fill" d="M11,3a3,3,0,0,0,0,6h1V3H11Z"/><rect class="ql-fill" height="11" width="1" x="11" y="4"/><rect class="ql-fill" height="11" width="1" x="13" y="4"/></svg>',rtl:'<svg viewbox="0 0 18 18"><polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"/><line class="ql-stroke ql-fill" x1="9" x2="5" y1="4" y2="4"/><path class="ql-fill" d="M5,3A3,3,0,0,0,5,9H6V3H5Z"/><rect class="ql-fill" height="11" width="1" x="5" y="4"/><rect class="ql-fill" height="11" width="1" x="7" y="4"/></svg>'},formula:'<svg viewbox="0 0 18 18"><path class="ql-fill" d="M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z"/><rect class="ql-fill" height="1.6" rx="0.8" ry="0.8" width="5" x="5.15" y="6.2"/><path class="ql-fill" d="M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z"/></svg>',header:{1:'<svg viewBox="0 0 18 18"><path class="ql-fill" d="M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z"/></svg>',2:'<svg viewBox="0 0 18 18"><path class="ql-fill" d="M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z"/></svg>',3:'<svg viewBox="0 0 18 18"><path class="ql-fill" d="M16.65186,12.30664a2.6742,2.6742,0,0,1-2.915,2.68457,3.96592,3.96592,0,0,1-2.25537-.6709.56007.56007,0,0,1-.13232-.83594L11.64648,13c.209-.34082.48389-.36328.82471-.1543a2.32654,2.32654,0,0,0,1.12256.33008c.71484,0,1.12207-.35156,1.12207-.78125,0-.61523-.61621-.86816-1.46338-.86816H13.2085a.65159.65159,0,0,1-.68213-.41895l-.05518-.10937a.67114.67114,0,0,1,.14307-.78125l.71533-.86914a8.55289,8.55289,0,0,1,.68213-.7373V8.58887a3.93913,3.93913,0,0,1-.748.05469H11.9873a.54085.54085,0,0,1-.605-.60547V7.59863a.54085.54085,0,0,1,.605-.60547h3.75146a.53773.53773,0,0,1,.60547.59375v.17676a1.03723,1.03723,0,0,1-.27539.748L14.74854,10.0293A2.31132,2.31132,0,0,1,16.65186,12.30664ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z"/></svg>',4:'<svg viewBox="0 0 18 18"><path class="ql-fill" d="M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm7.05371,7.96582v.38477c0,.39648-.165.60547-.46191.60547h-.47314v1.29785a.54085.54085,0,0,1-.605.60547h-.69336a.54085.54085,0,0,1-.605-.60547V12.95605H11.333a.5412.5412,0,0,1-.60547-.60547v-.15332a1.199,1.199,0,0,1,.22021-.748l2.56348-4.05957a.7819.7819,0,0,1,.72607-.39648h1.27637a.54085.54085,0,0,1,.605.60547v3.7627h.33008A.54055.54055,0,0,1,17.05371,11.96582ZM14.28125,8.7207h-.022a4.18969,4.18969,0,0,1-.38525.81348l-1.188,1.80469v.02246h1.5293V9.60059A7.04058,7.04058,0,0,1,14.28125,8.7207Z"/></svg>',5:'<svg viewBox="0 0 18 18"><path class="ql-fill" d="M16.74023,12.18555a2.75131,2.75131,0,0,1-2.91553,2.80566,3.908,3.908,0,0,1-2.25537-.68164.54809.54809,0,0,1-.13184-.8252L11.73438,13c.209-.34082.48389-.36328.8252-.1543a2.23757,2.23757,0,0,0,1.1001.33008,1.01827,1.01827,0,0,0,1.1001-.96777c0-.61621-.53906-.97949-1.25439-.97949a2.15554,2.15554,0,0,0-.64893.09961,1.15209,1.15209,0,0,1-.814.01074l-.12109-.04395a.64116.64116,0,0,1-.45117-.71484l.231-3.00391a.56666.56666,0,0,1,.62744-.583H15.541a.54085.54085,0,0,1,.605.60547v.43945a.54085.54085,0,0,1-.605.60547H13.41748l-.04395.72559a1.29306,1.29306,0,0,1-.04395.30859h.022a2.39776,2.39776,0,0,1,.57227-.07715A2.53266,2.53266,0,0,1,16.74023,12.18555ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z"/></svg>',6:'<svg viewBox="0 0 18 18"><path class="ql-fill" d="M14.51758,9.64453a1.85627,1.85627,0,0,0-1.24316.38477H13.252a1.73532,1.73532,0,0,1,1.72754-1.4082,2.66491,2.66491,0,0,1,.5498.06641c.35254.05469.57227.01074.70508-.40723l.16406-.5166a.53393.53393,0,0,0-.373-.75977,4.83723,4.83723,0,0,0-1.17773-.14258c-2.43164,0-3.7627,2.17773-3.7627,4.43359,0,2.47559,1.60645,3.69629,3.19043,3.69629A2.70585,2.70585,0,0,0,16.96,12.19727,2.43861,2.43861,0,0,0,14.51758,9.64453Zm-.23047,3.58691c-.67187,0-1.22168-.81445-1.22168-1.45215,0-.47363.30762-.583.72559-.583.96875,0,1.27734.59375,1.27734,1.12207A.82182.82182,0,0,1,14.28711,13.23145ZM10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Z"/></svg>'},italic:'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="7" x2="13" y1="4" y2="4"/><line class="ql-stroke" x1="5" x2="11" y1="14" y2="14"/><line class="ql-stroke" x1="8" x2="10" y1="14" y2="4"/></svg>',image:'<svg viewbox="0 0 18 18"><rect class="ql-stroke" height="10" width="12" x="3" y="4"/><circle class="ql-fill" cx="6" cy="7" r="1"/><polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"/></svg>',indent:{"+1":'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="3" x2="15" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="9" x2="15" y1="9" y2="9"/><polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"/></svg>',"-1":'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="3" x2="15" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="9" x2="15" y1="9" y2="9"/><polyline class="ql-stroke" points="5 7 5 11 3 9 5 7"/></svg>'},link:'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="7" x2="11" y1="7" y2="11"/><path class="ql-even ql-stroke" d="M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z"/><path class="ql-even ql-stroke" d="M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z"/></svg>',list:{bullet:'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="6" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="6" x2="15" y1="9" y2="9"/><line class="ql-stroke" x1="6" x2="15" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="3" y1="4" y2="4"/><line class="ql-stroke" x1="3" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="3" x2="3" y1="14" y2="14"/></svg>',check:'<svg class="" viewbox="0 0 18 18"><line class="ql-stroke" x1="9" x2="15" y1="4" y2="4"/><polyline class="ql-stroke" points="3 4 4 5 6 3"/><line class="ql-stroke" x1="9" x2="15" y1="14" y2="14"/><polyline class="ql-stroke" points="3 14 4 15 6 13"/><line class="ql-stroke" x1="9" x2="15" y1="9" y2="9"/><polyline class="ql-stroke" points="3 9 4 10 6 8"/></svg>',ordered:'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="7" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="7" x2="15" y1="9" y2="9"/><line class="ql-stroke" x1="7" x2="15" y1="14" y2="14"/><line class="ql-stroke ql-thin" x1="2.5" x2="4.5" y1="5.5" y2="5.5"/><path class="ql-fill" d="M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z"/><path class="ql-stroke ql-thin" d="M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156"/><path class="ql-stroke ql-thin" d="M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109"/></svg>'},script:{sub:'<svg viewbox="0 0 18 18"><path class="ql-fill" d="M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z"/><path class="ql-fill" d="M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z"/></svg>',super:'<svg viewbox="0 0 18 18"><path class="ql-fill" d="M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z"/><path class="ql-fill" d="M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z"/></svg>'},strike:'<svg viewbox="0 0 18 18"><line class="ql-stroke ql-thin" x1="15.5" x2="2.5" y1="8.5" y2="9.5"/><path class="ql-fill" d="M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z"/><path class="ql-fill" d="M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z"/></svg>',table:'<svg viewbox="0 0 18 18"><rect class="ql-stroke" height="12" width="12" x="3" y="3"/><rect class="ql-fill" height="2" width="3" x="5" y="5"/><rect class="ql-fill" height="2" width="4" x="9" y="5"/><g class="ql-fill ql-transparent"><rect height="2" width="3" x="5" y="8"/><rect height="2" width="4" x="9" y="8"/><rect height="2" width="3" x="5" y="11"/><rect height="2" width="4" x="9" y="11"/></g></svg>',underline:'<svg viewbox="0 0 18 18"><path class="ql-stroke" d="M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3"/><rect class="ql-fill" height="1" rx="0.5" ry="0.5" width="12" x="3" y="15"/></svg>',video:'<svg viewbox="0 0 18 18"><rect class="ql-stroke" height="12" width="12" x="3" y="3"/><rect class="ql-fill" height="12" width="1" x="5" y="3"/><rect class="ql-fill" height="12" width="1" x="12" y="3"/><rect class="ql-fill" height="2" width="8" x="5" y="8"/><rect class="ql-fill" height="1" width="3" x="3" y="5"/><rect class="ql-fill" height="1" width="3" x="3" y="7"/><rect class="ql-fill" height="1" width="3" x="3" y="10"/><rect class="ql-fill" height="1" width="3" x="3" y="12"/><rect class="ql-fill" height="1" width="3" x="12" y="5"/><rect class="ql-fill" height="1" width="3" x="12" y="7"/><rect class="ql-fill" height="1" width="3" x="12" y="10"/><rect class="ql-fill" height="1" width="3" x="12" y="12"/></svg>'},Hb='<svg viewbox="0 0 18 18"><polygon class="ql-stroke" points="7 11 9 13 11 11 7 11"/><polygon class="ql-stroke" points="7 7 9 5 11 7 7 7"/></svg>';let zc=0;function Hc(n,e){n.setAttribute(e,`${n.getAttribute(e)!=="true"}`)}class Hs{constructor(e){this.select=e,this.container=document.createElement("span"),this.buildPicker(),this.select.style.display="none",this.select.parentNode.insertBefore(this.container,this.select),this.label.addEventListener("mousedown",()=>{this.togglePicker()}),this.label.addEventListener("keydown",t=>{switch(t.key){case"Enter":this.togglePicker();break;case"Escape":this.escape(),t.preventDefault();break}}),this.select.addEventListener("change",this.update.bind(this))}togglePicker(){this.container.classList.toggle("ql-expanded"),Hc(this.label,"aria-expanded"),Hc(this.options,"aria-hidden")}buildItem(e){const t=document.createElement("span");t.tabIndex="0",t.setAttribute("role","button"),t.classList.add("ql-picker-item");const r=e.getAttribute("value");return r&&t.setAttribute("data-value",r),e.textContent&&t.setAttribute("data-label",e.textContent),t.addEventListener("click",()=>{this.selectItem(t,!0)}),t.addEventListener("keydown",s=>{switch(s.key){case"Enter":this.selectItem(t,!0),s.preventDefault();break;case"Escape":this.escape(),s.preventDefault();break}}),t}buildLabel(){const e=document.createElement("span");return e.classList.add("ql-picker-label"),e.innerHTML=Hb,e.tabIndex="0",e.setAttribute("role","button"),e.setAttribute("aria-expanded","false"),this.container.appendChild(e),e}buildOptions(){const e=document.createElement("span");e.classList.add("ql-picker-options"),e.setAttribute("aria-hidden","true"),e.tabIndex="-1",e.id=`ql-picker-options-${zc}`,zc+=1,this.label.setAttribute("aria-controls",e.id),this.options=e,Array.from(this.select.options).forEach(t=>{const r=this.buildItem(t);e.appendChild(r),t.selected===!0&&this.selectItem(r)}),this.container.appendChild(e)}buildPicker(){Array.from(this.select.attributes).forEach(e=>{this.container.setAttribute(e.name,e.value)}),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}escape(){this.close(),setTimeout(()=>this.label.focus(),1)}close(){this.container.classList.remove("ql-expanded"),this.label.setAttribute("aria-expanded","false"),this.options.setAttribute("aria-hidden","true")}selectItem(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const r=this.container.querySelector(".ql-selected");e!==r&&(r!=null&&r.classList.remove("ql-selected"),e!=null&&(e.classList.add("ql-selected"),this.select.selectedIndex=Array.from(e.parentNode.children).indexOf(e),e.hasAttribute("data-value")?this.label.setAttribute("data-value",e.getAttribute("data-value")):this.label.removeAttribute("data-value"),e.hasAttribute("data-label")?this.label.setAttribute("data-label",e.getAttribute("data-label")):this.label.removeAttribute("data-label"),t&&(this.select.dispatchEvent(new Event("change")),this.close())))}update(){let e;if(this.select.selectedIndex>-1){const r=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];e=this.select.options[this.select.selectedIndex],this.selectItem(r)}else this.selectItem(null);const t=e!=null&&e!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",t)}}class Gc extends Hs{constructor(e,t){super(e),this.label.innerHTML=t,this.container.classList.add("ql-color-picker"),Array.from(this.container.querySelectorAll(".ql-picker-item")).slice(0,7).forEach(r=>{r.classList.add("ql-primary")})}buildItem(e){const t=super.buildItem(e);return t.style.backgroundColor=e.getAttribute("value")||"",t}selectItem(e,t){super.selectItem(e,t);const r=this.label.querySelector(".ql-color-label"),s=e&&e.getAttribute("data-value")||"";r&&(r.tagName==="line"?r.style.stroke=s:r.style.fill=s)}}class Wc extends Hs{constructor(e,t){super(e),this.container.classList.add("ql-icon-picker"),Array.from(this.container.querySelectorAll(".ql-picker-item")).forEach(r=>{r.innerHTML=t[r.getAttribute("data-value")||""]}),this.defaultItem=this.container.querySelector(".ql-selected"),this.selectItem(this.defaultItem)}selectItem(e,t){super.selectItem(e,t);const r=e||this.defaultItem;if(r!=null){if(this.label.innerHTML===r.innerHTML)return;this.label.innerHTML=r.innerHTML}}}const Gb=n=>{const{overflowY:e}=getComputedStyle(n,null);return e!=="visible"&&e!=="clip"};class Kc{constructor(e,t){this.quill=e,this.boundsContainer=t||document.body,this.root=e.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,Gb(this.quill.root)&&this.quill.root.addEventListener("scroll",()=>{this.root.style.marginTop=`${-1*this.quill.root.scrollTop}px`}),this.hide()}hide(){this.root.classList.add("ql-hidden")}position(e){const t=e.left+e.width/2-this.root.offsetWidth/2,r=e.bottom+this.quill.root.scrollTop;this.root.style.left=`${t}px`,this.root.style.top=`${r}px`,this.root.classList.remove("ql-flip");const s=this.boundsContainer.getBoundingClientRect(),l=this.root.getBoundingClientRect();let o=0;if(l.right>s.right&&(o=s.right-l.right,this.root.style.left=`${t+o}px`),l.left<s.left&&(o=s.left-l.left,this.root.style.left=`${t+o}px`),l.bottom>s.bottom){const c=l.bottom-l.top,i=e.bottom-e.top+c;this.root.style.top=`${r-i}px`,this.root.classList.add("ql-flip")}return o}show(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}const Wb=[!1,"center","right","justify"],Kb=["#000000","#e60000","#ff9900","#ffff00","#008a00","#0066cc","#9933ff","#ffffff","#facccc","#ffebcc","#ffffcc","#cce8cc","#cce0f5","#ebd6ff","#bbbbbb","#f06666","#ffc266","#ffff66","#66b966","#66a3e0","#c285ff","#888888","#a10000","#b26b00","#b2b200","#006100","#0047b2","#6b24b2","#444444","#5c0000","#663d00","#666600","#003700","#002966","#3d1466"],Xb=[!1,"serif","monospace"],Yb=["1","2","3",!1],Zb=["small",!1,"large","huge"];class Wr extends lr{constructor(e,t){super(e,t);const r=s=>{if(!document.body.contains(e.root)){document.body.removeEventListener("click",r);return}this.tooltip!=null&&!this.tooltip.root.contains(s.target)&&document.activeElement!==this.tooltip.textbox&&!this.quill.hasFocus()&&this.tooltip.hide(),this.pickers!=null&&this.pickers.forEach(l=>{l.container.contains(s.target)||l.close()})};e.emitter.listenDOM("click",document.body,r)}addModule(e){const t=super.addModule(e);return e==="toolbar"&&this.extendToolbar(t),t}buildButtons(e,t){Array.from(e).forEach(r=>{(r.getAttribute("class")||"").split(/\s+/).forEach(l=>{if(l.startsWith("ql-")&&(l=l.slice(3),t[l]!=null))if(l==="direction")r.innerHTML=t[l][""]+t[l].rtl;else if(typeof t[l]=="string")r.innerHTML=t[l];else{const o=r.value||"";o!=null&&t[l][o]&&(r.innerHTML=t[l][o])}})})}buildPickers(e,t){this.pickers=Array.from(e).map(s=>{if(s.classList.contains("ql-align")&&(s.querySelector("option")==null&&Kr(s,Wb),typeof t.align=="object"))return new Wc(s,t.align);if(s.classList.contains("ql-background")||s.classList.contains("ql-color")){const l=s.classList.contains("ql-background")?"background":"color";return s.querySelector("option")==null&&Kr(s,Kb,l==="background"?"#ffffff":"#000000"),new Gc(s,t[l])}return s.querySelector("option")==null&&(s.classList.contains("ql-font")?Kr(s,Xb):s.classList.contains("ql-header")?Kr(s,Yb):s.classList.contains("ql-size")&&Kr(s,Zb)),new Hs(s)});const r=()=>{this.pickers.forEach(s=>{s.update()})};this.quill.on(Se.events.EDITOR_CHANGE,r)}}Wr.DEFAULTS=Sn({},lr.DEFAULTS,{modules:{toolbar:{handlers:{formula(){this.quill.theme.tooltip.edit("formula")},image(){let n=this.container.querySelector("input.ql-image[type=file]");n==null&&(n=document.createElement("input"),n.setAttribute("type","file"),n.setAttribute("accept",this.quill.uploader.options.mimetypes.join(", ")),n.classList.add("ql-image"),n.addEventListener("change",()=>{const e=this.quill.getSelection(!0);this.quill.uploader.upload(e,n.files),n.value=""}),this.container.appendChild(n)),n.click()},video(){this.quill.theme.tooltip.edit("video")}}}}});class Xc extends Kc{constructor(e,t){super(e,t),this.textbox=this.root.querySelector('input[type="text"]'),this.listen()}listen(){this.textbox.addEventListener("keydown",e=>{e.key==="Enter"?(this.save(),e.preventDefault()):e.key==="Escape"&&(this.cancel(),e.preventDefault())})}cancel(){this.hide(),this.restoreFocus()}edit(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"link",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),this.textbox==null)return;t!=null?this.textbox.value=t:e!==this.root.getAttribute("data-mode")&&(this.textbox.value="");const r=this.quill.getBounds(this.quill.selection.savedRange);r!=null&&this.position(r),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute(`data-${e}`)||""),this.root.setAttribute("data-mode",e)}restoreFocus(){this.quill.focus({preventScroll:!0})}save(){let{value:e}=this.textbox;switch(this.root.getAttribute("data-mode")){case"link":{const{scrollTop:t}=this.quill.root;this.linkRange?(this.quill.formatText(this.linkRange,"link",e,Se.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",e,Se.sources.USER)),this.quill.root.scrollTop=t;break}case"video":e=Qb(e);case"formula":{if(!e)break;const t=this.quill.getSelection(!0);if(t!=null){const r=t.index+t.length;this.quill.insertEmbed(r,this.root.getAttribute("data-mode"),e,Se.sources.USER),this.root.getAttribute("data-mode")==="formula"&&this.quill.insertText(r+1," ",Se.sources.USER),this.quill.setSelection(r+2,Se.sources.USER)}break}}this.textbox.value="",this.hide()}}function Qb(n){let e=n.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||n.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);return e?`${e[1]||"https"}://www.youtube.com/embed/${e[2]}?showinfo=0`:(e=n.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?`${e[1]||"https"}://player.vimeo.com/video/${e[2]}/`:n}function Kr(n,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;e.forEach(r=>{const s=document.createElement("option");r===t?s.setAttribute("selected","selected"):s.setAttribute("value",String(r)),n.appendChild(s)})}const Jb=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]];class Yc extends Xc{constructor(e,t){super(e,t),this.quill.on(Se.events.EDITOR_CHANGE,(r,s,l,o)=>{if(r===Se.events.SELECTION_CHANGE)if(s!=null&&s.length>0&&o===Se.sources.USER){this.show(),this.root.style.left="0px",this.root.style.width="",this.root.style.width=`${this.root.offsetWidth}px`;const c=this.quill.getLines(s.index,s.length);if(c.length===1){const i=this.quill.getBounds(s);i!=null&&this.position(i)}else{const i=c[c.length-1],u=this.quill.getIndex(i),d=Math.min(i.length()-1,s.index+s.length-u),h=this.quill.getBounds(new $n(u,d));h!=null&&this.position(h)}}else document.activeElement!==this.textbox&&this.quill.hasFocus()&&this.hide()})}listen(){super.listen(),this.root.querySelector(".ql-close").addEventListener("click",()=>{this.root.classList.remove("ql-editing")}),this.quill.on(Se.events.SCROLL_OPTIMIZE,()=>{setTimeout(()=>{if(this.root.classList.contains("ql-hidden"))return;const e=this.quill.getSelection();if(e!=null){const t=this.quill.getBounds(e);t!=null&&this.position(t)}},1)})}cancel(){this.show()}position(e){const t=super.position(e),r=this.root.querySelector(".ql-tooltip-arrow");return r.style.marginLeft="",t!==0&&(r.style.marginLeft=`${-1*t-r.offsetWidth/2}px`),t}}Ee(Yc,"TEMPLATE",['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].join(""));class Zc extends Wr{constructor(e,t){t.modules.toolbar!=null&&t.modules.toolbar.container==null&&(t.modules.toolbar.container=Jb),super(e,t),this.quill.container.classList.add("ql-bubble")}extendToolbar(e){this.tooltip=new Yc(this.quill,this.options.bounds),e.container!=null&&(this.tooltip.root.appendChild(e.container),this.buildButtons(e.container.querySelectorAll("button"),Gr),this.buildPickers(e.container.querySelectorAll("select"),Gr))}}Zc.DEFAULTS=Sn({},Wr.DEFAULTS,{modules:{toolbar:{handlers:{link(n){n?this.quill.theme.tooltip.edit():this.quill.format("link",!1,le.sources.USER)}}}}});const ex=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]];class Qc extends Xc{constructor(){super(...arguments);Ee(this,"preview",this.root.querySelector("a.ql-preview"))}listen(){super.listen(),this.root.querySelector("a.ql-action").addEventListener("click",t=>{this.root.classList.contains("ql-editing")?this.save():this.edit("link",this.preview.textContent),t.preventDefault()}),this.root.querySelector("a.ql-remove").addEventListener("click",t=>{if(this.linkRange!=null){const r=this.linkRange;this.restoreFocus(),this.quill.formatText(r,"link",!1,Se.sources.USER),delete this.linkRange}t.preventDefault(),this.hide()}),this.quill.on(Se.events.SELECTION_CHANGE,(t,r,s)=>{if(t!=null){if(t.length===0&&s===Se.sources.USER){const[l,o]=this.quill.scroll.descendant(On,t.index);if(l!=null){this.linkRange=new $n(t.index-o,l.length());const c=On.formats(l.domNode);this.preview.textContent=c,this.preview.setAttribute("href",c),this.show();const i=this.quill.getBounds(this.linkRange);i!=null&&this.position(i);return}}else delete this.linkRange;this.hide()}})}show(){super.show(),this.root.removeAttribute("data-mode")}}Ee(Qc,"TEMPLATE",['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-action"></a>','<a class="ql-remove"></a>'].join(""));class Jc extends Wr{constructor(e,t){t.modules.toolbar!=null&&t.modules.toolbar.container==null&&(t.modules.toolbar.container=ex),super(e,t),this.quill.container.classList.add("ql-snow")}extendToolbar(e){e.container!=null&&(e.container.classList.add("ql-snow"),this.buildButtons(e.container.querySelectorAll("button"),Gr),this.buildPickers(e.container.querySelectorAll("select"),Gr),this.tooltip=new Qc(this.quill,this.options.bounds),e.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"k",shortKey:!0},(t,r)=>{e.handlers.link.call(e,!r.format.link)}))}}Jc.DEFAULTS=Sn({},Wr.DEFAULTS,{modules:{toolbar:{handlers:{link(n){if(n){const e=this.quill.getSelection();if(e==null||e.length===0)return;let t=this.quill.getText(e);/^\S+@\S+\.\S+$/.test(t)&&t.indexOf("mailto:")!==0&&(t=`mailto:${t}`);const{tooltip:r}=this.quill.theme;r.edit("link",t)}else this.quill.format("link",!1,le.sources.USER)}}}}}),le.register({"attributors/attribute/direction":bc,"attributors/class/align":gc,"attributors/class/background":_y,"attributors/class/color":$y,"attributors/class/direction":xc,"attributors/class/font":Ac,"attributors/class/size":Tc,"attributors/style/align":vc,"attributors/style/background":co,"attributors/style/color":lo,"attributors/style/direction":Ec,"attributors/style/font":Sc,"attributors/style/size":Nc},!0),le.register({"formats/align":gc,"formats/direction":xc,"formats/indent":Lb,"formats/background":co,"formats/color":lo,"formats/font":Ac,"formats/size":Tc,"formats/blockquote":yo,"formats/code-block":yt,"formats/header":bo,"formats/list":_r,"formats/bold":qr,"formats/code":uo,"formats/italic":xo,"formats/link":On,"formats/script":Eo,"formats/strike":wo,"formats/underline":Ao,"formats/formula":qs,"formats/image":So,"formats/video":zs,"modules/syntax":Vc,"modules/table":Pb,"modules/toolbar":No,"themes/bubble":Zc,"themes/snow":Jc,"ui/icons":Gr,"ui/picker":Hs,"ui/icon-picker":Wc,"ui/color-picker":Gc,"ui/tooltip":Kc},!0);const tx={name:"QuillEditor",props:{modelValue:{type:String,default:""},options:{type:Object,default:()=>({theme:"snow",placeholder:"Start typing...",modules:{toolbar:[[{font:[]},{size:[]}],["bold","italic","underline","strike"],[{color:[]},{background:[]}],[{script:"sub"},{script:"super"}],[{header:1},{header:2},"blockquote","code-block"],[{list:"ordered"},{list:"bullet"},{indent:"-1"},{indent:"+1"}],[{direction:"rtl"},{align:[]}],["link","image","video","formula"],["clean"]]}})}},emits:["update:modelValue"],setup(n,{emit:e}){const t=a.ref(null);let r=null;return a.onMounted(()=>{r=new le(t.value,n.options),r.root.innerHTML=n.modelValue,r.on("text-change",()=>{e("update:modelValue",r.root.innerHTML)})}),a.watch(()=>n.modelValue,s=>{r&&r.root.innerHTML!==s&&(r.root.innerHTML=s)}),a.onBeforeUnmount(()=>{r=null}),{editorContainer:t}}},nx={class:"q-editor"},rx={ref:"editorContainer"};function sx(n,e,t,r,s,l){return a.openBlock(),a.createElementBlock("div",nx,[a.createElementVNode("div",rx,null,512)])}const ix=Sr(tx,[["render",sx]]),ox={class:"rounded-xl bg-gray-50 px-6 py-5"},ax={key:0,class:"pb-5"},lx={class:"text-lg font-semibold text-gray-900"},cx={key:0,class:"text-sm text-gray-600"},Xr={__name:"Card",props:{title:{type:String,default:""},supporting_text:{type:String,default:""}},setup(n){return(e,t)=>(a.openBlock(),a.createElementBlock("div",ox,[n.title?(a.openBlock(),a.createElementBlock("div",ax,[a.createElementVNode("div",lx,a.toDisplayString(n.title),1),n.supporting_text?(a.openBlock(),a.createElementBlock("div",cx,a.toDisplayString(n.supporting_text),1)):a.createCommentVNode("",!0)])):a.createCommentVNode("",!0),a.renderSlot(e.$slots,"default")]))}},ux={class:"item-edit"},dx={class:"flex items-start gap-4 px-6 pt-4 h-full"},fx={class:"flex flex-1 flex-col gap-4"},hx={class:"flex flex-col gap-8"},px={class:"flex flex-col gap-8"},mx={class:"flex flex-col gap-4"},gx={class:"flex w-full max-w-[356px] flex-col gap-4"},vx={class:"flex justify-between space-x-xsSpace pt-xsSpace gap-4 sticky bottom-0 w-full bg-gray-200 py-2 px-6"},yx={__name:"ItemEdit",props:{item:{type:Object,required:!0},saveEndpoint:{type:String,required:!1},cancelEndpoint:{type:String,required:!1},sites:{type:Object,required:!0}},emits:["update"],setup(n,{emit:e}){const t=a.inject("VFileUpload",Ia),r=e,s=n,l=a.ref({public:s.item.public,title:s.item.title,description:s.item.description,featured_image:s.item.featured_image});s.item.hasOwnProperty("primary_button")&&(l.value.primary_button=s.item.primary_button),s.item.hasOwnProperty("secondary_button")&&(l.value.secondary_button=s.item.secondary_button);const o=()=>{r("update",l.value),s.saveEndpoint&&tt.post(s.saveEndpoint,l.value).then(()=>{s.cancelEndpoint&&(window.location.href=s.cancelEndpoint)})},c=()=>{r("close",l.value),s.cancelEndpoint&&(window.location.href=s.cancelEndpoint)},i=a.computed(()=>{var h;return((h=l.value.description)==null?void 0:h.replace(/<[^>]*>/g," ").trim()).split(/\s+/).filter(f=>f.length>0).length});return(u,d)=>{var h,f,g,p;return a.openBlock(),a.createElementBlock("div",ux,[a.createElementVNode("div",dx,[a.createElementVNode("div",fx,[a.createVNode(Xr,{title:"Description"},{default:a.withCtx(()=>[a.createElementVNode("div",hx,[a.createVNode(Qt,{"is-vertical":"",field:"title","label-text":"Title *",class:"w-full",value:l.value.title,limit:51},{default:a.withCtx(()=>[a.withDirectives(a.createElementVNode("input",{"onUpdate:modelValue":d[0]||(d[0]=v=>l.value.title=v),name:"title",type:"text",placeholder:"Title",maxlength:51,class:"border-1 border-solid border-gray-300 rounded-lg bg-white w-full"},null,512),[[a.vModelText,l.value.title]])]),_:1},8,["value"]),a.createVNode(Qt,{"is-vertical":"",field:"description","label-text":"Description *",class:"w-full mb-4",value:i.value,"show-count":!0},{default:a.withCtx(()=>[a.createVNode(ix,{modelValue:l.value.description,"onUpdate:modelValue":d[1]||(d[1]=v=>l.value.description=v)},null,8,["modelValue"])]),_:1},8,["value"])])]),_:1}),l.value.hasOwnProperty("primary_button")?(a.openBlock(),a.createBlock(Xr,{key:0,title:((f=(h=n.item)==null?void 0:h.primary_button)==null?void 0:f.name)??"Primary button"},{default:a.withCtx(()=>[a.createElementVNode("div",px,[a.createVNode(rs,{name:"show",modelValue:l.value.primary_button.show,"onUpdate:modelValue":d[2]||(d[2]=v=>l.value.primary_button.show=v),title:"Show Button"},null,8,["modelValue"]),a.createVNode(Qt,{"is-vertical":"",field:"primary_button.label","label-text":"Button Label *",class:"w-full mb-4",value:l.value.primary_button.label,limit:20},{default:a.withCtx(()=>[a.withDirectives(a.createElementVNode("input",{"onUpdate:modelValue":d[3]||(d[3]=v=>l.value.primary_button.label=v),name:"primary_button.label",type:"text",placeholder:"Label",maxlength:20,class:"border-1 border-solid border-gray-300 rounded-lg bg-white w-full"},null,512),[[a.vModelText,l.value.primary_button.label]])]),_:1},8,["value"]),a.createVNode(ss,{name:"primary",type:l.value.primary_button.type,"onUpdate:type":d[4]||(d[4]=v=>l.value.primary_button.type=v),url:l.value.primary_button.url,"onUpdate:url":d[5]||(d[5]=v=>l.value.primary_button.url=v),openInNewTab:l.value.primary_button.open_in_new_tab,"onUpdate:openInNewTab":d[6]||(d[6]=v=>l.value.primary_button.open_in_new_tab=v),sites:n.sites},null,8,["type","url","openInNewTab","sites"])])]),_:1},8,["title"])):a.createCommentVNode("",!0),l.value.hasOwnProperty("secondary_button")?(a.openBlock(),a.createBlock(Xr,{key:1,title:((p=(g=n.item)==null?void 0:g.secondary_button)==null?void 0:p.name)??"Secondary button"},{default:a.withCtx(()=>{var v;return[a.createElementVNode("div",mx,[a.createVNode(rs,{name:"show",modelValue:l.value.secondary_button.show,"onUpdate:modelValue":d[7]||(d[7]=b=>l.value.secondary_button.show=b),title:"Show Button"},null,8,["modelValue"]),(v=l.value.secondary_button)!=null&&v.show?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[a.createVNode(Qt,{"is-vertical":"",field:"secondary_button.label","label-text":"Button Label *",class:"w-full mb-4",value:l.value.secondary_button.label,limit:20},{default:a.withCtx(()=>[a.withDirectives(a.createElementVNode("input",{"onUpdate:modelValue":d[8]||(d[8]=b=>l.value.secondary_button.label=b),name:"secondary_button.label",type:"text",placeholder:"Label",maxlength:20,class:"border-1 border-solid border-gray-300 rounded-lg bg-white w-full"},null,512),[[a.vModelText,l.value.secondary_button.label]])]),_:1},8,["value"]),a.createVNode(ss,{name:"secondary",type:l.value.secondary_button.type,"onUpdate:type":d[9]||(d[9]=b=>l.value.secondary_button.type=b),url:l.value.secondary_button.url,"onUpdate:url":d[10]||(d[10]=b=>l.value.secondary_button.url=b),openInNewTab:l.value.secondary_button.open_in_new_tab,"onUpdate:openInNewTab":d[11]||(d[11]=b=>l.value.secondary_button.open_in_new_tab=b),sites:n.sites},null,8,["type","url","openInNewTab","sites"])],64)):a.createCommentVNode("",!0)])]}),_:1},8,["title"])):a.createCommentVNode("",!0)]),a.createElementVNode("div",gx,[a.createVNode(Xr,{title:"Visibility",supporting_text:"Toggle off if you'd like to hide this item"},{default:a.withCtx(()=>[a.createVNode(rs,{modelValue:l.value.public,"onUpdate:modelValue":d[12]||(d[12]=v=>l.value.public=v),name:"public",label:"Public"},null,8,["modelValue"])]),_:1}),a.createVNode(Xr,{title:"Featured Image",supporting_text:"Recommended dimension: 1200*1060px"},{default:a.withCtx(()=>[a.createVNode(a.unref(t),{name:"image",height:"h-[200px]",modelValue:l.value.featured_image,"onUpdate:modelValue":d[13]||(d[13]=v=>l.value.featured_image=v)},null,8,["modelValue"])]),_:1})])]),a.renderSlot(u.$slots,"default",{},()=>[a.createElementVNode("div",vx,[a.createElementVNode("a",{onClick:c,class:"w-[200px] py-[9px] bg-white rounded-full border border-gray-300 shadow-xs text-md font-semibold hover:bg-gray-100 text-gray-700 text-center cursor-pointer"}," Cancel "),a.createElementVNode("a",{onClick:a.withModifiers(o,["prevent"]),class:"w-full py-[9px] rounded-full shadow-xs text-md font-semibold text-white bg-brand-600 hover:bg-brand-700 border border-brand-600 text-center cursor-pointer"},"Save changes")])])])}}};Ye.ItemEdit=yx,Ye.PageBuilder=ep,Ye.PageRender=zm,Object.defineProperty(Ye,Symbol.toStringTag,{value:"Module"})});