@luizleon/sf.prefeiturasp.vuecomponents 4.1.8 → 4.1.9

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,4 +1,4 @@
1
- "use strict";var Ea=Object.defineProperty;var Ta=(t,e,n)=>e in t?Ea(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var Se=(t,e,n)=>Ta(t,typeof e!="symbol"?e+"":e,n);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("vue");class Aa{constructor(){Se(this,"_visible",l.ref(!1))}get IsVisible(){return this._visible.value===!0}Toggle(){this._visible.value=!this._visible.value}Close(){this._visible.value=!1}Open(){this._visible.value=!0}}const Pa=new Aa,Vr=()=>Pa;class lt{constructor(e){Se(this,"retorno");this.retorno=e??""}Concat(e){return e&&e.trim().length&&(this.retorno+=` ${e}`),this}AddClass(e,n=!0){return n?this.Concat(e):this}Build(){return this.retorno.trim()}}function Us(t=[]){let e="body > *:not(script):not(style)";for(const r of t)e+=`, ${r}`;const n=Math.max(...Array.from(document.querySelectorAll(e)).map(r=>{const o=getComputedStyle(r).zIndex;return+o==+o?+o:0}));return n>=100?n:100}let Ia=(t=21)=>crypto.getRandomValues(new Uint8Array(t)).reduce((e,n)=>(n&=63,n<36?e+=n.toString(36):n<62?e+=(n-26).toString(36).toUpperCase():n>62?e+="-":e+="_",e),"");const Vn=(t,e)=>{const n=t.__vccOpts||t;for(const[r,o]of e)n[r]=o;return n},xa={},Oa={class:"sf-loading-circle"},La=l.createElementVNode("div",null,[l.createElementVNode("svg",{viewBox:"25 25 50 50"},[l.createElementVNode("circle",{cx:"50",cy:"50",r:"20",fill:"none","stroke-width":"4","stroke-miterlimit":"10"})])],-1),$a=[La];function Ra(t,e){return l.openBlock(),l.createElementBlock("div",Oa,$a)}const Na=Vn(xa,[["render",Ra]]),jr=l.defineComponent({__name:"Tooltip",props:{text:{}},setup(t){const e=t;class n{constructor(){Se(this,"zIndex");Se(this,"wrapper");Se(this,"inner");this.zIndex=Us()+1,this.Render()}Render(){this.wrapper=document.createElement("div"),this.wrapper.classList.add("sf-tooltip-wrapper"),this.wrapper.style.zIndex=`${this.zIndex??0}`,this.inner=document.createElement("div"),this.inner.classList.add("sf-tooltip-inner"),this.wrapper.appendChild(this.inner)}Show(s){this.inner.textContent=e.text;const i=s.target;document.body.appendChild(this.wrapper),this.Position(i.getBoundingClientRect()),this.wrapper.classList.add("visible")}Hide(){this.wrapper.classList.remove("visible"),this.wrapper.remove()}Position(s){this.FixWidth();const i=10,a=s.top,c=s.bottom,u=s.left,d=s.right,m=this.wrapper;m.style.top=`${c+i}px`,m.style.left=`${u}px`,this.OutOfBottom()&&(m.style.top=`${a-m.clientHeight-i}px`,m.classList.add("top")),this.OutOfRight()&&(m.style.left=`${d-m.clientWidth}px`,m.classList.add("left"))}FixWidth(){this.wrapper.style.width="fit-content",this.wrapper.style.wordBreak="normal",this.wrapper.style.whiteSpace="nowrap";const s=window.innerWidth/2;this.wrapper.clientWidth>s&&(this.wrapper.style.width=`${s}px`,this.wrapper.style.wordBreak="break-word",this.wrapper.style.whiteSpace="normal")}OutOfBottom(){return this.wrapper.getBoundingClientRect().bottom>(window.innerHeight||document.documentElement.clientHeight)}OutOfRight(){return this.wrapper.getBoundingClientRect().right>(window.innerWidth||document.documentElement.clientWidth)-10}}const r=new n;return l.onBeforeUnmount(()=>{r.Hide()}),(o,s)=>(l.openBlock(),l.createElementBlock("div",{class:"sf-tooltip-anchor",onMouseenter:s[0]||(s[0]=(...i)=>l.unref(r).Show&&l.unref(r).Show(...i)),onMouseleave:s[1]||(s[1]=(...i)=>l.unref(r).Hide&&l.unref(r).Hide(...i)),onMousedown:s[2]||(s[2]=(...i)=>l.unref(r).Hide&&l.unref(r).Hide(...i))},[l.renderSlot(o.$slots,"default")],32))}}),Ba=["disabled","tabindex"],Da=["data-color"],Ma=l.defineComponent({__name:"Icon",props:{icon:{},visible:{type:Boolean,default:!0},class:{default:""},style:{default:""},disabled:{type:Boolean},loading:{type:Boolean},button:{type:Boolean},size:{default:"md"},dot:{type:Boolean},dotColor:{default:"error"},filled:{type:Boolean},buttonProps:{},tooltip:{},color:{default:"inherit"}},setup(t){const e=t,n=l.computed(()=>e.tooltip?jr:"div"),r=l.computed(()=>e.tooltip?"":"display-content"),o=l.computed(()=>new lt(`${e.class} sf-icon`).AddClass("sf-component-loading",e.loading).AddClass("sf-component-disabled",e.disabled).AddClass("sf-icon-button",e.button).AddClass("sf-icon-small",e.size==="sm").AddClass("sf-icon-medium",e.size==="md").AddClass("sf-icon-large",e.size==="lg").AddClass("sf-icon-xlarge",e.size==="xl").AddClass("sf-icon-2xlarge",e.size==="2xl").AddClass("sf-icon-3xlarge",e.size==="3xl").AddClass("sf-ripple",e.button===!0).AddClass(`${e.color}-color`,!!e.color&&e.color!=="inherit").Build());return(s,i)=>(l.openBlock(),l.createBlock(l.resolveDynamicComponent(n.value),{text:e.tooltip,class:l.normalizeClass(r.value)},{default:l.withCtx(()=>[e.visible?(l.openBlock(),l.createElementBlock("div",{key:0,style:l.normalizeStyle(e.style),class:l.normalizeClass(o.value)},[l.createElementVNode("button",l.mergeProps({class:["material-symbols-outlined",{"icon-filled":!!e.filled}],disabled:e.disabled||e.loading},e.buttonProps,{tabindex:e.button?void 0:-1}),[e.loading?(l.openBlock(),l.createBlock(Na,{key:0})):(l.openBlock(),l.createElementBlock(l.Fragment,{key:1},[l.createTextVNode(l.toDisplayString(e.icon),1)],64))],16,Ba),e.dot?(l.openBlock(),l.createElementBlock("span",{key:0,"data-color":e.dotColor},null,8,Da)):l.createCommentVNode("",!0)],6)):l.createCommentVNode("",!0)]),_:1},8,["text","class"]))}}),Ln=Vn(Ma,[["__scopeId","data-v-acf8f09c"]]),Ua=["id","onClick"],Ha={class:"sf-drawer-header"},Va={class:"sf-drawer-title"},ja={class:"sf-drawer-content"},Fa={key:0,class:"sf-drawer-footer"},Hs=l.defineComponent({__name:"Drawer",props:{visible:{type:Boolean,default:!1},position:{default:"left"},style:{}},emits:["update:visible","open","before-close"],setup(t,{emit:e}){const n=t,r=e,o=l.useSlots(),s=l.ref(n.visible),i=l.ref(!1),a=l.ref(0),c=Ia();function u(){s.value=!1}function d(w){(w.key==="Escape"||w.code==="Escape")&&u()}function m(){r("open"),window.document.addEventListener("keydown",d,!0)}function g(w){a.value=Us(),w.style.zIndex=`${a.value}`}function _(w){var B;r("before-close"),(B=w==null?void 0:w.parentElement)==null||B.classList.add("sf-mask-overlay-leave")}function v(){window.document.removeEventListener("keydown",d,!0),i.value=!1}function T(){return new lt("sf-mask sf-mask-overlay").AddClass("right",n.position==="right").AddClass("bottom",n.position==="bottom").AddClass("full",n.position==="full").AddClass("sf-mask-overlay-enter",n.visible===!0).Build()}return l.watch(()=>n.visible,w=>{s.value=w}),l.watch(()=>s.value,w=>{r("update:visible",w),w&&(i.value=!0)}),(w,B)=>(l.openBlock(),l.createBlock(l.Teleport,{to:"body"},[i.value?(l.openBlock(),l.createElementBlock("div",{key:0,id:l.unref(c),class:l.normalizeClass(T()),style:l.normalizeStyle({zIndex:a.value-1}),onClick:l.withModifiers(u,["stop"])},[l.createVNode(l.Transition,{name:"sf-drawer",appear:"",onBeforeEnter:g,onEnter:m,onBeforeLeave:_,onAfterLeave:v},{default:l.withCtx(()=>[s.value?(l.openBlock(),l.createElementBlock("div",{key:0,class:l.normalizeClass(["sf-drawer",{"sf-drawer-with-footer":!!l.unref(o).footer}]),style:l.normalizeStyle(n.style),role:"dialog",onClick:B[0]||(B[0]=l.withModifiers(C=>w.void,["stop"]))},[l.createElementVNode("div",Ha,[l.createElementVNode("span",Va,[l.renderSlot(w.$slots,"title")]),l.createVNode(Ln,{button:!0,icon:"close",onClick:l.withModifiers(u,["stop"])},null,8,["onClick"])]),l.createElementVNode("div",ja,[l.renderSlot(w.$slots,"default")]),l.unref(o).footer?(l.openBlock(),l.createElementBlock("div",Fa,[l.renderSlot(w.$slots,"footer")])):l.createCommentVNode("",!0)],6)):l.createCommentVNode("",!0)]),_:3})],14,Ua)):l.createCommentVNode("",!0)]))}}),za=["id","name","disabled","data-color","form","type"],Ka={class:"sf-button-label"},Vs=l.defineComponent({__name:"Button",props:{icon:{},visible:{type:Boolean,default:!0},class:{},style:{},disabled:{type:Boolean},loading:{type:Boolean},color:{default:"primary"},size:{default:"md"},variant:{default:"filled"},autofocus:{type:Boolean},form:{},name:{},id:{},type:{default:"button"},value:{},iconFilled:{type:Boolean}},setup(t){const e=t;function n(){return new lt(`${e.class??""} sf-button`).AddClass("sf-component-loading",e.loading).AddClass("sf-component-disabled",e.disabled).AddClass("sf-button-small",e.size==="sm").AddClass("sf-button-medium",e.size==="md").AddClass("sf-button-large",e.size==="lg").AddClass("sf-button-filled",e.variant==="filled").AddClass("sf-button-text",e.variant==="text").AddClass("sf-button-outlined",e.variant==="outlined").AddClass("sf-button-with-icon",!!e.icon).AddClass("sf-ripple").Build()}return(r,o)=>e.visible?(l.openBlock(),l.createElementBlock("button",{key:0,id:e.id,name:e.name,class:l.normalizeClass(n()),style:l.normalizeStyle(e.style),disabled:e.disabled||e.loading,"data-color":e.color,form:e.form,type:e.type},[e.icon?(l.openBlock(),l.createBlock(Ln,{key:0,icon:e.icon,loading:e.loading,size:e.size,color:void 0,"button-props":{tabindex:-1},filled:e.iconFilled},null,8,["icon","loading","size","filled"])):e.loading?(l.openBlock(),l.createBlock(Ln,{key:1,loading:!0,size:e.size,"button-props":{tabindex:-1}},null,8,["size"])):l.createCommentVNode("",!0),l.createElementVNode("span",Ka,[l.renderSlot(r.$slots,"default")])],14,za)):l.createCommentVNode("",!0)}}),js="SweetAlert2:",Wa=t=>{const e=[];for(let n=0;n<t.length;n++)e.indexOf(t[n])===-1&&e.push(t[n]);return e},Fr=t=>t.charAt(0).toUpperCase()+t.slice(1),Oe=t=>Array.prototype.slice.call(t),Ee=t=>{console.warn(`${js} ${typeof t=="object"?t.join(" "):t}`)},kt=t=>{console.error(`${js} ${t}`)},Ro=[],qa=t=>{Ro.includes(t)||(Ro.push(t),Ee(t))},Ga=(t,e)=>{qa(`"${t}" is deprecated and will be removed in the next major release. Please use "${e}" instead.`)},jn=t=>typeof t=="function"?t():t,zr=t=>t&&typeof t.toPromise=="function",fn=t=>zr(t)?t.toPromise():Promise.resolve(t),Kr=t=>t&&Promise.resolve(t)===t,It={title:"",titleText:"",text:"",html:"",footer:"",icon:void 0,iconColor:void 0,iconHtml:void 0,template:void 0,toast:!1,showClass:{popup:"swal2-show",backdrop:"swal2-backdrop-show",icon:"swal2-icon-show"},hideClass:{popup:"swal2-hide",backdrop:"swal2-backdrop-hide",icon:"swal2-icon-hide"},customClass:{},target:"body",color:void 0,backdrop:!0,heightAuto:!0,allowOutsideClick:!0,allowEscapeKey:!0,allowEnterKey:!0,stopKeydownPropagation:!0,keydownListenerCapture:!1,showConfirmButton:!0,showDenyButton:!1,showCancelButton:!1,preConfirm:void 0,preDeny:void 0,confirmButtonText:"OK",confirmButtonAriaLabel:"",confirmButtonColor:void 0,denyButtonText:"No",denyButtonAriaLabel:"",denyButtonColor:void 0,cancelButtonText:"Cancel",cancelButtonAriaLabel:"",cancelButtonColor:void 0,buttonsStyling:!0,reverseButtons:!1,focusConfirm:!0,focusDeny:!1,focusCancel:!1,returnFocus:!0,showCloseButton:!1,closeButtonHtml:"&times;",closeButtonAriaLabel:"Close this dialog",loaderHtml:"",showLoaderOnConfirm:!1,showLoaderOnDeny:!1,imageUrl:void 0,imageWidth:void 0,imageHeight:void 0,imageAlt:"",timer:void 0,timerProgressBar:!1,width:void 0,padding:void 0,background:void 0,input:void 0,inputPlaceholder:"",inputLabel:"",inputValue:"",inputOptions:{},inputAutoTrim:!0,inputAttributes:{},inputValidator:void 0,returnInputValueOnDeny:!1,validationMessage:void 0,grow:!1,position:"center",progressSteps:[],currentProgressStep:void 0,progressStepsDistance:void 0,willOpen:void 0,didOpen:void 0,didRender:void 0,willClose:void 0,didClose:void 0,didDestroy:void 0,scrollbarPadding:!0},Ya=["allowEscapeKey","allowOutsideClick","background","buttonsStyling","cancelButtonAriaLabel","cancelButtonColor","cancelButtonText","closeButtonAriaLabel","closeButtonHtml","color","confirmButtonAriaLabel","confirmButtonColor","confirmButtonText","currentProgressStep","customClass","denyButtonAriaLabel","denyButtonColor","denyButtonText","didClose","didDestroy","footer","hideClass","html","icon","iconColor","iconHtml","imageAlt","imageHeight","imageUrl","imageWidth","preConfirm","preDeny","progressSteps","returnFocus","reverseButtons","showCancelButton","showCloseButton","showConfirmButton","showDenyButton","text","title","titleText","willClose"],Ja={},Xa=["allowOutsideClick","allowEnterKey","backdrop","focusConfirm","focusDeny","focusCancel","returnFocus","heightAuto","keydownListenerCapture"],Fs=t=>Object.prototype.hasOwnProperty.call(It,t),zs=t=>Ya.indexOf(t)!==-1,kr=t=>Ja[t],Za=t=>{Fs(t)||Ee(`Unknown parameter "${t}"`)},Qa=t=>{Xa.includes(t)&&Ee(`The parameter "${t}" is incompatible with toasts`)},el=t=>{kr(t)&&Ga(t,kr(t))},tl=t=>{!t.backdrop&&t.allowOutsideClick&&Ee('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`');for(const e in t)Za(e),t.toast&&Qa(e),el(e)},nl="swal2-",Ks=t=>{const e={};for(const n in t)e[t[n]]=nl+t[n];return e},b=Ks(["container","shown","height-auto","iosfix","popup","modal","no-backdrop","no-transition","toast","toast-shown","show","hide","close","title","html-container","actions","confirm","deny","cancel","default-outline","footer","icon","icon-content","image","input","file","range","select","radio","checkbox","label","textarea","inputerror","input-label","validation-message","progress-steps","active-progress-step","progress-step","progress-step-line","loader","loading","styled","top","top-start","top-end","top-left","top-right","center","center-start","center-end","center-left","center-right","bottom","bottom-start","bottom-end","bottom-left","bottom-right","grow-row","grow-column","grow-fullscreen","rtl","timer-progress-bar","timer-progress-bar-container","scrollbar-measure","icon-success","icon-warning","icon-info","icon-question","icon-error"]),Xt=Ks(["success","warning","info","question","error"]),fe=()=>document.body.querySelector(`.${b.container}`),mn=t=>{const e=fe();return e?e.querySelector(t):null},Be=t=>mn(`.${t}`),Y=()=>Be(b.popup),pn=()=>Be(b.icon),Ws=()=>Be(b.title),$n=()=>Be(b["html-container"]),qs=()=>Be(b.image),Gs=()=>Be(b["progress-steps"]),Fn=()=>Be(b["validation-message"]),Ke=()=>mn(`.${b.actions} .${b.confirm}`),ut=()=>mn(`.${b.actions} .${b.deny}`),rl=()=>Be(b["input-label"]),$t=()=>mn(`.${b.loader}`),bt=()=>mn(`.${b.actions} .${b.cancel}`),hn=()=>Be(b.actions),Ys=()=>Be(b.footer),zn=()=>Be(b["timer-progress-bar"]),Wr=()=>Be(b.close),ol=`
1
+ "use strict";var Ea=Object.defineProperty;var Ta=(t,e,n)=>e in t?Ea(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var Se=(t,e,n)=>Ta(t,typeof e!="symbol"?e+"":e,n);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("vue");class Aa{constructor(){Se(this,"_visible",l.ref(!1))}get IsVisible(){return this._visible.value===!0}Toggle(){this._visible.value=!this._visible.value}Close(){this._visible.value=!1}Open(){this._visible.value=!0}}const Pa=new Aa,Vr=()=>Pa;class tt{constructor(e){Se(this,"retorno");this.retorno=e??""}Concat(e){return e&&e.trim().length&&(this.retorno+=` ${e}`),this}AddClass(e,n=!0){return n?this.Concat(e):this}Build(){return this.retorno.trim()}}function Us(t=[]){let e="body > *:not(script):not(style)";for(const r of t)e+=`, ${r}`;const n=Math.max(...Array.from(document.querySelectorAll(e)).map(r=>{const o=getComputedStyle(r).zIndex;return+o==+o?+o:0}));return n>=100?n:100}let Ia=(t=21)=>crypto.getRandomValues(new Uint8Array(t)).reduce((e,n)=>(n&=63,n<36?e+=n.toString(36):n<62?e+=(n-26).toString(36).toUpperCase():n>62?e+="-":e+="_",e),"");const Vn=(t,e)=>{const n=t.__vccOpts||t;for(const[r,o]of e)n[r]=o;return n},xa={},Oa={class:"sf-loading-circle"},La=l.createElementVNode("div",null,[l.createElementVNode("svg",{viewBox:"25 25 50 50"},[l.createElementVNode("circle",{cx:"50",cy:"50",r:"20",fill:"none","stroke-width":"4","stroke-miterlimit":"10"})])],-1),$a=[La];function Ra(t,e){return l.openBlock(),l.createElementBlock("div",Oa,$a)}const Na=Vn(xa,[["render",Ra]]),jr=l.defineComponent({__name:"Tooltip",props:{text:{}},setup(t){const e=t;class n{constructor(){Se(this,"zIndex");Se(this,"wrapper");Se(this,"inner");this.zIndex=Us()+1,this.Render()}Render(){this.wrapper=document.createElement("div"),this.wrapper.classList.add("sf-tooltip-wrapper"),this.wrapper.style.zIndex=`${this.zIndex??0}`,this.inner=document.createElement("div"),this.inner.classList.add("sf-tooltip-inner"),this.wrapper.appendChild(this.inner)}Show(s){this.inner.textContent=e.text;const i=s.target;document.body.appendChild(this.wrapper),this.Position(i.getBoundingClientRect()),this.wrapper.classList.add("visible")}Hide(){this.wrapper.classList.remove("visible"),this.wrapper.remove()}Position(s){this.FixWidth();const i=10,a=s.top,c=s.bottom,u=s.left,d=s.right,m=this.wrapper;m.style.top=`${c+i}px`,m.style.left=`${u}px`,this.OutOfBottom()&&(m.style.top=`${a-m.clientHeight-i}px`,m.classList.add("top")),this.OutOfRight()&&(m.style.left=`${d-m.clientWidth}px`,m.classList.add("left"))}FixWidth(){this.wrapper.style.width="fit-content",this.wrapper.style.wordBreak="normal",this.wrapper.style.whiteSpace="nowrap";const s=window.innerWidth/2;this.wrapper.clientWidth>s&&(this.wrapper.style.width=`${s}px`,this.wrapper.style.wordBreak="break-word",this.wrapper.style.whiteSpace="normal")}OutOfBottom(){return this.wrapper.getBoundingClientRect().bottom>(window.innerHeight||document.documentElement.clientHeight)}OutOfRight(){return this.wrapper.getBoundingClientRect().right>(window.innerWidth||document.documentElement.clientWidth)-10}}const r=new n;return l.onBeforeUnmount(()=>{r.Hide()}),(o,s)=>(l.openBlock(),l.createElementBlock("div",{class:"sf-tooltip-anchor",onMouseenter:s[0]||(s[0]=(...i)=>l.unref(r).Show&&l.unref(r).Show(...i)),onMouseleave:s[1]||(s[1]=(...i)=>l.unref(r).Hide&&l.unref(r).Hide(...i)),onMousedown:s[2]||(s[2]=(...i)=>l.unref(r).Hide&&l.unref(r).Hide(...i))},[l.renderSlot(o.$slots,"default")],32))}}),Ba=["disabled","tabindex"],Da=["data-color"],Ma=l.defineComponent({__name:"Icon",props:{icon:{},visible:{type:Boolean,default:!0},class:{default:""},style:{default:""},disabled:{type:Boolean},loading:{type:Boolean},button:{type:Boolean},size:{default:"md"},dot:{type:Boolean},dotColor:{default:"error"},filled:{type:Boolean},buttonProps:{},tooltip:{},color:{default:"inherit"}},setup(t){const e=t,n=l.computed(()=>e.tooltip?jr:"div"),r=l.computed(()=>new tt(e.tooltip?"":"display-content").AddClass("sf-component-loading",e.loading).AddClass("sf-component-disabled",e.disabled).Build()),o=l.computed(()=>new tt(`${e.class} sf-icon`).AddClass("sf-component-loading",e.loading).AddClass("sf-component-disabled",e.disabled).AddClass("sf-icon-button",e.button).AddClass("sf-icon-small",e.size==="sm").AddClass("sf-icon-medium",e.size==="md").AddClass("sf-icon-large",e.size==="lg").AddClass("sf-icon-xlarge",e.size==="xl").AddClass("sf-icon-2xlarge",e.size==="2xl").AddClass("sf-icon-3xlarge",e.size==="3xl").AddClass("sf-ripple",e.button===!0).AddClass(`${e.color}-color`,!!e.color&&e.color!=="inherit").Build());return(s,i)=>(l.openBlock(),l.createBlock(l.resolveDynamicComponent(n.value),{text:e.tooltip,class:l.normalizeClass(r.value)},{default:l.withCtx(()=>[e.visible?(l.openBlock(),l.createElementBlock("div",{key:0,style:l.normalizeStyle(e.style),class:l.normalizeClass(o.value)},[l.createElementVNode("button",l.mergeProps({class:["material-symbols-outlined",{"icon-filled":!!e.filled}],disabled:e.disabled||e.loading},e.buttonProps,{tabindex:e.button?void 0:-1}),[e.loading?(l.openBlock(),l.createBlock(Na,{key:0})):(l.openBlock(),l.createElementBlock(l.Fragment,{key:1},[l.createTextVNode(l.toDisplayString(e.icon),1)],64))],16,Ba),e.dot?(l.openBlock(),l.createElementBlock("span",{key:0,"data-color":e.dotColor},null,8,Da)):l.createCommentVNode("",!0)],6)):l.createCommentVNode("",!0)]),_:1},8,["text","class"]))}}),Ln=Vn(Ma,[["__scopeId","data-v-7ffc3790"]]),Ua=["id","onClick"],Ha={class:"sf-drawer-header"},Va={class:"sf-drawer-title"},ja={class:"sf-drawer-content"},Fa={key:0,class:"sf-drawer-footer"},Hs=l.defineComponent({__name:"Drawer",props:{visible:{type:Boolean,default:!1},position:{default:"left"},style:{}},emits:["update:visible","open","before-close"],setup(t,{emit:e}){const n=t,r=e,o=l.useSlots(),s=l.ref(n.visible),i=l.ref(!1),a=l.ref(0),c=Ia();function u(){s.value=!1}function d(w){(w.key==="Escape"||w.code==="Escape")&&u()}function m(){r("open"),window.document.addEventListener("keydown",d,!0)}function g(w){a.value=Us(),w.style.zIndex=`${a.value}`}function _(w){var B;r("before-close"),(B=w==null?void 0:w.parentElement)==null||B.classList.add("sf-mask-overlay-leave")}function v(){window.document.removeEventListener("keydown",d,!0),i.value=!1}function T(){return new tt("sf-mask sf-mask-overlay").AddClass("right",n.position==="right").AddClass("bottom",n.position==="bottom").AddClass("full",n.position==="full").AddClass("sf-mask-overlay-enter",n.visible===!0).Build()}return l.watch(()=>n.visible,w=>{s.value=w}),l.watch(()=>s.value,w=>{r("update:visible",w),w&&(i.value=!0)}),(w,B)=>(l.openBlock(),l.createBlock(l.Teleport,{to:"body"},[i.value?(l.openBlock(),l.createElementBlock("div",{key:0,id:l.unref(c),class:l.normalizeClass(T()),style:l.normalizeStyle({zIndex:a.value-1}),onClick:l.withModifiers(u,["stop"])},[l.createVNode(l.Transition,{name:"sf-drawer",appear:"",onBeforeEnter:g,onEnter:m,onBeforeLeave:_,onAfterLeave:v},{default:l.withCtx(()=>[s.value?(l.openBlock(),l.createElementBlock("div",{key:0,class:l.normalizeClass(["sf-drawer",{"sf-drawer-with-footer":!!l.unref(o).footer}]),style:l.normalizeStyle(n.style),role:"dialog",onClick:B[0]||(B[0]=l.withModifiers(C=>w.void,["stop"]))},[l.createElementVNode("div",Ha,[l.createElementVNode("span",Va,[l.renderSlot(w.$slots,"title")]),l.createVNode(Ln,{button:!0,icon:"close",onClick:l.withModifiers(u,["stop"])},null,8,["onClick"])]),l.createElementVNode("div",ja,[l.renderSlot(w.$slots,"default")]),l.unref(o).footer?(l.openBlock(),l.createElementBlock("div",Fa,[l.renderSlot(w.$slots,"footer")])):l.createCommentVNode("",!0)],6)):l.createCommentVNode("",!0)]),_:3})],14,Ua)):l.createCommentVNode("",!0)]))}}),za=["id","name","disabled","data-color","form","type"],Ka={class:"sf-button-label"},Vs=l.defineComponent({__name:"Button",props:{icon:{},visible:{type:Boolean,default:!0},class:{},style:{},disabled:{type:Boolean},loading:{type:Boolean},color:{default:"primary"},size:{default:"md"},variant:{default:"filled"},autofocus:{type:Boolean},form:{},name:{},id:{},type:{default:"button"},value:{},iconFilled:{type:Boolean}},setup(t){const e=t;function n(){return new tt(`${e.class??""} sf-button`).AddClass("sf-component-loading",e.loading).AddClass("sf-component-disabled",e.disabled).AddClass("sf-button-small",e.size==="sm").AddClass("sf-button-medium",e.size==="md").AddClass("sf-button-large",e.size==="lg").AddClass("sf-button-filled",e.variant==="filled").AddClass("sf-button-text",e.variant==="text").AddClass("sf-button-outlined",e.variant==="outlined").AddClass("sf-button-with-icon",!!e.icon).AddClass("sf-ripple").Build()}return(r,o)=>e.visible?(l.openBlock(),l.createElementBlock("button",{key:0,id:e.id,name:e.name,class:l.normalizeClass(n()),style:l.normalizeStyle(e.style),disabled:e.disabled||e.loading,"data-color":e.color,form:e.form,type:e.type},[e.icon?(l.openBlock(),l.createBlock(Ln,{key:0,icon:e.icon,loading:e.loading,size:e.size,color:void 0,"button-props":{tabindex:-1},filled:e.iconFilled},null,8,["icon","loading","size","filled"])):e.loading?(l.openBlock(),l.createBlock(Ln,{key:1,loading:!0,size:e.size,"button-props":{tabindex:-1}},null,8,["size"])):l.createCommentVNode("",!0),l.createElementVNode("span",Ka,[l.renderSlot(r.$slots,"default")])],14,za)):l.createCommentVNode("",!0)}}),js="SweetAlert2:",Wa=t=>{const e=[];for(let n=0;n<t.length;n++)e.indexOf(t[n])===-1&&e.push(t[n]);return e},Fr=t=>t.charAt(0).toUpperCase()+t.slice(1),Oe=t=>Array.prototype.slice.call(t),Ee=t=>{console.warn(`${js} ${typeof t=="object"?t.join(" "):t}`)},kt=t=>{console.error(`${js} ${t}`)},Ro=[],qa=t=>{Ro.includes(t)||(Ro.push(t),Ee(t))},Ga=(t,e)=>{qa(`"${t}" is deprecated and will be removed in the next major release. Please use "${e}" instead.`)},jn=t=>typeof t=="function"?t():t,zr=t=>t&&typeof t.toPromise=="function",fn=t=>zr(t)?t.toPromise():Promise.resolve(t),Kr=t=>t&&Promise.resolve(t)===t,It={title:"",titleText:"",text:"",html:"",footer:"",icon:void 0,iconColor:void 0,iconHtml:void 0,template:void 0,toast:!1,showClass:{popup:"swal2-show",backdrop:"swal2-backdrop-show",icon:"swal2-icon-show"},hideClass:{popup:"swal2-hide",backdrop:"swal2-backdrop-hide",icon:"swal2-icon-hide"},customClass:{},target:"body",color:void 0,backdrop:!0,heightAuto:!0,allowOutsideClick:!0,allowEscapeKey:!0,allowEnterKey:!0,stopKeydownPropagation:!0,keydownListenerCapture:!1,showConfirmButton:!0,showDenyButton:!1,showCancelButton:!1,preConfirm:void 0,preDeny:void 0,confirmButtonText:"OK",confirmButtonAriaLabel:"",confirmButtonColor:void 0,denyButtonText:"No",denyButtonAriaLabel:"",denyButtonColor:void 0,cancelButtonText:"Cancel",cancelButtonAriaLabel:"",cancelButtonColor:void 0,buttonsStyling:!0,reverseButtons:!1,focusConfirm:!0,focusDeny:!1,focusCancel:!1,returnFocus:!0,showCloseButton:!1,closeButtonHtml:"&times;",closeButtonAriaLabel:"Close this dialog",loaderHtml:"",showLoaderOnConfirm:!1,showLoaderOnDeny:!1,imageUrl:void 0,imageWidth:void 0,imageHeight:void 0,imageAlt:"",timer:void 0,timerProgressBar:!1,width:void 0,padding:void 0,background:void 0,input:void 0,inputPlaceholder:"",inputLabel:"",inputValue:"",inputOptions:{},inputAutoTrim:!0,inputAttributes:{},inputValidator:void 0,returnInputValueOnDeny:!1,validationMessage:void 0,grow:!1,position:"center",progressSteps:[],currentProgressStep:void 0,progressStepsDistance:void 0,willOpen:void 0,didOpen:void 0,didRender:void 0,willClose:void 0,didClose:void 0,didDestroy:void 0,scrollbarPadding:!0},Ya=["allowEscapeKey","allowOutsideClick","background","buttonsStyling","cancelButtonAriaLabel","cancelButtonColor","cancelButtonText","closeButtonAriaLabel","closeButtonHtml","color","confirmButtonAriaLabel","confirmButtonColor","confirmButtonText","currentProgressStep","customClass","denyButtonAriaLabel","denyButtonColor","denyButtonText","didClose","didDestroy","footer","hideClass","html","icon","iconColor","iconHtml","imageAlt","imageHeight","imageUrl","imageWidth","preConfirm","preDeny","progressSteps","returnFocus","reverseButtons","showCancelButton","showCloseButton","showConfirmButton","showDenyButton","text","title","titleText","willClose"],Ja={},Xa=["allowOutsideClick","allowEnterKey","backdrop","focusConfirm","focusDeny","focusCancel","returnFocus","heightAuto","keydownListenerCapture"],Fs=t=>Object.prototype.hasOwnProperty.call(It,t),zs=t=>Ya.indexOf(t)!==-1,kr=t=>Ja[t],Za=t=>{Fs(t)||Ee(`Unknown parameter "${t}"`)},Qa=t=>{Xa.includes(t)&&Ee(`The parameter "${t}" is incompatible with toasts`)},el=t=>{kr(t)&&Ga(t,kr(t))},tl=t=>{!t.backdrop&&t.allowOutsideClick&&Ee('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`');for(const e in t)Za(e),t.toast&&Qa(e),el(e)},nl="swal2-",Ks=t=>{const e={};for(const n in t)e[t[n]]=nl+t[n];return e},b=Ks(["container","shown","height-auto","iosfix","popup","modal","no-backdrop","no-transition","toast","toast-shown","show","hide","close","title","html-container","actions","confirm","deny","cancel","default-outline","footer","icon","icon-content","image","input","file","range","select","radio","checkbox","label","textarea","inputerror","input-label","validation-message","progress-steps","active-progress-step","progress-step","progress-step-line","loader","loading","styled","top","top-start","top-end","top-left","top-right","center","center-start","center-end","center-left","center-right","bottom","bottom-start","bottom-end","bottom-left","bottom-right","grow-row","grow-column","grow-fullscreen","rtl","timer-progress-bar","timer-progress-bar-container","scrollbar-measure","icon-success","icon-warning","icon-info","icon-question","icon-error"]),Xt=Ks(["success","warning","info","question","error"]),fe=()=>document.body.querySelector(`.${b.container}`),mn=t=>{const e=fe();return e?e.querySelector(t):null},Be=t=>mn(`.${t}`),Y=()=>Be(b.popup),pn=()=>Be(b.icon),Ws=()=>Be(b.title),$n=()=>Be(b["html-container"]),qs=()=>Be(b.image),Gs=()=>Be(b["progress-steps"]),Fn=()=>Be(b["validation-message"]),Ke=()=>mn(`.${b.actions} .${b.confirm}`),ut=()=>mn(`.${b.actions} .${b.deny}`),rl=()=>Be(b["input-label"]),$t=()=>mn(`.${b.loader}`),bt=()=>mn(`.${b.actions} .${b.cancel}`),hn=()=>Be(b.actions),Ys=()=>Be(b.footer),zn=()=>Be(b["timer-progress-bar"]),Wr=()=>Be(b.close),ol=`
2
2
  a[href],
3
3
  area[href],
4
4
  input:not([disabled]),
@@ -13,7 +13,7 @@
13
13
  audio[controls],
14
14
  video[controls],
15
15
  summary
16
- `,qr=()=>{const t=Oe(Y().querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])')).sort((n,r)=>{const o=parseInt(n.getAttribute("tabindex")),s=parseInt(r.getAttribute("tabindex"));return o>s?1:o<s?-1:0}),e=Oe(Y().querySelectorAll(ol)).filter(n=>n.getAttribute("tabindex")!=="-1");return Wa(t.concat(e)).filter(n=>Pe(n))},Gr=()=>nt(document.body,b.shown)&&!nt(document.body,b["toast-shown"])&&!nt(document.body,b["no-backdrop"]),Kn=()=>Y()&&nt(Y(),b.toast),sl=()=>Y().hasAttribute("data-loading"),xt={previousBodyPadding:null},de=(t,e)=>{if(t.textContent="",e){const r=new DOMParser().parseFromString(e,"text/html");Oe(r.querySelector("head").childNodes).forEach(o=>{t.appendChild(o)}),Oe(r.querySelector("body").childNodes).forEach(o=>{t.appendChild(o)})}},nt=(t,e)=>{if(!e)return!1;const n=e.split(/\s+/);for(let r=0;r<n.length;r++)if(!t.classList.contains(n[r]))return!1;return!0},il=(t,e)=>{Oe(t.classList).forEach(n=>{!Object.values(b).includes(n)&&!Object.values(Xt).includes(n)&&!Object.values(e.showClass).includes(n)&&t.classList.remove(n)})},Ne=(t,e,n)=>{if(il(t,e),e.customClass&&e.customClass[n]){if(typeof e.customClass[n]!="string"&&!e.customClass[n].forEach)return Ee(`Invalid type of customClass.${n}! Expected string or iterable object, got "${typeof e.customClass[n]}"`);W(t,e.customClass[n])}},Yr=(t,e)=>{if(!e)return null;switch(e){case"select":case"textarea":case"file":return t.querySelector(`.${b.popup} > .${b[e]}`);case"checkbox":return t.querySelector(`.${b.popup} > .${b.checkbox} input`);case"radio":return t.querySelector(`.${b.popup} > .${b.radio} input:checked`)||t.querySelector(`.${b.popup} > .${b.radio} input:first-child`);case"range":return t.querySelector(`.${b.popup} > .${b.range} input`);default:return t.querySelector(`.${b.popup} > .${b.input}`)}},Js=t=>{if(t.focus(),t.type!=="file"){const e=t.value;t.value="",t.value=e}},Xs=(t,e,n)=>{!t||!e||(typeof e=="string"&&(e=e.split(/\s+/).filter(Boolean)),e.forEach(r=>{Array.isArray(t)?t.forEach(o=>{n?o.classList.add(r):o.classList.remove(r)}):n?t.classList.add(r):t.classList.remove(r)}))},W=(t,e)=>{Xs(t,e,!0)},Je=(t,e)=>{Xs(t,e,!1)},ct=(t,e)=>{const n=Oe(t.childNodes);for(let r=0;r<n.length;r++)if(nt(n[r],e))return n[r]},Zt=(t,e,n)=>{n===`${parseInt(n)}`&&(n=parseInt(n)),n||parseInt(n)===0?t.style[e]=typeof n=="number"?`${n}px`:n:t.style.removeProperty(e)},le=(t,e="flex")=>{t.style.display=e},me=t=>{t.style.display="none"},No=(t,e,n,r)=>{const o=t.querySelector(e);o&&(o.style[n]=r)},Wn=(t,e,n)=>{e?le(t,n):me(t)},Pe=t=>!!(t&&(t.offsetWidth||t.offsetHeight||t.getClientRects().length)),al=()=>!Pe(Ke())&&!Pe(ut())&&!Pe(bt()),Bo=t=>t.scrollHeight>t.clientHeight,Zs=t=>{const e=window.getComputedStyle(t),n=parseFloat(e.getPropertyValue("animation-duration")||"0"),r=parseFloat(e.getPropertyValue("transition-duration")||"0");return n>0||r>0},Jr=(t,e=!1)=>{const n=zn();Pe(n)&&(e&&(n.style.transition="none",n.style.width="100%"),setTimeout(()=>{n.style.transition=`width ${t/1e3}s linear`,n.style.width="0%"},10))},ll=()=>{const t=zn(),e=parseInt(window.getComputedStyle(t).width);t.style.removeProperty("transition"),t.style.width="100%";const n=parseInt(window.getComputedStyle(t).width),r=e/n*100;t.style.removeProperty("transition"),t.style.width=`${r}%`},Qs=()=>typeof window>"u"||typeof document>"u",cl=100,H={},ul=()=>{H.previousActiveElement&&H.previousActiveElement.focus?(H.previousActiveElement.focus(),H.previousActiveElement=null):document.body&&document.body.focus()},dl=t=>new Promise(e=>{if(!t)return e();const n=window.scrollX,r=window.scrollY;H.restoreFocusTimeout=setTimeout(()=>{ul(),e()},cl),window.scrollTo(n,r)}),fl=`
16
+ `,qr=()=>{const t=Oe(Y().querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])')).sort((n,r)=>{const o=parseInt(n.getAttribute("tabindex")),s=parseInt(r.getAttribute("tabindex"));return o>s?1:o<s?-1:0}),e=Oe(Y().querySelectorAll(ol)).filter(n=>n.getAttribute("tabindex")!=="-1");return Wa(t.concat(e)).filter(n=>Pe(n))},Gr=()=>rt(document.body,b.shown)&&!rt(document.body,b["toast-shown"])&&!rt(document.body,b["no-backdrop"]),Kn=()=>Y()&&rt(Y(),b.toast),sl=()=>Y().hasAttribute("data-loading"),xt={previousBodyPadding:null},de=(t,e)=>{if(t.textContent="",e){const r=new DOMParser().parseFromString(e,"text/html");Oe(r.querySelector("head").childNodes).forEach(o=>{t.appendChild(o)}),Oe(r.querySelector("body").childNodes).forEach(o=>{t.appendChild(o)})}},rt=(t,e)=>{if(!e)return!1;const n=e.split(/\s+/);for(let r=0;r<n.length;r++)if(!t.classList.contains(n[r]))return!1;return!0},il=(t,e)=>{Oe(t.classList).forEach(n=>{!Object.values(b).includes(n)&&!Object.values(Xt).includes(n)&&!Object.values(e.showClass).includes(n)&&t.classList.remove(n)})},Ne=(t,e,n)=>{if(il(t,e),e.customClass&&e.customClass[n]){if(typeof e.customClass[n]!="string"&&!e.customClass[n].forEach)return Ee(`Invalid type of customClass.${n}! Expected string or iterable object, got "${typeof e.customClass[n]}"`);W(t,e.customClass[n])}},Yr=(t,e)=>{if(!e)return null;switch(e){case"select":case"textarea":case"file":return t.querySelector(`.${b.popup} > .${b[e]}`);case"checkbox":return t.querySelector(`.${b.popup} > .${b.checkbox} input`);case"radio":return t.querySelector(`.${b.popup} > .${b.radio} input:checked`)||t.querySelector(`.${b.popup} > .${b.radio} input:first-child`);case"range":return t.querySelector(`.${b.popup} > .${b.range} input`);default:return t.querySelector(`.${b.popup} > .${b.input}`)}},Js=t=>{if(t.focus(),t.type!=="file"){const e=t.value;t.value="",t.value=e}},Xs=(t,e,n)=>{!t||!e||(typeof e=="string"&&(e=e.split(/\s+/).filter(Boolean)),e.forEach(r=>{Array.isArray(t)?t.forEach(o=>{n?o.classList.add(r):o.classList.remove(r)}):n?t.classList.add(r):t.classList.remove(r)}))},W=(t,e)=>{Xs(t,e,!0)},Je=(t,e)=>{Xs(t,e,!1)},ct=(t,e)=>{const n=Oe(t.childNodes);for(let r=0;r<n.length;r++)if(rt(n[r],e))return n[r]},Zt=(t,e,n)=>{n===`${parseInt(n)}`&&(n=parseInt(n)),n||parseInt(n)===0?t.style[e]=typeof n=="number"?`${n}px`:n:t.style.removeProperty(e)},le=(t,e="flex")=>{t.style.display=e},me=t=>{t.style.display="none"},No=(t,e,n,r)=>{const o=t.querySelector(e);o&&(o.style[n]=r)},Wn=(t,e,n)=>{e?le(t,n):me(t)},Pe=t=>!!(t&&(t.offsetWidth||t.offsetHeight||t.getClientRects().length)),al=()=>!Pe(Ke())&&!Pe(ut())&&!Pe(bt()),Bo=t=>t.scrollHeight>t.clientHeight,Zs=t=>{const e=window.getComputedStyle(t),n=parseFloat(e.getPropertyValue("animation-duration")||"0"),r=parseFloat(e.getPropertyValue("transition-duration")||"0");return n>0||r>0},Jr=(t,e=!1)=>{const n=zn();Pe(n)&&(e&&(n.style.transition="none",n.style.width="100%"),setTimeout(()=>{n.style.transition=`width ${t/1e3}s linear`,n.style.width="0%"},10))},ll=()=>{const t=zn(),e=parseInt(window.getComputedStyle(t).width);t.style.removeProperty("transition"),t.style.width="100%";const n=parseInt(window.getComputedStyle(t).width),r=e/n*100;t.style.removeProperty("transition"),t.style.width=`${r}%`},Qs=()=>typeof window>"u"||typeof document>"u",cl=100,H={},ul=()=>{H.previousActiveElement&&H.previousActiveElement.focus?(H.previousActiveElement.focus(),H.previousActiveElement=null):document.body&&document.body.focus()},dl=t=>new Promise(e=>{if(!t)return e();const n=window.scrollX,r=window.scrollY;H.restoreFocusTimeout=setTimeout(()=>{ul(),e()},cl),window.scrollTo(n,r)}),fl=`
17
17
  <div aria-labelledby="${b.title}" aria-describedby="${b["html-container"]}" class="${b.popup}" tabindex="-1">
18
18
  <button type="button" class="${b.close}"></button>
19
19
  <ul class="${b["progress-steps"]}"></ul>
@@ -59,15 +59,15 @@
59
59
  `,Mo=(t,e)=>{t.textContent="",e.iconHtml?de(t,Uo(e.iconHtml)):e.icon==="success"?de(t,Hl):e.icon==="error"?de(t,Vl):de(t,Uo({question:"?",warning:"!",info:"i"}[e.icon]))},jl=(t,e)=>{if(e.iconColor){t.style.color=e.iconColor,t.style.borderColor=e.iconColor;for(const n of[".swal2-success-line-tip",".swal2-success-line-long",".swal2-x-mark-line-left",".swal2-x-mark-line-right"])No(t,n,"backgroundColor",e.iconColor);No(t,".swal2-success-ring","borderColor",e.iconColor)}},Uo=t=>`<div class="${b["icon-content"]}">${t}</div>`,Fl=(t,e)=>{const n=qs();if(!e.imageUrl)return me(n);le(n,""),n.setAttribute("src",e.imageUrl),n.setAttribute("alt",e.imageAlt),Zt(n,"width",e.imageWidth),Zt(n,"height",e.imageHeight),n.className=b.image,Ne(n,e,"image")},zl=t=>{const e=document.createElement("li");return W(e,b["progress-step"]),de(e,t),e},Kl=t=>{const e=document.createElement("li");return W(e,b["progress-step-line"]),t.progressStepsDistance&&(e.style.width=t.progressStepsDistance),e},Wl=(t,e)=>{const n=Gs();if(!e.progressSteps||e.progressSteps.length===0)return me(n);le(n),n.textContent="",e.currentProgressStep>=e.progressSteps.length&&Ee("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),e.progressSteps.forEach((r,o)=>{const s=zl(r);if(n.appendChild(s),o===e.currentProgressStep&&W(s,b["active-progress-step"]),o!==e.progressSteps.length-1){const i=Kl(e);n.appendChild(i)}})},ql=(t,e)=>{const n=Ws();Wn(n,e.title||e.titleText,"block"),e.title&&Xr(e.title,n),e.titleText&&(n.innerText=e.titleText),Ne(n,e,"title")},Gl=(t,e)=>{const n=fe(),r=Y();e.toast?(Zt(n,"width",e.width),r.style.width="100%",r.insertBefore($t(),pn())):Zt(r,"width",e.width),Zt(r,"padding",e.padding),e.color&&(r.style.color=e.color),e.background&&(r.style.background=e.background),me(Fn()),Yl(r,e)},Yl=(t,e)=>{t.className=`${b.popup} ${Pe(t)?e.showClass.popup:""}`,e.toast?(W([document.documentElement,document.body],b["toast-shown"]),W(t,b.toast)):W(t,b.modal),Ne(t,e,"popup"),typeof e.customClass=="string"&&W(t,e.customClass),e.icon&&W(t,b[`icon-${e.icon}`])},ti=(t,e)=>{Gl(t,e),Pl(t,e),Wl(t,e),Ml(t,e),Fl(t,e),ql(t,e),Dl(t,e),Nl(t,e),_l(t,e),Bl(t,e),typeof e.didRender=="function"&&e.didRender(Y())},Rt=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),Jl=()=>{Oe(document.body.children).forEach(e=>{e===fe()||e.contains(fe())||(e.hasAttribute("aria-hidden")&&e.setAttribute("data-previous-aria-hidden",e.getAttribute("aria-hidden")),e.setAttribute("aria-hidden","true"))})},ni=()=>{Oe(document.body.children).forEach(e=>{e.hasAttribute("data-previous-aria-hidden")?(e.setAttribute("aria-hidden",e.getAttribute("data-previous-aria-hidden")),e.removeAttribute("data-previous-aria-hidden")):e.removeAttribute("aria-hidden")})},ri=["swal-title","swal-html","swal-footer"],Xl=t=>{const e=typeof t.template=="string"?document.querySelector(t.template):t.template;if(!e)return{};const n=e.content;return oc(n),Object.assign(Zl(n),Ql(n),ec(n),tc(n),nc(n),rc(n,ri))},Zl=t=>{const e={};return Oe(t.querySelectorAll("swal-param")).forEach(n=>{wt(n,["name","value"]);const r=n.getAttribute("name"),o=n.getAttribute("value");typeof It[r]=="boolean"&&o==="false"&&(e[r]=!1),typeof It[r]=="object"&&(e[r]=JSON.parse(o))}),e},Ql=t=>{const e={};return Oe(t.querySelectorAll("swal-button")).forEach(n=>{wt(n,["type","color","aria-label"]);const r=n.getAttribute("type");e[`${r}ButtonText`]=n.innerHTML,e[`show${Fr(r)}Button`]=!0,n.hasAttribute("color")&&(e[`${r}ButtonColor`]=n.getAttribute("color")),n.hasAttribute("aria-label")&&(e[`${r}ButtonAriaLabel`]=n.getAttribute("aria-label"))}),e},ec=t=>{const e={},n=t.querySelector("swal-image");return n&&(wt(n,["src","width","height","alt"]),n.hasAttribute("src")&&(e.imageUrl=n.getAttribute("src")),n.hasAttribute("width")&&(e.imageWidth=n.getAttribute("width")),n.hasAttribute("height")&&(e.imageHeight=n.getAttribute("height")),n.hasAttribute("alt")&&(e.imageAlt=n.getAttribute("alt"))),e},tc=t=>{const e={},n=t.querySelector("swal-icon");return n&&(wt(n,["type","color"]),n.hasAttribute("type")&&(e.icon=n.getAttribute("type")),n.hasAttribute("color")&&(e.iconColor=n.getAttribute("color")),e.iconHtml=n.innerHTML),e},nc=t=>{const e={},n=t.querySelector("swal-input");n&&(wt(n,["type","label","placeholder","value"]),e.input=n.getAttribute("type")||"text",n.hasAttribute("label")&&(e.inputLabel=n.getAttribute("label")),n.hasAttribute("placeholder")&&(e.inputPlaceholder=n.getAttribute("placeholder")),n.hasAttribute("value")&&(e.inputValue=n.getAttribute("value")));const r=t.querySelectorAll("swal-input-option");return r.length&&(e.inputOptions={},Oe(r).forEach(o=>{wt(o,["value"]);const s=o.getAttribute("value"),i=o.innerHTML;e.inputOptions[s]=i})),e},rc=(t,e)=>{const n={};for(const r in e){const o=e[r],s=t.querySelector(o);s&&(wt(s,[]),n[o.replace(/^swal-/,"")]=s.innerHTML.trim())}return n},oc=t=>{const e=ri.concat(["swal-param","swal-button","swal-image","swal-icon","swal-input","swal-input-option"]);Oe(t.children).forEach(n=>{const r=n.tagName.toLowerCase();e.indexOf(r)===-1&&Ee(`Unrecognized element <${r}>`)})},wt=(t,e)=>{Oe(t.attributes).forEach(n=>{e.indexOf(n.name)===-1&&Ee([`Unrecognized attribute "${n.name}" on <${t.tagName.toLowerCase()}>.`,`${e.length?`Allowed attributes are: ${e.join(", ")}`:"To set the value, use HTML within the element."}`])})},Ho={email:(t,e)=>/^[a-zA-Z0-9.+_-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9-]{2,24}$/.test(t)?Promise.resolve():Promise.resolve(e||"Invalid email address"),url:(t,e)=>/^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-z]{2,63}\b([-a-zA-Z0-9@:%_+.~#?&/=]*)$/.test(t)?Promise.resolve():Promise.resolve(e||"Invalid URL")};function sc(t){t.inputValidator||Object.keys(Ho).forEach(e=>{t.input===e&&(t.inputValidator=Ho[e])})}function ic(t){(!t.target||typeof t.target=="string"&&!document.querySelector(t.target)||typeof t.target!="string"&&!t.target.appendChild)&&(Ee('Target parameter is not valid, defaulting to "body"'),t.target="body")}function ac(t){sc(t),t.showLoaderOnConfirm&&!t.preConfirm&&Ee(`showLoaderOnConfirm is set to true, but preConfirm is not defined.
60
60
  showLoaderOnConfirm should be used together with preConfirm, see usage example:
61
61
  https://sweetalert2.github.io/#ajax-request`),ic(t),typeof t.title=="string"&&(t.title=t.title.split(`
62
- `).join("<br />")),vl(t)}class lc{constructor(e,n){this.callback=e,this.remaining=n,this.running=!1,this.start()}start(){return this.running||(this.running=!0,this.started=new Date,this.id=setTimeout(this.callback,this.remaining)),this.remaining}stop(){return this.running&&(this.running=!1,clearTimeout(this.id),this.remaining-=new Date().getTime()-this.started.getTime()),this.remaining}increase(e){const n=this.running;return n&&this.stop(),this.remaining+=e,n&&this.start(),this.remaining}getTimerLeft(){return this.running&&(this.stop(),this.start()),this.remaining}isRunning(){return this.running}}const cc=()=>{xt.previousBodyPadding===null&&document.body.scrollHeight>window.innerHeight&&(xt.previousBodyPadding=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight=`${xt.previousBodyPadding+Sl()}px`)},uc=()=>{xt.previousBodyPadding!==null&&(document.body.style.paddingRight=`${xt.previousBodyPadding}px`,xt.previousBodyPadding=null)},dc=()=>{if((/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1)&&!nt(document.body,b.iosfix)){const e=document.body.scrollTop;document.body.style.top=`${e*-1}px`,W(document.body,b.iosfix),mc(),fc()}},fc=()=>{const t=navigator.userAgent,e=!!t.match(/iPad/i)||!!t.match(/iPhone/i),n=!!t.match(/WebKit/i);e&&n&&!t.match(/CriOS/i)&&Y().scrollHeight>window.innerHeight-44&&(fe().style.paddingBottom="44px")},mc=()=>{const t=fe();let e;t.ontouchstart=n=>{e=pc(n)},t.ontouchmove=n=>{e&&(n.preventDefault(),n.stopPropagation())}},pc=t=>{const e=t.target,n=fe();return hc(t)||gc(t)?!1:e===n||!Bo(n)&&e.tagName!=="INPUT"&&e.tagName!=="TEXTAREA"&&!(Bo($n())&&$n().contains(e))},hc=t=>t.touches&&t.touches.length&&t.touches[0].touchType==="stylus",gc=t=>t.touches&&t.touches.length>1,yc=()=>{if(nt(document.body,b.iosfix)){const t=parseInt(document.body.style.top,10);Je(document.body,b.iosfix),document.body.style.top="",document.body.scrollTop=t*-1}},oi=10,vc=t=>{const e=fe(),n=Y();typeof t.willOpen=="function"&&t.willOpen(n);const o=window.getComputedStyle(document.body).overflowY;Sc(e,n,t),setTimeout(()=>{bc(e,n)},oi),Gr()&&(wc(e,t.scrollbarPadding,o),Jl()),!Kn()&&!H.previousActiveElement&&(H.previousActiveElement=document.activeElement),typeof t.didOpen=="function"&&setTimeout(()=>t.didOpen(n)),Je(e,b["no-transition"])},si=t=>{const e=Y();if(t.target!==e)return;const n=fe();e.removeEventListener(en,si),n.style.overflowY="auto"},bc=(t,e)=>{en&&Zs(e)?(t.style.overflowY="hidden",e.addEventListener(en,si)):t.style.overflowY="auto"},wc=(t,e,n)=>{dc(),e&&n!=="hidden"&&cc(),setTimeout(()=>{t.scrollTop=0})},Sc=(t,e,n)=>{W(t,n.showClass.backdrop),e.style.setProperty("opacity","0","important"),le(e,"grid"),setTimeout(()=>{W(e,n.showClass.popup),e.style.removeProperty("opacity")},oi),W([document.documentElement,document.body],b.shown),n.heightAuto&&n.backdrop&&!n.toast&&W([document.documentElement,document.body],b["height-auto"])},Ot=t=>{let e=Y();e||new Lt,e=Y();const n=$t();Kn()?me(pn()):_c(e,t),le(n),e.setAttribute("data-loading",!0),e.setAttribute("aria-busy",!0),e.focus()},_c=(t,e)=>{const n=hn(),r=$t();!e&&Pe(Ke())&&(e=Ke()),le(n),e&&(me(e),r.setAttribute("data-button-to-replace",e.className)),r.parentNode.insertBefore(r,e),W([t,n],b.loading)},kc=(t,e)=>{e.input==="select"||e.input==="radio"?Pc(t,e):["text","email","number","tel","textarea"].includes(e.input)&&(zr(e.inputValue)||Kr(e.inputValue))&&(Ot(Ke()),Ic(t,e))},Cc=(t,e)=>{const n=t.getInput();if(!n)return null;switch(e.input){case"checkbox":return Ec(n);case"radio":return Tc(n);case"file":return Ac(n);default:return e.inputAutoTrim?n.value.trim():n.value}},Ec=t=>t.checked?1:0,Tc=t=>t.checked?t.value:null,Ac=t=>t.files.length?t.getAttribute("multiple")!==null?t.files:t.files[0]:null,Pc=(t,e)=>{const n=Y(),r=o=>xc[e.input](n,Cr(o),e);zr(e.inputOptions)||Kr(e.inputOptions)?(Ot(Ke()),fn(e.inputOptions).then(o=>{t.hideLoading(),r(o)})):typeof e.inputOptions=="object"?r(e.inputOptions):kt(`Unexpected type of inputOptions! Expected object, Map or Promise, got ${typeof e.inputOptions}`)},Ic=(t,e)=>{const n=t.getInput();me(n),fn(e.inputValue).then(r=>{n.value=e.input==="number"?parseFloat(r)||0:`${r}`,le(n),n.focus(),t.hideLoading()}).catch(r=>{kt(`Error in inputValue promise: ${r}`),n.value="",le(n),n.focus(),t.hideLoading()})},xc={select:(t,e,n)=>{const r=ct(t,b.select),o=(s,i,a)=>{const c=document.createElement("option");c.value=a,de(c,i),c.selected=Vo(a,n.inputValue),s.appendChild(c)};e.forEach(s=>{const i=s[0],a=s[1];if(Array.isArray(a)){const c=document.createElement("optgroup");c.label=i,c.disabled=!1,r.appendChild(c),a.forEach(u=>o(c,u[1],u[0]))}else o(r,a,i)}),r.focus()},radio:(t,e,n)=>{const r=ct(t,b.radio);e.forEach(s=>{const i=s[0],a=s[1],c=document.createElement("input"),u=document.createElement("label");c.type="radio",c.name=b.radio,c.value=i,Vo(i,n.inputValue)&&(c.checked=!0);const d=document.createElement("span");de(d,a),d.className=b.label,u.appendChild(c),u.appendChild(d),r.appendChild(u)});const o=r.querySelectorAll("input");o.length&&o[0].focus()}},Cr=t=>{const e=[];return typeof Map<"u"&&t instanceof Map?t.forEach((n,r)=>{let o=n;typeof o=="object"&&(o=Cr(o)),e.push([r,o])}):Object.keys(t).forEach(n=>{let r=t[n];typeof r=="object"&&(r=Cr(r)),e.push([n,r])}),e},Vo=(t,e)=>e&&e.toString()===t.toString();function jo(){const t=V.innerParams.get(this);if(!t)return;const e=V.domCache.get(this);me(e.loader),Kn()?t.icon&&le(pn()):Oc(e),Je([e.popup,e.actions],b.loading),e.popup.removeAttribute("aria-busy"),e.popup.removeAttribute("data-loading"),e.confirmButton.disabled=!1,e.denyButton.disabled=!1,e.cancelButton.disabled=!1}const Oc=t=>{const e=t.popup.getElementsByClassName(t.loader.getAttribute("data-button-to-replace"));e.length?le(e[0],"inline-block"):al()&&me(t.actions)};function Lc(t){const e=V.innerParams.get(t||this),n=V.domCache.get(t||this);return n?Yr(n.popup,e.input):null}const tn={swalPromiseResolve:new WeakMap,swalPromiseReject:new WeakMap},$c=()=>Pe(Y()),ii=()=>Ke()&&Ke().click(),Rc=()=>ut()&&ut().click(),Nc=()=>bt()&&bt().click(),ai=t=>{t.keydownTarget&&t.keydownHandlerAdded&&(t.keydownTarget.removeEventListener("keydown",t.keydownHandler,{capture:t.keydownListenerCapture}),t.keydownHandlerAdded=!1)},Bc=(t,e,n,r)=>{ai(e),n.toast||(e.keydownHandler=o=>Mc(t,o,r),e.keydownTarget=n.keydownListenerCapture?window:Y(),e.keydownListenerCapture=n.keydownListenerCapture,e.keydownTarget.addEventListener("keydown",e.keydownHandler,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!0)},Er=(t,e,n)=>{const r=qr();if(r.length)return e=e+n,e===r.length?e=0:e===-1&&(e=r.length-1),r[e].focus();Y().focus()},li=["ArrowRight","ArrowDown"],Dc=["ArrowLeft","ArrowUp"],Mc=(t,e,n)=>{const r=V.innerParams.get(t);r&&(e.isComposing||e.keyCode===229||(r.stopKeydownPropagation&&e.stopPropagation(),e.key==="Enter"?Uc(t,e,r):e.key==="Tab"?Hc(e,r):[...li,...Dc].includes(e.key)?Vc(e.key):e.key==="Escape"&&jc(e,r,n)))},Uc=(t,e,n)=>{if(jn(n.allowEnterKey)&&e.target&&t.getInput()&&e.target.outerHTML===t.getInput().outerHTML){if(["textarea","file"].includes(n.input))return;ii(),e.preventDefault()}},Hc=(t,e)=>{const n=t.target,r=qr();let o=-1;for(let s=0;s<r.length;s++)if(n===r[s]){o=s;break}t.shiftKey?Er(e,o,-1):Er(e,o,1),t.stopPropagation(),t.preventDefault()},Vc=t=>{const e=Ke(),n=ut(),r=bt();if(![e,n,r].includes(document.activeElement))return;const o=li.includes(t)?"nextElementSibling":"previousElementSibling";let s=document.activeElement;for(let i=0;i<hn().children.length;i++){if(s=s[o],!s)return;if(Pe(s)&&s instanceof HTMLButtonElement)break}s instanceof HTMLButtonElement&&s.focus()},jc=(t,e,n)=>{jn(e.allowEscapeKey)&&(t.preventDefault(),n(Rt.esc))};function ci(t,e,n,r){Kn()?Fo(t,r):(dl(n).then(()=>Fo(t,r)),ai(H)),/^((?!chrome|android).)*safari/i.test(navigator.userAgent)?(e.setAttribute("style","display:none !important"),e.removeAttribute("class"),e.innerHTML=""):e.remove(),Gr()&&(uc(),yc(),ni()),Fc()}function Fc(){Je([document.documentElement,document.body],[b.shown,b["height-auto"],b["no-backdrop"],b["toast-shown"]])}function _n(t){t=qc(t);const e=tn.swalPromiseResolve.get(this),n=Kc(this);this.isAwaitingPromise()?t.isDismissed||(yn(this),e(t)):n&&e(t)}function zc(){return!!V.awaitingPromise.get(this)}const Kc=t=>{const e=Y();if(!e)return!1;const n=V.innerParams.get(t);if(!n||nt(e,n.hideClass.popup))return!1;Je(e,n.showClass.popup),W(e,n.hideClass.popup);const r=fe();return Je(r,n.showClass.backdrop),W(r,n.hideClass.backdrop),Gc(t,e,n),!0};function Wc(t){const e=tn.swalPromiseReject.get(this);yn(this),e&&e(t)}const yn=t=>{t.isAwaitingPromise()&&(V.awaitingPromise.delete(t),V.innerParams.get(t)||t._destroy())},qc=t=>typeof t>"u"?{isConfirmed:!1,isDenied:!1,isDismissed:!0}:Object.assign({isConfirmed:!1,isDenied:!1,isDismissed:!1},t),Gc=(t,e,n)=>{const r=fe(),o=en&&Zs(e);typeof n.willClose=="function"&&n.willClose(e),o?Yc(t,e,r,n.returnFocus,n.didClose):ci(t,r,n.returnFocus,n.didClose)},Yc=(t,e,n,r,o)=>{H.swalCloseEventFinishedCallback=ci.bind(null,t,n,r,o),e.addEventListener(en,function(s){s.target===e&&(H.swalCloseEventFinishedCallback(),delete H.swalCloseEventFinishedCallback)})},Fo=(t,e)=>{setTimeout(()=>{typeof e=="function"&&e.bind(t.params)(),t._destroy()})};function ui(t,e,n){const r=V.domCache.get(t);e.forEach(o=>{r[o].disabled=n})}function di(t,e){if(!t)return!1;if(t.type==="radio"){const r=t.parentNode.parentNode.querySelectorAll("input");for(let o=0;o<r.length;o++)r[o].disabled=e}else t.disabled=e}function Jc(){ui(this,["confirmButton","denyButton","cancelButton"],!1)}function Xc(){ui(this,["confirmButton","denyButton","cancelButton"],!0)}function Zc(){return di(this.getInput(),!1)}function Qc(){return di(this.getInput(),!0)}function eu(t){const e=V.domCache.get(this),n=V.innerParams.get(this);de(e.validationMessage,t),e.validationMessage.className=b["validation-message"],n.customClass&&n.customClass.validationMessage&&W(e.validationMessage,n.customClass.validationMessage),le(e.validationMessage);const r=this.getInput();r&&(r.setAttribute("aria-invalid",!0),r.setAttribute("aria-describedby",b["validation-message"]),Js(r),W(r,b.inputerror))}function tu(){const t=V.domCache.get(this);t.validationMessage&&me(t.validationMessage);const e=this.getInput();e&&(e.removeAttribute("aria-invalid"),e.removeAttribute("aria-describedby"),Je(e,b.inputerror))}function nu(){return V.domCache.get(this).progressSteps}function ru(t){const e=Y(),n=V.innerParams.get(this);if(!e||nt(e,n.hideClass.popup))return Ee("You're trying to update the closed or closing popup, that won't work. Use the update() method in preConfirm parameter or show a new popup.");const r=ou(t),o=Object.assign({},n,r);ti(this,o),V.innerParams.set(this,o),Object.defineProperties(this,{params:{value:Object.assign({},this.params,t),writable:!1,enumerable:!0}})}const ou=t=>{const e={};return Object.keys(t).forEach(n=>{zs(n)?e[n]=t[n]:Ee(`Invalid parameter to update: "${n}". Updatable params are listed here: https://github.com/sweetalert2/sweetalert2/blob/master/src/utils/params.js
62
+ `).join("<br />")),vl(t)}class lc{constructor(e,n){this.callback=e,this.remaining=n,this.running=!1,this.start()}start(){return this.running||(this.running=!0,this.started=new Date,this.id=setTimeout(this.callback,this.remaining)),this.remaining}stop(){return this.running&&(this.running=!1,clearTimeout(this.id),this.remaining-=new Date().getTime()-this.started.getTime()),this.remaining}increase(e){const n=this.running;return n&&this.stop(),this.remaining+=e,n&&this.start(),this.remaining}getTimerLeft(){return this.running&&(this.stop(),this.start()),this.remaining}isRunning(){return this.running}}const cc=()=>{xt.previousBodyPadding===null&&document.body.scrollHeight>window.innerHeight&&(xt.previousBodyPadding=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight=`${xt.previousBodyPadding+Sl()}px`)},uc=()=>{xt.previousBodyPadding!==null&&(document.body.style.paddingRight=`${xt.previousBodyPadding}px`,xt.previousBodyPadding=null)},dc=()=>{if((/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1)&&!rt(document.body,b.iosfix)){const e=document.body.scrollTop;document.body.style.top=`${e*-1}px`,W(document.body,b.iosfix),mc(),fc()}},fc=()=>{const t=navigator.userAgent,e=!!t.match(/iPad/i)||!!t.match(/iPhone/i),n=!!t.match(/WebKit/i);e&&n&&!t.match(/CriOS/i)&&Y().scrollHeight>window.innerHeight-44&&(fe().style.paddingBottom="44px")},mc=()=>{const t=fe();let e;t.ontouchstart=n=>{e=pc(n)},t.ontouchmove=n=>{e&&(n.preventDefault(),n.stopPropagation())}},pc=t=>{const e=t.target,n=fe();return hc(t)||gc(t)?!1:e===n||!Bo(n)&&e.tagName!=="INPUT"&&e.tagName!=="TEXTAREA"&&!(Bo($n())&&$n().contains(e))},hc=t=>t.touches&&t.touches.length&&t.touches[0].touchType==="stylus",gc=t=>t.touches&&t.touches.length>1,yc=()=>{if(rt(document.body,b.iosfix)){const t=parseInt(document.body.style.top,10);Je(document.body,b.iosfix),document.body.style.top="",document.body.scrollTop=t*-1}},oi=10,vc=t=>{const e=fe(),n=Y();typeof t.willOpen=="function"&&t.willOpen(n);const o=window.getComputedStyle(document.body).overflowY;Sc(e,n,t),setTimeout(()=>{bc(e,n)},oi),Gr()&&(wc(e,t.scrollbarPadding,o),Jl()),!Kn()&&!H.previousActiveElement&&(H.previousActiveElement=document.activeElement),typeof t.didOpen=="function"&&setTimeout(()=>t.didOpen(n)),Je(e,b["no-transition"])},si=t=>{const e=Y();if(t.target!==e)return;const n=fe();e.removeEventListener(en,si),n.style.overflowY="auto"},bc=(t,e)=>{en&&Zs(e)?(t.style.overflowY="hidden",e.addEventListener(en,si)):t.style.overflowY="auto"},wc=(t,e,n)=>{dc(),e&&n!=="hidden"&&cc(),setTimeout(()=>{t.scrollTop=0})},Sc=(t,e,n)=>{W(t,n.showClass.backdrop),e.style.setProperty("opacity","0","important"),le(e,"grid"),setTimeout(()=>{W(e,n.showClass.popup),e.style.removeProperty("opacity")},oi),W([document.documentElement,document.body],b.shown),n.heightAuto&&n.backdrop&&!n.toast&&W([document.documentElement,document.body],b["height-auto"])},Ot=t=>{let e=Y();e||new Lt,e=Y();const n=$t();Kn()?me(pn()):_c(e,t),le(n),e.setAttribute("data-loading",!0),e.setAttribute("aria-busy",!0),e.focus()},_c=(t,e)=>{const n=hn(),r=$t();!e&&Pe(Ke())&&(e=Ke()),le(n),e&&(me(e),r.setAttribute("data-button-to-replace",e.className)),r.parentNode.insertBefore(r,e),W([t,n],b.loading)},kc=(t,e)=>{e.input==="select"||e.input==="radio"?Pc(t,e):["text","email","number","tel","textarea"].includes(e.input)&&(zr(e.inputValue)||Kr(e.inputValue))&&(Ot(Ke()),Ic(t,e))},Cc=(t,e)=>{const n=t.getInput();if(!n)return null;switch(e.input){case"checkbox":return Ec(n);case"radio":return Tc(n);case"file":return Ac(n);default:return e.inputAutoTrim?n.value.trim():n.value}},Ec=t=>t.checked?1:0,Tc=t=>t.checked?t.value:null,Ac=t=>t.files.length?t.getAttribute("multiple")!==null?t.files:t.files[0]:null,Pc=(t,e)=>{const n=Y(),r=o=>xc[e.input](n,Cr(o),e);zr(e.inputOptions)||Kr(e.inputOptions)?(Ot(Ke()),fn(e.inputOptions).then(o=>{t.hideLoading(),r(o)})):typeof e.inputOptions=="object"?r(e.inputOptions):kt(`Unexpected type of inputOptions! Expected object, Map or Promise, got ${typeof e.inputOptions}`)},Ic=(t,e)=>{const n=t.getInput();me(n),fn(e.inputValue).then(r=>{n.value=e.input==="number"?parseFloat(r)||0:`${r}`,le(n),n.focus(),t.hideLoading()}).catch(r=>{kt(`Error in inputValue promise: ${r}`),n.value="",le(n),n.focus(),t.hideLoading()})},xc={select:(t,e,n)=>{const r=ct(t,b.select),o=(s,i,a)=>{const c=document.createElement("option");c.value=a,de(c,i),c.selected=Vo(a,n.inputValue),s.appendChild(c)};e.forEach(s=>{const i=s[0],a=s[1];if(Array.isArray(a)){const c=document.createElement("optgroup");c.label=i,c.disabled=!1,r.appendChild(c),a.forEach(u=>o(c,u[1],u[0]))}else o(r,a,i)}),r.focus()},radio:(t,e,n)=>{const r=ct(t,b.radio);e.forEach(s=>{const i=s[0],a=s[1],c=document.createElement("input"),u=document.createElement("label");c.type="radio",c.name=b.radio,c.value=i,Vo(i,n.inputValue)&&(c.checked=!0);const d=document.createElement("span");de(d,a),d.className=b.label,u.appendChild(c),u.appendChild(d),r.appendChild(u)});const o=r.querySelectorAll("input");o.length&&o[0].focus()}},Cr=t=>{const e=[];return typeof Map<"u"&&t instanceof Map?t.forEach((n,r)=>{let o=n;typeof o=="object"&&(o=Cr(o)),e.push([r,o])}):Object.keys(t).forEach(n=>{let r=t[n];typeof r=="object"&&(r=Cr(r)),e.push([n,r])}),e},Vo=(t,e)=>e&&e.toString()===t.toString();function jo(){const t=V.innerParams.get(this);if(!t)return;const e=V.domCache.get(this);me(e.loader),Kn()?t.icon&&le(pn()):Oc(e),Je([e.popup,e.actions],b.loading),e.popup.removeAttribute("aria-busy"),e.popup.removeAttribute("data-loading"),e.confirmButton.disabled=!1,e.denyButton.disabled=!1,e.cancelButton.disabled=!1}const Oc=t=>{const e=t.popup.getElementsByClassName(t.loader.getAttribute("data-button-to-replace"));e.length?le(e[0],"inline-block"):al()&&me(t.actions)};function Lc(t){const e=V.innerParams.get(t||this),n=V.domCache.get(t||this);return n?Yr(n.popup,e.input):null}const tn={swalPromiseResolve:new WeakMap,swalPromiseReject:new WeakMap},$c=()=>Pe(Y()),ii=()=>Ke()&&Ke().click(),Rc=()=>ut()&&ut().click(),Nc=()=>bt()&&bt().click(),ai=t=>{t.keydownTarget&&t.keydownHandlerAdded&&(t.keydownTarget.removeEventListener("keydown",t.keydownHandler,{capture:t.keydownListenerCapture}),t.keydownHandlerAdded=!1)},Bc=(t,e,n,r)=>{ai(e),n.toast||(e.keydownHandler=o=>Mc(t,o,r),e.keydownTarget=n.keydownListenerCapture?window:Y(),e.keydownListenerCapture=n.keydownListenerCapture,e.keydownTarget.addEventListener("keydown",e.keydownHandler,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!0)},Er=(t,e,n)=>{const r=qr();if(r.length)return e=e+n,e===r.length?e=0:e===-1&&(e=r.length-1),r[e].focus();Y().focus()},li=["ArrowRight","ArrowDown"],Dc=["ArrowLeft","ArrowUp"],Mc=(t,e,n)=>{const r=V.innerParams.get(t);r&&(e.isComposing||e.keyCode===229||(r.stopKeydownPropagation&&e.stopPropagation(),e.key==="Enter"?Uc(t,e,r):e.key==="Tab"?Hc(e,r):[...li,...Dc].includes(e.key)?Vc(e.key):e.key==="Escape"&&jc(e,r,n)))},Uc=(t,e,n)=>{if(jn(n.allowEnterKey)&&e.target&&t.getInput()&&e.target.outerHTML===t.getInput().outerHTML){if(["textarea","file"].includes(n.input))return;ii(),e.preventDefault()}},Hc=(t,e)=>{const n=t.target,r=qr();let o=-1;for(let s=0;s<r.length;s++)if(n===r[s]){o=s;break}t.shiftKey?Er(e,o,-1):Er(e,o,1),t.stopPropagation(),t.preventDefault()},Vc=t=>{const e=Ke(),n=ut(),r=bt();if(![e,n,r].includes(document.activeElement))return;const o=li.includes(t)?"nextElementSibling":"previousElementSibling";let s=document.activeElement;for(let i=0;i<hn().children.length;i++){if(s=s[o],!s)return;if(Pe(s)&&s instanceof HTMLButtonElement)break}s instanceof HTMLButtonElement&&s.focus()},jc=(t,e,n)=>{jn(e.allowEscapeKey)&&(t.preventDefault(),n(Rt.esc))};function ci(t,e,n,r){Kn()?Fo(t,r):(dl(n).then(()=>Fo(t,r)),ai(H)),/^((?!chrome|android).)*safari/i.test(navigator.userAgent)?(e.setAttribute("style","display:none !important"),e.removeAttribute("class"),e.innerHTML=""):e.remove(),Gr()&&(uc(),yc(),ni()),Fc()}function Fc(){Je([document.documentElement,document.body],[b.shown,b["height-auto"],b["no-backdrop"],b["toast-shown"]])}function _n(t){t=qc(t);const e=tn.swalPromiseResolve.get(this),n=Kc(this);this.isAwaitingPromise()?t.isDismissed||(yn(this),e(t)):n&&e(t)}function zc(){return!!V.awaitingPromise.get(this)}const Kc=t=>{const e=Y();if(!e)return!1;const n=V.innerParams.get(t);if(!n||rt(e,n.hideClass.popup))return!1;Je(e,n.showClass.popup),W(e,n.hideClass.popup);const r=fe();return Je(r,n.showClass.backdrop),W(r,n.hideClass.backdrop),Gc(t,e,n),!0};function Wc(t){const e=tn.swalPromiseReject.get(this);yn(this),e&&e(t)}const yn=t=>{t.isAwaitingPromise()&&(V.awaitingPromise.delete(t),V.innerParams.get(t)||t._destroy())},qc=t=>typeof t>"u"?{isConfirmed:!1,isDenied:!1,isDismissed:!0}:Object.assign({isConfirmed:!1,isDenied:!1,isDismissed:!1},t),Gc=(t,e,n)=>{const r=fe(),o=en&&Zs(e);typeof n.willClose=="function"&&n.willClose(e),o?Yc(t,e,r,n.returnFocus,n.didClose):ci(t,r,n.returnFocus,n.didClose)},Yc=(t,e,n,r,o)=>{H.swalCloseEventFinishedCallback=ci.bind(null,t,n,r,o),e.addEventListener(en,function(s){s.target===e&&(H.swalCloseEventFinishedCallback(),delete H.swalCloseEventFinishedCallback)})},Fo=(t,e)=>{setTimeout(()=>{typeof e=="function"&&e.bind(t.params)(),t._destroy()})};function ui(t,e,n){const r=V.domCache.get(t);e.forEach(o=>{r[o].disabled=n})}function di(t,e){if(!t)return!1;if(t.type==="radio"){const r=t.parentNode.parentNode.querySelectorAll("input");for(let o=0;o<r.length;o++)r[o].disabled=e}else t.disabled=e}function Jc(){ui(this,["confirmButton","denyButton","cancelButton"],!1)}function Xc(){ui(this,["confirmButton","denyButton","cancelButton"],!0)}function Zc(){return di(this.getInput(),!1)}function Qc(){return di(this.getInput(),!0)}function eu(t){const e=V.domCache.get(this),n=V.innerParams.get(this);de(e.validationMessage,t),e.validationMessage.className=b["validation-message"],n.customClass&&n.customClass.validationMessage&&W(e.validationMessage,n.customClass.validationMessage),le(e.validationMessage);const r=this.getInput();r&&(r.setAttribute("aria-invalid",!0),r.setAttribute("aria-describedby",b["validation-message"]),Js(r),W(r,b.inputerror))}function tu(){const t=V.domCache.get(this);t.validationMessage&&me(t.validationMessage);const e=this.getInput();e&&(e.removeAttribute("aria-invalid"),e.removeAttribute("aria-describedby"),Je(e,b.inputerror))}function nu(){return V.domCache.get(this).progressSteps}function ru(t){const e=Y(),n=V.innerParams.get(this);if(!e||rt(e,n.hideClass.popup))return Ee("You're trying to update the closed or closing popup, that won't work. Use the update() method in preConfirm parameter or show a new popup.");const r=ou(t),o=Object.assign({},n,r);ti(this,o),V.innerParams.set(this,o),Object.defineProperties(this,{params:{value:Object.assign({},this.params,t),writable:!1,enumerable:!0}})}const ou=t=>{const e={};return Object.keys(t).forEach(n=>{zs(n)?e[n]=t[n]:Ee(`Invalid parameter to update: "${n}". Updatable params are listed here: https://github.com/sweetalert2/sweetalert2/blob/master/src/utils/params.js
63
63
 
64
- If you think this parameter should be updatable, request it here: https://github.com/sweetalert2/sweetalert2/issues/new?template=02_feature_request.md`)}),e};function su(){const t=V.domCache.get(this),e=V.innerParams.get(this);if(!e){fi(this);return}t.popup&&H.swalCloseEventFinishedCallback&&(H.swalCloseEventFinishedCallback(),delete H.swalCloseEventFinishedCallback),H.deferDisposalTimer&&(clearTimeout(H.deferDisposalTimer),delete H.deferDisposalTimer),typeof e.didDestroy=="function"&&e.didDestroy(),iu(this)}const iu=t=>{fi(t),delete t.params,delete H.keydownHandler,delete H.keydownTarget,delete H.currentInstance},fi=t=>{t.isAwaitingPromise()?(ar(V,t),V.awaitingPromise.set(t,!0)):(ar(tn,t),ar(V,t))},ar=(t,e)=>{for(const n in t)t[n].delete(e)},mi=Object.freeze(Object.defineProperty({__proto__:null,_destroy:su,close:_n,closeModal:_n,closePopup:_n,closeToast:_n,disableButtons:Xc,disableInput:Qc,disableLoading:jo,enableButtons:Jc,enableInput:Zc,getInput:Lc,getProgressSteps:nu,handleAwaitingPromise:yn,hideLoading:jo,isAwaitingPromise:zc,rejectPromise:Wc,resetValidationMessage:tu,showValidationMessage:eu,update:ru},Symbol.toStringTag,{value:"Module"})),au=t=>{const e=V.innerParams.get(t);t.disableButtons(),e.input?pi(t,"confirm"):eo(t,!0)},lu=t=>{const e=V.innerParams.get(t);t.disableButtons(),e.returnInputValueOnDeny?pi(t,"deny"):Qr(t,!1)},cu=(t,e)=>{t.disableButtons(),e(Rt.cancel)},pi=(t,e)=>{const n=V.innerParams.get(t);if(!n.input)return kt(`The "input" parameter is needed to be set when using returnInputValueOn${Fr(e)}`);const r=Cc(t,n);n.inputValidator?uu(t,r,e):t.getInput().checkValidity()?e==="deny"?Qr(t,r):eo(t,r):(t.enableButtons(),t.showValidationMessage(n.validationMessage))},uu=(t,e,n)=>{const r=V.innerParams.get(t);t.disableInput(),Promise.resolve().then(()=>fn(r.inputValidator(e,r.validationMessage))).then(s=>{t.enableButtons(),t.enableInput(),s?t.showValidationMessage(s):n==="deny"?Qr(t,e):eo(t,e)})},Qr=(t,e)=>{const n=V.innerParams.get(t||void 0);n.showLoaderOnDeny&&Ot(ut()),n.preDeny?(V.awaitingPromise.set(t||void 0,!0),Promise.resolve().then(()=>fn(n.preDeny(e,n.validationMessage))).then(o=>{o===!1?(t.hideLoading(),yn(t)):t.closePopup({isDenied:!0,value:typeof o>"u"?e:o})}).catch(o=>hi(t||void 0,o))):t.closePopup({isDenied:!0,value:e})},zo=(t,e)=>{t.closePopup({isConfirmed:!0,value:e})},hi=(t,e)=>{t.rejectPromise(e)},eo=(t,e)=>{const n=V.innerParams.get(t||void 0);n.showLoaderOnConfirm&&Ot(),n.preConfirm?(t.resetValidationMessage(),V.awaitingPromise.set(t||void 0,!0),Promise.resolve().then(()=>fn(n.preConfirm(e,n.validationMessage))).then(o=>{Pe(Fn())||o===!1?(t.hideLoading(),yn(t)):zo(t,typeof o>"u"?e:o)}).catch(o=>hi(t||void 0,o))):zo(t,e)},du=(t,e,n)=>{V.innerParams.get(t).toast?fu(t,e,n):(pu(e),hu(e),gu(t,e,n))},fu=(t,e,n)=>{e.popup.onclick=()=>{const r=V.innerParams.get(t);r&&(mu(r)||r.timer||r.input)||n(Rt.close)}},mu=t=>t.showConfirmButton||t.showDenyButton||t.showCancelButton||t.showCloseButton;let Rn=!1;const pu=t=>{t.popup.onmousedown=()=>{t.container.onmouseup=function(e){t.container.onmouseup=void 0,e.target===t.container&&(Rn=!0)}}},hu=t=>{t.container.onmousedown=()=>{t.popup.onmouseup=function(e){t.popup.onmouseup=void 0,(e.target===t.popup||t.popup.contains(e.target))&&(Rn=!0)}}},gu=(t,e,n)=>{e.container.onclick=r=>{const o=V.innerParams.get(t);if(Rn){Rn=!1;return}r.target===e.container&&jn(o.allowOutsideClick)&&n(Rt.backdrop)}},yu=t=>typeof t=="object"&&t.jquery,Ko=t=>t instanceof Element||yu(t),vu=t=>{const e={};return typeof t[0]=="object"&&!Ko(t[0])?Object.assign(e,t[0]):["title","html","icon"].forEach((n,r)=>{const o=t[r];typeof o=="string"||Ko(o)?e[n]=o:o!==void 0&&kt(`Unexpected type of ${n}! Expected "string" or "Element", got ${typeof o}`)}),e};function bu(...t){const e=this;return new e(...t)}function wu(t){class e extends this{_main(r,o){return super._main(r,Object.assign({},t,o))}}return e}const Su=()=>H.timeout&&H.timeout.getTimerLeft(),gi=()=>{if(H.timeout)return ll(),H.timeout.stop()},yi=()=>{if(H.timeout){const t=H.timeout.start();return Jr(t),t}},_u=()=>{const t=H.timeout;return t&&(t.running?gi():yi())},ku=t=>{if(H.timeout){const e=H.timeout.increase(t);return Jr(e,!0),e}},Cu=()=>H.timeout&&H.timeout.isRunning();let Wo=!1;const Tr={};function Eu(t="data-swal-template"){Tr[t]=this,Wo||(document.body.addEventListener("click",Tu),Wo=!0)}const Tu=t=>{for(let e=t.target;e&&e!==document;e=e.parentNode)for(const n in Tr){const r=e.getAttribute(n);if(r){Tr[n].fire({template:r});return}}},Au=Object.freeze(Object.defineProperty({__proto__:null,argsToParams:vu,bindClickHandler:Eu,clickCancel:Nc,clickConfirm:ii,clickDeny:Rc,enableLoading:Ot,fire:bu,getActions:hn,getCancelButton:bt,getCloseButton:Wr,getConfirmButton:Ke,getContainer:fe,getDenyButton:ut,getFocusableElements:qr,getFooter:Ys,getHtmlContainer:$n,getIcon:pn,getImage:qs,getInputLabel:rl,getLoader:$t,getPopup:Y,getTimerLeft:Su,getTimerProgressBar:zn,getTitle:Ws,getValidationMessage:Fn,increaseTimer:ku,isDeprecatedParameter:kr,isLoading:sl,isTimerRunning:Cu,isUpdatableParameter:zs,isValidParameter:Fs,isVisible:$c,mixin:wu,resumeTimer:yi,showLoading:Ot,stopTimer:gi,toggleTimer:_u},Symbol.toStringTag,{value:"Module"}));let Ar;class Nt{constructor(...e){if(typeof window>"u")return;Ar=this;const n=Object.freeze(this.constructor.argsToParams(e));Object.defineProperties(this,{params:{value:n,writable:!1,enumerable:!0,configurable:!0}});const r=this._main(this.params);V.promise.set(this,r)}_main(e,n={}){tl(Object.assign({},n,e)),H.currentInstance&&(H.currentInstance._destroy(),Gr()&&ni()),H.currentInstance=this;const r=Iu(e,n);ac(r),Object.freeze(r),H.timeout&&(H.timeout.stop(),delete H.timeout),clearTimeout(H.restoreFocusTimeout);const o=xu(this);return ti(this,r),V.innerParams.set(this,r),Pu(this,o,r)}then(e){return V.promise.get(this).then(e)}finally(e){return V.promise.get(this).finally(e)}}const Pu=(t,e,n)=>new Promise((r,o)=>{const s=i=>{t.closePopup({isDismissed:!0,dismiss:i})};tn.swalPromiseResolve.set(t,r),tn.swalPromiseReject.set(t,o),e.confirmButton.onclick=()=>au(t),e.denyButton.onclick=()=>lu(t),e.cancelButton.onclick=()=>cu(t,s),e.closeButton.onclick=()=>s(Rt.close),du(t,e,s),Bc(t,H,n,s),kc(t,n),vc(n),Ou(H,n,s),Lu(e,n),setTimeout(()=>{e.container.scrollTop=0})}),Iu=(t,e)=>{const n=Xl(t),r=Object.assign({},It,e,n,t);return r.showClass=Object.assign({},It.showClass,r.showClass),r.hideClass=Object.assign({},It.hideClass,r.hideClass),r},xu=t=>{const e={popup:Y(),container:fe(),actions:hn(),confirmButton:Ke(),denyButton:ut(),cancelButton:bt(),loader:$t(),closeButton:Wr(),validationMessage:Fn(),progressSteps:Gs()};return V.domCache.set(t,e),e},Ou=(t,e,n)=>{const r=zn();me(r),e.timer&&(t.timeout=new lc(()=>{n("timer"),delete t.timeout},e.timer),e.timerProgressBar&&(le(r),Ne(r,e,"timerProgressBar"),setTimeout(()=>{t.timeout&&t.timeout.running&&Jr(e.timer)})))},Lu=(t,e)=>{if(!e.toast){if(!jn(e.allowEnterKey))return Ru();$u(t,e)||Er(e,-1,1)}},$u=(t,e)=>e.focusDeny&&Pe(t.denyButton)?(t.denyButton.focus(),!0):e.focusCancel&&Pe(t.cancelButton)?(t.cancelButton.focus(),!0):e.focusConfirm&&Pe(t.confirmButton)?(t.confirmButton.focus(),!0):!1,Ru=()=>{document.activeElement instanceof HTMLElement&&typeof document.activeElement.blur=="function"&&document.activeElement.blur()};Object.assign(Nt.prototype,mi);Object.assign(Nt,Au);Object.keys(mi).forEach(t=>{Nt[t]=function(...e){if(Ar)return Ar[t](...e)}});Nt.DismissReason=Rt;Nt.version="11.4.8";const Lt=Nt;Lt.default=Lt;/*! @license DOMPurify 3.0.9 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.0.9/LICENSE */const{entries:vi,setPrototypeOf:qo,isFrozen:Nu,getPrototypeOf:Bu,getOwnPropertyDescriptor:Du}=Object;let{freeze:ye,seal:We,create:bi}=Object,{apply:Pr,construct:Ir}=typeof Reflect<"u"&&Reflect;ye||(ye=function(e){return e});We||(We=function(e){return e});Pr||(Pr=function(e,n,r){return e.apply(n,r)});Ir||(Ir=function(e,n){return new e(...n)});const kn=Le(Array.prototype.forEach),Go=Le(Array.prototype.pop),Vt=Le(Array.prototype.push),Pn=Le(String.prototype.toLowerCase),lr=Le(String.prototype.toString),Mu=Le(String.prototype.match),jt=Le(String.prototype.replace),Uu=Le(String.prototype.indexOf),Hu=Le(String.prototype.trim),Ve=Le(Object.prototype.hasOwnProperty),Ae=Le(RegExp.prototype.test),Ft=Vu(TypeError);function Le(t){return function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return Pr(t,e,r)}}function Vu(t){return function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return Ir(t,n)}}function z(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Pn;qo&&qo(t,null);let r=e.length;for(;r--;){let o=e[r];if(typeof o=="string"){const s=n(o);s!==o&&(Nu(e)||(e[r]=s),o=s)}t[o]=!0}return t}function ju(t){for(let e=0;e<t.length;e++)Ve(t,e)||(t[e]=null);return t}function ht(t){const e=bi(null);for(const[n,r]of vi(t))Ve(t,n)&&(Array.isArray(r)?e[n]=ju(r):r&&typeof r=="object"&&r.constructor===Object?e[n]=ht(r):e[n]=r);return e}function Cn(t,e){for(;t!==null;){const r=Du(t,e);if(r){if(r.get)return Le(r.get);if(typeof r.value=="function")return Le(r.value)}t=Bu(t)}function n(){return null}return n}const Yo=ye(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),cr=ye(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),ur=ye(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Fu=ye(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),dr=ye(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),zu=ye(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Jo=ye(["#text"]),Xo=ye(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),fr=ye(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Zo=ye(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),En=ye(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Ku=We(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Wu=We(/<%[\w\W]*|[\w\W]*%>/gm),qu=We(/\${[\w\W]*}/gm),Gu=We(/^data-[\-\w.\u00B7-\uFFFF]/),Yu=We(/^aria-[\-\w]+$/),wi=We(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Ju=We(/^(?:\w+script|data):/i),Xu=We(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Si=We(/^html$/i);var Qo=Object.freeze({__proto__:null,MUSTACHE_EXPR:Ku,ERB_EXPR:Wu,TMPLIT_EXPR:qu,DATA_ATTR:Gu,ARIA_ATTR:Yu,IS_ALLOWED_URI:wi,IS_SCRIPT_OR_DATA:Ju,ATTR_WHITESPACE:Xu,DOCTYPE_NAME:Si});const Zu=function(){return typeof window>"u"?null:window},Qu=function(e,n){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let r=null;const o="data-tt-policy-suffix";n&&n.hasAttribute(o)&&(r=n.getAttribute(o));const s="dompurify"+(r?"#"+r:"");try{return e.createPolicy(s,{createHTML(i){return i},createScriptURL(i){return i}})}catch{return console.warn("TrustedTypes policy "+s+" could not be created."),null}};function _i(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Zu();const e=N=>_i(N);if(e.version="3.0.9",e.removed=[],!t||!t.document||t.document.nodeType!==9)return e.isSupported=!1,e;let{document:n}=t;const r=n,o=r.currentScript,{DocumentFragment:s,HTMLTemplateElement:i,Node:a,Element:c,NodeFilter:u,NamedNodeMap:d=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:m,DOMParser:g,trustedTypes:_}=t,v=c.prototype,T=Cn(v,"cloneNode"),w=Cn(v,"nextSibling"),B=Cn(v,"childNodes"),C=Cn(v,"parentNode");if(typeof i=="function"){const N=n.createElement("template");N.content&&N.content.ownerDocument&&(n=N.content.ownerDocument)}let A,j="";const{implementation:X,createNodeIterator:ne,createDocumentFragment:J,getElementsByTagName:pe}=n,{importNode:se}=r;let U={};e.isSupported=typeof vi=="function"&&typeof C=="function"&&X&&X.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:Te,ERB_EXPR:ve,TMPLIT_EXPR:De,DATA_ATTR:Me,ARIA_ATTR:rt,IS_SCRIPT_OR_DATA:Xe,ATTR_WHITESPACE:Ue}=Qo;let{IS_ALLOWED_URI:Ge}=Qo,te=null;const $e=z({},[...Yo,...cr,...ur,...dr,...Jo]);let f=null;const h=z({},[...Xo,...fr,...Zo,...En]);let S=Object.seal(bi(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),P=null,k=null,L=!0,E=!0,I=!1,D=!0,O=!1,$=!1,Z=!1,oe=!1,he=!1,ae=!1,Re=!1,po=!0,ho=!1;const ga="user-content-";let er=!0,Mt=!1,Ct={},Et=null;const go=z({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let yo=null;const vo=z({},["audio","video","img","source","image","track"]);let tr=null;const bo=z({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),wn="http://www.w3.org/1998/Math/MathML",Sn="http://www.w3.org/2000/svg",Ze="http://www.w3.org/1999/xhtml";let Tt=Ze,nr=!1,rr=null;const ya=z({},[wn,Sn,Ze],lr);let Ut=null;const va=["application/xhtml+xml","text/html"],ba="text/html";let ie=null,At=null;const wa=n.createElement("form"),wo=function(p){return p instanceof RegExp||p instanceof Function},or=function(){let p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(At&&At===p)){if((!p||typeof p!="object")&&(p={}),p=ht(p),Ut=va.indexOf(p.PARSER_MEDIA_TYPE)===-1?ba:p.PARSER_MEDIA_TYPE,ie=Ut==="application/xhtml+xml"?lr:Pn,te=Ve(p,"ALLOWED_TAGS")?z({},p.ALLOWED_TAGS,ie):$e,f=Ve(p,"ALLOWED_ATTR")?z({},p.ALLOWED_ATTR,ie):h,rr=Ve(p,"ALLOWED_NAMESPACES")?z({},p.ALLOWED_NAMESPACES,lr):ya,tr=Ve(p,"ADD_URI_SAFE_ATTR")?z(ht(bo),p.ADD_URI_SAFE_ATTR,ie):bo,yo=Ve(p,"ADD_DATA_URI_TAGS")?z(ht(vo),p.ADD_DATA_URI_TAGS,ie):vo,Et=Ve(p,"FORBID_CONTENTS")?z({},p.FORBID_CONTENTS,ie):go,P=Ve(p,"FORBID_TAGS")?z({},p.FORBID_TAGS,ie):{},k=Ve(p,"FORBID_ATTR")?z({},p.FORBID_ATTR,ie):{},Ct=Ve(p,"USE_PROFILES")?p.USE_PROFILES:!1,L=p.ALLOW_ARIA_ATTR!==!1,E=p.ALLOW_DATA_ATTR!==!1,I=p.ALLOW_UNKNOWN_PROTOCOLS||!1,D=p.ALLOW_SELF_CLOSE_IN_ATTR!==!1,O=p.SAFE_FOR_TEMPLATES||!1,$=p.WHOLE_DOCUMENT||!1,he=p.RETURN_DOM||!1,ae=p.RETURN_DOM_FRAGMENT||!1,Re=p.RETURN_TRUSTED_TYPE||!1,oe=p.FORCE_BODY||!1,po=p.SANITIZE_DOM!==!1,ho=p.SANITIZE_NAMED_PROPS||!1,er=p.KEEP_CONTENT!==!1,Mt=p.IN_PLACE||!1,Ge=p.ALLOWED_URI_REGEXP||wi,Tt=p.NAMESPACE||Ze,S=p.CUSTOM_ELEMENT_HANDLING||{},p.CUSTOM_ELEMENT_HANDLING&&wo(p.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(S.tagNameCheck=p.CUSTOM_ELEMENT_HANDLING.tagNameCheck),p.CUSTOM_ELEMENT_HANDLING&&wo(p.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(S.attributeNameCheck=p.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),p.CUSTOM_ELEMENT_HANDLING&&typeof p.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(S.allowCustomizedBuiltInElements=p.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),O&&(E=!1),ae&&(he=!0),Ct&&(te=z({},Jo),f=[],Ct.html===!0&&(z(te,Yo),z(f,Xo)),Ct.svg===!0&&(z(te,cr),z(f,fr),z(f,En)),Ct.svgFilters===!0&&(z(te,ur),z(f,fr),z(f,En)),Ct.mathMl===!0&&(z(te,dr),z(f,Zo),z(f,En))),p.ADD_TAGS&&(te===$e&&(te=ht(te)),z(te,p.ADD_TAGS,ie)),p.ADD_ATTR&&(f===h&&(f=ht(f)),z(f,p.ADD_ATTR,ie)),p.ADD_URI_SAFE_ATTR&&z(tr,p.ADD_URI_SAFE_ATTR,ie),p.FORBID_CONTENTS&&(Et===go&&(Et=ht(Et)),z(Et,p.FORBID_CONTENTS,ie)),er&&(te["#text"]=!0),$&&z(te,["html","head","body"]),te.table&&(z(te,["tbody"]),delete P.tbody),p.TRUSTED_TYPES_POLICY){if(typeof p.TRUSTED_TYPES_POLICY.createHTML!="function")throw Ft('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof p.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Ft('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');A=p.TRUSTED_TYPES_POLICY,j=A.createHTML("")}else A===void 0&&(A=Qu(_,o)),A!==null&&typeof j=="string"&&(j=A.createHTML(""));ye&&ye(p),At=p}},So=z({},["mi","mo","mn","ms","mtext"]),_o=z({},["foreignobject","desc","title","annotation-xml"]),Sa=z({},["title","style","font","a","script"]),ko=z({},[...cr,...ur,...Fu]),Co=z({},[...dr,...zu]),_a=function(p){let x=C(p);(!x||!x.tagName)&&(x={namespaceURI:Tt,tagName:"template"});const R=Pn(p.tagName),Q=Pn(x.tagName);return rr[p.namespaceURI]?p.namespaceURI===Sn?x.namespaceURI===Ze?R==="svg":x.namespaceURI===wn?R==="svg"&&(Q==="annotation-xml"||So[Q]):!!ko[R]:p.namespaceURI===wn?x.namespaceURI===Ze?R==="math":x.namespaceURI===Sn?R==="math"&&_o[Q]:!!Co[R]:p.namespaceURI===Ze?x.namespaceURI===Sn&&!_o[Q]||x.namespaceURI===wn&&!So[Q]?!1:!Co[R]&&(Sa[R]||!ko[R]):!!(Ut==="application/xhtml+xml"&&rr[p.namespaceURI]):!1},ft=function(p){Vt(e.removed,{element:p});try{p.parentNode.removeChild(p)}catch{p.remove()}},sr=function(p,x){try{Vt(e.removed,{attribute:x.getAttributeNode(p),from:x})}catch{Vt(e.removed,{attribute:null,from:x})}if(x.removeAttribute(p),p==="is"&&!f[p])if(he||ae)try{ft(x)}catch{}else try{x.setAttribute(p,"")}catch{}},Eo=function(p){let x=null,R=null;if(oe)p="<remove></remove>"+p;else{const ue=Mu(p,/^[\r\n\t ]+/);R=ue&&ue[0]}Ut==="application/xhtml+xml"&&Tt===Ze&&(p='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+p+"</body></html>");const Q=A?A.createHTML(p):p;if(Tt===Ze)try{x=new g().parseFromString(Q,Ut)}catch{}if(!x||!x.documentElement){x=X.createDocument(Tt,"template",null);try{x.documentElement.innerHTML=nr?j:Q}catch{}}const ce=x.body||x.documentElement;return p&&R&&ce.insertBefore(n.createTextNode(R),ce.childNodes[0]||null),Tt===Ze?pe.call(x,$?"html":"body")[0]:$?x.documentElement:ce},To=function(p){return ne.call(p.ownerDocument||p,p,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT,null)},ka=function(p){return p instanceof m&&(typeof p.nodeName!="string"||typeof p.textContent!="string"||typeof p.removeChild!="function"||!(p.attributes instanceof d)||typeof p.removeAttribute!="function"||typeof p.setAttribute!="function"||typeof p.namespaceURI!="string"||typeof p.insertBefore!="function"||typeof p.hasChildNodes!="function")},Ao=function(p){return typeof a=="function"&&p instanceof a},Qe=function(p,x,R){U[p]&&kn(U[p],Q=>{Q.call(e,x,R,At)})},Po=function(p){let x=null;if(Qe("beforeSanitizeElements",p,null),ka(p))return ft(p),!0;const R=ie(p.nodeName);if(Qe("uponSanitizeElement",p,{tagName:R,allowedTags:te}),p.hasChildNodes()&&!Ao(p.firstElementChild)&&Ae(/<[/\w]/g,p.innerHTML)&&Ae(/<[/\w]/g,p.textContent))return ft(p),!0;if(!te[R]||P[R]){if(!P[R]&&xo(R)&&(S.tagNameCheck instanceof RegExp&&Ae(S.tagNameCheck,R)||S.tagNameCheck instanceof Function&&S.tagNameCheck(R)))return!1;if(er&&!Et[R]){const Q=C(p)||p.parentNode,ce=B(p)||p.childNodes;if(ce&&Q){const ue=ce.length;for(let be=ue-1;be>=0;--be)Q.insertBefore(T(ce[be],!0),w(p))}}return ft(p),!0}return p instanceof c&&!_a(p)||(R==="noscript"||R==="noembed"||R==="noframes")&&Ae(/<\/no(script|embed|frames)/i,p.innerHTML)?(ft(p),!0):(O&&p.nodeType===3&&(x=p.textContent,kn([Te,ve,De],Q=>{x=jt(x,Q," ")}),p.textContent!==x&&(Vt(e.removed,{element:p.cloneNode()}),p.textContent=x)),Qe("afterSanitizeElements",p,null),!1)},Io=function(p,x,R){if(po&&(x==="id"||x==="name")&&(R in n||R in wa))return!1;if(!(E&&!k[x]&&Ae(Me,x))){if(!(L&&Ae(rt,x))){if(!f[x]||k[x]){if(!(xo(p)&&(S.tagNameCheck instanceof RegExp&&Ae(S.tagNameCheck,p)||S.tagNameCheck instanceof Function&&S.tagNameCheck(p))&&(S.attributeNameCheck instanceof RegExp&&Ae(S.attributeNameCheck,x)||S.attributeNameCheck instanceof Function&&S.attributeNameCheck(x))||x==="is"&&S.allowCustomizedBuiltInElements&&(S.tagNameCheck instanceof RegExp&&Ae(S.tagNameCheck,R)||S.tagNameCheck instanceof Function&&S.tagNameCheck(R))))return!1}else if(!tr[x]){if(!Ae(Ge,jt(R,Ue,""))){if(!((x==="src"||x==="xlink:href"||x==="href")&&p!=="script"&&Uu(R,"data:")===0&&yo[p])){if(!(I&&!Ae(Xe,jt(R,Ue,"")))){if(R)return!1}}}}}}return!0},xo=function(p){return p!=="annotation-xml"&&p.indexOf("-")>0},Oo=function(p){Qe("beforeSanitizeAttributes",p,null);const{attributes:x}=p;if(!x)return;const R={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:f};let Q=x.length;for(;Q--;){const ce=x[Q],{name:ue,namespaceURI:be,value:mt}=ce,Ht=ie(ue);let we=ue==="value"?mt:Hu(mt);if(R.attrName=Ht,R.attrValue=we,R.keepAttr=!0,R.forceKeepAttr=void 0,Qe("uponSanitizeAttribute",p,R),we=R.attrValue,R.forceKeepAttr||(sr(ue,p),!R.keepAttr))continue;if(!D&&Ae(/\/>/i,we)){sr(ue,p);continue}O&&kn([Te,ve,De],$o=>{we=jt(we,$o," ")});const Lo=ie(p.nodeName);if(Io(Lo,Ht,we)){if(ho&&(Ht==="id"||Ht==="name")&&(sr(ue,p),we=ga+we),A&&typeof _=="object"&&typeof _.getAttributeType=="function"&&!be)switch(_.getAttributeType(Lo,Ht)){case"TrustedHTML":{we=A.createHTML(we);break}case"TrustedScriptURL":{we=A.createScriptURL(we);break}}try{be?p.setAttributeNS(be,ue,we):p.setAttribute(ue,we),Go(e.removed)}catch{}}}Qe("afterSanitizeAttributes",p,null)},Ca=function N(p){let x=null;const R=To(p);for(Qe("beforeSanitizeShadowDOM",p,null);x=R.nextNode();)Qe("uponSanitizeShadowNode",x,null),!Po(x)&&(x.content instanceof s&&N(x.content),Oo(x));Qe("afterSanitizeShadowDOM",p,null)};return e.sanitize=function(N){let p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},x=null,R=null,Q=null,ce=null;if(nr=!N,nr&&(N="<!-->"),typeof N!="string"&&!Ao(N))if(typeof N.toString=="function"){if(N=N.toString(),typeof N!="string")throw Ft("dirty is not a string, aborting")}else throw Ft("toString is not a function");if(!e.isSupported)return N;if(Z||or(p),e.removed=[],typeof N=="string"&&(Mt=!1),Mt){if(N.nodeName){const mt=ie(N.nodeName);if(!te[mt]||P[mt])throw Ft("root node is forbidden and cannot be sanitized in-place")}}else if(N instanceof a)x=Eo("<!---->"),R=x.ownerDocument.importNode(N,!0),R.nodeType===1&&R.nodeName==="BODY"||R.nodeName==="HTML"?x=R:x.appendChild(R);else{if(!he&&!O&&!$&&N.indexOf("<")===-1)return A&&Re?A.createHTML(N):N;if(x=Eo(N),!x)return he?null:Re?j:""}x&&oe&&ft(x.firstChild);const ue=To(Mt?N:x);for(;Q=ue.nextNode();)Po(Q)||(Q.content instanceof s&&Ca(Q.content),Oo(Q));if(Mt)return N;if(he){if(ae)for(ce=J.call(x.ownerDocument);x.firstChild;)ce.appendChild(x.firstChild);else ce=x;return(f.shadowroot||f.shadowrootmode)&&(ce=se.call(r,ce,!0)),ce}let be=$?x.outerHTML:x.innerHTML;return $&&te["!doctype"]&&x.ownerDocument&&x.ownerDocument.doctype&&x.ownerDocument.doctype.name&&Ae(Si,x.ownerDocument.doctype.name)&&(be="<!DOCTYPE "+x.ownerDocument.doctype.name+`>
65
- `+be),O&&kn([Te,ve,De],mt=>{be=jt(be,mt," ")}),A&&Re?A.createHTML(be):be},e.setConfig=function(){let N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};or(N),Z=!0},e.clearConfig=function(){At=null,Z=!1},e.isValidAttribute=function(N,p,x){At||or({});const R=ie(N),Q=ie(p);return Io(R,Q,x)},e.addHook=function(N,p){typeof p=="function"&&(U[N]=U[N]||[],Vt(U[N],p))},e.removeHook=function(N){if(U[N])return Go(U[N])},e.removeHooks=function(N){U[N]&&(U[N]=[])},e.removeAllHooks=function(){U={}},e}var ki=_i();let Ci=class{get IsVisible(){return Lt.isVisible()}};class ed extends Ci{constructor(){super()}async CreateAlertAsync(e){let n="info",r,o;return typeof e=="string"||Array.isArray(e)?r=Array.isArray(e)?e.join("<br />"):e:(n=e.icon??"info",o=e.title??"",r=Array.isArray(e.text)?e.text.join("<br />"):e.text),new Promise(s=>{Lt.fire({allowEscapeKey:!1,allowOutsideClick:!1,icon:n,title:o,html:`<div style="max-height: 50vh; overflow: auto">${ki.sanitize(r)}</div>`}).then(()=>s(!0))})}async AlertAsync(e){return this.CreateAlertAsync({text:e,icon:"info"})}async AlertErrorAsync(e){return this.CreateAlertAsync({text:e,icon:"error"})}async AlertSuccessAsync(e){return this.CreateAlertAsync({text:e,icon:"success"})}}class td extends Ci{async CreateConfirmAsync(e){return new Promise(n=>{Lt.fire({showCancelButton:!0,allowEscapeKey:!1,allowOutsideClick:!1,icon:"question",title:e.title,html:ki.sanitize(e.text),confirmButtonText:e.confirmLabel??"confirmar",cancelButtonText:e.rejectLabel??"cancelar"}).then(r=>{n(r.isConfirmed===!0)})})}async ConfirmAsync(e){return this.CreateConfirmAsync({text:e})}}const nd=()=>new ed,Ei=()=>new td;function rd(t){return t instanceof Uint8Array||t!=null&&typeof t=="object"&&t.constructor.name==="Uint8Array"}function Ti(t,...e){if(!rd(t))throw new Error("Uint8Array expected");if(e.length>0&&!e.includes(t.length))throw new Error(`Uint8Array expected of length ${e}, not of length=${t.length}`)}function es(t,e=!0){if(t.destroyed)throw new Error("Hash instance has been destroyed");if(e&&t.finished)throw new Error("Hash#digest() has already been called")}function od(t,e){Ti(t);const n=e.outputLen;if(t.length<n)throw new Error(`digestInto() expects output buffer of length at least ${n}`)}/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */const mr=t=>new DataView(t.buffer,t.byteOffset,t.byteLength),Ye=(t,e)=>t<<32-e|t>>>e;new Uint8Array(new Uint32Array([287454020]).buffer)[0];function sd(t){if(typeof t!="string")throw new Error(`utf8ToBytes expected string, got ${typeof t}`);return new Uint8Array(new TextEncoder().encode(t))}function Ai(t){return typeof t=="string"&&(t=sd(t)),Ti(t),t}class id{clone(){return this._cloneInto()}}function ad(t){const e=r=>t().update(Ai(r)).digest(),n=t();return e.outputLen=n.outputLen,e.blockLen=n.blockLen,e.create=()=>t(),e}function ld(t,e,n,r){if(typeof t.setBigUint64=="function")return t.setBigUint64(e,n,r);const o=BigInt(32),s=BigInt(4294967295),i=Number(n>>o&s),a=Number(n&s),c=r?4:0,u=r?0:4;t.setUint32(e+c,i,r),t.setUint32(e+u,a,r)}const cd=(t,e,n)=>t&e^~t&n,ud=(t,e,n)=>t&e^t&n^e&n;class dd extends id{constructor(e,n,r,o){super(),this.blockLen=e,this.outputLen=n,this.padOffset=r,this.isLE=o,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(e),this.view=mr(this.buffer)}update(e){es(this);const{view:n,buffer:r,blockLen:o}=this;e=Ai(e);const s=e.length;for(let i=0;i<s;){const a=Math.min(o-this.pos,s-i);if(a===o){const c=mr(e);for(;o<=s-i;i+=o)this.process(c,i);continue}r.set(e.subarray(i,i+a),this.pos),this.pos+=a,i+=a,this.pos===o&&(this.process(n,0),this.pos=0)}return this.length+=e.length,this.roundClean(),this}digestInto(e){es(this),od(e,this),this.finished=!0;const{buffer:n,view:r,blockLen:o,isLE:s}=this;let{pos:i}=this;n[i++]=128,this.buffer.subarray(i).fill(0),this.padOffset>o-i&&(this.process(r,0),i=0);for(let m=i;m<o;m++)n[m]=0;ld(r,o-8,BigInt(this.length*8),s),this.process(r,0);const a=mr(e),c=this.outputLen;if(c%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const u=c/4,d=this.get();if(u>d.length)throw new Error("_sha2: outputLen bigger than state");for(let m=0;m<u;m++)a.setUint32(4*m,d[m],s)}digest(){const{buffer:e,outputLen:n}=this;this.digestInto(e);const r=e.slice(0,n);return this.destroy(),r}_cloneInto(e){e||(e=new this.constructor),e.set(...this.get());const{blockLen:n,buffer:r,length:o,finished:s,destroyed:i,pos:a}=this;return e.length=o,e.pos=a,e.finished=s,e.destroyed=i,o%n&&e.buffer.set(r),e}}const fd=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),ot=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),st=new Uint32Array(64);class md extends dd{constructor(){super(64,32,8,!1),this.A=ot[0]|0,this.B=ot[1]|0,this.C=ot[2]|0,this.D=ot[3]|0,this.E=ot[4]|0,this.F=ot[5]|0,this.G=ot[6]|0,this.H=ot[7]|0}get(){const{A:e,B:n,C:r,D:o,E:s,F:i,G:a,H:c}=this;return[e,n,r,o,s,i,a,c]}set(e,n,r,o,s,i,a,c){this.A=e|0,this.B=n|0,this.C=r|0,this.D=o|0,this.E=s|0,this.F=i|0,this.G=a|0,this.H=c|0}process(e,n){for(let m=0;m<16;m++,n+=4)st[m]=e.getUint32(n,!1);for(let m=16;m<64;m++){const g=st[m-15],_=st[m-2],v=Ye(g,7)^Ye(g,18)^g>>>3,T=Ye(_,17)^Ye(_,19)^_>>>10;st[m]=T+st[m-7]+v+st[m-16]|0}let{A:r,B:o,C:s,D:i,E:a,F:c,G:u,H:d}=this;for(let m=0;m<64;m++){const g=Ye(a,6)^Ye(a,11)^Ye(a,25),_=d+g+cd(a,c,u)+fd[m]+st[m]|0,T=(Ye(r,2)^Ye(r,13)^Ye(r,22))+ud(r,o,s)|0;d=u,u=c,c=a,a=i+_|0,i=s,s=o,o=r,r=_+T|0}r=r+this.A|0,o=o+this.B|0,s=s+this.C|0,i=i+this.D|0,a=a+this.E|0,c=c+this.F|0,u=u+this.G|0,d=d+this.H|0,this.set(r,o,s,i,a,c,u,d)}roundClean(){st.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}const pd=ad(()=>new md);class qt extends Error{}qt.prototype.name="InvalidTokenError";function hd(t){return decodeURIComponent(atob(t).replace(/(.)/g,(e,n)=>{let r=n.charCodeAt(0).toString(16).toUpperCase();return r.length<2&&(r="0"+r),"%"+r}))}function gd(t){let e=t.replace(/-/g,"+").replace(/_/g,"/");switch(e.length%4){case 0:break;case 2:e+="==";break;case 3:e+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return hd(e)}catch{return atob(e)}}function pr(t,e){if(typeof t!="string")throw new qt("Invalid token specified: must be a string");e||(e={});const n=e.header===!0?0:1,r=t.split(".")[n];if(typeof r!="string")throw new qt(`Invalid token specified: missing part #${n+1}`);let o;try{o=gd(r)}catch(s){throw new qt(`Invalid token specified: invalid base64 for part #${n+1} (${s.message})`)}try{return JSON.parse(o)}catch(s){throw new qt(`Invalid token specified: invalid json for part #${n+1} (${s.message})`)}}if(typeof Promise>"u")throw Error("Keycloak requires an environment that supports Promises. Make sure that you include the appropriate polyfill.");function to(t){if(!(this instanceof to))throw new Error("The 'Keycloak' constructor must be invoked with 'new'.");for(var e=this,n,r=[],o,s={enable:!0,callbackList:[],interval:5},i=document.getElementsByTagName("script"),a=0;a<i.length;a++)(i[a].src.indexOf("keycloak.js")!==-1||i[a].src.indexOf("keycloak.min.js")!==-1)&&i[a].src.indexOf("version=")!==-1&&(e.iframeVersion=i[a].src.substring(i[a].src.indexOf("version=")+8).split("&")[0]);var c=!0,u=$e(console.info),d=$e(console.warn);e.init=function(f){if(e.didInitialize)throw new Error("A 'Keycloak' instance can only be initialized once.");e.didInitialize=!0,e.authenticated=!1,o=te();var h=["default","cordova","cordova-native"];if(f&&h.indexOf(f.adapter)>-1?n=Xe(f.adapter):f&&typeof f.adapter=="object"?n=f.adapter:window.Cordova||window.cordova?n=Xe("cordova"):n=Xe(),f){if(typeof f.useNonce<"u"&&(c=f.useNonce),typeof f.checkLoginIframe<"u"&&(s.enable=f.checkLoginIframe),f.checkLoginIframeInterval&&(s.interval=f.checkLoginIframeInterval),f.onLoad==="login-required"&&(e.loginRequired=!0),f.responseMode)if(f.responseMode==="query"||f.responseMode==="fragment")e.responseMode=f.responseMode;else throw"Invalid value for responseMode";if(f.flow){switch(f.flow){case"standard":e.responseType="code";break;case"implicit":e.responseType="id_token token";break;case"hybrid":e.responseType="code id_token token";break;default:throw"Invalid value for flow"}e.flow=f.flow}if(f.timeSkew!=null&&(e.timeSkew=f.timeSkew),f.redirectUri&&(e.redirectUri=f.redirectUri),f.silentCheckSsoRedirectUri&&(e.silentCheckSsoRedirectUri=f.silentCheckSsoRedirectUri),typeof f.silentCheckSsoFallback=="boolean"?e.silentCheckSsoFallback=f.silentCheckSsoFallback:e.silentCheckSsoFallback=!0,typeof f.pkceMethod<"u"){if(f.pkceMethod!=="S256"&&f.pkceMethod!==!1)throw new TypeError(`Invalid value for pkceMethod', expected 'S256' or false but got ${f.pkceMethod}.`);e.pkceMethod=f.pkceMethod}else e.pkceMethod="S256";typeof f.enableLogging=="boolean"?e.enableLogging=f.enableLogging:e.enableLogging=!1,f.logoutMethod==="POST"?e.logoutMethod="POST":e.logoutMethod="GET",typeof f.scope=="string"&&(e.scope=f.scope),typeof f.acrValues=="string"&&(e.acrValues=f.acrValues),typeof f.messageReceiveTimeout=="number"&&f.messageReceiveTimeout>0?e.messageReceiveTimeout=f.messageReceiveTimeout:e.messageReceiveTimeout=1e4}e.responseMode||(e.responseMode="fragment"),e.responseType||(e.responseType="code",e.flow="standard");var S=U(),P=U();P.promise.then(function(){e.onReady&&e.onReady(e.authenticated),S.setSuccess(e.authenticated)}).catch(function(O){S.setError(O)});var k=A(),L=function(){u("[KEYCLOAK] Executing check-sso silently");var O=document.createElement("iframe"),$=e.createLoginUrl({prompt:"none",redirectUri:e.silentCheckSsoRedirectUri});return O.setAttribute("src",$),O.setAttribute("sandbox","allow-storage-access-by-user-activation allow-scripts allow-same-origin"),O.setAttribute("title","keycloak-silent-check-sso"),O.style.display="none",document.body.appendChild(O),new Promise(function(oe){var he=function(ae){if(!(ae.origin!==window.location.origin||O.contentWindow!==ae.source)){var Re=J(ae.data);C(Re,P,oe),document.body.removeChild(O),window.removeEventListener("message",he)}};window.addEventListener("message",he)})};e.getAccessTokenAsync=async()=>{const O=e.tokenParsed,$=O?O.exp:null;return!O||!$?null:$-Math.ceil(new Date().getTime()/1e3)+(e.timeSkew??0)<10?await L()??null:e.token};function E(){var O=function(Z){Z||($.prompt="none"),f&&f.locale&&($.locale=f.locale),e.login($).then(function(){P.setSuccess()}).catch(function(oe){P.setError(oe)})},$={};switch(f.onLoad){case"check-sso":s.enable?ve().then(function(){Me().then(function(Z){Z?P.setSuccess():e.silentCheckSsoRedirectUri?L():O(!1)}).catch(function(Z){P.setError(Z)})}):e.silentCheckSsoRedirectUri?L():O(!1);break;case"login-required":O(!0);break;default:throw"Invalid value for onLoad"}}function I(){var O=J(window.location.href);if(O&&window.history.replaceState(window.history.state,null,O.newUrl),O&&O.valid)return ve().then(function(){C(O,P)}).catch(function($){P.setError($)});f?f.token&&f.refreshToken?(X(f.token,f.refreshToken,f.idToken),s.enable?ve().then(function(){Me().then(function($){$?(e.onAuthSuccess&&e.onAuthSuccess(),P.setSuccess(),De()):P.setSuccess()}).catch(function($){P.setError($)})}):e.updateToken(-1).then(function(){e.onAuthSuccess&&e.onAuthSuccess(),P.setSuccess()}).catch(function($){e.onAuthError&&e.onAuthError(),f.onLoad?E():P.setError($)})):f.onLoad?E():P.setSuccess():P.setSuccess()}function D(){var O=U(),$=function(){(document.readyState==="interactive"||document.readyState==="complete")&&(document.removeEventListener("readystatechange",$),O.setSuccess())};return document.addEventListener("readystatechange",$),$(),O.promise}return k.then(function(){D().then(rt).then(I).catch(function(O){S.setError(O)})}),k.catch(function(O){S.setError(O)}),S.promise},e.login=function(f){return n.login(f)};function m(f){var h=null,S=window.crypto||window.msCrypto;if(S&&S.getRandomValues&&window.Uint8Array)return h=new Uint8Array(f),S.getRandomValues(h),h;h=new Array(f);for(var P=0;P<h.length;P++)h[P]=Math.floor(256*Math.random());return h}function g(f){return _(f,"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789")}function _(f,h){for(var S=m(f),P=new Array(f),k=0;k<f;k++)P[k]=h.charCodeAt(S[k]%h.length);return String.fromCharCode.apply(null,P)}function v(f,h){if(f!=="S256")throw new TypeError(`Invalid value for 'pkceMethod', expected 'S256' but got '${f}'.`);const S=pd(h);return yd(S).replace(/\+/g,"-").replace(/\//g,"_").replace(/\=/g,"")}function T(f){var h={id_token:{acr:f}};return JSON.stringify(h)}e.createLoginUrl=function(f){var h=ne(),S=ne(),P=n.redirectUri(f),k={state:h,nonce:S,redirectUri:encodeURIComponent(P),loginOptions:f};f&&f.prompt&&(k.prompt=f.prompt);var L;f&&f.action=="register"?L=e.endpoints.register():L=e.endpoints.authorize();var E=f&&f.scope||e.scope;E?E.indexOf("openid")===-1&&(E="openid "+E):E="openid";var I=L+"?client_id="+encodeURIComponent(e.clientId)+"&redirect_uri="+encodeURIComponent(P)+"&state="+encodeURIComponent(h)+"&response_mode="+encodeURIComponent(e.responseMode)+"&response_type="+encodeURIComponent(e.responseType)+"&scope="+encodeURIComponent(E);if(c&&(I=I+"&nonce="+encodeURIComponent(S)),f&&f.prompt&&(I+="&prompt="+encodeURIComponent(f.prompt)),f&&f.maxAge&&(I+="&max_age="+encodeURIComponent(f.maxAge)),f&&f.loginHint&&(I+="&login_hint="+encodeURIComponent(f.loginHint)),f&&f.idpHint&&(I+="&kc_idp_hint="+encodeURIComponent(f.idpHint)),f&&f.action&&f.action!="register"&&(I+="&kc_action="+encodeURIComponent(f.action)),f&&f.locale&&(I+="&ui_locales="+encodeURIComponent(f.locale)),f&&f.acr){var D=T(f.acr);I+="&claims="+encodeURIComponent(D)}if((f&&f.acrValues||e.acrValues)&&(I+="&acr_values="+encodeURIComponent(f.acrValues||e.acrValues)),e.pkceMethod){var O=g(96);k.pkceCodeVerifier=O;var $=v(e.pkceMethod,O);I+="&code_challenge="+$,I+="&code_challenge_method="+e.pkceMethod}return o.add(k),I},e.logout=function(f){return n.logout(f)},e.createLogoutUrl=function(f){if(((f==null?void 0:f.logoutMethod)??e.logoutMethod)==="POST")return e.endpoints.logout();var S=e.endpoints.logout()+"?client_id="+encodeURIComponent(e.clientId)+"&post_logout_redirect_uri="+encodeURIComponent(n.redirectUri(f,!1));return e.idToken&&(S+="&id_token_hint="+encodeURIComponent(e.idToken)),S},e.register=function(f){return n.register(f)},e.createRegisterUrl=function(f){return f||(f={}),f.action="register",e.createLoginUrl(f)},e.createAccountUrl=function(f){var h=w(),S=void 0;return typeof h<"u"&&(S=h+"/account?referrer="+encodeURIComponent(e.clientId)+"&referrer_uri="+encodeURIComponent(n.redirectUri(f))),S},e.accountManagement=function(){return n.accountManagement()},e.hasRealmRole=function(f){var h=e.realmAccess;return!!h&&h.roles.indexOf(f)>=0},e.hasResourceRole=function(f,h){if(!e.resourceAccess)return!1;var S=e.resourceAccess[h||e.clientId];return!!S&&S.roles.indexOf(f)>=0},e.loadUserProfile=function(){var f=w()+"/account",h=new XMLHttpRequest;h.open("GET",f,!0),h.setRequestHeader("Accept","application/json"),h.setRequestHeader("Authorization","bearer "+e.token);var S=U();return h.onreadystatechange=function(){h.readyState==4&&(h.status==200?(e.profile=JSON.parse(h.responseText),S.setSuccess(e.profile)):S.setError())},h.send(),S.promise},e.loadUserInfo=function(){var f=e.endpoints.userinfo(),h=new XMLHttpRequest;h.open("GET",f,!0),h.setRequestHeader("Accept","application/json"),h.setRequestHeader("Authorization","bearer "+e.token);var S=U();return h.onreadystatechange=function(){h.readyState==4&&(h.status==200?(e.userInfo=JSON.parse(h.responseText),S.setSuccess(e.userInfo)):S.setError())},h.send(),S.promise},e.isTokenExpired=function(f){if(!e.tokenParsed||!e.refreshToken&&e.flow!="implicit")throw"Not authenticated";if(e.timeSkew==null)return u("[KEYCLOAK] Unable to determine if token is expired as timeskew is not set"),!0;var h=e.tokenParsed.exp-Math.ceil(new Date().getTime()/1e3)+e.timeSkew;if(f){if(isNaN(f))throw"Invalid minValidity";h-=f}return h<0},e.updateToken=function(f){var h=U();if(!e.refreshToken)return h.setError(),h.promise;f=f||5;var S=function(){var k=!1;if(f==-1?(k=!0,u("[KEYCLOAK] Refreshing token: forced refresh")):(!e.tokenParsed||e.isTokenExpired(f))&&(k=!0,u("[KEYCLOAK] Refreshing token: token expired")),!k)h.setSuccess(!1);else{var L="grant_type=refresh_token&refresh_token="+e.refreshToken,E=e.endpoints.token();if(r.push(h),r.length==1){var I=new XMLHttpRequest;I.open("POST",E,!0),I.setRequestHeader("Content-type","application/x-www-form-urlencoded"),I.withCredentials=!0,L+="&client_id="+encodeURIComponent(e.clientId);var D=new Date().getTime();I.onreadystatechange=function(){if(I.readyState==4)if(I.status==200){u("[KEYCLOAK] Token refreshed"),D=(D+new Date().getTime())/2;var O=JSON.parse(I.responseText);X(O.access_token,O.refresh_token,O.id_token,D),e.onAuthRefreshSuccess&&e.onAuthRefreshSuccess();for(var $=r.pop();$!=null;$=r.pop())$.setSuccess(!0)}else{d("[KEYCLOAK] Failed to refresh token"),I.status==400&&e.clearToken(),e.onAuthRefreshError&&e.onAuthRefreshError();for(var $=r.pop();$!=null;$=r.pop())$.setError(!0)}},I.send(L)}}};if(s.enable){var P=Me();P.then(function(){S()}).catch(function(k){h.setError(k)})}else S();return h.promise},e.clearToken=function(){e.token&&(X(null,null,null),e.onAuthLogout&&e.onAuthLogout(),e.loginRequired&&e.login())};function w(){if(typeof e.authServerUrl<"u")return e.authServerUrl.charAt(e.authServerUrl.length-1)=="/"?e.authServerUrl+"realms/"+encodeURIComponent(e.realm):e.authServerUrl+"/realms/"+encodeURIComponent(e.realm)}function B(){return window.location.origin?window.location.origin:window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:"")}function C(f,h,S=null){var P=f.code,k=f.error,L=f.prompt,E=new Date().getTime();if(f.kc_action_status&&e.onActionUpdate&&e.onActionUpdate(f.kc_action_status),k){if(L!="none")if(f.error_description&&f.error_description==="authentication_expired")e.login(f.loginOptions);else{var I={error:k,error_description:f.error_description};e.onAuthError&&e.onAuthError(I),h&&h.setError(I)}else h&&h.setSuccess(),S&&S();return}else e.flow!="standard"&&(f.access_token||f.id_token)&&Z(f.access_token,null,f.id_token,!0);if(e.flow!="implicit"&&P){var D="code="+P+"&grant_type=authorization_code",O=e.endpoints.token(),$=new XMLHttpRequest;$.open("POST",O,!0),$.setRequestHeader("Content-type","application/x-www-form-urlencoded"),D+="&client_id="+encodeURIComponent(e.clientId),D+="&redirect_uri="+f.redirectUri,f.pkceCodeVerifier&&(D+="&code_verifier="+f.pkceCodeVerifier),$.withCredentials=!0,$.onreadystatechange=function(){if($.readyState==4)if($.status==200){var oe=JSON.parse($.responseText);Z(oe.access_token,oe.refresh_token,oe.id_token,e.flow==="standard"),De()}else e.onAuthError&&e.onAuthError(),h&&h.setError()},$.send(D)}function Z(oe,he,ae,Re){if(E=(E+new Date().getTime())/2,X(oe,he,ae,E),c&&e.idTokenParsed&&e.idTokenParsed.nonce!=f.storedNonce)u("[KEYCLOAK] Invalid nonce, clearing token"),e.clearToken(),h&&h.setError();else if(Re){e.onAuthSuccess&&e.onAuthSuccess(),h&&h.setSuccess(),S&&S(oe);return}}}function A(f){var h=U(),S;t?typeof t=="string"&&(S=t):S="keycloak.json";function P(O){O?e.endpoints={authorize:function(){return O.authorization_endpoint},token:function(){return O.token_endpoint},logout:function(){if(!O.end_session_endpoint)throw"Not supported by the OIDC server";return O.end_session_endpoint},checkSessionIframe:function(){if(!O.check_session_iframe)throw"Not supported by the OIDC server";return O.check_session_iframe},register:function(){throw'Redirection to "Register user" page not supported in standard OIDC mode'},userinfo:function(){if(!O.userinfo_endpoint)throw"Not supported by the OIDC server";return O.userinfo_endpoint}}:e.endpoints={authorize:function(){return w()+"/protocol/openid-connect/auth"},token:function(){return w()+"/protocol/openid-connect/token"},logout:function(){return w()+"/protocol/openid-connect/logout"},checkSessionIframe:function(){var $=w()+"/protocol/openid-connect/login-status-iframe.html";return e.iframeVersion&&($=$+"?version="+e.iframeVersion),$},thirdPartyCookiesIframe:function(){var $=w()+"/protocol/openid-connect/3p-cookies/step1.html";return e.iframeVersion&&($=$+"?version="+e.iframeVersion),$},register:function(){return w()+"/protocol/openid-connect/registrations"},userinfo:function(){return w()+"/protocol/openid-connect/userinfo"}}}if(S){var k=new XMLHttpRequest;k.open("GET",S,!0),k.setRequestHeader("Accept","application/json"),k.onreadystatechange=function(){if(k.readyState==4)if(k.status==200||j(k)){var O=JSON.parse(k.responseText);e.authServerUrl=O["auth-server-url"],e.realm=O.realm,e.clientId=O.resource,P(null),h.setSuccess()}else h.setError()},k.send()}else{if(!t.clientId)throw"clientId missing";e.clientId=t.clientId;var L=t.oidcProvider;if(L)if(typeof L=="string"){var D;L.charAt(L.length-1)=="/"?D=L+".well-known/openid-configuration":D=L+"/.well-known/openid-configuration";var k=new XMLHttpRequest;k.open("GET",D,!0),k.setRequestHeader("Accept","application/json"),k.onreadystatechange=function(){if(k.readyState==4)if(k.status==200||j(k)){var $=JSON.parse(k.responseText);P($),h.setSuccess()}else h.setError()},k.send()}else P(L),h.setSuccess();else{if(!t.url){for(var E=document.getElementsByTagName("script"),I=0;I<E.length;I++)if(E[I].src.match(/.*keycloak\.js/)){t.url=E[I].src.substr(0,E[I].src.indexOf("/js/keycloak.js"));break}}if(!t.realm)throw"realm missing";e.authServerUrl=t.url,e.realm=t.realm,P(null),h.setSuccess()}}return h.promise}function j(f){return f.status==0&&f.responseText&&f.responseURL.startsWith("file:")}function X(f,h,S,P){if(e.tokenTimeoutHandle&&(clearTimeout(e.tokenTimeoutHandle),e.tokenTimeoutHandle=null),h?(e.refreshToken=h,e.refreshTokenParsed=pr(h)):(delete e.refreshToken,delete e.refreshTokenParsed),S?(e.idToken=S,e.idTokenParsed=pr(S)):(delete e.idToken,delete e.idTokenParsed),f){if(e.token=f,e.tokenParsed=pr(f),e.sessionId=e.tokenParsed.sid,e.authenticated=!0,e.subject=e.tokenParsed.sub,e.realmAccess=e.tokenParsed.realm_access,e.resourceAccess=e.tokenParsed.resource_access,P&&(e.timeSkew=Math.floor(P/1e3)-e.tokenParsed.iat),e.timeSkew!=null&&(u("[KEYCLOAK] Estimated time difference between browser and server is "+e.timeSkew+" seconds"),e.onTokenExpired)){var k=(e.tokenParsed.exp-new Date().getTime()/1e3+e.timeSkew)*1e3;u("[KEYCLOAK] Token expires in "+Math.round(k/1e3)+" s"),k<=0?e.onTokenExpired():e.tokenTimeoutHandle=setTimeout(e.onTokenExpired,k)}}else delete e.token,delete e.tokenParsed,delete e.subject,delete e.realmAccess,delete e.resourceAccess,e.authenticated=!1}function ne(){var f="0123456789abcdef",h=_(36,f).split("");h[14]="4",h[19]=f.substr(h[19]&3|8,1),h[8]=h[13]=h[18]=h[23]="-";var S=h.join("");return S}function J(f){var h=pe(f);if(h){var S=o.get(h.state);return S&&(h.valid=!0,h.redirectUri=S.redirectUri,h.storedNonce=S.nonce,h.prompt=S.prompt,h.pkceCodeVerifier=S.pkceCodeVerifier,h.loginOptions=S.loginOptions),h}}function pe(f){var h;switch(e.flow){case"standard":h=["code","state","session_state","kc_action_status","iss"];break;case"implicit":h=["access_token","token_type","id_token","state","session_state","expires_in","kc_action_status","iss"];break;case"hybrid":h=["access_token","token_type","id_token","code","state","session_state","expires_in","kc_action_status","iss"];break}h.push("error"),h.push("error_description"),h.push("error_uri");var S=f.indexOf("?"),P=f.indexOf("#"),k,L;if(e.responseMode==="query"&&S!==-1?(k=f.substring(0,S),L=se(f.substring(S+1,P!==-1?P:f.length),h),L.paramsString!==""&&(k+="?"+L.paramsString),P!==-1&&(k+=f.substring(P))):e.responseMode==="fragment"&&P!==-1&&(k=f.substring(0,P),L=se(f.substring(P+1),h),L.paramsString!==""&&(k+="#"+L.paramsString)),L&&L.oauthParams){if(e.flow==="standard"||e.flow==="hybrid"){if((L.oauthParams.code||L.oauthParams.error)&&L.oauthParams.state)return L.oauthParams.newUrl=k,L.oauthParams}else if(e.flow==="implicit"&&(L.oauthParams.access_token||L.oauthParams.error)&&L.oauthParams.state)return L.oauthParams.newUrl=k,L.oauthParams}}function se(f,h){for(var S=f.split("&"),P={paramsString:"",oauthParams:{}},k=0;k<S.length;k++){var L=S[k].indexOf("="),E=S[k].slice(0,L);h.indexOf(E)!==-1?P.oauthParams[E]=S[k].slice(L+1):(P.paramsString!==""&&(P.paramsString+="&"),P.paramsString+=S[k])}return P}function U(){var f={setSuccess:function(h){f.resolve(h)},setError:function(h){f.reject(h)}};return f.promise=new Promise(function(h,S){f.resolve=h,f.reject=S}),f}function Te(f,h,S){var P=null,k=new Promise(function(L,E){P=setTimeout(function(){E({error:S})},h)});return Promise.race([f,k]).finally(function(){clearTimeout(P)})}function ve(){var f=U();if(!s.enable||s.iframe)return f.setSuccess(),f.promise;var h=document.createElement("iframe");s.iframe=h,h.onload=function(){var k=e.endpoints.authorize();k.charAt(0)==="/"?s.iframeOrigin=B():s.iframeOrigin=k.substring(0,k.indexOf("/",8)),f.setSuccess()};var S=e.endpoints.checkSessionIframe();h.setAttribute("src",S),h.setAttribute("sandbox","allow-storage-access-by-user-activation allow-scripts allow-same-origin"),h.setAttribute("title","keycloak-session-iframe"),h.style.display="none",document.body.appendChild(h);var P=function(k){if(!(k.origin!==s.iframeOrigin||s.iframe.contentWindow!==k.source)&&(k.data=="unchanged"||k.data=="changed"||k.data=="error")){k.data!="unchanged"&&e.clearToken();for(var L=s.callbackList.splice(0,s.callbackList.length),E=L.length-1;E>=0;--E){var I=L[E];k.data=="error"?I.setError():I.setSuccess(k.data=="unchanged")}}};return window.addEventListener("message",P,!1),f.promise}function De(){s.enable&&e.token&&setTimeout(function(){Me().then(function(f){f&&De()})},s.interval*1e3)}function Me(){var f=U();if(s.iframe&&s.iframeOrigin){var h=e.clientId+" "+(e.sessionId?e.sessionId:"");s.callbackList.push(f);var S=s.iframeOrigin;s.callbackList.length==1&&s.iframe.contentWindow.postMessage(h,S)}else f.setSuccess();return f.promise}function rt(){var f=U();if(s.enable||e.silentCheckSsoRedirectUri){var h=document.createElement("iframe");h.setAttribute("src",e.endpoints.thirdPartyCookiesIframe()),h.setAttribute("sandbox","allow-storage-access-by-user-activation allow-scripts allow-same-origin"),h.setAttribute("title","keycloak-3p-check-iframe"),h.style.display="none",document.body.appendChild(h);var S=function(P){h.contentWindow===P.source&&(P.data!=="supported"&&P.data!=="unsupported"||(P.data==="unsupported"&&(d(`[KEYCLOAK] Your browser is blocking access to 3rd-party cookies, this means:
64
+ If you think this parameter should be updatable, request it here: https://github.com/sweetalert2/sweetalert2/issues/new?template=02_feature_request.md`)}),e};function su(){const t=V.domCache.get(this),e=V.innerParams.get(this);if(!e){fi(this);return}t.popup&&H.swalCloseEventFinishedCallback&&(H.swalCloseEventFinishedCallback(),delete H.swalCloseEventFinishedCallback),H.deferDisposalTimer&&(clearTimeout(H.deferDisposalTimer),delete H.deferDisposalTimer),typeof e.didDestroy=="function"&&e.didDestroy(),iu(this)}const iu=t=>{fi(t),delete t.params,delete H.keydownHandler,delete H.keydownTarget,delete H.currentInstance},fi=t=>{t.isAwaitingPromise()?(ar(V,t),V.awaitingPromise.set(t,!0)):(ar(tn,t),ar(V,t))},ar=(t,e)=>{for(const n in t)t[n].delete(e)},mi=Object.freeze(Object.defineProperty({__proto__:null,_destroy:su,close:_n,closeModal:_n,closePopup:_n,closeToast:_n,disableButtons:Xc,disableInput:Qc,disableLoading:jo,enableButtons:Jc,enableInput:Zc,getInput:Lc,getProgressSteps:nu,handleAwaitingPromise:yn,hideLoading:jo,isAwaitingPromise:zc,rejectPromise:Wc,resetValidationMessage:tu,showValidationMessage:eu,update:ru},Symbol.toStringTag,{value:"Module"})),au=t=>{const e=V.innerParams.get(t);t.disableButtons(),e.input?pi(t,"confirm"):eo(t,!0)},lu=t=>{const e=V.innerParams.get(t);t.disableButtons(),e.returnInputValueOnDeny?pi(t,"deny"):Qr(t,!1)},cu=(t,e)=>{t.disableButtons(),e(Rt.cancel)},pi=(t,e)=>{const n=V.innerParams.get(t);if(!n.input)return kt(`The "input" parameter is needed to be set when using returnInputValueOn${Fr(e)}`);const r=Cc(t,n);n.inputValidator?uu(t,r,e):t.getInput().checkValidity()?e==="deny"?Qr(t,r):eo(t,r):(t.enableButtons(),t.showValidationMessage(n.validationMessage))},uu=(t,e,n)=>{const r=V.innerParams.get(t);t.disableInput(),Promise.resolve().then(()=>fn(r.inputValidator(e,r.validationMessage))).then(s=>{t.enableButtons(),t.enableInput(),s?t.showValidationMessage(s):n==="deny"?Qr(t,e):eo(t,e)})},Qr=(t,e)=>{const n=V.innerParams.get(t||void 0);n.showLoaderOnDeny&&Ot(ut()),n.preDeny?(V.awaitingPromise.set(t||void 0,!0),Promise.resolve().then(()=>fn(n.preDeny(e,n.validationMessage))).then(o=>{o===!1?(t.hideLoading(),yn(t)):t.closePopup({isDenied:!0,value:typeof o>"u"?e:o})}).catch(o=>hi(t||void 0,o))):t.closePopup({isDenied:!0,value:e})},zo=(t,e)=>{t.closePopup({isConfirmed:!0,value:e})},hi=(t,e)=>{t.rejectPromise(e)},eo=(t,e)=>{const n=V.innerParams.get(t||void 0);n.showLoaderOnConfirm&&Ot(),n.preConfirm?(t.resetValidationMessage(),V.awaitingPromise.set(t||void 0,!0),Promise.resolve().then(()=>fn(n.preConfirm(e,n.validationMessage))).then(o=>{Pe(Fn())||o===!1?(t.hideLoading(),yn(t)):zo(t,typeof o>"u"?e:o)}).catch(o=>hi(t||void 0,o))):zo(t,e)},du=(t,e,n)=>{V.innerParams.get(t).toast?fu(t,e,n):(pu(e),hu(e),gu(t,e,n))},fu=(t,e,n)=>{e.popup.onclick=()=>{const r=V.innerParams.get(t);r&&(mu(r)||r.timer||r.input)||n(Rt.close)}},mu=t=>t.showConfirmButton||t.showDenyButton||t.showCancelButton||t.showCloseButton;let Rn=!1;const pu=t=>{t.popup.onmousedown=()=>{t.container.onmouseup=function(e){t.container.onmouseup=void 0,e.target===t.container&&(Rn=!0)}}},hu=t=>{t.container.onmousedown=()=>{t.popup.onmouseup=function(e){t.popup.onmouseup=void 0,(e.target===t.popup||t.popup.contains(e.target))&&(Rn=!0)}}},gu=(t,e,n)=>{e.container.onclick=r=>{const o=V.innerParams.get(t);if(Rn){Rn=!1;return}r.target===e.container&&jn(o.allowOutsideClick)&&n(Rt.backdrop)}},yu=t=>typeof t=="object"&&t.jquery,Ko=t=>t instanceof Element||yu(t),vu=t=>{const e={};return typeof t[0]=="object"&&!Ko(t[0])?Object.assign(e,t[0]):["title","html","icon"].forEach((n,r)=>{const o=t[r];typeof o=="string"||Ko(o)?e[n]=o:o!==void 0&&kt(`Unexpected type of ${n}! Expected "string" or "Element", got ${typeof o}`)}),e};function bu(...t){const e=this;return new e(...t)}function wu(t){class e extends this{_main(r,o){return super._main(r,Object.assign({},t,o))}}return e}const Su=()=>H.timeout&&H.timeout.getTimerLeft(),gi=()=>{if(H.timeout)return ll(),H.timeout.stop()},yi=()=>{if(H.timeout){const t=H.timeout.start();return Jr(t),t}},_u=()=>{const t=H.timeout;return t&&(t.running?gi():yi())},ku=t=>{if(H.timeout){const e=H.timeout.increase(t);return Jr(e,!0),e}},Cu=()=>H.timeout&&H.timeout.isRunning();let Wo=!1;const Tr={};function Eu(t="data-swal-template"){Tr[t]=this,Wo||(document.body.addEventListener("click",Tu),Wo=!0)}const Tu=t=>{for(let e=t.target;e&&e!==document;e=e.parentNode)for(const n in Tr){const r=e.getAttribute(n);if(r){Tr[n].fire({template:r});return}}},Au=Object.freeze(Object.defineProperty({__proto__:null,argsToParams:vu,bindClickHandler:Eu,clickCancel:Nc,clickConfirm:ii,clickDeny:Rc,enableLoading:Ot,fire:bu,getActions:hn,getCancelButton:bt,getCloseButton:Wr,getConfirmButton:Ke,getContainer:fe,getDenyButton:ut,getFocusableElements:qr,getFooter:Ys,getHtmlContainer:$n,getIcon:pn,getImage:qs,getInputLabel:rl,getLoader:$t,getPopup:Y,getTimerLeft:Su,getTimerProgressBar:zn,getTitle:Ws,getValidationMessage:Fn,increaseTimer:ku,isDeprecatedParameter:kr,isLoading:sl,isTimerRunning:Cu,isUpdatableParameter:zs,isValidParameter:Fs,isVisible:$c,mixin:wu,resumeTimer:yi,showLoading:Ot,stopTimer:gi,toggleTimer:_u},Symbol.toStringTag,{value:"Module"}));let Ar;class Nt{constructor(...e){if(typeof window>"u")return;Ar=this;const n=Object.freeze(this.constructor.argsToParams(e));Object.defineProperties(this,{params:{value:n,writable:!1,enumerable:!0,configurable:!0}});const r=this._main(this.params);V.promise.set(this,r)}_main(e,n={}){tl(Object.assign({},n,e)),H.currentInstance&&(H.currentInstance._destroy(),Gr()&&ni()),H.currentInstance=this;const r=Iu(e,n);ac(r),Object.freeze(r),H.timeout&&(H.timeout.stop(),delete H.timeout),clearTimeout(H.restoreFocusTimeout);const o=xu(this);return ti(this,r),V.innerParams.set(this,r),Pu(this,o,r)}then(e){return V.promise.get(this).then(e)}finally(e){return V.promise.get(this).finally(e)}}const Pu=(t,e,n)=>new Promise((r,o)=>{const s=i=>{t.closePopup({isDismissed:!0,dismiss:i})};tn.swalPromiseResolve.set(t,r),tn.swalPromiseReject.set(t,o),e.confirmButton.onclick=()=>au(t),e.denyButton.onclick=()=>lu(t),e.cancelButton.onclick=()=>cu(t,s),e.closeButton.onclick=()=>s(Rt.close),du(t,e,s),Bc(t,H,n,s),kc(t,n),vc(n),Ou(H,n,s),Lu(e,n),setTimeout(()=>{e.container.scrollTop=0})}),Iu=(t,e)=>{const n=Xl(t),r=Object.assign({},It,e,n,t);return r.showClass=Object.assign({},It.showClass,r.showClass),r.hideClass=Object.assign({},It.hideClass,r.hideClass),r},xu=t=>{const e={popup:Y(),container:fe(),actions:hn(),confirmButton:Ke(),denyButton:ut(),cancelButton:bt(),loader:$t(),closeButton:Wr(),validationMessage:Fn(),progressSteps:Gs()};return V.domCache.set(t,e),e},Ou=(t,e,n)=>{const r=zn();me(r),e.timer&&(t.timeout=new lc(()=>{n("timer"),delete t.timeout},e.timer),e.timerProgressBar&&(le(r),Ne(r,e,"timerProgressBar"),setTimeout(()=>{t.timeout&&t.timeout.running&&Jr(e.timer)})))},Lu=(t,e)=>{if(!e.toast){if(!jn(e.allowEnterKey))return Ru();$u(t,e)||Er(e,-1,1)}},$u=(t,e)=>e.focusDeny&&Pe(t.denyButton)?(t.denyButton.focus(),!0):e.focusCancel&&Pe(t.cancelButton)?(t.cancelButton.focus(),!0):e.focusConfirm&&Pe(t.confirmButton)?(t.confirmButton.focus(),!0):!1,Ru=()=>{document.activeElement instanceof HTMLElement&&typeof document.activeElement.blur=="function"&&document.activeElement.blur()};Object.assign(Nt.prototype,mi);Object.assign(Nt,Au);Object.keys(mi).forEach(t=>{Nt[t]=function(...e){if(Ar)return Ar[t](...e)}});Nt.DismissReason=Rt;Nt.version="11.4.8";const Lt=Nt;Lt.default=Lt;/*! @license DOMPurify 3.0.9 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.0.9/LICENSE */const{entries:vi,setPrototypeOf:qo,isFrozen:Nu,getPrototypeOf:Bu,getOwnPropertyDescriptor:Du}=Object;let{freeze:ye,seal:We,create:bi}=Object,{apply:Pr,construct:Ir}=typeof Reflect<"u"&&Reflect;ye||(ye=function(e){return e});We||(We=function(e){return e});Pr||(Pr=function(e,n,r){return e.apply(n,r)});Ir||(Ir=function(e,n){return new e(...n)});const kn=Le(Array.prototype.forEach),Go=Le(Array.prototype.pop),Vt=Le(Array.prototype.push),Pn=Le(String.prototype.toLowerCase),lr=Le(String.prototype.toString),Mu=Le(String.prototype.match),jt=Le(String.prototype.replace),Uu=Le(String.prototype.indexOf),Hu=Le(String.prototype.trim),Ve=Le(Object.prototype.hasOwnProperty),Ae=Le(RegExp.prototype.test),Ft=Vu(TypeError);function Le(t){return function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return Pr(t,e,r)}}function Vu(t){return function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return Ir(t,n)}}function z(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Pn;qo&&qo(t,null);let r=e.length;for(;r--;){let o=e[r];if(typeof o=="string"){const s=n(o);s!==o&&(Nu(e)||(e[r]=s),o=s)}t[o]=!0}return t}function ju(t){for(let e=0;e<t.length;e++)Ve(t,e)||(t[e]=null);return t}function ht(t){const e=bi(null);for(const[n,r]of vi(t))Ve(t,n)&&(Array.isArray(r)?e[n]=ju(r):r&&typeof r=="object"&&r.constructor===Object?e[n]=ht(r):e[n]=r);return e}function Cn(t,e){for(;t!==null;){const r=Du(t,e);if(r){if(r.get)return Le(r.get);if(typeof r.value=="function")return Le(r.value)}t=Bu(t)}function n(){return null}return n}const Yo=ye(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),cr=ye(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),ur=ye(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Fu=ye(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),dr=ye(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),zu=ye(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Jo=ye(["#text"]),Xo=ye(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),fr=ye(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Zo=ye(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),En=ye(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Ku=We(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Wu=We(/<%[\w\W]*|[\w\W]*%>/gm),qu=We(/\${[\w\W]*}/gm),Gu=We(/^data-[\-\w.\u00B7-\uFFFF]/),Yu=We(/^aria-[\-\w]+$/),wi=We(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Ju=We(/^(?:\w+script|data):/i),Xu=We(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Si=We(/^html$/i);var Qo=Object.freeze({__proto__:null,MUSTACHE_EXPR:Ku,ERB_EXPR:Wu,TMPLIT_EXPR:qu,DATA_ATTR:Gu,ARIA_ATTR:Yu,IS_ALLOWED_URI:wi,IS_SCRIPT_OR_DATA:Ju,ATTR_WHITESPACE:Xu,DOCTYPE_NAME:Si});const Zu=function(){return typeof window>"u"?null:window},Qu=function(e,n){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let r=null;const o="data-tt-policy-suffix";n&&n.hasAttribute(o)&&(r=n.getAttribute(o));const s="dompurify"+(r?"#"+r:"");try{return e.createPolicy(s,{createHTML(i){return i},createScriptURL(i){return i}})}catch{return console.warn("TrustedTypes policy "+s+" could not be created."),null}};function _i(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Zu();const e=N=>_i(N);if(e.version="3.0.9",e.removed=[],!t||!t.document||t.document.nodeType!==9)return e.isSupported=!1,e;let{document:n}=t;const r=n,o=r.currentScript,{DocumentFragment:s,HTMLTemplateElement:i,Node:a,Element:c,NodeFilter:u,NamedNodeMap:d=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:m,DOMParser:g,trustedTypes:_}=t,v=c.prototype,T=Cn(v,"cloneNode"),w=Cn(v,"nextSibling"),B=Cn(v,"childNodes"),C=Cn(v,"parentNode");if(typeof i=="function"){const N=n.createElement("template");N.content&&N.content.ownerDocument&&(n=N.content.ownerDocument)}let A,j="";const{implementation:X,createNodeIterator:ne,createDocumentFragment:J,getElementsByTagName:pe}=n,{importNode:se}=r;let U={};e.isSupported=typeof vi=="function"&&typeof C=="function"&&X&&X.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:Te,ERB_EXPR:ve,TMPLIT_EXPR:De,DATA_ATTR:Me,ARIA_ATTR:ot,IS_SCRIPT_OR_DATA:Xe,ATTR_WHITESPACE:Ue}=Qo;let{IS_ALLOWED_URI:Ge}=Qo,te=null;const $e=z({},[...Yo,...cr,...ur,...dr,...Jo]);let f=null;const h=z({},[...Xo,...fr,...Zo,...En]);let S=Object.seal(bi(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),P=null,k=null,L=!0,E=!0,I=!1,D=!0,O=!1,$=!1,Z=!1,oe=!1,he=!1,ae=!1,Re=!1,po=!0,ho=!1;const ga="user-content-";let er=!0,Mt=!1,Ct={},Et=null;const go=z({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let yo=null;const vo=z({},["audio","video","img","source","image","track"]);let tr=null;const bo=z({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),wn="http://www.w3.org/1998/Math/MathML",Sn="http://www.w3.org/2000/svg",Ze="http://www.w3.org/1999/xhtml";let Tt=Ze,nr=!1,rr=null;const ya=z({},[wn,Sn,Ze],lr);let Ut=null;const va=["application/xhtml+xml","text/html"],ba="text/html";let ie=null,At=null;const wa=n.createElement("form"),wo=function(p){return p instanceof RegExp||p instanceof Function},or=function(){let p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(At&&At===p)){if((!p||typeof p!="object")&&(p={}),p=ht(p),Ut=va.indexOf(p.PARSER_MEDIA_TYPE)===-1?ba:p.PARSER_MEDIA_TYPE,ie=Ut==="application/xhtml+xml"?lr:Pn,te=Ve(p,"ALLOWED_TAGS")?z({},p.ALLOWED_TAGS,ie):$e,f=Ve(p,"ALLOWED_ATTR")?z({},p.ALLOWED_ATTR,ie):h,rr=Ve(p,"ALLOWED_NAMESPACES")?z({},p.ALLOWED_NAMESPACES,lr):ya,tr=Ve(p,"ADD_URI_SAFE_ATTR")?z(ht(bo),p.ADD_URI_SAFE_ATTR,ie):bo,yo=Ve(p,"ADD_DATA_URI_TAGS")?z(ht(vo),p.ADD_DATA_URI_TAGS,ie):vo,Et=Ve(p,"FORBID_CONTENTS")?z({},p.FORBID_CONTENTS,ie):go,P=Ve(p,"FORBID_TAGS")?z({},p.FORBID_TAGS,ie):{},k=Ve(p,"FORBID_ATTR")?z({},p.FORBID_ATTR,ie):{},Ct=Ve(p,"USE_PROFILES")?p.USE_PROFILES:!1,L=p.ALLOW_ARIA_ATTR!==!1,E=p.ALLOW_DATA_ATTR!==!1,I=p.ALLOW_UNKNOWN_PROTOCOLS||!1,D=p.ALLOW_SELF_CLOSE_IN_ATTR!==!1,O=p.SAFE_FOR_TEMPLATES||!1,$=p.WHOLE_DOCUMENT||!1,he=p.RETURN_DOM||!1,ae=p.RETURN_DOM_FRAGMENT||!1,Re=p.RETURN_TRUSTED_TYPE||!1,oe=p.FORCE_BODY||!1,po=p.SANITIZE_DOM!==!1,ho=p.SANITIZE_NAMED_PROPS||!1,er=p.KEEP_CONTENT!==!1,Mt=p.IN_PLACE||!1,Ge=p.ALLOWED_URI_REGEXP||wi,Tt=p.NAMESPACE||Ze,S=p.CUSTOM_ELEMENT_HANDLING||{},p.CUSTOM_ELEMENT_HANDLING&&wo(p.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(S.tagNameCheck=p.CUSTOM_ELEMENT_HANDLING.tagNameCheck),p.CUSTOM_ELEMENT_HANDLING&&wo(p.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(S.attributeNameCheck=p.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),p.CUSTOM_ELEMENT_HANDLING&&typeof p.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(S.allowCustomizedBuiltInElements=p.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),O&&(E=!1),ae&&(he=!0),Ct&&(te=z({},Jo),f=[],Ct.html===!0&&(z(te,Yo),z(f,Xo)),Ct.svg===!0&&(z(te,cr),z(f,fr),z(f,En)),Ct.svgFilters===!0&&(z(te,ur),z(f,fr),z(f,En)),Ct.mathMl===!0&&(z(te,dr),z(f,Zo),z(f,En))),p.ADD_TAGS&&(te===$e&&(te=ht(te)),z(te,p.ADD_TAGS,ie)),p.ADD_ATTR&&(f===h&&(f=ht(f)),z(f,p.ADD_ATTR,ie)),p.ADD_URI_SAFE_ATTR&&z(tr,p.ADD_URI_SAFE_ATTR,ie),p.FORBID_CONTENTS&&(Et===go&&(Et=ht(Et)),z(Et,p.FORBID_CONTENTS,ie)),er&&(te["#text"]=!0),$&&z(te,["html","head","body"]),te.table&&(z(te,["tbody"]),delete P.tbody),p.TRUSTED_TYPES_POLICY){if(typeof p.TRUSTED_TYPES_POLICY.createHTML!="function")throw Ft('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof p.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Ft('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');A=p.TRUSTED_TYPES_POLICY,j=A.createHTML("")}else A===void 0&&(A=Qu(_,o)),A!==null&&typeof j=="string"&&(j=A.createHTML(""));ye&&ye(p),At=p}},So=z({},["mi","mo","mn","ms","mtext"]),_o=z({},["foreignobject","desc","title","annotation-xml"]),Sa=z({},["title","style","font","a","script"]),ko=z({},[...cr,...ur,...Fu]),Co=z({},[...dr,...zu]),_a=function(p){let x=C(p);(!x||!x.tagName)&&(x={namespaceURI:Tt,tagName:"template"});const R=Pn(p.tagName),Q=Pn(x.tagName);return rr[p.namespaceURI]?p.namespaceURI===Sn?x.namespaceURI===Ze?R==="svg":x.namespaceURI===wn?R==="svg"&&(Q==="annotation-xml"||So[Q]):!!ko[R]:p.namespaceURI===wn?x.namespaceURI===Ze?R==="math":x.namespaceURI===Sn?R==="math"&&_o[Q]:!!Co[R]:p.namespaceURI===Ze?x.namespaceURI===Sn&&!_o[Q]||x.namespaceURI===wn&&!So[Q]?!1:!Co[R]&&(Sa[R]||!ko[R]):!!(Ut==="application/xhtml+xml"&&rr[p.namespaceURI]):!1},ft=function(p){Vt(e.removed,{element:p});try{p.parentNode.removeChild(p)}catch{p.remove()}},sr=function(p,x){try{Vt(e.removed,{attribute:x.getAttributeNode(p),from:x})}catch{Vt(e.removed,{attribute:null,from:x})}if(x.removeAttribute(p),p==="is"&&!f[p])if(he||ae)try{ft(x)}catch{}else try{x.setAttribute(p,"")}catch{}},Eo=function(p){let x=null,R=null;if(oe)p="<remove></remove>"+p;else{const ue=Mu(p,/^[\r\n\t ]+/);R=ue&&ue[0]}Ut==="application/xhtml+xml"&&Tt===Ze&&(p='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+p+"</body></html>");const Q=A?A.createHTML(p):p;if(Tt===Ze)try{x=new g().parseFromString(Q,Ut)}catch{}if(!x||!x.documentElement){x=X.createDocument(Tt,"template",null);try{x.documentElement.innerHTML=nr?j:Q}catch{}}const ce=x.body||x.documentElement;return p&&R&&ce.insertBefore(n.createTextNode(R),ce.childNodes[0]||null),Tt===Ze?pe.call(x,$?"html":"body")[0]:$?x.documentElement:ce},To=function(p){return ne.call(p.ownerDocument||p,p,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT,null)},ka=function(p){return p instanceof m&&(typeof p.nodeName!="string"||typeof p.textContent!="string"||typeof p.removeChild!="function"||!(p.attributes instanceof d)||typeof p.removeAttribute!="function"||typeof p.setAttribute!="function"||typeof p.namespaceURI!="string"||typeof p.insertBefore!="function"||typeof p.hasChildNodes!="function")},Ao=function(p){return typeof a=="function"&&p instanceof a},Qe=function(p,x,R){U[p]&&kn(U[p],Q=>{Q.call(e,x,R,At)})},Po=function(p){let x=null;if(Qe("beforeSanitizeElements",p,null),ka(p))return ft(p),!0;const R=ie(p.nodeName);if(Qe("uponSanitizeElement",p,{tagName:R,allowedTags:te}),p.hasChildNodes()&&!Ao(p.firstElementChild)&&Ae(/<[/\w]/g,p.innerHTML)&&Ae(/<[/\w]/g,p.textContent))return ft(p),!0;if(!te[R]||P[R]){if(!P[R]&&xo(R)&&(S.tagNameCheck instanceof RegExp&&Ae(S.tagNameCheck,R)||S.tagNameCheck instanceof Function&&S.tagNameCheck(R)))return!1;if(er&&!Et[R]){const Q=C(p)||p.parentNode,ce=B(p)||p.childNodes;if(ce&&Q){const ue=ce.length;for(let be=ue-1;be>=0;--be)Q.insertBefore(T(ce[be],!0),w(p))}}return ft(p),!0}return p instanceof c&&!_a(p)||(R==="noscript"||R==="noembed"||R==="noframes")&&Ae(/<\/no(script|embed|frames)/i,p.innerHTML)?(ft(p),!0):(O&&p.nodeType===3&&(x=p.textContent,kn([Te,ve,De],Q=>{x=jt(x,Q," ")}),p.textContent!==x&&(Vt(e.removed,{element:p.cloneNode()}),p.textContent=x)),Qe("afterSanitizeElements",p,null),!1)},Io=function(p,x,R){if(po&&(x==="id"||x==="name")&&(R in n||R in wa))return!1;if(!(E&&!k[x]&&Ae(Me,x))){if(!(L&&Ae(ot,x))){if(!f[x]||k[x]){if(!(xo(p)&&(S.tagNameCheck instanceof RegExp&&Ae(S.tagNameCheck,p)||S.tagNameCheck instanceof Function&&S.tagNameCheck(p))&&(S.attributeNameCheck instanceof RegExp&&Ae(S.attributeNameCheck,x)||S.attributeNameCheck instanceof Function&&S.attributeNameCheck(x))||x==="is"&&S.allowCustomizedBuiltInElements&&(S.tagNameCheck instanceof RegExp&&Ae(S.tagNameCheck,R)||S.tagNameCheck instanceof Function&&S.tagNameCheck(R))))return!1}else if(!tr[x]){if(!Ae(Ge,jt(R,Ue,""))){if(!((x==="src"||x==="xlink:href"||x==="href")&&p!=="script"&&Uu(R,"data:")===0&&yo[p])){if(!(I&&!Ae(Xe,jt(R,Ue,"")))){if(R)return!1}}}}}}return!0},xo=function(p){return p!=="annotation-xml"&&p.indexOf("-")>0},Oo=function(p){Qe("beforeSanitizeAttributes",p,null);const{attributes:x}=p;if(!x)return;const R={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:f};let Q=x.length;for(;Q--;){const ce=x[Q],{name:ue,namespaceURI:be,value:mt}=ce,Ht=ie(ue);let we=ue==="value"?mt:Hu(mt);if(R.attrName=Ht,R.attrValue=we,R.keepAttr=!0,R.forceKeepAttr=void 0,Qe("uponSanitizeAttribute",p,R),we=R.attrValue,R.forceKeepAttr||(sr(ue,p),!R.keepAttr))continue;if(!D&&Ae(/\/>/i,we)){sr(ue,p);continue}O&&kn([Te,ve,De],$o=>{we=jt(we,$o," ")});const Lo=ie(p.nodeName);if(Io(Lo,Ht,we)){if(ho&&(Ht==="id"||Ht==="name")&&(sr(ue,p),we=ga+we),A&&typeof _=="object"&&typeof _.getAttributeType=="function"&&!be)switch(_.getAttributeType(Lo,Ht)){case"TrustedHTML":{we=A.createHTML(we);break}case"TrustedScriptURL":{we=A.createScriptURL(we);break}}try{be?p.setAttributeNS(be,ue,we):p.setAttribute(ue,we),Go(e.removed)}catch{}}}Qe("afterSanitizeAttributes",p,null)},Ca=function N(p){let x=null;const R=To(p);for(Qe("beforeSanitizeShadowDOM",p,null);x=R.nextNode();)Qe("uponSanitizeShadowNode",x,null),!Po(x)&&(x.content instanceof s&&N(x.content),Oo(x));Qe("afterSanitizeShadowDOM",p,null)};return e.sanitize=function(N){let p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},x=null,R=null,Q=null,ce=null;if(nr=!N,nr&&(N="<!-->"),typeof N!="string"&&!Ao(N))if(typeof N.toString=="function"){if(N=N.toString(),typeof N!="string")throw Ft("dirty is not a string, aborting")}else throw Ft("toString is not a function");if(!e.isSupported)return N;if(Z||or(p),e.removed=[],typeof N=="string"&&(Mt=!1),Mt){if(N.nodeName){const mt=ie(N.nodeName);if(!te[mt]||P[mt])throw Ft("root node is forbidden and cannot be sanitized in-place")}}else if(N instanceof a)x=Eo("<!---->"),R=x.ownerDocument.importNode(N,!0),R.nodeType===1&&R.nodeName==="BODY"||R.nodeName==="HTML"?x=R:x.appendChild(R);else{if(!he&&!O&&!$&&N.indexOf("<")===-1)return A&&Re?A.createHTML(N):N;if(x=Eo(N),!x)return he?null:Re?j:""}x&&oe&&ft(x.firstChild);const ue=To(Mt?N:x);for(;Q=ue.nextNode();)Po(Q)||(Q.content instanceof s&&Ca(Q.content),Oo(Q));if(Mt)return N;if(he){if(ae)for(ce=J.call(x.ownerDocument);x.firstChild;)ce.appendChild(x.firstChild);else ce=x;return(f.shadowroot||f.shadowrootmode)&&(ce=se.call(r,ce,!0)),ce}let be=$?x.outerHTML:x.innerHTML;return $&&te["!doctype"]&&x.ownerDocument&&x.ownerDocument.doctype&&x.ownerDocument.doctype.name&&Ae(Si,x.ownerDocument.doctype.name)&&(be="<!DOCTYPE "+x.ownerDocument.doctype.name+`>
65
+ `+be),O&&kn([Te,ve,De],mt=>{be=jt(be,mt," ")}),A&&Re?A.createHTML(be):be},e.setConfig=function(){let N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};or(N),Z=!0},e.clearConfig=function(){At=null,Z=!1},e.isValidAttribute=function(N,p,x){At||or({});const R=ie(N),Q=ie(p);return Io(R,Q,x)},e.addHook=function(N,p){typeof p=="function"&&(U[N]=U[N]||[],Vt(U[N],p))},e.removeHook=function(N){if(U[N])return Go(U[N])},e.removeHooks=function(N){U[N]&&(U[N]=[])},e.removeAllHooks=function(){U={}},e}var ki=_i();let Ci=class{get IsVisible(){return Lt.isVisible()}};class ed extends Ci{constructor(){super()}async CreateAlertAsync(e){let n="info",r,o;return typeof e=="string"||Array.isArray(e)?r=Array.isArray(e)?e.join("<br />"):e:(n=e.icon??"info",o=e.title??"",r=Array.isArray(e.text)?e.text.join("<br />"):e.text),new Promise(s=>{Lt.fire({allowEscapeKey:!1,allowOutsideClick:!1,icon:n,title:o,html:`<div style="max-height: 50vh; overflow: auto">${ki.sanitize(r)}</div>`}).then(()=>s(!0))})}async AlertAsync(e){return this.CreateAlertAsync({text:e,icon:"info"})}async AlertErrorAsync(e){return this.CreateAlertAsync({text:e,icon:"error"})}async AlertSuccessAsync(e){return this.CreateAlertAsync({text:e,icon:"success"})}}class td extends Ci{async CreateConfirmAsync(e){return new Promise(n=>{Lt.fire({showCancelButton:!0,allowEscapeKey:!1,allowOutsideClick:!1,icon:"question",title:e.title,html:ki.sanitize(e.text),confirmButtonText:e.confirmLabel??"confirmar",cancelButtonText:e.rejectLabel??"cancelar"}).then(r=>{n(r.isConfirmed===!0)})})}async ConfirmAsync(e){return this.CreateConfirmAsync({text:e})}}const nd=()=>new ed,Ei=()=>new td;function rd(t){return t instanceof Uint8Array||t!=null&&typeof t=="object"&&t.constructor.name==="Uint8Array"}function Ti(t,...e){if(!rd(t))throw new Error("Uint8Array expected");if(e.length>0&&!e.includes(t.length))throw new Error(`Uint8Array expected of length ${e}, not of length=${t.length}`)}function es(t,e=!0){if(t.destroyed)throw new Error("Hash instance has been destroyed");if(e&&t.finished)throw new Error("Hash#digest() has already been called")}function od(t,e){Ti(t);const n=e.outputLen;if(t.length<n)throw new Error(`digestInto() expects output buffer of length at least ${n}`)}/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */const mr=t=>new DataView(t.buffer,t.byteOffset,t.byteLength),Ye=(t,e)=>t<<32-e|t>>>e;new Uint8Array(new Uint32Array([287454020]).buffer)[0];function sd(t){if(typeof t!="string")throw new Error(`utf8ToBytes expected string, got ${typeof t}`);return new Uint8Array(new TextEncoder().encode(t))}function Ai(t){return typeof t=="string"&&(t=sd(t)),Ti(t),t}class id{clone(){return this._cloneInto()}}function ad(t){const e=r=>t().update(Ai(r)).digest(),n=t();return e.outputLen=n.outputLen,e.blockLen=n.blockLen,e.create=()=>t(),e}function ld(t,e,n,r){if(typeof t.setBigUint64=="function")return t.setBigUint64(e,n,r);const o=BigInt(32),s=BigInt(4294967295),i=Number(n>>o&s),a=Number(n&s),c=r?4:0,u=r?0:4;t.setUint32(e+c,i,r),t.setUint32(e+u,a,r)}const cd=(t,e,n)=>t&e^~t&n,ud=(t,e,n)=>t&e^t&n^e&n;class dd extends id{constructor(e,n,r,o){super(),this.blockLen=e,this.outputLen=n,this.padOffset=r,this.isLE=o,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(e),this.view=mr(this.buffer)}update(e){es(this);const{view:n,buffer:r,blockLen:o}=this;e=Ai(e);const s=e.length;for(let i=0;i<s;){const a=Math.min(o-this.pos,s-i);if(a===o){const c=mr(e);for(;o<=s-i;i+=o)this.process(c,i);continue}r.set(e.subarray(i,i+a),this.pos),this.pos+=a,i+=a,this.pos===o&&(this.process(n,0),this.pos=0)}return this.length+=e.length,this.roundClean(),this}digestInto(e){es(this),od(e,this),this.finished=!0;const{buffer:n,view:r,blockLen:o,isLE:s}=this;let{pos:i}=this;n[i++]=128,this.buffer.subarray(i).fill(0),this.padOffset>o-i&&(this.process(r,0),i=0);for(let m=i;m<o;m++)n[m]=0;ld(r,o-8,BigInt(this.length*8),s),this.process(r,0);const a=mr(e),c=this.outputLen;if(c%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const u=c/4,d=this.get();if(u>d.length)throw new Error("_sha2: outputLen bigger than state");for(let m=0;m<u;m++)a.setUint32(4*m,d[m],s)}digest(){const{buffer:e,outputLen:n}=this;this.digestInto(e);const r=e.slice(0,n);return this.destroy(),r}_cloneInto(e){e||(e=new this.constructor),e.set(...this.get());const{blockLen:n,buffer:r,length:o,finished:s,destroyed:i,pos:a}=this;return e.length=o,e.pos=a,e.finished=s,e.destroyed=i,o%n&&e.buffer.set(r),e}}const fd=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),st=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),it=new Uint32Array(64);class md extends dd{constructor(){super(64,32,8,!1),this.A=st[0]|0,this.B=st[1]|0,this.C=st[2]|0,this.D=st[3]|0,this.E=st[4]|0,this.F=st[5]|0,this.G=st[6]|0,this.H=st[7]|0}get(){const{A:e,B:n,C:r,D:o,E:s,F:i,G:a,H:c}=this;return[e,n,r,o,s,i,a,c]}set(e,n,r,o,s,i,a,c){this.A=e|0,this.B=n|0,this.C=r|0,this.D=o|0,this.E=s|0,this.F=i|0,this.G=a|0,this.H=c|0}process(e,n){for(let m=0;m<16;m++,n+=4)it[m]=e.getUint32(n,!1);for(let m=16;m<64;m++){const g=it[m-15],_=it[m-2],v=Ye(g,7)^Ye(g,18)^g>>>3,T=Ye(_,17)^Ye(_,19)^_>>>10;it[m]=T+it[m-7]+v+it[m-16]|0}let{A:r,B:o,C:s,D:i,E:a,F:c,G:u,H:d}=this;for(let m=0;m<64;m++){const g=Ye(a,6)^Ye(a,11)^Ye(a,25),_=d+g+cd(a,c,u)+fd[m]+it[m]|0,T=(Ye(r,2)^Ye(r,13)^Ye(r,22))+ud(r,o,s)|0;d=u,u=c,c=a,a=i+_|0,i=s,s=o,o=r,r=_+T|0}r=r+this.A|0,o=o+this.B|0,s=s+this.C|0,i=i+this.D|0,a=a+this.E|0,c=c+this.F|0,u=u+this.G|0,d=d+this.H|0,this.set(r,o,s,i,a,c,u,d)}roundClean(){it.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}const pd=ad(()=>new md);class qt extends Error{}qt.prototype.name="InvalidTokenError";function hd(t){return decodeURIComponent(atob(t).replace(/(.)/g,(e,n)=>{let r=n.charCodeAt(0).toString(16).toUpperCase();return r.length<2&&(r="0"+r),"%"+r}))}function gd(t){let e=t.replace(/-/g,"+").replace(/_/g,"/");switch(e.length%4){case 0:break;case 2:e+="==";break;case 3:e+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return hd(e)}catch{return atob(e)}}function pr(t,e){if(typeof t!="string")throw new qt("Invalid token specified: must be a string");e||(e={});const n=e.header===!0?0:1,r=t.split(".")[n];if(typeof r!="string")throw new qt(`Invalid token specified: missing part #${n+1}`);let o;try{o=gd(r)}catch(s){throw new qt(`Invalid token specified: invalid base64 for part #${n+1} (${s.message})`)}try{return JSON.parse(o)}catch(s){throw new qt(`Invalid token specified: invalid json for part #${n+1} (${s.message})`)}}if(typeof Promise>"u")throw Error("Keycloak requires an environment that supports Promises. Make sure that you include the appropriate polyfill.");function to(t){if(!(this instanceof to))throw new Error("The 'Keycloak' constructor must be invoked with 'new'.");for(var e=this,n,r=[],o,s={enable:!0,callbackList:[],interval:5},i=document.getElementsByTagName("script"),a=0;a<i.length;a++)(i[a].src.indexOf("keycloak.js")!==-1||i[a].src.indexOf("keycloak.min.js")!==-1)&&i[a].src.indexOf("version=")!==-1&&(e.iframeVersion=i[a].src.substring(i[a].src.indexOf("version=")+8).split("&")[0]);var c=!0,u=$e(console.info),d=$e(console.warn);e.init=function(f){if(e.didInitialize)throw new Error("A 'Keycloak' instance can only be initialized once.");e.didInitialize=!0,e.authenticated=!1,o=te();var h=["default","cordova","cordova-native"];if(f&&h.indexOf(f.adapter)>-1?n=Xe(f.adapter):f&&typeof f.adapter=="object"?n=f.adapter:window.Cordova||window.cordova?n=Xe("cordova"):n=Xe(),f){if(typeof f.useNonce<"u"&&(c=f.useNonce),typeof f.checkLoginIframe<"u"&&(s.enable=f.checkLoginIframe),f.checkLoginIframeInterval&&(s.interval=f.checkLoginIframeInterval),f.onLoad==="login-required"&&(e.loginRequired=!0),f.responseMode)if(f.responseMode==="query"||f.responseMode==="fragment")e.responseMode=f.responseMode;else throw"Invalid value for responseMode";if(f.flow){switch(f.flow){case"standard":e.responseType="code";break;case"implicit":e.responseType="id_token token";break;case"hybrid":e.responseType="code id_token token";break;default:throw"Invalid value for flow"}e.flow=f.flow}if(f.timeSkew!=null&&(e.timeSkew=f.timeSkew),f.redirectUri&&(e.redirectUri=f.redirectUri),f.silentCheckSsoRedirectUri&&(e.silentCheckSsoRedirectUri=f.silentCheckSsoRedirectUri),typeof f.silentCheckSsoFallback=="boolean"?e.silentCheckSsoFallback=f.silentCheckSsoFallback:e.silentCheckSsoFallback=!0,typeof f.pkceMethod<"u"){if(f.pkceMethod!=="S256"&&f.pkceMethod!==!1)throw new TypeError(`Invalid value for pkceMethod', expected 'S256' or false but got ${f.pkceMethod}.`);e.pkceMethod=f.pkceMethod}else e.pkceMethod="S256";typeof f.enableLogging=="boolean"?e.enableLogging=f.enableLogging:e.enableLogging=!1,f.logoutMethod==="POST"?e.logoutMethod="POST":e.logoutMethod="GET",typeof f.scope=="string"&&(e.scope=f.scope),typeof f.acrValues=="string"&&(e.acrValues=f.acrValues),typeof f.messageReceiveTimeout=="number"&&f.messageReceiveTimeout>0?e.messageReceiveTimeout=f.messageReceiveTimeout:e.messageReceiveTimeout=1e4}e.responseMode||(e.responseMode="fragment"),e.responseType||(e.responseType="code",e.flow="standard");var S=U(),P=U();P.promise.then(function(){e.onReady&&e.onReady(e.authenticated),S.setSuccess(e.authenticated)}).catch(function(O){S.setError(O)});var k=A(),L=function(){u("[KEYCLOAK] Executing check-sso silently");var O=document.createElement("iframe"),$=e.createLoginUrl({prompt:"none",redirectUri:e.silentCheckSsoRedirectUri});return O.setAttribute("src",$),O.setAttribute("sandbox","allow-storage-access-by-user-activation allow-scripts allow-same-origin"),O.setAttribute("title","keycloak-silent-check-sso"),O.style.display="none",document.body.appendChild(O),new Promise(function(oe){var he=function(ae){if(!(ae.origin!==window.location.origin||O.contentWindow!==ae.source)){var Re=J(ae.data);C(Re,P,oe),document.body.removeChild(O),window.removeEventListener("message",he)}};window.addEventListener("message",he)})};e.getAccessTokenAsync=async()=>{const O=e.tokenParsed,$=O?O.exp:null;return!O||!$?null:$-Math.ceil(new Date().getTime()/1e3)+(e.timeSkew??0)<10?await L()??null:e.token};function E(){var O=function(Z){Z||($.prompt="none"),f&&f.locale&&($.locale=f.locale),e.login($).then(function(){P.setSuccess()}).catch(function(oe){P.setError(oe)})},$={};switch(f.onLoad){case"check-sso":s.enable?ve().then(function(){Me().then(function(Z){Z?P.setSuccess():e.silentCheckSsoRedirectUri?L():O(!1)}).catch(function(Z){P.setError(Z)})}):e.silentCheckSsoRedirectUri?L():O(!1);break;case"login-required":O(!0);break;default:throw"Invalid value for onLoad"}}function I(){var O=J(window.location.href);if(O&&window.history.replaceState(window.history.state,null,O.newUrl),O&&O.valid)return ve().then(function(){C(O,P)}).catch(function($){P.setError($)});f?f.token&&f.refreshToken?(X(f.token,f.refreshToken,f.idToken),s.enable?ve().then(function(){Me().then(function($){$?(e.onAuthSuccess&&e.onAuthSuccess(),P.setSuccess(),De()):P.setSuccess()}).catch(function($){P.setError($)})}):e.updateToken(-1).then(function(){e.onAuthSuccess&&e.onAuthSuccess(),P.setSuccess()}).catch(function($){e.onAuthError&&e.onAuthError(),f.onLoad?E():P.setError($)})):f.onLoad?E():P.setSuccess():P.setSuccess()}function D(){var O=U(),$=function(){(document.readyState==="interactive"||document.readyState==="complete")&&(document.removeEventListener("readystatechange",$),O.setSuccess())};return document.addEventListener("readystatechange",$),$(),O.promise}return k.then(function(){D().then(ot).then(I).catch(function(O){S.setError(O)})}),k.catch(function(O){S.setError(O)}),S.promise},e.login=function(f){return n.login(f)};function m(f){var h=null,S=window.crypto||window.msCrypto;if(S&&S.getRandomValues&&window.Uint8Array)return h=new Uint8Array(f),S.getRandomValues(h),h;h=new Array(f);for(var P=0;P<h.length;P++)h[P]=Math.floor(256*Math.random());return h}function g(f){return _(f,"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789")}function _(f,h){for(var S=m(f),P=new Array(f),k=0;k<f;k++)P[k]=h.charCodeAt(S[k]%h.length);return String.fromCharCode.apply(null,P)}function v(f,h){if(f!=="S256")throw new TypeError(`Invalid value for 'pkceMethod', expected 'S256' but got '${f}'.`);const S=pd(h);return yd(S).replace(/\+/g,"-").replace(/\//g,"_").replace(/\=/g,"")}function T(f){var h={id_token:{acr:f}};return JSON.stringify(h)}e.createLoginUrl=function(f){var h=ne(),S=ne(),P=n.redirectUri(f),k={state:h,nonce:S,redirectUri:encodeURIComponent(P),loginOptions:f};f&&f.prompt&&(k.prompt=f.prompt);var L;f&&f.action=="register"?L=e.endpoints.register():L=e.endpoints.authorize();var E=f&&f.scope||e.scope;E?E.indexOf("openid")===-1&&(E="openid "+E):E="openid";var I=L+"?client_id="+encodeURIComponent(e.clientId)+"&redirect_uri="+encodeURIComponent(P)+"&state="+encodeURIComponent(h)+"&response_mode="+encodeURIComponent(e.responseMode)+"&response_type="+encodeURIComponent(e.responseType)+"&scope="+encodeURIComponent(E);if(c&&(I=I+"&nonce="+encodeURIComponent(S)),f&&f.prompt&&(I+="&prompt="+encodeURIComponent(f.prompt)),f&&f.maxAge&&(I+="&max_age="+encodeURIComponent(f.maxAge)),f&&f.loginHint&&(I+="&login_hint="+encodeURIComponent(f.loginHint)),f&&f.idpHint&&(I+="&kc_idp_hint="+encodeURIComponent(f.idpHint)),f&&f.action&&f.action!="register"&&(I+="&kc_action="+encodeURIComponent(f.action)),f&&f.locale&&(I+="&ui_locales="+encodeURIComponent(f.locale)),f&&f.acr){var D=T(f.acr);I+="&claims="+encodeURIComponent(D)}if((f&&f.acrValues||e.acrValues)&&(I+="&acr_values="+encodeURIComponent(f.acrValues||e.acrValues)),e.pkceMethod){var O=g(96);k.pkceCodeVerifier=O;var $=v(e.pkceMethod,O);I+="&code_challenge="+$,I+="&code_challenge_method="+e.pkceMethod}return o.add(k),I},e.logout=function(f){return n.logout(f)},e.createLogoutUrl=function(f){if(((f==null?void 0:f.logoutMethod)??e.logoutMethod)==="POST")return e.endpoints.logout();var S=e.endpoints.logout()+"?client_id="+encodeURIComponent(e.clientId)+"&post_logout_redirect_uri="+encodeURIComponent(n.redirectUri(f,!1));return e.idToken&&(S+="&id_token_hint="+encodeURIComponent(e.idToken)),S},e.register=function(f){return n.register(f)},e.createRegisterUrl=function(f){return f||(f={}),f.action="register",e.createLoginUrl(f)},e.createAccountUrl=function(f){var h=w(),S=void 0;return typeof h<"u"&&(S=h+"/account?referrer="+encodeURIComponent(e.clientId)+"&referrer_uri="+encodeURIComponent(n.redirectUri(f))),S},e.accountManagement=function(){return n.accountManagement()},e.hasRealmRole=function(f){var h=e.realmAccess;return!!h&&h.roles.indexOf(f)>=0},e.hasResourceRole=function(f,h){if(!e.resourceAccess)return!1;var S=e.resourceAccess[h||e.clientId];return!!S&&S.roles.indexOf(f)>=0},e.loadUserProfile=function(){var f=w()+"/account",h=new XMLHttpRequest;h.open("GET",f,!0),h.setRequestHeader("Accept","application/json"),h.setRequestHeader("Authorization","bearer "+e.token);var S=U();return h.onreadystatechange=function(){h.readyState==4&&(h.status==200?(e.profile=JSON.parse(h.responseText),S.setSuccess(e.profile)):S.setError())},h.send(),S.promise},e.loadUserInfo=function(){var f=e.endpoints.userinfo(),h=new XMLHttpRequest;h.open("GET",f,!0),h.setRequestHeader("Accept","application/json"),h.setRequestHeader("Authorization","bearer "+e.token);var S=U();return h.onreadystatechange=function(){h.readyState==4&&(h.status==200?(e.userInfo=JSON.parse(h.responseText),S.setSuccess(e.userInfo)):S.setError())},h.send(),S.promise},e.isTokenExpired=function(f){if(!e.tokenParsed||!e.refreshToken&&e.flow!="implicit")throw"Not authenticated";if(e.timeSkew==null)return u("[KEYCLOAK] Unable to determine if token is expired as timeskew is not set"),!0;var h=e.tokenParsed.exp-Math.ceil(new Date().getTime()/1e3)+e.timeSkew;if(f){if(isNaN(f))throw"Invalid minValidity";h-=f}return h<0},e.updateToken=function(f){var h=U();if(!e.refreshToken)return h.setError(),h.promise;f=f||5;var S=function(){var k=!1;if(f==-1?(k=!0,u("[KEYCLOAK] Refreshing token: forced refresh")):(!e.tokenParsed||e.isTokenExpired(f))&&(k=!0,u("[KEYCLOAK] Refreshing token: token expired")),!k)h.setSuccess(!1);else{var L="grant_type=refresh_token&refresh_token="+e.refreshToken,E=e.endpoints.token();if(r.push(h),r.length==1){var I=new XMLHttpRequest;I.open("POST",E,!0),I.setRequestHeader("Content-type","application/x-www-form-urlencoded"),I.withCredentials=!0,L+="&client_id="+encodeURIComponent(e.clientId);var D=new Date().getTime();I.onreadystatechange=function(){if(I.readyState==4)if(I.status==200){u("[KEYCLOAK] Token refreshed"),D=(D+new Date().getTime())/2;var O=JSON.parse(I.responseText);X(O.access_token,O.refresh_token,O.id_token,D),e.onAuthRefreshSuccess&&e.onAuthRefreshSuccess();for(var $=r.pop();$!=null;$=r.pop())$.setSuccess(!0)}else{d("[KEYCLOAK] Failed to refresh token"),I.status==400&&e.clearToken(),e.onAuthRefreshError&&e.onAuthRefreshError();for(var $=r.pop();$!=null;$=r.pop())$.setError(!0)}},I.send(L)}}};if(s.enable){var P=Me();P.then(function(){S()}).catch(function(k){h.setError(k)})}else S();return h.promise},e.clearToken=function(){e.token&&(X(null,null,null),e.onAuthLogout&&e.onAuthLogout(),e.loginRequired&&e.login())};function w(){if(typeof e.authServerUrl<"u")return e.authServerUrl.charAt(e.authServerUrl.length-1)=="/"?e.authServerUrl+"realms/"+encodeURIComponent(e.realm):e.authServerUrl+"/realms/"+encodeURIComponent(e.realm)}function B(){return window.location.origin?window.location.origin:window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:"")}function C(f,h,S=null){var P=f.code,k=f.error,L=f.prompt,E=new Date().getTime();if(f.kc_action_status&&e.onActionUpdate&&e.onActionUpdate(f.kc_action_status),k){if(L!="none")if(f.error_description&&f.error_description==="authentication_expired")e.login(f.loginOptions);else{var I={error:k,error_description:f.error_description};e.onAuthError&&e.onAuthError(I),h&&h.setError(I)}else h&&h.setSuccess(),S&&S();return}else e.flow!="standard"&&(f.access_token||f.id_token)&&Z(f.access_token,null,f.id_token,!0);if(e.flow!="implicit"&&P){var D="code="+P+"&grant_type=authorization_code",O=e.endpoints.token(),$=new XMLHttpRequest;$.open("POST",O,!0),$.setRequestHeader("Content-type","application/x-www-form-urlencoded"),D+="&client_id="+encodeURIComponent(e.clientId),D+="&redirect_uri="+f.redirectUri,f.pkceCodeVerifier&&(D+="&code_verifier="+f.pkceCodeVerifier),$.withCredentials=!0,$.onreadystatechange=function(){if($.readyState==4)if($.status==200){var oe=JSON.parse($.responseText);Z(oe.access_token,oe.refresh_token,oe.id_token,e.flow==="standard"),De()}else e.onAuthError&&e.onAuthError(),h&&h.setError()},$.send(D)}function Z(oe,he,ae,Re){if(E=(E+new Date().getTime())/2,X(oe,he,ae,E),c&&e.idTokenParsed&&e.idTokenParsed.nonce!=f.storedNonce)u("[KEYCLOAK] Invalid nonce, clearing token"),e.clearToken(),h&&h.setError();else if(Re){e.onAuthSuccess&&e.onAuthSuccess(),h&&h.setSuccess(),S&&S(oe);return}}}function A(f){var h=U(),S;t?typeof t=="string"&&(S=t):S="keycloak.json";function P(O){O?e.endpoints={authorize:function(){return O.authorization_endpoint},token:function(){return O.token_endpoint},logout:function(){if(!O.end_session_endpoint)throw"Not supported by the OIDC server";return O.end_session_endpoint},checkSessionIframe:function(){if(!O.check_session_iframe)throw"Not supported by the OIDC server";return O.check_session_iframe},register:function(){throw'Redirection to "Register user" page not supported in standard OIDC mode'},userinfo:function(){if(!O.userinfo_endpoint)throw"Not supported by the OIDC server";return O.userinfo_endpoint}}:e.endpoints={authorize:function(){return w()+"/protocol/openid-connect/auth"},token:function(){return w()+"/protocol/openid-connect/token"},logout:function(){return w()+"/protocol/openid-connect/logout"},checkSessionIframe:function(){var $=w()+"/protocol/openid-connect/login-status-iframe.html";return e.iframeVersion&&($=$+"?version="+e.iframeVersion),$},thirdPartyCookiesIframe:function(){var $=w()+"/protocol/openid-connect/3p-cookies/step1.html";return e.iframeVersion&&($=$+"?version="+e.iframeVersion),$},register:function(){return w()+"/protocol/openid-connect/registrations"},userinfo:function(){return w()+"/protocol/openid-connect/userinfo"}}}if(S){var k=new XMLHttpRequest;k.open("GET",S,!0),k.setRequestHeader("Accept","application/json"),k.onreadystatechange=function(){if(k.readyState==4)if(k.status==200||j(k)){var O=JSON.parse(k.responseText);e.authServerUrl=O["auth-server-url"],e.realm=O.realm,e.clientId=O.resource,P(null),h.setSuccess()}else h.setError()},k.send()}else{if(!t.clientId)throw"clientId missing";e.clientId=t.clientId;var L=t.oidcProvider;if(L)if(typeof L=="string"){var D;L.charAt(L.length-1)=="/"?D=L+".well-known/openid-configuration":D=L+"/.well-known/openid-configuration";var k=new XMLHttpRequest;k.open("GET",D,!0),k.setRequestHeader("Accept","application/json"),k.onreadystatechange=function(){if(k.readyState==4)if(k.status==200||j(k)){var $=JSON.parse(k.responseText);P($),h.setSuccess()}else h.setError()},k.send()}else P(L),h.setSuccess();else{if(!t.url){for(var E=document.getElementsByTagName("script"),I=0;I<E.length;I++)if(E[I].src.match(/.*keycloak\.js/)){t.url=E[I].src.substr(0,E[I].src.indexOf("/js/keycloak.js"));break}}if(!t.realm)throw"realm missing";e.authServerUrl=t.url,e.realm=t.realm,P(null),h.setSuccess()}}return h.promise}function j(f){return f.status==0&&f.responseText&&f.responseURL.startsWith("file:")}function X(f,h,S,P){if(e.tokenTimeoutHandle&&(clearTimeout(e.tokenTimeoutHandle),e.tokenTimeoutHandle=null),h?(e.refreshToken=h,e.refreshTokenParsed=pr(h)):(delete e.refreshToken,delete e.refreshTokenParsed),S?(e.idToken=S,e.idTokenParsed=pr(S)):(delete e.idToken,delete e.idTokenParsed),f){if(e.token=f,e.tokenParsed=pr(f),e.sessionId=e.tokenParsed.sid,e.authenticated=!0,e.subject=e.tokenParsed.sub,e.realmAccess=e.tokenParsed.realm_access,e.resourceAccess=e.tokenParsed.resource_access,P&&(e.timeSkew=Math.floor(P/1e3)-e.tokenParsed.iat),e.timeSkew!=null&&(u("[KEYCLOAK] Estimated time difference between browser and server is "+e.timeSkew+" seconds"),e.onTokenExpired)){var k=(e.tokenParsed.exp-new Date().getTime()/1e3+e.timeSkew)*1e3;u("[KEYCLOAK] Token expires in "+Math.round(k/1e3)+" s"),k<=0?e.onTokenExpired():e.tokenTimeoutHandle=setTimeout(e.onTokenExpired,k)}}else delete e.token,delete e.tokenParsed,delete e.subject,delete e.realmAccess,delete e.resourceAccess,e.authenticated=!1}function ne(){var f="0123456789abcdef",h=_(36,f).split("");h[14]="4",h[19]=f.substr(h[19]&3|8,1),h[8]=h[13]=h[18]=h[23]="-";var S=h.join("");return S}function J(f){var h=pe(f);if(h){var S=o.get(h.state);return S&&(h.valid=!0,h.redirectUri=S.redirectUri,h.storedNonce=S.nonce,h.prompt=S.prompt,h.pkceCodeVerifier=S.pkceCodeVerifier,h.loginOptions=S.loginOptions),h}}function pe(f){var h;switch(e.flow){case"standard":h=["code","state","session_state","kc_action_status","iss"];break;case"implicit":h=["access_token","token_type","id_token","state","session_state","expires_in","kc_action_status","iss"];break;case"hybrid":h=["access_token","token_type","id_token","code","state","session_state","expires_in","kc_action_status","iss"];break}h.push("error"),h.push("error_description"),h.push("error_uri");var S=f.indexOf("?"),P=f.indexOf("#"),k,L;if(e.responseMode==="query"&&S!==-1?(k=f.substring(0,S),L=se(f.substring(S+1,P!==-1?P:f.length),h),L.paramsString!==""&&(k+="?"+L.paramsString),P!==-1&&(k+=f.substring(P))):e.responseMode==="fragment"&&P!==-1&&(k=f.substring(0,P),L=se(f.substring(P+1),h),L.paramsString!==""&&(k+="#"+L.paramsString)),L&&L.oauthParams){if(e.flow==="standard"||e.flow==="hybrid"){if((L.oauthParams.code||L.oauthParams.error)&&L.oauthParams.state)return L.oauthParams.newUrl=k,L.oauthParams}else if(e.flow==="implicit"&&(L.oauthParams.access_token||L.oauthParams.error)&&L.oauthParams.state)return L.oauthParams.newUrl=k,L.oauthParams}}function se(f,h){for(var S=f.split("&"),P={paramsString:"",oauthParams:{}},k=0;k<S.length;k++){var L=S[k].indexOf("="),E=S[k].slice(0,L);h.indexOf(E)!==-1?P.oauthParams[E]=S[k].slice(L+1):(P.paramsString!==""&&(P.paramsString+="&"),P.paramsString+=S[k])}return P}function U(){var f={setSuccess:function(h){f.resolve(h)},setError:function(h){f.reject(h)}};return f.promise=new Promise(function(h,S){f.resolve=h,f.reject=S}),f}function Te(f,h,S){var P=null,k=new Promise(function(L,E){P=setTimeout(function(){E({error:S})},h)});return Promise.race([f,k]).finally(function(){clearTimeout(P)})}function ve(){var f=U();if(!s.enable||s.iframe)return f.setSuccess(),f.promise;var h=document.createElement("iframe");s.iframe=h,h.onload=function(){var k=e.endpoints.authorize();k.charAt(0)==="/"?s.iframeOrigin=B():s.iframeOrigin=k.substring(0,k.indexOf("/",8)),f.setSuccess()};var S=e.endpoints.checkSessionIframe();h.setAttribute("src",S),h.setAttribute("sandbox","allow-storage-access-by-user-activation allow-scripts allow-same-origin"),h.setAttribute("title","keycloak-session-iframe"),h.style.display="none",document.body.appendChild(h);var P=function(k){if(!(k.origin!==s.iframeOrigin||s.iframe.contentWindow!==k.source)&&(k.data=="unchanged"||k.data=="changed"||k.data=="error")){k.data!="unchanged"&&e.clearToken();for(var L=s.callbackList.splice(0,s.callbackList.length),E=L.length-1;E>=0;--E){var I=L[E];k.data=="error"?I.setError():I.setSuccess(k.data=="unchanged")}}};return window.addEventListener("message",P,!1),f.promise}function De(){s.enable&&e.token&&setTimeout(function(){Me().then(function(f){f&&De()})},s.interval*1e3)}function Me(){var f=U();if(s.iframe&&s.iframeOrigin){var h=e.clientId+" "+(e.sessionId?e.sessionId:"");s.callbackList.push(f);var S=s.iframeOrigin;s.callbackList.length==1&&s.iframe.contentWindow.postMessage(h,S)}else f.setSuccess();return f.promise}function ot(){var f=U();if(s.enable||e.silentCheckSsoRedirectUri){var h=document.createElement("iframe");h.setAttribute("src",e.endpoints.thirdPartyCookiesIframe()),h.setAttribute("sandbox","allow-storage-access-by-user-activation allow-scripts allow-same-origin"),h.setAttribute("title","keycloak-3p-check-iframe"),h.style.display="none",document.body.appendChild(h);var S=function(P){h.contentWindow===P.source&&(P.data!=="supported"&&P.data!=="unsupported"||(P.data==="unsupported"&&(d(`[KEYCLOAK] Your browser is blocking access to 3rd-party cookies, this means:
66
66
 
67
67
  - It is not possible to retrieve tokens without redirecting to the Keycloak server (a.k.a. no support for silent authentication).
68
68
  - It is not possible to automatically detect changes to the session status (such as the user logging out in another tab).
69
69
 
70
- For more information see: https://www.keycloak.org/docs/latest/securing_apps/#_modern_browsers`),s.enable=!1,e.silentCheckSsoFallback&&(e.silentCheckSsoRedirectUri=!1)),document.body.removeChild(h),window.removeEventListener("message",S),f.setSuccess()))};window.addEventListener("message",S,!1)}else f.setSuccess();return Te(f.promise,e.messageReceiveTimeout,"Timeout when waiting for 3rd party check iframe message.")}function Xe(f){if(!f||f=="default")return{login:function(E){return window.location.assign(e.createLoginUrl(E)),U().promise},logout:async function(E){if(((E==null?void 0:E.logoutMethod)??e.logoutMethod)==="GET"){window.location.replace(e.createLogoutUrl(E));return}const D=e.createLogoutUrl(E),O=await fetch(D,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:new URLSearchParams({id_token_hint:e.idToken,client_id:e.clientId,post_logout_redirect_uri:n.redirectUri(E,!1)})});if(O.redirected){window.location.href=O.url;return}if(O.ok){window.location.reload();return}throw new Error("Logout failed, request returned an error code.")},register:function(E){return window.location.assign(e.createRegisterUrl(E)),U().promise},accountManagement:function(){var E=e.createAccountUrl();if(typeof E<"u")window.location.href=E;else throw"Not supported by the OIDC server";return U().promise},redirectUri:function(E,I){return E&&E.redirectUri?E.redirectUri:e.redirectUri?e.redirectUri:location.href}};if(f=="cordova"){s.enable=!1;var h=function(E,I,D){return window.cordova&&window.cordova.InAppBrowser?window.cordova.InAppBrowser.open(E,I,D):window.open(E,I,D)},S=function(E){return E&&E.cordovaOptions?Object.keys(E.cordovaOptions).reduce(function(I,D){return I[D]=E.cordovaOptions[D],I},{}):{}},P=function(E){return Object.keys(E).reduce(function(I,D){return I.push(D+"="+E[D]),I},[]).join(",")},k=function(E){var I=S(E);return I.location="no",E&&E.prompt=="none"&&(I.hidden="yes"),P(I)},L=function(){return e.redirectUri||"http://localhost"};return{login:function(E){var I=U(),D=k(E),O=e.createLoginUrl(E),$=h(O,"_blank",D),Z=!1,oe=!1,he=function(){oe=!0,$.close()};return $.addEventListener("loadstart",function(ae){if(ae.url.indexOf(L())==0){var Re=J(ae.url);C(Re,I),he(),Z=!0}}),$.addEventListener("loaderror",function(ae){if(!Z)if(ae.url.indexOf(L())==0){var Re=J(ae.url);C(Re,I),he(),Z=!0}else I.setError(),he()}),$.addEventListener("exit",function(ae){oe||I.setError({reason:"closed_by_user"})}),I.promise},logout:function(E){var I=U(),D=e.createLogoutUrl(E),O=h(D,"_blank","location=no,hidden=yes,clearcache=yes"),$;return O.addEventListener("loadstart",function(Z){Z.url.indexOf(L())==0&&O.close()}),O.addEventListener("loaderror",function(Z){Z.url.indexOf(L())==0||($=!0),O.close()}),O.addEventListener("exit",function(Z){$?I.setError():(e.clearToken(),I.setSuccess())}),I.promise},register:function(E){var I=U(),D=e.createRegisterUrl(),O=k(E),$=h(D,"_blank",O);return $.addEventListener("loadstart",function(Z){if(Z.url.indexOf(L())==0){$.close();var oe=J(Z.url);C(oe,I)}}),I.promise},accountManagement:function(){var E=e.createAccountUrl();if(typeof E<"u"){var I=h(E,"_blank","location=no");I.addEventListener("loadstart",function(D){D.url.indexOf(L())==0&&I.close()})}else throw"Not supported by the OIDC server"},redirectUri:function(E){return L()}}}if(f=="cordova-native")return s.enable=!1,{login:function(E){var I=U(),D=e.createLoginUrl(E);return universalLinks.subscribe("keycloak",function(O){universalLinks.unsubscribe("keycloak"),window.cordova.plugins.browsertab.close();var $=J(O.url);C($,I)}),window.cordova.plugins.browsertab.openUrl(D),I.promise},logout:function(E){var I=U(),D=e.createLogoutUrl(E);return universalLinks.subscribe("keycloak",function(O){universalLinks.unsubscribe("keycloak"),window.cordova.plugins.browsertab.close(),e.clearToken(),I.setSuccess()}),window.cordova.plugins.browsertab.openUrl(D),I.promise},register:function(E){var I=U(),D=e.createRegisterUrl(E);return universalLinks.subscribe("keycloak",function(O){universalLinks.unsubscribe("keycloak"),window.cordova.plugins.browsertab.close();var $=J(O.url);C($,I)}),window.cordova.plugins.browsertab.openUrl(D),I.promise},accountManagement:function(){var E=e.createAccountUrl();if(typeof E<"u")window.cordova.plugins.browsertab.openUrl(E);else throw"Not supported by the OIDC server"},redirectUri:function(E){return E&&E.redirectUri?E.redirectUri:e.redirectUri?e.redirectUri:"http://localhost"}};throw"invalid adapter type: "+f}var Ue=function(){if(!(this instanceof Ue))return new Ue;localStorage.setItem("kc-test","test"),localStorage.removeItem("kc-test");var f=this;function h(){for(var S=new Date().getTime(),P=0;P<localStorage.length;P++){var k=localStorage.key(P);if(k&&k.indexOf("kc-callback-")==0){var L=localStorage.getItem(k);if(L)try{var E=JSON.parse(L).expires;(!E||E<S)&&localStorage.removeItem(k)}catch{localStorage.removeItem(k)}}}}f.get=function(S){if(S){var P="kc-callback-"+S,k=localStorage.getItem(P);return k&&(localStorage.removeItem(P),k=JSON.parse(k)),h(),k}},f.add=function(S){h();var P="kc-callback-"+S.state;S.expires=new Date().getTime()+60*60*1e3,localStorage.setItem(P,JSON.stringify(S))}},Ge=function(){if(!(this instanceof Ge))return new Ge;var f=this;f.get=function(k){if(k){var L=S("kc-callback-"+k);if(P("kc-callback-"+k,"",h(-100)),L)return JSON.parse(L)}},f.add=function(k){P("kc-callback-"+k.state,JSON.stringify(k),h(60))},f.removeItem=function(k){P(k,"",h(-100))};var h=function(k){var L=new Date;return L.setTime(L.getTime()+k*60*1e3),L},S=function(k){for(var L=k+"=",E=document.cookie.split(";"),I=0;I<E.length;I++){for(var D=E[I];D.charAt(0)==" ";)D=D.substring(1);if(D.indexOf(L)==0)return D.substring(L.length,D.length)}return""},P=function(k,L,E){var I=k+"="+L+"; expires="+E.toUTCString()+"; ";document.cookie=I}};function te(){try{return new Ue}catch{}return new Ge}function $e(f){return function(){e.enableLogging&&f.apply(console,Array.prototype.slice.call(arguments))}}}function yd(t){const e=String.fromCodePoint(...t);return btoa(e)}async function vd(){const t="silent-check-sso.html",e=await fetch(location.origin+"/"+t,{cache:"no-store"}).then(async n=>n.status===200).catch(()=>!1);return e||console.error(`O arquivo ${t} não foi localizado na raiz do projeto.`),e}let Pi;function bd(t){const e=new to(t),n={Instance:e,isAuthenticated:!1,userinfo:null,InitAsync:async(r={})=>await vd()?await e.init(r).then(async s=>(n.isAuthenticated=s,s)).catch(s=>(console.info("Ocorreu um erro na inicialização. Verifique o console para mais detalhes."),console.error(s),!1)):!1};return Pi=n,n}const no=()=>l.reactive(Pi),wd=t=>bd(t),Sd=["data-cor"],_d={class:"sf-p-4"},kd=l.defineComponent({__name:"HeaderAvatar",emits:["logout"],setup(t,{emit:e}){const n=Ei(),r=no(),o=l.ref("?"),s=e;async function i(){await n.CreateConfirmAsync({text:"Você deseja sair da conta?",confirmLabel:"sair"})&&s("logout")}function a(){var v;const d=(v=r.userinfo)==null?void 0:v.name;let m="?";if(!d)return m;const g=d.split(" ").filter(T=>T.length>0).map(T=>T[0].toUpperCase()),_=Math.min(2,g.length);return m=g.slice(0,_).join(""),m.length>0?m:"?"}const c=l.computed(()=>{const d=o.value[0],m=d==="?"?0:(d.charCodeAt(0)-64)%19;return Math.max(m,0)}),u=l.ref(!1);return l.onMounted(()=>{o.value=a()}),(d,m)=>(l.openBlock(),l.createElementBlock(l.Fragment,null,[l.createElementVNode("div",{id:"sf-header-avatar","data-cor":c.value,onClick:m[0]||(m[0]=g=>u.value=!0)},l.toDisplayString(o.value),9,Sd),l.createVNode(Hs,{visible:u.value,"onUpdate:visible":m[1]||(m[1]=g=>u.value=g),position:"right"},{title:l.withCtx(()=>[l.createTextVNode("Minha conta")]),default:l.withCtx(()=>{var g;return[l.createElementVNode("div",_d,[l.createTextVNode(l.toDisplayString((g=l.unref(r).userinfo)==null?void 0:g.name)+" ",1),l.createVNode(Vs,{color:"error",onClick:i},{default:l.withCtx(()=>[l.createTextVNode("Sair")]),_:1})])]}),_:1},8,["visible"])],64))}}),Cd={},Ed={xmlns:"http://www.w3.org/2000/svg",height:"48",viewBox:"0 -960 960 960",width:"48",class:"sf-svg-icon"},Td=l.createElementVNode("path",{d:"m307.231-83.463-54.999-55.23 343.923-343.922-343.923-343.539 54.999-54.614 398.153 398.153L307.231-83.462Z"},null,-1),Ad=[Td];function Pd(t,e){return l.openBlock(),l.createElementBlock("svg",Ed,Ad)}const Id=Vn(Cd,[["render",Pd]]);class xd{get storedTheme(){return localStorage.getItem("color-scheme")}get IsDark(){return document.documentElement.classList.contains("dark")}Toggle(){this.IsDark?this.EnableLightMode():this.EnableDarkMode()}EnableDarkMode(){document.documentElement.classList.add("dark"),document.documentElement.classList.remove("light"),localStorage.setItem("color-scheme","dark")}EnableLightMode(){document.documentElement.classList.remove("dark"),document.documentElement.classList.add("light"),localStorage.setItem("color-scheme","light")}SetInitialTheme(){if(this.storedTheme==="light")return this.EnableLightMode();if(this.storedTheme==="dark")return this.EnableDarkMode();if(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches)return this.EnableDarkMode();this.EnableLightMode()}ClearStoredTheme(){localStorage.removeItem("color-scheme")}}const St=new xd,Od=l.createStaticVNode('<svg xmlns="http://www.w3.org/2000/svg" width="472.39" height="472.39" viewBox="0 0 472.39 472.39"><g class="toggle-sun"><path d="M403.21,167V69.18H305.38L236.2,0,167,69.18H69.18V167L0,236.2l69.18,69.18v97.83H167l69.18,69.18,69.18-69.18h97.83V305.38l69.18-69.18Zm-167,198.17a129,129,0,1,1,129-129A129,129,0,0,1,236.2,365.19Z"></path></g><g class="toggle-circle"><circle class="cls-1" cx="236.2" cy="236.2" r="103.78"></circle></g></svg>',1),Ld=[Od],$d=l.defineComponent({__name:"ThemeToggle",setup(t){return(e,n)=>(l.openBlock(),l.createElementBlock("button",{id:"sf-theme-toggle",onClick:n[0]||(n[0]=(...r)=>l.unref(St).Toggle&&l.unref(St).Toggle(...r))},Ld))}}),Rd={id:"sf-layout"},Nd=l.createElementVNode("div",{class:"sf-layout-menu-toggler-logo"},null,-1),Bd={class:"title"},Dd={class:"sf-layout-nav-content"},Md=l.createElementVNode("div",{class:"sf-layout-nav-footer"},[l.createElementVNode("div",{class:"sf-layout-nav-footer-logo"})],-1),Ud=l.createElementVNode("section",{id:"sf-layout-page-title"},null,-1),Hd={id:"sf-layout-content"},Vd=l.defineComponent({__name:"Layout",emits:["mounted","logout"],setup(t,{emit:e}){const n=Vr(),r=e;return l.onMounted(()=>{r("mounted")}),(o,s)=>(l.openBlock(),l.createElementBlock("div",Rd,[l.createElementVNode("header",null,[l.createElementVNode("div",{class:l.normalizeClass(["sf-layout-menu-toggler",{invert:l.unref(n).IsVisible}]),onClick:s[0]||(s[0]=i=>l.unref(n).Toggle())},[Nd,l.createVNode(Id)],2),l.createElementVNode("div",Bd,[l.renderSlot(o.$slots,"title")]),l.renderSlot(o.$slots,"action"),l.createVNode(jr,{text:"Tema"},{default:l.withCtx(()=>[l.createVNode($d)]),_:1}),l.createVNode(kd,{onLogout:s[1]||(s[1]=i=>r("logout"))})]),l.createElementVNode("nav",{class:l.normalizeClass({visible:l.unref(n).IsVisible})},[l.createElementVNode("div",Dd,[l.renderSlot(o.$slots,"menu")]),Md],2),l.createElementVNode("main",{class:l.normalizeClass({"menu-visible":l.unref(n).IsVisible})},[Ud,l.createElementVNode("section",Hd,[l.renderSlot(o.$slots,"content")])],2)]))}}),jd=l.defineComponent({__name:"ScrollToTop",setup(t){const e=l.ref(!1),n=`--${+new Date}`;let r=null;function o(){r==null||r.scrollTo(0,0)}return l.onMounted(()=>{var s;r=((s=document.getElementById(n))==null?void 0:s.parentElement)??null,r&&r.addEventListener("scroll",function(){e.value=this.scrollTop-this.clientHeight>0})}),(s,i)=>(l.openBlock(),l.createElementBlock("button",{id:n,class:l.normalizeClass(["sf-scrollToTop",{"sf-scrollToTop-visible":e.value}]),onClick:o},null,2))}}),Fd=l.defineComponent({__name:"Content",props:{class:{},style:{},disableBodyPadding:{type:Boolean},disableHeaderPadding:{type:Boolean},disableFooterPadding:{type:Boolean}},setup(t){const e=t;function n(){return new lt("sf-content").AddClass(e.class,!!e.class).Build()}function r(){return new lt("sf-content-body").AddClass("sf-content-no-padding",e.disableBodyPadding).Build()}function o(){return new lt("sf-content-header").AddClass("sf-content-no-padding",e.disableHeaderPadding).Build()}function s(){return new lt("sf-content-footer").AddClass("sf-content-no-padding",e.disableFooterPadding).Build()}return(i,a)=>(l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(n()),style:l.normalizeStyle(e.style)},[l.createElementVNode("div",{class:l.normalizeClass(o())},[l.renderSlot(i.$slots,"header")],2),l.createElementVNode("div",{class:l.normalizeClass(r())},[l.renderSlot(i.$slots,"default"),l.createVNode(jd)],2),l.createElementVNode("div",{class:l.normalizeClass(s())},[l.renderSlot(i.$slots,"footer")],2)],6))}}),zd={class:"sf-tab-navigation"},Kd=l.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"w-6 h-6"},[l.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15.75 19.5L8.25 12l7.5-7.5"})],-1),Wd=[Kd],qd=["data-active"],Gd=["href","onClick"],Yd=l.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"w-6 h-6"},[l.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M8.25 4.5l7.5 7.5-7.5 7.5"})],-1),Jd=[Yd],Xd=l.defineComponent({__name:"TabNavigation",props:{tabs:{}},setup(t){const e=t,n=l.ref(null),r=new ResizeObserver(c=>{a()}),o=l.ref(!1),s=l.ref(!1);function i(c=!1){const u=n.value.clientWidth;n.value.scrollLeft+=c?-u:u}function a(){const c=n.value.scrollWidth-n.value.clientWidth;o.value=n.value.scrollLeft>10,s.value=n.value.scrollLeft<c-10}return l.onMounted(()=>{n.value.addEventListener("scroll",a),r.observe(n.value)}),l.onBeforeUnmount(()=>{var c;try{(c=n.value)==null||c.removeEventListener("scroll",a),r.unobserve(n.value),r.disconnect()}catch{}}),(c,u)=>{const d=l.resolveComponent("RouterLink");return l.openBlock(),l.createElementBlock("div",zd,[l.createElementVNode("div",{class:l.normalizeClass(["left-arrow",{active:o.value}]),onClick:u[0]||(u[0]=m=>i(!0))},Wd,2),l.createElementVNode("ul",{ref_key:"trackerContainer",ref:n},[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.tabs,m=>(l.openBlock(),l.createBlock(d,{to:m.route,custom:!0},{default:l.withCtx(({navigate:g,isActive:_})=>[l.createElementVNode("li",{"data-active":_},[l.renderSlot(c.$slots,"item",{item:m,navigate:g,isActive:_},()=>[l.createElementVNode("a",{href:m.route,class:l.normalizeClass({active:_}),onClick:g},l.toDisplayString(m.text),11,Gd)])],8,qd)]),_:2},1032,["to"]))),256))],512),l.createElementVNode("div",{class:l.normalizeClass(["right-arrow",{active:s.value}]),onClick:u[1]||(u[1]=m=>i())},Jd,2)])}}}),Zd=["data-icon"],Qd=l.defineComponent({__name:"Message",props:{color:{default:"info"},class:{},style:{},icon:{}},setup(t){const e=t,n=l.computed(()=>{if(e.icon)return e.icon;switch(e.color){case"error":return"cancel";case"info":return"info";case"warn":return"warning";case"success":return"check";case"help":return"help";default:return null}}),r=l.computed(()=>new lt("sf-message").AddClass("sf-message-error",e.color==="error").AddClass("sf-message-info",e.color==="info").AddClass("sf-message-warning",e.color==="warn").AddClass("sf-message-success",e.color==="success").AddClass("sf-message-help",e.color==="help").AddClass("sf-message-primary",e.color==="primary").AddClass("sf-message-secondary",e.color==="secondary").AddClass(e.class).Build());return(o,s)=>(l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(r.value),"data-icon":n.value},[l.renderSlot(o.$slots,"default")],10,Zd))}});function ef(t,e){return t?t.classList?t.classList.contains(e):new RegExp("(^| )"+e+"( |$)","gi").test(t.className):!1}function tf(t,e){if(t&&e){const n=r=>{ef(t,r)||(t.classList?t.classList.add(r):t.className+=" "+r)};[e].flat().filter(Boolean).forEach(r=>r.split(" ").forEach(n))}}function hr(t,e){if(t&&e){const n=r=>{t.classList?t.classList.remove(r):t.className=t.className.replace(new RegExp("(^|\\b)"+r.split(" ").join("|")+"(\\b|$)","gi")," ")};[e].flat().filter(Boolean).forEach(r=>r.split(" ").forEach(n))}}function nf(t,e){return t instanceof HTMLElement?t.offsetWidth:0}function qn(t){return typeof HTMLElement=="object"?t instanceof HTMLElement:t&&typeof t=="object"&&t!==null&&t.nodeType===1&&typeof t.nodeName=="string"}function Nn(t,e={}){if(qn(t)){const n=(r,o)=>{var s,i;const a=(s=t==null?void 0:t.$attrs)!=null&&s[r]?[(i=t==null?void 0:t.$attrs)==null?void 0:i[r]]:[];return[o].flat().reduce((c,u)=>{if(u!=null){const d=typeof u;if(d==="string"||d==="number")c.push(u);else if(d==="object"){const m=Array.isArray(u)?n(r,u):Object.entries(u).map(([g,_])=>r==="style"&&(_||_===0)?`${g.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}:${_}`:_?g:void 0);c=m.length?c.concat(m.filter(g=>!!g)):c}}return c},a)};Object.entries(e).forEach(([r,o])=>{if(o!=null){const s=r.match(/^on(.+)/);s?t.addEventListener(s[1].toLowerCase(),o):r==="p-bind"?Nn(t,o):(o=r==="class"?[...new Set(n("class",o))].join(" ").trim():r==="style"?n("style",o).join(";").trim():o,(t.$attrs=t.$attrs||{})&&(t.$attrs[r]=o),t.setAttribute(r,o))}})}}function rf(t,e={},...n){{const r=document.createElement(t);return Nn(r,e),r.append(...n),r}}function je(t,e){return qn(t)?t.matches(e)?t:t.querySelector(e):null}function Gt(t,e){t&&document.activeElement!==t&&t.focus(e)}function Yt(t,e){if(qn(t)){const n=t.getAttribute(e);return isNaN(n)?n==="true"||n==="false"?n==="true":n:+n}}function ts(t){if(t){let e=t.offsetHeight,n=getComputedStyle(t);return e-=parseFloat(n.paddingTop)+parseFloat(n.paddingBottom)+parseFloat(n.borderTopWidth)+parseFloat(n.borderBottomWidth),e}return 0}function of(t){if(t){let e=t.parentNode;return e&&e instanceof ShadowRoot&&e.host&&(e=e.host),e}return null}function sf(t){if(t){let e=t.getBoundingClientRect();return{top:e.top+(window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0),left:e.left+(window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0)}}return{top:"auto",left:"auto"}}function af(t,e){return t?t.offsetHeight:0}function lf(t){return!!(t!==null&&typeof t<"u"&&t.nodeName&&of(t))}function ns(t){if(t){let e=t.offsetWidth,n=getComputedStyle(t);return e-=parseFloat(n.paddingLeft)+parseFloat(n.paddingRight)+parseFloat(n.borderLeftWidth)+parseFloat(n.borderRightWidth),e}return 0}function cf(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function uf(t,e="",n){qn(t)&&n!==null&&n!==void 0&&t.setAttribute(e,n)}function Ii(){const t=new Map;return{on(e,n){let r=t.get(e);return r?r.push(n):r=[n],t.set(e,r),this},off(e,n){let r=t.get(e);return r&&r.splice(r.indexOf(n)>>>0,1),this},emit(e,n){let r=t.get(e);r&&r.slice().map(o=>{o(n)})},clear(){t.clear()}}}function yt(t){return t==null||t===""||Array.isArray(t)&&t.length===0||!(t instanceof Date)&&typeof t=="object"&&Object.keys(t).length===0}function xr(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){var n=Array.isArray(t),r=Array.isArray(e),o,s,i;if(n&&r){if(s=t.length,s!=e.length)return!1;for(o=s;o--!==0;)if(!xr(t[o],e[o]))return!1;return!0}if(n!=r)return!1;var a=t instanceof Date,c=e instanceof Date;if(a!=c)return!1;if(a&&c)return t.getTime()==e.getTime();var u=t instanceof RegExp,d=e instanceof RegExp;if(u!=d)return!1;if(u&&d)return t.toString()==e.toString();var m=Object.keys(t);if(s=m.length,s!==Object.keys(e).length)return!1;for(o=s;o--!==0;)if(!Object.prototype.hasOwnProperty.call(e,m[o]))return!1;for(o=s;o--!==0;)if(i=m[o],!xr(t[i],e[i]))return!1;return!0}return t!==t&&e!==e}function ro(t){return!!(t&&t.constructor&&t.call&&t.apply)}function G(t){return!yt(t)}function Pt(t,e,n){return xr(t,e)}function rs(t,e){let n;if(G(t))try{n=t.findLast(e)}catch{n=[...t].reverse().find(e)}return n}function dt(t,e=!0){return t instanceof Object&&t.constructor===Object&&(e||Object.keys(t).length!==0)}function Ie(t,...e){return ro(t)?t(...e):t}function ke(t,e=!0){return typeof t=="string"&&(e||t!=="")}function Fe(t){return ke(t)?t.replace(/(-|_)/g,"").toLowerCase():t}function oo(t,e="",n={}){const r=Fe(e).split("."),o=r.shift();return o?dt(t)?oo(Ie(t[Object.keys(t).find(s=>Fe(s)===o)||""],n),r.join("."),n):void 0:Ie(t,n)}function so(t,e=!0){return Array.isArray(t)&&(e||t.length!==0)}function xi(t){return G(t)&&!isNaN(t)}function df(t=""){return G(t)&&t.length===1&&!!t.match(/\S| /)}function tt(t,e){if(e){const n=e.test(t);return e.lastIndex=0,n}return!1}function Qt(t){return t&&t.replace(/\/\*(?:(?!\*\/)[\s\S])*\*\/|[\r\n\t]+/g,"").replace(/ {2,}/g," ").replace(/ ([{:}]) /g,"$1").replace(/([;,]) /g,"$1").replace(/ !/g,"!").replace(/: /g,":")}function ff(t){return ke(t,!1)?t[0].toUpperCase()+t.slice(1):t}function Oi(t){return ke(t)?t.replace(/(_)/g,"-").replace(/[A-Z]/g,(e,n)=>n===0?e:"-"+e.toLowerCase()).toLowerCase():t}function os(t){return ke(t)?t.replace(/[A-Z]/g,(e,n)=>n===0?e:"."+e.toLowerCase()).toLowerCase():t}var Tn={};function mf(t="pui_id_"){return Tn.hasOwnProperty(t)||(Tn[t]=0),Tn[t]++,`${t}${Tn[t]}`}function Bn(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"pv_id_";return mf(t)}var pf=Object.defineProperty,hf=Object.defineProperties,gf=Object.getOwnPropertyDescriptors,Dn=Object.getOwnPropertySymbols,Li=Object.prototype.hasOwnProperty,$i=Object.prototype.propertyIsEnumerable,ss=(t,e,n)=>e in t?pf(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,zt=(t,e)=>{for(var n in e||(e={}))Li.call(e,n)&&ss(t,n,e[n]);if(Dn)for(var n of Dn(e))$i.call(e,n)&&ss(t,n,e[n]);return t},gr=(t,e)=>hf(t,gf(e)),Kt=(t,e)=>{var n={};for(var r in t)Li.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&Dn)for(var r of Dn(t))e.indexOf(r)<0&&$i.call(t,r)&&(n[r]=t[r]);return n},yf=Ii(),et=yf;function is(t,e){so(t)?t.push(...e||[]):dt(t)&&Object.assign(t,e)}function vf(t){return dt(t)&&t.hasOwnProperty("value")&&t.hasOwnProperty("type")?t.value:t}function as(t,e=""){return["opacity","z-index","line-height","font-weight","flex","flex-grow","flex-shrink","order"].some(r=>e.endsWith(r))?t:`${t}`.trim().split(" ").map(s=>xi(s)?`${s}px`:s).join(" ")}function bf(t){return t.replaceAll(/ /g,"").replace(/[^\w]/g,"-")}function Or(t="",e=""){return bf(`${ke(t,!1)&&ke(e,!1)?`${t}-`:t}${e}`)}function Ri(t="",e=""){return`--${Or(t,e)}`}function Ni(t,e="",n="",r=[],o){if(ke(t)){const s=/{([^}]*)}/g,i=t.trim();if(tt(i,s)){const a=i.replaceAll(s,d=>{const g=d.replace(/{|}/g,"").split(".").filter(_=>!r.some(v=>tt(_,v)));return`var(${Ri(n,Oi(g.join("-")))}${G(o)?`, ${o}`:""})`}),c=/(\d+\s+[\+\-\*\/]\s+\d+)/g,u=/var\([^)]+\)/g;return tt(a.replace(u,"0"),c)?`calc(${a})`:a}return as(i,e)}else if(xi(t))return as(t,e)}function wf(t,e,n){ke(e,!1)&&t.push(`${e}:${n};`)}function Jt(t,e){return t?`${t}{${e}}`:""}var yr=(...t)=>Sf(ee.getTheme(),...t),Sf=(t={},e,n,r="variable")=>{if(e){const{variable:o,options:s}=ee.defaults||{},{prefix:i,transform:a}=(t==null?void 0:t.options)||s||{},u=tt(e,/{([^}]*)}/g)?e:`{${e}}`;return r==="value"||a==="strict"?ee.getTokenValue(e):Ni(u,void 0,i,[o.excludedKeyRegex],n)}return""};function _f(t,e={}){const n=ee.defaults.variable,{prefix:r=n.prefix,selector:o=n.selector,excludedKeyRegex:s=n.excludedKeyRegex}=e,i=(u,d="")=>Object.entries(u).reduce((m,[g,_])=>{const v=tt(g,s)?Or(d):Or(d,Oi(g)),T=vf(_);if(dt(T)){const{variables:w,tokens:B}=i(T,v);is(m.tokens,B),is(m.variables,w)}else m.tokens.push((r?v.replace(`${r}-`,""):v).replaceAll("-",".")),wf(m.variables,Ri(v),Ni(T,v,r,[s]));return m},{variables:[],tokens:[]}),{variables:a,tokens:c}=i(t,r);return{value:a,tokens:c,declarations:a.join(""),css:Jt(o,a.join(""))}}var He={regex:{rules:{class:{pattern:/^\.([a-zA-Z][\w-]*)$/,resolve(t){return{type:"class",selector:t,matched:this.pattern.test(t.trim())}}},attr:{pattern:/^\[(.*)\]$/,resolve(t){return{type:"attr",selector:`:root${t}`,matched:this.pattern.test(t.trim())}}},media:{pattern:/^@media (.*)$/,resolve(t){return{type:"media",selector:`${t}{:root{[CSS]}}`,matched:this.pattern.test(t.trim())}}},system:{pattern:/^system$/,resolve(t){return{type:"system",selector:"@media (prefers-color-scheme: dark){:root{[CSS]}}",matched:this.pattern.test(t.trim())}}},custom:{resolve(t){return{type:"custom",selector:t,matched:!0}}}},resolve(t){const e=Object.keys(this.rules).filter(n=>n!=="custom").map(n=>this.rules[n]);return[t].flat().map(n=>{var r;return(r=e.map(o=>o.resolve(n)).find(o=>o.matched))!=null?r:this.rules.custom.resolve(n)})}},_toVariables(t,e){return _f(t,{prefix:e==null?void 0:e.prefix})},getCommon({name:t="",theme:e={},params:n,set:r,defaults:o}){var s,i,a,c;const{preset:u,options:d}=e;let m,g,_,v;if(G(u)){const{primitive:T,semantic:w}=u,B=w||{},{colorScheme:C}=B,A=Kt(B,["colorScheme"]),j=C||{},{dark:X}=j,ne=Kt(j,["dark"]),J=G(T)?this._toVariables({primitive:T},d):{},pe=G(A)?this._toVariables({semantic:A},d):{},se=G(ne)?this._toVariables({light:ne},d):{},U=G(X)?this._toVariables({dark:X},d):{},[Te,ve]=[(s=J.declarations)!=null?s:"",J.tokens],[De,Me]=[(i=pe.declarations)!=null?i:"",pe.tokens||[]],[rt,Xe]=[(a=se.declarations)!=null?a:"",se.tokens||[]],[Ue,Ge]=[(c=U.declarations)!=null?c:"",U.tokens||[]];m=this.transformCSS(t,Te,"light","variable",d,r,o),g=ve;const te=this.transformCSS(t,`${De}${rt}color-scheme:light`,"light","variable",d,r,o),$e=this.transformCSS(t,`${Ue}color-scheme:dark`,"dark","variable",d,r,o);_=`${te}${$e}`,v=[...new Set([...Me,...Xe,...Ge])]}return{primitive:{css:m,tokens:g},semantic:{css:_,tokens:v}}},getPreset({name:t="",preset:e={},options:n,params:r,set:o,defaults:s,selector:i}){var a,c,u;const d=t.replace("-directive",""),m=e,{colorScheme:g}=m,_=Kt(m,["colorScheme"]),v=g||{},{dark:T}=v,w=Kt(v,["dark"]),B=G(_)?this._toVariables({[d]:_},n):{},C=G(w)?this._toVariables({[d]:w},n):{},A=G(T)?this._toVariables({[d]:T},n):{},[j,X]=[(a=B.declarations)!=null?a:"",B.tokens||[]],[ne,J]=[(c=C.declarations)!=null?c:"",C.tokens||[]],[pe,se]=[(u=A.declarations)!=null?u:"",A.tokens||[]],U=[...new Set([...X,...J,...se])],Te=this.transformCSS(d,`${j}${ne}`,"light","variable",n,o,s,i),ve=this.transformCSS(d,pe,"dark","variable",n,o,s,i);return{css:`${Te}${ve}`,tokens:U}},getPresetC({name:t="",theme:e={},params:n,set:r,defaults:o}){var s;const{preset:i,options:a}=e,c=(s=i==null?void 0:i.components)==null?void 0:s[t];return this.getPreset({name:t,preset:c,options:a,params:n,set:r,defaults:o})},getPresetD({name:t="",theme:e={},params:n,set:r,defaults:o}){var s;const i=t.replace("-directive",""),{preset:a,options:c}=e,u=(s=a==null?void 0:a.directives)==null?void 0:s[i];return this.getPreset({name:i,preset:u,options:c,params:n,set:r,defaults:o})},getColorSchemeOption(t,e){var n;return this.regex.resolve((n=t.darkModeSelector)!=null?n:e.options.darkModeSelector)},getLayerOrder(t,e={},n,r){const{cssLayer:o}=e;return o?`@layer ${Ie(o.order||"primeui",n)}`:""},getCommonStyleSheet({name:t="",theme:e={},params:n,props:r={},set:o,defaults:s}){const i=this.getCommon({name:t,theme:e,params:n,set:o,defaults:s}),a=Object.entries(r).reduce((c,[u,d])=>c.push(`${u}="${d}"`)&&c,[]).join(" ");return Object.entries(i||{}).reduce((c,[u,d])=>{if(d!=null&&d.css){const m=Qt(d==null?void 0:d.css),g=`${u}-variables`;c.push(`<style type="text/css" data-primevue-style-id="${g}" ${a}>${m}</style>`)}return c},[]).join("")},getStyleSheet({name:t="",theme:e={},params:n,props:r={},set:o,defaults:s}){var i;const a={name:t,theme:e,params:n,set:o,defaults:s},c=(i=t.includes("-directive")?this.getPresetD(a):this.getPresetC(a))==null?void 0:i.css,u=Object.entries(r).reduce((d,[m,g])=>d.push(`${m}="${g}"`)&&d,[]).join(" ");return c?`<style type="text/css" data-primevue-style-id="${t}-variables" ${u}>${Qt(c)}</style>`:""},createTokens(t={},e,n="",r="",o={}){return Object.entries(t).forEach(([s,i])=>{const a=tt(s,e.variable.excludedKeyRegex)?n:n?`${n}.${os(s)}`:os(s),c=r?`${r}.${s}`:s;dt(i)?this.createTokens(i,e,a,c,o):(o[a]||(o[a]={paths:[],computed(u,d={}){if(u){const m=this.paths.find(g=>g.scheme===u)||this.paths.find(g=>g.scheme==="none");return m==null?void 0:m.computed(u,d.binding)}return this.paths.map(m=>m.computed(m.scheme,d[m.scheme]))}}),o[a].paths.push({path:c,value:i,scheme:c.includes("colorScheme.light")?"light":c.includes("colorScheme.dark")?"dark":"none",computed(u,d={}){const m=/{([^}]*)}/g;let g=i;if(d.name=this.path,d.binding||(d.binding={}),tt(i,m)){const v=i.trim().replaceAll(m,B=>{var C,A;const j=B.replace(/{|}/g,"");return(A=(C=o[j])==null?void 0:C.computed(u,d))==null?void 0:A.value}),T=/(\d+\w*\s+[\+\-\*\/]\s+\d+\w*)/g,w=/var\([^)]+\)/g;g=tt(v.replace(w,"0"),T)?`calc(${v})`:v}return yt(d.binding)&&delete d.binding,{colorScheme:u,path:this.path,paths:d,value:g.includes("undefined")?void 0:g}}}))}),o},getTokenValue(t,e,n){var r;const s=(c=>c.split(".").filter(d=>!tt(d.toLowerCase(),n.variable.excludedKeyRegex)).join("."))(e),i=e.includes("colorScheme.light")?"light":e.includes("colorScheme.dark")?"dark":void 0,a=[(r=t[s])==null?void 0:r.computed(i)].flat().filter(c=>c);return a.length===1?a[0].value:a.reduce((c={},u)=>{const d=u,{colorScheme:m}=d,g=Kt(d,["colorScheme"]);return c[m]=g,c},void 0)},transformCSS(t,e,n,r,o={},s,i,a){if(G(e)){const{cssLayer:c}=o;if(r!=="style"){const u=this.getColorSchemeOption(o,i),d=a?Jt(a,e):e;e=n==="dark"?u.reduce((m,{selector:g})=>(G(g)&&(m+=g.includes("[CSS]")?g.replace("[CSS]",d):Jt(g,d)),m),""):Jt(a??":root",e)}if(c){const u={name:"primeui",order:"primeui"};dt(c)&&(u.name=Ie(c.name,{name:t,type:r})),G(u.name)&&(e=Jt(`@layer ${u.name}`,e),s==null||s.layerNames(u.name))}return e}return""}},ee={defaults:{variable:{prefix:"p",selector:":root",excludedKeyRegex:/^(primitive|semantic|components|directives|variables|colorscheme|light|dark|common|root|states)$/gi},options:{prefix:"p",darkModeSelector:"system",cssLayer:!1}},_theme:void 0,_layerNames:new Set,_loadedStyleNames:new Set,_loadingStyles:new Set,_tokens:{},update(t={}){const{theme:e}=t;e&&(this._theme=gr(zt({},e),{options:zt(zt({},this.defaults.options),e.options)}),this._tokens=He.createTokens(this.preset,this.defaults),this.clearLoadedStyleNames())},get theme(){return this._theme},get preset(){var t;return((t=this.theme)==null?void 0:t.preset)||{}},get options(){var t;return((t=this.theme)==null?void 0:t.options)||{}},get tokens(){return this._tokens},getTheme(){return this.theme},setTheme(t){this.update({theme:t}),et.emit("theme:change",t)},getPreset(){return this.preset},setPreset(t){this._theme=gr(zt({},this.theme),{preset:t}),this._tokens=He.createTokens(t,this.defaults),this.clearLoadedStyleNames(),et.emit("preset:change",t),et.emit("theme:change",this.theme)},getOptions(){return this.options},setOptions(t){this._theme=gr(zt({},this.theme),{options:t}),this.clearLoadedStyleNames(),et.emit("options:change",t),et.emit("theme:change",this.theme)},getLayerNames(){return[...this._layerNames]},setLayerNames(t){this._layerNames.add(t)},getLoadedStyleNames(){return this._loadedStyleNames},isStyleNameLoaded(t){return this._loadedStyleNames.has(t)},setLoadedStyleName(t){this._loadedStyleNames.add(t)},deleteLoadedStyleName(t){this._loadedStyleNames.delete(t)},clearLoadedStyleNames(){this._loadedStyleNames.clear()},getTokenValue(t){return He.getTokenValue(this.tokens,t,this.defaults)},getCommon(t="",e){return He.getCommon({name:t,theme:this.theme,params:e,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}})},getComponent(t="",e){const n={name:t,theme:this.theme,params:e,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}};return He.getPresetC(n)},getDirective(t="",e){const n={name:t,theme:this.theme,params:e,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}};return He.getPresetD(n)},getCustomPreset(t="",e,n,r){const o={name:t,preset:e,options:this.options,selector:n,params:r,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}};return He.getPreset(o)},getLayerOrderCSS(t=""){return He.getLayerOrder(t,this.options,{names:this.getLayerNames()},this.defaults)},transformCSS(t="",e,n="style",r){return He.transformCSS(t,e,r,n,this.options,{layerNames:this.setLayerNames.bind(this)},this.defaults)},getCommonStyleSheet(t="",e,n={}){return He.getCommonStyleSheet({name:t,theme:this.theme,params:e,props:n,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}})},getStyleSheet(t,e,n={}){return He.getStyleSheet({name:t,theme:this.theme,params:e,props:n,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}})},onStyleMounted(t){this._loadingStyles.add(t)},onStyleUpdated(t){this._loadingStyles.add(t)},onStyleLoaded(t,{name:e}){this._loadingStyles.size&&(this._loadingStyles.delete(e),et.emit(`theme:${e}:load`,t),!this._loadingStyles.size&&et.emit("theme:load"))}},at={_loadedStyleNames:new Set,getLoadedStyleNames:function(){return this._loadedStyleNames},isStyleNameLoaded:function(e){return this._loadedStyleNames.has(e)},setLoadedStyleName:function(e){this._loadedStyleNames.add(e)},deleteLoadedStyleName:function(e){this._loadedStyleNames.delete(e)},clearLoadedStyleNames:function(){this._loadedStyleNames.clear()}};function nn(t){"@babel/helpers - typeof";return nn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},nn(t)}function ls(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function cs(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?ls(Object(n),!0).forEach(function(r){kf(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ls(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function kf(t,e,n){return(e=Cf(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Cf(t){var e=Ef(t,"string");return nn(e)=="symbol"?e:e+""}function Ef(t,e){if(nn(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(nn(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Tf(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;l.getCurrentInstance()?l.onMounted(t):e?t():l.nextTick(t)}var Af=0;function Pf(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=l.ref(!1),r=l.ref(t),o=l.ref(null),s=cf()?window.document:void 0,i=e.document,a=i===void 0?s:i,c=e.immediate,u=c===void 0?!0:c,d=e.manual,m=d===void 0?!1:d,g=e.name,_=g===void 0?"style_".concat(++Af):g,v=e.id,T=v===void 0?void 0:v,w=e.media,B=w===void 0?void 0:w,C=e.nonce,A=C===void 0?void 0:C,j=e.first,X=j===void 0?!1:j,ne=e.onMounted,J=ne===void 0?void 0:ne,pe=e.onUpdated,se=pe===void 0?void 0:pe,U=e.onLoad,Te=U===void 0?void 0:U,ve=e.props,De=ve===void 0?{}:ve,Me=function(){},rt=function(Ge){var te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(a){var $e=cs(cs({},De),te),f=$e.name||_,h=$e.id||T,S=$e.nonce||A;o.value=a.querySelector('style[data-primevue-style-id="'.concat(f,'"]'))||a.getElementById(h)||a.createElement("style"),o.value.isConnected||(r.value=Ge||t,Nn(o.value,{type:"text/css",id:h,media:B,nonce:S}),X?a.head.prepend(o.value):a.head.appendChild(o.value),uf(o.value,"data-primevue-style-id",f),Nn(o.value,$e),o.value.onload=function(P){return Te==null?void 0:Te(P,{name:f})},J==null||J(f)),!n.value&&(Me=l.watch(r,function(P){o.value.textContent=P,se==null||se(f)},{immediate:!0}),n.value=!0)}},Xe=function(){!a||!n.value||(Me(),lf(o.value)&&a.head.removeChild(o.value),n.value=!1)};return u&&!m&&Tf(rt),{id:T,name:_,el:o,css:r,unload:Xe,load:rt,isLoaded:l.readonly(n)}}function rn(t){"@babel/helpers - typeof";return rn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},rn(t)}function us(t,e){return Lf(t)||Of(t,e)||xf(t,e)||If()}function If(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
70
+ For more information see: https://www.keycloak.org/docs/latest/securing_apps/#_modern_browsers`),s.enable=!1,e.silentCheckSsoFallback&&(e.silentCheckSsoRedirectUri=!1)),document.body.removeChild(h),window.removeEventListener("message",S),f.setSuccess()))};window.addEventListener("message",S,!1)}else f.setSuccess();return Te(f.promise,e.messageReceiveTimeout,"Timeout when waiting for 3rd party check iframe message.")}function Xe(f){if(!f||f=="default")return{login:function(E){return window.location.assign(e.createLoginUrl(E)),U().promise},logout:async function(E){if(((E==null?void 0:E.logoutMethod)??e.logoutMethod)==="GET"){window.location.replace(e.createLogoutUrl(E));return}const D=e.createLogoutUrl(E),O=await fetch(D,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:new URLSearchParams({id_token_hint:e.idToken,client_id:e.clientId,post_logout_redirect_uri:n.redirectUri(E,!1)})});if(O.redirected){window.location.href=O.url;return}if(O.ok){window.location.reload();return}throw new Error("Logout failed, request returned an error code.")},register:function(E){return window.location.assign(e.createRegisterUrl(E)),U().promise},accountManagement:function(){var E=e.createAccountUrl();if(typeof E<"u")window.location.href=E;else throw"Not supported by the OIDC server";return U().promise},redirectUri:function(E,I){return E&&E.redirectUri?E.redirectUri:e.redirectUri?e.redirectUri:location.href}};if(f=="cordova"){s.enable=!1;var h=function(E,I,D){return window.cordova&&window.cordova.InAppBrowser?window.cordova.InAppBrowser.open(E,I,D):window.open(E,I,D)},S=function(E){return E&&E.cordovaOptions?Object.keys(E.cordovaOptions).reduce(function(I,D){return I[D]=E.cordovaOptions[D],I},{}):{}},P=function(E){return Object.keys(E).reduce(function(I,D){return I.push(D+"="+E[D]),I},[]).join(",")},k=function(E){var I=S(E);return I.location="no",E&&E.prompt=="none"&&(I.hidden="yes"),P(I)},L=function(){return e.redirectUri||"http://localhost"};return{login:function(E){var I=U(),D=k(E),O=e.createLoginUrl(E),$=h(O,"_blank",D),Z=!1,oe=!1,he=function(){oe=!0,$.close()};return $.addEventListener("loadstart",function(ae){if(ae.url.indexOf(L())==0){var Re=J(ae.url);C(Re,I),he(),Z=!0}}),$.addEventListener("loaderror",function(ae){if(!Z)if(ae.url.indexOf(L())==0){var Re=J(ae.url);C(Re,I),he(),Z=!0}else I.setError(),he()}),$.addEventListener("exit",function(ae){oe||I.setError({reason:"closed_by_user"})}),I.promise},logout:function(E){var I=U(),D=e.createLogoutUrl(E),O=h(D,"_blank","location=no,hidden=yes,clearcache=yes"),$;return O.addEventListener("loadstart",function(Z){Z.url.indexOf(L())==0&&O.close()}),O.addEventListener("loaderror",function(Z){Z.url.indexOf(L())==0||($=!0),O.close()}),O.addEventListener("exit",function(Z){$?I.setError():(e.clearToken(),I.setSuccess())}),I.promise},register:function(E){var I=U(),D=e.createRegisterUrl(),O=k(E),$=h(D,"_blank",O);return $.addEventListener("loadstart",function(Z){if(Z.url.indexOf(L())==0){$.close();var oe=J(Z.url);C(oe,I)}}),I.promise},accountManagement:function(){var E=e.createAccountUrl();if(typeof E<"u"){var I=h(E,"_blank","location=no");I.addEventListener("loadstart",function(D){D.url.indexOf(L())==0&&I.close()})}else throw"Not supported by the OIDC server"},redirectUri:function(E){return L()}}}if(f=="cordova-native")return s.enable=!1,{login:function(E){var I=U(),D=e.createLoginUrl(E);return universalLinks.subscribe("keycloak",function(O){universalLinks.unsubscribe("keycloak"),window.cordova.plugins.browsertab.close();var $=J(O.url);C($,I)}),window.cordova.plugins.browsertab.openUrl(D),I.promise},logout:function(E){var I=U(),D=e.createLogoutUrl(E);return universalLinks.subscribe("keycloak",function(O){universalLinks.unsubscribe("keycloak"),window.cordova.plugins.browsertab.close(),e.clearToken(),I.setSuccess()}),window.cordova.plugins.browsertab.openUrl(D),I.promise},register:function(E){var I=U(),D=e.createRegisterUrl(E);return universalLinks.subscribe("keycloak",function(O){universalLinks.unsubscribe("keycloak"),window.cordova.plugins.browsertab.close();var $=J(O.url);C($,I)}),window.cordova.plugins.browsertab.openUrl(D),I.promise},accountManagement:function(){var E=e.createAccountUrl();if(typeof E<"u")window.cordova.plugins.browsertab.openUrl(E);else throw"Not supported by the OIDC server"},redirectUri:function(E){return E&&E.redirectUri?E.redirectUri:e.redirectUri?e.redirectUri:"http://localhost"}};throw"invalid adapter type: "+f}var Ue=function(){if(!(this instanceof Ue))return new Ue;localStorage.setItem("kc-test","test"),localStorage.removeItem("kc-test");var f=this;function h(){for(var S=new Date().getTime(),P=0;P<localStorage.length;P++){var k=localStorage.key(P);if(k&&k.indexOf("kc-callback-")==0){var L=localStorage.getItem(k);if(L)try{var E=JSON.parse(L).expires;(!E||E<S)&&localStorage.removeItem(k)}catch{localStorage.removeItem(k)}}}}f.get=function(S){if(S){var P="kc-callback-"+S,k=localStorage.getItem(P);return k&&(localStorage.removeItem(P),k=JSON.parse(k)),h(),k}},f.add=function(S){h();var P="kc-callback-"+S.state;S.expires=new Date().getTime()+60*60*1e3,localStorage.setItem(P,JSON.stringify(S))}},Ge=function(){if(!(this instanceof Ge))return new Ge;var f=this;f.get=function(k){if(k){var L=S("kc-callback-"+k);if(P("kc-callback-"+k,"",h(-100)),L)return JSON.parse(L)}},f.add=function(k){P("kc-callback-"+k.state,JSON.stringify(k),h(60))},f.removeItem=function(k){P(k,"",h(-100))};var h=function(k){var L=new Date;return L.setTime(L.getTime()+k*60*1e3),L},S=function(k){for(var L=k+"=",E=document.cookie.split(";"),I=0;I<E.length;I++){for(var D=E[I];D.charAt(0)==" ";)D=D.substring(1);if(D.indexOf(L)==0)return D.substring(L.length,D.length)}return""},P=function(k,L,E){var I=k+"="+L+"; expires="+E.toUTCString()+"; ";document.cookie=I}};function te(){try{return new Ue}catch{}return new Ge}function $e(f){return function(){e.enableLogging&&f.apply(console,Array.prototype.slice.call(arguments))}}}function yd(t){const e=String.fromCodePoint(...t);return btoa(e)}async function vd(){const t="silent-check-sso.html",e=await fetch(location.origin+"/"+t,{cache:"no-store"}).then(async n=>n.status===200).catch(()=>!1);return e||console.error(`O arquivo ${t} não foi localizado na raiz do projeto.`),e}let Pi;function bd(t){const e=new to(t),n={Instance:e,isAuthenticated:!1,userinfo:null,InitAsync:async(r={})=>await vd()?await e.init(r).then(async s=>(n.isAuthenticated=s,s)).catch(s=>(console.info("Ocorreu um erro na inicialização. Verifique o console para mais detalhes."),console.error(s),!1)):!1};return Pi=n,n}const no=()=>l.reactive(Pi),wd=t=>bd(t),Sd=["data-cor"],_d={class:"sf-p-4"},kd=l.defineComponent({__name:"HeaderAvatar",emits:["logout"],setup(t,{emit:e}){const n=Ei(),r=no(),o=l.ref("?"),s=e;async function i(){await n.CreateConfirmAsync({text:"Você deseja sair da conta?",confirmLabel:"sair"})&&s("logout")}function a(){var v;const d=(v=r.userinfo)==null?void 0:v.name;let m="?";if(!d)return m;const g=d.split(" ").filter(T=>T.length>0).map(T=>T[0].toUpperCase()),_=Math.min(2,g.length);return m=g.slice(0,_).join(""),m.length>0?m:"?"}const c=l.computed(()=>{const d=o.value[0],m=d==="?"?0:(d.charCodeAt(0)-64)%19;return Math.max(m,0)}),u=l.ref(!1);return l.onMounted(()=>{o.value=a()}),(d,m)=>(l.openBlock(),l.createElementBlock(l.Fragment,null,[l.createElementVNode("div",{id:"sf-header-avatar","data-cor":c.value,onClick:m[0]||(m[0]=g=>u.value=!0)},l.toDisplayString(o.value),9,Sd),l.createVNode(Hs,{visible:u.value,"onUpdate:visible":m[1]||(m[1]=g=>u.value=g),position:"right"},{title:l.withCtx(()=>[l.createTextVNode("Minha conta")]),default:l.withCtx(()=>{var g;return[l.createElementVNode("div",_d,[l.createTextVNode(l.toDisplayString((g=l.unref(r).userinfo)==null?void 0:g.name)+" ",1),l.createVNode(Vs,{color:"error",onClick:i},{default:l.withCtx(()=>[l.createTextVNode("Sair")]),_:1})])]}),_:1},8,["visible"])],64))}}),Cd={},Ed={xmlns:"http://www.w3.org/2000/svg",height:"48",viewBox:"0 -960 960 960",width:"48",class:"sf-svg-icon"},Td=l.createElementVNode("path",{d:"m307.231-83.463-54.999-55.23 343.923-343.922-343.923-343.539 54.999-54.614 398.153 398.153L307.231-83.462Z"},null,-1),Ad=[Td];function Pd(t,e){return l.openBlock(),l.createElementBlock("svg",Ed,Ad)}const Id=Vn(Cd,[["render",Pd]]);class xd{get storedTheme(){return localStorage.getItem("color-scheme")}get IsDark(){return document.documentElement.classList.contains("dark")}Toggle(){this.IsDark?this.EnableLightMode():this.EnableDarkMode()}EnableDarkMode(){document.documentElement.classList.add("dark"),document.documentElement.classList.remove("light"),localStorage.setItem("color-scheme","dark")}EnableLightMode(){document.documentElement.classList.remove("dark"),document.documentElement.classList.add("light"),localStorage.setItem("color-scheme","light")}SetInitialTheme(){if(this.storedTheme==="light")return this.EnableLightMode();if(this.storedTheme==="dark")return this.EnableDarkMode();if(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches)return this.EnableDarkMode();this.EnableLightMode()}ClearStoredTheme(){localStorage.removeItem("color-scheme")}}const St=new xd,Od=l.createStaticVNode('<svg xmlns="http://www.w3.org/2000/svg" width="472.39" height="472.39" viewBox="0 0 472.39 472.39"><g class="toggle-sun"><path d="M403.21,167V69.18H305.38L236.2,0,167,69.18H69.18V167L0,236.2l69.18,69.18v97.83H167l69.18,69.18,69.18-69.18h97.83V305.38l69.18-69.18Zm-167,198.17a129,129,0,1,1,129-129A129,129,0,0,1,236.2,365.19Z"></path></g><g class="toggle-circle"><circle class="cls-1" cx="236.2" cy="236.2" r="103.78"></circle></g></svg>',1),Ld=[Od],$d=l.defineComponent({__name:"ThemeToggle",setup(t){return(e,n)=>(l.openBlock(),l.createElementBlock("button",{id:"sf-theme-toggle",onClick:n[0]||(n[0]=(...r)=>l.unref(St).Toggle&&l.unref(St).Toggle(...r))},Ld))}}),Rd={id:"sf-layout"},Nd=l.createElementVNode("div",{class:"sf-layout-menu-toggler-logo"},null,-1),Bd={class:"title"},Dd={class:"sf-layout-nav-content"},Md=l.createElementVNode("div",{class:"sf-layout-nav-footer"},[l.createElementVNode("div",{class:"sf-layout-nav-footer-logo"})],-1),Ud=l.createElementVNode("section",{id:"sf-layout-page-title"},null,-1),Hd={id:"sf-layout-content"},Vd=l.defineComponent({__name:"Layout",emits:["mounted","logout"],setup(t,{emit:e}){const n=Vr(),r=e;return l.onMounted(()=>{r("mounted")}),(o,s)=>(l.openBlock(),l.createElementBlock("div",Rd,[l.createElementVNode("header",null,[l.createElementVNode("div",{class:l.normalizeClass(["sf-layout-menu-toggler",{invert:l.unref(n).IsVisible}]),onClick:s[0]||(s[0]=i=>l.unref(n).Toggle())},[Nd,l.createVNode(Id)],2),l.createElementVNode("div",Bd,[l.renderSlot(o.$slots,"title")]),l.renderSlot(o.$slots,"action"),l.createVNode(jr,{text:"Tema"},{default:l.withCtx(()=>[l.createVNode($d)]),_:1}),l.createVNode(kd,{onLogout:s[1]||(s[1]=i=>r("logout"))})]),l.createElementVNode("nav",{class:l.normalizeClass({visible:l.unref(n).IsVisible})},[l.createElementVNode("div",Dd,[l.renderSlot(o.$slots,"menu")]),Md],2),l.createElementVNode("main",{class:l.normalizeClass({"menu-visible":l.unref(n).IsVisible})},[Ud,l.createElementVNode("section",Hd,[l.renderSlot(o.$slots,"content")])],2)]))}}),jd=l.defineComponent({__name:"ScrollToTop",setup(t){const e=l.ref(!1),n=`--${+new Date}`;let r=null;function o(){r==null||r.scrollTo(0,0)}return l.onMounted(()=>{var s;r=((s=document.getElementById(n))==null?void 0:s.parentElement)??null,r&&r.addEventListener("scroll",function(){e.value=this.scrollTop-this.clientHeight>0})}),(s,i)=>(l.openBlock(),l.createElementBlock("button",{id:n,class:l.normalizeClass(["sf-scrollToTop",{"sf-scrollToTop-visible":e.value}]),onClick:o},null,2))}}),Fd=l.defineComponent({__name:"Content",props:{class:{},style:{},disableBodyPadding:{type:Boolean},disableHeaderPadding:{type:Boolean},disableFooterPadding:{type:Boolean}},setup(t){const e=t;function n(){return new tt("sf-content").AddClass(e.class,!!e.class).Build()}function r(){return new tt("sf-content-body").AddClass("sf-content-no-padding",e.disableBodyPadding).Build()}function o(){return new tt("sf-content-header").AddClass("sf-content-no-padding",e.disableHeaderPadding).Build()}function s(){return new tt("sf-content-footer").AddClass("sf-content-no-padding",e.disableFooterPadding).Build()}return(i,a)=>(l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(n()),style:l.normalizeStyle(e.style)},[l.createElementVNode("div",{class:l.normalizeClass(o())},[l.renderSlot(i.$slots,"header")],2),l.createElementVNode("div",{class:l.normalizeClass(r())},[l.renderSlot(i.$slots,"default"),l.createVNode(jd)],2),l.createElementVNode("div",{class:l.normalizeClass(s())},[l.renderSlot(i.$slots,"footer")],2)],6))}}),zd={class:"sf-tab-navigation"},Kd=l.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"w-6 h-6"},[l.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15.75 19.5L8.25 12l7.5-7.5"})],-1),Wd=[Kd],qd=["data-active"],Gd=["href","onClick"],Yd=l.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"w-6 h-6"},[l.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M8.25 4.5l7.5 7.5-7.5 7.5"})],-1),Jd=[Yd],Xd=l.defineComponent({__name:"TabNavigation",props:{tabs:{}},setup(t){const e=t,n=l.ref(null),r=new ResizeObserver(c=>{a()}),o=l.ref(!1),s=l.ref(!1);function i(c=!1){const u=n.value.clientWidth;n.value.scrollLeft+=c?-u:u}function a(){const c=n.value.scrollWidth-n.value.clientWidth;o.value=n.value.scrollLeft>10,s.value=n.value.scrollLeft<c-10}return l.onMounted(()=>{n.value.addEventListener("scroll",a),r.observe(n.value)}),l.onBeforeUnmount(()=>{var c;try{(c=n.value)==null||c.removeEventListener("scroll",a),r.unobserve(n.value),r.disconnect()}catch{}}),(c,u)=>{const d=l.resolveComponent("RouterLink");return l.openBlock(),l.createElementBlock("div",zd,[l.createElementVNode("div",{class:l.normalizeClass(["left-arrow",{active:o.value}]),onClick:u[0]||(u[0]=m=>i(!0))},Wd,2),l.createElementVNode("ul",{ref_key:"trackerContainer",ref:n},[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.tabs,m=>(l.openBlock(),l.createBlock(d,{to:m.route,custom:!0},{default:l.withCtx(({navigate:g,isActive:_})=>[l.createElementVNode("li",{"data-active":_},[l.renderSlot(c.$slots,"item",{item:m,navigate:g,isActive:_},()=>[l.createElementVNode("a",{href:m.route,class:l.normalizeClass({active:_}),onClick:g},l.toDisplayString(m.text),11,Gd)])],8,qd)]),_:2},1032,["to"]))),256))],512),l.createElementVNode("div",{class:l.normalizeClass(["right-arrow",{active:s.value}]),onClick:u[1]||(u[1]=m=>i())},Jd,2)])}}}),Zd=["data-icon"],Qd=l.defineComponent({__name:"Message",props:{color:{default:"info"},class:{},style:{},icon:{}},setup(t){const e=t,n=l.computed(()=>{if(e.icon)return e.icon;switch(e.color){case"error":return"cancel";case"info":return"info";case"warn":return"warning";case"success":return"check";case"help":return"help";default:return null}}),r=l.computed(()=>new tt("sf-message").AddClass("sf-message-error",e.color==="error").AddClass("sf-message-info",e.color==="info").AddClass("sf-message-warning",e.color==="warn").AddClass("sf-message-success",e.color==="success").AddClass("sf-message-help",e.color==="help").AddClass("sf-message-primary",e.color==="primary").AddClass("sf-message-secondary",e.color==="secondary").AddClass(e.class).Build());return(o,s)=>(l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(r.value),"data-icon":n.value},[l.renderSlot(o.$slots,"default")],10,Zd))}});function ef(t,e){return t?t.classList?t.classList.contains(e):new RegExp("(^| )"+e+"( |$)","gi").test(t.className):!1}function tf(t,e){if(t&&e){const n=r=>{ef(t,r)||(t.classList?t.classList.add(r):t.className+=" "+r)};[e].flat().filter(Boolean).forEach(r=>r.split(" ").forEach(n))}}function hr(t,e){if(t&&e){const n=r=>{t.classList?t.classList.remove(r):t.className=t.className.replace(new RegExp("(^|\\b)"+r.split(" ").join("|")+"(\\b|$)","gi")," ")};[e].flat().filter(Boolean).forEach(r=>r.split(" ").forEach(n))}}function nf(t,e){return t instanceof HTMLElement?t.offsetWidth:0}function qn(t){return typeof HTMLElement=="object"?t instanceof HTMLElement:t&&typeof t=="object"&&t!==null&&t.nodeType===1&&typeof t.nodeName=="string"}function Nn(t,e={}){if(qn(t)){const n=(r,o)=>{var s,i;const a=(s=t==null?void 0:t.$attrs)!=null&&s[r]?[(i=t==null?void 0:t.$attrs)==null?void 0:i[r]]:[];return[o].flat().reduce((c,u)=>{if(u!=null){const d=typeof u;if(d==="string"||d==="number")c.push(u);else if(d==="object"){const m=Array.isArray(u)?n(r,u):Object.entries(u).map(([g,_])=>r==="style"&&(_||_===0)?`${g.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}:${_}`:_?g:void 0);c=m.length?c.concat(m.filter(g=>!!g)):c}}return c},a)};Object.entries(e).forEach(([r,o])=>{if(o!=null){const s=r.match(/^on(.+)/);s?t.addEventListener(s[1].toLowerCase(),o):r==="p-bind"?Nn(t,o):(o=r==="class"?[...new Set(n("class",o))].join(" ").trim():r==="style"?n("style",o).join(";").trim():o,(t.$attrs=t.$attrs||{})&&(t.$attrs[r]=o),t.setAttribute(r,o))}})}}function rf(t,e={},...n){{const r=document.createElement(t);return Nn(r,e),r.append(...n),r}}function je(t,e){return qn(t)?t.matches(e)?t:t.querySelector(e):null}function Gt(t,e){t&&document.activeElement!==t&&t.focus(e)}function Yt(t,e){if(qn(t)){const n=t.getAttribute(e);return isNaN(n)?n==="true"||n==="false"?n==="true":n:+n}}function ts(t){if(t){let e=t.offsetHeight,n=getComputedStyle(t);return e-=parseFloat(n.paddingTop)+parseFloat(n.paddingBottom)+parseFloat(n.borderTopWidth)+parseFloat(n.borderBottomWidth),e}return 0}function of(t){if(t){let e=t.parentNode;return e&&e instanceof ShadowRoot&&e.host&&(e=e.host),e}return null}function sf(t){if(t){let e=t.getBoundingClientRect();return{top:e.top+(window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0),left:e.left+(window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0)}}return{top:"auto",left:"auto"}}function af(t,e){return t?t.offsetHeight:0}function lf(t){return!!(t!==null&&typeof t<"u"&&t.nodeName&&of(t))}function ns(t){if(t){let e=t.offsetWidth,n=getComputedStyle(t);return e-=parseFloat(n.paddingLeft)+parseFloat(n.paddingRight)+parseFloat(n.borderLeftWidth)+parseFloat(n.borderRightWidth),e}return 0}function cf(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function uf(t,e="",n){qn(t)&&n!==null&&n!==void 0&&t.setAttribute(e,n)}function Ii(){const t=new Map;return{on(e,n){let r=t.get(e);return r?r.push(n):r=[n],t.set(e,r),this},off(e,n){let r=t.get(e);return r&&r.splice(r.indexOf(n)>>>0,1),this},emit(e,n){let r=t.get(e);r&&r.slice().map(o=>{o(n)})},clear(){t.clear()}}}function yt(t){return t==null||t===""||Array.isArray(t)&&t.length===0||!(t instanceof Date)&&typeof t=="object"&&Object.keys(t).length===0}function xr(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){var n=Array.isArray(t),r=Array.isArray(e),o,s,i;if(n&&r){if(s=t.length,s!=e.length)return!1;for(o=s;o--!==0;)if(!xr(t[o],e[o]))return!1;return!0}if(n!=r)return!1;var a=t instanceof Date,c=e instanceof Date;if(a!=c)return!1;if(a&&c)return t.getTime()==e.getTime();var u=t instanceof RegExp,d=e instanceof RegExp;if(u!=d)return!1;if(u&&d)return t.toString()==e.toString();var m=Object.keys(t);if(s=m.length,s!==Object.keys(e).length)return!1;for(o=s;o--!==0;)if(!Object.prototype.hasOwnProperty.call(e,m[o]))return!1;for(o=s;o--!==0;)if(i=m[o],!xr(t[i],e[i]))return!1;return!0}return t!==t&&e!==e}function ro(t){return!!(t&&t.constructor&&t.call&&t.apply)}function G(t){return!yt(t)}function Pt(t,e,n){return xr(t,e)}function rs(t,e){let n;if(G(t))try{n=t.findLast(e)}catch{n=[...t].reverse().find(e)}return n}function dt(t,e=!0){return t instanceof Object&&t.constructor===Object&&(e||Object.keys(t).length!==0)}function Ie(t,...e){return ro(t)?t(...e):t}function ke(t,e=!0){return typeof t=="string"&&(e||t!=="")}function Fe(t){return ke(t)?t.replace(/(-|_)/g,"").toLowerCase():t}function oo(t,e="",n={}){const r=Fe(e).split("."),o=r.shift();return o?dt(t)?oo(Ie(t[Object.keys(t).find(s=>Fe(s)===o)||""],n),r.join("."),n):void 0:Ie(t,n)}function so(t,e=!0){return Array.isArray(t)&&(e||t.length!==0)}function xi(t){return G(t)&&!isNaN(t)}function df(t=""){return G(t)&&t.length===1&&!!t.match(/\S| /)}function nt(t,e){if(e){const n=e.test(t);return e.lastIndex=0,n}return!1}function Qt(t){return t&&t.replace(/\/\*(?:(?!\*\/)[\s\S])*\*\/|[\r\n\t]+/g,"").replace(/ {2,}/g," ").replace(/ ([{:}]) /g,"$1").replace(/([;,]) /g,"$1").replace(/ !/g,"!").replace(/: /g,":")}function ff(t){return ke(t,!1)?t[0].toUpperCase()+t.slice(1):t}function Oi(t){return ke(t)?t.replace(/(_)/g,"-").replace(/[A-Z]/g,(e,n)=>n===0?e:"-"+e.toLowerCase()).toLowerCase():t}function os(t){return ke(t)?t.replace(/[A-Z]/g,(e,n)=>n===0?e:"."+e.toLowerCase()).toLowerCase():t}var Tn={};function mf(t="pui_id_"){return Tn.hasOwnProperty(t)||(Tn[t]=0),Tn[t]++,`${t}${Tn[t]}`}function Bn(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"pv_id_";return mf(t)}var pf=Object.defineProperty,hf=Object.defineProperties,gf=Object.getOwnPropertyDescriptors,Dn=Object.getOwnPropertySymbols,Li=Object.prototype.hasOwnProperty,$i=Object.prototype.propertyIsEnumerable,ss=(t,e,n)=>e in t?pf(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,zt=(t,e)=>{for(var n in e||(e={}))Li.call(e,n)&&ss(t,n,e[n]);if(Dn)for(var n of Dn(e))$i.call(e,n)&&ss(t,n,e[n]);return t},gr=(t,e)=>hf(t,gf(e)),Kt=(t,e)=>{var n={};for(var r in t)Li.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&Dn)for(var r of Dn(t))e.indexOf(r)<0&&$i.call(t,r)&&(n[r]=t[r]);return n},yf=Ii(),et=yf;function is(t,e){so(t)?t.push(...e||[]):dt(t)&&Object.assign(t,e)}function vf(t){return dt(t)&&t.hasOwnProperty("value")&&t.hasOwnProperty("type")?t.value:t}function as(t,e=""){return["opacity","z-index","line-height","font-weight","flex","flex-grow","flex-shrink","order"].some(r=>e.endsWith(r))?t:`${t}`.trim().split(" ").map(s=>xi(s)?`${s}px`:s).join(" ")}function bf(t){return t.replaceAll(/ /g,"").replace(/[^\w]/g,"-")}function Or(t="",e=""){return bf(`${ke(t,!1)&&ke(e,!1)?`${t}-`:t}${e}`)}function Ri(t="",e=""){return`--${Or(t,e)}`}function Ni(t,e="",n="",r=[],o){if(ke(t)){const s=/{([^}]*)}/g,i=t.trim();if(nt(i,s)){const a=i.replaceAll(s,d=>{const g=d.replace(/{|}/g,"").split(".").filter(_=>!r.some(v=>nt(_,v)));return`var(${Ri(n,Oi(g.join("-")))}${G(o)?`, ${o}`:""})`}),c=/(\d+\s+[\+\-\*\/]\s+\d+)/g,u=/var\([^)]+\)/g;return nt(a.replace(u,"0"),c)?`calc(${a})`:a}return as(i,e)}else if(xi(t))return as(t,e)}function wf(t,e,n){ke(e,!1)&&t.push(`${e}:${n};`)}function Jt(t,e){return t?`${t}{${e}}`:""}var yr=(...t)=>Sf(ee.getTheme(),...t),Sf=(t={},e,n,r="variable")=>{if(e){const{variable:o,options:s}=ee.defaults||{},{prefix:i,transform:a}=(t==null?void 0:t.options)||s||{},u=nt(e,/{([^}]*)}/g)?e:`{${e}}`;return r==="value"||a==="strict"?ee.getTokenValue(e):Ni(u,void 0,i,[o.excludedKeyRegex],n)}return""};function _f(t,e={}){const n=ee.defaults.variable,{prefix:r=n.prefix,selector:o=n.selector,excludedKeyRegex:s=n.excludedKeyRegex}=e,i=(u,d="")=>Object.entries(u).reduce((m,[g,_])=>{const v=nt(g,s)?Or(d):Or(d,Oi(g)),T=vf(_);if(dt(T)){const{variables:w,tokens:B}=i(T,v);is(m.tokens,B),is(m.variables,w)}else m.tokens.push((r?v.replace(`${r}-`,""):v).replaceAll("-",".")),wf(m.variables,Ri(v),Ni(T,v,r,[s]));return m},{variables:[],tokens:[]}),{variables:a,tokens:c}=i(t,r);return{value:a,tokens:c,declarations:a.join(""),css:Jt(o,a.join(""))}}var He={regex:{rules:{class:{pattern:/^\.([a-zA-Z][\w-]*)$/,resolve(t){return{type:"class",selector:t,matched:this.pattern.test(t.trim())}}},attr:{pattern:/^\[(.*)\]$/,resolve(t){return{type:"attr",selector:`:root${t}`,matched:this.pattern.test(t.trim())}}},media:{pattern:/^@media (.*)$/,resolve(t){return{type:"media",selector:`${t}{:root{[CSS]}}`,matched:this.pattern.test(t.trim())}}},system:{pattern:/^system$/,resolve(t){return{type:"system",selector:"@media (prefers-color-scheme: dark){:root{[CSS]}}",matched:this.pattern.test(t.trim())}}},custom:{resolve(t){return{type:"custom",selector:t,matched:!0}}}},resolve(t){const e=Object.keys(this.rules).filter(n=>n!=="custom").map(n=>this.rules[n]);return[t].flat().map(n=>{var r;return(r=e.map(o=>o.resolve(n)).find(o=>o.matched))!=null?r:this.rules.custom.resolve(n)})}},_toVariables(t,e){return _f(t,{prefix:e==null?void 0:e.prefix})},getCommon({name:t="",theme:e={},params:n,set:r,defaults:o}){var s,i,a,c;const{preset:u,options:d}=e;let m,g,_,v;if(G(u)){const{primitive:T,semantic:w}=u,B=w||{},{colorScheme:C}=B,A=Kt(B,["colorScheme"]),j=C||{},{dark:X}=j,ne=Kt(j,["dark"]),J=G(T)?this._toVariables({primitive:T},d):{},pe=G(A)?this._toVariables({semantic:A},d):{},se=G(ne)?this._toVariables({light:ne},d):{},U=G(X)?this._toVariables({dark:X},d):{},[Te,ve]=[(s=J.declarations)!=null?s:"",J.tokens],[De,Me]=[(i=pe.declarations)!=null?i:"",pe.tokens||[]],[ot,Xe]=[(a=se.declarations)!=null?a:"",se.tokens||[]],[Ue,Ge]=[(c=U.declarations)!=null?c:"",U.tokens||[]];m=this.transformCSS(t,Te,"light","variable",d,r,o),g=ve;const te=this.transformCSS(t,`${De}${ot}color-scheme:light`,"light","variable",d,r,o),$e=this.transformCSS(t,`${Ue}color-scheme:dark`,"dark","variable",d,r,o);_=`${te}${$e}`,v=[...new Set([...Me,...Xe,...Ge])]}return{primitive:{css:m,tokens:g},semantic:{css:_,tokens:v}}},getPreset({name:t="",preset:e={},options:n,params:r,set:o,defaults:s,selector:i}){var a,c,u;const d=t.replace("-directive",""),m=e,{colorScheme:g}=m,_=Kt(m,["colorScheme"]),v=g||{},{dark:T}=v,w=Kt(v,["dark"]),B=G(_)?this._toVariables({[d]:_},n):{},C=G(w)?this._toVariables({[d]:w},n):{},A=G(T)?this._toVariables({[d]:T},n):{},[j,X]=[(a=B.declarations)!=null?a:"",B.tokens||[]],[ne,J]=[(c=C.declarations)!=null?c:"",C.tokens||[]],[pe,se]=[(u=A.declarations)!=null?u:"",A.tokens||[]],U=[...new Set([...X,...J,...se])],Te=this.transformCSS(d,`${j}${ne}`,"light","variable",n,o,s,i),ve=this.transformCSS(d,pe,"dark","variable",n,o,s,i);return{css:`${Te}${ve}`,tokens:U}},getPresetC({name:t="",theme:e={},params:n,set:r,defaults:o}){var s;const{preset:i,options:a}=e,c=(s=i==null?void 0:i.components)==null?void 0:s[t];return this.getPreset({name:t,preset:c,options:a,params:n,set:r,defaults:o})},getPresetD({name:t="",theme:e={},params:n,set:r,defaults:o}){var s;const i=t.replace("-directive",""),{preset:a,options:c}=e,u=(s=a==null?void 0:a.directives)==null?void 0:s[i];return this.getPreset({name:i,preset:u,options:c,params:n,set:r,defaults:o})},getColorSchemeOption(t,e){var n;return this.regex.resolve((n=t.darkModeSelector)!=null?n:e.options.darkModeSelector)},getLayerOrder(t,e={},n,r){const{cssLayer:o}=e;return o?`@layer ${Ie(o.order||"primeui",n)}`:""},getCommonStyleSheet({name:t="",theme:e={},params:n,props:r={},set:o,defaults:s}){const i=this.getCommon({name:t,theme:e,params:n,set:o,defaults:s}),a=Object.entries(r).reduce((c,[u,d])=>c.push(`${u}="${d}"`)&&c,[]).join(" ");return Object.entries(i||{}).reduce((c,[u,d])=>{if(d!=null&&d.css){const m=Qt(d==null?void 0:d.css),g=`${u}-variables`;c.push(`<style type="text/css" data-primevue-style-id="${g}" ${a}>${m}</style>`)}return c},[]).join("")},getStyleSheet({name:t="",theme:e={},params:n,props:r={},set:o,defaults:s}){var i;const a={name:t,theme:e,params:n,set:o,defaults:s},c=(i=t.includes("-directive")?this.getPresetD(a):this.getPresetC(a))==null?void 0:i.css,u=Object.entries(r).reduce((d,[m,g])=>d.push(`${m}="${g}"`)&&d,[]).join(" ");return c?`<style type="text/css" data-primevue-style-id="${t}-variables" ${u}>${Qt(c)}</style>`:""},createTokens(t={},e,n="",r="",o={}){return Object.entries(t).forEach(([s,i])=>{const a=nt(s,e.variable.excludedKeyRegex)?n:n?`${n}.${os(s)}`:os(s),c=r?`${r}.${s}`:s;dt(i)?this.createTokens(i,e,a,c,o):(o[a]||(o[a]={paths:[],computed(u,d={}){if(u){const m=this.paths.find(g=>g.scheme===u)||this.paths.find(g=>g.scheme==="none");return m==null?void 0:m.computed(u,d.binding)}return this.paths.map(m=>m.computed(m.scheme,d[m.scheme]))}}),o[a].paths.push({path:c,value:i,scheme:c.includes("colorScheme.light")?"light":c.includes("colorScheme.dark")?"dark":"none",computed(u,d={}){const m=/{([^}]*)}/g;let g=i;if(d.name=this.path,d.binding||(d.binding={}),nt(i,m)){const v=i.trim().replaceAll(m,B=>{var C,A;const j=B.replace(/{|}/g,"");return(A=(C=o[j])==null?void 0:C.computed(u,d))==null?void 0:A.value}),T=/(\d+\w*\s+[\+\-\*\/]\s+\d+\w*)/g,w=/var\([^)]+\)/g;g=nt(v.replace(w,"0"),T)?`calc(${v})`:v}return yt(d.binding)&&delete d.binding,{colorScheme:u,path:this.path,paths:d,value:g.includes("undefined")?void 0:g}}}))}),o},getTokenValue(t,e,n){var r;const s=(c=>c.split(".").filter(d=>!nt(d.toLowerCase(),n.variable.excludedKeyRegex)).join("."))(e),i=e.includes("colorScheme.light")?"light":e.includes("colorScheme.dark")?"dark":void 0,a=[(r=t[s])==null?void 0:r.computed(i)].flat().filter(c=>c);return a.length===1?a[0].value:a.reduce((c={},u)=>{const d=u,{colorScheme:m}=d,g=Kt(d,["colorScheme"]);return c[m]=g,c},void 0)},transformCSS(t,e,n,r,o={},s,i,a){if(G(e)){const{cssLayer:c}=o;if(r!=="style"){const u=this.getColorSchemeOption(o,i),d=a?Jt(a,e):e;e=n==="dark"?u.reduce((m,{selector:g})=>(G(g)&&(m+=g.includes("[CSS]")?g.replace("[CSS]",d):Jt(g,d)),m),""):Jt(a??":root",e)}if(c){const u={name:"primeui",order:"primeui"};dt(c)&&(u.name=Ie(c.name,{name:t,type:r})),G(u.name)&&(e=Jt(`@layer ${u.name}`,e),s==null||s.layerNames(u.name))}return e}return""}},ee={defaults:{variable:{prefix:"p",selector:":root",excludedKeyRegex:/^(primitive|semantic|components|directives|variables|colorscheme|light|dark|common|root|states)$/gi},options:{prefix:"p",darkModeSelector:"system",cssLayer:!1}},_theme:void 0,_layerNames:new Set,_loadedStyleNames:new Set,_loadingStyles:new Set,_tokens:{},update(t={}){const{theme:e}=t;e&&(this._theme=gr(zt({},e),{options:zt(zt({},this.defaults.options),e.options)}),this._tokens=He.createTokens(this.preset,this.defaults),this.clearLoadedStyleNames())},get theme(){return this._theme},get preset(){var t;return((t=this.theme)==null?void 0:t.preset)||{}},get options(){var t;return((t=this.theme)==null?void 0:t.options)||{}},get tokens(){return this._tokens},getTheme(){return this.theme},setTheme(t){this.update({theme:t}),et.emit("theme:change",t)},getPreset(){return this.preset},setPreset(t){this._theme=gr(zt({},this.theme),{preset:t}),this._tokens=He.createTokens(t,this.defaults),this.clearLoadedStyleNames(),et.emit("preset:change",t),et.emit("theme:change",this.theme)},getOptions(){return this.options},setOptions(t){this._theme=gr(zt({},this.theme),{options:t}),this.clearLoadedStyleNames(),et.emit("options:change",t),et.emit("theme:change",this.theme)},getLayerNames(){return[...this._layerNames]},setLayerNames(t){this._layerNames.add(t)},getLoadedStyleNames(){return this._loadedStyleNames},isStyleNameLoaded(t){return this._loadedStyleNames.has(t)},setLoadedStyleName(t){this._loadedStyleNames.add(t)},deleteLoadedStyleName(t){this._loadedStyleNames.delete(t)},clearLoadedStyleNames(){this._loadedStyleNames.clear()},getTokenValue(t){return He.getTokenValue(this.tokens,t,this.defaults)},getCommon(t="",e){return He.getCommon({name:t,theme:this.theme,params:e,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}})},getComponent(t="",e){const n={name:t,theme:this.theme,params:e,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}};return He.getPresetC(n)},getDirective(t="",e){const n={name:t,theme:this.theme,params:e,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}};return He.getPresetD(n)},getCustomPreset(t="",e,n,r){const o={name:t,preset:e,options:this.options,selector:n,params:r,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}};return He.getPreset(o)},getLayerOrderCSS(t=""){return He.getLayerOrder(t,this.options,{names:this.getLayerNames()},this.defaults)},transformCSS(t="",e,n="style",r){return He.transformCSS(t,e,r,n,this.options,{layerNames:this.setLayerNames.bind(this)},this.defaults)},getCommonStyleSheet(t="",e,n={}){return He.getCommonStyleSheet({name:t,theme:this.theme,params:e,props:n,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}})},getStyleSheet(t,e,n={}){return He.getStyleSheet({name:t,theme:this.theme,params:e,props:n,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}})},onStyleMounted(t){this._loadingStyles.add(t)},onStyleUpdated(t){this._loadingStyles.add(t)},onStyleLoaded(t,{name:e}){this._loadingStyles.size&&(this._loadingStyles.delete(e),et.emit(`theme:${e}:load`,t),!this._loadingStyles.size&&et.emit("theme:load"))}},lt={_loadedStyleNames:new Set,getLoadedStyleNames:function(){return this._loadedStyleNames},isStyleNameLoaded:function(e){return this._loadedStyleNames.has(e)},setLoadedStyleName:function(e){this._loadedStyleNames.add(e)},deleteLoadedStyleName:function(e){this._loadedStyleNames.delete(e)},clearLoadedStyleNames:function(){this._loadedStyleNames.clear()}};function nn(t){"@babel/helpers - typeof";return nn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},nn(t)}function ls(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function cs(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?ls(Object(n),!0).forEach(function(r){kf(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ls(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function kf(t,e,n){return(e=Cf(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Cf(t){var e=Ef(t,"string");return nn(e)=="symbol"?e:e+""}function Ef(t,e){if(nn(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(nn(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Tf(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;l.getCurrentInstance()?l.onMounted(t):e?t():l.nextTick(t)}var Af=0;function Pf(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=l.ref(!1),r=l.ref(t),o=l.ref(null),s=cf()?window.document:void 0,i=e.document,a=i===void 0?s:i,c=e.immediate,u=c===void 0?!0:c,d=e.manual,m=d===void 0?!1:d,g=e.name,_=g===void 0?"style_".concat(++Af):g,v=e.id,T=v===void 0?void 0:v,w=e.media,B=w===void 0?void 0:w,C=e.nonce,A=C===void 0?void 0:C,j=e.first,X=j===void 0?!1:j,ne=e.onMounted,J=ne===void 0?void 0:ne,pe=e.onUpdated,se=pe===void 0?void 0:pe,U=e.onLoad,Te=U===void 0?void 0:U,ve=e.props,De=ve===void 0?{}:ve,Me=function(){},ot=function(Ge){var te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(a){var $e=cs(cs({},De),te),f=$e.name||_,h=$e.id||T,S=$e.nonce||A;o.value=a.querySelector('style[data-primevue-style-id="'.concat(f,'"]'))||a.getElementById(h)||a.createElement("style"),o.value.isConnected||(r.value=Ge||t,Nn(o.value,{type:"text/css",id:h,media:B,nonce:S}),X?a.head.prepend(o.value):a.head.appendChild(o.value),uf(o.value,"data-primevue-style-id",f),Nn(o.value,$e),o.value.onload=function(P){return Te==null?void 0:Te(P,{name:f})},J==null||J(f)),!n.value&&(Me=l.watch(r,function(P){o.value.textContent=P,se==null||se(f)},{immediate:!0}),n.value=!0)}},Xe=function(){!a||!n.value||(Me(),lf(o.value)&&a.head.removeChild(o.value),n.value=!1)};return u&&!m&&Tf(ot),{id:T,name:_,el:o,css:r,unload:Xe,load:ot,isLoaded:l.readonly(n)}}function rn(t){"@babel/helpers - typeof";return rn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},rn(t)}function us(t,e){return Lf(t)||Of(t,e)||xf(t,e)||If()}function If(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
71
71
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function xf(t,e){if(t){if(typeof t=="string")return ds(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ds(t,e):void 0}}function ds(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function Of(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,o,s,i,a=[],c=!0,u=!1;try{if(s=(n=n.call(t)).next,e!==0)for(;!(c=(r=s.call(n)).done)&&(a.push(r.value),a.length!==e);c=!0);}catch(d){u=!0,o=d}finally{try{if(!c&&n.return!=null&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return a}}function Lf(t){if(Array.isArray(t))return t}function fs(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function vr(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?fs(Object(n),!0).forEach(function(r){$f(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):fs(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function $f(t,e,n){return(e=Rf(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Rf(t){var e=Nf(t,"string");return rn(e)=="symbol"?e:e+""}function Nf(t,e){if(rn(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(rn(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Bf=function(e){var n=e.dt;return`
72
72
  * {
73
73
  box-sizing: border-box;
@@ -209,7 +209,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
209
209
  padding-right: `.concat(n("scrollbar.width"),`;
210
210
  }
211
211
  `)},Mf={},Uf={},ge={name:"base",css:Df,theme:Bf,classes:Mf,inlineStyles:Uf,load:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(s){return s},o=r(Ie(e,{dt:yr}));return o?Pf(Qt(o),vr({name:this.name},n)):{}},loadCSS:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return this.load(this.css,e)},loadTheme:function(){var e=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return this.load(this.theme,n,function(r){return ee.transformCSS(n.name||e.name,r)})},getCommonTheme:function(e){return ee.getCommon(this.name,e)},getComponentTheme:function(e){return ee.getComponent(this.name,e)},getDirectiveTheme:function(e){return ee.getDirective(this.name,e)},getPresetTheme:function(e,n,r){return ee.getCustomPreset(this.name,e,n,r)},getLayerOrderThemeCSS:function(){return ee.getLayerOrderCSS(this.name)},getStyleSheet:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.css){var r=Ie(this.css,{dt:yr}),o=Qt("".concat(r).concat(e)),s=Object.entries(n).reduce(function(i,a){var c=us(a,2),u=c[0],d=c[1];return i.push("".concat(u,'="').concat(d,'"'))&&i},[]).join(" ");return'<style type="text/css" data-primevue-style-id="'.concat(this.name,'" ').concat(s,">").concat(o,"</style>")}return""},getCommonThemeStyleSheet:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return ee.getCommonStyleSheet(this.name,e,n)},getThemeStyleSheet:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=[ee.getStyleSheet(this.name,e,n)];if(this.theme){var o=this.name==="base"?"global-style":"".concat(this.name,"-style"),s=Ie(this.theme,{dt:yr}),i=Qt(ee.transformCSS(o,s)),a=Object.entries(n).reduce(function(c,u){var d=us(u,2),m=d[0],g=d[1];return c.push("".concat(m,'="').concat(g,'"'))&&c},[]).join(" ");r.push('<style type="text/css" data-primevue-style-id="'.concat(o,'" ').concat(a,">").concat(i,"</style>"))}return r.join("")},extend:function(e){return vr(vr({},this),{},{css:void 0,theme:void 0},e)}},ms=ge.extend({name:"common"});function on(t){"@babel/helpers - typeof";return on=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},on(t)}function Hf(t){return Mi(t)||Vf(t)||Di(t)||Bi()}function Vf(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function An(t,e){return Mi(t)||jf(t,e)||Di(t,e)||Bi()}function Bi(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
212
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Di(t,e){if(t){if(typeof t=="string")return ps(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ps(t,e):void 0}}function ps(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function jf(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,o,s,i,a=[],c=!0,u=!1;try{if(s=(n=n.call(t)).next,e===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=s.call(n)).done)&&(a.push(r.value),a.length!==e);c=!0);}catch(d){u=!0,o=d}finally{try{if(!c&&n.return!=null&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return a}}function Mi(t){if(Array.isArray(t))return t}function hs(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function K(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?hs(Object(n),!0).forEach(function(r){In(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):hs(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function In(t,e,n){return(e=Ff(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Ff(t){var e=zf(t,"string");return on(e)=="symbol"?e:e+""}function zf(t,e){if(on(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(on(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Gn={name:"BaseComponent",props:{pt:{type:Object,default:void 0},ptOptions:{type:Object,default:void 0},unstyled:{type:Boolean,default:void 0},dt:{type:Object,default:void 0}},inject:{$parentInstance:{default:void 0}},watch:{isUnstyled:{immediate:!0,handler:function(e){e||(this._loadCoreStyles(),this._themeChangeListener(this._loadCoreStyles))}},dt:{immediate:!0,handler:function(e){var n=this;e?(this._loadScopedThemeStyles(e),this._themeChangeListener(function(){return n._loadScopedThemeStyles(e)})):this._unloadScopedThemeStyles()}}},scopedStyleEl:void 0,rootEl:void 0,beforeCreate:function(){var e,n,r,o,s,i,a,c,u,d,m,g=(e=this.pt)===null||e===void 0?void 0:e._usept,_=g?(n=this.pt)===null||n===void 0||(n=n.originalValue)===null||n===void 0?void 0:n[this.$.type.name]:void 0,v=g?(r=this.pt)===null||r===void 0||(r=r.value)===null||r===void 0?void 0:r[this.$.type.name]:this.pt;(o=v||_)===null||o===void 0||(o=o.hooks)===null||o===void 0||(s=o.onBeforeCreate)===null||s===void 0||s.call(o);var T=(i=this.$primevueConfig)===null||i===void 0||(i=i.pt)===null||i===void 0?void 0:i._usept,w=T?(a=this.$primevue)===null||a===void 0||(a=a.config)===null||a===void 0||(a=a.pt)===null||a===void 0?void 0:a.originalValue:void 0,B=T?(c=this.$primevue)===null||c===void 0||(c=c.config)===null||c===void 0||(c=c.pt)===null||c===void 0?void 0:c.value:(u=this.$primevue)===null||u===void 0||(u=u.config)===null||u===void 0?void 0:u.pt;(d=B||w)===null||d===void 0||(d=d[this.$.type.name])===null||d===void 0||(d=d.hooks)===null||d===void 0||(m=d.onBeforeCreate)===null||m===void 0||m.call(d)},created:function(){this._hook("onCreated")},beforeMount:function(){this._loadStyles(),this._hook("onBeforeMount")},mounted:function(){this.rootEl=je(this.$el,'[data-pc-name="'.concat(Fe(this.$.type.name),'"]')),this.rootEl&&(this.rootEl.setAttribute(this.$attrSelector,""),this.rootEl.$pc=K({name:this.$.type.name},this.$params)),this._hook("onMounted")},beforeUpdate:function(){this._hook("onBeforeUpdate")},updated:function(){this._hook("onUpdated")},beforeUnmount:function(){this._hook("onBeforeUnmount")},unmounted:function(){this._unloadScopedThemeStyles(),this._hook("onUnmounted")},methods:{_hook:function(e){if(!this.$options.hostName){var n=this._usePT(this._getPT(this.pt,this.$.type.name),this._getOptionValue,"hooks.".concat(e)),r=this._useDefaultPT(this._getOptionValue,"hooks.".concat(e));n==null||n(),r==null||r()}},_mergeProps:function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return ro(e)?e.apply(void 0,r):l.mergeProps.apply(void 0,r)},_loadStyles:function(){var e=this,n=function(){at.isStyleNameLoaded("base")||(ge.loadCSS(e.$styleOptions),e._loadGlobalStyles(),at.setLoadedStyleName("base")),e._loadThemeStyles()};n(),this._themeChangeListener(n)},_loadCoreStyles:function(){var e,n;!at.isStyleNameLoaded((e=this.$style)===null||e===void 0?void 0:e.name)&&(n=this.$style)!==null&&n!==void 0&&n.name&&(ms.loadCSS(this.$styleOptions),this.$options.style&&this.$style.loadCSS(this.$styleOptions),at.setLoadedStyleName(this.$style.name))},_loadGlobalStyles:function(){var e=this._useGlobalPT(this._getOptionValue,"global.css",this.$params);G(e)&&ge.load(e,K({name:"global"},this.$styleOptions))},_loadThemeStyles:function(){var e,n;if(!this.isUnstyled){if(!ee.isStyleNameLoaded("common")){var r,o,s=((r=this.$style)===null||r===void 0||(o=r.getCommonTheme)===null||o===void 0?void 0:o.call(r))||{},i=s.primitive,a=s.semantic;ge.load(i==null?void 0:i.css,K({name:"primitive-variables"},this.$styleOptions)),ge.load(a==null?void 0:a.css,K({name:"semantic-variables"},this.$styleOptions)),ge.loadTheme(K({name:"global-style"},this.$styleOptions)),ee.setLoadedStyleName("common")}if(!ee.isStyleNameLoaded((e=this.$style)===null||e===void 0?void 0:e.name)&&(n=this.$style)!==null&&n!==void 0&&n.name){var c,u,d,m,g=((c=this.$style)===null||c===void 0||(u=c.getComponentTheme)===null||u===void 0?void 0:u.call(c))||{},_=g.css;(d=this.$style)===null||d===void 0||d.load(_,K({name:"".concat(this.$style.name,"-variables")},this.$styleOptions)),(m=this.$style)===null||m===void 0||m.loadTheme(K({name:"".concat(this.$style.name,"-style")},this.$styleOptions)),ee.setLoadedStyleName(this.$style.name)}if(!ee.isStyleNameLoaded("layer-order")){var v,T,w=(v=this.$style)===null||v===void 0||(T=v.getLayerOrderThemeCSS)===null||T===void 0?void 0:T.call(v);ge.load(w,K({name:"layer-order",first:!0},this.$styleOptions)),ee.setLoadedStyleName("layer-order")}}},_loadScopedThemeStyles:function(e){var n,r,o,s=((n=this.$style)===null||n===void 0||(r=n.getPresetTheme)===null||r===void 0?void 0:r.call(n,e,"[".concat(this.$attrSelector,"]")))||{},i=s.css,a=(o=this.$style)===null||o===void 0?void 0:o.load(i,K({name:"".concat(this.$attrSelector,"-").concat(this.$style.name)},this.$styleOptions));this.scopedStyleEl=a.el},_unloadScopedThemeStyles:function(){var e;(e=this.scopedStyleEl)===null||e===void 0||(e=e.value)===null||e===void 0||e.remove()},_themeChangeListener:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(){};at.clearLoadedStyleNames(),et.on("theme:change",e)},_getHostInstance:function(e){return e?this.$options.hostName?e.$.type.name===this.$options.hostName?e:this._getHostInstance(e.$parentInstance):e.$parentInstance:void 0},_getPropValue:function(e){var n;return this[e]||((n=this._getHostInstance(this))===null||n===void 0?void 0:n[e])},_getOptionValue:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return oo(e,n,r)},_getPTValue:function(){var e,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,i=/./g.test(r)&&!!o[r.split(".")[0]],a=this._getPropValue("ptOptions")||((e=this.$primevueConfig)===null||e===void 0?void 0:e.ptOptions)||{},c=a.mergeSections,u=c===void 0?!0:c,d=a.mergeProps,m=d===void 0?!1:d,g=s?i?this._useGlobalPT(this._getPTClassValue,r,o):this._useDefaultPT(this._getPTClassValue,r,o):void 0,_=i?void 0:this._getPTSelf(n,this._getPTClassValue,r,K(K({},o),{},{global:g||{}})),v=this._getPTDatasets(r);return u||!u&&_?m?this._mergeProps(m,g,_,v):K(K(K({},g),_),v):K(K({},_),v)},_getPTSelf:function(){for(var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return l.mergeProps(this._usePT.apply(this,[this._getPT(e,this.$name)].concat(r)),this._usePT.apply(this,[this.$_attrsPT].concat(r)))},_getPTDatasets:function(){var e,n,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",o="data-pc-",s=r==="root"&&G((e=this.pt)===null||e===void 0?void 0:e["data-pc-section"]);return r!=="transition"&&K(K({},r==="root"&&K(In({},"".concat(o,"name"),Fe(s?(n=this.pt)===null||n===void 0?void 0:n["data-pc-section"]:this.$.type.name)),s&&In({},"".concat(o,"extend"),Fe(this.$.type.name)))),{},In({},"".concat(o,"section"),Fe(r)))},_getPTClassValue:function(){var e=this._getOptionValue.apply(this,arguments);return ke(e)||so(e)?{class:e}:e},_getPT:function(e){var n=this,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",o=arguments.length>2?arguments[2]:void 0,s=function(a){var c,u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,d=o?o(a):a,m=Fe(r),g=Fe(n.$name);return(c=u?m!==g?d==null?void 0:d[m]:void 0:d==null?void 0:d[m])!==null&&c!==void 0?c:d};return e!=null&&e.hasOwnProperty("_usept")?{_usept:e._usept,originalValue:s(e.originalValue),value:s(e.value)}:s(e,!0)},_usePT:function(e,n,r,o){var s=function(T){return n(T,r,o)};if(e!=null&&e.hasOwnProperty("_usept")){var i,a=e._usept||((i=this.$primevueConfig)===null||i===void 0?void 0:i.ptOptions)||{},c=a.mergeSections,u=c===void 0?!0:c,d=a.mergeProps,m=d===void 0?!1:d,g=s(e.originalValue),_=s(e.value);return g===void 0&&_===void 0?void 0:ke(_)?_:ke(g)?g:u||!u&&_?m?this._mergeProps(m,g,_):K(K({},g),_):_}return s(e)},_useGlobalPT:function(e,n,r){return this._usePT(this.globalPT,e,n,r)},_useDefaultPT:function(e,n,r){return this._usePT(this.defaultPT,e,n,r)},ptm:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this._getPTValue(this.pt,e,K(K({},this.$params),n))},ptmi:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return l.mergeProps(this.$_attrsWithoutPT,this.ptm(e,n))},ptmo:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this._getPTValue(e,n,K({instance:this},r),!1)},cx:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.isUnstyled?void 0:this._getOptionValue(this.$style.classes,e,K(K({},this.$params),n))},sx:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(n){var o=this._getOptionValue(this.$style.inlineStyles,e,K(K({},this.$params),r)),s=this._getOptionValue(ms.inlineStyles,e,K(K({},this.$params),r));return[s,o]}}},computed:{globalPT:function(){var e,n=this;return this._getPT((e=this.$primevueConfig)===null||e===void 0?void 0:e.pt,void 0,function(r){return Ie(r,{instance:n})})},defaultPT:function(){var e,n=this;return this._getPT((e=this.$primevueConfig)===null||e===void 0?void 0:e.pt,void 0,function(r){return n._getOptionValue(r,n.$name,K({},n.$params))||Ie(r,K({},n.$params))})},isUnstyled:function(){var e;return this.unstyled!==void 0?this.unstyled:(e=this.$primevueConfig)===null||e===void 0?void 0:e.unstyled},$theme:function(){var e;return(e=this.$primevueConfig)===null||e===void 0?void 0:e.theme},$style:function(){return K(K({classes:void 0,inlineStyles:void 0,load:function(){},loadCSS:function(){},loadTheme:function(){}},(this._getHostInstance(this)||{}).$style),this.$options.style)},$styleOptions:function(){var e;return{nonce:(e=this.$primevueConfig)===null||e===void 0||(e=e.csp)===null||e===void 0?void 0:e.nonce}},$primevueConfig:function(){var e;return(e=this.$primevue)===null||e===void 0?void 0:e.config},$name:function(){return this.$options.hostName||this.$.type.name},$params:function(){var e=this._getHostInstance(this)||this.$parent;return{instance:this,props:this.$props,state:this.$data,attrs:this.$attrs,parent:{instance:e,props:e==null?void 0:e.$props,state:e==null?void 0:e.$data,attrs:e==null?void 0:e.$attrs}}},$_attrsPT:function(){return Object.entries(this.$attrs||{}).filter(function(e){var n=An(e,1),r=n[0];return r==null?void 0:r.startsWith("pt:")}).reduce(function(e,n){var r=An(n,2),o=r[0],s=r[1],i=o.split(":"),a=Hf(i),c=a.slice(1);return c==null||c.reduce(function(u,d,m,g){return!u[d]&&(u[d]=m===g.length-1?s:{}),u[d]},e),e},{})},$_attrsWithoutPT:function(){return Object.entries(this.$attrs||{}).filter(function(e){var n=An(e,1),r=n[0];return!(r!=null&&r.startsWith("pt:"))}).reduce(function(e,n){var r=An(n,2),o=r[0],s=r[1];return e[o]=s,e},{})},$attrSelector:function(){return Bn("pc")}}},Kf=`
212
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Di(t,e){if(t){if(typeof t=="string")return ps(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ps(t,e):void 0}}function ps(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function jf(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,o,s,i,a=[],c=!0,u=!1;try{if(s=(n=n.call(t)).next,e===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=s.call(n)).done)&&(a.push(r.value),a.length!==e);c=!0);}catch(d){u=!0,o=d}finally{try{if(!c&&n.return!=null&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return a}}function Mi(t){if(Array.isArray(t))return t}function hs(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function K(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?hs(Object(n),!0).forEach(function(r){In(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):hs(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function In(t,e,n){return(e=Ff(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Ff(t){var e=zf(t,"string");return on(e)=="symbol"?e:e+""}function zf(t,e){if(on(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(on(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Gn={name:"BaseComponent",props:{pt:{type:Object,default:void 0},ptOptions:{type:Object,default:void 0},unstyled:{type:Boolean,default:void 0},dt:{type:Object,default:void 0}},inject:{$parentInstance:{default:void 0}},watch:{isUnstyled:{immediate:!0,handler:function(e){e||(this._loadCoreStyles(),this._themeChangeListener(this._loadCoreStyles))}},dt:{immediate:!0,handler:function(e){var n=this;e?(this._loadScopedThemeStyles(e),this._themeChangeListener(function(){return n._loadScopedThemeStyles(e)})):this._unloadScopedThemeStyles()}}},scopedStyleEl:void 0,rootEl:void 0,beforeCreate:function(){var e,n,r,o,s,i,a,c,u,d,m,g=(e=this.pt)===null||e===void 0?void 0:e._usept,_=g?(n=this.pt)===null||n===void 0||(n=n.originalValue)===null||n===void 0?void 0:n[this.$.type.name]:void 0,v=g?(r=this.pt)===null||r===void 0||(r=r.value)===null||r===void 0?void 0:r[this.$.type.name]:this.pt;(o=v||_)===null||o===void 0||(o=o.hooks)===null||o===void 0||(s=o.onBeforeCreate)===null||s===void 0||s.call(o);var T=(i=this.$primevueConfig)===null||i===void 0||(i=i.pt)===null||i===void 0?void 0:i._usept,w=T?(a=this.$primevue)===null||a===void 0||(a=a.config)===null||a===void 0||(a=a.pt)===null||a===void 0?void 0:a.originalValue:void 0,B=T?(c=this.$primevue)===null||c===void 0||(c=c.config)===null||c===void 0||(c=c.pt)===null||c===void 0?void 0:c.value:(u=this.$primevue)===null||u===void 0||(u=u.config)===null||u===void 0?void 0:u.pt;(d=B||w)===null||d===void 0||(d=d[this.$.type.name])===null||d===void 0||(d=d.hooks)===null||d===void 0||(m=d.onBeforeCreate)===null||m===void 0||m.call(d)},created:function(){this._hook("onCreated")},beforeMount:function(){this._loadStyles(),this._hook("onBeforeMount")},mounted:function(){this.rootEl=je(this.$el,'[data-pc-name="'.concat(Fe(this.$.type.name),'"]')),this.rootEl&&(this.rootEl.setAttribute(this.$attrSelector,""),this.rootEl.$pc=K({name:this.$.type.name},this.$params)),this._hook("onMounted")},beforeUpdate:function(){this._hook("onBeforeUpdate")},updated:function(){this._hook("onUpdated")},beforeUnmount:function(){this._hook("onBeforeUnmount")},unmounted:function(){this._unloadScopedThemeStyles(),this._hook("onUnmounted")},methods:{_hook:function(e){if(!this.$options.hostName){var n=this._usePT(this._getPT(this.pt,this.$.type.name),this._getOptionValue,"hooks.".concat(e)),r=this._useDefaultPT(this._getOptionValue,"hooks.".concat(e));n==null||n(),r==null||r()}},_mergeProps:function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return ro(e)?e.apply(void 0,r):l.mergeProps.apply(void 0,r)},_loadStyles:function(){var e=this,n=function(){lt.isStyleNameLoaded("base")||(ge.loadCSS(e.$styleOptions),e._loadGlobalStyles(),lt.setLoadedStyleName("base")),e._loadThemeStyles()};n(),this._themeChangeListener(n)},_loadCoreStyles:function(){var e,n;!lt.isStyleNameLoaded((e=this.$style)===null||e===void 0?void 0:e.name)&&(n=this.$style)!==null&&n!==void 0&&n.name&&(ms.loadCSS(this.$styleOptions),this.$options.style&&this.$style.loadCSS(this.$styleOptions),lt.setLoadedStyleName(this.$style.name))},_loadGlobalStyles:function(){var e=this._useGlobalPT(this._getOptionValue,"global.css",this.$params);G(e)&&ge.load(e,K({name:"global"},this.$styleOptions))},_loadThemeStyles:function(){var e,n;if(!this.isUnstyled){if(!ee.isStyleNameLoaded("common")){var r,o,s=((r=this.$style)===null||r===void 0||(o=r.getCommonTheme)===null||o===void 0?void 0:o.call(r))||{},i=s.primitive,a=s.semantic;ge.load(i==null?void 0:i.css,K({name:"primitive-variables"},this.$styleOptions)),ge.load(a==null?void 0:a.css,K({name:"semantic-variables"},this.$styleOptions)),ge.loadTheme(K({name:"global-style"},this.$styleOptions)),ee.setLoadedStyleName("common")}if(!ee.isStyleNameLoaded((e=this.$style)===null||e===void 0?void 0:e.name)&&(n=this.$style)!==null&&n!==void 0&&n.name){var c,u,d,m,g=((c=this.$style)===null||c===void 0||(u=c.getComponentTheme)===null||u===void 0?void 0:u.call(c))||{},_=g.css;(d=this.$style)===null||d===void 0||d.load(_,K({name:"".concat(this.$style.name,"-variables")},this.$styleOptions)),(m=this.$style)===null||m===void 0||m.loadTheme(K({name:"".concat(this.$style.name,"-style")},this.$styleOptions)),ee.setLoadedStyleName(this.$style.name)}if(!ee.isStyleNameLoaded("layer-order")){var v,T,w=(v=this.$style)===null||v===void 0||(T=v.getLayerOrderThemeCSS)===null||T===void 0?void 0:T.call(v);ge.load(w,K({name:"layer-order",first:!0},this.$styleOptions)),ee.setLoadedStyleName("layer-order")}}},_loadScopedThemeStyles:function(e){var n,r,o,s=((n=this.$style)===null||n===void 0||(r=n.getPresetTheme)===null||r===void 0?void 0:r.call(n,e,"[".concat(this.$attrSelector,"]")))||{},i=s.css,a=(o=this.$style)===null||o===void 0?void 0:o.load(i,K({name:"".concat(this.$attrSelector,"-").concat(this.$style.name)},this.$styleOptions));this.scopedStyleEl=a.el},_unloadScopedThemeStyles:function(){var e;(e=this.scopedStyleEl)===null||e===void 0||(e=e.value)===null||e===void 0||e.remove()},_themeChangeListener:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(){};lt.clearLoadedStyleNames(),et.on("theme:change",e)},_getHostInstance:function(e){return e?this.$options.hostName?e.$.type.name===this.$options.hostName?e:this._getHostInstance(e.$parentInstance):e.$parentInstance:void 0},_getPropValue:function(e){var n;return this[e]||((n=this._getHostInstance(this))===null||n===void 0?void 0:n[e])},_getOptionValue:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return oo(e,n,r)},_getPTValue:function(){var e,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,i=/./g.test(r)&&!!o[r.split(".")[0]],a=this._getPropValue("ptOptions")||((e=this.$primevueConfig)===null||e===void 0?void 0:e.ptOptions)||{},c=a.mergeSections,u=c===void 0?!0:c,d=a.mergeProps,m=d===void 0?!1:d,g=s?i?this._useGlobalPT(this._getPTClassValue,r,o):this._useDefaultPT(this._getPTClassValue,r,o):void 0,_=i?void 0:this._getPTSelf(n,this._getPTClassValue,r,K(K({},o),{},{global:g||{}})),v=this._getPTDatasets(r);return u||!u&&_?m?this._mergeProps(m,g,_,v):K(K(K({},g),_),v):K(K({},_),v)},_getPTSelf:function(){for(var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return l.mergeProps(this._usePT.apply(this,[this._getPT(e,this.$name)].concat(r)),this._usePT.apply(this,[this.$_attrsPT].concat(r)))},_getPTDatasets:function(){var e,n,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",o="data-pc-",s=r==="root"&&G((e=this.pt)===null||e===void 0?void 0:e["data-pc-section"]);return r!=="transition"&&K(K({},r==="root"&&K(In({},"".concat(o,"name"),Fe(s?(n=this.pt)===null||n===void 0?void 0:n["data-pc-section"]:this.$.type.name)),s&&In({},"".concat(o,"extend"),Fe(this.$.type.name)))),{},In({},"".concat(o,"section"),Fe(r)))},_getPTClassValue:function(){var e=this._getOptionValue.apply(this,arguments);return ke(e)||so(e)?{class:e}:e},_getPT:function(e){var n=this,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",o=arguments.length>2?arguments[2]:void 0,s=function(a){var c,u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,d=o?o(a):a,m=Fe(r),g=Fe(n.$name);return(c=u?m!==g?d==null?void 0:d[m]:void 0:d==null?void 0:d[m])!==null&&c!==void 0?c:d};return e!=null&&e.hasOwnProperty("_usept")?{_usept:e._usept,originalValue:s(e.originalValue),value:s(e.value)}:s(e,!0)},_usePT:function(e,n,r,o){var s=function(T){return n(T,r,o)};if(e!=null&&e.hasOwnProperty("_usept")){var i,a=e._usept||((i=this.$primevueConfig)===null||i===void 0?void 0:i.ptOptions)||{},c=a.mergeSections,u=c===void 0?!0:c,d=a.mergeProps,m=d===void 0?!1:d,g=s(e.originalValue),_=s(e.value);return g===void 0&&_===void 0?void 0:ke(_)?_:ke(g)?g:u||!u&&_?m?this._mergeProps(m,g,_):K(K({},g),_):_}return s(e)},_useGlobalPT:function(e,n,r){return this._usePT(this.globalPT,e,n,r)},_useDefaultPT:function(e,n,r){return this._usePT(this.defaultPT,e,n,r)},ptm:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this._getPTValue(this.pt,e,K(K({},this.$params),n))},ptmi:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return l.mergeProps(this.$_attrsWithoutPT,this.ptm(e,n))},ptmo:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this._getPTValue(e,n,K({instance:this},r),!1)},cx:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.isUnstyled?void 0:this._getOptionValue(this.$style.classes,e,K(K({},this.$params),n))},sx:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(n){var o=this._getOptionValue(this.$style.inlineStyles,e,K(K({},this.$params),r)),s=this._getOptionValue(ms.inlineStyles,e,K(K({},this.$params),r));return[s,o]}}},computed:{globalPT:function(){var e,n=this;return this._getPT((e=this.$primevueConfig)===null||e===void 0?void 0:e.pt,void 0,function(r){return Ie(r,{instance:n})})},defaultPT:function(){var e,n=this;return this._getPT((e=this.$primevueConfig)===null||e===void 0?void 0:e.pt,void 0,function(r){return n._getOptionValue(r,n.$name,K({},n.$params))||Ie(r,K({},n.$params))})},isUnstyled:function(){var e;return this.unstyled!==void 0?this.unstyled:(e=this.$primevueConfig)===null||e===void 0?void 0:e.unstyled},$theme:function(){var e;return(e=this.$primevueConfig)===null||e===void 0?void 0:e.theme},$style:function(){return K(K({classes:void 0,inlineStyles:void 0,load:function(){},loadCSS:function(){},loadTheme:function(){}},(this._getHostInstance(this)||{}).$style),this.$options.style)},$styleOptions:function(){var e;return{nonce:(e=this.$primevueConfig)===null||e===void 0||(e=e.csp)===null||e===void 0?void 0:e.nonce}},$primevueConfig:function(){var e;return(e=this.$primevue)===null||e===void 0?void 0:e.config},$name:function(){return this.$options.hostName||this.$.type.name},$params:function(){var e=this._getHostInstance(this)||this.$parent;return{instance:this,props:this.$props,state:this.$data,attrs:this.$attrs,parent:{instance:e,props:e==null?void 0:e.$props,state:e==null?void 0:e.$data,attrs:e==null?void 0:e.$attrs}}},$_attrsPT:function(){return Object.entries(this.$attrs||{}).filter(function(e){var n=An(e,1),r=n[0];return r==null?void 0:r.startsWith("pt:")}).reduce(function(e,n){var r=An(n,2),o=r[0],s=r[1],i=o.split(":"),a=Hf(i),c=a.slice(1);return c==null||c.reduce(function(u,d,m,g){return!u[d]&&(u[d]=m===g.length-1?s:{}),u[d]},e),e},{})},$_attrsWithoutPT:function(){return Object.entries(this.$attrs||{}).filter(function(e){var n=An(e,1),r=n[0];return!(r!=null&&r.startsWith("pt:"))}).reduce(function(e,n){var r=An(n,2),o=r[0],s=r[1];return e[o]=s,e},{})},$attrSelector:function(){return Bn("pc")}}},Kf=`
213
213
  .p-icon {
214
214
  display: inline-block;
215
215
  vertical-align: baseline;
@@ -385,7 +385,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
385
385
  color: `).concat(n("panelmenu.submenu.icon.focus.color"),`;
386
386
  }
387
387
  `)},rm={root:"p-panelmenu p-component",panel:"p-panelmenu-panel",header:function(e){var n=e.instance,r=e.item;return["p-panelmenu-header",{"p-panelmenu-header-active":n.isItemActive(r)&&!!r.items,"p-disabled":n.isItemDisabled(r)}]},headerContent:"p-panelmenu-header-content",headerLink:"p-panelmenu-header-link",headerIcon:"p-panelmenu-header-icon",headerLabel:"p-panelmenu-header-label",contentContainer:"p-panelmenu-content-container",content:"p-panelmenu-content",rootList:"p-panelmenu-root-list",item:function(e){var n=e.instance,r=e.processedItem;return["p-panelmenu-item",{"p-focus":n.isItemFocused(r),"p-disabled":n.isItemDisabled(r)}]},itemContent:"p-panelmenu-item-content",itemLink:"p-panelmenu-item-link",itemIcon:"p-panelmenu-item-icon",itemLabel:"p-panelmenu-item-label",submenuIcon:"p-panelmenu-submenu-icon",submenu:"p-panelmenu-submenu",separator:"p-menuitem-separator"},om=ge.extend({name:"panelmenu",theme:nm,classes:rm}),vs=Ii();function an(t){"@babel/helpers - typeof";return an=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},an(t)}function bs(t,e){return lm(t)||am(t,e)||im(t,e)||sm()}function sm(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
388
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function im(t,e){if(t){if(typeof t=="string")return ws(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ws(t,e):void 0}}function ws(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function am(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,o,s,i,a=[],c=!0,u=!1;try{if(s=(n=n.call(t)).next,e!==0)for(;!(c=(r=s.call(n)).done)&&(a.push(r.value),a.length!==e);c=!0);}catch(d){u=!0,o=d}finally{try{if(!c&&n.return!=null&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return a}}function lm(t){if(Array.isArray(t))return t}function Ss(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function q(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Ss(Object(n),!0).forEach(function(r){Lr(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ss(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Lr(t,e,n){return(e=cm(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function cm(t){var e=um(t,"string");return an(e)=="symbol"?e:e+""}function um(t,e){if(an(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(an(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var F={_getMeta:function(){return[dt(arguments.length<=0?void 0:arguments[0])||arguments.length<=0?void 0:arguments[0],Ie(dt(arguments.length<=0?void 0:arguments[0])?arguments.length<=0?void 0:arguments[0]:arguments.length<=1?void 0:arguments[1])]},_getConfig:function(e,n){var r,o,s;return(r=(e==null||(o=e.instance)===null||o===void 0?void 0:o.$primevue)||(n==null||(s=n.ctx)===null||s===void 0||(s=s.appContext)===null||s===void 0||(s=s.config)===null||s===void 0||(s=s.globalProperties)===null||s===void 0?void 0:s.$primevue))===null||r===void 0?void 0:r.config},_getOptionValue:oo,_getPTValue:function(){var e,n,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"",i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,c=function(){var C=F._getOptionValue.apply(F,arguments);return ke(C)||so(C)?{class:C}:C},u=((e=r.binding)===null||e===void 0||(e=e.value)===null||e===void 0?void 0:e.ptOptions)||((n=r.$primevueConfig)===null||n===void 0?void 0:n.ptOptions)||{},d=u.mergeSections,m=d===void 0?!0:d,g=u.mergeProps,_=g===void 0?!1:g,v=a?F._useDefaultPT(r,r.defaultPT(),c,s,i):void 0,T=F._usePT(r,F._getPT(o,r.$name),c,s,q(q({},i),{},{global:v||{}})),w=F._getPTDatasets(r,s);return m||!m&&T?_?F._mergeProps(r,_,v,T,w):q(q(q({},v),T),w):q(q({},T),w)},_getPTDatasets:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",r="data-pc-";return q(q({},n==="root"&&Lr({},"".concat(r,"name"),Fe(e.$name))),{},Lr({},"".concat(r,"section"),Fe(n)))},_getPT:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",r=arguments.length>2?arguments[2]:void 0,o=function(i){var a,c=r?r(i):i,u=Fe(n);return(a=c==null?void 0:c[u])!==null&&a!==void 0?a:c};return e!=null&&e.hasOwnProperty("_usept")?{_usept:e._usept,originalValue:o(e.originalValue),value:o(e.value)}:o(e)},_usePT:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0,s=arguments.length>4?arguments[4]:void 0,i=function(w){return r(w,o,s)};if(n!=null&&n.hasOwnProperty("_usept")){var a,c=n._usept||((a=e.$primevueConfig)===null||a===void 0?void 0:a.ptOptions)||{},u=c.mergeSections,d=u===void 0?!0:u,m=c.mergeProps,g=m===void 0?!1:m,_=i(n.originalValue),v=i(n.value);return _===void 0&&v===void 0?void 0:ke(v)?v:ke(_)?_:d||!d&&v?g?F._mergeProps(e,g,_,v):q(q({},_),v):v}return i(n)},_useDefaultPT:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0,s=arguments.length>4?arguments[4]:void 0;return F._usePT(e,n,r,o,s)},_loadStyles:function(e,n,r){var o,s=F._getConfig(n,r),i={nonce:s==null||(o=s.csp)===null||o===void 0?void 0:o.nonce};F._loadCoreStyles(e.$instance,i),F._loadThemeStyles(e.$instance,i),F._loadScopedThemeStyles(e.$instance,i),F._themeChangeListener(function(){return F._loadThemeStyles(e.$instance,i)})},_loadCoreStyles:function(){var e,n,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;if(!at.isStyleNameLoaded((e=r.$style)===null||e===void 0?void 0:e.name)&&(n=r.$style)!==null&&n!==void 0&&n.name){var s;ge.loadCSS(o),r.isUnstyled()&&((s=r.$style)===null||s===void 0||s.loadCSS(o)),at.setLoadedStyleName(r.$style.name)}},_loadThemeStyles:function(){var e,n,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;if(!(r!=null&&r.isUnstyled())){if(!ee.isStyleNameLoaded("common")){var s,i,a=((s=r.$style)===null||s===void 0||(i=s.getCommonTheme)===null||i===void 0?void 0:i.call(s))||{},c=a.primitive,u=a.semantic;ge.load(c==null?void 0:c.css,q({name:"primitive-variables"},o)),ge.load(u==null?void 0:u.css,q({name:"semantic-variables"},o)),ge.loadTheme(q({name:"global-style"},o)),ee.setLoadedStyleName("common")}if(!ee.isStyleNameLoaded((e=r.$style)===null||e===void 0?void 0:e.name)&&(n=r.$style)!==null&&n!==void 0&&n.name){var d,m,g,_,v=((d=r.$style)===null||d===void 0||(m=d.getDirectiveTheme)===null||m===void 0?void 0:m.call(d))||{},T=v.css;(g=r.$style)===null||g===void 0||g.load(T,q({name:"".concat(r.$style.name,"-variables")},o)),(_=r.$style)===null||_===void 0||_.loadTheme(q({name:"".concat(r.$style.name,"-style")},o)),ee.setLoadedStyleName(r.$style.name)}if(!ee.isStyleNameLoaded("layer-order")){var w,B,C=(w=r.$style)===null||w===void 0||(B=w.getLayerOrderThemeCSS)===null||B===void 0?void 0:B.call(w);ge.load(C,q({name:"layer-order",first:!0},o)),ee.setLoadedStyleName("layer-order")}}},_loadScopedThemeStyles:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0,r=e.preset();if(r&&e.$attrSelector){var o,s,i,a=((o=e.$style)===null||o===void 0||(s=o.getPresetTheme)===null||s===void 0?void 0:s.call(o,r,"[".concat(e.$attrSelector,"]")))||{},c=a.css,u=(i=e.$style)===null||i===void 0?void 0:i.load(c,q({name:"".concat(e.$attrSelector,"-").concat(e.$style.name)},n));e.scopedStyleEl=u.el}},_themeChangeListener:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(){};at.clearLoadedStyleNames(),et.on("theme:change",e)},_hook:function(e,n,r,o,s,i){var a,c,u="on".concat(ff(n)),d=F._getConfig(o,s),m=r==null?void 0:r.$instance,g=F._usePT(m,F._getPT(o==null||(a=o.value)===null||a===void 0?void 0:a.pt,e),F._getOptionValue,"hooks.".concat(u)),_=F._useDefaultPT(m,d==null||(c=d.pt)===null||c===void 0||(c=c.directives)===null||c===void 0?void 0:c[e],F._getOptionValue,"hooks.".concat(u)),v={el:r,binding:o,vnode:s,prevVnode:i};g==null||g(m,v),_==null||_(m,v)},_mergeProps:function(){for(var e=arguments.length>1?arguments[1]:void 0,n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return ro(e)?e.apply(void 0,r):l.mergeProps.apply(void 0,r)},_extend:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=function(i,a,c,u,d){var m,g,_;a._$instances=a._$instances||{};var v=F._getConfig(c,u),T=a._$instances[e]||{},w=yt(T)?q(q({},n),n==null?void 0:n.methods):{};a._$instances[e]=q(q({},T),{},{$name:e,$host:a,$binding:c,$modifiers:c==null?void 0:c.modifiers,$value:c==null?void 0:c.value,$el:T.$el||a||void 0,$style:q({classes:void 0,inlineStyles:void 0,load:function(){},loadCSS:function(){},loadTheme:function(){}},n==null?void 0:n.style),$primevueConfig:v,$attrSelector:a.$attrSelector,defaultPT:function(){return F._getPT(v==null?void 0:v.pt,void 0,function(C){var A;return C==null||(A=C.directives)===null||A===void 0?void 0:A[e]})},isUnstyled:function(){var C,A;return((C=a.$instance)===null||C===void 0||(C=C.$binding)===null||C===void 0||(C=C.value)===null||C===void 0?void 0:C.unstyled)!==void 0?(A=a.$instance)===null||A===void 0||(A=A.$binding)===null||A===void 0||(A=A.value)===null||A===void 0?void 0:A.unstyled:v==null?void 0:v.unstyled},theme:function(){var C;return(C=a.$instance)===null||C===void 0||(C=C.$primevueConfig)===null||C===void 0?void 0:C.theme},preset:function(){var C;return(C=a.$instance)===null||C===void 0||(C=C.$binding)===null||C===void 0||(C=C.value)===null||C===void 0?void 0:C.dt},ptm:function(){var C,A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return F._getPTValue(a.$instance,(C=a.$instance)===null||C===void 0||(C=C.$binding)===null||C===void 0||(C=C.value)===null||C===void 0?void 0:C.pt,A,q({},j))},ptmo:function(){var C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",j=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return F._getPTValue(a.$instance,C,A,j,!1)},cx:function(){var C,A,j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",X=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return(C=a.$instance)!==null&&C!==void 0&&C.isUnstyled()?void 0:F._getOptionValue((A=a.$instance)===null||A===void 0||(A=A.$style)===null||A===void 0?void 0:A.classes,j,q({},X))},sx:function(){var C,A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,X=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return j?F._getOptionValue((C=a.$instance)===null||C===void 0||(C=C.$style)===null||C===void 0?void 0:C.inlineStyles,A,q({},X)):void 0}},w),a.$instance=a._$instances[e],(m=(g=a.$instance)[i])===null||m===void 0||m.call(g,a,c,u,d),a["$".concat(e)]=a.$instance,F._hook(e,i,a,c,u,d),a.$pd||(a.$pd={}),a.$pd[e]=q(q({},(_=a.$pd)===null||_===void 0?void 0:_[e]),{},{name:e,instance:a.$instance})},o=function(i){var a,c,u,d,m,g=(a=i.$instance)===null||a===void 0?void 0:a.watch;g==null||(c=g.config)===null||c===void 0||c.call(i.$instance,(u=i.$instance)===null||u===void 0?void 0:u.$primevueConfig),vs.on("config:change",function(_){var v,T=_.newValue,w=_.oldValue;return g==null||(v=g.config)===null||v===void 0?void 0:v.call(i.$instance,T,w)}),g==null||(d=g["config.ripple"])===null||d===void 0||d.call(i.$instance,(m=i.$instance)===null||m===void 0||(m=m.$primevueConfig)===null||m===void 0?void 0:m.ripple),vs.on("config:ripple:change",function(_){var v,T=_.newValue,w=_.oldValue;return g==null||(v=g["config.ripple"])===null||v===void 0?void 0:v.call(i.$instance,T,w)})};return{created:function(i,a,c,u){r("created",i,a,c,u)},beforeMount:function(i,a,c,u){i.$attrSelector=Bn("pd"),F._loadStyles(i,a,c),r("beforeMount",i,a,c,u),o(i)},mounted:function(i,a,c,u){F._loadStyles(i,a,c),r("mounted",i,a,c,u)},beforeUpdate:function(i,a,c,u){r("beforeUpdate",i,a,c,u)},updated:function(i,a,c,u){F._loadStyles(i,a,c),r("updated",i,a,c,u)},beforeUnmount:function(i,a,c,u){r("beforeUnmount",i,a,c,u)},unmounted:function(i,a,c,u){var d;(d=i.$instance)===null||d===void 0||(d=d.scopedStyleEl)===null||d===void 0||(d=d.value)===null||d===void 0||d.remove(),r("unmounted",i,a,c,u)}}},extend:function(){var e=F._getMeta.apply(F,arguments),n=bs(e,2),r=n[0],o=n[1];return q({extend:function(){var i=F._getMeta.apply(F,arguments),a=bs(i,2),c=a[0],u=a[1];return F.extend(c,q(q(q({},o),o==null?void 0:o.methods),u))}},F._extend(r,o))}},dm=function(e){var n=e.dt;return`
388
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function im(t,e){if(t){if(typeof t=="string")return ws(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ws(t,e):void 0}}function ws(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function am(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,o,s,i,a=[],c=!0,u=!1;try{if(s=(n=n.call(t)).next,e!==0)for(;!(c=(r=s.call(n)).done)&&(a.push(r.value),a.length!==e);c=!0);}catch(d){u=!0,o=d}finally{try{if(!c&&n.return!=null&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return a}}function lm(t){if(Array.isArray(t))return t}function Ss(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function q(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Ss(Object(n),!0).forEach(function(r){Lr(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ss(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Lr(t,e,n){return(e=cm(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function cm(t){var e=um(t,"string");return an(e)=="symbol"?e:e+""}function um(t,e){if(an(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(an(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var F={_getMeta:function(){return[dt(arguments.length<=0?void 0:arguments[0])||arguments.length<=0?void 0:arguments[0],Ie(dt(arguments.length<=0?void 0:arguments[0])?arguments.length<=0?void 0:arguments[0]:arguments.length<=1?void 0:arguments[1])]},_getConfig:function(e,n){var r,o,s;return(r=(e==null||(o=e.instance)===null||o===void 0?void 0:o.$primevue)||(n==null||(s=n.ctx)===null||s===void 0||(s=s.appContext)===null||s===void 0||(s=s.config)===null||s===void 0||(s=s.globalProperties)===null||s===void 0?void 0:s.$primevue))===null||r===void 0?void 0:r.config},_getOptionValue:oo,_getPTValue:function(){var e,n,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"",i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,c=function(){var C=F._getOptionValue.apply(F,arguments);return ke(C)||so(C)?{class:C}:C},u=((e=r.binding)===null||e===void 0||(e=e.value)===null||e===void 0?void 0:e.ptOptions)||((n=r.$primevueConfig)===null||n===void 0?void 0:n.ptOptions)||{},d=u.mergeSections,m=d===void 0?!0:d,g=u.mergeProps,_=g===void 0?!1:g,v=a?F._useDefaultPT(r,r.defaultPT(),c,s,i):void 0,T=F._usePT(r,F._getPT(o,r.$name),c,s,q(q({},i),{},{global:v||{}})),w=F._getPTDatasets(r,s);return m||!m&&T?_?F._mergeProps(r,_,v,T,w):q(q(q({},v),T),w):q(q({},T),w)},_getPTDatasets:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",r="data-pc-";return q(q({},n==="root"&&Lr({},"".concat(r,"name"),Fe(e.$name))),{},Lr({},"".concat(r,"section"),Fe(n)))},_getPT:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",r=arguments.length>2?arguments[2]:void 0,o=function(i){var a,c=r?r(i):i,u=Fe(n);return(a=c==null?void 0:c[u])!==null&&a!==void 0?a:c};return e!=null&&e.hasOwnProperty("_usept")?{_usept:e._usept,originalValue:o(e.originalValue),value:o(e.value)}:o(e)},_usePT:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0,s=arguments.length>4?arguments[4]:void 0,i=function(w){return r(w,o,s)};if(n!=null&&n.hasOwnProperty("_usept")){var a,c=n._usept||((a=e.$primevueConfig)===null||a===void 0?void 0:a.ptOptions)||{},u=c.mergeSections,d=u===void 0?!0:u,m=c.mergeProps,g=m===void 0?!1:m,_=i(n.originalValue),v=i(n.value);return _===void 0&&v===void 0?void 0:ke(v)?v:ke(_)?_:d||!d&&v?g?F._mergeProps(e,g,_,v):q(q({},_),v):v}return i(n)},_useDefaultPT:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0,s=arguments.length>4?arguments[4]:void 0;return F._usePT(e,n,r,o,s)},_loadStyles:function(e,n,r){var o,s=F._getConfig(n,r),i={nonce:s==null||(o=s.csp)===null||o===void 0?void 0:o.nonce};F._loadCoreStyles(e.$instance,i),F._loadThemeStyles(e.$instance,i),F._loadScopedThemeStyles(e.$instance,i),F._themeChangeListener(function(){return F._loadThemeStyles(e.$instance,i)})},_loadCoreStyles:function(){var e,n,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;if(!lt.isStyleNameLoaded((e=r.$style)===null||e===void 0?void 0:e.name)&&(n=r.$style)!==null&&n!==void 0&&n.name){var s;ge.loadCSS(o),r.isUnstyled()&&((s=r.$style)===null||s===void 0||s.loadCSS(o)),lt.setLoadedStyleName(r.$style.name)}},_loadThemeStyles:function(){var e,n,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;if(!(r!=null&&r.isUnstyled())){if(!ee.isStyleNameLoaded("common")){var s,i,a=((s=r.$style)===null||s===void 0||(i=s.getCommonTheme)===null||i===void 0?void 0:i.call(s))||{},c=a.primitive,u=a.semantic;ge.load(c==null?void 0:c.css,q({name:"primitive-variables"},o)),ge.load(u==null?void 0:u.css,q({name:"semantic-variables"},o)),ge.loadTheme(q({name:"global-style"},o)),ee.setLoadedStyleName("common")}if(!ee.isStyleNameLoaded((e=r.$style)===null||e===void 0?void 0:e.name)&&(n=r.$style)!==null&&n!==void 0&&n.name){var d,m,g,_,v=((d=r.$style)===null||d===void 0||(m=d.getDirectiveTheme)===null||m===void 0?void 0:m.call(d))||{},T=v.css;(g=r.$style)===null||g===void 0||g.load(T,q({name:"".concat(r.$style.name,"-variables")},o)),(_=r.$style)===null||_===void 0||_.loadTheme(q({name:"".concat(r.$style.name,"-style")},o)),ee.setLoadedStyleName(r.$style.name)}if(!ee.isStyleNameLoaded("layer-order")){var w,B,C=(w=r.$style)===null||w===void 0||(B=w.getLayerOrderThemeCSS)===null||B===void 0?void 0:B.call(w);ge.load(C,q({name:"layer-order",first:!0},o)),ee.setLoadedStyleName("layer-order")}}},_loadScopedThemeStyles:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0,r=e.preset();if(r&&e.$attrSelector){var o,s,i,a=((o=e.$style)===null||o===void 0||(s=o.getPresetTheme)===null||s===void 0?void 0:s.call(o,r,"[".concat(e.$attrSelector,"]")))||{},c=a.css,u=(i=e.$style)===null||i===void 0?void 0:i.load(c,q({name:"".concat(e.$attrSelector,"-").concat(e.$style.name)},n));e.scopedStyleEl=u.el}},_themeChangeListener:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(){};lt.clearLoadedStyleNames(),et.on("theme:change",e)},_hook:function(e,n,r,o,s,i){var a,c,u="on".concat(ff(n)),d=F._getConfig(o,s),m=r==null?void 0:r.$instance,g=F._usePT(m,F._getPT(o==null||(a=o.value)===null||a===void 0?void 0:a.pt,e),F._getOptionValue,"hooks.".concat(u)),_=F._useDefaultPT(m,d==null||(c=d.pt)===null||c===void 0||(c=c.directives)===null||c===void 0?void 0:c[e],F._getOptionValue,"hooks.".concat(u)),v={el:r,binding:o,vnode:s,prevVnode:i};g==null||g(m,v),_==null||_(m,v)},_mergeProps:function(){for(var e=arguments.length>1?arguments[1]:void 0,n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return ro(e)?e.apply(void 0,r):l.mergeProps.apply(void 0,r)},_extend:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=function(i,a,c,u,d){var m,g,_;a._$instances=a._$instances||{};var v=F._getConfig(c,u),T=a._$instances[e]||{},w=yt(T)?q(q({},n),n==null?void 0:n.methods):{};a._$instances[e]=q(q({},T),{},{$name:e,$host:a,$binding:c,$modifiers:c==null?void 0:c.modifiers,$value:c==null?void 0:c.value,$el:T.$el||a||void 0,$style:q({classes:void 0,inlineStyles:void 0,load:function(){},loadCSS:function(){},loadTheme:function(){}},n==null?void 0:n.style),$primevueConfig:v,$attrSelector:a.$attrSelector,defaultPT:function(){return F._getPT(v==null?void 0:v.pt,void 0,function(C){var A;return C==null||(A=C.directives)===null||A===void 0?void 0:A[e]})},isUnstyled:function(){var C,A;return((C=a.$instance)===null||C===void 0||(C=C.$binding)===null||C===void 0||(C=C.value)===null||C===void 0?void 0:C.unstyled)!==void 0?(A=a.$instance)===null||A===void 0||(A=A.$binding)===null||A===void 0||(A=A.value)===null||A===void 0?void 0:A.unstyled:v==null?void 0:v.unstyled},theme:function(){var C;return(C=a.$instance)===null||C===void 0||(C=C.$primevueConfig)===null||C===void 0?void 0:C.theme},preset:function(){var C;return(C=a.$instance)===null||C===void 0||(C=C.$binding)===null||C===void 0||(C=C.value)===null||C===void 0?void 0:C.dt},ptm:function(){var C,A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return F._getPTValue(a.$instance,(C=a.$instance)===null||C===void 0||(C=C.$binding)===null||C===void 0||(C=C.value)===null||C===void 0?void 0:C.pt,A,q({},j))},ptmo:function(){var C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",j=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return F._getPTValue(a.$instance,C,A,j,!1)},cx:function(){var C,A,j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",X=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return(C=a.$instance)!==null&&C!==void 0&&C.isUnstyled()?void 0:F._getOptionValue((A=a.$instance)===null||A===void 0||(A=A.$style)===null||A===void 0?void 0:A.classes,j,q({},X))},sx:function(){var C,A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,X=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return j?F._getOptionValue((C=a.$instance)===null||C===void 0||(C=C.$style)===null||C===void 0?void 0:C.inlineStyles,A,q({},X)):void 0}},w),a.$instance=a._$instances[e],(m=(g=a.$instance)[i])===null||m===void 0||m.call(g,a,c,u,d),a["$".concat(e)]=a.$instance,F._hook(e,i,a,c,u,d),a.$pd||(a.$pd={}),a.$pd[e]=q(q({},(_=a.$pd)===null||_===void 0?void 0:_[e]),{},{name:e,instance:a.$instance})},o=function(i){var a,c,u,d,m,g=(a=i.$instance)===null||a===void 0?void 0:a.watch;g==null||(c=g.config)===null||c===void 0||c.call(i.$instance,(u=i.$instance)===null||u===void 0?void 0:u.$primevueConfig),vs.on("config:change",function(_){var v,T=_.newValue,w=_.oldValue;return g==null||(v=g.config)===null||v===void 0?void 0:v.call(i.$instance,T,w)}),g==null||(d=g["config.ripple"])===null||d===void 0||d.call(i.$instance,(m=i.$instance)===null||m===void 0||(m=m.$primevueConfig)===null||m===void 0?void 0:m.ripple),vs.on("config:ripple:change",function(_){var v,T=_.newValue,w=_.oldValue;return g==null||(v=g["config.ripple"])===null||v===void 0?void 0:v.call(i.$instance,T,w)})};return{created:function(i,a,c,u){r("created",i,a,c,u)},beforeMount:function(i,a,c,u){i.$attrSelector=Bn("pd"),F._loadStyles(i,a,c),r("beforeMount",i,a,c,u),o(i)},mounted:function(i,a,c,u){F._loadStyles(i,a,c),r("mounted",i,a,c,u)},beforeUpdate:function(i,a,c,u){r("beforeUpdate",i,a,c,u)},updated:function(i,a,c,u){F._loadStyles(i,a,c),r("updated",i,a,c,u)},beforeUnmount:function(i,a,c,u){r("beforeUnmount",i,a,c,u)},unmounted:function(i,a,c,u){var d;(d=i.$instance)===null||d===void 0||(d=d.scopedStyleEl)===null||d===void 0||(d=d.value)===null||d===void 0||d.remove(),r("unmounted",i,a,c,u)}}},extend:function(){var e=F._getMeta.apply(F,arguments),n=bs(e,2),r=n[0],o=n[1];return q({extend:function(){var i=F._getMeta.apply(F,arguments),a=bs(i,2),c=a[0],u=a[1];return F.extend(c,q(q(q({},o),o==null?void 0:o.methods),u))}},F._extend(r,o))}},dm=function(e){var n=e.dt;return`
389
389
  .p-ink {
390
390
  display: block;
391
391
  position: absolute;
@@ -411,6 +411,6 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
411
411
  `).forEach(function(i){o=i.indexOf(":"),n=i.substring(0,o).trim().toLowerCase(),r=i.substring(o+1).trim(),!(!n||e[n]&&eh[n])&&(n==="set-cookie"?e[n]?e[n].push(r):e[n]=[r]:e[n]=e[n]?e[n]+", "+r:r)}),e},xs=Symbol("internals");function Wt(t){return t&&String(t).trim().toLowerCase()}function On(t){return t===!1||t==null?t:y.isArray(t)?t.map(On):String(t)}function nh(t){const e=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(t);)e[r[1]]=r[2];return e}const rh=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function wr(t,e,n,r,o){if(y.isFunction(r))return r.call(this,e,n);if(o&&(e=n),!!y.isString(e)){if(y.isString(r))return e.indexOf(r)!==-1;if(y.isRegExp(r))return r.test(e)}}function oh(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,n,r)=>n.toUpperCase()+r)}function sh(t,e){const n=y.toCamelCase(" "+e);["get","set","has"].forEach(r=>{Object.defineProperty(t,r+n,{value:function(o,s,i){return this[r].call(this,e,o,s,i)},configurable:!0})})}class Ce{constructor(e){e&&this.set(e)}set(e,n,r){const o=this;function s(a,c,u){const d=Wt(c);if(!d)throw new Error("header name must be a non-empty string");const m=y.findKey(o,d);(!m||o[m]===void 0||u===!0||u===void 0&&o[m]!==!1)&&(o[m||c]=On(a))}const i=(a,c)=>y.forEach(a,(u,d)=>s(u,d,c));if(y.isPlainObject(e)||e instanceof this.constructor)i(e,n);else if(y.isString(e)&&(e=e.trim())&&!rh(e))i(th(e),n);else if(y.isHeaders(e))for(const[a,c]of e.entries())s(c,a,r);else e!=null&&s(n,e,r);return this}get(e,n){if(e=Wt(e),e){const r=y.findKey(this,e);if(r){const o=this[r];if(!n)return o;if(n===!0)return nh(o);if(y.isFunction(n))return n.call(this,o,r);if(y.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,n){if(e=Wt(e),e){const r=y.findKey(this,e);return!!(r&&this[r]!==void 0&&(!n||wr(this,this[r],r,n)))}return!1}delete(e,n){const r=this;let o=!1;function s(i){if(i=Wt(i),i){const a=y.findKey(r,i);a&&(!n||wr(r,r[a],a,n))&&(delete r[a],o=!0)}}return y.isArray(e)?e.forEach(s):s(e),o}clear(e){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const s=n[r];(!e||wr(this,this[s],s,e,!0))&&(delete this[s],o=!0)}return o}normalize(e){const n=this,r={};return y.forEach(this,(o,s)=>{const i=y.findKey(r,s);if(i){n[i]=On(o),delete n[s];return}const a=e?oh(s):String(s).trim();a!==s&&delete n[s],n[a]=On(o),r[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const n=Object.create(null);return y.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=e&&y.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,n])=>e+": "+n).join(`
412
412
  `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...n){const r=new this(e);return n.forEach(o=>r.set(o)),r}static accessor(e){const r=(this[xs]=this[xs]={accessors:{}}).accessors,o=this.prototype;function s(i){const a=Wt(i);r[a]||(sh(o,i),r[a]=!0)}return y.isArray(e)?e.forEach(s):s(e),this}}Ce.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);y.reduceDescriptors(Ce.prototype,({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(r){this[n]=r}}});y.freezeMethods(Ce);function Sr(t,e){const n=this||bn,r=e||n,o=Ce.from(r.headers);let s=r.data;return y.forEach(t,function(a){s=a.call(n,s,o.normalize(),e?e.status:void 0)}),o.normalize(),s}function oa(t){return!!(t&&t.__CANCEL__)}function Dt(t,e,n){M.call(this,t??"canceled",M.ERR_CANCELED,e,n),this.name="CanceledError"}y.inherits(Dt,M,{__CANCEL__:!0});function sa(t,e,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?t(n):e(new M("Request failed with status code "+n.status,[M.ERR_BAD_REQUEST,M.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function ih(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function ah(t,e){t=t||10;const n=new Array(t),r=new Array(t);let o=0,s=0,i;return e=e!==void 0?e:1e3,function(c){const u=Date.now(),d=r[s];i||(i=u),n[o]=c,r[o]=u;let m=s,g=0;for(;m!==o;)g+=n[m++],m=m%t;if(o=(o+1)%t,o===s&&(s=(s+1)%t),u-i<e)return;const _=d&&u-d;return _?Math.round(g*1e3/_):void 0}}function lh(t,e){let n=0,r=1e3/e,o,s;const i=(u,d=Date.now())=>{n=d,o=null,s&&(clearTimeout(s),s=null),t.apply(null,u)};return[(...u)=>{const d=Date.now(),m=d-n;m>=r?i(u,d):(o=u,s||(s=setTimeout(()=>{s=null,i(o)},r-m)))},()=>o&&i(o)]}const Mn=(t,e,n=3)=>{let r=0;const o=ah(50,250);return lh(s=>{const i=s.loaded,a=s.lengthComputable?s.total:void 0,c=i-r,u=o(c),d=i<=a;r=i;const m={loaded:i,total:a,progress:a?i/a:void 0,bytes:c,rate:u||void 0,estimated:u&&a&&d?(a-i)/u:void 0,event:s,lengthComputable:a!=null,[e?"download":"upload"]:!0};t(m)},n)},Os=(t,e)=>{const n=t!=null;return[r=>e[0]({lengthComputable:n,total:t,loaded:r}),e[1]]},Ls=t=>(...e)=>y.asap(()=>t(...e)),ch=ze.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function o(s){let i=s;return e&&(n.setAttribute("href",i),i=n.href),n.setAttribute("href",i),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=o(window.location.href),function(i){const a=y.isString(i)?o(i):i;return a.protocol===r.protocol&&a.host===r.host}}():function(){return function(){return!0}}(),uh=ze.hasStandardBrowserEnv?{write(t,e,n,r,o,s){const i=[t+"="+encodeURIComponent(e)];y.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),y.isString(r)&&i.push("path="+r),y.isString(o)&&i.push("domain="+o),s===!0&&i.push("secure"),document.cookie=i.join("; ")},read(t){const e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function dh(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function fh(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function ia(t,e){return t&&!dh(e)?fh(t,e):e}const $s=t=>t instanceof Ce?{...t}:t;function _t(t,e){e=e||{};const n={};function r(u,d,m){return y.isPlainObject(u)&&y.isPlainObject(d)?y.merge.call({caseless:m},u,d):y.isPlainObject(d)?y.merge({},d):y.isArray(d)?d.slice():d}function o(u,d,m){if(y.isUndefined(d)){if(!y.isUndefined(u))return r(void 0,u,m)}else return r(u,d,m)}function s(u,d){if(!y.isUndefined(d))return r(void 0,d)}function i(u,d){if(y.isUndefined(d)){if(!y.isUndefined(u))return r(void 0,u)}else return r(void 0,d)}function a(u,d,m){if(m in e)return r(u,d);if(m in t)return r(void 0,u)}const c={url:s,method:s,data:s,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:a,headers:(u,d)=>o($s(u),$s(d),!0)};return y.forEach(Object.keys(Object.assign({},t,e)),function(d){const m=c[d]||o,g=m(t[d],e[d],d);y.isUndefined(g)&&m!==a||(n[d]=g)}),n}const aa=t=>{const e=_t({},t);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:s,headers:i,auth:a}=e;e.headers=i=Ce.from(i),e.url=ta(ia(e.baseURL,e.url),t.params,t.paramsSerializer),a&&i.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):"")));let c;if(y.isFormData(n)){if(ze.hasStandardBrowserEnv||ze.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if((c=i.getContentType())!==!1){const[u,...d]=c?c.split(";").map(m=>m.trim()).filter(Boolean):[];i.setContentType([u||"multipart/form-data",...d].join("; "))}}if(ze.hasStandardBrowserEnv&&(r&&y.isFunction(r)&&(r=r(e)),r||r!==!1&&ch(e.url))){const u=o&&s&&uh.read(s);u&&i.set(o,u)}return e},mh=typeof XMLHttpRequest<"u",ph=mh&&function(t){return new Promise(function(n,r){const o=aa(t);let s=o.data;const i=Ce.from(o.headers).normalize();let{responseType:a,onUploadProgress:c,onDownloadProgress:u}=o,d,m,g,_,v;function T(){_&&_(),v&&v(),o.cancelToken&&o.cancelToken.unsubscribe(d),o.signal&&o.signal.removeEventListener("abort",d)}let w=new XMLHttpRequest;w.open(o.method.toUpperCase(),o.url,!0),w.timeout=o.timeout;function B(){if(!w)return;const A=Ce.from("getAllResponseHeaders"in w&&w.getAllResponseHeaders()),X={data:!a||a==="text"||a==="json"?w.responseText:w.response,status:w.status,statusText:w.statusText,headers:A,config:t,request:w};sa(function(J){n(J),T()},function(J){r(J),T()},X),w=null}"onloadend"in w?w.onloadend=B:w.onreadystatechange=function(){!w||w.readyState!==4||w.status===0&&!(w.responseURL&&w.responseURL.indexOf("file:")===0)||setTimeout(B)},w.onabort=function(){w&&(r(new M("Request aborted",M.ECONNABORTED,t,w)),w=null)},w.onerror=function(){r(new M("Network Error",M.ERR_NETWORK,t,w)),w=null},w.ontimeout=function(){let j=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const X=o.transitional||na;o.timeoutErrorMessage&&(j=o.timeoutErrorMessage),r(new M(j,X.clarifyTimeoutError?M.ETIMEDOUT:M.ECONNABORTED,t,w)),w=null},s===void 0&&i.setContentType(null),"setRequestHeader"in w&&y.forEach(i.toJSON(),function(j,X){w.setRequestHeader(X,j)}),y.isUndefined(o.withCredentials)||(w.withCredentials=!!o.withCredentials),a&&a!=="json"&&(w.responseType=o.responseType),u&&([g,v]=Mn(u,!0),w.addEventListener("progress",g)),c&&w.upload&&([m,_]=Mn(c),w.upload.addEventListener("progress",m),w.upload.addEventListener("loadend",_)),(o.cancelToken||o.signal)&&(d=A=>{w&&(r(!A||A.type?new Dt(null,t,w):A),w.abort(),w=null)},o.cancelToken&&o.cancelToken.subscribe(d),o.signal&&(o.signal.aborted?d():o.signal.addEventListener("abort",d)));const C=ih(o.url);if(C&&ze.protocols.indexOf(C)===-1){r(new M("Unsupported protocol "+C+":",M.ERR_BAD_REQUEST,t));return}w.send(s||null)})},hh=(t,e)=>{let n=new AbortController,r;const o=function(c){if(!r){r=!0,i();const u=c instanceof Error?c:this.reason;n.abort(u instanceof M?u:new Dt(u instanceof Error?u.message:u))}};let s=e&&setTimeout(()=>{o(new M(`timeout ${e} of ms exceeded`,M.ETIMEDOUT))},e);const i=()=>{t&&(s&&clearTimeout(s),s=null,t.forEach(c=>{c&&(c.removeEventListener?c.removeEventListener("abort",o):c.unsubscribe(o))}),t=null)};t.forEach(c=>c&&c.addEventListener&&c.addEventListener("abort",o));const{signal:a}=n;return a.unsubscribe=i,[a,()=>{s&&clearTimeout(s),s=null}]},gh=function*(t,e){let n=t.byteLength;if(!e||n<e){yield t;return}let r=0,o;for(;r<n;)o=r+e,yield t.slice(r,o),r=o},yh=async function*(t,e,n){for await(const r of t)yield*gh(ArrayBuffer.isView(r)?r:await n(String(r)),e)},Rs=(t,e,n,r,o)=>{const s=yh(t,e,o);let i=0,a,c=u=>{a||(a=!0,r&&r(u))};return new ReadableStream({async pull(u){try{const{done:d,value:m}=await s.next();if(d){c(),u.close();return}let g=m.byteLength;if(n){let _=i+=g;n(_)}u.enqueue(new Uint8Array(m))}catch(d){throw c(d),d}},cancel(u){return c(u),s.return()}},{highWaterMark:2})},Qn=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",la=Qn&&typeof ReadableStream=="function",Br=Qn&&(typeof TextEncoder=="function"?(t=>e=>t.encode(e))(new TextEncoder):async t=>new Uint8Array(await new Response(t).arrayBuffer())),ca=(t,...e)=>{try{return!!t(...e)}catch{return!1}},vh=la&&ca(()=>{let t=!1;const e=new Request(ze.origin,{body:new ReadableStream,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!e}),Ns=64*1024,Dr=la&&ca(()=>y.isReadableStream(new Response("").body)),Un={stream:Dr&&(t=>t.body)};Qn&&(t=>{["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!Un[e]&&(Un[e]=y.isFunction(t[e])?n=>n[e]():(n,r)=>{throw new M(`Response type '${e}' is not supported`,M.ERR_NOT_SUPPORT,r)})})})(new Response);const bh=async t=>{if(t==null)return 0;if(y.isBlob(t))return t.size;if(y.isSpecCompliantForm(t))return(await new Request(t).arrayBuffer()).byteLength;if(y.isArrayBufferView(t)||y.isArrayBuffer(t))return t.byteLength;if(y.isURLSearchParams(t)&&(t=t+""),y.isString(t))return(await Br(t)).byteLength},wh=async(t,e)=>{const n=y.toFiniteNumber(t.getContentLength());return n??bh(e)},Sh=Qn&&(async t=>{let{url:e,method:n,data:r,signal:o,cancelToken:s,timeout:i,onDownloadProgress:a,onUploadProgress:c,responseType:u,headers:d,withCredentials:m="same-origin",fetchOptions:g}=aa(t);u=u?(u+"").toLowerCase():"text";let[_,v]=o||s||i?hh([o,s],i):[],T,w;const B=()=>{!T&&setTimeout(()=>{_&&_.unsubscribe()}),T=!0};let C;try{if(c&&vh&&n!=="get"&&n!=="head"&&(C=await wh(d,r))!==0){let ne=new Request(e,{method:"POST",body:r,duplex:"half"}),J;if(y.isFormData(r)&&(J=ne.headers.get("content-type"))&&d.setContentType(J),ne.body){const[pe,se]=Os(C,Mn(Ls(c)));r=Rs(ne.body,Ns,pe,se,Br)}}y.isString(m)||(m=m?"include":"omit"),w=new Request(e,{...g,signal:_,method:n.toUpperCase(),headers:d.normalize().toJSON(),body:r,duplex:"half",credentials:m});let A=await fetch(w);const j=Dr&&(u==="stream"||u==="response");if(Dr&&(a||j)){const ne={};["status","statusText","headers"].forEach(U=>{ne[U]=A[U]});const J=y.toFiniteNumber(A.headers.get("content-length")),[pe,se]=a&&Os(J,Mn(Ls(a),!0))||[];A=new Response(Rs(A.body,Ns,pe,()=>{se&&se(),j&&B()},Br),ne)}u=u||"text";let X=await Un[y.findKey(Un,u)||"text"](A,t);return!j&&B(),v&&v(),await new Promise((ne,J)=>{sa(ne,J,{data:X,headers:Ce.from(A.headers),status:A.status,statusText:A.statusText,config:t,request:w})})}catch(A){throw B(),A&&A.name==="TypeError"&&/fetch/i.test(A.message)?Object.assign(new M("Network Error",M.ERR_NETWORK,t,w),{cause:A.cause||A}):M.from(A,A&&A.code,t,w)}}),Mr={http:Mp,xhr:ph,fetch:Sh};y.forEach(Mr,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const Bs=t=>`- ${t}`,_h=t=>y.isFunction(t)||t===null||t===!1,ua={getAdapter:t=>{t=y.isArray(t)?t:[t];const{length:e}=t;let n,r;const o={};for(let s=0;s<e;s++){n=t[s];let i;if(r=n,!_h(n)&&(r=Mr[(i=String(n)).toLowerCase()],r===void 0))throw new M(`Unknown adapter '${i}'`);if(r)break;o[i||"#"+s]=r}if(!r){const s=Object.entries(o).map(([a,c])=>`adapter ${a} `+(c===!1?"is not supported by the environment":"is not available in the build"));let i=e?s.length>1?`since :
413
413
  `+s.map(Bs).join(`
414
- `):" "+Bs(s[0]):"as no adapter specified";throw new M("There is no suitable adapter to dispatch the request "+i,"ERR_NOT_SUPPORT")}return r},adapters:Mr};function _r(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new Dt(null,t)}function Ds(t){return _r(t),t.headers=Ce.from(t.headers),t.data=Sr.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),ua.getAdapter(t.adapter||bn.adapter)(t).then(function(r){return _r(t),r.data=Sr.call(t,t.transformResponse,r),r.headers=Ce.from(r.headers),r},function(r){return oa(r)||(_r(t),r&&r.response&&(r.response.data=Sr.call(t,t.transformResponse,r.response),r.response.headers=Ce.from(r.response.headers))),Promise.reject(r)})}const da="1.7.4",fo={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{fo[t]=function(r){return typeof r===t||"a"+(e<1?"n ":" ")+t}});const Ms={};fo.transitional=function(e,n,r){function o(s,i){return"[Axios v"+da+"] Transitional option '"+s+"'"+i+(r?". "+r:"")}return(s,i,a)=>{if(e===!1)throw new M(o(i," has been removed"+(n?" in "+n:"")),M.ERR_DEPRECATED);return n&&!Ms[i]&&(Ms[i]=!0,console.warn(o(i," has been deprecated since v"+n+" and will be removed in the near future"))),e?e(s,i,a):!0}};function kh(t,e,n){if(typeof t!="object")throw new M("options must be an object",M.ERR_BAD_OPTION_VALUE);const r=Object.keys(t);let o=r.length;for(;o-- >0;){const s=r[o],i=e[s];if(i){const a=t[s],c=a===void 0||i(a,s,t);if(c!==!0)throw new M("option "+s+" must be "+c,M.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new M("Unknown option "+s,M.ERR_BAD_OPTION)}}const Ur={assertOptions:kh,validators:fo},it=Ur.validators;class vt{constructor(e){this.defaults=e,this.interceptors={request:new Is,response:new Is}}async request(e,n){try{return await this._request(e,n)}catch(r){if(r instanceof Error){let o;Error.captureStackTrace?Error.captureStackTrace(o={}):o=new Error;const s=o.stack?o.stack.replace(/^.+\n/,""):"";try{r.stack?s&&!String(r.stack).endsWith(s.replace(/^.+\n.+\n/,""))&&(r.stack+=`
415
- `+s):r.stack=s}catch{}}throw r}}_request(e,n){typeof e=="string"?(n=n||{},n.url=e):n=e||{},n=_t(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:s}=n;r!==void 0&&Ur.assertOptions(r,{silentJSONParsing:it.transitional(it.boolean),forcedJSONParsing:it.transitional(it.boolean),clarifyTimeoutError:it.transitional(it.boolean)},!1),o!=null&&(y.isFunction(o)?n.paramsSerializer={serialize:o}:Ur.assertOptions(o,{encode:it.function,serialize:it.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i=s&&y.merge(s.common,s[n.method]);s&&y.forEach(["delete","get","head","post","put","patch","common"],v=>{delete s[v]}),n.headers=Ce.concat(i,s);const a=[];let c=!0;this.interceptors.request.forEach(function(T){typeof T.runWhen=="function"&&T.runWhen(n)===!1||(c=c&&T.synchronous,a.unshift(T.fulfilled,T.rejected))});const u=[];this.interceptors.response.forEach(function(T){u.push(T.fulfilled,T.rejected)});let d,m=0,g;if(!c){const v=[Ds.bind(this),void 0];for(v.unshift.apply(v,a),v.push.apply(v,u),g=v.length,d=Promise.resolve(n);m<g;)d=d.then(v[m++],v[m++]);return d}g=a.length;let _=n;for(m=0;m<g;){const v=a[m++],T=a[m++];try{_=v(_)}catch(w){T.call(this,w);break}}try{d=Ds.call(this,_)}catch(v){return Promise.reject(v)}for(m=0,g=u.length;m<g;)d=d.then(u[m++],u[m++]);return d}getUri(e){e=_t(this.defaults,e);const n=ia(e.baseURL,e.url);return ta(n,e.params,e.paramsSerializer)}}y.forEach(["delete","get","head","options"],function(e){vt.prototype[e]=function(n,r){return this.request(_t(r||{},{method:e,url:n,data:(r||{}).data}))}});y.forEach(["post","put","patch"],function(e){function n(r){return function(s,i,a){return this.request(_t(a||{},{method:e,headers:r?{"Content-Type":"multipart/form-data"}:{},url:s,data:i}))}}vt.prototype[e]=n(),vt.prototype[e+"Form"]=n(!0)});class mo{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(s){n=s});const r=this;this.promise.then(o=>{if(!r._listeners)return;let s=r._listeners.length;for(;s-- >0;)r._listeners[s](o);r._listeners=null}),this.promise.then=o=>{let s;const i=new Promise(a=>{r.subscribe(a),s=a}).then(o);return i.cancel=function(){r.unsubscribe(s)},i},e(function(s,i,a){r.reason||(r.reason=new Dt(s,i,a),n(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 n=this._listeners.indexOf(e);n!==-1&&this._listeners.splice(n,1)}static source(){let e;return{token:new mo(function(o){e=o}),cancel:e}}}function Ch(t){return function(n){return t.apply(null,n)}}function Eh(t){return y.isObject(t)&&t.isAxiosError===!0}const Hr={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(Hr).forEach(([t,e])=>{Hr[e]=t});function fa(t){const e=new vt(t),n=Fi(vt.prototype.request,e);return y.extend(n,vt.prototype,e,{allOwnKeys:!0}),y.extend(n,e,null,{allOwnKeys:!0}),n.create=function(o){return fa(_t(t,o))},n}const re=fa(bn);re.Axios=vt;re.CanceledError=Dt;re.CancelToken=mo;re.isCancel=oa;re.VERSION=da;re.toFormData=Zn;re.AxiosError=M;re.Cancel=re.CanceledError;re.all=function(e){return Promise.all(e)};re.spread=Ch;re.isAxiosError=Eh;re.mergeConfig=_t;re.AxiosHeaders=Ce;re.formToJSON=t=>ra(y.isHTMLForm(t)?new FormData(t):t);re.getAdapter=ua.getAdapter;re.HttpStatusCode=Hr;re.default=re;class ma{constructor(e,n){Se(this,"keycloak");Se(this,"axios");Se(this,"fileName","silent-login.html");this.keycloak=e,this.axios=re.create(),this.axios.defaults.baseURL=n,this.axios.defaults.headers.common["content-type"]="application/json",this.axios.defaults.timeout=1e3*60*5,this.axios.interceptors.request.use(async r=>{await this.SilentLogin();const o=this.keycloak.token;return r.headers.Authorization=`Bearer ${o}`,r})}ParseAppResult(e){try{const n=typeof e.hasSuccess=="boolean",r=typeof e.hasError=="boolean",o=typeof e.httpStatusCode=="number",s=Array.isArray(e.errors);return n&&r&&o&&s?e:null}catch{return null}}HandleThen(e){const n=new un,r=this.ParseAppResult(e.data);return r===null?(n.value=e.data,n):r.hasError?(r.errors.forEach(o=>n.WithError(o)),n.httpStatusCode=r.httpStatusCode,n):(n.value=e.data.value,n)}HandleCatch(e){var o;const n=new un,r=this.ParseAppResult((o=e.response)==null?void 0:o.data);return r===null?n.WithError(e.message):(n.WithErrors(r.errors),n.httpStatusCode=r.httpStatusCode),n}async SilentLogin(){return new Promise(async e=>{if(!this.isTokenExpired){e(!0);return}const n=this.GenerateIframe(),r=o=>{if(document.body.removeChild(n),window.removeEventListener("message",r),o.origin!==location.origin){e(!1);return}const s=o.data.action,i=o.data.code,a=o.data.state,c=o.data.error;if(s!=="silent-login-iframe-result"||c==="login_required"||!i){e(!1);return}const u=new XMLHttpRequest;u.open("POST",this.tokenExchangeUrl,!0),u.setRequestHeader("Content-type","application/x-www-form-urlencoded"),u.onreadystatechange=()=>{if(u.readyState===4){if(u.status===200){const d=JSON.parse(u.responseText);this.keycloak.setToken(d.access_token,null,d.id_token,new Date().getTime()),e(!0);return}e(!1)}},u.send(this.TokenExchangeParams(i,a))};window.addEventListener("message",r)}).then(e=>(e||(this.keycloak.clearToken(),this.keycloak.login()),e))}GetCodeVerifierFromState(e){const n=`kc-callback-${e}`,r=localStorage.getItem(n);if(r)return localStorage.removeItem(n),JSON.parse(r).pkceCodeVerifier}TokenExchangeParams(e,n){let r=`code=${e}&grant_type=authorization_code`;return r+=`&client_id=${encodeURIComponent(this.keycloak.clientId)}`,r+=`&redirect_uri=${this.silentLoginRedirectUrl}`,r+=`&code_verifier=${this.GetCodeVerifierFromState(n)}`,r}GenerateIframe(){const e=document.createElement("iframe");return e.src=this.keycloak.createLoginUrl({prompt:"none",redirectUri:this.silentLoginRedirectUrl})??"",document.body.appendChild(e),e}get silentLoginRedirectUrl(){return`${location.origin}/${this.fileName}`}get tokenExchangeUrl(){return`${this.keycloak.authServerUrl}/realms/${this.keycloak.realm}/protocol/openid-connect/token`}get isTokenExpired(){const e=this.keycloak.tokenParsed,n=e?e.exp:null;return!e||!n?!0:n-Math.ceil(new Date().getTime()/1e3)+(this.keycloak.timeSkew??0)<10}}const Th=(t,e)=>new ma(t,e);class pa{constructor(){Se(this,"axios");Se(this,"authService",no());this.axios=re.create(),this.axios.defaults.baseURL=window.location.origin+"/api",this.axios.defaults.headers.common["content-type"]="application/json",this.axios.defaults.timeout=1e3*60*5,this.axios.interceptors.request.use(async e=>{const n=await this.GetAccessToken();return e.headers.Authorization=n?`Bearer ${n}`:void 0,e})}GetAxios(e=!0){return e?this.axios:re.create()}async GetAccessToken(){return await this.authService.Instance.getAccessTokenAsync()}async GetAsync(e){return this.GetAxios().get(e).then(n=>this.HandleThen(n)).catch(n=>this.HandleCatch(n))}async PostAsync(e,n){return this.GetAxios().post(e,n).then(r=>this.HandleThen(r)).catch(r=>this.HandleCatch(r))}async PutAsync(e,n){return this.GetAxios().put(e,n).then(r=>this.HandleThen(r)).catch(r=>this.HandleCatch(r))}async DeleteAsync(e){return this.GetAxios().delete(e).then(n=>this.HandleThen(n)).catch(n=>this.HandleCatch(n))}HandleThen(e){const n=new un,r=this.ParsedResponse(e.data);return r===null?(n.httpStatusCode=e.status,n.value=e.data,n):(n.httpStatusCode=r.httpStatusCode,r.hasError?(n.WithErrors(r.errors),n):(n.value=r.value,n))}HandleCatch(e){var o;const n=new un,r=this.ParsedResponse((o=e.response)==null?void 0:o.data);return r===null?(n.WithError(e.message),n):(n.httpStatusCode=r.httpStatusCode,n.WithErrors(r.errors),n)}ParsedResponse(e){try{const n=typeof e.hasSuccess=="boolean",r=typeof e.hasError=="boolean",o=typeof e.httpStatusCode=="number",s=Array.isArray(e.errors);return n&&r&&o&&s?e:null}catch{return null}}}const Ah=()=>new pa;class Hn{static get IsTouch(){return window.matchMedia("(pointer: coarse)").matches}static GetMaxZindex(e=[]){let n="body > *:not(script):not(style)";for(const o of e)n+=`, ${o}`;const r=Math.max(...Array.from(document.querySelectorAll(n)).map(o=>{const s=getComputedStyle(o).zIndex;return+s==+s?+s:0}));return r>=100?r:100}static AjustarFuso(e){const n=e.getTimezoneOffset()/60;e.setHours(e.getHours()-n)}static Mask(e,n){let r=0,o=e.toString();return n.replace(/#/g,()=>o[r++]||"")}static MaskCpf(e){return Hn.Mask(e.padStart(11,"0"),"###.###.###-##")}static MaskCnpj(e){return Hn.Mask(e.padStart(14,"0"),"##.###.###/####-##")}static async DelayAsync(e){return new Promise(n=>setTimeout(n,e))}}function Ph(){document.documentElement.classList.add("app-mounted")}function ha(){St.SetInitialTheme()}function Ih(){St.Toggle()}function xh(){St.EnableDarkMode()}function Oh(){St.EnableLightMode()}function Lh(){St.ClearStoredTheme()}ha();exports.ApiClient=pa;exports.AppResult=un;exports.AxiosClient=ma;exports.ClearStoredTheme=Lh;exports.EnableDarkMode=xh;exports.EnableLightMode=Oh;exports.Keycloak=to;exports.RemovePreloader=Ph;exports.SetInitialTheme=ha;exports.SfButton=Vs;exports.SfContent=Fd;exports.SfDrawer=Hs;exports.SfIcon=Ln;exports.SfLayout=Vd;exports.SfMessage=Qd;exports.SfNavMenu=Zm;exports.SfTabNavigation=Xd;exports.SfTooltip=jr;exports.StartAuthService=wd;exports.ToggleTheme=Ih;exports.UseAlertService=nd;exports.UseApiClient=Ah;exports.UseAuthService=no;exports.UseAxiosClient=Th;exports.UseConfirmService=Ei;exports.UseNavMenuService=Vr;exports.Utilities=Hn;
414
+ `):" "+Bs(s[0]):"as no adapter specified";throw new M("There is no suitable adapter to dispatch the request "+i,"ERR_NOT_SUPPORT")}return r},adapters:Mr};function _r(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new Dt(null,t)}function Ds(t){return _r(t),t.headers=Ce.from(t.headers),t.data=Sr.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),ua.getAdapter(t.adapter||bn.adapter)(t).then(function(r){return _r(t),r.data=Sr.call(t,t.transformResponse,r),r.headers=Ce.from(r.headers),r},function(r){return oa(r)||(_r(t),r&&r.response&&(r.response.data=Sr.call(t,t.transformResponse,r.response),r.response.headers=Ce.from(r.response.headers))),Promise.reject(r)})}const da="1.7.4",fo={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{fo[t]=function(r){return typeof r===t||"a"+(e<1?"n ":" ")+t}});const Ms={};fo.transitional=function(e,n,r){function o(s,i){return"[Axios v"+da+"] Transitional option '"+s+"'"+i+(r?". "+r:"")}return(s,i,a)=>{if(e===!1)throw new M(o(i," has been removed"+(n?" in "+n:"")),M.ERR_DEPRECATED);return n&&!Ms[i]&&(Ms[i]=!0,console.warn(o(i," has been deprecated since v"+n+" and will be removed in the near future"))),e?e(s,i,a):!0}};function kh(t,e,n){if(typeof t!="object")throw new M("options must be an object",M.ERR_BAD_OPTION_VALUE);const r=Object.keys(t);let o=r.length;for(;o-- >0;){const s=r[o],i=e[s];if(i){const a=t[s],c=a===void 0||i(a,s,t);if(c!==!0)throw new M("option "+s+" must be "+c,M.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new M("Unknown option "+s,M.ERR_BAD_OPTION)}}const Ur={assertOptions:kh,validators:fo},at=Ur.validators;class vt{constructor(e){this.defaults=e,this.interceptors={request:new Is,response:new Is}}async request(e,n){try{return await this._request(e,n)}catch(r){if(r instanceof Error){let o;Error.captureStackTrace?Error.captureStackTrace(o={}):o=new Error;const s=o.stack?o.stack.replace(/^.+\n/,""):"";try{r.stack?s&&!String(r.stack).endsWith(s.replace(/^.+\n.+\n/,""))&&(r.stack+=`
415
+ `+s):r.stack=s}catch{}}throw r}}_request(e,n){typeof e=="string"?(n=n||{},n.url=e):n=e||{},n=_t(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:s}=n;r!==void 0&&Ur.assertOptions(r,{silentJSONParsing:at.transitional(at.boolean),forcedJSONParsing:at.transitional(at.boolean),clarifyTimeoutError:at.transitional(at.boolean)},!1),o!=null&&(y.isFunction(o)?n.paramsSerializer={serialize:o}:Ur.assertOptions(o,{encode:at.function,serialize:at.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i=s&&y.merge(s.common,s[n.method]);s&&y.forEach(["delete","get","head","post","put","patch","common"],v=>{delete s[v]}),n.headers=Ce.concat(i,s);const a=[];let c=!0;this.interceptors.request.forEach(function(T){typeof T.runWhen=="function"&&T.runWhen(n)===!1||(c=c&&T.synchronous,a.unshift(T.fulfilled,T.rejected))});const u=[];this.interceptors.response.forEach(function(T){u.push(T.fulfilled,T.rejected)});let d,m=0,g;if(!c){const v=[Ds.bind(this),void 0];for(v.unshift.apply(v,a),v.push.apply(v,u),g=v.length,d=Promise.resolve(n);m<g;)d=d.then(v[m++],v[m++]);return d}g=a.length;let _=n;for(m=0;m<g;){const v=a[m++],T=a[m++];try{_=v(_)}catch(w){T.call(this,w);break}}try{d=Ds.call(this,_)}catch(v){return Promise.reject(v)}for(m=0,g=u.length;m<g;)d=d.then(u[m++],u[m++]);return d}getUri(e){e=_t(this.defaults,e);const n=ia(e.baseURL,e.url);return ta(n,e.params,e.paramsSerializer)}}y.forEach(["delete","get","head","options"],function(e){vt.prototype[e]=function(n,r){return this.request(_t(r||{},{method:e,url:n,data:(r||{}).data}))}});y.forEach(["post","put","patch"],function(e){function n(r){return function(s,i,a){return this.request(_t(a||{},{method:e,headers:r?{"Content-Type":"multipart/form-data"}:{},url:s,data:i}))}}vt.prototype[e]=n(),vt.prototype[e+"Form"]=n(!0)});class mo{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(s){n=s});const r=this;this.promise.then(o=>{if(!r._listeners)return;let s=r._listeners.length;for(;s-- >0;)r._listeners[s](o);r._listeners=null}),this.promise.then=o=>{let s;const i=new Promise(a=>{r.subscribe(a),s=a}).then(o);return i.cancel=function(){r.unsubscribe(s)},i},e(function(s,i,a){r.reason||(r.reason=new Dt(s,i,a),n(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 n=this._listeners.indexOf(e);n!==-1&&this._listeners.splice(n,1)}static source(){let e;return{token:new mo(function(o){e=o}),cancel:e}}}function Ch(t){return function(n){return t.apply(null,n)}}function Eh(t){return y.isObject(t)&&t.isAxiosError===!0}const Hr={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(Hr).forEach(([t,e])=>{Hr[e]=t});function fa(t){const e=new vt(t),n=Fi(vt.prototype.request,e);return y.extend(n,vt.prototype,e,{allOwnKeys:!0}),y.extend(n,e,null,{allOwnKeys:!0}),n.create=function(o){return fa(_t(t,o))},n}const re=fa(bn);re.Axios=vt;re.CanceledError=Dt;re.CancelToken=mo;re.isCancel=oa;re.VERSION=da;re.toFormData=Zn;re.AxiosError=M;re.Cancel=re.CanceledError;re.all=function(e){return Promise.all(e)};re.spread=Ch;re.isAxiosError=Eh;re.mergeConfig=_t;re.AxiosHeaders=Ce;re.formToJSON=t=>ra(y.isHTMLForm(t)?new FormData(t):t);re.getAdapter=ua.getAdapter;re.HttpStatusCode=Hr;re.default=re;class ma{constructor(e,n){Se(this,"keycloak");Se(this,"axios");Se(this,"fileName","silent-login.html");this.keycloak=e,this.axios=re.create(),this.axios.defaults.baseURL=n,this.axios.defaults.headers.common["content-type"]="application/json",this.axios.defaults.timeout=1e3*60*5,this.axios.interceptors.request.use(async r=>{await this.SilentLogin();const o=this.keycloak.token;return r.headers.Authorization=`Bearer ${o}`,r})}ParseAppResult(e){try{const n=typeof e.hasSuccess=="boolean",r=typeof e.hasError=="boolean",o=typeof e.httpStatusCode=="number",s=Array.isArray(e.errors);return n&&r&&o&&s?e:null}catch{return null}}HandleThen(e){const n=new un,r=this.ParseAppResult(e.data);return r===null?(n.value=e.data,n):r.hasError?(r.errors.forEach(o=>n.WithError(o)),n.httpStatusCode=r.httpStatusCode,n):(n.value=e.data.value,n)}HandleCatch(e){var o;const n=new un,r=this.ParseAppResult((o=e.response)==null?void 0:o.data);return r===null?n.WithError(e.message):(n.WithErrors(r.errors),n.httpStatusCode=r.httpStatusCode),n}async SilentLogin(){return new Promise(async e=>{if(!this.isTokenExpired){e(!0);return}const n=this.GenerateIframe(),r=o=>{if(document.body.removeChild(n),window.removeEventListener("message",r),o.origin!==location.origin){e(!1);return}const s=o.data.action,i=o.data.code,a=o.data.state,c=o.data.error;if(s!=="silent-login-iframe-result"||c==="login_required"||!i){e(!1);return}const u=new XMLHttpRequest;u.open("POST",this.tokenExchangeUrl,!0),u.setRequestHeader("Content-type","application/x-www-form-urlencoded"),u.onreadystatechange=()=>{if(u.readyState===4){if(u.status===200){const d=JSON.parse(u.responseText);this.keycloak.setToken(d.access_token,null,d.id_token,new Date().getTime()),e(!0);return}e(!1)}},u.send(this.TokenExchangeParams(i,a))};window.addEventListener("message",r)}).then(e=>(e||(this.keycloak.clearToken(),this.keycloak.login()),e))}GetCodeVerifierFromState(e){const n=`kc-callback-${e}`,r=localStorage.getItem(n);if(r)return localStorage.removeItem(n),JSON.parse(r).pkceCodeVerifier}TokenExchangeParams(e,n){let r=`code=${e}&grant_type=authorization_code`;return r+=`&client_id=${encodeURIComponent(this.keycloak.clientId)}`,r+=`&redirect_uri=${this.silentLoginRedirectUrl}`,r+=`&code_verifier=${this.GetCodeVerifierFromState(n)}`,r}GenerateIframe(){const e=document.createElement("iframe");return e.src=this.keycloak.createLoginUrl({prompt:"none",redirectUri:this.silentLoginRedirectUrl})??"",document.body.appendChild(e),e}get silentLoginRedirectUrl(){return`${location.origin}/${this.fileName}`}get tokenExchangeUrl(){return`${this.keycloak.authServerUrl}/realms/${this.keycloak.realm}/protocol/openid-connect/token`}get isTokenExpired(){const e=this.keycloak.tokenParsed,n=e?e.exp:null;return!e||!n?!0:n-Math.ceil(new Date().getTime()/1e3)+(this.keycloak.timeSkew??0)<10}}const Th=(t,e)=>new ma(t,e);class pa{constructor(){Se(this,"axios");Se(this,"authService",no());this.axios=re.create(),this.axios.defaults.baseURL=window.location.origin+"/api",this.axios.defaults.headers.common["content-type"]="application/json",this.axios.defaults.timeout=1e3*60*5,this.axios.interceptors.request.use(async e=>{const n=await this.GetAccessToken();return e.headers.Authorization=n?`Bearer ${n}`:void 0,e})}GetAxios(e=!0){return e?this.axios:re.create()}async GetAccessToken(){return await this.authService.Instance.getAccessTokenAsync()}async GetAsync(e){return this.GetAxios().get(e).then(n=>this.HandleThen(n)).catch(n=>this.HandleCatch(n))}async PostAsync(e,n){return this.GetAxios().post(e,n).then(r=>this.HandleThen(r)).catch(r=>this.HandleCatch(r))}async PutAsync(e,n){return this.GetAxios().put(e,n).then(r=>this.HandleThen(r)).catch(r=>this.HandleCatch(r))}async DeleteAsync(e){return this.GetAxios().delete(e).then(n=>this.HandleThen(n)).catch(n=>this.HandleCatch(n))}HandleThen(e){const n=new un,r=this.ParsedResponse(e.data);return r===null?(n.httpStatusCode=e.status,n.value=e.data,n):(n.httpStatusCode=r.httpStatusCode,r.hasError?(n.WithErrors(r.errors),n):(n.value=r.value,n))}HandleCatch(e){var o;const n=new un,r=this.ParsedResponse((o=e.response)==null?void 0:o.data);return r===null?(n.WithError(e.message),n):(n.httpStatusCode=r.httpStatusCode,n.WithErrors(r.errors),n)}ParsedResponse(e){try{const n=typeof e.hasSuccess=="boolean",r=typeof e.hasError=="boolean",o=typeof e.httpStatusCode=="number",s=Array.isArray(e.errors);return n&&r&&o&&s?e:null}catch{return null}}}const Ah=()=>new pa;class Hn{static get IsTouch(){return window.matchMedia("(pointer: coarse)").matches}static GetMaxZindex(e=[]){let n="body > *:not(script):not(style)";for(const o of e)n+=`, ${o}`;const r=Math.max(...Array.from(document.querySelectorAll(n)).map(o=>{const s=getComputedStyle(o).zIndex;return+s==+s?+s:0}));return r>=100?r:100}static AjustarFuso(e){const n=e.getTimezoneOffset()/60;e.setHours(e.getHours()-n)}static Mask(e,n){let r=0,o=e.toString();return n.replace(/#/g,()=>o[r++]||"")}static MaskCpf(e){return Hn.Mask(e.padStart(11,"0"),"###.###.###-##")}static MaskCnpj(e){return Hn.Mask(e.padStart(14,"0"),"##.###.###/####-##")}static async DelayAsync(e){return new Promise(n=>setTimeout(n,e))}}function Ph(){document.documentElement.classList.add("app-mounted")}function ha(){St.SetInitialTheme()}function Ih(){St.Toggle()}function xh(){St.EnableDarkMode()}function Oh(){St.EnableLightMode()}function Lh(){St.ClearStoredTheme()}ha();exports.ApiClient=pa;exports.AppResult=un;exports.AxiosClient=ma;exports.ClearStoredTheme=Lh;exports.EnableDarkMode=xh;exports.EnableLightMode=Oh;exports.Keycloak=to;exports.RemovePreloader=Ph;exports.SetInitialTheme=ha;exports.SfButton=Vs;exports.SfContent=Fd;exports.SfDrawer=Hs;exports.SfIcon=Ln;exports.SfLayout=Vd;exports.SfMessage=Qd;exports.SfNavMenu=Zm;exports.SfTabNavigation=Xd;exports.SfTooltip=jr;exports.StartAuthService=wd;exports.ToggleTheme=Ih;exports.UseAlertService=nd;exports.UseApiClient=Ah;exports.UseAuthService=no;exports.UseAxiosClient=Th;exports.UseConfirmService=Ei;exports.UseNavMenuService=Vr;exports.Utilities=Hn;
416
416
  //# sourceMappingURL=sf.prefeiturasp.vuecomponents.cjs.map