@luizleon/sf.prefeiturasp.vuecomponents 4.1.17 → 4.1.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
- (function(j,l){typeof exports=="object"&&typeof module<"u"?l(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],l):(j=typeof globalThis<"u"?globalThis:j||self,l((j.sf=j.sf||{},j.sf.prefeiturasp=j.sf.prefeiturasp||{},j.sf.prefeiturasp.vuecomponents={}),j.Vue))})(this,function(j,l){"use strict";var rh=Object.defineProperty;var oh=(j,l,Et)=>l in j?rh(j,l,{enumerable:!0,configurable:!0,writable:!0,value:Et}):j[l]=Et;var Ne=(j,l,Et)=>oh(j,typeof l!="symbol"?l+"":l,Et);class Et{constructor(){Ne(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 ma=new Et,tr=()=>ma,Sn=(t,e)=>{const n=t.__vccOpts||t;for(const[r,o]of e)n[r]=o;return n},pa={},ha={xmlns:"http://www.w3.org/2000/svg",height:"48",viewBox:"0 -960 960 960",width:"48",class:"sf-svg-icon"};function ga(t,e){return l.openBlock(),l.createElementBlock("svg",ha,e[0]||(e[0]=[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)]))}const ya=Sn(pa,[["render",ga]]);class ba{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 mt=new ba,va=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(mt).Toggle&&l.unref(mt).Toggle(...r))},n[1]||(n[1]=[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)])))}});function po(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}const nr=l.defineComponent({__name:"Tooltip",props:{text:{}},setup(t){const e=t;class n{constructor(){Ne(this,"zIndex");Ne(this,"wrapper");Ne(this,"inner");this.zIndex=po()+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(i){this.inner.textContent=e.text,document.body.appendChild(this.wrapper),this.Position(i),this.wrapper.classList.add("visible")}Hide(){this.wrapper.classList.remove("visible"),this.wrapper.remove()}Position(i){const a=i.currentTarget.getBoundingClientRect();this.FixWidth();const c=this.wrapper,u=10;c.style.top=`${a.bottom-u}px`,c.style.left=`${a.right-u}px`,this.OutOfBottom()&&(c.style.top=`${a.top-c.clientHeight+u}px`),this.OutOfRight()&&(c.style.left=`${a.left-c.clientWidth+u}px`)}FixWidth(){this.wrapper.style.width="fit-content",this.wrapper.style.wordBreak="normal",this.wrapper.style.whiteSpace="nowrap";const i=window.innerWidth/2;this.wrapper.clientWidth>i&&(this.wrapper.style.width=`${i}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,i)=>(l.openBlock(),l.createElementBlock("div",{class:"sf-tooltip-anchor",onMouseenter:i[0]||(i[0]=(...s)=>l.unref(r).Show&&l.unref(r).Show(...s)),onMouseleave:i[1]||(i[1]=(...s)=>l.unref(r).Hide&&l.unref(r).Hide(...s)),onMousedown:i[2]||(i[2]=(...s)=>l.unref(r).Hide&&l.unref(r).Hide(...s))},[l.renderSlot(o.$slots,"default")],32))}}),wa={id:"sf-layout"},Sa={class:"title"},_a={class:"sf-layout-nav-content"},ka={id:"sf-layout-content"},Ca=l.defineComponent({__name:"Layout",emits:["mounted","logout"],setup(t,{emit:e}){const n=tr(),r=e;return l.onMounted(()=>{r("mounted")}),(o,i)=>(l.openBlock(),l.createElementBlock("div",wa,[l.createElementVNode("header",null,[l.createElementVNode("div",{class:l.normalizeClass(["sf-layout-menu-toggler",{invert:l.unref(n).IsVisible}]),onClick:i[0]||(i[0]=s=>l.unref(n).Toggle())},[i[1]||(i[1]=l.createElementVNode("div",{class:"sf-layout-menu-toggler-logo"},null,-1)),l.createVNode(ya)],2),l.createElementVNode("div",Sa,[l.renderSlot(o.$slots,"title")]),l.renderSlot(o.$slots,"action"),l.createVNode(nr,{text:"Tema"},{default:l.withCtx(()=>[l.createVNode(va)]),_:1})]),l.createElementVNode("nav",{class:l.normalizeClass({visible:l.unref(n).IsVisible})},[l.createElementVNode("div",_a,[l.renderSlot(o.$slots,"menu")]),i[2]||(i[2]=l.createElementVNode("div",{class:"sf-layout-nav-footer"},[l.createElementVNode("div",{class:"sf-layout-nav-footer-logo"})],-1))],2),l.createElementVNode("main",{class:l.normalizeClass({"menu-visible":l.unref(n).IsVisible})},[i[3]||(i[3]=l.createElementVNode("section",{id:"sf-layout-page-title"},null,-1)),l.createElementVNode("section",ka,[l.renderSlot(o.$slots,"content")])],2)]))}}),Ea={},Ta={class:"sf-loading-circle"};function Aa(t,e){return l.openBlock(),l.createElementBlock("div",Ta,e[0]||(e[0]=[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)]))}const Pa=Sn(Ea,[["render",Aa]]);class Ze{constructor(e){Ne(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()}}const Ia=["disabled","tabindex"],Oa=["data-color"],_n=Sn(l.defineComponent({__name:"Icon",props:{icon:{},visible:{type:Boolean,default:!0},class:{default:""},style:{type:[Boolean,null,String,Object,Array],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?nr:"div"),r=l.computed(()=>new Ze(e.tooltip?"":"display-content").AddClass("sf-component-loading",e.loading).AddClass("sf-component-disabled",e.disabled).Build()),o=l.computed(()=>new Ze(`${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(i,s)=>(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(Pa,{key:0})):(l.openBlock(),l.createElementBlock(l.Fragment,{key:1},[l.createTextVNode(l.toDisplayString(e.icon),1)],64))],16,Ia),e.dot?(l.openBlock(),l.createElementBlock("span",{key:0,"data-color":e.dotColor},null,8,Oa)):l.createCommentVNode("",!0)],6)):l.createCommentVNode("",!0)]),_:1},8,["text","class"]))}}),[["__scopeId","data-v-7ffc3790"]]),xa=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 i;r=((i=document.getElementById(n))==null?void 0:i.parentElement)??null,r&&r.addEventListener("scroll",function(){e.value=this.scrollTop-this.clientHeight>0})}),(i,s)=>(l.openBlock(),l.createElementBlock("button",{id:n,class:l.normalizeClass(["sf-scrollToTop",{"sf-scrollToTop-visible":e.value}]),onClick:o},null,2))}}),La=l.defineComponent({__name:"Content",props:{class:{},style:{type:[Boolean,null,String,Object,Array]},disableBodyPadding:{type:Boolean},disableHeaderPadding:{type:Boolean},disableFooterPadding:{type:Boolean}},setup(t){const e=t;function n(){return new Ze("sf-content").AddClass(e.class,!!e.class).Build()}function r(){return new Ze("sf-content-body").AddClass("sf-content-no-padding",e.disableBodyPadding).Build()}function o(){return new Ze("sf-content-header").AddClass("sf-content-no-padding",e.disableHeaderPadding).Build()}function i(){return new Ze("sf-content-footer").AddClass("sf-content-no-padding",e.disableFooterPadding).Build()}return(s,a)=>(l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(n()),style:l.normalizeStyle(e.style)},[l.createElementVNode("div",{class:l.normalizeClass(o())},[l.renderSlot(s.$slots,"header")],2),l.createElementVNode("div",{class:l.normalizeClass(r())},[l.renderSlot(s.$slots,"default"),l.createVNode(xa)],2),l.createElementVNode("div",{class:l.normalizeClass(i())},[l.renderSlot(s.$slots,"footer")],2)],6))}}),Ra={class:"sf-tab-navigation"},$a=["data-active"],Ba=["href","onClick"],Na=l.defineComponent({__name:"TabNavigation",props:{tabs:{}},setup(t){const e=t,n=l.ref(null),r=new ResizeObserver(c=>{a()}),o=l.ref(!1),i=l.ref(!1);function s(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,i.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 f=l.resolveComponent("RouterLink");return l.openBlock(),l.createElementBlock("div",Ra,[l.createElementVNode("div",{class:l.normalizeClass(["left-arrow",{active:o.value}]),onClick:u[0]||(u[0]=m=>s(!0))},u[2]||(u[2]=[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)]),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(f,{to:m.route,custom:!0},{default:l.withCtx(({navigate:v,isActive:_})=>[l.createElementVNode("li",{"data-active":_},[l.renderSlot(c.$slots,"item",{item:m,navigate:v,isActive:_},()=>[l.createElementVNode("a",{href:m.route,class:l.normalizeClass({active:_}),onClick:v},l.toDisplayString(m.text),11,Ba)])],8,$a)]),_:2},1032,["to"]))),256))],512),l.createElementVNode("div",{class:l.normalizeClass(["right-arrow",{active:i.value}]),onClick:u[1]||(u[1]=m=>s())},u[3]||(u[3]=[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)]),2)])}}}),Da=["id","name","disabled","data-color","form","type"],Ma={class:"sf-button-label"},Ua=l.defineComponent({__name:"Button",props:{icon:{},visible:{type:Boolean,default:!0},class:{},style:{type:[Boolean,null,String,Object,Array]},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 Ze(`${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(_n,{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(_n,{key:1,loading:!0,size:e.size,"button-props":{tabindex:-1}},null,8,["size"])):l.createCommentVNode("",!0),l.createElementVNode("span",Ma,[l.renderSlot(r.$slots,"default")])],14,Da)):l.createCommentVNode("",!0)}});let Ha=(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 ja=["id"],Va={class:"sf-drawer-header"},Fa={class:"sf-drawer-title"},za={class:"sf-drawer-content"},Ka={key:0,class:"sf-drawer-footer"},Wa=l.defineComponent({__name:"Drawer",props:{visible:{type:Boolean,default:!1},position:{default:"left"},style:{type:[Boolean,null,String,Object,Array]}},emits:["update:visible","open","before-close"],setup(t,{emit:e}){const n=t,r=e,o=l.useSlots(),i=l.ref(n.visible),s=l.ref(!1),a=l.ref(0),c=Ha();function u(){i.value=!1}function f(w){(w.key==="Escape"||w.code==="Escape")&&u()}function m(){r("open"),window.document.addEventListener("keydown",f,!0)}function v(w){a.value=po(),w.style.zIndex=`${a.value}`}function _(w){var N;r("before-close"),(N=w==null?void 0:w.parentElement)==null||N.classList.add("sf-mask-overlay-leave")}function b(){window.document.removeEventListener("keydown",f,!0),s.value=!1}function O(){return new Ze("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=>{i.value=w}),l.watch(()=>i.value,w=>{r("update:visible",w),w&&(s.value=!0)}),(w,N)=>(l.openBlock(),l.createBlock(l.Teleport,{to:"body"},[s.value?(l.openBlock(),l.createElementBlock("div",{key:0,id:l.unref(c),class:l.normalizeClass(O()),style:l.normalizeStyle({zIndex:a.value-1}),onClick:l.withModifiers(u,["stop"])},[l.createVNode(l.Transition,{name:"sf-drawer",appear:"",onBeforeEnter:v,onEnter:m,onBeforeLeave:_,onAfterLeave:b},{default:l.withCtx(()=>[i.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:N[0]||(N[0]=l.withModifiers(C=>w.void,["stop"]))},[l.createElementVNode("div",Va,[l.createElementVNode("span",Fa,[l.renderSlot(w.$slots,"title")]),l.createVNode(_n,{button:!0,icon:"close",onClick:l.withModifiers(u,["stop"])})]),l.createElementVNode("div",za,[l.renderSlot(w.$slots,"default")]),l.unref(o).footer?(l.openBlock(),l.createElementBlock("div",Ka,[l.renderSlot(w.$slots,"footer")])):l.createCommentVNode("",!0)],6)):l.createCommentVNode("",!0)]),_:3})],14,ja)):l.createCommentVNode("",!0)]))}}),qa=["data-icon"],Ga=l.defineComponent({__name:"Message",props:{color:{default:"info"},class:{},style:{type:[Boolean,null,String,Object,Array]},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 Ze("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,i)=>(l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(r.value),"data-icon":n.value},[l.renderSlot(o.$slots,"default")],10,qa))}});function Ya(t,e){return t?t.classList?t.classList.contains(e):new RegExp("(^| )"+e+"( |$)","gi").test(t.className):!1}function Ja(t,e){if(t&&e){const n=r=>{Ya(t,r)||(t.classList?t.classList.add(r):t.className+=" "+r)};[e].flat().filter(Boolean).forEach(r=>r.split(" ").forEach(n))}}function rr(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 Xa(t,e){return t instanceof HTMLElement?t.offsetWidth:0}function kn(t){return typeof HTMLElement=="object"?t instanceof HTMLElement:t&&typeof t=="object"&&t!==null&&t.nodeType===1&&typeof t.nodeName=="string"}function Cn(t,e={}){if(kn(t)){const n=(r,o)=>{var i,s;const a=(i=t==null?void 0:t.$attrs)!=null&&i[r]?[(s=t==null?void 0:t.$attrs)==null?void 0:s[r]]:[];return[o].flat().reduce((c,u)=>{if(u!=null){const f=typeof u;if(f==="string"||f==="number")c.push(u);else if(f==="object"){const m=Array.isArray(u)?n(r,u):Object.entries(u).map(([v,_])=>r==="style"&&(_||_===0)?`${v.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}:${_}`:_?v:void 0);c=m.length?c.concat(m.filter(v=>!!v)):c}}return c},a)};Object.entries(e).forEach(([r,o])=>{if(o!=null){const i=r.match(/^on(.+)/);i?t.addEventListener(i[1].toLowerCase(),o):r==="p-bind"?Cn(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 Za(t,e={},...n){{const r=document.createElement(t);return Cn(r,e),r.append(...n),r}}function De(t,e){return kn(t)?t.matches(e)?t:t.querySelector(e):null}function Ht(t,e){t&&document.activeElement!==t&&t.focus(e)}function jt(t,e){if(kn(t)){const n=t.getAttribute(e);return isNaN(n)?n==="true"||n==="false"?n==="true":n:+n}}function ho(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 Qa(t){if(t){let e=t.parentNode;return e&&e instanceof ShadowRoot&&e.host&&(e=e.host),e}return null}function el(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 tl(t,e){return t?t.offsetHeight:0}function nl(t){return!!(t!==null&&typeof t<"u"&&t.nodeName&&Qa(t))}function go(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 rl(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function ol(t,e="",n){kn(t)&&n!==null&&n!==void 0&&t.setAttribute(e,n)}function yo(){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 pt(t){return t==null||t===""||Array.isArray(t)&&t.length===0||!(t instanceof Date)&&typeof t=="object"&&Object.keys(t).length===0}function or(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,i,s;if(n&&r){if(i=t.length,i!=e.length)return!1;for(o=i;o--!==0;)if(!or(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,f=e instanceof RegExp;if(u!=f)return!1;if(u&&f)return t.toString()==e.toString();var m=Object.keys(t);if(i=m.length,i!==Object.keys(e).length)return!1;for(o=i;o--!==0;)if(!Object.prototype.hasOwnProperty.call(e,m[o]))return!1;for(o=i;o--!==0;)if(s=m[o],!or(t[s],e[s]))return!1;return!0}return t!==t&&e!==e}function ir(t){return!!(t&&t.constructor&&t.call&&t.apply)}function J(t){return!pt(t)}function Tt(t,e,n){return or(t,e)}function bo(t,e){let n;if(J(t))try{n=t.findLast(e)}catch{n=[...t].reverse().find(e)}return n}function it(t,e=!0){return t instanceof Object&&t.constructor===Object&&(e||Object.keys(t).length!==0)}function Te(t,...e){return ir(t)?t(...e):t}function be(t,e=!0){return typeof t=="string"&&(e||t!=="")}function Me(t){return be(t)?t.replace(/(-|_)/g,"").toLowerCase():t}function sr(t,e="",n={}){const r=Me(e).split("."),o=r.shift();return o?it(t)?sr(Te(t[Object.keys(t).find(i=>Me(i)===o)||""],n),r.join("."),n):void 0:Te(t,n)}function ar(t,e=!0){return Array.isArray(t)&&(e||t.length!==0)}function vo(t){return J(t)&&!isNaN(t)}function il(t=""){return J(t)&&t.length===1&&!!t.match(/\S| /)}function Qe(t,e){if(e){const n=e.test(t);return e.lastIndex=0,n}return!1}function Vt(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 sl(t){return be(t,!1)?t[0].toUpperCase()+t.slice(1):t}function wo(t){return be(t)?t.replace(/(_)/g,"-").replace(/[A-Z]/g,(e,n)=>n===0?e:"-"+e.toLowerCase()).toLowerCase():t}function So(t){return be(t)?t.replace(/[A-Z]/g,(e,n)=>n===0?e:"."+e.toLowerCase()).toLowerCase():t}var En={};function al(t="pui_id_"){return En.hasOwnProperty(t)||(En[t]=0),En[t]++,`${t}${En[t]}`}function Tn(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"pv_id_";return al(t)}var ll=Object.defineProperty,cl=Object.defineProperties,ul=Object.getOwnPropertyDescriptors,An=Object.getOwnPropertySymbols,_o=Object.prototype.hasOwnProperty,ko=Object.prototype.propertyIsEnumerable,Co=(t,e,n)=>e in t?ll(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Ft=(t,e)=>{for(var n in e||(e={}))_o.call(e,n)&&Co(t,n,e[n]);if(An)for(var n of An(e))ko.call(e,n)&&Co(t,n,e[n]);return t},lr=(t,e)=>cl(t,ul(e)),zt=(t,e)=>{var n={};for(var r in t)_o.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&An)for(var r of An(t))e.indexOf(r)<0&&ko.call(t,r)&&(n[r]=t[r]);return n},dl=yo(),et=dl;function Eo(t,e){ar(t)?t.push(...e||[]):it(t)&&Object.assign(t,e)}function fl(t){return it(t)&&t.hasOwnProperty("value")&&t.hasOwnProperty("type")?t.value:t}function To(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(i=>vo(i)?`${i}px`:i).join(" ")}function ml(t){return t.replaceAll(/ /g,"").replace(/[^\w]/g,"-")}function cr(t="",e=""){return ml(`${be(t,!1)&&be(e,!1)?`${t}-`:t}${e}`)}function Ao(t="",e=""){return`--${cr(t,e)}`}function Po(t,e="",n="",r=[],o){if(be(t)){const i=/{([^}]*)}/g,s=t.trim();if(Qe(s,i)){const a=s.replaceAll(i,f=>{const v=f.replace(/{|}/g,"").split(".").filter(_=>!r.some(b=>Qe(_,b)));return`var(${Ao(n,wo(v.join("-")))}${J(o)?`, ${o}`:""})`}),c=/(\d+\s+[\+\-\*\/]\s+\d+)/g,u=/var\([^)]+\)/g;return Qe(a.replace(u,"0"),c)?`calc(${a})`:a}return To(s,e)}else if(vo(t))return To(t,e)}function pl(t,e,n){be(e,!1)&&t.push(`${e}:${n};`)}function Kt(t,e){return t?`${t}{${e}}`:""}var ur=(...t)=>hl(te.getTheme(),...t),hl=(t={},e,n,r="variable")=>{if(e){const{variable:o,options:i}=te.defaults||{},{prefix:s,transform:a}=(t==null?void 0:t.options)||i||{},u=Qe(e,/{([^}]*)}/g)?e:`{${e}}`;return r==="value"||a==="strict"?te.getTokenValue(e):Po(u,void 0,s,[o.excludedKeyRegex],n)}return""};function gl(t,e={}){const n=te.defaults.variable,{prefix:r=n.prefix,selector:o=n.selector,excludedKeyRegex:i=n.excludedKeyRegex}=e,s=(u,f="")=>Object.entries(u).reduce((m,[v,_])=>{const b=Qe(v,i)?cr(f):cr(f,wo(v)),O=fl(_);if(it(O)){const{variables:w,tokens:N}=s(O,b);Eo(m.tokens,N),Eo(m.variables,w)}else m.tokens.push((r?b.replace(`${r}-`,""):b).replaceAll("-",".")),pl(m.variables,Ao(b),Po(O,b,r,[i]));return m},{variables:[],tokens:[]}),{variables:a,tokens:c}=s(t,r);return{value:a,tokens:c,declarations:a.join(""),css:Kt(o,a.join(""))}}var Ue={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 gl(t,{prefix:e==null?void 0:e.prefix})},getCommon({name:t="",theme:e={},params:n,set:r,defaults:o}){var i,s,a,c;const{preset:u,options:f}=e;let m,v,_,b;if(J(u)){const{primitive:O,semantic:w}=u,N=w||{},{colorScheme:C}=N,T=zt(N,["colorScheme"]),z=C||{},{dark:Q}=z,re=zt(z,["dark"]),Z=J(O)?this._toVariables({primitive:O},f):{},ge=J(T)?this._toVariables({semantic:T},f):{},ie=J(re)?this._toVariables({light:re},f):{},H=J(Q)?this._toVariables({dark:Q},f):{},[Le,_e]=[(i=Z.declarations)!=null?i:"",Z.tokens],[Ke,We]=[(s=ge.declarations)!=null?s:"",ge.tokens||[]],[ft,nt]=[(a=ie.declarations)!=null?a:"",ie.tokens||[]],[qe,Je]=[(c=H.declarations)!=null?c:"",H.tokens||[]];m=this.transformCSS(t,Le,"light","variable",f,r,o),v=_e;const ne=this.transformCSS(t,`${Ke}${ft}color-scheme:light`,"light","variable",f,r,o),Be=this.transformCSS(t,`${qe}color-scheme:dark`,"dark","variable",f,r,o);_=`${ne}${Be}`,b=[...new Set([...We,...nt,...Je])]}return{primitive:{css:m,tokens:v},semantic:{css:_,tokens:b}}},getPreset({name:t="",preset:e={},options:n,params:r,set:o,defaults:i,selector:s}){var a,c,u;const f=t.replace("-directive",""),m=e,{colorScheme:v}=m,_=zt(m,["colorScheme"]),b=v||{},{dark:O}=b,w=zt(b,["dark"]),N=J(_)?this._toVariables({[f]:_},n):{},C=J(w)?this._toVariables({[f]:w},n):{},T=J(O)?this._toVariables({[f]:O},n):{},[z,Q]=[(a=N.declarations)!=null?a:"",N.tokens||[]],[re,Z]=[(c=C.declarations)!=null?c:"",C.tokens||[]],[ge,ie]=[(u=T.declarations)!=null?u:"",T.tokens||[]],H=[...new Set([...Q,...Z,...ie])],Le=this.transformCSS(f,`${z}${re}`,"light","variable",n,o,i,s),_e=this.transformCSS(f,ge,"dark","variable",n,o,i,s);return{css:`${Le}${_e}`,tokens:H}},getPresetC({name:t="",theme:e={},params:n,set:r,defaults:o}){var i;const{preset:s,options:a}=e,c=(i=s==null?void 0:s.components)==null?void 0:i[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 i;const s=t.replace("-directive",""),{preset:a,options:c}=e,u=(i=a==null?void 0:a.directives)==null?void 0:i[s];return this.getPreset({name:s,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 ${Te(o.order||"primeui",n)}`:""},getCommonStyleSheet({name:t="",theme:e={},params:n,props:r={},set:o,defaults:i}){const s=this.getCommon({name:t,theme:e,params:n,set:o,defaults:i}),a=Object.entries(r).reduce((c,[u,f])=>c.push(`${u}="${f}"`)&&c,[]).join(" ");return Object.entries(s||{}).reduce((c,[u,f])=>{if(f!=null&&f.css){const m=Vt(f==null?void 0:f.css),v=`${u}-variables`;c.push(`<style type="text/css" data-primevue-style-id="${v}" ${a}>${m}</style>`)}return c},[]).join("")},getStyleSheet({name:t="",theme:e={},params:n,props:r={},set:o,defaults:i}){var s;const a={name:t,theme:e,params:n,set:o,defaults:i},c=(s=t.includes("-directive")?this.getPresetD(a):this.getPresetC(a))==null?void 0:s.css,u=Object.entries(r).reduce((f,[m,v])=>f.push(`${m}="${v}"`)&&f,[]).join(" ");return c?`<style type="text/css" data-primevue-style-id="${t}-variables" ${u}>${Vt(c)}</style>`:""},createTokens(t={},e,n="",r="",o={}){return Object.entries(t).forEach(([i,s])=>{const a=Qe(i,e.variable.excludedKeyRegex)?n:n?`${n}.${So(i)}`:So(i),c=r?`${r}.${i}`:i;it(s)?this.createTokens(s,e,a,c,o):(o[a]||(o[a]={paths:[],computed(u,f={}){if(u){const m=this.paths.find(v=>v.scheme===u)||this.paths.find(v=>v.scheme==="none");return m==null?void 0:m.computed(u,f.binding)}return this.paths.map(m=>m.computed(m.scheme,f[m.scheme]))}}),o[a].paths.push({path:c,value:s,scheme:c.includes("colorScheme.light")?"light":c.includes("colorScheme.dark")?"dark":"none",computed(u,f={}){const m=/{([^}]*)}/g;let v=s;if(f.name=this.path,f.binding||(f.binding={}),Qe(s,m)){const b=s.trim().replaceAll(m,N=>{var C,T;const z=N.replace(/{|}/g,"");return(T=(C=o[z])==null?void 0:C.computed(u,f))==null?void 0:T.value}),O=/(\d+\w*\s+[\+\-\*\/]\s+\d+\w*)/g,w=/var\([^)]+\)/g;v=Qe(b.replace(w,"0"),O)?`calc(${b})`:b}return pt(f.binding)&&delete f.binding,{colorScheme:u,path:this.path,paths:f,value:v.includes("undefined")?void 0:v}}}))}),o},getTokenValue(t,e,n){var r;const i=(c=>c.split(".").filter(f=>!Qe(f.toLowerCase(),n.variable.excludedKeyRegex)).join("."))(e),s=e.includes("colorScheme.light")?"light":e.includes("colorScheme.dark")?"dark":void 0,a=[(r=t[i])==null?void 0:r.computed(s)].flat().filter(c=>c);return a.length===1?a[0].value:a.reduce((c={},u)=>{const f=u,{colorScheme:m}=f,v=zt(f,["colorScheme"]);return c[m]=v,c},void 0)},transformCSS(t,e,n,r,o={},i,s,a){if(J(e)){const{cssLayer:c}=o;if(r!=="style"){const u=this.getColorSchemeOption(o,s),f=a?Kt(a,e):e;e=n==="dark"?u.reduce((m,{selector:v})=>(J(v)&&(m+=v.includes("[CSS]")?v.replace("[CSS]",f):Kt(v,f)),m),""):Kt(a??":root",e)}if(c){const u={name:"primeui",order:"primeui"};it(c)&&(u.name=Te(c.name,{name:t,type:r})),J(u.name)&&(e=Kt(`@layer ${u.name}`,e),i==null||i.layerNames(u.name))}return e}return""}},te={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=lr(Ft({},e),{options:Ft(Ft({},this.defaults.options),e.options)}),this._tokens=Ue.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=lr(Ft({},this.theme),{preset:t}),this._tokens=Ue.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=lr(Ft({},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 Ue.getTokenValue(this.tokens,t,this.defaults)},getCommon(t="",e){return Ue.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 Ue.getPresetC(n)},getDirective(t="",e){const n={name:t,theme:this.theme,params:e,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}};return Ue.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 Ue.getPreset(o)},getLayerOrderCSS(t=""){return Ue.getLayerOrder(t,this.options,{names:this.getLayerNames()},this.defaults)},transformCSS(t="",e,n="style",r){return Ue.transformCSS(t,e,r,n,this.options,{layerNames:this.setLayerNames.bind(this)},this.defaults)},getCommonStyleSheet(t="",e,n={}){return Ue.getCommonStyleSheet({name:t,theme:this.theme,params:e,props:n,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}})},getStyleSheet(t,e,n={}){return Ue.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"))}},st={_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 Wt(t){"@babel/helpers - typeof";return Wt=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},Wt(t)}function Io(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 Oo(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Io(Object(n),!0).forEach(function(r){yl(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Io(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function yl(t,e,n){return(e=bl(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function bl(t){var e=vl(t,"string");return Wt(e)=="symbol"?e:e+""}function vl(t,e){if(Wt(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(Wt(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function wl(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;l.getCurrentInstance()?l.onMounted(t):e?t():l.nextTick(t)}var Sl=0;function _l(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=l.ref(!1),r=l.ref(t),o=l.ref(null),i=rl()?window.document:void 0,s=e.document,a=s===void 0?i:s,c=e.immediate,u=c===void 0?!0:c,f=e.manual,m=f===void 0?!1:f,v=e.name,_=v===void 0?"style_".concat(++Sl):v,b=e.id,O=b===void 0?void 0:b,w=e.media,N=w===void 0?void 0:w,C=e.nonce,T=C===void 0?void 0:C,z=e.first,Q=z===void 0?!1:z,re=e.onMounted,Z=re===void 0?void 0:re,ge=e.onUpdated,ie=ge===void 0?void 0:ge,H=e.onLoad,Le=H===void 0?void 0:H,_e=e.props,Ke=_e===void 0?{}:_e,We=function(){},ft=function(Je){var ne=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(a){var Be=Oo(Oo({},Ke),ne),d=Be.name||_,h=Be.id||O,S=Be.nonce||T;o.value=a.querySelector('style[data-primevue-style-id="'.concat(d,'"]'))||a.getElementById(h)||a.createElement("style"),o.value.isConnected||(r.value=Je||t,Cn(o.value,{type:"text/css",id:h,media:N,nonce:S}),Q?a.head.prepend(o.value):a.head.appendChild(o.value),ol(o.value,"data-primevue-style-id",d),Cn(o.value,Be),o.value.onload=function(P){return Le==null?void 0:Le(P,{name:d})},Z==null||Z(d)),!n.value&&(We=l.watch(r,function(P){o.value.textContent=P,ie==null||ie(d)},{immediate:!0}),n.value=!0)}},nt=function(){!a||!n.value||(We(),nl(o.value)&&a.head.removeChild(o.value),n.value=!1)};return u&&!m&&wl(ft),{id:O,name:_,el:o,css:r,unload:nt,load:ft,isLoaded:l.readonly(n)}}function qt(t){"@babel/helpers - typeof";return qt=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},qt(t)}function xo(t,e){return Tl(t)||El(t,e)||Cl(t,e)||kl()}function kl(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
2
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Cl(t,e){if(t){if(typeof t=="string")return Lo(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)?Lo(t,e):void 0}}function Lo(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 El(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,o,i,s,a=[],c=!0,u=!1;try{if(i=(n=n.call(t)).next,e!==0)for(;!(c=(r=i.call(n)).done)&&(a.push(r.value),a.length!==e);c=!0);}catch(f){u=!0,o=f}finally{try{if(!c&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(u)throw o}}return a}}function Tl(t){if(Array.isArray(t))return t}function Ro(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 dr(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Ro(Object(n),!0).forEach(function(r){Al(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ro(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Al(t,e,n){return(e=Pl(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Pl(t){var e=Il(t,"string");return qt(e)=="symbol"?e:e+""}function Il(t,e){if(qt(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(qt(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Ol=function(e){var n=e.dt;return`
1
+ (function(U,s){typeof exports=="object"&&typeof module<"u"?s(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],s):(U=typeof globalThis<"u"?globalThis:U||self,s((U.sf=U.sf||{},U.sf.prefeiturasp=U.sf.prefeiturasp||{},U.sf.prefeiturasp.vuecomponents={}),U.Vue))})(this,function(U,s){"use strict";var df=Object.defineProperty;var ff=(U,s,pt)=>s in U?df(U,s,{enumerable:!0,configurable:!0,writable:!0,value:pt}):U[s]=pt;var Ke=(U,s,pt)=>ff(U,typeof s!="symbol"?s+"":s,pt);class pt{constructor(){Ke(this,"_visible",s.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 zi=new pt,Bn=()=>zi,an=(t,e)=>{const n=t.__vccOpts||t;for(const[o,r]of e)n[o]=r;return n},Wi={},Gi={xmlns:"http://www.w3.org/2000/svg",height:"48",viewBox:"0 -960 960 960",width:"48",class:"sf-svg-icon"};function qi(t,e){return s.openBlock(),s.createElementBlock("svg",Gi,e[0]||(e[0]=[s.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)]))}const Yi=an(Wi,[["render",qi]]);class Xi{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 Xi,Zi=s.defineComponent({__name:"ThemeToggle",setup(t){return(e,n)=>(s.openBlock(),s.createElementBlock("button",{id:"sf-theme-toggle",onClick:n[0]||(n[0]=(...o)=>s.unref(st).Toggle&&s.unref(st).Toggle(...o))},n[1]||(n[1]=[s.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)])))}});function Ao(t=[]){let e="body > *:not(script):not(style)";for(const o of t)e+=`, ${o}`;const n=Math.max(...Array.from(document.querySelectorAll(e)).map(o=>{const r=getComputedStyle(o).zIndex;return+r==+r?+r:0}));return n>=100?n:100}const Nn=s.defineComponent({__name:"Tooltip",props:{text:{}},setup(t){const e=t;class n{constructor(){Ke(this,"wrapper",null);Ke(this,"inner",null)}Render(){this.wrapper=document.createElement("div"),this.wrapper.classList.add("sf-tooltip-wrapper"),this.wrapper.style.zIndex=`${Ao()??1}`,this.inner=document.createElement("div"),this.inner.classList.add("sf-tooltip-inner"),this.wrapper.appendChild(this.inner)}Show(i){this.Render(),this.inner.textContent=e.text,document.body.appendChild(this.wrapper),this.wrapper.classList.add("visible"),this.Position(i)}Hide(){this.wrapper.classList.remove("visible"),document.body.removeChild(this.wrapper),this.wrapper=null,this.inner=null}Position(i){const a=i.currentTarget.getBoundingClientRect();this.FixWidth();const l=this.wrapper;if(!l)return;const d=5;l.style.top=`${a.top+a.height-d}px`,l.style.left=`${a.left+a.width-d}px`,this.OutOfBottom()&&(l.style.top=`${a.top-l.clientHeight+d}px`),this.OutOfRight()&&(l.style.left=`${a.left-l.clientWidth+d}px`)}FixWidth(){const i=this.wrapper;if(!i)return;i.style.width="fit-content",i.style.wordBreak="normal",i.style.whiteSpace="nowrap";const c=window.innerWidth/2;i.clientWidth>c&&(i.style.width=`${c}px`,i.style.wordBreak="break-word",i.style.whiteSpace="normal")}OutOfBottom(){const i=this.wrapper;if(!i)return!1;const c=i.getBoundingClientRect(),a=window.innerHeight||document.documentElement.clientHeight;return c.bottom+10>a}OutOfRight(){const i=this.wrapper;if(!i)return!1;const c=i.getBoundingClientRect(),a=window.innerWidth||document.documentElement.clientWidth;return c.right+10>a}}const o=new n;return s.onBeforeUnmount(()=>{o.Hide()}),(r,i)=>(s.openBlock(),s.createElementBlock("div",{class:"sf-tooltip-anchor",onMouseenter:i[0]||(i[0]=(...c)=>s.unref(o).Show&&s.unref(o).Show(...c)),onMouseleave:i[1]||(i[1]=(...c)=>s.unref(o).Hide&&s.unref(o).Hide(...c)),onMousedown:i[2]||(i[2]=(...c)=>s.unref(o).Hide&&s.unref(o).Hide(...c))},[s.renderSlot(r.$slots,"default")],32))}}),Ji={id:"sf-layout"},Qi={class:"title"},es={class:"sf-layout-nav-content"},ts={id:"sf-layout-content"},ns=s.defineComponent({__name:"Layout",emits:["mounted","logout"],setup(t,{emit:e}){const n=Bn(),o=e;return s.onMounted(()=>{o("mounted")}),(r,i)=>(s.openBlock(),s.createElementBlock("div",Ji,[s.createElementVNode("header",null,[s.createElementVNode("div",{class:s.normalizeClass(["sf-layout-menu-toggler",{invert:s.unref(n).IsVisible}]),onClick:i[0]||(i[0]=c=>s.unref(n).Toggle())},[i[1]||(i[1]=s.createElementVNode("div",{class:"sf-layout-menu-toggler-logo"},null,-1)),s.createVNode(Yi)],2),s.createElementVNode("div",Qi,[s.renderSlot(r.$slots,"title")]),s.renderSlot(r.$slots,"action"),s.createVNode(Nn,{text:"Tema"},{default:s.withCtx(()=>[s.createVNode(Zi)]),_:1})]),s.createElementVNode("nav",{class:s.normalizeClass({visible:s.unref(n).IsVisible})},[s.createElementVNode("div",es,[s.renderSlot(r.$slots,"menu")]),i[2]||(i[2]=s.createElementVNode("div",{class:"sf-layout-nav-footer"},[s.createElementVNode("div",{class:"sf-layout-nav-footer-logo"})],-1))],2),s.createElementVNode("main",{class:s.normalizeClass({"menu-visible":s.unref(n).IsVisible})},[i[3]||(i[3]=s.createElementVNode("section",{id:"sf-layout-page-title"},null,-1)),s.createElementVNode("section",ts,[s.renderSlot(r.$slots,"content")])],2)]))}}),os={},rs={class:"sf-loading-circle"};function is(t,e){return s.openBlock(),s.createElementBlock("div",rs,e[0]||(e[0]=[s.createElementVNode("div",null,[s.createElementVNode("svg",{viewBox:"25 25 50 50"},[s.createElementVNode("circle",{cx:"50",cy:"50",r:"20",fill:"none","stroke-width":"4","stroke-miterlimit":"10"})])],-1)]))}const ss=an(os,[["render",is]]);class ze{constructor(e){Ke(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()}}const as=["disabled","tabindex"],ls=["data-color"],ln=an(s.defineComponent({__name:"Icon",props:{icon:{},visible:{type:Boolean,default:!0},class:{default:""},style:{type:[Boolean,null,String,Object,Array],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=s.computed(()=>e.tooltip?Nn:"div"),o=s.computed(()=>new ze(e.tooltip?"":"display-content").AddClass("sf-component-loading",e.loading).AddClass("sf-component-disabled",e.disabled).Build()),r=s.computed(()=>new ze(`${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(i,c)=>(s.openBlock(),s.createBlock(s.resolveDynamicComponent(n.value),{text:e.tooltip,class:s.normalizeClass(o.value)},{default:s.withCtx(()=>[e.visible?(s.openBlock(),s.createElementBlock("div",{key:0,style:s.normalizeStyle(e.style),class:s.normalizeClass(r.value)},[s.createElementVNode("button",s.mergeProps({class:["material-symbols-outlined",{"icon-filled":!!e.filled}],disabled:e.disabled||e.loading},e.buttonProps,{tabindex:e.button?void 0:-1}),[e.loading?(s.openBlock(),s.createBlock(ss,{key:0})):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[s.createTextVNode(s.toDisplayString(e.icon),1)],64))],16,as),e.dot?(s.openBlock(),s.createElementBlock("span",{key:0,"data-color":e.dotColor},null,8,ls)):s.createCommentVNode("",!0)],6)):s.createCommentVNode("",!0)]),_:1},8,["text","class"]))}}),[["__scopeId","data-v-7ffc3790"]]),cs=s.defineComponent({__name:"ScrollToTop",setup(t){const e=s.ref(!1),n=`--${+new Date}`;let o=null;function r(){o==null||o.scrollTo(0,0)}return s.onMounted(()=>{var i;o=((i=document.getElementById(n))==null?void 0:i.parentElement)??null,o&&o.addEventListener("scroll",function(){e.value=this.scrollTop-this.clientHeight>0})}),(i,c)=>(s.openBlock(),s.createElementBlock("button",{id:n,class:s.normalizeClass(["sf-scrollToTop",{"sf-scrollToTop-visible":e.value}]),onClick:r},null,2))}}),us=s.defineComponent({__name:"Content",props:{class:{},style:{type:[Boolean,null,String,Object,Array]},disableBodyPadding:{type:Boolean},disableHeaderPadding:{type:Boolean},disableFooterPadding:{type:Boolean}},setup(t){const e=t;function n(){return new ze("sf-content").AddClass(e.class,!!e.class).Build()}function o(){return new ze("sf-content-body").AddClass("sf-content-no-padding",e.disableBodyPadding).Build()}function r(){return new ze("sf-content-header").AddClass("sf-content-no-padding",e.disableHeaderPadding).Build()}function i(){return new ze("sf-content-footer").AddClass("sf-content-no-padding",e.disableFooterPadding).Build()}return(c,a)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(n()),style:s.normalizeStyle(e.style)},[s.createElementVNode("div",{class:s.normalizeClass(r())},[s.renderSlot(c.$slots,"header")],2),s.createElementVNode("div",{class:s.normalizeClass(o())},[s.renderSlot(c.$slots,"default"),s.createVNode(cs)],2),s.createElementVNode("div",{class:s.normalizeClass(i())},[s.renderSlot(c.$slots,"footer")],2)],6))}}),ds={class:"sf-tab-navigation"},fs=["data-active"],ms=["href","onClick"],ps=s.defineComponent({__name:"TabNavigation",props:{tabs:{}},setup(t){const e=t,n=s.ref(null),o=new ResizeObserver(l=>{a()}),r=s.ref(!1),i=s.ref(!1);function c(l=!1){const d=n.value.clientWidth;n.value.scrollLeft+=l?-d:d}function a(){const l=n.value.scrollWidth-n.value.clientWidth;r.value=n.value.scrollLeft>10,i.value=n.value.scrollLeft<l-10}return s.onMounted(()=>{n.value.addEventListener("scroll",a),o.observe(n.value)}),s.onBeforeUnmount(()=>{var l;try{(l=n.value)==null||l.removeEventListener("scroll",a),o.unobserve(n.value),o.disconnect()}catch{}}),(l,d)=>{const m=s.resolveComponent("RouterLink");return s.openBlock(),s.createElementBlock("div",ds,[s.createElementVNode("div",{class:s.normalizeClass(["left-arrow",{active:r.value}]),onClick:d[0]||(d[0]=h=>c(!0))},d[2]||(d[2]=[s.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"},[s.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15.75 19.5L8.25 12l7.5-7.5"})],-1)]),2),s.createElementVNode("ul",{ref_key:"trackerContainer",ref:n},[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(e.tabs,h=>(s.openBlock(),s.createBlock(m,{to:h.route,custom:!0},{default:s.withCtx(({navigate:v,isActive:C})=>[s.createElementVNode("li",{"data-active":C},[s.renderSlot(l.$slots,"item",{item:h,navigate:v,isActive:C},()=>[s.createElementVNode("a",{href:h.route,class:s.normalizeClass({active:C}),onClick:v},s.toDisplayString(h.text),11,ms)])],8,fs)]),_:2},1032,["to"]))),256))],512),s.createElementVNode("div",{class:s.normalizeClass(["right-arrow",{active:i.value}]),onClick:d[1]||(d[1]=h=>c())},d[3]||(d[3]=[s.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"},[s.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M8.25 4.5l7.5 7.5-7.5 7.5"})],-1)]),2)])}}}),hs=["id","name","disabled","data-color","form","type"],gs={class:"sf-button-label"},ys=s.defineComponent({__name:"Button",props:{icon:{},visible:{type:Boolean,default:!0},class:{},style:{type:[Boolean,null,String,Object,Array]},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 ze(`${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(o,r)=>e.visible?(s.openBlock(),s.createElementBlock("button",{key:0,id:e.id,name:e.name,class:s.normalizeClass(n()),style:s.normalizeStyle(e.style),disabled:e.disabled||e.loading,"data-color":e.color,form:e.form,type:e.type},[e.icon?(s.openBlock(),s.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?(s.openBlock(),s.createBlock(ln,{key:1,loading:!0,size:e.size,"button-props":{tabindex:-1}},null,8,["size"])):s.createCommentVNode("",!0),s.createElementVNode("span",gs,[s.renderSlot(o.$slots,"default")])],14,hs)):s.createCommentVNode("",!0)}}),bs={class:"sf-drawer-header"},vs={class:"sf-drawer-title"},ws={class:"sf-drawer-content"},_s={key:0,class:"sf-drawer-footer"},ks=s.defineComponent({__name:"Drawer",props:{visible:{type:Boolean,default:!1},position:{default:"left"},style:{type:[Boolean,null,String,Object,Array]}},emits:["update:visible","open","before-close"],setup(t,{emit:e}){const n=t,o=e,r=s.useSlots(),i=s.ref(n.visible),c=s.ref(!1),a=s.ref(0),l="sf-drawer-"+Math.random().toString(36).slice(2,11)+"-"+Date.now();function d(){i.value=!1}function m(x){(x.key==="Escape"||x.code==="Escape")&&d()}function h(){o("open"),window.document.addEventListener("keydown",m,!0)}function v(x){a.value=Ao(),x.style.zIndex=`${a.value}`}function C(x){var R;o("before-close"),(R=x==null?void 0:x.parentElement)==null||R.classList.add("sf-mask-overlay-leave")}function T(){window.document.removeEventListener("keydown",m,!0),c.value=!1}function $(){return new ze("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 s.watch(()=>n.visible,x=>{i.value=x}),s.watch(()=>i.value,x=>{o("update:visible",x),x&&(c.value=!0)}),(x,R)=>(s.openBlock(),s.createBlock(s.Teleport,{to:"body"},[c.value?(s.openBlock(),s.createElementBlock("div",{key:0,id:l,class:s.normalizeClass($()),style:s.normalizeStyle({zIndex:a.value-1}),onClick:s.withModifiers(d,["stop"])},[s.createVNode(s.Transition,{name:"sf-drawer",appear:"",onBeforeEnter:v,onEnter:h,onBeforeLeave:C,onAfterLeave:T},{default:s.withCtx(()=>[i.value?(s.openBlock(),s.createElementBlock("div",{key:0,class:s.normalizeClass(["sf-drawer",{"sf-drawer-with-footer":!!s.unref(r).footer}]),style:s.normalizeStyle(n.style),role:"dialog",onClick:R[0]||(R[0]=s.withModifiers(I=>x.void,["stop"]))},[s.createElementVNode("div",bs,[s.createElementVNode("span",vs,[s.renderSlot(x.$slots,"title")]),s.createVNode(ln,{button:!0,icon:"close",onClick:s.withModifiers(d,["stop"])})]),s.createElementVNode("div",ws,[s.renderSlot(x.$slots,"default")]),s.unref(r).footer?(s.openBlock(),s.createElementBlock("div",_s,[s.renderSlot(x.$slots,"footer")])):s.createCommentVNode("",!0)],6)):s.createCommentVNode("",!0)]),_:3})],6)):s.createCommentVNode("",!0)]))}}),Ss=["data-icon"],Cs=s.defineComponent({__name:"Message",props:{color:{default:"info"},class:{},style:{type:[Boolean,null,String,Object,Array]},icon:{}},setup(t){const e=t,n=s.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}}),o=s.computed(()=>new ze("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(r,i)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(o.value),"data-icon":n.value},[s.renderSlot(r.$slots,"default")],10,Ss))}});function Is(t,e){return t?t.classList?t.classList.contains(e):new RegExp("(^| )"+e+"( |$)","gi").test(t.className):!1}function Ts(t,e){if(t&&e){const n=o=>{Is(t,o)||(t.classList?t.classList.add(o):t.className+=" "+o)};[e].flat().filter(Boolean).forEach(o=>o.split(" ").forEach(n))}}function Dn(t,e){if(t&&e){const n=o=>{t.classList?t.classList.remove(o):t.className=t.className.replace(new RegExp("(^|\\b)"+o.split(" ").join("|")+"(\\b|$)","gi")," ")};[e].flat().filter(Boolean).forEach(o=>o.split(" ").forEach(n))}}function Es(t,e){return t instanceof HTMLElement?t.offsetWidth:0}function cn(t){return typeof HTMLElement=="object"?t instanceof HTMLElement:t&&typeof t=="object"&&t!==null&&t.nodeType===1&&typeof t.nodeName=="string"}function un(t,e={}){if(cn(t)){const n=(o,r)=>{var i,c;const a=(i=t==null?void 0:t.$attrs)!=null&&i[o]?[(c=t==null?void 0:t.$attrs)==null?void 0:c[o]]:[];return[r].flat().reduce((l,d)=>{if(d!=null){const m=typeof d;if(m==="string"||m==="number")l.push(d);else if(m==="object"){const h=Array.isArray(d)?n(o,d):Object.entries(d).map(([v,C])=>o==="style"&&(C||C===0)?`${v.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}:${C}`:C?v:void 0);l=h.length?l.concat(h.filter(v=>!!v)):l}}return l},a)};Object.entries(e).forEach(([o,r])=>{if(r!=null){const i=o.match(/^on(.+)/);i?t.addEventListener(i[1].toLowerCase(),r):o==="p-bind"?un(t,r):(r=o==="class"?[...new Set(n("class",r))].join(" ").trim():o==="style"?n("style",r).join(";").trim():r,(t.$attrs=t.$attrs||{})&&(t.$attrs[o]=r),t.setAttribute(o,r))}})}}function Ps(t,e={},...n){{const o=document.createElement(t);return un(o,e),o.append(...n),o}}function Le(t,e){return cn(t)?t.matches(e)?t:t.querySelector(e):null}function Pt(t,e){t&&document.activeElement!==t&&t.focus(e)}function At(t,e){if(cn(t)){const n=t.getAttribute(e);return isNaN(n)?n==="true"||n==="false"?n==="true":n:+n}}function xo(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 As(t){if(t){let e=t.parentNode;return e&&e instanceof ShadowRoot&&e.host&&(e=e.host),e}return null}function xs(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 Ls(t,e){return t?t.offsetHeight:0}function Os(t){return!!(t!==null&&typeof t<"u"&&t.nodeName&&As(t))}function Lo(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 $s(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Bs(t,e="",n){cn(t)&&n!==null&&n!==void 0&&t.setAttribute(e,n)}function Oo(){const t=new Map;return{on(e,n){let o=t.get(e);return o?o.push(n):o=[n],t.set(e,o),this},off(e,n){let o=t.get(e);return o&&o.splice(o.indexOf(n)>>>0,1),this},emit(e,n){let o=t.get(e);o&&o.slice().map(r=>{r(n)})},clear(){t.clear()}}}function at(t){return t==null||t===""||Array.isArray(t)&&t.length===0||!(t instanceof Date)&&typeof t=="object"&&Object.keys(t).length===0}function Mn(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){var n=Array.isArray(t),o=Array.isArray(e),r,i,c;if(n&&o){if(i=t.length,i!=e.length)return!1;for(r=i;r--!==0;)if(!Mn(t[r],e[r]))return!1;return!0}if(n!=o)return!1;var a=t instanceof Date,l=e instanceof Date;if(a!=l)return!1;if(a&&l)return t.getTime()==e.getTime();var d=t instanceof RegExp,m=e instanceof RegExp;if(d!=m)return!1;if(d&&m)return t.toString()==e.toString();var h=Object.keys(t);if(i=h.length,i!==Object.keys(e).length)return!1;for(r=i;r--!==0;)if(!Object.prototype.hasOwnProperty.call(e,h[r]))return!1;for(r=i;r--!==0;)if(c=h[r],!Mn(t[c],e[c]))return!1;return!0}return t!==t&&e!==e}function Rn(t){return!!(t&&t.constructor&&t.call&&t.apply)}function G(t){return!at(t)}function ht(t,e,n){return Mn(t,e)}function $o(t,e){let n;if(G(t))try{n=t.findLast(e)}catch{n=[...t].reverse().find(e)}return n}function Qe(t,e=!0){return t instanceof Object&&t.constructor===Object&&(e||Object.keys(t).length!==0)}function _e(t,...e){return Rn(t)?t(...e):t}function pe(t,e=!0){return typeof t=="string"&&(e||t!=="")}function Oe(t){return pe(t)?t.replace(/(-|_)/g,"").toLowerCase():t}function Un(t,e="",n={}){const o=Oe(e).split("."),r=o.shift();return r?Qe(t)?Un(_e(t[Object.keys(t).find(i=>Oe(i)===r)||""],n),o.join("."),n):void 0:_e(t,n)}function Vn(t,e=!0){return Array.isArray(t)&&(e||t.length!==0)}function Bo(t){return G(t)&&!isNaN(t)}function Ns(t=""){return G(t)&&t.length===1&&!!t.match(/\S| /)}function We(t,e){if(e){const n=e.test(t);return e.lastIndex=0,n}return!1}function xt(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 Ds(t){return pe(t,!1)?t[0].toUpperCase()+t.slice(1):t}function No(t){return pe(t)?t.replace(/(_)/g,"-").replace(/[A-Z]/g,(e,n)=>n===0?e:"-"+e.toLowerCase()).toLowerCase():t}function Do(t){return pe(t)?t.replace(/[A-Z]/g,(e,n)=>n===0?e:"."+e.toLowerCase()).toLowerCase():t}var dn={};function Ms(t="pui_id_"){return dn.hasOwnProperty(t)||(dn[t]=0),dn[t]++,`${t}${dn[t]}`}function fn(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"pv_id_";return Ms(t)}var Rs=Object.defineProperty,Us=Object.defineProperties,Vs=Object.getOwnPropertyDescriptors,mn=Object.getOwnPropertySymbols,Mo=Object.prototype.hasOwnProperty,Ro=Object.prototype.propertyIsEnumerable,Uo=(t,e,n)=>e in t?Rs(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Lt=(t,e)=>{for(var n in e||(e={}))Mo.call(e,n)&&Uo(t,n,e[n]);if(mn)for(var n of mn(e))Ro.call(e,n)&&Uo(t,n,e[n]);return t},Hn=(t,e)=>Us(t,Vs(e)),Ot=(t,e)=>{var n={};for(var o in t)Mo.call(t,o)&&e.indexOf(o)<0&&(n[o]=t[o]);if(t!=null&&mn)for(var o of mn(t))e.indexOf(o)<0&&Ro.call(t,o)&&(n[o]=t[o]);return n},Hs=Oo(),Ge=Hs;function Vo(t,e){Vn(t)?t.push(...e||[]):Qe(t)&&Object.assign(t,e)}function js(t){return Qe(t)&&t.hasOwnProperty("value")&&t.hasOwnProperty("type")?t.value:t}function Ho(t,e=""){return["opacity","z-index","line-height","font-weight","flex","flex-grow","flex-shrink","order"].some(o=>e.endsWith(o))?t:`${t}`.trim().split(" ").map(i=>Bo(i)?`${i}px`:i).join(" ")}function Fs(t){return t.replaceAll(/ /g,"").replace(/[^\w]/g,"-")}function jn(t="",e=""){return Fs(`${pe(t,!1)&&pe(e,!1)?`${t}-`:t}${e}`)}function jo(t="",e=""){return`--${jn(t,e)}`}function Fo(t,e="",n="",o=[],r){if(pe(t)){const i=/{([^}]*)}/g,c=t.trim();if(We(c,i)){const a=c.replaceAll(i,m=>{const v=m.replace(/{|}/g,"").split(".").filter(C=>!o.some(T=>We(C,T)));return`var(${jo(n,No(v.join("-")))}${G(r)?`, ${r}`:""})`}),l=/(\d+\s+[\+\-\*\/]\s+\d+)/g,d=/var\([^)]+\)/g;return We(a.replace(d,"0"),l)?`calc(${a})`:a}return Ho(c,e)}else if(Bo(t))return Ho(t,e)}function Ks(t,e,n){pe(e,!1)&&t.push(`${e}:${n};`)}function $t(t,e){return t?`${t}{${e}}`:""}var Fn=(...t)=>zs(Z.getTheme(),...t),zs=(t={},e,n,o="variable")=>{if(e){const{variable:r,options:i}=Z.defaults||{},{prefix:c,transform:a}=(t==null?void 0:t.options)||i||{},d=We(e,/{([^}]*)}/g)?e:`{${e}}`;return o==="value"||a==="strict"?Z.getTokenValue(e):Fo(d,void 0,c,[r.excludedKeyRegex],n)}return""};function Ws(t,e={}){const n=Z.defaults.variable,{prefix:o=n.prefix,selector:r=n.selector,excludedKeyRegex:i=n.excludedKeyRegex}=e,c=(d,m="")=>Object.entries(d).reduce((h,[v,C])=>{const T=We(v,i)?jn(m):jn(m,No(v)),$=js(C);if(Qe($)){const{variables:x,tokens:R}=c($,T);Vo(h.tokens,R),Vo(h.variables,x)}else h.tokens.push((o?T.replace(`${o}-`,""):T).replaceAll("-",".")),Ks(h.variables,jo(T),Fo($,T,o,[i]));return h},{variables:[],tokens:[]}),{variables:a,tokens:l}=c(t,o);return{value:a,tokens:l,declarations:a.join(""),css:$t(r,a.join(""))}}var $e={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 o;return(o=e.map(r=>r.resolve(n)).find(r=>r.matched))!=null?o:this.rules.custom.resolve(n)})}},_toVariables(t,e){return Ws(t,{prefix:e==null?void 0:e.prefix})},getCommon({name:t="",theme:e={},params:n,set:o,defaults:r}){var i,c,a,l;const{preset:d,options:m}=e;let h,v,C,T;if(G(d)){const{primitive:$,semantic:x}=d,R=x||{},{colorScheme:I}=R,B=Ot(R,["colorScheme"]),F=I||{},{dark:J}=F,ye=Ot(F,["dark"]),ee=G($)?this._toVariables({primitive:$},m):{},De=G(B)?this._toVariables({semantic:B},m):{},Ie=G(ye)?this._toVariables({light:ye},m):{},Y=G(J)?this._toVariables({dark:J},m):{},[Q,be]=[(i=ee.declarations)!=null?i:"",ee.tokens],[Me,Te]=[(c=De.declarations)!=null?c:"",De.tokens||[]],[it,Ye]=[(a=Ie.declarations)!=null?a:"",Ie.tokens||[]],[Ve,He]=[(l=Y.declarations)!=null?l:"",Y.tokens||[]];h=this.transformCSS(t,Q,"light","variable",m,o,r),v=be;const mt=this.transformCSS(t,`${Me}${it}color-scheme:light`,"light","variable",m,o,r),xe=this.transformCSS(t,`${Ve}color-scheme:dark`,"dark","variable",m,o,r);C=`${mt}${xe}`,T=[...new Set([...Te,...Ye,...He])]}return{primitive:{css:h,tokens:v},semantic:{css:C,tokens:T}}},getPreset({name:t="",preset:e={},options:n,params:o,set:r,defaults:i,selector:c}){var a,l,d;const m=t.replace("-directive",""),h=e,{colorScheme:v}=h,C=Ot(h,["colorScheme"]),T=v||{},{dark:$}=T,x=Ot(T,["dark"]),R=G(C)?this._toVariables({[m]:C},n):{},I=G(x)?this._toVariables({[m]:x},n):{},B=G($)?this._toVariables({[m]:$},n):{},[F,J]=[(a=R.declarations)!=null?a:"",R.tokens||[]],[ye,ee]=[(l=I.declarations)!=null?l:"",I.tokens||[]],[De,Ie]=[(d=B.declarations)!=null?d:"",B.tokens||[]],Y=[...new Set([...J,...ee,...Ie])],Q=this.transformCSS(m,`${F}${ye}`,"light","variable",n,r,i,c),be=this.transformCSS(m,De,"dark","variable",n,r,i,c);return{css:`${Q}${be}`,tokens:Y}},getPresetC({name:t="",theme:e={},params:n,set:o,defaults:r}){var i;const{preset:c,options:a}=e,l=(i=c==null?void 0:c.components)==null?void 0:i[t];return this.getPreset({name:t,preset:l,options:a,params:n,set:o,defaults:r})},getPresetD({name:t="",theme:e={},params:n,set:o,defaults:r}){var i;const c=t.replace("-directive",""),{preset:a,options:l}=e,d=(i=a==null?void 0:a.directives)==null?void 0:i[c];return this.getPreset({name:c,preset:d,options:l,params:n,set:o,defaults:r})},getColorSchemeOption(t,e){var n;return this.regex.resolve((n=t.darkModeSelector)!=null?n:e.options.darkModeSelector)},getLayerOrder(t,e={},n,o){const{cssLayer:r}=e;return r?`@layer ${_e(r.order||"primeui",n)}`:""},getCommonStyleSheet({name:t="",theme:e={},params:n,props:o={},set:r,defaults:i}){const c=this.getCommon({name:t,theme:e,params:n,set:r,defaults:i}),a=Object.entries(o).reduce((l,[d,m])=>l.push(`${d}="${m}"`)&&l,[]).join(" ");return Object.entries(c||{}).reduce((l,[d,m])=>{if(m!=null&&m.css){const h=xt(m==null?void 0:m.css),v=`${d}-variables`;l.push(`<style type="text/css" data-primevue-style-id="${v}" ${a}>${h}</style>`)}return l},[]).join("")},getStyleSheet({name:t="",theme:e={},params:n,props:o={},set:r,defaults:i}){var c;const a={name:t,theme:e,params:n,set:r,defaults:i},l=(c=t.includes("-directive")?this.getPresetD(a):this.getPresetC(a))==null?void 0:c.css,d=Object.entries(o).reduce((m,[h,v])=>m.push(`${h}="${v}"`)&&m,[]).join(" ");return l?`<style type="text/css" data-primevue-style-id="${t}-variables" ${d}>${xt(l)}</style>`:""},createTokens(t={},e,n="",o="",r={}){return Object.entries(t).forEach(([i,c])=>{const a=We(i,e.variable.excludedKeyRegex)?n:n?`${n}.${Do(i)}`:Do(i),l=o?`${o}.${i}`:i;Qe(c)?this.createTokens(c,e,a,l,r):(r[a]||(r[a]={paths:[],computed(d,m={}){if(d){const h=this.paths.find(v=>v.scheme===d)||this.paths.find(v=>v.scheme==="none");return h==null?void 0:h.computed(d,m.binding)}return this.paths.map(h=>h.computed(h.scheme,m[h.scheme]))}}),r[a].paths.push({path:l,value:c,scheme:l.includes("colorScheme.light")?"light":l.includes("colorScheme.dark")?"dark":"none",computed(d,m={}){const h=/{([^}]*)}/g;let v=c;if(m.name=this.path,m.binding||(m.binding={}),We(c,h)){const T=c.trim().replaceAll(h,R=>{var I,B;const F=R.replace(/{|}/g,"");return(B=(I=r[F])==null?void 0:I.computed(d,m))==null?void 0:B.value}),$=/(\d+\w*\s+[\+\-\*\/]\s+\d+\w*)/g,x=/var\([^)]+\)/g;v=We(T.replace(x,"0"),$)?`calc(${T})`:T}return at(m.binding)&&delete m.binding,{colorScheme:d,path:this.path,paths:m,value:v.includes("undefined")?void 0:v}}}))}),r},getTokenValue(t,e,n){var o;const i=(l=>l.split(".").filter(m=>!We(m.toLowerCase(),n.variable.excludedKeyRegex)).join("."))(e),c=e.includes("colorScheme.light")?"light":e.includes("colorScheme.dark")?"dark":void 0,a=[(o=t[i])==null?void 0:o.computed(c)].flat().filter(l=>l);return a.length===1?a[0].value:a.reduce((l={},d)=>{const m=d,{colorScheme:h}=m,v=Ot(m,["colorScheme"]);return l[h]=v,l},void 0)},transformCSS(t,e,n,o,r={},i,c,a){if(G(e)){const{cssLayer:l}=r;if(o!=="style"){const d=this.getColorSchemeOption(r,c),m=a?$t(a,e):e;e=n==="dark"?d.reduce((h,{selector:v})=>(G(v)&&(h+=v.includes("[CSS]")?v.replace("[CSS]",m):$t(v,m)),h),""):$t(a??":root",e)}if(l){const d={name:"primeui",order:"primeui"};Qe(l)&&(d.name=_e(l.name,{name:t,type:o})),G(d.name)&&(e=$t(`@layer ${d.name}`,e),i==null||i.layerNames(d.name))}return e}return""}},Z={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=Hn(Lt({},e),{options:Lt(Lt({},this.defaults.options),e.options)}),this._tokens=$e.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}),Ge.emit("theme:change",t)},getPreset(){return this.preset},setPreset(t){this._theme=Hn(Lt({},this.theme),{preset:t}),this._tokens=$e.createTokens(t,this.defaults),this.clearLoadedStyleNames(),Ge.emit("preset:change",t),Ge.emit("theme:change",this.theme)},getOptions(){return this.options},setOptions(t){this._theme=Hn(Lt({},this.theme),{options:t}),this.clearLoadedStyleNames(),Ge.emit("options:change",t),Ge.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 $e.getTokenValue(this.tokens,t,this.defaults)},getCommon(t="",e){return $e.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 $e.getPresetC(n)},getDirective(t="",e){const n={name:t,theme:this.theme,params:e,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}};return $e.getPresetD(n)},getCustomPreset(t="",e,n,o){const r={name:t,preset:e,options:this.options,selector:n,params:o,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}};return $e.getPreset(r)},getLayerOrderCSS(t=""){return $e.getLayerOrder(t,this.options,{names:this.getLayerNames()},this.defaults)},transformCSS(t="",e,n="style",o){return $e.transformCSS(t,e,o,n,this.options,{layerNames:this.setLayerNames.bind(this)},this.defaults)},getCommonStyleSheet(t="",e,n={}){return $e.getCommonStyleSheet({name:t,theme:this.theme,params:e,props:n,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}})},getStyleSheet(t,e,n={}){return $e.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),Ge.emit(`theme:${e}:load`,t),!this._loadingStyles.size&&Ge.emit("theme:load"))}},et={_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 Bt(t){"@babel/helpers - typeof";return Bt=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},Bt(t)}function Ko(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,o)}return n}function zo(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Ko(Object(n),!0).forEach(function(o){Gs(t,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ko(Object(n)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(n,o))})}return t}function Gs(t,e,n){return(e=qs(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function qs(t){var e=Ys(t,"string");return Bt(e)=="symbol"?e:e+""}function Ys(t,e){if(Bt(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var o=n.call(t,e||"default");if(Bt(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Xs(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;s.getCurrentInstance()?s.onMounted(t):e?t():s.nextTick(t)}var Zs=0;function Js(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=s.ref(!1),o=s.ref(t),r=s.ref(null),i=$s()?window.document:void 0,c=e.document,a=c===void 0?i:c,l=e.immediate,d=l===void 0?!0:l,m=e.manual,h=m===void 0?!1:m,v=e.name,C=v===void 0?"style_".concat(++Zs):v,T=e.id,$=T===void 0?void 0:T,x=e.media,R=x===void 0?void 0:x,I=e.nonce,B=I===void 0?void 0:I,F=e.first,J=F===void 0?!1:F,ye=e.onMounted,ee=ye===void 0?void 0:ye,De=e.onUpdated,Ie=De===void 0?void 0:De,Y=e.onLoad,Q=Y===void 0?void 0:Y,be=e.props,Me=be===void 0?{}:be,Te=function(){},it=function(He){var mt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(a){var xe=zo(zo({},Me),mt),u=xe.name||C,p=xe.id||$,b=xe.nonce||B;r.value=a.querySelector('style[data-primevue-style-id="'.concat(u,'"]'))||a.getElementById(p)||a.createElement("style"),r.value.isConnected||(o.value=He||t,un(r.value,{type:"text/css",id:p,media:R,nonce:b}),J?a.head.prepend(r.value):a.head.appendChild(r.value),Bs(r.value,"data-primevue-style-id",u),un(r.value,xe),r.value.onload=function(S){return Q==null?void 0:Q(S,{name:u})},ee==null||ee(u)),!n.value&&(Te=s.watch(o,function(S){r.value.textContent=S,Ie==null||Ie(u)},{immediate:!0}),n.value=!0)}},Ye=function(){!a||!n.value||(Te(),Os(r.value)&&a.head.removeChild(r.value),n.value=!1)};return d&&!h&&Xs(it),{id:$,name:C,el:r,css:o,unload:Ye,load:it,isLoaded:s.readonly(n)}}function Nt(t){"@babel/helpers - typeof";return Nt=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},Nt(t)}function Wo(t,e){return na(t)||ta(t,e)||ea(t,e)||Qs()}function Qs(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
2
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ea(t,e){if(t){if(typeof t=="string")return Go(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)?Go(t,e):void 0}}function Go(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,o=Array(e);n<e;n++)o[n]=t[n];return o}function ta(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var o,r,i,c,a=[],l=!0,d=!1;try{if(i=(n=n.call(t)).next,e!==0)for(;!(l=(o=i.call(n)).done)&&(a.push(o.value),a.length!==e);l=!0);}catch(m){d=!0,r=m}finally{try{if(!l&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(d)throw r}}return a}}function na(t){if(Array.isArray(t))return t}function qo(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,o)}return n}function Kn(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?qo(Object(n),!0).forEach(function(o){oa(t,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):qo(Object(n)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(n,o))})}return t}function oa(t,e,n){return(e=ra(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ra(t){var e=ia(t,"string");return Nt(e)=="symbol"?e:e+""}function ia(t,e){if(Nt(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var o=n.call(t,e||"default");if(Nt(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var sa=function(e){var n=e.dt;return`
3
3
  * {
4
4
  box-sizing: border-box;
5
5
  }
@@ -118,7 +118,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
118
118
  background: transparent;
119
119
  }
120
120
  }
121
- `)},xl=function(e){var n=e.dt;return`
121
+ `)},aa=function(e){var n=e.dt;return`
122
122
  .p-hidden-accessible {
123
123
  border: 0;
124
124
  clip: rect(0 0 0 0);
@@ -139,8 +139,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
139
139
  overflow: hidden;
140
140
  padding-right: `.concat(n("scrollbar.width"),`;
141
141
  }
142
- `)},Ll={},Rl={},pe={name:"base",css:xl,theme:Ol,classes:Ll,inlineStyles:Rl,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(i){return i},o=r(Te(e,{dt:ur}));return o?_l(Vt(o),dr({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 te.transformCSS(n.name||e.name,r)})},getCommonTheme:function(e){return te.getCommon(this.name,e)},getComponentTheme:function(e){return te.getComponent(this.name,e)},getDirectiveTheme:function(e){return te.getDirective(this.name,e)},getPresetTheme:function(e,n,r){return te.getCustomPreset(this.name,e,n,r)},getLayerOrderThemeCSS:function(){return te.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=Te(this.css,{dt:ur}),o=Vt("".concat(r).concat(e)),i=Object.entries(n).reduce(function(s,a){var c=xo(a,2),u=c[0],f=c[1];return s.push("".concat(u,'="').concat(f,'"'))&&s},[]).join(" ");return'<style type="text/css" data-primevue-style-id="'.concat(this.name,'" ').concat(i,">").concat(o,"</style>")}return""},getCommonThemeStyleSheet:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return te.getCommonStyleSheet(this.name,e,n)},getThemeStyleSheet:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=[te.getStyleSheet(this.name,e,n)];if(this.theme){var o=this.name==="base"?"global-style":"".concat(this.name,"-style"),i=Te(this.theme,{dt:ur}),s=Vt(te.transformCSS(o,i)),a=Object.entries(n).reduce(function(c,u){var f=xo(u,2),m=f[0],v=f[1];return c.push("".concat(m,'="').concat(v,'"'))&&c},[]).join(" ");r.push('<style type="text/css" data-primevue-style-id="'.concat(o,'" ').concat(a,">").concat(s,"</style>"))}return r.join("")},extend:function(e){return dr(dr({},this),{},{css:void 0,theme:void 0},e)}},$o=pe.extend({name:"common"});function Gt(t){"@babel/helpers - typeof";return Gt=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},Gt(t)}function $l(t){return Mo(t)||Bl(t)||No(t)||Bo()}function Bl(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function Pn(t,e){return Mo(t)||Nl(t,e)||No(t,e)||Bo()}function Bo(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
143
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function No(t,e){if(t){if(typeof t=="string")return Do(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)?Do(t,e):void 0}}function Do(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 Nl(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,o,i,s,a=[],c=!0,u=!1;try{if(i=(n=n.call(t)).next,e===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(a.push(r.value),a.length!==e);c=!0);}catch(f){u=!0,o=f}finally{try{if(!c&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(u)throw o}}return a}}function Mo(t){if(Array.isArray(t))return t}function Uo(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?Uo(Object(n),!0).forEach(function(r){In(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Uo(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function In(t,e,n){return(e=Dl(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Dl(t){var e=Ml(t,"string");return Gt(e)=="symbol"?e:e+""}function Ml(t,e){if(Gt(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(Gt(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var On={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,i,s,a,c,u,f,m,v=(e=this.pt)===null||e===void 0?void 0:e._usept,_=v?(n=this.pt)===null||n===void 0||(n=n.originalValue)===null||n===void 0?void 0:n[this.$.type.name]:void 0,b=v?(r=this.pt)===null||r===void 0||(r=r.value)===null||r===void 0?void 0:r[this.$.type.name]:this.pt;(o=b||_)===null||o===void 0||(o=o.hooks)===null||o===void 0||(i=o.onBeforeCreate)===null||i===void 0||i.call(o);var O=(s=this.$primevueConfig)===null||s===void 0||(s=s.pt)===null||s===void 0?void 0:s._usept,w=O?(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,N=O?(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;(f=N||w)===null||f===void 0||(f=f[this.$.type.name])===null||f===void 0||(f=f.hooks)===null||f===void 0||(m=f.onBeforeCreate)===null||m===void 0||m.call(f)},created:function(){this._hook("onCreated")},beforeMount:function(){this._loadStyles(),this._hook("onBeforeMount")},mounted:function(){this.rootEl=De(this.$el,'[data-pc-name="'.concat(Me(this.$.type.name),'"]')),this.rootEl&&(this.rootEl.setAttribute(this.$attrSelector,""),this.rootEl.$pc=q({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 ir(e)?e.apply(void 0,r):l.mergeProps.apply(void 0,r)},_loadStyles:function(){var e=this,n=function(){st.isStyleNameLoaded("base")||(pe.loadCSS(e.$styleOptions),e._loadGlobalStyles(),st.setLoadedStyleName("base")),e._loadThemeStyles()};n(),this._themeChangeListener(n)},_loadCoreStyles:function(){var e,n;!st.isStyleNameLoaded((e=this.$style)===null||e===void 0?void 0:e.name)&&(n=this.$style)!==null&&n!==void 0&&n.name&&($o.loadCSS(this.$styleOptions),this.$options.style&&this.$style.loadCSS(this.$styleOptions),st.setLoadedStyleName(this.$style.name))},_loadGlobalStyles:function(){var e=this._useGlobalPT(this._getOptionValue,"global.css",this.$params);J(e)&&pe.load(e,q({name:"global"},this.$styleOptions))},_loadThemeStyles:function(){var e,n;if(!this.isUnstyled){if(!te.isStyleNameLoaded("common")){var r,o,i=((r=this.$style)===null||r===void 0||(o=r.getCommonTheme)===null||o===void 0?void 0:o.call(r))||{},s=i.primitive,a=i.semantic;pe.load(s==null?void 0:s.css,q({name:"primitive-variables"},this.$styleOptions)),pe.load(a==null?void 0:a.css,q({name:"semantic-variables"},this.$styleOptions)),pe.loadTheme(q({name:"global-style"},this.$styleOptions)),te.setLoadedStyleName("common")}if(!te.isStyleNameLoaded((e=this.$style)===null||e===void 0?void 0:e.name)&&(n=this.$style)!==null&&n!==void 0&&n.name){var c,u,f,m,v=((c=this.$style)===null||c===void 0||(u=c.getComponentTheme)===null||u===void 0?void 0:u.call(c))||{},_=v.css;(f=this.$style)===null||f===void 0||f.load(_,q({name:"".concat(this.$style.name,"-variables")},this.$styleOptions)),(m=this.$style)===null||m===void 0||m.loadTheme(q({name:"".concat(this.$style.name,"-style")},this.$styleOptions)),te.setLoadedStyleName(this.$style.name)}if(!te.isStyleNameLoaded("layer-order")){var b,O,w=(b=this.$style)===null||b===void 0||(O=b.getLayerOrderThemeCSS)===null||O===void 0?void 0:O.call(b);pe.load(w,q({name:"layer-order",first:!0},this.$styleOptions)),te.setLoadedStyleName("layer-order")}}},_loadScopedThemeStyles:function(e){var n,r,o,i=((n=this.$style)===null||n===void 0||(r=n.getPresetTheme)===null||r===void 0?void 0:r.call(n,e,"[".concat(this.$attrSelector,"]")))||{},s=i.css,a=(o=this.$style)===null||o===void 0?void 0:o.load(s,q({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(){};st.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 sr(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]:{},i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,s=/./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,f=a.mergeProps,m=f===void 0?!1:f,v=i?s?this._useGlobalPT(this._getPTClassValue,r,o):this._useDefaultPT(this._getPTClassValue,r,o):void 0,_=s?void 0:this._getPTSelf(n,this._getPTClassValue,r,q(q({},o),{},{global:v||{}})),b=this._getPTDatasets(r);return u||!u&&_?m?this._mergeProps(m,v,_,b):q(q(q({},v),_),b):q(q({},_),b)},_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-",i=r==="root"&&J((e=this.pt)===null||e===void 0?void 0:e["data-pc-section"]);return r!=="transition"&&q(q({},r==="root"&&q(In({},"".concat(o,"name"),Me(i?(n=this.pt)===null||n===void 0?void 0:n["data-pc-section"]:this.$.type.name)),i&&In({},"".concat(o,"extend"),Me(this.$.type.name)))),{},In({},"".concat(o,"section"),Me(r)))},_getPTClassValue:function(){var e=this._getOptionValue.apply(this,arguments);return be(e)||ar(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,i=function(a){var c,u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,f=o?o(a):a,m=Me(r),v=Me(n.$name);return(c=u?m!==v?f==null?void 0:f[m]:void 0:f==null?void 0:f[m])!==null&&c!==void 0?c:f};return e!=null&&e.hasOwnProperty("_usept")?{_usept:e._usept,originalValue:i(e.originalValue),value:i(e.value)}:i(e,!0)},_usePT:function(e,n,r,o){var i=function(O){return n(O,r,o)};if(e!=null&&e.hasOwnProperty("_usept")){var s,a=e._usept||((s=this.$primevueConfig)===null||s===void 0?void 0:s.ptOptions)||{},c=a.mergeSections,u=c===void 0?!0:c,f=a.mergeProps,m=f===void 0?!1:f,v=i(e.originalValue),_=i(e.value);return v===void 0&&_===void 0?void 0:be(_)?_:be(v)?v:u||!u&&_?m?this._mergeProps(m,v,_):q(q({},v),_):_}return i(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,q(q({},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,q({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,q(q({},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,q(q({},this.$params),r)),i=this._getOptionValue($o.inlineStyles,e,q(q({},this.$params),r));return[i,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 Te(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,q({},n.$params))||Te(r,q({},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 q(q({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=Pn(e,1),r=n[0];return r==null?void 0:r.startsWith("pt:")}).reduce(function(e,n){var r=Pn(n,2),o=r[0],i=r[1],s=o.split(":"),a=$l(s),c=a.slice(1);return c==null||c.reduce(function(u,f,m,v){return!u[f]&&(u[f]=m===v.length-1?i:{}),u[f]},e),e},{})},$_attrsWithoutPT:function(){return Object.entries(this.$attrs||{}).filter(function(e){var n=Pn(e,1),r=n[0];return!(r!=null&&r.startsWith("pt:"))}).reduce(function(e,n){var r=Pn(n,2),o=r[0],i=r[1];return e[o]=i,e},{})},$attrSelector:function(){return Tn("pc")}}},Ul=`
142
+ `)},la={},ca={},ue={name:"base",css:aa,theme:sa,classes:la,inlineStyles:ca,load:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(i){return i},r=o(_e(e,{dt:Fn}));return r?Js(xt(r),Kn({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(o){return Z.transformCSS(n.name||e.name,o)})},getCommonTheme:function(e){return Z.getCommon(this.name,e)},getComponentTheme:function(e){return Z.getComponent(this.name,e)},getDirectiveTheme:function(e){return Z.getDirective(this.name,e)},getPresetTheme:function(e,n,o){return Z.getCustomPreset(this.name,e,n,o)},getLayerOrderThemeCSS:function(){return Z.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 o=_e(this.css,{dt:Fn}),r=xt("".concat(o).concat(e)),i=Object.entries(n).reduce(function(c,a){var l=Wo(a,2),d=l[0],m=l[1];return c.push("".concat(d,'="').concat(m,'"'))&&c},[]).join(" ");return'<style type="text/css" data-primevue-style-id="'.concat(this.name,'" ').concat(i,">").concat(r,"</style>")}return""},getCommonThemeStyleSheet:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Z.getCommonStyleSheet(this.name,e,n)},getThemeStyleSheet:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=[Z.getStyleSheet(this.name,e,n)];if(this.theme){var r=this.name==="base"?"global-style":"".concat(this.name,"-style"),i=_e(this.theme,{dt:Fn}),c=xt(Z.transformCSS(r,i)),a=Object.entries(n).reduce(function(l,d){var m=Wo(d,2),h=m[0],v=m[1];return l.push("".concat(h,'="').concat(v,'"'))&&l},[]).join(" ");o.push('<style type="text/css" data-primevue-style-id="'.concat(r,'" ').concat(a,">").concat(c,"</style>"))}return o.join("")},extend:function(e){return Kn(Kn({},this),{},{css:void 0,theme:void 0},e)}},Yo=ue.extend({name:"common"});function Dt(t){"@babel/helpers - typeof";return Dt=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},Dt(t)}function ua(t){return Qo(t)||da(t)||Zo(t)||Xo()}function da(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function pn(t,e){return Qo(t)||fa(t,e)||Zo(t,e)||Xo()}function Xo(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
143
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Zo(t,e){if(t){if(typeof t=="string")return Jo(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)?Jo(t,e):void 0}}function Jo(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,o=Array(e);n<e;n++)o[n]=t[n];return o}function fa(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var o,r,i,c,a=[],l=!0,d=!1;try{if(i=(n=n.call(t)).next,e===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(o=i.call(n)).done)&&(a.push(o.value),a.length!==e);l=!0);}catch(m){d=!0,r=m}finally{try{if(!l&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(d)throw r}}return a}}function Qo(t){if(Array.isArray(t))return t}function er(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,o)}return n}function K(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?er(Object(n),!0).forEach(function(o){hn(t,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):er(Object(n)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(n,o))})}return t}function hn(t,e,n){return(e=ma(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ma(t){var e=pa(t,"string");return Dt(e)=="symbol"?e:e+""}function pa(t,e){if(Dt(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var o=n.call(t,e||"default");if(Dt(o)!="object")return o;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,o,r,i,c,a,l,d,m,h,v=(e=this.pt)===null||e===void 0?void 0:e._usept,C=v?(n=this.pt)===null||n===void 0||(n=n.originalValue)===null||n===void 0?void 0:n[this.$.type.name]:void 0,T=v?(o=this.pt)===null||o===void 0||(o=o.value)===null||o===void 0?void 0:o[this.$.type.name]:this.pt;(r=T||C)===null||r===void 0||(r=r.hooks)===null||r===void 0||(i=r.onBeforeCreate)===null||i===void 0||i.call(r);var $=(c=this.$primevueConfig)===null||c===void 0||(c=c.pt)===null||c===void 0?void 0:c._usept,x=$?(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,R=$?(l=this.$primevue)===null||l===void 0||(l=l.config)===null||l===void 0||(l=l.pt)===null||l===void 0?void 0:l.value:(d=this.$primevue)===null||d===void 0||(d=d.config)===null||d===void 0?void 0:d.pt;(m=R||x)===null||m===void 0||(m=m[this.$.type.name])===null||m===void 0||(m=m.hooks)===null||m===void 0||(h=m.onBeforeCreate)===null||h===void 0||h.call(m)},created:function(){this._hook("onCreated")},beforeMount:function(){this._loadStyles(),this._hook("onBeforeMount")},mounted:function(){this.rootEl=Le(this.$el,'[data-pc-name="'.concat(Oe(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)),o=this._useDefaultPT(this._getOptionValue,"hooks.".concat(e));n==null||n(),o==null||o()}},_mergeProps:function(e){for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];return Rn(e)?e.apply(void 0,o):s.mergeProps.apply(void 0,o)},_loadStyles:function(){var e=this,n=function(){et.isStyleNameLoaded("base")||(ue.loadCSS(e.$styleOptions),e._loadGlobalStyles(),et.setLoadedStyleName("base")),e._loadThemeStyles()};n(),this._themeChangeListener(n)},_loadCoreStyles:function(){var e,n;!et.isStyleNameLoaded((e=this.$style)===null||e===void 0?void 0:e.name)&&(n=this.$style)!==null&&n!==void 0&&n.name&&(Yo.loadCSS(this.$styleOptions),this.$options.style&&this.$style.loadCSS(this.$styleOptions),et.setLoadedStyleName(this.$style.name))},_loadGlobalStyles:function(){var e=this._useGlobalPT(this._getOptionValue,"global.css",this.$params);G(e)&&ue.load(e,K({name:"global"},this.$styleOptions))},_loadThemeStyles:function(){var e,n;if(!this.isUnstyled){if(!Z.isStyleNameLoaded("common")){var o,r,i=((o=this.$style)===null||o===void 0||(r=o.getCommonTheme)===null||r===void 0?void 0:r.call(o))||{},c=i.primitive,a=i.semantic;ue.load(c==null?void 0:c.css,K({name:"primitive-variables"},this.$styleOptions)),ue.load(a==null?void 0:a.css,K({name:"semantic-variables"},this.$styleOptions)),ue.loadTheme(K({name:"global-style"},this.$styleOptions)),Z.setLoadedStyleName("common")}if(!Z.isStyleNameLoaded((e=this.$style)===null||e===void 0?void 0:e.name)&&(n=this.$style)!==null&&n!==void 0&&n.name){var l,d,m,h,v=((l=this.$style)===null||l===void 0||(d=l.getComponentTheme)===null||d===void 0?void 0:d.call(l))||{},C=v.css;(m=this.$style)===null||m===void 0||m.load(C,K({name:"".concat(this.$style.name,"-variables")},this.$styleOptions)),(h=this.$style)===null||h===void 0||h.loadTheme(K({name:"".concat(this.$style.name,"-style")},this.$styleOptions)),Z.setLoadedStyleName(this.$style.name)}if(!Z.isStyleNameLoaded("layer-order")){var T,$,x=(T=this.$style)===null||T===void 0||($=T.getLayerOrderThemeCSS)===null||$===void 0?void 0:$.call(T);ue.load(x,K({name:"layer-order",first:!0},this.$styleOptions)),Z.setLoadedStyleName("layer-order")}}},_loadScopedThemeStyles:function(e){var n,o,r,i=((n=this.$style)===null||n===void 0||(o=n.getPresetTheme)===null||o===void 0?void 0:o.call(n,e,"[".concat(this.$attrSelector,"]")))||{},c=i.css,a=(r=this.$style)===null||r===void 0?void 0:r.load(c,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(){};et.clearLoadedStyleNames(),Ge.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]:"",o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Un(e,n,o)},_getPTValue:function(){var e,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,c=/./g.test(o)&&!!r[o.split(".")[0]],a=this._getPropValue("ptOptions")||((e=this.$primevueConfig)===null||e===void 0?void 0:e.ptOptions)||{},l=a.mergeSections,d=l===void 0?!0:l,m=a.mergeProps,h=m===void 0?!1:m,v=i?c?this._useGlobalPT(this._getPTClassValue,o,r):this._useDefaultPT(this._getPTClassValue,o,r):void 0,C=c?void 0:this._getPTSelf(n,this._getPTClassValue,o,K(K({},r),{},{global:v||{}})),T=this._getPTDatasets(o);return d||!d&&C?h?this._mergeProps(h,v,C,T):K(K(K({},v),C),T):K(K({},C),T)},_getPTSelf:function(){for(var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];return s.mergeProps(this._usePT.apply(this,[this._getPT(e,this.$name)].concat(o)),this._usePT.apply(this,[this.$_attrsPT].concat(o)))},_getPTDatasets:function(){var e,n,o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",r="data-pc-",i=o==="root"&&G((e=this.pt)===null||e===void 0?void 0:e["data-pc-section"]);return o!=="transition"&&K(K({},o==="root"&&K(hn({},"".concat(r,"name"),Oe(i?(n=this.pt)===null||n===void 0?void 0:n["data-pc-section"]:this.$.type.name)),i&&hn({},"".concat(r,"extend"),Oe(this.$.type.name)))),{},hn({},"".concat(r,"section"),Oe(o)))},_getPTClassValue:function(){var e=this._getOptionValue.apply(this,arguments);return pe(e)||Vn(e)?{class:e}:e},_getPT:function(e){var n=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",r=arguments.length>2?arguments[2]:void 0,i=function(a){var l,d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,m=r?r(a):a,h=Oe(o),v=Oe(n.$name);return(l=d?h!==v?m==null?void 0:m[h]:void 0:m==null?void 0:m[h])!==null&&l!==void 0?l:m};return e!=null&&e.hasOwnProperty("_usept")?{_usept:e._usept,originalValue:i(e.originalValue),value:i(e.value)}:i(e,!0)},_usePT:function(e,n,o,r){var i=function($){return n($,o,r)};if(e!=null&&e.hasOwnProperty("_usept")){var c,a=e._usept||((c=this.$primevueConfig)===null||c===void 0?void 0:c.ptOptions)||{},l=a.mergeSections,d=l===void 0?!0:l,m=a.mergeProps,h=m===void 0?!1:m,v=i(e.originalValue),C=i(e.value);return v===void 0&&C===void 0?void 0:pe(C)?C:pe(v)?v:d||!d&&C?h?this._mergeProps(h,v,C):K(K({},v),C):C}return i(e)},_useGlobalPT:function(e,n,o){return this._usePT(this.globalPT,e,n,o)},_useDefaultPT:function(e,n,o){return this._usePT(this.defaultPT,e,n,o)},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 s.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]:"",o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this._getPTValue(e,n,K({instance:this},o),!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,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(n){var r=this._getOptionValue(this.$style.inlineStyles,e,K(K({},this.$params),o)),i=this._getOptionValue(Yo.inlineStyles,e,K(K({},this.$params),o));return[i,r]}}},computed:{globalPT:function(){var e,n=this;return this._getPT((e=this.$primevueConfig)===null||e===void 0?void 0:e.pt,void 0,function(o){return _e(o,{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(o){return n._getOptionValue(o,n.$name,K({},n.$params))||_e(o,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=pn(e,1),o=n[0];return o==null?void 0:o.startsWith("pt:")}).reduce(function(e,n){var o=pn(n,2),r=o[0],i=o[1],c=r.split(":"),a=ua(c),l=a.slice(1);return l==null||l.reduce(function(d,m,h,v){return!d[m]&&(d[m]=h===v.length-1?i:{}),d[m]},e),e},{})},$_attrsWithoutPT:function(){return Object.entries(this.$attrs||{}).filter(function(e){var n=pn(e,1),o=n[0];return!(o!=null&&o.startsWith("pt:"))}).reduce(function(e,n){var o=pn(n,2),r=o[0],i=o[1];return e[r]=i,e},{})},$attrSelector:function(){return fn("pc")}}},ha=`
144
144
  .p-icon {
145
145
  display: inline-block;
146
146
  vertical-align: baseline;
@@ -172,7 +172,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
172
172
  transform: rotate(359deg);
173
173
  }
174
174
  }
175
- `,Hl=pe.extend({name:"baseicon",css:Ul});function Yt(t){"@babel/helpers - typeof";return Yt=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},Yt(t)}function Ho(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 jo(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Ho(Object(n),!0).forEach(function(r){jl(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ho(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function jl(t,e,n){return(e=Vl(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Vl(t){var e=Fl(t,"string");return Yt(e)=="symbol"?e:e+""}function Fl(t,e){if(Yt(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(Yt(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Vo={name:"BaseIcon",extends:On,props:{label:{type:String,default:void 0},spin:{type:Boolean,default:!1}},style:Hl,provide:function(){return{$pcIcon:this,$parentInstance:this}},methods:{pti:function(){var e=pt(this.label);return jo(jo({},!this.isUnstyled&&{class:["p-icon",{"p-icon-spin":this.spin}]}),{},{role:e?void 0:"img","aria-label":e?void 0:this.label,"aria-hidden":e})}}},fr={name:"ChevronDownIcon",extends:Vo},zl=l.createElementVNode("path",{d:"M7.01744 10.398C6.91269 10.3985 6.8089 10.378 6.71215 10.3379C6.61541 10.2977 6.52766 10.2386 6.45405 10.1641L1.13907 4.84913C1.03306 4.69404 0.985221 4.5065 1.00399 4.31958C1.02276 4.13266 1.10693 3.95838 1.24166 3.82747C1.37639 3.69655 1.55301 3.61742 1.74039 3.60402C1.92777 3.59062 2.11386 3.64382 2.26584 3.75424L7.01744 8.47394L11.769 3.75424C11.9189 3.65709 12.097 3.61306 12.2748 3.62921C12.4527 3.64535 12.6199 3.72073 12.7498 3.84328C12.8797 3.96582 12.9647 4.12842 12.9912 4.30502C13.0177 4.48162 12.9841 4.662 12.8958 4.81724L7.58083 10.1322C7.50996 10.2125 7.42344 10.2775 7.32656 10.3232C7.22968 10.3689 7.12449 10.3944 7.01744 10.398Z",fill:"currentColor"},null,-1),Kl=[zl];function Wl(t,e,n,r,o,i){return l.openBlock(),l.createElementBlock("svg",l.mergeProps({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.pti()),Kl,16)}fr.render=Wl;var mr={name:"ChevronRightIcon",extends:Vo},ql=l.createElementVNode("path",{d:"M4.38708 13C4.28408 13.0005 4.18203 12.9804 4.08691 12.9409C3.99178 12.9014 3.9055 12.8433 3.83313 12.7701C3.68634 12.6231 3.60388 12.4238 3.60388 12.2161C3.60388 12.0084 3.68634 11.8091 3.83313 11.6622L8.50507 6.99022L3.83313 2.31827C3.69467 2.16968 3.61928 1.97313 3.62287 1.77005C3.62645 1.56698 3.70872 1.37322 3.85234 1.22959C3.99596 1.08597 4.18972 1.00371 4.3928 1.00012C4.59588 0.996539 4.79242 1.07192 4.94102 1.21039L10.1669 6.43628C10.3137 6.58325 10.3962 6.78249 10.3962 6.99022C10.3962 7.19795 10.3137 7.39718 10.1669 7.54416L4.94102 12.7701C4.86865 12.8433 4.78237 12.9014 4.68724 12.9409C4.59212 12.9804 4.49007 13.0005 4.38708 13Z",fill:"currentColor"},null,-1),Gl=[ql];function Yl(t,e,n,r,o,i){return l.openBlock(),l.createElementBlock("svg",l.mergeProps({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.pti()),Gl,16)}mr.render=Yl;var Jl=function(e){var n=e.dt;return`
175
+ `,ga=ue.extend({name:"baseicon",css:ha});function Mt(t){"@babel/helpers - typeof";return Mt=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},Mt(t)}function tr(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,o)}return n}function nr(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?tr(Object(n),!0).forEach(function(o){ya(t,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):tr(Object(n)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(n,o))})}return t}function ya(t,e,n){return(e=ba(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ba(t){var e=va(t,"string");return Mt(e)=="symbol"?e:e+""}function va(t,e){if(Mt(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var o=n.call(t,e||"default");if(Mt(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var or={name:"BaseIcon",extends:gn,props:{label:{type:String,default:void 0},spin:{type:Boolean,default:!1}},style:ga,provide:function(){return{$pcIcon:this,$parentInstance:this}},methods:{pti:function(){var e=at(this.label);return nr(nr({},!this.isUnstyled&&{class:["p-icon",{"p-icon-spin":this.spin}]}),{},{role:e?void 0:"img","aria-label":e?void 0:this.label,"aria-hidden":e})}}},zn={name:"ChevronDownIcon",extends:or},wa=s.createElementVNode("path",{d:"M7.01744 10.398C6.91269 10.3985 6.8089 10.378 6.71215 10.3379C6.61541 10.2977 6.52766 10.2386 6.45405 10.1641L1.13907 4.84913C1.03306 4.69404 0.985221 4.5065 1.00399 4.31958C1.02276 4.13266 1.10693 3.95838 1.24166 3.82747C1.37639 3.69655 1.55301 3.61742 1.74039 3.60402C1.92777 3.59062 2.11386 3.64382 2.26584 3.75424L7.01744 8.47394L11.769 3.75424C11.9189 3.65709 12.097 3.61306 12.2748 3.62921C12.4527 3.64535 12.6199 3.72073 12.7498 3.84328C12.8797 3.96582 12.9647 4.12842 12.9912 4.30502C13.0177 4.48162 12.9841 4.662 12.8958 4.81724L7.58083 10.1322C7.50996 10.2125 7.42344 10.2775 7.32656 10.3232C7.22968 10.3689 7.12449 10.3944 7.01744 10.398Z",fill:"currentColor"},null,-1),_a=[wa];function ka(t,e,n,o,r,i){return s.openBlock(),s.createElementBlock("svg",s.mergeProps({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.pti()),_a,16)}zn.render=ka;var Wn={name:"ChevronRightIcon",extends:or},Sa=s.createElementVNode("path",{d:"M4.38708 13C4.28408 13.0005 4.18203 12.9804 4.08691 12.9409C3.99178 12.9014 3.9055 12.8433 3.83313 12.7701C3.68634 12.6231 3.60388 12.4238 3.60388 12.2161C3.60388 12.0084 3.68634 11.8091 3.83313 11.6622L8.50507 6.99022L3.83313 2.31827C3.69467 2.16968 3.61928 1.97313 3.62287 1.77005C3.62645 1.56698 3.70872 1.37322 3.85234 1.22959C3.99596 1.08597 4.18972 1.00371 4.3928 1.00012C4.59588 0.996539 4.79242 1.07192 4.94102 1.21039L10.1669 6.43628C10.3137 6.58325 10.3962 6.78249 10.3962 6.99022C10.3962 7.19795 10.3137 7.39718 10.1669 7.54416L4.94102 12.7701C4.86865 12.8433 4.78237 12.9014 4.68724 12.9409C4.59212 12.9804 4.49007 13.0005 4.38708 13Z",fill:"currentColor"},null,-1),Ca=[Sa];function Ia(t,e,n,o,r,i){return s.openBlock(),s.createElementBlock("svg",s.mergeProps({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.pti()),Ca,16)}Wn.render=Ia;var Ta=function(e){var n=e.dt;return`
176
176
  .p-panelmenu {
177
177
  display: flex;
178
178
  flex-direction: column;
@@ -315,8 +315,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
315
315
  .p-panelmenu-item:not(.p-disabled) > .p-panelmenu-item-content:hover .p-panelmenu-submenu-icon {
316
316
  color: `).concat(n("panelmenu.submenu.icon.focus.color"),`;
317
317
  }
318
- `)},Xl={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"},Zl=pe.extend({name:"panelmenu",theme:Jl,classes:Xl}),Fo=yo();function Jt(t){"@babel/helpers - typeof";return Jt=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},Jt(t)}function zo(t,e){return nc(t)||tc(t,e)||ec(t,e)||Ql()}function Ql(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
319
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ec(t,e){if(t){if(typeof t=="string")return Ko(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)?Ko(t,e):void 0}}function Ko(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 tc(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,o,i,s,a=[],c=!0,u=!1;try{if(i=(n=n.call(t)).next,e!==0)for(;!(c=(r=i.call(n)).done)&&(a.push(r.value),a.length!==e);c=!0);}catch(f){u=!0,o=f}finally{try{if(!c&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(u)throw o}}return a}}function nc(t){if(Array.isArray(t))return t}function Wo(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 Y(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Wo(Object(n),!0).forEach(function(r){pr(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Wo(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function pr(t,e,n){return(e=rc(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function rc(t){var e=oc(t,"string");return Jt(e)=="symbol"?e:e+""}function oc(t,e){if(Jt(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(Jt(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var F={_getMeta:function(){return[it(arguments.length<=0?void 0:arguments[0])||arguments.length<=0?void 0:arguments[0],Te(it(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,i;return(r=(e==null||(o=e.instance)===null||o===void 0?void 0:o.$primevue)||(n==null||(i=n.ctx)===null||i===void 0||(i=i.appContext)===null||i===void 0||(i=i.config)===null||i===void 0||(i=i.globalProperties)===null||i===void 0?void 0:i.$primevue))===null||r===void 0?void 0:r.config},_getOptionValue:sr,_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]:{},i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"",s=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 be(C)||ar(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)||{},f=u.mergeSections,m=f===void 0?!0:f,v=u.mergeProps,_=v===void 0?!1:v,b=a?F._useDefaultPT(r,r.defaultPT(),c,i,s):void 0,O=F._usePT(r,F._getPT(o,r.$name),c,i,Y(Y({},s),{},{global:b||{}})),w=F._getPTDatasets(r,i);return m||!m&&O?_?F._mergeProps(r,_,b,O,w):Y(Y(Y({},b),O),w):Y(Y({},O),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 Y(Y({},n==="root"&&pr({},"".concat(r,"name"),Me(e.$name))),{},pr({},"".concat(r,"section"),Me(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(s){var a,c=r?r(s):s,u=Me(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,i=arguments.length>4?arguments[4]:void 0,s=function(w){return r(w,o,i)};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,f=u===void 0?!0:u,m=c.mergeProps,v=m===void 0?!1:m,_=s(n.originalValue),b=s(n.value);return _===void 0&&b===void 0?void 0:be(b)?b:be(_)?_:f||!f&&b?v?F._mergeProps(e,v,_,b):Y(Y({},_),b):b}return s(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,i=arguments.length>4?arguments[4]:void 0;return F._usePT(e,n,r,o,i)},_loadStyles:function(e,n,r){var o,i=F._getConfig(n,r),s={nonce:i==null||(o=i.csp)===null||o===void 0?void 0:o.nonce};F._loadCoreStyles(e.$instance,s),F._loadThemeStyles(e.$instance,s),F._loadScopedThemeStyles(e.$instance,s),F._themeChangeListener(function(){return F._loadThemeStyles(e.$instance,s)})},_loadCoreStyles:function(){var e,n,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;if(!st.isStyleNameLoaded((e=r.$style)===null||e===void 0?void 0:e.name)&&(n=r.$style)!==null&&n!==void 0&&n.name){var i;pe.loadCSS(o),r.isUnstyled()&&((i=r.$style)===null||i===void 0||i.loadCSS(o)),st.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(!te.isStyleNameLoaded("common")){var i,s,a=((i=r.$style)===null||i===void 0||(s=i.getCommonTheme)===null||s===void 0?void 0:s.call(i))||{},c=a.primitive,u=a.semantic;pe.load(c==null?void 0:c.css,Y({name:"primitive-variables"},o)),pe.load(u==null?void 0:u.css,Y({name:"semantic-variables"},o)),pe.loadTheme(Y({name:"global-style"},o)),te.setLoadedStyleName("common")}if(!te.isStyleNameLoaded((e=r.$style)===null||e===void 0?void 0:e.name)&&(n=r.$style)!==null&&n!==void 0&&n.name){var f,m,v,_,b=((f=r.$style)===null||f===void 0||(m=f.getDirectiveTheme)===null||m===void 0?void 0:m.call(f))||{},O=b.css;(v=r.$style)===null||v===void 0||v.load(O,Y({name:"".concat(r.$style.name,"-variables")},o)),(_=r.$style)===null||_===void 0||_.loadTheme(Y({name:"".concat(r.$style.name,"-style")},o)),te.setLoadedStyleName(r.$style.name)}if(!te.isStyleNameLoaded("layer-order")){var w,N,C=(w=r.$style)===null||w===void 0||(N=w.getLayerOrderThemeCSS)===null||N===void 0?void 0:N.call(w);pe.load(C,Y({name:"layer-order",first:!0},o)),te.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,i,s,a=((o=e.$style)===null||o===void 0||(i=o.getPresetTheme)===null||i===void 0?void 0:i.call(o,r,"[".concat(e.$attrSelector,"]")))||{},c=a.css,u=(s=e.$style)===null||s===void 0?void 0:s.load(c,Y({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(){};st.clearLoadedStyleNames(),et.on("theme:change",e)},_hook:function(e,n,r,o,i,s){var a,c,u="on".concat(sl(n)),f=F._getConfig(o,i),m=r==null?void 0:r.$instance,v=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,f==null||(c=f.pt)===null||c===void 0||(c=c.directives)===null||c===void 0?void 0:c[e],F._getOptionValue,"hooks.".concat(u)),b={el:r,binding:o,vnode:i,prevVnode:s};v==null||v(m,b),_==null||_(m,b)},_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 ir(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(s,a,c,u,f){var m,v,_;a._$instances=a._$instances||{};var b=F._getConfig(c,u),O=a._$instances[e]||{},w=pt(O)?Y(Y({},n),n==null?void 0:n.methods):{};a._$instances[e]=Y(Y({},O),{},{$name:e,$host:a,$binding:c,$modifiers:c==null?void 0:c.modifiers,$value:c==null?void 0:c.value,$el:O.$el||a||void 0,$style:Y({classes:void 0,inlineStyles:void 0,load:function(){},loadCSS:function(){},loadTheme:function(){}},n==null?void 0:n.style),$primevueConfig:b,$attrSelector:a.$attrSelector,defaultPT:function(){return F._getPT(b==null?void 0:b.pt,void 0,function(C){var T;return C==null||(T=C.directives)===null||T===void 0?void 0:T[e]})},isUnstyled:function(){var C,T;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?(T=a.$instance)===null||T===void 0||(T=T.$binding)===null||T===void 0||(T=T.value)===null||T===void 0?void 0:T.unstyled:b==null?void 0:b.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,T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",z=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,T,Y({},z))},ptmo:function(){var C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",z=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return F._getPTValue(a.$instance,C,T,z,!1)},cx:function(){var C,T,z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",Q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return(C=a.$instance)!==null&&C!==void 0&&C.isUnstyled()?void 0:F._getOptionValue((T=a.$instance)===null||T===void 0||(T=T.$style)===null||T===void 0?void 0:T.classes,z,Y({},Q))},sx:function(){var C,T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,Q=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return z?F._getOptionValue((C=a.$instance)===null||C===void 0||(C=C.$style)===null||C===void 0?void 0:C.inlineStyles,T,Y({},Q)):void 0}},w),a.$instance=a._$instances[e],(m=(v=a.$instance)[s])===null||m===void 0||m.call(v,a,c,u,f),a["$".concat(e)]=a.$instance,F._hook(e,s,a,c,u,f),a.$pd||(a.$pd={}),a.$pd[e]=Y(Y({},(_=a.$pd)===null||_===void 0?void 0:_[e]),{},{name:e,instance:a.$instance})},o=function(s){var a,c,u,f,m,v=(a=s.$instance)===null||a===void 0?void 0:a.watch;v==null||(c=v.config)===null||c===void 0||c.call(s.$instance,(u=s.$instance)===null||u===void 0?void 0:u.$primevueConfig),Fo.on("config:change",function(_){var b,O=_.newValue,w=_.oldValue;return v==null||(b=v.config)===null||b===void 0?void 0:b.call(s.$instance,O,w)}),v==null||(f=v["config.ripple"])===null||f===void 0||f.call(s.$instance,(m=s.$instance)===null||m===void 0||(m=m.$primevueConfig)===null||m===void 0?void 0:m.ripple),Fo.on("config:ripple:change",function(_){var b,O=_.newValue,w=_.oldValue;return v==null||(b=v["config.ripple"])===null||b===void 0?void 0:b.call(s.$instance,O,w)})};return{created:function(s,a,c,u){r("created",s,a,c,u)},beforeMount:function(s,a,c,u){s.$attrSelector=Tn("pd"),F._loadStyles(s,a,c),r("beforeMount",s,a,c,u),o(s)},mounted:function(s,a,c,u){F._loadStyles(s,a,c),r("mounted",s,a,c,u)},beforeUpdate:function(s,a,c,u){r("beforeUpdate",s,a,c,u)},updated:function(s,a,c,u){F._loadStyles(s,a,c),r("updated",s,a,c,u)},beforeUnmount:function(s,a,c,u){r("beforeUnmount",s,a,c,u)},unmounted:function(s,a,c,u){var f;(f=s.$instance)===null||f===void 0||(f=f.scopedStyleEl)===null||f===void 0||(f=f.value)===null||f===void 0||f.remove(),r("unmounted",s,a,c,u)}}},extend:function(){var e=F._getMeta.apply(F,arguments),n=zo(e,2),r=n[0],o=n[1];return Y({extend:function(){var s=F._getMeta.apply(F,arguments),a=zo(s,2),c=a[0],u=a[1];return F.extend(c,Y(Y(Y({},o),o==null?void 0:o.methods),u))}},F._extend(r,o))}},ic=function(e){var n=e.dt;return`
318
+ `)},Ea={root:"p-panelmenu p-component",panel:"p-panelmenu-panel",header:function(e){var n=e.instance,o=e.item;return["p-panelmenu-header",{"p-panelmenu-header-active":n.isItemActive(o)&&!!o.items,"p-disabled":n.isItemDisabled(o)}]},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,o=e.processedItem;return["p-panelmenu-item",{"p-focus":n.isItemFocused(o),"p-disabled":n.isItemDisabled(o)}]},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"},Pa=ue.extend({name:"panelmenu",theme:Ta,classes:Ea}),rr=Oo();function Rt(t){"@babel/helpers - typeof";return Rt=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},Rt(t)}function ir(t,e){return Oa(t)||La(t,e)||xa(t,e)||Aa()}function Aa(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
319
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function xa(t,e){if(t){if(typeof t=="string")return sr(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)?sr(t,e):void 0}}function sr(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,o=Array(e);n<e;n++)o[n]=t[n];return o}function La(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var o,r,i,c,a=[],l=!0,d=!1;try{if(i=(n=n.call(t)).next,e!==0)for(;!(l=(o=i.call(n)).done)&&(a.push(o.value),a.length!==e);l=!0);}catch(m){d=!0,r=m}finally{try{if(!l&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(d)throw r}}return a}}function Oa(t){if(Array.isArray(t))return t}function ar(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,o)}return n}function W(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?ar(Object(n),!0).forEach(function(o){Gn(t,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ar(Object(n)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(n,o))})}return t}function Gn(t,e,n){return(e=$a(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function $a(t){var e=Ba(t,"string");return Rt(e)=="symbol"?e:e+""}function Ba(t,e){if(Rt(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var o=n.call(t,e||"default");if(Rt(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var V={_getMeta:function(){return[Qe(arguments.length<=0?void 0:arguments[0])||arguments.length<=0?void 0:arguments[0],_e(Qe(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 o,r,i;return(o=(e==null||(r=e.instance)===null||r===void 0?void 0:r.$primevue)||(n==null||(i=n.ctx)===null||i===void 0||(i=i.appContext)===null||i===void 0||(i=i.config)===null||i===void 0||(i=i.globalProperties)===null||i===void 0?void 0:i.$primevue))===null||o===void 0?void 0:o.config},_getOptionValue:Un,_getPTValue:function(){var e,n,o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"",c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,l=function(){var I=V._getOptionValue.apply(V,arguments);return pe(I)||Vn(I)?{class:I}:I},d=((e=o.binding)===null||e===void 0||(e=e.value)===null||e===void 0?void 0:e.ptOptions)||((n=o.$primevueConfig)===null||n===void 0?void 0:n.ptOptions)||{},m=d.mergeSections,h=m===void 0?!0:m,v=d.mergeProps,C=v===void 0?!1:v,T=a?V._useDefaultPT(o,o.defaultPT(),l,i,c):void 0,$=V._usePT(o,V._getPT(r,o.$name),l,i,W(W({},c),{},{global:T||{}})),x=V._getPTDatasets(o,i);return h||!h&&$?C?V._mergeProps(o,C,T,$,x):W(W(W({},T),$),x):W(W({},$),x)},_getPTDatasets:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",o="data-pc-";return W(W({},n==="root"&&Gn({},"".concat(o,"name"),Oe(e.$name))),{},Gn({},"".concat(o,"section"),Oe(n)))},_getPT:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",o=arguments.length>2?arguments[2]:void 0,r=function(c){var a,l=o?o(c):c,d=Oe(n);return(a=l==null?void 0:l[d])!==null&&a!==void 0?a:l};return e!=null&&e.hasOwnProperty("_usept")?{_usept:e._usept,originalValue:r(e.originalValue),value:r(e.value)}:r(e)},_usePT:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0,o=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0,c=function(x){return o(x,r,i)};if(n!=null&&n.hasOwnProperty("_usept")){var a,l=n._usept||((a=e.$primevueConfig)===null||a===void 0?void 0:a.ptOptions)||{},d=l.mergeSections,m=d===void 0?!0:d,h=l.mergeProps,v=h===void 0?!1:h,C=c(n.originalValue),T=c(n.value);return C===void 0&&T===void 0?void 0:pe(T)?T:pe(C)?C:m||!m&&T?v?V._mergeProps(e,v,C,T):W(W({},C),T):T}return c(n)},_useDefaultPT:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0;return V._usePT(e,n,o,r,i)},_loadStyles:function(e,n,o){var r,i=V._getConfig(n,o),c={nonce:i==null||(r=i.csp)===null||r===void 0?void 0:r.nonce};V._loadCoreStyles(e.$instance,c),V._loadThemeStyles(e.$instance,c),V._loadScopedThemeStyles(e.$instance,c),V._themeChangeListener(function(){return V._loadThemeStyles(e.$instance,c)})},_loadCoreStyles:function(){var e,n,o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;if(!et.isStyleNameLoaded((e=o.$style)===null||e===void 0?void 0:e.name)&&(n=o.$style)!==null&&n!==void 0&&n.name){var i;ue.loadCSS(r),o.isUnstyled()&&((i=o.$style)===null||i===void 0||i.loadCSS(r)),et.setLoadedStyleName(o.$style.name)}},_loadThemeStyles:function(){var e,n,o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;if(!(o!=null&&o.isUnstyled())){if(!Z.isStyleNameLoaded("common")){var i,c,a=((i=o.$style)===null||i===void 0||(c=i.getCommonTheme)===null||c===void 0?void 0:c.call(i))||{},l=a.primitive,d=a.semantic;ue.load(l==null?void 0:l.css,W({name:"primitive-variables"},r)),ue.load(d==null?void 0:d.css,W({name:"semantic-variables"},r)),ue.loadTheme(W({name:"global-style"},r)),Z.setLoadedStyleName("common")}if(!Z.isStyleNameLoaded((e=o.$style)===null||e===void 0?void 0:e.name)&&(n=o.$style)!==null&&n!==void 0&&n.name){var m,h,v,C,T=((m=o.$style)===null||m===void 0||(h=m.getDirectiveTheme)===null||h===void 0?void 0:h.call(m))||{},$=T.css;(v=o.$style)===null||v===void 0||v.load($,W({name:"".concat(o.$style.name,"-variables")},r)),(C=o.$style)===null||C===void 0||C.loadTheme(W({name:"".concat(o.$style.name,"-style")},r)),Z.setLoadedStyleName(o.$style.name)}if(!Z.isStyleNameLoaded("layer-order")){var x,R,I=(x=o.$style)===null||x===void 0||(R=x.getLayerOrderThemeCSS)===null||R===void 0?void 0:R.call(x);ue.load(I,W({name:"layer-order",first:!0},r)),Z.setLoadedStyleName("layer-order")}}},_loadScopedThemeStyles:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0,o=e.preset();if(o&&e.$attrSelector){var r,i,c,a=((r=e.$style)===null||r===void 0||(i=r.getPresetTheme)===null||i===void 0?void 0:i.call(r,o,"[".concat(e.$attrSelector,"]")))||{},l=a.css,d=(c=e.$style)===null||c===void 0?void 0:c.load(l,W({name:"".concat(e.$attrSelector,"-").concat(e.$style.name)},n));e.scopedStyleEl=d.el}},_themeChangeListener:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(){};et.clearLoadedStyleNames(),Ge.on("theme:change",e)},_hook:function(e,n,o,r,i,c){var a,l,d="on".concat(Ds(n)),m=V._getConfig(r,i),h=o==null?void 0:o.$instance,v=V._usePT(h,V._getPT(r==null||(a=r.value)===null||a===void 0?void 0:a.pt,e),V._getOptionValue,"hooks.".concat(d)),C=V._useDefaultPT(h,m==null||(l=m.pt)===null||l===void 0||(l=l.directives)===null||l===void 0?void 0:l[e],V._getOptionValue,"hooks.".concat(d)),T={el:o,binding:r,vnode:i,prevVnode:c};v==null||v(h,T),C==null||C(h,T)},_mergeProps:function(){for(var e=arguments.length>1?arguments[1]:void 0,n=arguments.length,o=new Array(n>2?n-2:0),r=2;r<n;r++)o[r-2]=arguments[r];return Rn(e)?e.apply(void 0,o):s.mergeProps.apply(void 0,o)},_extend:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=function(c,a,l,d,m){var h,v,C;a._$instances=a._$instances||{};var T=V._getConfig(l,d),$=a._$instances[e]||{},x=at($)?W(W({},n),n==null?void 0:n.methods):{};a._$instances[e]=W(W({},$),{},{$name:e,$host:a,$binding:l,$modifiers:l==null?void 0:l.modifiers,$value:l==null?void 0:l.value,$el:$.$el||a||void 0,$style:W({classes:void 0,inlineStyles:void 0,load:function(){},loadCSS:function(){},loadTheme:function(){}},n==null?void 0:n.style),$primevueConfig:T,$attrSelector:a.$attrSelector,defaultPT:function(){return V._getPT(T==null?void 0:T.pt,void 0,function(I){var B;return I==null||(B=I.directives)===null||B===void 0?void 0:B[e]})},isUnstyled:function(){var I,B;return((I=a.$instance)===null||I===void 0||(I=I.$binding)===null||I===void 0||(I=I.value)===null||I===void 0?void 0:I.unstyled)!==void 0?(B=a.$instance)===null||B===void 0||(B=B.$binding)===null||B===void 0||(B=B.value)===null||B===void 0?void 0:B.unstyled:T==null?void 0:T.unstyled},theme:function(){var I;return(I=a.$instance)===null||I===void 0||(I=I.$primevueConfig)===null||I===void 0?void 0:I.theme},preset:function(){var I;return(I=a.$instance)===null||I===void 0||(I=I.$binding)===null||I===void 0||(I=I.value)===null||I===void 0?void 0:I.dt},ptm:function(){var I,B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return V._getPTValue(a.$instance,(I=a.$instance)===null||I===void 0||(I=I.$binding)===null||I===void 0||(I=I.value)===null||I===void 0?void 0:I.pt,B,W({},F))},ptmo:function(){var I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",F=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return V._getPTValue(a.$instance,I,B,F,!1)},cx:function(){var I,B,F=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",J=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return(I=a.$instance)!==null&&I!==void 0&&I.isUnstyled()?void 0:V._getOptionValue((B=a.$instance)===null||B===void 0||(B=B.$style)===null||B===void 0?void 0:B.classes,F,W({},J))},sx:function(){var I,B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,J=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return F?V._getOptionValue((I=a.$instance)===null||I===void 0||(I=I.$style)===null||I===void 0?void 0:I.inlineStyles,B,W({},J)):void 0}},x),a.$instance=a._$instances[e],(h=(v=a.$instance)[c])===null||h===void 0||h.call(v,a,l,d,m),a["$".concat(e)]=a.$instance,V._hook(e,c,a,l,d,m),a.$pd||(a.$pd={}),a.$pd[e]=W(W({},(C=a.$pd)===null||C===void 0?void 0:C[e]),{},{name:e,instance:a.$instance})},r=function(c){var a,l,d,m,h,v=(a=c.$instance)===null||a===void 0?void 0:a.watch;v==null||(l=v.config)===null||l===void 0||l.call(c.$instance,(d=c.$instance)===null||d===void 0?void 0:d.$primevueConfig),rr.on("config:change",function(C){var T,$=C.newValue,x=C.oldValue;return v==null||(T=v.config)===null||T===void 0?void 0:T.call(c.$instance,$,x)}),v==null||(m=v["config.ripple"])===null||m===void 0||m.call(c.$instance,(h=c.$instance)===null||h===void 0||(h=h.$primevueConfig)===null||h===void 0?void 0:h.ripple),rr.on("config:ripple:change",function(C){var T,$=C.newValue,x=C.oldValue;return v==null||(T=v["config.ripple"])===null||T===void 0?void 0:T.call(c.$instance,$,x)})};return{created:function(c,a,l,d){o("created",c,a,l,d)},beforeMount:function(c,a,l,d){c.$attrSelector=fn("pd"),V._loadStyles(c,a,l),o("beforeMount",c,a,l,d),r(c)},mounted:function(c,a,l,d){V._loadStyles(c,a,l),o("mounted",c,a,l,d)},beforeUpdate:function(c,a,l,d){o("beforeUpdate",c,a,l,d)},updated:function(c,a,l,d){V._loadStyles(c,a,l),o("updated",c,a,l,d)},beforeUnmount:function(c,a,l,d){o("beforeUnmount",c,a,l,d)},unmounted:function(c,a,l,d){var m;(m=c.$instance)===null||m===void 0||(m=m.scopedStyleEl)===null||m===void 0||(m=m.value)===null||m===void 0||m.remove(),o("unmounted",c,a,l,d)}}},extend:function(){var e=V._getMeta.apply(V,arguments),n=ir(e,2),o=n[0],r=n[1];return W({extend:function(){var c=V._getMeta.apply(V,arguments),a=ir(c,2),l=a[0],d=a[1];return V.extend(l,W(W(W({},r),r==null?void 0:r.methods),d))}},V._extend(o,r))}},Na=function(e){var n=e.dt;return`
320
320
  .p-ink {
321
321
  display: block;
322
322
  position: absolute;
@@ -336,9 +336,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
336
336
  transform: scale(2.5);
337
337
  }
338
338
  }
339
- `)},sc={root:"p-ink"},ac=pe.extend({name:"ripple-directive",theme:ic,classes:sc}),lc=F.extend({style:ac});function Xt(t){"@babel/helpers - typeof";return Xt=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},Xt(t)}function cc(t){return mc(t)||fc(t)||dc(t)||uc()}function uc(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
340
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function dc(t,e){if(t){if(typeof t=="string")return hr(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)?hr(t,e):void 0}}function fc(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function mc(t){if(Array.isArray(t))return hr(t)}function hr(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 qo(t,e,n){return(e=pc(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function pc(t){var e=hc(t,"string");return Xt(e)=="symbol"?e:e+""}function hc(t,e){if(Xt(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(Xt(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var gc=lc.extend("ripple",{watch:{"config.ripple":function(e){e?(this.createRipple(this.$host),this.bindEvents(this.$host),this.$host.setAttribute("data-pd-ripple",!0),this.$host.style.overflow="hidden",this.$host.style.position="relative"):(this.remove(this.$host),this.$host.removeAttribute("data-pd-ripple"))}},unmounted:function(e){this.remove(e)},timeout:void 0,methods:{bindEvents:function(e){e.addEventListener("mousedown",this.onMouseDown.bind(this))},unbindEvents:function(e){e.removeEventListener("mousedown",this.onMouseDown.bind(this))},createRipple:function(e){var n=Za("span",qo(qo({role:"presentation","aria-hidden":!0,"data-p-ink":!0,"data-p-ink-active":!1,class:!this.isUnstyled()&&this.cx("root"),onAnimationEnd:this.onAnimationEnd.bind(this)},this.$attrSelector,""),"p-bind",this.ptm("root")));e.appendChild(n),this.$el=n},remove:function(e){var n=this.getInk(e);n&&(this.$host.style.overflow="",this.$host.style.position="",this.unbindEvents(e),n.removeEventListener("animationend",this.onAnimationEnd),n.remove())},onMouseDown:function(e){var n=this,r=e.currentTarget,o=this.getInk(r);if(!(!o||getComputedStyle(o,null).display==="none")){if(!this.isUnstyled()&&rr(o,"p-ink-active"),o.setAttribute("data-p-ink-active","false"),!ho(o)&&!go(o)){var i=Math.max(Xa(r),tl(r));o.style.height=i+"px",o.style.width=i+"px"}var s=el(r),a=e.pageX-s.left+document.body.scrollTop-go(o)/2,c=e.pageY-s.top+document.body.scrollLeft-ho(o)/2;o.style.top=c+"px",o.style.left=a+"px",!this.isUnstyled()&&Ja(o,"p-ink-active"),o.setAttribute("data-p-ink-active","true"),this.timeout=setTimeout(function(){o&&(!n.isUnstyled()&&rr(o,"p-ink-active"),o.setAttribute("data-p-ink-active","false"))},401)}},onAnimationEnd:function(e){this.timeout&&clearTimeout(this.timeout),!this.isUnstyled()&&rr(e.currentTarget,"p-ink-active"),e.currentTarget.setAttribute("data-p-ink-active","false")},getInk:function(e){return e&&e.children?cc(e.children).find(function(n){return jt(n,"data-pc-name")==="ripple"}):void 0}}}),yc={name:"BasePanelMenu",extends:On,props:{model:{type:Array,default:null},expandedKeys:{type:Object,default:null},multiple:{type:Boolean,default:!1},tabindex:{type:Number,default:0}},style:Zl,provide:function(){return{$pcPanelMenu:this,$parentInstance:this}}},Go={name:"PanelMenuSub",hostName:"PanelMenu",extends:On,emits:["item-toggle","item-mousemove"],props:{panelId:{type:String,default:null},focusedItemId:{type:String,default:null},items:{type:Array,default:null},level:{type:Number,default:0},templates:{type:Object,default:null},activeItemPath:{type:Object,default:null},tabindex:{type:Number,default:-1}},methods:{getItemId:function(e){return"".concat(this.panelId,"_").concat(e.key)},getItemKey:function(e){return this.getItemId(e)},getItemProp:function(e,n,r){return e&&e.item?Te(e.item[n],r):void 0},getItemLabel:function(e){return this.getItemProp(e,"label")},getPTOptions:function(e,n,r){return this.ptm(e,{context:{item:n.item,index:r,active:this.isItemActive(n),focused:this.isItemFocused(n),disabled:this.isItemDisabled(n)}})},isItemActive:function(e){return this.activeItemPath.some(function(n){return n.key===e.key})},isItemVisible:function(e){return this.getItemProp(e,"visible")!==!1},isItemDisabled:function(e){return this.getItemProp(e,"disabled")},isItemFocused:function(e){return this.focusedItemId===this.getItemId(e)},isItemGroup:function(e){return J(e.items)},onItemClick:function(e,n){this.getItemProp(n,"command",{originalEvent:e,item:n.item}),this.$emit("item-toggle",{processedItem:n,expanded:!this.isItemActive(n)})},onItemToggle:function(e){this.$emit("item-toggle",e)},onItemMouseMove:function(e,n){this.$emit("item-mousemove",{originalEvent:e,processedItem:n})},getAriaSetSize:function(){var e=this;return this.items.filter(function(n){return e.isItemVisible(n)&&!e.getItemProp(n,"separator")}).length},getAriaPosInset:function(e){var n=this;return e-this.items.slice(0,e).filter(function(r){return n.isItemVisible(r)&&n.getItemProp(r,"separator")}).length+1},getMenuItemProps:function(e,n){return{action:l.mergeProps({class:this.cx("itemLink"),tabindex:-1,"aria-hidden":!0},this.getPTOptions("itemLink",e,n)),icon:l.mergeProps({class:[this.cx("itemIcon"),this.getItemProp(e,"icon")]},this.getPTOptions("itemIcon",e,n)),label:l.mergeProps({class:this.cx("itemLabel")},this.getPTOptions("itemLabel",e,n)),submenuicon:l.mergeProps({class:this.cx("submenuIcon")},this.getPTOptions("submenuicon",e,n))}}},components:{ChevronRightIcon:mr,ChevronDownIcon:fr},directives:{ripple:gc}},bc=["tabindex"],vc=["id","aria-label","aria-expanded","aria-level","aria-setsize","aria-posinset","data-p-focused","data-p-disabled"],wc=["onClick","onMousemove"],Sc=["href","target"];function _c(t,e,n,r,o,i){var s=l.resolveComponent("PanelMenuSub",!0),a=l.resolveDirective("ripple");return l.openBlock(),l.createElementBlock("ul",{class:l.normalizeClass(t.cx("submenu")),tabindex:n.tabindex},[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(n.items,function(c,u){return l.openBlock(),l.createElementBlock(l.Fragment,{key:i.getItemKey(c)},[i.isItemVisible(c)&&!i.getItemProp(c,"separator")?(l.openBlock(),l.createElementBlock("li",l.mergeProps({key:0,id:i.getItemId(c),class:[t.cx("item",{processedItem:c}),i.getItemProp(c,"class")],style:i.getItemProp(c,"style"),role:"treeitem","aria-label":i.getItemLabel(c),"aria-expanded":i.isItemGroup(c)?i.isItemActive(c):void 0,"aria-level":n.level+1,"aria-setsize":i.getAriaSetSize(),"aria-posinset":i.getAriaPosInset(u),ref_for:!0},i.getPTOptions("item",c,u),{"data-p-focused":i.isItemFocused(c),"data-p-disabled":i.isItemDisabled(c)}),[l.createElementVNode("div",l.mergeProps({class:t.cx("itemContent"),onClick:function(m){return i.onItemClick(m,c)},onMousemove:function(m){return i.onItemMouseMove(m,c)},ref_for:!0},i.getPTOptions("itemContent",c,u)),[n.templates.item?(l.openBlock(),l.createBlock(l.resolveDynamicComponent(n.templates.item),{key:1,item:c.item,root:!1,active:i.isItemActive(c),hasSubmenu:i.isItemGroup(c),label:i.getItemLabel(c),props:i.getMenuItemProps(c,u)},null,8,["item","active","hasSubmenu","label","props"])):l.withDirectives((l.openBlock(),l.createElementBlock("a",l.mergeProps({key:0,href:i.getItemProp(c,"url"),class:t.cx("itemLink"),target:i.getItemProp(c,"target"),tabindex:"-1",ref_for:!0},i.getPTOptions("itemLink",c,u)),[i.isItemGroup(c)?(l.openBlock(),l.createElementBlock(l.Fragment,{key:0},[n.templates.submenuicon?(l.openBlock(),l.createBlock(l.resolveDynamicComponent(n.templates.submenuicon),l.mergeProps({key:0,class:t.cx("submenuIcon"),active:i.isItemActive(c),ref_for:!0},i.getPTOptions("submenuIcon",c,u)),null,16,["class","active"])):(l.openBlock(),l.createBlock(l.resolveDynamicComponent(i.isItemActive(c)?"ChevronDownIcon":"ChevronRightIcon"),l.mergeProps({key:1,class:t.cx("submenuIcon"),ref_for:!0},i.getPTOptions("submenuIcon",c,u)),null,16,["class"]))],64)):l.createCommentVNode("",!0),n.templates.itemicon?(l.openBlock(),l.createBlock(l.resolveDynamicComponent(n.templates.itemicon),{key:1,item:c.item,class:l.normalizeClass(t.cx("itemIcon"))},null,8,["item","class"])):i.getItemProp(c,"icon")?(l.openBlock(),l.createElementBlock("span",l.mergeProps({key:2,class:[t.cx("itemIcon"),i.getItemProp(c,"icon")],ref_for:!0},i.getPTOptions("itemIcon",c,u)),null,16)):l.createCommentVNode("",!0),l.createElementVNode("span",l.mergeProps({class:t.cx("itemLabel"),ref_for:!0},i.getPTOptions("itemLabel",c,u)),l.toDisplayString(i.getItemLabel(c)),17)],16,Sc)),[[a]])],16,wc),l.createVNode(l.Transition,l.mergeProps({name:"p-toggleable-content",ref_for:!0},t.ptm("transition")),{default:l.withCtx(function(){return[l.withDirectives(l.createElementVNode("div",l.mergeProps({class:t.cx("contentContainer"),ref_for:!0},t.ptm("contentContainer")),[i.isItemVisible(c)&&i.isItemGroup(c)?(l.openBlock(),l.createBlock(s,l.mergeProps({key:0,id:i.getItemId(c)+"_list",role:"group",panelId:n.panelId,focusedItemId:n.focusedItemId,items:c.items,level:n.level+1,templates:n.templates,activeItemPath:n.activeItemPath,onItemToggle:i.onItemToggle,onItemMousemove:e[0]||(e[0]=function(f){return t.$emit("item-mousemove",f)}),pt:t.pt,unstyled:t.unstyled,ref_for:!0},t.ptm("submenu")),null,16,["id","panelId","focusedItemId","items","level","templates","activeItemPath","onItemToggle","pt","unstyled"])):l.createCommentVNode("",!0)],16),[[l.vShow,i.isItemActive(c)]])]}),_:2},1040)],16,vc)):l.createCommentVNode("",!0),i.isItemVisible(c)&&i.getItemProp(c,"separator")?(l.openBlock(),l.createElementBlock("li",l.mergeProps({key:1,style:i.getItemProp(c,"style"),class:[t.cx("separator"),i.getItemProp(c,"class")],role:"separator",ref_for:!0},t.ptm("separator")),null,16)):l.createCommentVNode("",!0)],64)}),128))],10,bc)}Go.render=_c;function kc(t,e){return Ac(t)||Tc(t,e)||Ec(t,e)||Cc()}function Cc(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
341
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ec(t,e){if(t){if(typeof t=="string")return Yo(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)?Yo(t,e):void 0}}function Yo(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 Tc(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,o,i,s,a=[],c=!0,u=!1;try{if(i=(n=n.call(t)).next,e!==0)for(;!(c=(r=i.call(n)).done)&&(a.push(r.value),a.length!==e);c=!0);}catch(f){u=!0,o=f}finally{try{if(!c&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(u)throw o}}return a}}function Ac(t){if(Array.isArray(t))return t}var Jo={name:"PanelMenuList",hostName:"PanelMenu",extends:On,emits:["item-toggle","header-focus"],props:{panelId:{type:String,default:null},items:{type:Array,default:null},templates:{type:Object,default:null},expandedKeys:{type:Object,default:null}},searchTimeout:null,searchValue:null,data:function(){return{focused:!1,focusedItem:null,activeItemPath:[]}},watch:{expandedKeys:function(e){this.autoUpdateActiveItemPath(e)}},mounted:function(){this.autoUpdateActiveItemPath(this.expandedKeys)},methods:{getItemProp:function(e,n){return e&&e.item?Te(e.item[n]):void 0},getItemLabel:function(e){return this.getItemProp(e,"label")},isItemVisible:function(e){return this.getItemProp(e,"visible")!==!1},isItemDisabled:function(e){return this.getItemProp(e,"disabled")},isItemActive:function(e){return this.activeItemPath.some(function(n){return n.key===e.parentKey})},isItemGroup:function(e){return J(e.items)},onFocus:function(e){this.focused=!0,this.focusedItem=this.focusedItem||(this.isElementInPanel(e,e.relatedTarget)?this.findFirstItem():this.findLastItem())},onBlur:function(){this.focused=!1,this.focusedItem=null,this.searchValue=""},onKeyDown:function(e){var n=e.metaKey||e.ctrlKey;switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e);break;case"ArrowLeft":this.onArrowLeftKey(e);break;case"ArrowRight":this.onArrowRightKey(e);break;case"Home":this.onHomeKey(e);break;case"End":this.onEndKey(e);break;case"Space":this.onSpaceKey(e);break;case"Enter":case"NumpadEnter":this.onEnterKey(e);break;case"Escape":case"Tab":case"PageDown":case"PageUp":case"Backspace":case"ShiftLeft":case"ShiftRight":break;default:!n&&il(e.key)&&this.searchItems(e,e.key);break}},onArrowDownKey:function(e){var n=J(this.focusedItem)?this.findNextItem(this.focusedItem):this.findFirstItem();this.changeFocusedItem({originalEvent:e,processedItem:n,focusOnNext:!0}),e.preventDefault()},onArrowUpKey:function(e){var n=J(this.focusedItem)?this.findPrevItem(this.focusedItem):this.findLastItem();this.changeFocusedItem({originalEvent:e,processedItem:n,selfCheck:!0}),e.preventDefault()},onArrowLeftKey:function(e){var n=this;if(J(this.focusedItem)){var r=this.activeItemPath.some(function(o){return o.key===n.focusedItem.key});r?this.activeItemPath=this.activeItemPath.filter(function(o){return o.key!==n.focusedItem.key}):this.focusedItem=J(this.focusedItem.parent)?this.focusedItem.parent:this.focusedItem,e.preventDefault()}},onArrowRightKey:function(e){var n=this;if(J(this.focusedItem)){var r=this.isItemGroup(this.focusedItem);if(r){var o=this.activeItemPath.some(function(i){return i.key===n.focusedItem.key});o?this.onArrowDownKey(e):(this.activeItemPath=this.activeItemPath.filter(function(i){return i.parentKey!==n.focusedItem.parentKey}),this.activeItemPath.push(this.focusedItem))}e.preventDefault()}},onHomeKey:function(e){this.changeFocusedItem({originalEvent:e,processedItem:this.findFirstItem(),allowHeaderFocus:!1}),e.preventDefault()},onEndKey:function(e){this.changeFocusedItem({originalEvent:e,processedItem:this.findLastItem(),focusOnNext:!0,allowHeaderFocus:!1}),e.preventDefault()},onEnterKey:function(e){if(J(this.focusedItem)){var n=De(this.$el,'li[id="'.concat("".concat(this.focusedItemId),'"]')),r=n&&(De(n,'[data-pc-section="itemlink"]')||De(n,"a,button"));r?r.click():n&&n.click()}e.preventDefault()},onSpaceKey:function(e){this.onEnterKey(e)},onItemToggle:function(e){var n=e.processedItem,r=e.expanded;this.expandedKeys?this.$emit("item-toggle",{item:n.item,expanded:r}):(this.activeItemPath=this.activeItemPath.filter(function(o){return o.parentKey!==n.parentKey}),r&&this.activeItemPath.push(n)),this.focusedItem=n,Ht(this.$el)},onItemMouseMove:function(e){this.focused&&(this.focusedItem=e.processedItem)},isElementInPanel:function(e,n){var r=e.currentTarget.closest('[data-pc-section="panel"]');return r&&r.contains(n)},isItemMatched:function(e){var n;return this.isValidItem(e)&&((n=this.getItemLabel(e))===null||n===void 0?void 0:n.toLocaleLowerCase(this.searchLocale).startsWith(this.searchValue.toLocaleLowerCase(this.searchLocale)))},isVisibleItem:function(e){return!!e&&(e.level===0||this.isItemActive(e))&&this.isItemVisible(e)},isValidItem:function(e){return!!e&&!this.isItemDisabled(e)&&!this.getItemProp(e,"separator")},findFirstItem:function(){var e=this;return this.visibleItems.find(function(n){return e.isValidItem(n)})},findLastItem:function(){var e=this;return bo(this.visibleItems,function(n){return e.isValidItem(n)})},findNextItem:function(e){var n=this,r=this.visibleItems.findIndex(function(i){return i.key===e.key}),o=r<this.visibleItems.length-1?this.visibleItems.slice(r+1).find(function(i){return n.isValidItem(i)}):void 0;return o||e},findPrevItem:function(e){var n=this,r=this.visibleItems.findIndex(function(i){return i.key===e.key}),o=r>0?bo(this.visibleItems.slice(0,r),function(i){return n.isValidItem(i)}):void 0;return o||e},searchItems:function(e,n){var r=this;this.searchValue=(this.searchValue||"")+n;var o=null,i=!1;if(J(this.focusedItem)){var s=this.visibleItems.findIndex(function(a){return a.key===r.focusedItem.key});o=this.visibleItems.slice(s).find(function(a){return r.isItemMatched(a)}),o=pt(o)?this.visibleItems.slice(0,s).find(function(a){return r.isItemMatched(a)}):o}else o=this.visibleItems.find(function(a){return r.isItemMatched(a)});return J(o)&&(i=!0),pt(o)&&pt(this.focusedItem)&&(o=this.findFirstItem()),J(o)&&this.changeFocusedItem({originalEvent:e,processedItem:o,allowHeaderFocus:!1}),this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout(function(){r.searchValue="",r.searchTimeout=null},500),i},changeFocusedItem:function(e){var n=e.originalEvent,r=e.processedItem,o=e.focusOnNext,i=e.selfCheck,s=e.allowHeaderFocus,a=s===void 0?!0:s;J(this.focusedItem)&&this.focusedItem.key!==r.key?(this.focusedItem=r,this.scrollInView()):a&&this.$emit("header-focus",{originalEvent:n,focusOnNext:o,selfCheck:i})},scrollInView:function(){var e=De(this.$el,'li[id="'.concat("".concat(this.focusedItemId),'"]'));e&&e.scrollIntoView&&e.scrollIntoView({block:"nearest",inline:"start"})},autoUpdateActiveItemPath:function(e){var n=this;this.activeItemPath=Object.entries(e||{}).reduce(function(r,o){var i=kc(o,2),s=i[0],a=i[1];if(a){var c=n.findProcessedItemByItemKey(s);c&&r.push(c)}return r},[])},findProcessedItemByItemKey:function(e,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;if(n=n||r===0&&this.processedItems,!n)return null;for(var o=0;o<n.length;o++){var i=n[o];if(this.getItemProp(i,"key")===e)return i;var s=this.findProcessedItemByItemKey(e,i.items,r+1);if(s)return s}},createProcessedItems:function(e){var n=this,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"",s=[];return e&&e.forEach(function(a,c){var u=(i!==""?i+"_":"")+c,f={item:a,index:c,level:r,key:u,parent:o,parentKey:i};f.items=n.createProcessedItems(a.items,r+1,f,u),s.push(f)}),s},flatItems:function(e){var n=this,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return e&&e.forEach(function(o){n.isVisibleItem(o)&&(r.push(o),n.flatItems(o.items,r))}),r}},computed:{processedItems:function(){return this.createProcessedItems(this.items||[])},visibleItems:function(){return this.flatItems(this.processedItems)},focusedItemId:function(){return J(this.focusedItem)?"".concat(this.panelId,"_").concat(this.focusedItem.key):null}},components:{PanelMenuSub:Go}};function Pc(t,e,n,r,o,i){var s=l.resolveComponent("PanelMenuSub");return l.openBlock(),l.createBlock(s,l.mergeProps({id:n.panelId+"_list",class:t.cx("rootList"),role:"tree",tabindex:-1,"aria-activedescendant":o.focused?i.focusedItemId:void 0,panelId:n.panelId,focusedItemId:o.focused?i.focusedItemId:void 0,items:i.processedItems,templates:n.templates,activeItemPath:o.activeItemPath,onFocus:i.onFocus,onBlur:i.onBlur,onKeydown:i.onKeyDown,onItemToggle:i.onItemToggle,onItemMousemove:i.onItemMouseMove,pt:t.pt,unstyled:t.unstyled},t.ptm("rootList")),null,16,["id","class","aria-activedescendant","panelId","focusedItemId","items","templates","activeItemPath","onFocus","onBlur","onKeydown","onItemToggle","onItemMousemove","pt","unstyled"])}Jo.render=Pc;function Zt(t){"@babel/helpers - typeof";return Zt=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},Zt(t)}function Xo(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 Ic(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Xo(Object(n),!0).forEach(function(r){Oc(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Xo(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Oc(t,e,n){return(e=xc(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function xc(t){var e=Lc(t,"string");return Zt(e)=="symbol"?e:e+""}function Lc(t,e){if(Zt(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(Zt(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Zo={name:"PanelMenu",extends:yc,inheritAttrs:!1,emits:["update:expandedKeys","panel-open","panel-close"],data:function(){return{id:this.$attrs.id,activeItem:null,activeItems:[]}},watch:{"$attrs.id":function(e){this.id=e||Tn()}},mounted:function(){this.id=this.id||Tn()},methods:{getItemProp:function(e,n){return e?Te(e[n]):void 0},getItemLabel:function(e){return this.getItemProp(e,"label")},getPTOptions:function(e,n,r){return this.ptm(e,{context:{index:r,active:this.isItemActive(n),focused:this.isItemFocused(n),disabled:this.isItemDisabled(n)}})},isItemActive:function(e){return this.expandedKeys?this.expandedKeys[this.getItemProp(e,"key")]:this.multiple?this.activeItems.some(function(n){return Tt(e,n)}):Tt(e,this.activeItem)},isItemVisible:function(e){return this.getItemProp(e,"visible")!==!1},isItemDisabled:function(e){return this.getItemProp(e,"disabled")},isItemFocused:function(e){return Tt(e,this.activeItem)},getPanelId:function(e){return"".concat(this.id,"_").concat(e)},getPanelKey:function(e){return this.getPanelId(e)},getHeaderId:function(e){return"".concat(this.getPanelId(e),"_header")},getContentId:function(e){return"".concat(this.getPanelId(e),"_content")},onHeaderClick:function(e,n){if(this.isItemDisabled(n)){e.preventDefault();return}n.command&&n.command({originalEvent:e,item:n}),this.changeActiveItem(e,n),Ht(e.currentTarget)},onHeaderKeyDown:function(e,n){switch(e.code){case"ArrowDown":this.onHeaderArrowDownKey(e);break;case"ArrowUp":this.onHeaderArrowUpKey(e);break;case"Home":this.onHeaderHomeKey(e);break;case"End":this.onHeaderEndKey(e);break;case"Enter":case"NumpadEnter":case"Space":this.onHeaderEnterKey(e,n);break}},onHeaderArrowDownKey:function(e){var n=jt(e.currentTarget,"data-p-active")===!0?De(e.currentTarget.nextElementSibling,'[data-pc-section="rootlist"]'):null;n?Ht(n):this.updateFocusedHeader({originalEvent:e,focusOnNext:!0}),e.preventDefault()},onHeaderArrowUpKey:function(e){var n=this.findPrevHeader(e.currentTarget.parentElement)||this.findLastHeader(),r=jt(n,"data-p-active")===!0?De(n.nextElementSibling,'[data-pc-section="rootlist"]'):null;r?Ht(r):this.updateFocusedHeader({originalEvent:e,focusOnNext:!1}),e.preventDefault()},onHeaderHomeKey:function(e){this.changeFocusedHeader(e,this.findFirstHeader()),e.preventDefault()},onHeaderEndKey:function(e){this.changeFocusedHeader(e,this.findLastHeader()),e.preventDefault()},onHeaderEnterKey:function(e,n){var r=De(e.currentTarget,'[data-pc-section="headerlink"]');r?r.click():this.onHeaderClick(e,n),e.preventDefault()},findNextHeader:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=n?e:e.nextElementSibling,o=De(r,'[data-pc-section="header"]');return o?jt(o,"data-p-disabled")?this.findNextHeader(o.parentElement):o:null},findPrevHeader:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=n?e:e.previousElementSibling,o=De(r,'[data-pc-section="header"]');return o?jt(o,"data-p-disabled")?this.findPrevHeader(o.parentElement):o:null},findFirstHeader:function(){return this.findNextHeader(this.$el.firstElementChild,!0)},findLastHeader:function(){return this.findPrevHeader(this.$el.lastElementChild,!0)},updateFocusedHeader:function(e){var n=e.originalEvent,r=e.focusOnNext,o=e.selfCheck,i=n.currentTarget.closest('[data-pc-section="panel"]'),s=o?De(i,'[data-pc-section="header"]'):r?this.findNextHeader(i):this.findPrevHeader(i);s?this.changeFocusedHeader(n,s):r?this.onHeaderHomeKey(n):this.onHeaderEndKey(n)},changeActiveItem:function(e,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(!this.isItemDisabled(n)){var o=this.isItemActive(n),i=o?"panel-close":"panel-open";this.activeItem=r?n:this.activeItem&&Tt(n,this.activeItem)?null:n,this.multiple&&(this.activeItems.some(function(s){return Tt(n,s)})?this.activeItems=this.activeItems.filter(function(s){return!Tt(n,s)}):this.activeItems.push(n)),this.changeExpandedKeys({item:n,expanded:!o}),this.$emit(i,{originalEvent:e,item:n})}},changeExpandedKeys:function(e){var n=e.item,r=e.expanded,o=r===void 0?!1:r;if(this.expandedKeys){var i=Ic({},this.expandedKeys);o?i[n.key]=!0:delete i[n.key],this.$emit("update:expandedKeys",i)}},changeFocusedHeader:function(e,n){n&&Ht(n)},getMenuItemProps:function(e,n){return{icon:l.mergeProps({class:[this.cx("headerIcon"),this.getItemProp(e,"icon")]},this.getPTOptions("headerIcon",e,n)),label:l.mergeProps({class:this.cx("headerLabel")},this.getPTOptions("headerLabel",e,n))}}},components:{PanelMenuList:Jo,ChevronRightIcon:mr,ChevronDownIcon:fr}},Rc=["id"],$c=["id","tabindex","aria-label","aria-expanded","aria-controls","aria-disabled","onClick","onKeydown","data-p-active","data-p-disabled"],Bc=["href"],Nc=["id","aria-labelledby"];function Dc(t,e,n,r,o,i){var s=l.resolveComponent("PanelMenuList");return l.openBlock(),l.createElementBlock("div",l.mergeProps({id:o.id,class:t.cx("root")},t.ptmi("root")),[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(t.model,function(a,c){return l.openBlock(),l.createElementBlock(l.Fragment,{key:i.getPanelKey(c)},[i.isItemVisible(a)?(l.openBlock(),l.createElementBlock("div",l.mergeProps({key:0,style:i.getItemProp(a,"style"),class:[t.cx("panel"),i.getItemProp(a,"class")],ref_for:!0},t.ptm("panel")),[l.createElementVNode("div",l.mergeProps({id:i.getHeaderId(c),class:[t.cx("header",{item:a}),i.getItemProp(a,"headerClass")],tabindex:i.isItemDisabled(a)?-1:t.tabindex,role:"button","aria-label":i.getItemLabel(a),"aria-expanded":i.isItemActive(a),"aria-controls":i.getContentId(c),"aria-disabled":i.isItemDisabled(a),onClick:function(f){return i.onHeaderClick(f,a)},onKeydown:function(f){return i.onHeaderKeyDown(f,a)},ref_for:!0},i.getPTOptions("header",a,c),{"data-p-active":i.isItemActive(a),"data-p-disabled":i.isItemDisabled(a)}),[l.createElementVNode("div",l.mergeProps({class:t.cx("headerContent"),ref_for:!0},i.getPTOptions("headerContent",a,c)),[t.$slots.item?(l.openBlock(),l.createBlock(l.resolveDynamicComponent(t.$slots.item),{key:1,item:a,root:!0,active:i.isItemActive(a),hasSubmenu:i.getItemProp(a,"items"),label:i.getItemLabel(a),props:i.getMenuItemProps(a,c)},null,8,["item","active","hasSubmenu","label","props"])):(l.openBlock(),l.createElementBlock("a",l.mergeProps({key:0,href:i.getItemProp(a,"url"),class:t.cx("headerLink"),tabindex:-1,ref_for:!0},i.getPTOptions("headerLink",a,c)),[i.getItemProp(a,"items")?l.renderSlot(t.$slots,"submenuicon",{key:0,active:i.isItemActive(a)},function(){return[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(i.isItemActive(a)?"ChevronDownIcon":"ChevronRightIcon"),l.mergeProps({class:t.cx("submenuIcon"),ref_for:!0},i.getPTOptions("submenuIcon",a,c)),null,16,["class"]))]}):l.createCommentVNode("",!0),t.$slots.headericon?(l.openBlock(),l.createBlock(l.resolveDynamicComponent(t.$slots.headericon),{key:1,item:a,class:l.normalizeClass([t.cx("headerIcon"),i.getItemProp(a,"icon")])},null,8,["item","class"])):i.getItemProp(a,"icon")?(l.openBlock(),l.createElementBlock("span",l.mergeProps({key:2,class:[t.cx("headerIcon"),i.getItemProp(a,"icon")],ref_for:!0},i.getPTOptions("headerIcon",a,c)),null,16)):l.createCommentVNode("",!0),l.createElementVNode("span",l.mergeProps({class:t.cx("headerLabel"),ref_for:!0},i.getPTOptions("headerLabel",a,c)),l.toDisplayString(i.getItemLabel(a)),17)],16,Bc))],16)],16,$c),l.createVNode(l.Transition,l.mergeProps({name:"p-toggleable-content",ref_for:!0},t.ptm("transition")),{default:l.withCtx(function(){return[l.withDirectives(l.createElementVNode("div",l.mergeProps({id:i.getContentId(c),class:t.cx("contentContainer"),role:"region","aria-labelledby":i.getHeaderId(c),ref_for:!0},t.ptm("contentContainer")),[i.getItemProp(a,"items")?(l.openBlock(),l.createElementBlock("div",l.mergeProps({key:0,class:t.cx("content"),ref_for:!0},t.ptm("content")),[l.createVNode(s,{panelId:i.getPanelId(c),items:i.getItemProp(a,"items"),templates:t.$slots,expandedKeys:t.expandedKeys,onItemToggle:i.changeExpandedKeys,onHeaderFocus:i.updateFocusedHeader,pt:t.pt,unstyled:t.unstyled},null,8,["panelId","items","templates","expandedKeys","onItemToggle","onHeaderFocus","pt","unstyled"])],16)):l.createCommentVNode("",!0)],16,Nc),[[l.vShow,i.isItemActive(a)]])]}),_:2},1040)],16)):l.createCommentVNode("",!0)],64)}),128))],16,Rc)}Zo.render=Dc;const Mc={class:"panel-menu-wrapper"},Uc=["data-active","href","onClick"],Hc={class:"material-symbols-outlined item-menu-icon-left"},jc={key:1,class:"item-menu sf-ripple"},Vc={key:0,class:"material-symbols-outlined item-menu-icon-left"},Fc=Sn(l.defineComponent({__name:"NavMenu",props:{items:{}},setup(t){const e=t,n=tr();function r(o,i){o.preventDefault();const a=o.target.closest(".panel-menu-wrapper");a&&a.clientWidth+10>document.body.clientWidth&&n.Close(),i()}return(o,i)=>{const s=l.resolveComponent("router-link");return l.openBlock(),l.createElementBlock("div",Mc,[l.createVNode(l.unref(Zo),{model:e.items,unstyled:!0},{item:l.withCtx(({item:a,active:c})=>[a.href?(l.openBlock(),l.createBlock(s,{key:0,to:{path:a.href,params:a.params??{},query:a.query??{}},custom:""},{default:l.withCtx(({navigate:u,isActive:f})=>[l.createElementVNode("a",{class:"item-menu sf-ripple","data-active":f,href:a.href,onClick:m=>r(m,u)},[l.createElementVNode("span",Hc,l.toDisplayString(a.icon??"chevron_right"),1),l.createElementVNode("span",null,l.toDisplayString(a.text),1)],8,Uc)]),_:2},1032,["to"])):(l.openBlock(),l.createElementBlock("a",jc,[a.icon?(l.openBlock(),l.createElementBlock("span",Vc,l.toDisplayString(a.icon),1)):l.createCommentVNode("",!0),l.createElementVNode("span",null,l.toDisplayString(a.text),1),i[0]||(i[0]=l.createElementVNode("div",{class:"sf-flex-grow-1"},null,-1)),l.createElementVNode("span",{class:l.normalizeClass(["material-symbols-outlined arrow",{"--expand":c}])}," chevron_right ",2)]))]),_:1},8,["model"])])}}}),[["__scopeId","data-v-74bc83ee"]]),Qo="SweetAlert2:",zc=t=>{const e=[];for(let n=0;n<t.length;n++)e.indexOf(t[n])===-1&&e.push(t[n]);return e},gr=t=>t.charAt(0).toUpperCase()+t.slice(1),Ae=t=>Array.prototype.slice.call(t),ve=t=>{console.warn(`${Qo} ${typeof t=="object"?t.join(" "):t}`)},ht=t=>{console.error(`${Qo} ${t}`)},ei=[],Kc=t=>{ei.includes(t)||(ei.push(t),ve(t))},Wc=(t,e)=>{Kc(`"${t}" is deprecated and will be removed in the next major release. Please use "${e}" instead.`)},xn=t=>typeof t=="function"?t():t,yr=t=>t&&typeof t.toPromise=="function",Qt=t=>yr(t)?t.toPromise():Promise.resolve(t),br=t=>t&&Promise.resolve(t)===t,At={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},qc=["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"],Gc={},Yc=["allowOutsideClick","allowEnterKey","backdrop","focusConfirm","focusDeny","focusCancel","returnFocus","heightAuto","keydownListenerCapture"],ti=t=>Object.prototype.hasOwnProperty.call(At,t),ni=t=>qc.indexOf(t)!==-1,vr=t=>Gc[t],Jc=t=>{ti(t)||ve(`Unknown parameter "${t}"`)},Xc=t=>{Yc.includes(t)&&ve(`The parameter "${t}" is incompatible with toasts`)},Zc=t=>{vr(t)&&Wc(t,vr(t))},Qc=t=>{!t.backdrop&&t.allowOutsideClick&&ve('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`');for(const e in t)Jc(e),t.toast&&Xc(e),Zc(e)},eu="swal2-",ri=t=>{const e={};for(const n in t)e[t[n]]=eu+t[n];return e},y=ri(["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"]),en=ri(["success","warning","info","question","error"]),ce=()=>document.body.querySelector(`.${y.container}`),tn=t=>{const e=ce();return e?e.querySelector(t):null},Re=t=>tn(`.${t}`),X=()=>Re(y.popup),nn=()=>Re(y.icon),oi=()=>Re(y.title),Ln=()=>Re(y["html-container"]),ii=()=>Re(y.image),si=()=>Re(y["progress-steps"]),Rn=()=>Re(y["validation-message"]),He=()=>tn(`.${y.actions} .${y.confirm}`),at=()=>tn(`.${y.actions} .${y.deny}`),tu=()=>Re(y["input-label"]),Pt=()=>tn(`.${y.loader}`),gt=()=>tn(`.${y.actions} .${y.cancel}`),rn=()=>Re(y.actions),ai=()=>Re(y.footer),$n=()=>Re(y["timer-progress-bar"]),wr=()=>Re(y.close),nu=`
339
+ `)},Da={root:"p-ink"},Ma=ue.extend({name:"ripple-directive",theme:Na,classes:Da}),Ra=V.extend({style:Ma});function Ut(t){"@babel/helpers - typeof";return Ut=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},Ut(t)}function Ua(t){return Fa(t)||ja(t)||Ha(t)||Va()}function Va(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
340
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ha(t,e){if(t){if(typeof t=="string")return qn(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)?qn(t,e):void 0}}function ja(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function Fa(t){if(Array.isArray(t))return qn(t)}function qn(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,o=Array(e);n<e;n++)o[n]=t[n];return o}function lr(t,e,n){return(e=Ka(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Ka(t){var e=za(t,"string");return Ut(e)=="symbol"?e:e+""}function za(t,e){if(Ut(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var o=n.call(t,e||"default");if(Ut(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Wa=Ra.extend("ripple",{watch:{"config.ripple":function(e){e?(this.createRipple(this.$host),this.bindEvents(this.$host),this.$host.setAttribute("data-pd-ripple",!0),this.$host.style.overflow="hidden",this.$host.style.position="relative"):(this.remove(this.$host),this.$host.removeAttribute("data-pd-ripple"))}},unmounted:function(e){this.remove(e)},timeout:void 0,methods:{bindEvents:function(e){e.addEventListener("mousedown",this.onMouseDown.bind(this))},unbindEvents:function(e){e.removeEventListener("mousedown",this.onMouseDown.bind(this))},createRipple:function(e){var n=Ps("span",lr(lr({role:"presentation","aria-hidden":!0,"data-p-ink":!0,"data-p-ink-active":!1,class:!this.isUnstyled()&&this.cx("root"),onAnimationEnd:this.onAnimationEnd.bind(this)},this.$attrSelector,""),"p-bind",this.ptm("root")));e.appendChild(n),this.$el=n},remove:function(e){var n=this.getInk(e);n&&(this.$host.style.overflow="",this.$host.style.position="",this.unbindEvents(e),n.removeEventListener("animationend",this.onAnimationEnd),n.remove())},onMouseDown:function(e){var n=this,o=e.currentTarget,r=this.getInk(o);if(!(!r||getComputedStyle(r,null).display==="none")){if(!this.isUnstyled()&&Dn(r,"p-ink-active"),r.setAttribute("data-p-ink-active","false"),!xo(r)&&!Lo(r)){var i=Math.max(Es(o),Ls(o));r.style.height=i+"px",r.style.width=i+"px"}var c=xs(o),a=e.pageX-c.left+document.body.scrollTop-Lo(r)/2,l=e.pageY-c.top+document.body.scrollLeft-xo(r)/2;r.style.top=l+"px",r.style.left=a+"px",!this.isUnstyled()&&Ts(r,"p-ink-active"),r.setAttribute("data-p-ink-active","true"),this.timeout=setTimeout(function(){r&&(!n.isUnstyled()&&Dn(r,"p-ink-active"),r.setAttribute("data-p-ink-active","false"))},401)}},onAnimationEnd:function(e){this.timeout&&clearTimeout(this.timeout),!this.isUnstyled()&&Dn(e.currentTarget,"p-ink-active"),e.currentTarget.setAttribute("data-p-ink-active","false")},getInk:function(e){return e&&e.children?Ua(e.children).find(function(n){return At(n,"data-pc-name")==="ripple"}):void 0}}}),Ga={name:"BasePanelMenu",extends:gn,props:{model:{type:Array,default:null},expandedKeys:{type:Object,default:null},multiple:{type:Boolean,default:!1},tabindex:{type:Number,default:0}},style:Pa,provide:function(){return{$pcPanelMenu:this,$parentInstance:this}}},cr={name:"PanelMenuSub",hostName:"PanelMenu",extends:gn,emits:["item-toggle","item-mousemove"],props:{panelId:{type:String,default:null},focusedItemId:{type:String,default:null},items:{type:Array,default:null},level:{type:Number,default:0},templates:{type:Object,default:null},activeItemPath:{type:Object,default:null},tabindex:{type:Number,default:-1}},methods:{getItemId:function(e){return"".concat(this.panelId,"_").concat(e.key)},getItemKey:function(e){return this.getItemId(e)},getItemProp:function(e,n,o){return e&&e.item?_e(e.item[n],o):void 0},getItemLabel:function(e){return this.getItemProp(e,"label")},getPTOptions:function(e,n,o){return this.ptm(e,{context:{item:n.item,index:o,active:this.isItemActive(n),focused:this.isItemFocused(n),disabled:this.isItemDisabled(n)}})},isItemActive:function(e){return this.activeItemPath.some(function(n){return n.key===e.key})},isItemVisible:function(e){return this.getItemProp(e,"visible")!==!1},isItemDisabled:function(e){return this.getItemProp(e,"disabled")},isItemFocused:function(e){return this.focusedItemId===this.getItemId(e)},isItemGroup:function(e){return G(e.items)},onItemClick:function(e,n){this.getItemProp(n,"command",{originalEvent:e,item:n.item}),this.$emit("item-toggle",{processedItem:n,expanded:!this.isItemActive(n)})},onItemToggle:function(e){this.$emit("item-toggle",e)},onItemMouseMove:function(e,n){this.$emit("item-mousemove",{originalEvent:e,processedItem:n})},getAriaSetSize:function(){var e=this;return this.items.filter(function(n){return e.isItemVisible(n)&&!e.getItemProp(n,"separator")}).length},getAriaPosInset:function(e){var n=this;return e-this.items.slice(0,e).filter(function(o){return n.isItemVisible(o)&&n.getItemProp(o,"separator")}).length+1},getMenuItemProps:function(e,n){return{action:s.mergeProps({class:this.cx("itemLink"),tabindex:-1,"aria-hidden":!0},this.getPTOptions("itemLink",e,n)),icon:s.mergeProps({class:[this.cx("itemIcon"),this.getItemProp(e,"icon")]},this.getPTOptions("itemIcon",e,n)),label:s.mergeProps({class:this.cx("itemLabel")},this.getPTOptions("itemLabel",e,n)),submenuicon:s.mergeProps({class:this.cx("submenuIcon")},this.getPTOptions("submenuicon",e,n))}}},components:{ChevronRightIcon:Wn,ChevronDownIcon:zn},directives:{ripple:Wa}},qa=["tabindex"],Ya=["id","aria-label","aria-expanded","aria-level","aria-setsize","aria-posinset","data-p-focused","data-p-disabled"],Xa=["onClick","onMousemove"],Za=["href","target"];function Ja(t,e,n,o,r,i){var c=s.resolveComponent("PanelMenuSub",!0),a=s.resolveDirective("ripple");return s.openBlock(),s.createElementBlock("ul",{class:s.normalizeClass(t.cx("submenu")),tabindex:n.tabindex},[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(n.items,function(l,d){return s.openBlock(),s.createElementBlock(s.Fragment,{key:i.getItemKey(l)},[i.isItemVisible(l)&&!i.getItemProp(l,"separator")?(s.openBlock(),s.createElementBlock("li",s.mergeProps({key:0,id:i.getItemId(l),class:[t.cx("item",{processedItem:l}),i.getItemProp(l,"class")],style:i.getItemProp(l,"style"),role:"treeitem","aria-label":i.getItemLabel(l),"aria-expanded":i.isItemGroup(l)?i.isItemActive(l):void 0,"aria-level":n.level+1,"aria-setsize":i.getAriaSetSize(),"aria-posinset":i.getAriaPosInset(d),ref_for:!0},i.getPTOptions("item",l,d),{"data-p-focused":i.isItemFocused(l),"data-p-disabled":i.isItemDisabled(l)}),[s.createElementVNode("div",s.mergeProps({class:t.cx("itemContent"),onClick:function(h){return i.onItemClick(h,l)},onMousemove:function(h){return i.onItemMouseMove(h,l)},ref_for:!0},i.getPTOptions("itemContent",l,d)),[n.templates.item?(s.openBlock(),s.createBlock(s.resolveDynamicComponent(n.templates.item),{key:1,item:l.item,root:!1,active:i.isItemActive(l),hasSubmenu:i.isItemGroup(l),label:i.getItemLabel(l),props:i.getMenuItemProps(l,d)},null,8,["item","active","hasSubmenu","label","props"])):s.withDirectives((s.openBlock(),s.createElementBlock("a",s.mergeProps({key:0,href:i.getItemProp(l,"url"),class:t.cx("itemLink"),target:i.getItemProp(l,"target"),tabindex:"-1",ref_for:!0},i.getPTOptions("itemLink",l,d)),[i.isItemGroup(l)?(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[n.templates.submenuicon?(s.openBlock(),s.createBlock(s.resolveDynamicComponent(n.templates.submenuicon),s.mergeProps({key:0,class:t.cx("submenuIcon"),active:i.isItemActive(l),ref_for:!0},i.getPTOptions("submenuIcon",l,d)),null,16,["class","active"])):(s.openBlock(),s.createBlock(s.resolveDynamicComponent(i.isItemActive(l)?"ChevronDownIcon":"ChevronRightIcon"),s.mergeProps({key:1,class:t.cx("submenuIcon"),ref_for:!0},i.getPTOptions("submenuIcon",l,d)),null,16,["class"]))],64)):s.createCommentVNode("",!0),n.templates.itemicon?(s.openBlock(),s.createBlock(s.resolveDynamicComponent(n.templates.itemicon),{key:1,item:l.item,class:s.normalizeClass(t.cx("itemIcon"))},null,8,["item","class"])):i.getItemProp(l,"icon")?(s.openBlock(),s.createElementBlock("span",s.mergeProps({key:2,class:[t.cx("itemIcon"),i.getItemProp(l,"icon")],ref_for:!0},i.getPTOptions("itemIcon",l,d)),null,16)):s.createCommentVNode("",!0),s.createElementVNode("span",s.mergeProps({class:t.cx("itemLabel"),ref_for:!0},i.getPTOptions("itemLabel",l,d)),s.toDisplayString(i.getItemLabel(l)),17)],16,Za)),[[a]])],16,Xa),s.createVNode(s.Transition,s.mergeProps({name:"p-toggleable-content",ref_for:!0},t.ptm("transition")),{default:s.withCtx(function(){return[s.withDirectives(s.createElementVNode("div",s.mergeProps({class:t.cx("contentContainer"),ref_for:!0},t.ptm("contentContainer")),[i.isItemVisible(l)&&i.isItemGroup(l)?(s.openBlock(),s.createBlock(c,s.mergeProps({key:0,id:i.getItemId(l)+"_list",role:"group",panelId:n.panelId,focusedItemId:n.focusedItemId,items:l.items,level:n.level+1,templates:n.templates,activeItemPath:n.activeItemPath,onItemToggle:i.onItemToggle,onItemMousemove:e[0]||(e[0]=function(m){return t.$emit("item-mousemove",m)}),pt:t.pt,unstyled:t.unstyled,ref_for:!0},t.ptm("submenu")),null,16,["id","panelId","focusedItemId","items","level","templates","activeItemPath","onItemToggle","pt","unstyled"])):s.createCommentVNode("",!0)],16),[[s.vShow,i.isItemActive(l)]])]}),_:2},1040)],16,Ya)):s.createCommentVNode("",!0),i.isItemVisible(l)&&i.getItemProp(l,"separator")?(s.openBlock(),s.createElementBlock("li",s.mergeProps({key:1,style:i.getItemProp(l,"style"),class:[t.cx("separator"),i.getItemProp(l,"class")],role:"separator",ref_for:!0},t.ptm("separator")),null,16)):s.createCommentVNode("",!0)],64)}),128))],10,qa)}cr.render=Ja;function Qa(t,e){return ol(t)||nl(t,e)||tl(t,e)||el()}function el(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
341
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function tl(t,e){if(t){if(typeof t=="string")return ur(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)?ur(t,e):void 0}}function ur(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,o=Array(e);n<e;n++)o[n]=t[n];return o}function nl(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var o,r,i,c,a=[],l=!0,d=!1;try{if(i=(n=n.call(t)).next,e!==0)for(;!(l=(o=i.call(n)).done)&&(a.push(o.value),a.length!==e);l=!0);}catch(m){d=!0,r=m}finally{try{if(!l&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(d)throw r}}return a}}function ol(t){if(Array.isArray(t))return t}var dr={name:"PanelMenuList",hostName:"PanelMenu",extends:gn,emits:["item-toggle","header-focus"],props:{panelId:{type:String,default:null},items:{type:Array,default:null},templates:{type:Object,default:null},expandedKeys:{type:Object,default:null}},searchTimeout:null,searchValue:null,data:function(){return{focused:!1,focusedItem:null,activeItemPath:[]}},watch:{expandedKeys:function(e){this.autoUpdateActiveItemPath(e)}},mounted:function(){this.autoUpdateActiveItemPath(this.expandedKeys)},methods:{getItemProp:function(e,n){return e&&e.item?_e(e.item[n]):void 0},getItemLabel:function(e){return this.getItemProp(e,"label")},isItemVisible:function(e){return this.getItemProp(e,"visible")!==!1},isItemDisabled:function(e){return this.getItemProp(e,"disabled")},isItemActive:function(e){return this.activeItemPath.some(function(n){return n.key===e.parentKey})},isItemGroup:function(e){return G(e.items)},onFocus:function(e){this.focused=!0,this.focusedItem=this.focusedItem||(this.isElementInPanel(e,e.relatedTarget)?this.findFirstItem():this.findLastItem())},onBlur:function(){this.focused=!1,this.focusedItem=null,this.searchValue=""},onKeyDown:function(e){var n=e.metaKey||e.ctrlKey;switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e);break;case"ArrowLeft":this.onArrowLeftKey(e);break;case"ArrowRight":this.onArrowRightKey(e);break;case"Home":this.onHomeKey(e);break;case"End":this.onEndKey(e);break;case"Space":this.onSpaceKey(e);break;case"Enter":case"NumpadEnter":this.onEnterKey(e);break;case"Escape":case"Tab":case"PageDown":case"PageUp":case"Backspace":case"ShiftLeft":case"ShiftRight":break;default:!n&&Ns(e.key)&&this.searchItems(e,e.key);break}},onArrowDownKey:function(e){var n=G(this.focusedItem)?this.findNextItem(this.focusedItem):this.findFirstItem();this.changeFocusedItem({originalEvent:e,processedItem:n,focusOnNext:!0}),e.preventDefault()},onArrowUpKey:function(e){var n=G(this.focusedItem)?this.findPrevItem(this.focusedItem):this.findLastItem();this.changeFocusedItem({originalEvent:e,processedItem:n,selfCheck:!0}),e.preventDefault()},onArrowLeftKey:function(e){var n=this;if(G(this.focusedItem)){var o=this.activeItemPath.some(function(r){return r.key===n.focusedItem.key});o?this.activeItemPath=this.activeItemPath.filter(function(r){return r.key!==n.focusedItem.key}):this.focusedItem=G(this.focusedItem.parent)?this.focusedItem.parent:this.focusedItem,e.preventDefault()}},onArrowRightKey:function(e){var n=this;if(G(this.focusedItem)){var o=this.isItemGroup(this.focusedItem);if(o){var r=this.activeItemPath.some(function(i){return i.key===n.focusedItem.key});r?this.onArrowDownKey(e):(this.activeItemPath=this.activeItemPath.filter(function(i){return i.parentKey!==n.focusedItem.parentKey}),this.activeItemPath.push(this.focusedItem))}e.preventDefault()}},onHomeKey:function(e){this.changeFocusedItem({originalEvent:e,processedItem:this.findFirstItem(),allowHeaderFocus:!1}),e.preventDefault()},onEndKey:function(e){this.changeFocusedItem({originalEvent:e,processedItem:this.findLastItem(),focusOnNext:!0,allowHeaderFocus:!1}),e.preventDefault()},onEnterKey:function(e){if(G(this.focusedItem)){var n=Le(this.$el,'li[id="'.concat("".concat(this.focusedItemId),'"]')),o=n&&(Le(n,'[data-pc-section="itemlink"]')||Le(n,"a,button"));o?o.click():n&&n.click()}e.preventDefault()},onSpaceKey:function(e){this.onEnterKey(e)},onItemToggle:function(e){var n=e.processedItem,o=e.expanded;this.expandedKeys?this.$emit("item-toggle",{item:n.item,expanded:o}):(this.activeItemPath=this.activeItemPath.filter(function(r){return r.parentKey!==n.parentKey}),o&&this.activeItemPath.push(n)),this.focusedItem=n,Pt(this.$el)},onItemMouseMove:function(e){this.focused&&(this.focusedItem=e.processedItem)},isElementInPanel:function(e,n){var o=e.currentTarget.closest('[data-pc-section="panel"]');return o&&o.contains(n)},isItemMatched:function(e){var n;return this.isValidItem(e)&&((n=this.getItemLabel(e))===null||n===void 0?void 0:n.toLocaleLowerCase(this.searchLocale).startsWith(this.searchValue.toLocaleLowerCase(this.searchLocale)))},isVisibleItem:function(e){return!!e&&(e.level===0||this.isItemActive(e))&&this.isItemVisible(e)},isValidItem:function(e){return!!e&&!this.isItemDisabled(e)&&!this.getItemProp(e,"separator")},findFirstItem:function(){var e=this;return this.visibleItems.find(function(n){return e.isValidItem(n)})},findLastItem:function(){var e=this;return $o(this.visibleItems,function(n){return e.isValidItem(n)})},findNextItem:function(e){var n=this,o=this.visibleItems.findIndex(function(i){return i.key===e.key}),r=o<this.visibleItems.length-1?this.visibleItems.slice(o+1).find(function(i){return n.isValidItem(i)}):void 0;return r||e},findPrevItem:function(e){var n=this,o=this.visibleItems.findIndex(function(i){return i.key===e.key}),r=o>0?$o(this.visibleItems.slice(0,o),function(i){return n.isValidItem(i)}):void 0;return r||e},searchItems:function(e,n){var o=this;this.searchValue=(this.searchValue||"")+n;var r=null,i=!1;if(G(this.focusedItem)){var c=this.visibleItems.findIndex(function(a){return a.key===o.focusedItem.key});r=this.visibleItems.slice(c).find(function(a){return o.isItemMatched(a)}),r=at(r)?this.visibleItems.slice(0,c).find(function(a){return o.isItemMatched(a)}):r}else r=this.visibleItems.find(function(a){return o.isItemMatched(a)});return G(r)&&(i=!0),at(r)&&at(this.focusedItem)&&(r=this.findFirstItem()),G(r)&&this.changeFocusedItem({originalEvent:e,processedItem:r,allowHeaderFocus:!1}),this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout(function(){o.searchValue="",o.searchTimeout=null},500),i},changeFocusedItem:function(e){var n=e.originalEvent,o=e.processedItem,r=e.focusOnNext,i=e.selfCheck,c=e.allowHeaderFocus,a=c===void 0?!0:c;G(this.focusedItem)&&this.focusedItem.key!==o.key?(this.focusedItem=o,this.scrollInView()):a&&this.$emit("header-focus",{originalEvent:n,focusOnNext:r,selfCheck:i})},scrollInView:function(){var e=Le(this.$el,'li[id="'.concat("".concat(this.focusedItemId),'"]'));e&&e.scrollIntoView&&e.scrollIntoView({block:"nearest",inline:"start"})},autoUpdateActiveItemPath:function(e){var n=this;this.activeItemPath=Object.entries(e||{}).reduce(function(o,r){var i=Qa(r,2),c=i[0],a=i[1];if(a){var l=n.findProcessedItemByItemKey(c);l&&o.push(l)}return o},[])},findProcessedItemByItemKey:function(e,n){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;if(n=n||o===0&&this.processedItems,!n)return null;for(var r=0;r<n.length;r++){var i=n[r];if(this.getItemProp(i,"key")===e)return i;var c=this.findProcessedItemByItemKey(e,i.items,o+1);if(c)return c}},createProcessedItems:function(e){var n=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"",c=[];return e&&e.forEach(function(a,l){var d=(i!==""?i+"_":"")+l,m={item:a,index:l,level:o,key:d,parent:r,parentKey:i};m.items=n.createProcessedItems(a.items,o+1,m,d),c.push(m)}),c},flatItems:function(e){var n=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return e&&e.forEach(function(r){n.isVisibleItem(r)&&(o.push(r),n.flatItems(r.items,o))}),o}},computed:{processedItems:function(){return this.createProcessedItems(this.items||[])},visibleItems:function(){return this.flatItems(this.processedItems)},focusedItemId:function(){return G(this.focusedItem)?"".concat(this.panelId,"_").concat(this.focusedItem.key):null}},components:{PanelMenuSub:cr}};function rl(t,e,n,o,r,i){var c=s.resolveComponent("PanelMenuSub");return s.openBlock(),s.createBlock(c,s.mergeProps({id:n.panelId+"_list",class:t.cx("rootList"),role:"tree",tabindex:-1,"aria-activedescendant":r.focused?i.focusedItemId:void 0,panelId:n.panelId,focusedItemId:r.focused?i.focusedItemId:void 0,items:i.processedItems,templates:n.templates,activeItemPath:r.activeItemPath,onFocus:i.onFocus,onBlur:i.onBlur,onKeydown:i.onKeyDown,onItemToggle:i.onItemToggle,onItemMousemove:i.onItemMouseMove,pt:t.pt,unstyled:t.unstyled},t.ptm("rootList")),null,16,["id","class","aria-activedescendant","panelId","focusedItemId","items","templates","activeItemPath","onFocus","onBlur","onKeydown","onItemToggle","onItemMousemove","pt","unstyled"])}dr.render=rl;function Vt(t){"@babel/helpers - typeof";return Vt=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},Vt(t)}function fr(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,o)}return n}function il(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?fr(Object(n),!0).forEach(function(o){sl(t,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):fr(Object(n)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(n,o))})}return t}function sl(t,e,n){return(e=al(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function al(t){var e=ll(t,"string");return Vt(e)=="symbol"?e:e+""}function ll(t,e){if(Vt(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var o=n.call(t,e||"default");if(Vt(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var mr={name:"PanelMenu",extends:Ga,inheritAttrs:!1,emits:["update:expandedKeys","panel-open","panel-close"],data:function(){return{id:this.$attrs.id,activeItem:null,activeItems:[]}},watch:{"$attrs.id":function(e){this.id=e||fn()}},mounted:function(){this.id=this.id||fn()},methods:{getItemProp:function(e,n){return e?_e(e[n]):void 0},getItemLabel:function(e){return this.getItemProp(e,"label")},getPTOptions:function(e,n,o){return this.ptm(e,{context:{index:o,active:this.isItemActive(n),focused:this.isItemFocused(n),disabled:this.isItemDisabled(n)}})},isItemActive:function(e){return this.expandedKeys?this.expandedKeys[this.getItemProp(e,"key")]:this.multiple?this.activeItems.some(function(n){return ht(e,n)}):ht(e,this.activeItem)},isItemVisible:function(e){return this.getItemProp(e,"visible")!==!1},isItemDisabled:function(e){return this.getItemProp(e,"disabled")},isItemFocused:function(e){return ht(e,this.activeItem)},getPanelId:function(e){return"".concat(this.id,"_").concat(e)},getPanelKey:function(e){return this.getPanelId(e)},getHeaderId:function(e){return"".concat(this.getPanelId(e),"_header")},getContentId:function(e){return"".concat(this.getPanelId(e),"_content")},onHeaderClick:function(e,n){if(this.isItemDisabled(n)){e.preventDefault();return}n.command&&n.command({originalEvent:e,item:n}),this.changeActiveItem(e,n),Pt(e.currentTarget)},onHeaderKeyDown:function(e,n){switch(e.code){case"ArrowDown":this.onHeaderArrowDownKey(e);break;case"ArrowUp":this.onHeaderArrowUpKey(e);break;case"Home":this.onHeaderHomeKey(e);break;case"End":this.onHeaderEndKey(e);break;case"Enter":case"NumpadEnter":case"Space":this.onHeaderEnterKey(e,n);break}},onHeaderArrowDownKey:function(e){var n=At(e.currentTarget,"data-p-active")===!0?Le(e.currentTarget.nextElementSibling,'[data-pc-section="rootlist"]'):null;n?Pt(n):this.updateFocusedHeader({originalEvent:e,focusOnNext:!0}),e.preventDefault()},onHeaderArrowUpKey:function(e){var n=this.findPrevHeader(e.currentTarget.parentElement)||this.findLastHeader(),o=At(n,"data-p-active")===!0?Le(n.nextElementSibling,'[data-pc-section="rootlist"]'):null;o?Pt(o):this.updateFocusedHeader({originalEvent:e,focusOnNext:!1}),e.preventDefault()},onHeaderHomeKey:function(e){this.changeFocusedHeader(e,this.findFirstHeader()),e.preventDefault()},onHeaderEndKey:function(e){this.changeFocusedHeader(e,this.findLastHeader()),e.preventDefault()},onHeaderEnterKey:function(e,n){var o=Le(e.currentTarget,'[data-pc-section="headerlink"]');o?o.click():this.onHeaderClick(e,n),e.preventDefault()},findNextHeader:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,o=n?e:e.nextElementSibling,r=Le(o,'[data-pc-section="header"]');return r?At(r,"data-p-disabled")?this.findNextHeader(r.parentElement):r:null},findPrevHeader:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,o=n?e:e.previousElementSibling,r=Le(o,'[data-pc-section="header"]');return r?At(r,"data-p-disabled")?this.findPrevHeader(r.parentElement):r:null},findFirstHeader:function(){return this.findNextHeader(this.$el.firstElementChild,!0)},findLastHeader:function(){return this.findPrevHeader(this.$el.lastElementChild,!0)},updateFocusedHeader:function(e){var n=e.originalEvent,o=e.focusOnNext,r=e.selfCheck,i=n.currentTarget.closest('[data-pc-section="panel"]'),c=r?Le(i,'[data-pc-section="header"]'):o?this.findNextHeader(i):this.findPrevHeader(i);c?this.changeFocusedHeader(n,c):o?this.onHeaderHomeKey(n):this.onHeaderEndKey(n)},changeActiveItem:function(e,n){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(!this.isItemDisabled(n)){var r=this.isItemActive(n),i=r?"panel-close":"panel-open";this.activeItem=o?n:this.activeItem&&ht(n,this.activeItem)?null:n,this.multiple&&(this.activeItems.some(function(c){return ht(n,c)})?this.activeItems=this.activeItems.filter(function(c){return!ht(n,c)}):this.activeItems.push(n)),this.changeExpandedKeys({item:n,expanded:!r}),this.$emit(i,{originalEvent:e,item:n})}},changeExpandedKeys:function(e){var n=e.item,o=e.expanded,r=o===void 0?!1:o;if(this.expandedKeys){var i=il({},this.expandedKeys);r?i[n.key]=!0:delete i[n.key],this.$emit("update:expandedKeys",i)}},changeFocusedHeader:function(e,n){n&&Pt(n)},getMenuItemProps:function(e,n){return{icon:s.mergeProps({class:[this.cx("headerIcon"),this.getItemProp(e,"icon")]},this.getPTOptions("headerIcon",e,n)),label:s.mergeProps({class:this.cx("headerLabel")},this.getPTOptions("headerLabel",e,n))}}},components:{PanelMenuList:dr,ChevronRightIcon:Wn,ChevronDownIcon:zn}},cl=["id"],ul=["id","tabindex","aria-label","aria-expanded","aria-controls","aria-disabled","onClick","onKeydown","data-p-active","data-p-disabled"],dl=["href"],fl=["id","aria-labelledby"];function ml(t,e,n,o,r,i){var c=s.resolveComponent("PanelMenuList");return s.openBlock(),s.createElementBlock("div",s.mergeProps({id:r.id,class:t.cx("root")},t.ptmi("root")),[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(t.model,function(a,l){return s.openBlock(),s.createElementBlock(s.Fragment,{key:i.getPanelKey(l)},[i.isItemVisible(a)?(s.openBlock(),s.createElementBlock("div",s.mergeProps({key:0,style:i.getItemProp(a,"style"),class:[t.cx("panel"),i.getItemProp(a,"class")],ref_for:!0},t.ptm("panel")),[s.createElementVNode("div",s.mergeProps({id:i.getHeaderId(l),class:[t.cx("header",{item:a}),i.getItemProp(a,"headerClass")],tabindex:i.isItemDisabled(a)?-1:t.tabindex,role:"button","aria-label":i.getItemLabel(a),"aria-expanded":i.isItemActive(a),"aria-controls":i.getContentId(l),"aria-disabled":i.isItemDisabled(a),onClick:function(m){return i.onHeaderClick(m,a)},onKeydown:function(m){return i.onHeaderKeyDown(m,a)},ref_for:!0},i.getPTOptions("header",a,l),{"data-p-active":i.isItemActive(a),"data-p-disabled":i.isItemDisabled(a)}),[s.createElementVNode("div",s.mergeProps({class:t.cx("headerContent"),ref_for:!0},i.getPTOptions("headerContent",a,l)),[t.$slots.item?(s.openBlock(),s.createBlock(s.resolveDynamicComponent(t.$slots.item),{key:1,item:a,root:!0,active:i.isItemActive(a),hasSubmenu:i.getItemProp(a,"items"),label:i.getItemLabel(a),props:i.getMenuItemProps(a,l)},null,8,["item","active","hasSubmenu","label","props"])):(s.openBlock(),s.createElementBlock("a",s.mergeProps({key:0,href:i.getItemProp(a,"url"),class:t.cx("headerLink"),tabindex:-1,ref_for:!0},i.getPTOptions("headerLink",a,l)),[i.getItemProp(a,"items")?s.renderSlot(t.$slots,"submenuicon",{key:0,active:i.isItemActive(a)},function(){return[(s.openBlock(),s.createBlock(s.resolveDynamicComponent(i.isItemActive(a)?"ChevronDownIcon":"ChevronRightIcon"),s.mergeProps({class:t.cx("submenuIcon"),ref_for:!0},i.getPTOptions("submenuIcon",a,l)),null,16,["class"]))]}):s.createCommentVNode("",!0),t.$slots.headericon?(s.openBlock(),s.createBlock(s.resolveDynamicComponent(t.$slots.headericon),{key:1,item:a,class:s.normalizeClass([t.cx("headerIcon"),i.getItemProp(a,"icon")])},null,8,["item","class"])):i.getItemProp(a,"icon")?(s.openBlock(),s.createElementBlock("span",s.mergeProps({key:2,class:[t.cx("headerIcon"),i.getItemProp(a,"icon")],ref_for:!0},i.getPTOptions("headerIcon",a,l)),null,16)):s.createCommentVNode("",!0),s.createElementVNode("span",s.mergeProps({class:t.cx("headerLabel"),ref_for:!0},i.getPTOptions("headerLabel",a,l)),s.toDisplayString(i.getItemLabel(a)),17)],16,dl))],16)],16,ul),s.createVNode(s.Transition,s.mergeProps({name:"p-toggleable-content",ref_for:!0},t.ptm("transition")),{default:s.withCtx(function(){return[s.withDirectives(s.createElementVNode("div",s.mergeProps({id:i.getContentId(l),class:t.cx("contentContainer"),role:"region","aria-labelledby":i.getHeaderId(l),ref_for:!0},t.ptm("contentContainer")),[i.getItemProp(a,"items")?(s.openBlock(),s.createElementBlock("div",s.mergeProps({key:0,class:t.cx("content"),ref_for:!0},t.ptm("content")),[s.createVNode(c,{panelId:i.getPanelId(l),items:i.getItemProp(a,"items"),templates:t.$slots,expandedKeys:t.expandedKeys,onItemToggle:i.changeExpandedKeys,onHeaderFocus:i.updateFocusedHeader,pt:t.pt,unstyled:t.unstyled},null,8,["panelId","items","templates","expandedKeys","onItemToggle","onHeaderFocus","pt","unstyled"])],16)):s.createCommentVNode("",!0)],16,fl),[[s.vShow,i.isItemActive(a)]])]}),_:2},1040)],16)):s.createCommentVNode("",!0)],64)}),128))],16,cl)}mr.render=ml;const pl={class:"panel-menu-wrapper"},hl=["data-active","href","onClick"],gl={class:"material-symbols-outlined item-menu-icon-left"},yl={key:1,class:"item-menu sf-ripple"},bl={key:0,class:"material-symbols-outlined item-menu-icon-left"},vl=an(s.defineComponent({__name:"NavMenu",props:{items:{}},setup(t){const e=t,n=Bn();function o(r,i){r.preventDefault();const a=r.target.closest(".panel-menu-wrapper");a&&a.clientWidth+10>document.body.clientWidth&&n.Close(),i()}return(r,i)=>{const c=s.resolveComponent("router-link");return s.openBlock(),s.createElementBlock("div",pl,[s.createVNode(s.unref(mr),{model:e.items,unstyled:!0},{item:s.withCtx(({item:a,active:l})=>[a.href?(s.openBlock(),s.createBlock(c,{key:0,to:{path:a.href,params:a.params??{},query:a.query??{}},custom:""},{default:s.withCtx(({navigate:d,isActive:m})=>[s.createElementVNode("a",{class:"item-menu sf-ripple","data-active":m,href:a.href,onClick:h=>o(h,d)},[s.createElementVNode("span",gl,s.toDisplayString(a.icon??"chevron_right"),1),s.createElementVNode("span",null,s.toDisplayString(a.text),1)],8,hl)]),_:2},1032,["to"])):(s.openBlock(),s.createElementBlock("a",yl,[a.icon?(s.openBlock(),s.createElementBlock("span",bl,s.toDisplayString(a.icon),1)):s.createCommentVNode("",!0),s.createElementVNode("span",null,s.toDisplayString(a.text),1),i[0]||(i[0]=s.createElementVNode("div",{class:"sf-flex-grow-1"},null,-1)),s.createElementVNode("span",{class:s.normalizeClass(["material-symbols-outlined arrow",{"--expand":l}])}," chevron_right ",2)]))]),_:1},8,["model"])])}}}),[["__scopeId","data-v-74bc83ee"]]),pr="SweetAlert2:",wl=t=>{const e=[];for(let n=0;n<t.length;n++)e.indexOf(t[n])===-1&&e.push(t[n]);return e},Yn=t=>t.charAt(0).toUpperCase()+t.slice(1),ke=t=>Array.prototype.slice.call(t),he=t=>{console.warn(`${pr} ${typeof t=="object"?t.join(" "):t}`)},lt=t=>{console.error(`${pr} ${t}`)},hr=[],_l=t=>{hr.includes(t)||(hr.push(t),he(t))},kl=(t,e)=>{_l(`"${t}" is deprecated and will be removed in the next major release. Please use "${e}" instead.`)},yn=t=>typeof t=="function"?t():t,Xn=t=>t&&typeof t.toPromise=="function",Ht=t=>Xn(t)?t.toPromise():Promise.resolve(t),Zn=t=>t&&Promise.resolve(t)===t,gt={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},Sl=["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"],Cl={},Il=["allowOutsideClick","allowEnterKey","backdrop","focusConfirm","focusDeny","focusCancel","returnFocus","heightAuto","keydownListenerCapture"],gr=t=>Object.prototype.hasOwnProperty.call(gt,t),yr=t=>Sl.indexOf(t)!==-1,Jn=t=>Cl[t],Tl=t=>{gr(t)||he(`Unknown parameter "${t}"`)},El=t=>{Il.includes(t)&&he(`The parameter "${t}" is incompatible with toasts`)},Pl=t=>{Jn(t)&&kl(t,Jn(t))},Al=t=>{!t.backdrop&&t.allowOutsideClick&&he('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`');for(const e in t)Tl(e),t.toast&&El(e),Pl(e)},xl="swal2-",br=t=>{const e={};for(const n in t)e[t[n]]=xl+t[n];return e},g=br(["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"]),jt=br(["success","warning","info","question","error"]),re=()=>document.body.querySelector(`.${g.container}`),Ft=t=>{const e=re();return e?e.querySelector(t):null},Ee=t=>Ft(`.${t}`),q=()=>Ee(g.popup),Kt=()=>Ee(g.icon),vr=()=>Ee(g.title),bn=()=>Ee(g["html-container"]),wr=()=>Ee(g.image),_r=()=>Ee(g["progress-steps"]),vn=()=>Ee(g["validation-message"]),Be=()=>Ft(`.${g.actions} .${g.confirm}`),tt=()=>Ft(`.${g.actions} .${g.deny}`),Ll=()=>Ee(g["input-label"]),yt=()=>Ft(`.${g.loader}`),ct=()=>Ft(`.${g.actions} .${g.cancel}`),zt=()=>Ee(g.actions),kr=()=>Ee(g.footer),wn=()=>Ee(g["timer-progress-bar"]),Qn=()=>Ee(g.close),Ol=`
342
342
  a[href],
343
343
  area[href],
344
344
  input:not([disabled]),
@@ -353,64 +353,59 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
353
353
  audio[controls],
354
354
  video[controls],
355
355
  summary
356
- `,Sr=()=>{const t=Ae(X().querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])')).sort((n,r)=>{const o=parseInt(n.getAttribute("tabindex")),i=parseInt(r.getAttribute("tabindex"));return o>i?1:o<i?-1:0}),e=Ae(X().querySelectorAll(nu)).filter(n=>n.getAttribute("tabindex")!=="-1");return zc(t.concat(e)).filter(n=>Pe(n))},_r=()=>tt(document.body,y.shown)&&!tt(document.body,y["toast-shown"])&&!tt(document.body,y["no-backdrop"]),Bn=()=>X()&&tt(X(),y.toast),ru=()=>X().hasAttribute("data-loading"),It={previousBodyPadding:null},ue=(t,e)=>{if(t.textContent="",e){const r=new DOMParser().parseFromString(e,"text/html");Ae(r.querySelector("head").childNodes).forEach(o=>{t.appendChild(o)}),Ae(r.querySelector("body").childNodes).forEach(o=>{t.appendChild(o)})}},tt=(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},ou=(t,e)=>{Ae(t.classList).forEach(n=>{!Object.values(y).includes(n)&&!Object.values(en).includes(n)&&!Object.values(e.showClass).includes(n)&&t.classList.remove(n)})},$e=(t,e,n)=>{if(ou(t,e),e.customClass&&e.customClass[n]){if(typeof e.customClass[n]!="string"&&!e.customClass[n].forEach)return ve(`Invalid type of customClass.${n}! Expected string or iterable object, got "${typeof e.customClass[n]}"`);G(t,e.customClass[n])}},kr=(t,e)=>{if(!e)return null;switch(e){case"select":case"textarea":case"file":return t.querySelector(`.${y.popup} > .${y[e]}`);case"checkbox":return t.querySelector(`.${y.popup} > .${y.checkbox} input`);case"radio":return t.querySelector(`.${y.popup} > .${y.radio} input:checked`)||t.querySelector(`.${y.popup} > .${y.radio} input:first-child`);case"range":return t.querySelector(`.${y.popup} > .${y.range} input`);default:return t.querySelector(`.${y.popup} > .${y.input}`)}},li=t=>{if(t.focus(),t.type!=="file"){const e=t.value;t.value="",t.value=e}},ci=(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)}))},G=(t,e)=>{ci(t,e,!0)},Ge=(t,e)=>{ci(t,e,!1)},lt=(t,e)=>{const n=Ae(t.childNodes);for(let r=0;r<n.length;r++)if(tt(n[r],e))return n[r]},on=(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)},ae=(t,e="flex")=>{t.style.display=e},de=t=>{t.style.display="none"},ui=(t,e,n,r)=>{const o=t.querySelector(e);o&&(o.style[n]=r)},Nn=(t,e,n)=>{e?ae(t,n):de(t)},Pe=t=>!!(t&&(t.offsetWidth||t.offsetHeight||t.getClientRects().length)),iu=()=>!Pe(He())&&!Pe(at())&&!Pe(gt()),di=t=>t.scrollHeight>t.clientHeight,fi=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},Cr=(t,e=!1)=>{const n=$n();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))},su=()=>{const t=$n(),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}%`},mi=()=>typeof window>"u"||typeof document>"u",au=100,U={},lu=()=>{U.previousActiveElement&&U.previousActiveElement.focus?(U.previousActiveElement.focus(),U.previousActiveElement=null):document.body&&document.body.focus()},cu=t=>new Promise(e=>{if(!t)return e();const n=window.scrollX,r=window.scrollY;U.restoreFocusTimeout=setTimeout(()=>{lu(),e()},au),window.scrollTo(n,r)}),uu=`
357
- <div aria-labelledby="${y.title}" aria-describedby="${y["html-container"]}" class="${y.popup}" tabindex="-1">
358
- <button type="button" class="${y.close}"></button>
359
- <ul class="${y["progress-steps"]}"></ul>
360
- <div class="${y.icon}"></div>
361
- <img class="${y.image}" />
362
- <h2 class="${y.title}" id="${y.title}"></h2>
363
- <div class="${y["html-container"]}" id="${y["html-container"]}"></div>
364
- <input class="${y.input}" />
365
- <input type="file" class="${y.file}" />
366
- <div class="${y.range}">
356
+ `,eo=()=>{const t=ke(q().querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])')).sort((n,o)=>{const r=parseInt(n.getAttribute("tabindex")),i=parseInt(o.getAttribute("tabindex"));return r>i?1:r<i?-1:0}),e=ke(q().querySelectorAll(Ol)).filter(n=>n.getAttribute("tabindex")!=="-1");return wl(t.concat(e)).filter(n=>Se(n))},to=()=>qe(document.body,g.shown)&&!qe(document.body,g["toast-shown"])&&!qe(document.body,g["no-backdrop"]),_n=()=>q()&&qe(q(),g.toast),$l=()=>q().hasAttribute("data-loading"),bt={previousBodyPadding:null},ie=(t,e)=>{if(t.textContent="",e){const o=new DOMParser().parseFromString(e,"text/html");ke(o.querySelector("head").childNodes).forEach(r=>{t.appendChild(r)}),ke(o.querySelector("body").childNodes).forEach(r=>{t.appendChild(r)})}},qe=(t,e)=>{if(!e)return!1;const n=e.split(/\s+/);for(let o=0;o<n.length;o++)if(!t.classList.contains(n[o]))return!1;return!0},Bl=(t,e)=>{ke(t.classList).forEach(n=>{!Object.values(g).includes(n)&&!Object.values(jt).includes(n)&&!Object.values(e.showClass).includes(n)&&t.classList.remove(n)})},Pe=(t,e,n)=>{if(Bl(t,e),e.customClass&&e.customClass[n]){if(typeof e.customClass[n]!="string"&&!e.customClass[n].forEach)return he(`Invalid type of customClass.${n}! Expected string or iterable object, got "${typeof e.customClass[n]}"`);z(t,e.customClass[n])}},no=(t,e)=>{if(!e)return null;switch(e){case"select":case"textarea":case"file":return t.querySelector(`.${g.popup} > .${g[e]}`);case"checkbox":return t.querySelector(`.${g.popup} > .${g.checkbox} input`);case"radio":return t.querySelector(`.${g.popup} > .${g.radio} input:checked`)||t.querySelector(`.${g.popup} > .${g.radio} input:first-child`);case"range":return t.querySelector(`.${g.popup} > .${g.range} input`);default:return t.querySelector(`.${g.popup} > .${g.input}`)}},Sr=t=>{if(t.focus(),t.type!=="file"){const e=t.value;t.value="",t.value=e}},Cr=(t,e,n)=>{!t||!e||(typeof e=="string"&&(e=e.split(/\s+/).filter(Boolean)),e.forEach(o=>{Array.isArray(t)?t.forEach(r=>{n?r.classList.add(o):r.classList.remove(o)}):n?t.classList.add(o):t.classList.remove(o)}))},z=(t,e)=>{Cr(t,e,!0)},Re=(t,e)=>{Cr(t,e,!1)},nt=(t,e)=>{const n=ke(t.childNodes);for(let o=0;o<n.length;o++)if(qe(n[o],e))return n[o]},Wt=(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)},ne=(t,e="flex")=>{t.style.display=e},se=t=>{t.style.display="none"},Ir=(t,e,n,o)=>{const r=t.querySelector(e);r&&(r.style[n]=o)},kn=(t,e,n)=>{e?ne(t,n):se(t)},Se=t=>!!(t&&(t.offsetWidth||t.offsetHeight||t.getClientRects().length)),Nl=()=>!Se(Be())&&!Se(tt())&&!Se(ct()),Tr=t=>t.scrollHeight>t.clientHeight,Er=t=>{const e=window.getComputedStyle(t),n=parseFloat(e.getPropertyValue("animation-duration")||"0"),o=parseFloat(e.getPropertyValue("transition-duration")||"0");return n>0||o>0},oo=(t,e=!1)=>{const n=wn();Se(n)&&(e&&(n.style.transition="none",n.style.width="100%"),setTimeout(()=>{n.style.transition=`width ${t/1e3}s linear`,n.style.width="0%"},10))},Dl=()=>{const t=wn(),e=parseInt(window.getComputedStyle(t).width);t.style.removeProperty("transition"),t.style.width="100%";const n=parseInt(window.getComputedStyle(t).width),o=e/n*100;t.style.removeProperty("transition"),t.style.width=`${o}%`},Pr=()=>typeof window>"u"||typeof document>"u",Ml=100,D={},Rl=()=>{D.previousActiveElement&&D.previousActiveElement.focus?(D.previousActiveElement.focus(),D.previousActiveElement=null):document.body&&document.body.focus()},Ul=t=>new Promise(e=>{if(!t)return e();const n=window.scrollX,o=window.scrollY;D.restoreFocusTimeout=setTimeout(()=>{Rl(),e()},Ml),window.scrollTo(n,o)}),Vl=`
357
+ <div aria-labelledby="${g.title}" aria-describedby="${g["html-container"]}" class="${g.popup}" tabindex="-1">
358
+ <button type="button" class="${g.close}"></button>
359
+ <ul class="${g["progress-steps"]}"></ul>
360
+ <div class="${g.icon}"></div>
361
+ <img class="${g.image}" />
362
+ <h2 class="${g.title}" id="${g.title}"></h2>
363
+ <div class="${g["html-container"]}" id="${g["html-container"]}"></div>
364
+ <input class="${g.input}" />
365
+ <input type="file" class="${g.file}" />
366
+ <div class="${g.range}">
367
367
  <input type="range" />
368
368
  <output></output>
369
369
  </div>
370
- <select class="${y.select}"></select>
371
- <div class="${y.radio}"></div>
372
- <label for="${y.checkbox}" class="${y.checkbox}">
370
+ <select class="${g.select}"></select>
371
+ <div class="${g.radio}"></div>
372
+ <label for="${g.checkbox}" class="${g.checkbox}">
373
373
  <input type="checkbox" />
374
- <span class="${y.label}"></span>
374
+ <span class="${g.label}"></span>
375
375
  </label>
376
- <textarea class="${y.textarea}"></textarea>
377
- <div class="${y["validation-message"]}" id="${y["validation-message"]}"></div>
378
- <div class="${y.actions}">
379
- <div class="${y.loader}"></div>
380
- <button type="button" class="${y.confirm}"></button>
381
- <button type="button" class="${y.deny}"></button>
382
- <button type="button" class="${y.cancel}"></button>
376
+ <textarea class="${g.textarea}"></textarea>
377
+ <div class="${g["validation-message"]}" id="${g["validation-message"]}"></div>
378
+ <div class="${g.actions}">
379
+ <div class="${g.loader}"></div>
380
+ <button type="button" class="${g.confirm}"></button>
381
+ <button type="button" class="${g.deny}"></button>
382
+ <button type="button" class="${g.cancel}"></button>
383
383
  </div>
384
- <div class="${y.footer}"></div>
385
- <div class="${y["timer-progress-bar-container"]}">
386
- <div class="${y["timer-progress-bar"]}"></div>
384
+ <div class="${g.footer}"></div>
385
+ <div class="${g["timer-progress-bar-container"]}">
386
+ <div class="${g["timer-progress-bar"]}"></div>
387
387
  </div>
388
388
  </div>
389
- `.replace(/(^|\n)\s*/g,""),du=()=>{const t=ce();return t?(t.remove(),Ge([document.documentElement,document.body],[y["no-backdrop"],y["toast-shown"],y["has-column"]]),!0):!1},yt=()=>{U.currentInstance.resetValidationMessage()},fu=()=>{const t=X(),e=lt(t,y.input),n=lt(t,y.file),r=t.querySelector(`.${y.range} input`),o=t.querySelector(`.${y.range} output`),i=lt(t,y.select),s=t.querySelector(`.${y.checkbox} input`),a=lt(t,y.textarea);e.oninput=yt,n.onchange=yt,i.onchange=yt,s.onchange=yt,a.oninput=yt,r.oninput=()=>{yt(),o.value=r.value},r.onchange=()=>{yt(),r.nextSibling.value=r.value}},mu=t=>typeof t=="string"?document.querySelector(t):t,pu=t=>{const e=X();e.setAttribute("role",t.toast?"alert":"dialog"),e.setAttribute("aria-live",t.toast?"polite":"assertive"),t.toast||e.setAttribute("aria-modal","true")},hu=t=>{window.getComputedStyle(t).direction==="rtl"&&G(ce(),y.rtl)},gu=t=>{const e=du();if(mi()){ht("SweetAlert2 requires document to initialize");return}const n=document.createElement("div");n.className=y.container,e&&G(n,y["no-transition"]),ue(n,uu);const r=mu(t.target);r.appendChild(n),pu(t),hu(r),fu()},Er=(t,e)=>{t instanceof HTMLElement?e.appendChild(t):typeof t=="object"?yu(t,e):t&&ue(e,t)},yu=(t,e)=>{t.jquery?bu(e,t):ue(e,t.toString())},bu=(t,e)=>{if(t.textContent="",0 in e)for(let n=0;n in e;n++)t.appendChild(e[n].cloneNode(!0));else t.appendChild(e.cloneNode(!0))},sn=(()=>{if(mi())return!1;const t=document.createElement("div"),e={WebkitAnimation:"webkitAnimationEnd",animation:"animationend"};for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&typeof t.style[n]<"u")return e[n];return!1})(),vu=()=>{const t=document.createElement("div");t.className=y["scrollbar-measure"],document.body.appendChild(t);const e=t.getBoundingClientRect().width-t.clientWidth;return document.body.removeChild(t),e},wu=(t,e)=>{const n=rn(),r=Pt();!e.showConfirmButton&&!e.showDenyButton&&!e.showCancelButton?de(n):ae(n),$e(n,e,"actions"),Su(n,r,e),ue(r,e.loaderHtml),$e(r,e,"loader")};function Su(t,e,n){const r=He(),o=at(),i=gt();Tr(r,"confirm",n),Tr(o,"deny",n),Tr(i,"cancel",n),_u(r,o,i,n),n.reverseButtons&&(n.toast?(t.insertBefore(i,r),t.insertBefore(o,r)):(t.insertBefore(i,e),t.insertBefore(o,e),t.insertBefore(r,e)))}function _u(t,e,n,r){if(!r.buttonsStyling)return Ge([t,e,n],y.styled);G([t,e,n],y.styled),r.confirmButtonColor&&(t.style.backgroundColor=r.confirmButtonColor,G(t,y["default-outline"])),r.denyButtonColor&&(e.style.backgroundColor=r.denyButtonColor,G(e,y["default-outline"])),r.cancelButtonColor&&(n.style.backgroundColor=r.cancelButtonColor,G(n,y["default-outline"]))}function Tr(t,e,n){Nn(t,n[`show${gr(e)}Button`],"inline-block"),ue(t,n[`${e}ButtonText`]),t.setAttribute("aria-label",n[`${e}ButtonAriaLabel`]),t.className=y[e],$e(t,n,`${e}Button`),G(t,n[`${e}ButtonClass`])}function ku(t,e){typeof e=="string"?t.style.background=e:e||G([document.documentElement,document.body],y["no-backdrop"])}function Cu(t,e){e in y?G(t,y[e]):(ve('The "position" parameter is not valid, defaulting to "center"'),G(t,y.center))}function Eu(t,e){if(e&&typeof e=="string"){const n=`grow-${e}`;n in y&&G(t,y[n])}}const Tu=(t,e)=>{const n=ce();n&&(ku(n,e.backdrop),Cu(n,e.position),Eu(n,e.grow),$e(n,e,"container"))},V={awaitingPromise:new WeakMap,promise:new WeakMap,innerParams:new WeakMap,domCache:new WeakMap},Au=["input","file","range","select","radio","checkbox","textarea"],Pu=(t,e)=>{const n=X(),r=V.innerParams.get(t),o=!r||e.input!==r.input;Au.forEach(i=>{const s=y[i],a=lt(n,s);xu(i,e.inputAttributes),a.className=s,o&&de(a)}),e.input&&(o&&Iu(e),Lu(e))},Iu=t=>{if(!we[t.input])return ht(`Unexpected type of input! Expected "text", "email", "password", "number", "tel", "select", "radio", "checkbox", "textarea", "file" or "url", got "${t.input}"`);const e=pi(t.input),n=we[t.input](e,t);ae(n),setTimeout(()=>{li(n)})},Ou=t=>{for(let e=0;e<t.attributes.length;e++){const n=t.attributes[e].name;["type","value","style"].includes(n)||t.removeAttribute(n)}},xu=(t,e)=>{const n=kr(X(),t);if(n){Ou(n);for(const r in e)n.setAttribute(r,e[r])}},Lu=t=>{const e=pi(t.input);t.customClass&&G(e,t.customClass.input)},Ar=(t,e)=>{(!t.placeholder||e.inputPlaceholder)&&(t.placeholder=e.inputPlaceholder)},an=(t,e,n)=>{if(n.inputLabel){t.id=y.input;const r=document.createElement("label"),o=y["input-label"];r.setAttribute("for",t.id),r.className=o,G(r,n.customClass.inputLabel),r.innerText=n.inputLabel,e.insertAdjacentElement("beforebegin",r)}},pi=t=>{const e=y[t]?y[t]:y.input;return lt(X(),e)},we={};we.text=we.email=we.password=we.number=we.tel=we.url=(t,e)=>(typeof e.inputValue=="string"||typeof e.inputValue=="number"?t.value=e.inputValue:br(e.inputValue)||ve(`Unexpected type of inputValue! Expected "string", "number" or "Promise", got "${typeof e.inputValue}"`),an(t,t,e),Ar(t,e),t.type=e.input,t),we.file=(t,e)=>(an(t,t,e),Ar(t,e),t),we.range=(t,e)=>{const n=t.querySelector("input"),r=t.querySelector("output");return n.value=e.inputValue,n.type=e.input,r.value=e.inputValue,an(n,t,e),t},we.select=(t,e)=>{if(t.textContent="",e.inputPlaceholder){const n=document.createElement("option");ue(n,e.inputPlaceholder),n.value="",n.disabled=!0,n.selected=!0,t.appendChild(n)}return an(t,t,e),t},we.radio=t=>(t.textContent="",t),we.checkbox=(t,e)=>{const n=kr(X(),"checkbox");n.value="1",n.id=y.checkbox,n.checked=!!e.inputValue;const r=t.querySelector("span");return ue(r,e.inputPlaceholder),t},we.textarea=(t,e)=>{t.value=e.inputValue,Ar(t,e),an(t,t,e);const n=r=>parseInt(window.getComputedStyle(r).marginLeft)+parseInt(window.getComputedStyle(r).marginRight);return setTimeout(()=>{if("MutationObserver"in window){const r=parseInt(window.getComputedStyle(X()).width),o=()=>{const i=t.offsetWidth+n(t);i>r?X().style.width=`${i}px`:X().style.width=null};new MutationObserver(o).observe(t,{attributes:!0,attributeFilter:["style"]})}}),t};const Ru=(t,e)=>{const n=Ln();$e(n,e,"htmlContainer"),e.html?(Er(e.html,n),ae(n,"block")):e.text?(n.textContent=e.text,ae(n,"block")):de(n),Pu(t,e)},$u=(t,e)=>{const n=ai();Nn(n,e.footer),e.footer&&Er(e.footer,n),$e(n,e,"footer")},Bu=(t,e)=>{const n=wr();ue(n,e.closeButtonHtml),$e(n,e,"closeButton"),Nn(n,e.showCloseButton),n.setAttribute("aria-label",e.closeButtonAriaLabel)},Nu=(t,e)=>{const n=V.innerParams.get(t),r=nn();if(n&&e.icon===n.icon){gi(r,e),hi(r,e);return}if(!e.icon&&!e.iconHtml)return de(r);if(e.icon&&Object.keys(en).indexOf(e.icon)===-1)return ht(`Unknown icon! Expected "success", "error", "warning", "info" or "question", got "${e.icon}"`),de(r);ae(r),gi(r,e),hi(r,e),G(r,e.showClass.icon)},hi=(t,e)=>{for(const n in en)e.icon!==n&&Ge(t,en[n]);G(t,en[e.icon]),Hu(t,e),Du(),$e(t,e,"icon")},Du=()=>{const t=X(),e=window.getComputedStyle(t).getPropertyValue("background-color"),n=t.querySelectorAll("[class^=swal2-success-circular-line], .swal2-success-fix");for(let r=0;r<n.length;r++)n[r].style.backgroundColor=e},Mu=`
389
+ `.replace(/(^|\n)\s*/g,""),Hl=()=>{const t=re();return t?(t.remove(),Re([document.documentElement,document.body],[g["no-backdrop"],g["toast-shown"],g["has-column"]]),!0):!1},ut=()=>{D.currentInstance.resetValidationMessage()},jl=()=>{const t=q(),e=nt(t,g.input),n=nt(t,g.file),o=t.querySelector(`.${g.range} input`),r=t.querySelector(`.${g.range} output`),i=nt(t,g.select),c=t.querySelector(`.${g.checkbox} input`),a=nt(t,g.textarea);e.oninput=ut,n.onchange=ut,i.onchange=ut,c.onchange=ut,a.oninput=ut,o.oninput=()=>{ut(),r.value=o.value},o.onchange=()=>{ut(),o.nextSibling.value=o.value}},Fl=t=>typeof t=="string"?document.querySelector(t):t,Kl=t=>{const e=q();e.setAttribute("role",t.toast?"alert":"dialog"),e.setAttribute("aria-live",t.toast?"polite":"assertive"),t.toast||e.setAttribute("aria-modal","true")},zl=t=>{window.getComputedStyle(t).direction==="rtl"&&z(re(),g.rtl)},Wl=t=>{const e=Hl();if(Pr()){lt("SweetAlert2 requires document to initialize");return}const n=document.createElement("div");n.className=g.container,e&&z(n,g["no-transition"]),ie(n,Vl);const o=Fl(t.target);o.appendChild(n),Kl(t),zl(o),jl()},ro=(t,e)=>{t instanceof HTMLElement?e.appendChild(t):typeof t=="object"?Gl(t,e):t&&ie(e,t)},Gl=(t,e)=>{t.jquery?ql(e,t):ie(e,t.toString())},ql=(t,e)=>{if(t.textContent="",0 in e)for(let n=0;n in e;n++)t.appendChild(e[n].cloneNode(!0));else t.appendChild(e.cloneNode(!0))},Gt=(()=>{if(Pr())return!1;const t=document.createElement("div"),e={WebkitAnimation:"webkitAnimationEnd",animation:"animationend"};for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&typeof t.style[n]<"u")return e[n];return!1})(),Yl=()=>{const t=document.createElement("div");t.className=g["scrollbar-measure"],document.body.appendChild(t);const e=t.getBoundingClientRect().width-t.clientWidth;return document.body.removeChild(t),e},Xl=(t,e)=>{const n=zt(),o=yt();!e.showConfirmButton&&!e.showDenyButton&&!e.showCancelButton?se(n):ne(n),Pe(n,e,"actions"),Zl(n,o,e),ie(o,e.loaderHtml),Pe(o,e,"loader")};function Zl(t,e,n){const o=Be(),r=tt(),i=ct();io(o,"confirm",n),io(r,"deny",n),io(i,"cancel",n),Jl(o,r,i,n),n.reverseButtons&&(n.toast?(t.insertBefore(i,o),t.insertBefore(r,o)):(t.insertBefore(i,e),t.insertBefore(r,e),t.insertBefore(o,e)))}function Jl(t,e,n,o){if(!o.buttonsStyling)return Re([t,e,n],g.styled);z([t,e,n],g.styled),o.confirmButtonColor&&(t.style.backgroundColor=o.confirmButtonColor,z(t,g["default-outline"])),o.denyButtonColor&&(e.style.backgroundColor=o.denyButtonColor,z(e,g["default-outline"])),o.cancelButtonColor&&(n.style.backgroundColor=o.cancelButtonColor,z(n,g["default-outline"]))}function io(t,e,n){kn(t,n[`show${Yn(e)}Button`],"inline-block"),ie(t,n[`${e}ButtonText`]),t.setAttribute("aria-label",n[`${e}ButtonAriaLabel`]),t.className=g[e],Pe(t,n,`${e}Button`),z(t,n[`${e}ButtonClass`])}function Ql(t,e){typeof e=="string"?t.style.background=e:e||z([document.documentElement,document.body],g["no-backdrop"])}function ec(t,e){e in g?z(t,g[e]):(he('The "position" parameter is not valid, defaulting to "center"'),z(t,g.center))}function tc(t,e){if(e&&typeof e=="string"){const n=`grow-${e}`;n in g&&z(t,g[n])}}const nc=(t,e)=>{const n=re();n&&(Ql(n,e.backdrop),ec(n,e.position),tc(n,e.grow),Pe(n,e,"container"))},M={awaitingPromise:new WeakMap,promise:new WeakMap,innerParams:new WeakMap,domCache:new WeakMap},oc=["input","file","range","select","radio","checkbox","textarea"],rc=(t,e)=>{const n=q(),o=M.innerParams.get(t),r=!o||e.input!==o.input;oc.forEach(i=>{const c=g[i],a=nt(n,c);ac(i,e.inputAttributes),a.className=c,r&&se(a)}),e.input&&(r&&ic(e),lc(e))},ic=t=>{if(!ge[t.input])return lt(`Unexpected type of input! Expected "text", "email", "password", "number", "tel", "select", "radio", "checkbox", "textarea", "file" or "url", got "${t.input}"`);const e=Ar(t.input),n=ge[t.input](e,t);ne(n),setTimeout(()=>{Sr(n)})},sc=t=>{for(let e=0;e<t.attributes.length;e++){const n=t.attributes[e].name;["type","value","style"].includes(n)||t.removeAttribute(n)}},ac=(t,e)=>{const n=no(q(),t);if(n){sc(n);for(const o in e)n.setAttribute(o,e[o])}},lc=t=>{const e=Ar(t.input);t.customClass&&z(e,t.customClass.input)},so=(t,e)=>{(!t.placeholder||e.inputPlaceholder)&&(t.placeholder=e.inputPlaceholder)},qt=(t,e,n)=>{if(n.inputLabel){t.id=g.input;const o=document.createElement("label"),r=g["input-label"];o.setAttribute("for",t.id),o.className=r,z(o,n.customClass.inputLabel),o.innerText=n.inputLabel,e.insertAdjacentElement("beforebegin",o)}},Ar=t=>{const e=g[t]?g[t]:g.input;return nt(q(),e)},ge={};ge.text=ge.email=ge.password=ge.number=ge.tel=ge.url=(t,e)=>(typeof e.inputValue=="string"||typeof e.inputValue=="number"?t.value=e.inputValue:Zn(e.inputValue)||he(`Unexpected type of inputValue! Expected "string", "number" or "Promise", got "${typeof e.inputValue}"`),qt(t,t,e),so(t,e),t.type=e.input,t),ge.file=(t,e)=>(qt(t,t,e),so(t,e),t),ge.range=(t,e)=>{const n=t.querySelector("input"),o=t.querySelector("output");return n.value=e.inputValue,n.type=e.input,o.value=e.inputValue,qt(n,t,e),t},ge.select=(t,e)=>{if(t.textContent="",e.inputPlaceholder){const n=document.createElement("option");ie(n,e.inputPlaceholder),n.value="",n.disabled=!0,n.selected=!0,t.appendChild(n)}return qt(t,t,e),t},ge.radio=t=>(t.textContent="",t),ge.checkbox=(t,e)=>{const n=no(q(),"checkbox");n.value="1",n.id=g.checkbox,n.checked=!!e.inputValue;const o=t.querySelector("span");return ie(o,e.inputPlaceholder),t},ge.textarea=(t,e)=>{t.value=e.inputValue,so(t,e),qt(t,t,e);const n=o=>parseInt(window.getComputedStyle(o).marginLeft)+parseInt(window.getComputedStyle(o).marginRight);return setTimeout(()=>{if("MutationObserver"in window){const o=parseInt(window.getComputedStyle(q()).width),r=()=>{const i=t.offsetWidth+n(t);i>o?q().style.width=`${i}px`:q().style.width=null};new MutationObserver(r).observe(t,{attributes:!0,attributeFilter:["style"]})}}),t};const cc=(t,e)=>{const n=bn();Pe(n,e,"htmlContainer"),e.html?(ro(e.html,n),ne(n,"block")):e.text?(n.textContent=e.text,ne(n,"block")):se(n),rc(t,e)},uc=(t,e)=>{const n=kr();kn(n,e.footer),e.footer&&ro(e.footer,n),Pe(n,e,"footer")},dc=(t,e)=>{const n=Qn();ie(n,e.closeButtonHtml),Pe(n,e,"closeButton"),kn(n,e.showCloseButton),n.setAttribute("aria-label",e.closeButtonAriaLabel)},fc=(t,e)=>{const n=M.innerParams.get(t),o=Kt();if(n&&e.icon===n.icon){Lr(o,e),xr(o,e);return}if(!e.icon&&!e.iconHtml)return se(o);if(e.icon&&Object.keys(jt).indexOf(e.icon)===-1)return lt(`Unknown icon! Expected "success", "error", "warning", "info" or "question", got "${e.icon}"`),se(o);ne(o),Lr(o,e),xr(o,e),z(o,e.showClass.icon)},xr=(t,e)=>{for(const n in jt)e.icon!==n&&Re(t,jt[n]);z(t,jt[e.icon]),gc(t,e),mc(),Pe(t,e,"icon")},mc=()=>{const t=q(),e=window.getComputedStyle(t).getPropertyValue("background-color"),n=t.querySelectorAll("[class^=swal2-success-circular-line], .swal2-success-fix");for(let o=0;o<n.length;o++)n[o].style.backgroundColor=e},pc=`
390
390
  <div class="swal2-success-circular-line-left"></div>
391
391
  <span class="swal2-success-line-tip"></span> <span class="swal2-success-line-long"></span>
392
392
  <div class="swal2-success-ring"></div> <div class="swal2-success-fix"></div>
393
393
  <div class="swal2-success-circular-line-right"></div>
394
- `,Uu=`
394
+ `,hc=`
395
395
  <span class="swal2-x-mark">
396
396
  <span class="swal2-x-mark-line-left"></span>
397
397
  <span class="swal2-x-mark-line-right"></span>
398
398
  </span>
399
- `,gi=(t,e)=>{t.textContent="",e.iconHtml?ue(t,yi(e.iconHtml)):e.icon==="success"?ue(t,Mu):e.icon==="error"?ue(t,Uu):ue(t,yi({question:"?",warning:"!",info:"i"}[e.icon]))},Hu=(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"])ui(t,n,"backgroundColor",e.iconColor);ui(t,".swal2-success-ring","borderColor",e.iconColor)}},yi=t=>`<div class="${y["icon-content"]}">${t}</div>`,ju=(t,e)=>{const n=ii();if(!e.imageUrl)return de(n);ae(n,""),n.setAttribute("src",e.imageUrl),n.setAttribute("alt",e.imageAlt),on(n,"width",e.imageWidth),on(n,"height",e.imageHeight),n.className=y.image,$e(n,e,"image")},Vu=t=>{const e=document.createElement("li");return G(e,y["progress-step"]),ue(e,t),e},Fu=t=>{const e=document.createElement("li");return G(e,y["progress-step-line"]),t.progressStepsDistance&&(e.style.width=t.progressStepsDistance),e},zu=(t,e)=>{const n=si();if(!e.progressSteps||e.progressSteps.length===0)return de(n);ae(n),n.textContent="",e.currentProgressStep>=e.progressSteps.length&&ve("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),e.progressSteps.forEach((r,o)=>{const i=Vu(r);if(n.appendChild(i),o===e.currentProgressStep&&G(i,y["active-progress-step"]),o!==e.progressSteps.length-1){const s=Fu(e);n.appendChild(s)}})},Ku=(t,e)=>{const n=oi();Nn(n,e.title||e.titleText,"block"),e.title&&Er(e.title,n),e.titleText&&(n.innerText=e.titleText),$e(n,e,"title")},Wu=(t,e)=>{const n=ce(),r=X();e.toast?(on(n,"width",e.width),r.style.width="100%",r.insertBefore(Pt(),nn())):on(r,"width",e.width),on(r,"padding",e.padding),e.color&&(r.style.color=e.color),e.background&&(r.style.background=e.background),de(Rn()),qu(r,e)},qu=(t,e)=>{t.className=`${y.popup} ${Pe(t)?e.showClass.popup:""}`,e.toast?(G([document.documentElement,document.body],y["toast-shown"]),G(t,y.toast)):G(t,y.modal),$e(t,e,"popup"),typeof e.customClass=="string"&&G(t,e.customClass),e.icon&&G(t,y[`icon-${e.icon}`])},bi=(t,e)=>{Wu(t,e),Tu(t,e),zu(t,e),Nu(t,e),ju(t,e),Ku(t,e),Bu(t,e),Ru(t,e),wu(t,e),$u(t,e),typeof e.didRender=="function"&&e.didRender(X())},Ot=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),Gu=()=>{Ae(document.body.children).forEach(e=>{e===ce()||e.contains(ce())||(e.hasAttribute("aria-hidden")&&e.setAttribute("data-previous-aria-hidden",e.getAttribute("aria-hidden")),e.setAttribute("aria-hidden","true"))})},vi=()=>{Ae(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")})},wi=["swal-title","swal-html","swal-footer"],Yu=t=>{const e=typeof t.template=="string"?document.querySelector(t.template):t.template;if(!e)return{};const n=e.content;return nd(n),Object.assign(Ju(n),Xu(n),Zu(n),Qu(n),ed(n),td(n,wi))},Ju=t=>{const e={};return Ae(t.querySelectorAll("swal-param")).forEach(n=>{bt(n,["name","value"]);const r=n.getAttribute("name"),o=n.getAttribute("value");typeof At[r]=="boolean"&&o==="false"&&(e[r]=!1),typeof At[r]=="object"&&(e[r]=JSON.parse(o))}),e},Xu=t=>{const e={};return Ae(t.querySelectorAll("swal-button")).forEach(n=>{bt(n,["type","color","aria-label"]);const r=n.getAttribute("type");e[`${r}ButtonText`]=n.innerHTML,e[`show${gr(r)}Button`]=!0,n.hasAttribute("color")&&(e[`${r}ButtonColor`]=n.getAttribute("color")),n.hasAttribute("aria-label")&&(e[`${r}ButtonAriaLabel`]=n.getAttribute("aria-label"))}),e},Zu=t=>{const e={},n=t.querySelector("swal-image");return n&&(bt(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},Qu=t=>{const e={},n=t.querySelector("swal-icon");return n&&(bt(n,["type","color"]),n.hasAttribute("type")&&(e.icon=n.getAttribute("type")),n.hasAttribute("color")&&(e.iconColor=n.getAttribute("color")),e.iconHtml=n.innerHTML),e},ed=t=>{const e={},n=t.querySelector("swal-input");n&&(bt(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={},Ae(r).forEach(o=>{bt(o,["value"]);const i=o.getAttribute("value"),s=o.innerHTML;e.inputOptions[i]=s})),e},td=(t,e)=>{const n={};for(const r in e){const o=e[r],i=t.querySelector(o);i&&(bt(i,[]),n[o.replace(/^swal-/,"")]=i.innerHTML.trim())}return n},nd=t=>{const e=wi.concat(["swal-param","swal-button","swal-image","swal-icon","swal-input","swal-input-option"]);Ae(t.children).forEach(n=>{const r=n.tagName.toLowerCase();e.indexOf(r)===-1&&ve(`Unrecognized element <${r}>`)})},bt=(t,e)=>{Ae(t.attributes).forEach(n=>{e.indexOf(n.name)===-1&&ve([`Unrecognized attribute "${n.name}" on <${t.tagName.toLowerCase()}>.`,`${e.length?`Allowed attributes are: ${e.join(", ")}`:"To set the value, use HTML within the element."}`])})},Si={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 rd(t){t.inputValidator||Object.keys(Si).forEach(e=>{t.input===e&&(t.inputValidator=Si[e])})}function od(t){(!t.target||typeof t.target=="string"&&!document.querySelector(t.target)||typeof t.target!="string"&&!t.target.appendChild)&&(ve('Target parameter is not valid, defaulting to "body"'),t.target="body")}function id(t){rd(t),t.showLoaderOnConfirm&&!t.preConfirm&&ve(`showLoaderOnConfirm is set to true, but preConfirm is not defined.
399
+ `,Lr=(t,e)=>{t.textContent="",e.iconHtml?ie(t,Or(e.iconHtml)):e.icon==="success"?ie(t,pc):e.icon==="error"?ie(t,hc):ie(t,Or({question:"?",warning:"!",info:"i"}[e.icon]))},gc=(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"])Ir(t,n,"backgroundColor",e.iconColor);Ir(t,".swal2-success-ring","borderColor",e.iconColor)}},Or=t=>`<div class="${g["icon-content"]}">${t}</div>`,yc=(t,e)=>{const n=wr();if(!e.imageUrl)return se(n);ne(n,""),n.setAttribute("src",e.imageUrl),n.setAttribute("alt",e.imageAlt),Wt(n,"width",e.imageWidth),Wt(n,"height",e.imageHeight),n.className=g.image,Pe(n,e,"image")},bc=t=>{const e=document.createElement("li");return z(e,g["progress-step"]),ie(e,t),e},vc=t=>{const e=document.createElement("li");return z(e,g["progress-step-line"]),t.progressStepsDistance&&(e.style.width=t.progressStepsDistance),e},wc=(t,e)=>{const n=_r();if(!e.progressSteps||e.progressSteps.length===0)return se(n);ne(n),n.textContent="",e.currentProgressStep>=e.progressSteps.length&&he("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),e.progressSteps.forEach((o,r)=>{const i=bc(o);if(n.appendChild(i),r===e.currentProgressStep&&z(i,g["active-progress-step"]),r!==e.progressSteps.length-1){const c=vc(e);n.appendChild(c)}})},_c=(t,e)=>{const n=vr();kn(n,e.title||e.titleText,"block"),e.title&&ro(e.title,n),e.titleText&&(n.innerText=e.titleText),Pe(n,e,"title")},kc=(t,e)=>{const n=re(),o=q();e.toast?(Wt(n,"width",e.width),o.style.width="100%",o.insertBefore(yt(),Kt())):Wt(o,"width",e.width),Wt(o,"padding",e.padding),e.color&&(o.style.color=e.color),e.background&&(o.style.background=e.background),se(vn()),Sc(o,e)},Sc=(t,e)=>{t.className=`${g.popup} ${Se(t)?e.showClass.popup:""}`,e.toast?(z([document.documentElement,document.body],g["toast-shown"]),z(t,g.toast)):z(t,g.modal),Pe(t,e,"popup"),typeof e.customClass=="string"&&z(t,e.customClass),e.icon&&z(t,g[`icon-${e.icon}`])},$r=(t,e)=>{kc(t,e),nc(t,e),wc(t,e),fc(t,e),yc(t,e),_c(t,e),dc(t,e),cc(t,e),Xl(t,e),uc(t,e),typeof e.didRender=="function"&&e.didRender(q())},vt=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),Cc=()=>{ke(document.body.children).forEach(e=>{e===re()||e.contains(re())||(e.hasAttribute("aria-hidden")&&e.setAttribute("data-previous-aria-hidden",e.getAttribute("aria-hidden")),e.setAttribute("aria-hidden","true"))})},Br=()=>{ke(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")})},Nr=["swal-title","swal-html","swal-footer"],Ic=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(Tc(n),Ec(n),Pc(n),Ac(n),xc(n),Lc(n,Nr))},Tc=t=>{const e={};return ke(t.querySelectorAll("swal-param")).forEach(n=>{dt(n,["name","value"]);const o=n.getAttribute("name"),r=n.getAttribute("value");typeof gt[o]=="boolean"&&r==="false"&&(e[o]=!1),typeof gt[o]=="object"&&(e[o]=JSON.parse(r))}),e},Ec=t=>{const e={};return ke(t.querySelectorAll("swal-button")).forEach(n=>{dt(n,["type","color","aria-label"]);const o=n.getAttribute("type");e[`${o}ButtonText`]=n.innerHTML,e[`show${Yn(o)}Button`]=!0,n.hasAttribute("color")&&(e[`${o}ButtonColor`]=n.getAttribute("color")),n.hasAttribute("aria-label")&&(e[`${o}ButtonAriaLabel`]=n.getAttribute("aria-label"))}),e},Pc=t=>{const e={},n=t.querySelector("swal-image");return n&&(dt(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},Ac=t=>{const e={},n=t.querySelector("swal-icon");return n&&(dt(n,["type","color"]),n.hasAttribute("type")&&(e.icon=n.getAttribute("type")),n.hasAttribute("color")&&(e.iconColor=n.getAttribute("color")),e.iconHtml=n.innerHTML),e},xc=t=>{const e={},n=t.querySelector("swal-input");n&&(dt(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 o=t.querySelectorAll("swal-input-option");return o.length&&(e.inputOptions={},ke(o).forEach(r=>{dt(r,["value"]);const i=r.getAttribute("value"),c=r.innerHTML;e.inputOptions[i]=c})),e},Lc=(t,e)=>{const n={};for(const o in e){const r=e[o],i=t.querySelector(r);i&&(dt(i,[]),n[r.replace(/^swal-/,"")]=i.innerHTML.trim())}return n},Oc=t=>{const e=Nr.concat(["swal-param","swal-button","swal-image","swal-icon","swal-input","swal-input-option"]);ke(t.children).forEach(n=>{const o=n.tagName.toLowerCase();e.indexOf(o)===-1&&he(`Unrecognized element <${o}>`)})},dt=(t,e)=>{ke(t.attributes).forEach(n=>{e.indexOf(n.name)===-1&&he([`Unrecognized attribute "${n.name}" on <${t.tagName.toLowerCase()}>.`,`${e.length?`Allowed attributes are: ${e.join(", ")}`:"To set the value, use HTML within the element."}`])})},Dr={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 $c(t){t.inputValidator||Object.keys(Dr).forEach(e=>{t.input===e&&(t.inputValidator=Dr[e])})}function Bc(t){(!t.target||typeof t.target=="string"&&!document.querySelector(t.target)||typeof t.target!="string"&&!t.target.appendChild)&&(he('Target parameter is not valid, defaulting to "body"'),t.target="body")}function Nc(t){$c(t),t.showLoaderOnConfirm&&!t.preConfirm&&he(`showLoaderOnConfirm is set to true, but preConfirm is not defined.
400
400
  showLoaderOnConfirm should be used together with preConfirm, see usage example:
401
- https://sweetalert2.github.io/#ajax-request`),od(t),typeof t.title=="string"&&(t.title=t.title.split(`
402
- `).join("<br />")),gu(t)}class sd{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 ad=()=>{It.previousBodyPadding===null&&document.body.scrollHeight>window.innerHeight&&(It.previousBodyPadding=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight=`${It.previousBodyPadding+vu()}px`)},ld=()=>{It.previousBodyPadding!==null&&(document.body.style.paddingRight=`${It.previousBodyPadding}px`,It.previousBodyPadding=null)},cd=()=>{if((/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1)&&!tt(document.body,y.iosfix)){const e=document.body.scrollTop;document.body.style.top=`${e*-1}px`,G(document.body,y.iosfix),dd(),ud()}},ud=()=>{const t=navigator.userAgent,e=!!t.match(/iPad/i)||!!t.match(/iPhone/i),n=!!t.match(/WebKit/i);e&&n&&!t.match(/CriOS/i)&&X().scrollHeight>window.innerHeight-44&&(ce().style.paddingBottom="44px")},dd=()=>{const t=ce();let e;t.ontouchstart=n=>{e=fd(n)},t.ontouchmove=n=>{e&&(n.preventDefault(),n.stopPropagation())}},fd=t=>{const e=t.target,n=ce();return md(t)||pd(t)?!1:e===n||!di(n)&&e.tagName!=="INPUT"&&e.tagName!=="TEXTAREA"&&!(di(Ln())&&Ln().contains(e))},md=t=>t.touches&&t.touches.length&&t.touches[0].touchType==="stylus",pd=t=>t.touches&&t.touches.length>1,hd=()=>{if(tt(document.body,y.iosfix)){const t=parseInt(document.body.style.top,10);Ge(document.body,y.iosfix),document.body.style.top="",document.body.scrollTop=t*-1}},_i=10,gd=t=>{const e=ce(),n=X();typeof t.willOpen=="function"&&t.willOpen(n);const o=window.getComputedStyle(document.body).overflowY;vd(e,n,t),setTimeout(()=>{yd(e,n)},_i),_r()&&(bd(e,t.scrollbarPadding,o),Gu()),!Bn()&&!U.previousActiveElement&&(U.previousActiveElement=document.activeElement),typeof t.didOpen=="function"&&setTimeout(()=>t.didOpen(n)),Ge(e,y["no-transition"])},ki=t=>{const e=X();if(t.target!==e)return;const n=ce();e.removeEventListener(sn,ki),n.style.overflowY="auto"},yd=(t,e)=>{sn&&fi(e)?(t.style.overflowY="hidden",e.addEventListener(sn,ki)):t.style.overflowY="auto"},bd=(t,e,n)=>{cd(),e&&n!=="hidden"&&ad(),setTimeout(()=>{t.scrollTop=0})},vd=(t,e,n)=>{G(t,n.showClass.backdrop),e.style.setProperty("opacity","0","important"),ae(e,"grid"),setTimeout(()=>{G(e,n.showClass.popup),e.style.removeProperty("opacity")},_i),G([document.documentElement,document.body],y.shown),n.heightAuto&&n.backdrop&&!n.toast&&G([document.documentElement,document.body],y["height-auto"])},xt=t=>{let e=X();e||new Rt,e=X();const n=Pt();Bn()?de(nn()):wd(e,t),ae(n),e.setAttribute("data-loading",!0),e.setAttribute("aria-busy",!0),e.focus()},wd=(t,e)=>{const n=rn(),r=Pt();!e&&Pe(He())&&(e=He()),ae(n),e&&(de(e),r.setAttribute("data-button-to-replace",e.className)),r.parentNode.insertBefore(r,e),G([t,n],y.loading)},Sd=(t,e)=>{e.input==="select"||e.input==="radio"?Td(t,e):["text","email","number","tel","textarea"].includes(e.input)&&(yr(e.inputValue)||br(e.inputValue))&&(xt(He()),Ad(t,e))},_d=(t,e)=>{const n=t.getInput();if(!n)return null;switch(e.input){case"checkbox":return kd(n);case"radio":return Cd(n);case"file":return Ed(n);default:return e.inputAutoTrim?n.value.trim():n.value}},kd=t=>t.checked?1:0,Cd=t=>t.checked?t.value:null,Ed=t=>t.files.length?t.getAttribute("multiple")!==null?t.files:t.files[0]:null,Td=(t,e)=>{const n=X(),r=o=>Pd[e.input](n,Pr(o),e);yr(e.inputOptions)||br(e.inputOptions)?(xt(He()),Qt(e.inputOptions).then(o=>{t.hideLoading(),r(o)})):typeof e.inputOptions=="object"?r(e.inputOptions):ht(`Unexpected type of inputOptions! Expected object, Map or Promise, got ${typeof e.inputOptions}`)},Ad=(t,e)=>{const n=t.getInput();de(n),Qt(e.inputValue).then(r=>{n.value=e.input==="number"?parseFloat(r)||0:`${r}`,ae(n),n.focus(),t.hideLoading()}).catch(r=>{ht(`Error in inputValue promise: ${r}`),n.value="",ae(n),n.focus(),t.hideLoading()})},Pd={select:(t,e,n)=>{const r=lt(t,y.select),o=(i,s,a)=>{const c=document.createElement("option");c.value=a,ue(c,s),c.selected=Ci(a,n.inputValue),i.appendChild(c)};e.forEach(i=>{const s=i[0],a=i[1];if(Array.isArray(a)){const c=document.createElement("optgroup");c.label=s,c.disabled=!1,r.appendChild(c),a.forEach(u=>o(c,u[1],u[0]))}else o(r,a,s)}),r.focus()},radio:(t,e,n)=>{const r=lt(t,y.radio);e.forEach(i=>{const s=i[0],a=i[1],c=document.createElement("input"),u=document.createElement("label");c.type="radio",c.name=y.radio,c.value=s,Ci(s,n.inputValue)&&(c.checked=!0);const f=document.createElement("span");ue(f,a),f.className=y.label,u.appendChild(c),u.appendChild(f),r.appendChild(u)});const o=r.querySelectorAll("input");o.length&&o[0].focus()}},Pr=t=>{const e=[];return typeof Map<"u"&&t instanceof Map?t.forEach((n,r)=>{let o=n;typeof o=="object"&&(o=Pr(o)),e.push([r,o])}):Object.keys(t).forEach(n=>{let r=t[n];typeof r=="object"&&(r=Pr(r)),e.push([n,r])}),e},Ci=(t,e)=>e&&e.toString()===t.toString();function Ei(){const t=V.innerParams.get(this);if(!t)return;const e=V.domCache.get(this);de(e.loader),Bn()?t.icon&&ae(nn()):Id(e),Ge([e.popup,e.actions],y.loading),e.popup.removeAttribute("aria-busy"),e.popup.removeAttribute("data-loading"),e.confirmButton.disabled=!1,e.denyButton.disabled=!1,e.cancelButton.disabled=!1}const Id=t=>{const e=t.popup.getElementsByClassName(t.loader.getAttribute("data-button-to-replace"));e.length?ae(e[0],"inline-block"):iu()&&de(t.actions)};function Od(t){const e=V.innerParams.get(t||this),n=V.domCache.get(t||this);return n?kr(n.popup,e.input):null}const ln={swalPromiseResolve:new WeakMap,swalPromiseReject:new WeakMap},xd=()=>Pe(X()),Ti=()=>He()&&He().click(),Ld=()=>at()&&at().click(),Rd=()=>gt()&&gt().click(),Ai=t=>{t.keydownTarget&&t.keydownHandlerAdded&&(t.keydownTarget.removeEventListener("keydown",t.keydownHandler,{capture:t.keydownListenerCapture}),t.keydownHandlerAdded=!1)},$d=(t,e,n,r)=>{Ai(e),n.toast||(e.keydownHandler=o=>Nd(t,o,r),e.keydownTarget=n.keydownListenerCapture?window:X(),e.keydownListenerCapture=n.keydownListenerCapture,e.keydownTarget.addEventListener("keydown",e.keydownHandler,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!0)},Ir=(t,e,n)=>{const r=Sr();if(r.length)return e=e+n,e===r.length?e=0:e===-1&&(e=r.length-1),r[e].focus();X().focus()},Pi=["ArrowRight","ArrowDown"],Bd=["ArrowLeft","ArrowUp"],Nd=(t,e,n)=>{const r=V.innerParams.get(t);r&&(e.isComposing||e.keyCode===229||(r.stopKeydownPropagation&&e.stopPropagation(),e.key==="Enter"?Dd(t,e,r):e.key==="Tab"?Md(e,r):[...Pi,...Bd].includes(e.key)?Ud(e.key):e.key==="Escape"&&Hd(e,r,n)))},Dd=(t,e,n)=>{if(xn(n.allowEnterKey)&&e.target&&t.getInput()&&e.target.outerHTML===t.getInput().outerHTML){if(["textarea","file"].includes(n.input))return;Ti(),e.preventDefault()}},Md=(t,e)=>{const n=t.target,r=Sr();let o=-1;for(let i=0;i<r.length;i++)if(n===r[i]){o=i;break}t.shiftKey?Ir(e,o,-1):Ir(e,o,1),t.stopPropagation(),t.preventDefault()},Ud=t=>{const e=He(),n=at(),r=gt();if(![e,n,r].includes(document.activeElement))return;const o=Pi.includes(t)?"nextElementSibling":"previousElementSibling";let i=document.activeElement;for(let s=0;s<rn().children.length;s++){if(i=i[o],!i)return;if(Pe(i)&&i instanceof HTMLButtonElement)break}i instanceof HTMLButtonElement&&i.focus()},Hd=(t,e,n)=>{xn(e.allowEscapeKey)&&(t.preventDefault(),n(Ot.esc))};function Ii(t,e,n,r){Bn()?Oi(t,r):(cu(n).then(()=>Oi(t,r)),Ai(U)),/^((?!chrome|android).)*safari/i.test(navigator.userAgent)?(e.setAttribute("style","display:none !important"),e.removeAttribute("class"),e.innerHTML=""):e.remove(),_r()&&(ld(),hd(),vi()),jd()}function jd(){Ge([document.documentElement,document.body],[y.shown,y["height-auto"],y["no-backdrop"],y["toast-shown"]])}function Dn(t){t=Kd(t);const e=ln.swalPromiseResolve.get(this),n=Fd(this);this.isAwaitingPromise()?t.isDismissed||(cn(this),e(t)):n&&e(t)}function Vd(){return!!V.awaitingPromise.get(this)}const Fd=t=>{const e=X();if(!e)return!1;const n=V.innerParams.get(t);if(!n||tt(e,n.hideClass.popup))return!1;Ge(e,n.showClass.popup),G(e,n.hideClass.popup);const r=ce();return Ge(r,n.showClass.backdrop),G(r,n.hideClass.backdrop),Wd(t,e,n),!0};function zd(t){const e=ln.swalPromiseReject.get(this);cn(this),e&&e(t)}const cn=t=>{t.isAwaitingPromise()&&(V.awaitingPromise.delete(t),V.innerParams.get(t)||t._destroy())},Kd=t=>typeof t>"u"?{isConfirmed:!1,isDenied:!1,isDismissed:!0}:Object.assign({isConfirmed:!1,isDenied:!1,isDismissed:!1},t),Wd=(t,e,n)=>{const r=ce(),o=sn&&fi(e);typeof n.willClose=="function"&&n.willClose(e),o?qd(t,e,r,n.returnFocus,n.didClose):Ii(t,r,n.returnFocus,n.didClose)},qd=(t,e,n,r,o)=>{U.swalCloseEventFinishedCallback=Ii.bind(null,t,n,r,o),e.addEventListener(sn,function(i){i.target===e&&(U.swalCloseEventFinishedCallback(),delete U.swalCloseEventFinishedCallback)})},Oi=(t,e)=>{setTimeout(()=>{typeof e=="function"&&e.bind(t.params)(),t._destroy()})};function xi(t,e,n){const r=V.domCache.get(t);e.forEach(o=>{r[o].disabled=n})}function Li(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 Gd(){xi(this,["confirmButton","denyButton","cancelButton"],!1)}function Yd(){xi(this,["confirmButton","denyButton","cancelButton"],!0)}function Jd(){return Li(this.getInput(),!1)}function Xd(){return Li(this.getInput(),!0)}function Zd(t){const e=V.domCache.get(this),n=V.innerParams.get(this);ue(e.validationMessage,t),e.validationMessage.className=y["validation-message"],n.customClass&&n.customClass.validationMessage&&G(e.validationMessage,n.customClass.validationMessage),ae(e.validationMessage);const r=this.getInput();r&&(r.setAttribute("aria-invalid",!0),r.setAttribute("aria-describedby",y["validation-message"]),li(r),G(r,y.inputerror))}function Qd(){const t=V.domCache.get(this);t.validationMessage&&de(t.validationMessage);const e=this.getInput();e&&(e.removeAttribute("aria-invalid"),e.removeAttribute("aria-describedby"),Ge(e,y.inputerror))}function ef(){return V.domCache.get(this).progressSteps}function tf(t){const e=X(),n=V.innerParams.get(this);if(!e||tt(e,n.hideClass.popup))return ve("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=nf(t),o=Object.assign({},n,r);bi(this,o),V.innerParams.set(this,o),Object.defineProperties(this,{params:{value:Object.assign({},this.params,t),writable:!1,enumerable:!0}})}const nf=t=>{const e={};return Object.keys(t).forEach(n=>{ni(n)?e[n]=t[n]:ve(`Invalid parameter to update: "${n}". Updatable params are listed here: https://github.com/sweetalert2/sweetalert2/blob/master/src/utils/params.js
401
+ https://sweetalert2.github.io/#ajax-request`),Bc(t),typeof t.title=="string"&&(t.title=t.title.split(`
402
+ `).join("<br />")),Wl(t)}class Dc{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 Mc=()=>{bt.previousBodyPadding===null&&document.body.scrollHeight>window.innerHeight&&(bt.previousBodyPadding=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight=`${bt.previousBodyPadding+Yl()}px`)},Rc=()=>{bt.previousBodyPadding!==null&&(document.body.style.paddingRight=`${bt.previousBodyPadding}px`,bt.previousBodyPadding=null)},Uc=()=>{if((/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1)&&!qe(document.body,g.iosfix)){const e=document.body.scrollTop;document.body.style.top=`${e*-1}px`,z(document.body,g.iosfix),Hc(),Vc()}},Vc=()=>{const t=navigator.userAgent,e=!!t.match(/iPad/i)||!!t.match(/iPhone/i),n=!!t.match(/WebKit/i);e&&n&&!t.match(/CriOS/i)&&q().scrollHeight>window.innerHeight-44&&(re().style.paddingBottom="44px")},Hc=()=>{const t=re();let e;t.ontouchstart=n=>{e=jc(n)},t.ontouchmove=n=>{e&&(n.preventDefault(),n.stopPropagation())}},jc=t=>{const e=t.target,n=re();return Fc(t)||Kc(t)?!1:e===n||!Tr(n)&&e.tagName!=="INPUT"&&e.tagName!=="TEXTAREA"&&!(Tr(bn())&&bn().contains(e))},Fc=t=>t.touches&&t.touches.length&&t.touches[0].touchType==="stylus",Kc=t=>t.touches&&t.touches.length>1,zc=()=>{if(qe(document.body,g.iosfix)){const t=parseInt(document.body.style.top,10);Re(document.body,g.iosfix),document.body.style.top="",document.body.scrollTop=t*-1}},Mr=10,Wc=t=>{const e=re(),n=q();typeof t.willOpen=="function"&&t.willOpen(n);const r=window.getComputedStyle(document.body).overflowY;Yc(e,n,t),setTimeout(()=>{Gc(e,n)},Mr),to()&&(qc(e,t.scrollbarPadding,r),Cc()),!_n()&&!D.previousActiveElement&&(D.previousActiveElement=document.activeElement),typeof t.didOpen=="function"&&setTimeout(()=>t.didOpen(n)),Re(e,g["no-transition"])},Rr=t=>{const e=q();if(t.target!==e)return;const n=re();e.removeEventListener(Gt,Rr),n.style.overflowY="auto"},Gc=(t,e)=>{Gt&&Er(e)?(t.style.overflowY="hidden",e.addEventListener(Gt,Rr)):t.style.overflowY="auto"},qc=(t,e,n)=>{Uc(),e&&n!=="hidden"&&Mc(),setTimeout(()=>{t.scrollTop=0})},Yc=(t,e,n)=>{z(t,n.showClass.backdrop),e.style.setProperty("opacity","0","important"),ne(e,"grid"),setTimeout(()=>{z(e,n.showClass.popup),e.style.removeProperty("opacity")},Mr),z([document.documentElement,document.body],g.shown),n.heightAuto&&n.backdrop&&!n.toast&&z([document.documentElement,document.body],g["height-auto"])},wt=t=>{let e=q();e||new kt,e=q();const n=yt();_n()?se(Kt()):Xc(e,t),ne(n),e.setAttribute("data-loading",!0),e.setAttribute("aria-busy",!0),e.focus()},Xc=(t,e)=>{const n=zt(),o=yt();!e&&Se(Be())&&(e=Be()),ne(n),e&&(se(e),o.setAttribute("data-button-to-replace",e.className)),o.parentNode.insertBefore(o,e),z([t,n],g.loading)},Zc=(t,e)=>{e.input==="select"||e.input==="radio"?nu(t,e):["text","email","number","tel","textarea"].includes(e.input)&&(Xn(e.inputValue)||Zn(e.inputValue))&&(wt(Be()),ou(t,e))},Jc=(t,e)=>{const n=t.getInput();if(!n)return null;switch(e.input){case"checkbox":return Qc(n);case"radio":return eu(n);case"file":return tu(n);default:return e.inputAutoTrim?n.value.trim():n.value}},Qc=t=>t.checked?1:0,eu=t=>t.checked?t.value:null,tu=t=>t.files.length?t.getAttribute("multiple")!==null?t.files:t.files[0]:null,nu=(t,e)=>{const n=q(),o=r=>ru[e.input](n,ao(r),e);Xn(e.inputOptions)||Zn(e.inputOptions)?(wt(Be()),Ht(e.inputOptions).then(r=>{t.hideLoading(),o(r)})):typeof e.inputOptions=="object"?o(e.inputOptions):lt(`Unexpected type of inputOptions! Expected object, Map or Promise, got ${typeof e.inputOptions}`)},ou=(t,e)=>{const n=t.getInput();se(n),Ht(e.inputValue).then(o=>{n.value=e.input==="number"?parseFloat(o)||0:`${o}`,ne(n),n.focus(),t.hideLoading()}).catch(o=>{lt(`Error in inputValue promise: ${o}`),n.value="",ne(n),n.focus(),t.hideLoading()})},ru={select:(t,e,n)=>{const o=nt(t,g.select),r=(i,c,a)=>{const l=document.createElement("option");l.value=a,ie(l,c),l.selected=Ur(a,n.inputValue),i.appendChild(l)};e.forEach(i=>{const c=i[0],a=i[1];if(Array.isArray(a)){const l=document.createElement("optgroup");l.label=c,l.disabled=!1,o.appendChild(l),a.forEach(d=>r(l,d[1],d[0]))}else r(o,a,c)}),o.focus()},radio:(t,e,n)=>{const o=nt(t,g.radio);e.forEach(i=>{const c=i[0],a=i[1],l=document.createElement("input"),d=document.createElement("label");l.type="radio",l.name=g.radio,l.value=c,Ur(c,n.inputValue)&&(l.checked=!0);const m=document.createElement("span");ie(m,a),m.className=g.label,d.appendChild(l),d.appendChild(m),o.appendChild(d)});const r=o.querySelectorAll("input");r.length&&r[0].focus()}},ao=t=>{const e=[];return typeof Map<"u"&&t instanceof Map?t.forEach((n,o)=>{let r=n;typeof r=="object"&&(r=ao(r)),e.push([o,r])}):Object.keys(t).forEach(n=>{let o=t[n];typeof o=="object"&&(o=ao(o)),e.push([n,o])}),e},Ur=(t,e)=>e&&e.toString()===t.toString();function Vr(){const t=M.innerParams.get(this);if(!t)return;const e=M.domCache.get(this);se(e.loader),_n()?t.icon&&ne(Kt()):iu(e),Re([e.popup,e.actions],g.loading),e.popup.removeAttribute("aria-busy"),e.popup.removeAttribute("data-loading"),e.confirmButton.disabled=!1,e.denyButton.disabled=!1,e.cancelButton.disabled=!1}const iu=t=>{const e=t.popup.getElementsByClassName(t.loader.getAttribute("data-button-to-replace"));e.length?ne(e[0],"inline-block"):Nl()&&se(t.actions)};function su(t){const e=M.innerParams.get(t||this),n=M.domCache.get(t||this);return n?no(n.popup,e.input):null}const Yt={swalPromiseResolve:new WeakMap,swalPromiseReject:new WeakMap},au=()=>Se(q()),Hr=()=>Be()&&Be().click(),lu=()=>tt()&&tt().click(),cu=()=>ct()&&ct().click(),jr=t=>{t.keydownTarget&&t.keydownHandlerAdded&&(t.keydownTarget.removeEventListener("keydown",t.keydownHandler,{capture:t.keydownListenerCapture}),t.keydownHandlerAdded=!1)},uu=(t,e,n,o)=>{jr(e),n.toast||(e.keydownHandler=r=>fu(t,r,o),e.keydownTarget=n.keydownListenerCapture?window:q(),e.keydownListenerCapture=n.keydownListenerCapture,e.keydownTarget.addEventListener("keydown",e.keydownHandler,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!0)},lo=(t,e,n)=>{const o=eo();if(o.length)return e=e+n,e===o.length?e=0:e===-1&&(e=o.length-1),o[e].focus();q().focus()},Fr=["ArrowRight","ArrowDown"],du=["ArrowLeft","ArrowUp"],fu=(t,e,n)=>{const o=M.innerParams.get(t);o&&(e.isComposing||e.keyCode===229||(o.stopKeydownPropagation&&e.stopPropagation(),e.key==="Enter"?mu(t,e,o):e.key==="Tab"?pu(e,o):[...Fr,...du].includes(e.key)?hu(e.key):e.key==="Escape"&&gu(e,o,n)))},mu=(t,e,n)=>{if(yn(n.allowEnterKey)&&e.target&&t.getInput()&&e.target.outerHTML===t.getInput().outerHTML){if(["textarea","file"].includes(n.input))return;Hr(),e.preventDefault()}},pu=(t,e)=>{const n=t.target,o=eo();let r=-1;for(let i=0;i<o.length;i++)if(n===o[i]){r=i;break}t.shiftKey?lo(e,r,-1):lo(e,r,1),t.stopPropagation(),t.preventDefault()},hu=t=>{const e=Be(),n=tt(),o=ct();if(![e,n,o].includes(document.activeElement))return;const r=Fr.includes(t)?"nextElementSibling":"previousElementSibling";let i=document.activeElement;for(let c=0;c<zt().children.length;c++){if(i=i[r],!i)return;if(Se(i)&&i instanceof HTMLButtonElement)break}i instanceof HTMLButtonElement&&i.focus()},gu=(t,e,n)=>{yn(e.allowEscapeKey)&&(t.preventDefault(),n(vt.esc))};function Kr(t,e,n,o){_n()?zr(t,o):(Ul(n).then(()=>zr(t,o)),jr(D)),/^((?!chrome|android).)*safari/i.test(navigator.userAgent)?(e.setAttribute("style","display:none !important"),e.removeAttribute("class"),e.innerHTML=""):e.remove(),to()&&(Rc(),zc(),Br()),yu()}function yu(){Re([document.documentElement,document.body],[g.shown,g["height-auto"],g["no-backdrop"],g["toast-shown"]])}function Sn(t){t=_u(t);const e=Yt.swalPromiseResolve.get(this),n=vu(this);this.isAwaitingPromise()?t.isDismissed||(Xt(this),e(t)):n&&e(t)}function bu(){return!!M.awaitingPromise.get(this)}const vu=t=>{const e=q();if(!e)return!1;const n=M.innerParams.get(t);if(!n||qe(e,n.hideClass.popup))return!1;Re(e,n.showClass.popup),z(e,n.hideClass.popup);const o=re();return Re(o,n.showClass.backdrop),z(o,n.hideClass.backdrop),ku(t,e,n),!0};function wu(t){const e=Yt.swalPromiseReject.get(this);Xt(this),e&&e(t)}const Xt=t=>{t.isAwaitingPromise()&&(M.awaitingPromise.delete(t),M.innerParams.get(t)||t._destroy())},_u=t=>typeof t>"u"?{isConfirmed:!1,isDenied:!1,isDismissed:!0}:Object.assign({isConfirmed:!1,isDenied:!1,isDismissed:!1},t),ku=(t,e,n)=>{const o=re(),r=Gt&&Er(e);typeof n.willClose=="function"&&n.willClose(e),r?Su(t,e,o,n.returnFocus,n.didClose):Kr(t,o,n.returnFocus,n.didClose)},Su=(t,e,n,o,r)=>{D.swalCloseEventFinishedCallback=Kr.bind(null,t,n,o,r),e.addEventListener(Gt,function(i){i.target===e&&(D.swalCloseEventFinishedCallback(),delete D.swalCloseEventFinishedCallback)})},zr=(t,e)=>{setTimeout(()=>{typeof e=="function"&&e.bind(t.params)(),t._destroy()})};function Wr(t,e,n){const o=M.domCache.get(t);e.forEach(r=>{o[r].disabled=n})}function Gr(t,e){if(!t)return!1;if(t.type==="radio"){const o=t.parentNode.parentNode.querySelectorAll("input");for(let r=0;r<o.length;r++)o[r].disabled=e}else t.disabled=e}function Cu(){Wr(this,["confirmButton","denyButton","cancelButton"],!1)}function Iu(){Wr(this,["confirmButton","denyButton","cancelButton"],!0)}function Tu(){return Gr(this.getInput(),!1)}function Eu(){return Gr(this.getInput(),!0)}function Pu(t){const e=M.domCache.get(this),n=M.innerParams.get(this);ie(e.validationMessage,t),e.validationMessage.className=g["validation-message"],n.customClass&&n.customClass.validationMessage&&z(e.validationMessage,n.customClass.validationMessage),ne(e.validationMessage);const o=this.getInput();o&&(o.setAttribute("aria-invalid",!0),o.setAttribute("aria-describedby",g["validation-message"]),Sr(o),z(o,g.inputerror))}function Au(){const t=M.domCache.get(this);t.validationMessage&&se(t.validationMessage);const e=this.getInput();e&&(e.removeAttribute("aria-invalid"),e.removeAttribute("aria-describedby"),Re(e,g.inputerror))}function xu(){return M.domCache.get(this).progressSteps}function Lu(t){const e=q(),n=M.innerParams.get(this);if(!e||qe(e,n.hideClass.popup))return he("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 o=Ou(t),r=Object.assign({},n,o);$r(this,r),M.innerParams.set(this,r),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=>{yr(n)?e[n]=t[n]:he(`Invalid parameter to update: "${n}". Updatable params are listed here: https://github.com/sweetalert2/sweetalert2/blob/master/src/utils/params.js
403
403
 
404
- 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 rf(){const t=V.domCache.get(this),e=V.innerParams.get(this);if(!e){Ri(this);return}t.popup&&U.swalCloseEventFinishedCallback&&(U.swalCloseEventFinishedCallback(),delete U.swalCloseEventFinishedCallback),U.deferDisposalTimer&&(clearTimeout(U.deferDisposalTimer),delete U.deferDisposalTimer),typeof e.didDestroy=="function"&&e.didDestroy(),of(this)}const of=t=>{Ri(t),delete t.params,delete U.keydownHandler,delete U.keydownTarget,delete U.currentInstance},Ri=t=>{t.isAwaitingPromise()?(Or(V,t),V.awaitingPromise.set(t,!0)):(Or(ln,t),Or(V,t))},Or=(t,e)=>{for(const n in t)t[n].delete(e)},$i=Object.freeze(Object.defineProperty({__proto__:null,_destroy:rf,close:Dn,closeModal:Dn,closePopup:Dn,closeToast:Dn,disableButtons:Yd,disableInput:Xd,disableLoading:Ei,enableButtons:Gd,enableInput:Jd,getInput:Od,getProgressSteps:ef,handleAwaitingPromise:cn,hideLoading:Ei,isAwaitingPromise:Vd,rejectPromise:zd,resetValidationMessage:Qd,showValidationMessage:Zd,update:tf},Symbol.toStringTag,{value:"Module"})),sf=t=>{const e=V.innerParams.get(t);t.disableButtons(),e.input?Bi(t,"confirm"):Lr(t,!0)},af=t=>{const e=V.innerParams.get(t);t.disableButtons(),e.returnInputValueOnDeny?Bi(t,"deny"):xr(t,!1)},lf=(t,e)=>{t.disableButtons(),e(Ot.cancel)},Bi=(t,e)=>{const n=V.innerParams.get(t);if(!n.input)return ht(`The "input" parameter is needed to be set when using returnInputValueOn${gr(e)}`);const r=_d(t,n);n.inputValidator?cf(t,r,e):t.getInput().checkValidity()?e==="deny"?xr(t,r):Lr(t,r):(t.enableButtons(),t.showValidationMessage(n.validationMessage))},cf=(t,e,n)=>{const r=V.innerParams.get(t);t.disableInput(),Promise.resolve().then(()=>Qt(r.inputValidator(e,r.validationMessage))).then(i=>{t.enableButtons(),t.enableInput(),i?t.showValidationMessage(i):n==="deny"?xr(t,e):Lr(t,e)})},xr=(t,e)=>{const n=V.innerParams.get(t||void 0);n.showLoaderOnDeny&&xt(at()),n.preDeny?(V.awaitingPromise.set(t||void 0,!0),Promise.resolve().then(()=>Qt(n.preDeny(e,n.validationMessage))).then(o=>{o===!1?(t.hideLoading(),cn(t)):t.closePopup({isDenied:!0,value:typeof o>"u"?e:o})}).catch(o=>Di(t||void 0,o))):t.closePopup({isDenied:!0,value:e})},Ni=(t,e)=>{t.closePopup({isConfirmed:!0,value:e})},Di=(t,e)=>{t.rejectPromise(e)},Lr=(t,e)=>{const n=V.innerParams.get(t||void 0);n.showLoaderOnConfirm&&xt(),n.preConfirm?(t.resetValidationMessage(),V.awaitingPromise.set(t||void 0,!0),Promise.resolve().then(()=>Qt(n.preConfirm(e,n.validationMessage))).then(o=>{Pe(Rn())||o===!1?(t.hideLoading(),cn(t)):Ni(t,typeof o>"u"?e:o)}).catch(o=>Di(t||void 0,o))):Ni(t,e)},uf=(t,e,n)=>{V.innerParams.get(t).toast?df(t,e,n):(mf(e),pf(e),hf(t,e,n))},df=(t,e,n)=>{e.popup.onclick=()=>{const r=V.innerParams.get(t);r&&(ff(r)||r.timer||r.input)||n(Ot.close)}},ff=t=>t.showConfirmButton||t.showDenyButton||t.showCancelButton||t.showCloseButton;let Mn=!1;const mf=t=>{t.popup.onmousedown=()=>{t.container.onmouseup=function(e){t.container.onmouseup=void 0,e.target===t.container&&(Mn=!0)}}},pf=t=>{t.container.onmousedown=()=>{t.popup.onmouseup=function(e){t.popup.onmouseup=void 0,(e.target===t.popup||t.popup.contains(e.target))&&(Mn=!0)}}},hf=(t,e,n)=>{e.container.onclick=r=>{const o=V.innerParams.get(t);if(Mn){Mn=!1;return}r.target===e.container&&xn(o.allowOutsideClick)&&n(Ot.backdrop)}},gf=t=>typeof t=="object"&&t.jquery,Mi=t=>t instanceof Element||gf(t),yf=t=>{const e={};return typeof t[0]=="object"&&!Mi(t[0])?Object.assign(e,t[0]):["title","html","icon"].forEach((n,r)=>{const o=t[r];typeof o=="string"||Mi(o)?e[n]=o:o!==void 0&&ht(`Unexpected type of ${n}! Expected "string" or "Element", got ${typeof o}`)}),e};function bf(...t){const e=this;return new e(...t)}function vf(t){class e extends this{_main(r,o){return super._main(r,Object.assign({},t,o))}}return e}const wf=()=>U.timeout&&U.timeout.getTimerLeft(),Ui=()=>{if(U.timeout)return su(),U.timeout.stop()},Hi=()=>{if(U.timeout){const t=U.timeout.start();return Cr(t),t}},Sf=()=>{const t=U.timeout;return t&&(t.running?Ui():Hi())},_f=t=>{if(U.timeout){const e=U.timeout.increase(t);return Cr(e,!0),e}},kf=()=>U.timeout&&U.timeout.isRunning();let ji=!1;const Rr={};function Cf(t="data-swal-template"){Rr[t]=this,ji||(document.body.addEventListener("click",Ef),ji=!0)}const Ef=t=>{for(let e=t.target;e&&e!==document;e=e.parentNode)for(const n in Rr){const r=e.getAttribute(n);if(r){Rr[n].fire({template:r});return}}},Tf=Object.freeze(Object.defineProperty({__proto__:null,argsToParams:yf,bindClickHandler:Cf,clickCancel:Rd,clickConfirm:Ti,clickDeny:Ld,enableLoading:xt,fire:bf,getActions:rn,getCancelButton:gt,getCloseButton:wr,getConfirmButton:He,getContainer:ce,getDenyButton:at,getFocusableElements:Sr,getFooter:ai,getHtmlContainer:Ln,getIcon:nn,getImage:ii,getInputLabel:tu,getLoader:Pt,getPopup:X,getTimerLeft:wf,getTimerProgressBar:$n,getTitle:oi,getValidationMessage:Rn,increaseTimer:_f,isDeprecatedParameter:vr,isLoading:ru,isTimerRunning:kf,isUpdatableParameter:ni,isValidParameter:ti,isVisible:xd,mixin:vf,resumeTimer:Hi,showLoading:xt,stopTimer:Ui,toggleTimer:Sf},Symbol.toStringTag,{value:"Module"}));let $r;class Lt{constructor(...e){if(typeof window>"u")return;$r=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={}){Qc(Object.assign({},n,e)),U.currentInstance&&(U.currentInstance._destroy(),_r()&&vi()),U.currentInstance=this;const r=Pf(e,n);id(r),Object.freeze(r),U.timeout&&(U.timeout.stop(),delete U.timeout),clearTimeout(U.restoreFocusTimeout);const o=If(this);return bi(this,r),V.innerParams.set(this,r),Af(this,o,r)}then(e){return V.promise.get(this).then(e)}finally(e){return V.promise.get(this).finally(e)}}const Af=(t,e,n)=>new Promise((r,o)=>{const i=s=>{t.closePopup({isDismissed:!0,dismiss:s})};ln.swalPromiseResolve.set(t,r),ln.swalPromiseReject.set(t,o),e.confirmButton.onclick=()=>sf(t),e.denyButton.onclick=()=>af(t),e.cancelButton.onclick=()=>lf(t,i),e.closeButton.onclick=()=>i(Ot.close),uf(t,e,i),$d(t,U,n,i),Sd(t,n),gd(n),Of(U,n,i),xf(e,n),setTimeout(()=>{e.container.scrollTop=0})}),Pf=(t,e)=>{const n=Yu(t),r=Object.assign({},At,e,n,t);return r.showClass=Object.assign({},At.showClass,r.showClass),r.hideClass=Object.assign({},At.hideClass,r.hideClass),r},If=t=>{const e={popup:X(),container:ce(),actions:rn(),confirmButton:He(),denyButton:at(),cancelButton:gt(),loader:Pt(),closeButton:wr(),validationMessage:Rn(),progressSteps:si()};return V.domCache.set(t,e),e},Of=(t,e,n)=>{const r=$n();de(r),e.timer&&(t.timeout=new sd(()=>{n("timer"),delete t.timeout},e.timer),e.timerProgressBar&&(ae(r),$e(r,e,"timerProgressBar"),setTimeout(()=>{t.timeout&&t.timeout.running&&Cr(e.timer)})))},xf=(t,e)=>{if(!e.toast){if(!xn(e.allowEnterKey))return Rf();Lf(t,e)||Ir(e,-1,1)}},Lf=(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,Rf=()=>{document.activeElement instanceof HTMLElement&&typeof document.activeElement.blur=="function"&&document.activeElement.blur()};Object.assign(Lt.prototype,$i),Object.assign(Lt,Tf),Object.keys($i).forEach(t=>{Lt[t]=function(...e){if($r)return $r[t](...e)}}),Lt.DismissReason=Ot,Lt.version="11.4.8";const Rt=Lt;Rt.default=Rt;/*! @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:Fi,isFrozen:$f,getPrototypeOf:Bf,getOwnPropertyDescriptor:Nf}=Object;let{freeze:he,seal:je,create:zi}=Object,{apply:Br,construct:Nr}=typeof Reflect<"u"&&Reflect;he||(he=function(e){return e}),je||(je=function(e){return e}),Br||(Br=function(e,n,r){return e.apply(n,r)}),Nr||(Nr=function(e,n){return new e(...n)});const Un=Oe(Array.prototype.forEach),Ki=Oe(Array.prototype.pop),un=Oe(Array.prototype.push),Hn=Oe(String.prototype.toLowerCase),Dr=Oe(String.prototype.toString),Df=Oe(String.prototype.match),dn=Oe(String.prototype.replace),Mf=Oe(String.prototype.indexOf),Uf=Oe(String.prototype.trim),Ve=Oe(Object.prototype.hasOwnProperty),Ie=Oe(RegExp.prototype.test),fn=Hf(TypeError);function Oe(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 Br(t,e,r)}}function Hf(t){return function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return Nr(t,n)}}function K(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Hn;Fi&&Fi(t,null);let r=e.length;for(;r--;){let o=e[r];if(typeof o=="string"){const i=n(o);i!==o&&($f(e)||(e[r]=i),o=i)}t[o]=!0}return t}function jf(t){for(let e=0;e<t.length;e++)Ve(t,e)||(t[e]=null);return t}function vt(t){const e=zi(null);for(const[n,r]of Vi(t))Ve(t,n)&&(Array.isArray(r)?e[n]=jf(r):r&&typeof r=="object"&&r.constructor===Object?e[n]=vt(r):e[n]=r);return e}function jn(t,e){for(;t!==null;){const r=Nf(t,e);if(r){if(r.get)return Oe(r.get);if(typeof r.value=="function")return Oe(r.value)}t=Bf(t)}function n(){return null}return n}const Wi=he(["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"]),Mr=he(["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=he(["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"]),Vf=he(["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"]),Hr=he(["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"]),Ff=he(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),qi=he(["#text"]),Gi=he(["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"]),jr=he(["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"]),Yi=he(["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"]),Vn=he(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),zf=je(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Kf=je(/<%[\w\W]*|[\w\W]*%>/gm),Wf=je(/\${[\w\W]*}/gm),qf=je(/^data-[\-\w.\u00B7-\uFFFF]/),Gf=je(/^aria-[\-\w]+$/),Ji=je(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Yf=je(/^(?:\w+script|data):/i),Jf=je(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Xi=je(/^html$/i);var Zi=Object.freeze({__proto__:null,MUSTACHE_EXPR:zf,ERB_EXPR:Kf,TMPLIT_EXPR:Wf,DATA_ATTR:qf,ARIA_ATTR:Gf,IS_ALLOWED_URI:Ji,IS_SCRIPT_OR_DATA:Yf,ATTR_WHITESPACE:Jf,DOCTYPE_NAME:Xi});const Xf=function(){return typeof window>"u"?null:window},Zf=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 i="dompurify"+(r?"#"+r:"");try{return e.createPolicy(i,{createHTML(s){return s},createScriptURL(s){return s}})}catch{return console.warn("TrustedTypes policy "+i+" could not be created."),null}};function Qi(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Xf();const e=B=>Qi(B);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:i,HTMLTemplateElement:s,Node:a,Element:c,NodeFilter:u,NamedNodeMap:f=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:m,DOMParser:v,trustedTypes:_}=t,b=c.prototype,O=jn(b,"cloneNode"),w=jn(b,"nextSibling"),N=jn(b,"childNodes"),C=jn(b,"parentNode");if(typeof s=="function"){const B=n.createElement("template");B.content&&B.content.ownerDocument&&(n=B.content.ownerDocument)}let T,z="";const{implementation:Q,createNodeIterator:re,createDocumentFragment:Z,getElementsByTagName:ge}=n,{importNode:ie}=r;let H={};e.isSupported=typeof Vi=="function"&&typeof C=="function"&&Q&&Q.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:Le,ERB_EXPR:_e,TMPLIT_EXPR:Ke,DATA_ATTR:We,ARIA_ATTR:ft,IS_SCRIPT_OR_DATA:nt,ATTR_WHITESPACE:qe}=Zi;let{IS_ALLOWED_URI:Je}=Zi,ne=null;const Be=K({},[...Wi,...Mr,...Ur,...Hr,...qi]);let d=null;const h=K({},[...Gi,...jr,...Yi,...Vn]);let S=Object.seal(zi(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,x=!0,E=!0,A=!1,R=!0,L=!1,D=!1,W=!1,ke=!1,ye=!1,le=!1,Xe=!1,qs=!0,Gs=!1;const Gp="user-content-";let ao=!0,bn=!1,Nt={},Dt=null;const Ys=K({},["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 Js=null;const Xs=K({},["audio","video","img","source","image","track"]);let lo=null;const Zs=K({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Qn="http://www.w3.org/1998/Math/MathML",er="http://www.w3.org/2000/svg",rt="http://www.w3.org/1999/xhtml";let Mt=rt,co=!1,uo=null;const Yp=K({},[Qn,er,rt],Dr);let vn=null;const Jp=["application/xhtml+xml","text/html"],Xp="text/html";let se=null,Ut=null;const Zp=n.createElement("form"),Qs=function(p){return p instanceof RegExp||p instanceof Function},fo=function(){let p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Ut&&Ut===p)){if((!p||typeof p!="object")&&(p={}),p=vt(p),vn=Jp.indexOf(p.PARSER_MEDIA_TYPE)===-1?Xp:p.PARSER_MEDIA_TYPE,se=vn==="application/xhtml+xml"?Dr:Hn,ne=Ve(p,"ALLOWED_TAGS")?K({},p.ALLOWED_TAGS,se):Be,d=Ve(p,"ALLOWED_ATTR")?K({},p.ALLOWED_ATTR,se):h,uo=Ve(p,"ALLOWED_NAMESPACES")?K({},p.ALLOWED_NAMESPACES,Dr):Yp,lo=Ve(p,"ADD_URI_SAFE_ATTR")?K(vt(Zs),p.ADD_URI_SAFE_ATTR,se):Zs,Js=Ve(p,"ADD_DATA_URI_TAGS")?K(vt(Xs),p.ADD_DATA_URI_TAGS,se):Xs,Dt=Ve(p,"FORBID_CONTENTS")?K({},p.FORBID_CONTENTS,se):Ys,P=Ve(p,"FORBID_TAGS")?K({},p.FORBID_TAGS,se):{},k=Ve(p,"FORBID_ATTR")?K({},p.FORBID_ATTR,se):{},Nt=Ve(p,"USE_PROFILES")?p.USE_PROFILES:!1,x=p.ALLOW_ARIA_ATTR!==!1,E=p.ALLOW_DATA_ATTR!==!1,A=p.ALLOW_UNKNOWN_PROTOCOLS||!1,R=p.ALLOW_SELF_CLOSE_IN_ATTR!==!1,L=p.SAFE_FOR_TEMPLATES||!1,D=p.WHOLE_DOCUMENT||!1,ye=p.RETURN_DOM||!1,le=p.RETURN_DOM_FRAGMENT||!1,Xe=p.RETURN_TRUSTED_TYPE||!1,ke=p.FORCE_BODY||!1,qs=p.SANITIZE_DOM!==!1,Gs=p.SANITIZE_NAMED_PROPS||!1,ao=p.KEEP_CONTENT!==!1,bn=p.IN_PLACE||!1,Je=p.ALLOWED_URI_REGEXP||Ji,Mt=p.NAMESPACE||rt,S=p.CUSTOM_ELEMENT_HANDLING||{},p.CUSTOM_ELEMENT_HANDLING&&Qs(p.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(S.tagNameCheck=p.CUSTOM_ELEMENT_HANDLING.tagNameCheck),p.CUSTOM_ELEMENT_HANDLING&&Qs(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),L&&(E=!1),le&&(ye=!0),Nt&&(ne=K({},qi),d=[],Nt.html===!0&&(K(ne,Wi),K(d,Gi)),Nt.svg===!0&&(K(ne,Mr),K(d,jr),K(d,Vn)),Nt.svgFilters===!0&&(K(ne,Ur),K(d,jr),K(d,Vn)),Nt.mathMl===!0&&(K(ne,Hr),K(d,Yi),K(d,Vn))),p.ADD_TAGS&&(ne===Be&&(ne=vt(ne)),K(ne,p.ADD_TAGS,se)),p.ADD_ATTR&&(d===h&&(d=vt(d)),K(d,p.ADD_ATTR,se)),p.ADD_URI_SAFE_ATTR&&K(lo,p.ADD_URI_SAFE_ATTR,se),p.FORBID_CONTENTS&&(Dt===Ys&&(Dt=vt(Dt)),K(Dt,p.FORBID_CONTENTS,se)),ao&&(ne["#text"]=!0),D&&K(ne,["html","head","body"]),ne.table&&(K(ne,["tbody"]),delete P.tbody),p.TRUSTED_TYPES_POLICY){if(typeof p.TRUSTED_TYPES_POLICY.createHTML!="function")throw fn('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof p.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw fn('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');T=p.TRUSTED_TYPES_POLICY,z=T.createHTML("")}else T===void 0&&(T=Zf(_,o)),T!==null&&typeof z=="string"&&(z=T.createHTML(""));he&&he(p),Ut=p}},ea=K({},["mi","mo","mn","ms","mtext"]),ta=K({},["foreignobject","desc","title","annotation-xml"]),Qp=K({},["title","style","font","a","script"]),na=K({},[...Mr,...Ur,...Vf]),ra=K({},[...Hr,...Ff]),eh=function(p){let I=C(p);(!I||!I.tagName)&&(I={namespaceURI:Mt,tagName:"template"});const $=Hn(p.tagName),ee=Hn(I.tagName);return uo[p.namespaceURI]?p.namespaceURI===er?I.namespaceURI===rt?$==="svg":I.namespaceURI===Qn?$==="svg"&&(ee==="annotation-xml"||ea[ee]):!!na[$]:p.namespaceURI===Qn?I.namespaceURI===rt?$==="math":I.namespaceURI===er?$==="math"&&ta[ee]:!!ra[$]:p.namespaceURI===rt?I.namespaceURI===er&&!ta[ee]||I.namespaceURI===Qn&&!ea[ee]?!1:!ra[$]&&(Qp[$]||!na[$]):!!(vn==="application/xhtml+xml"&&uo[p.namespaceURI]):!1},kt=function(p){un(e.removed,{element:p});try{p.parentNode.removeChild(p)}catch{p.remove()}},mo=function(p,I){try{un(e.removed,{attribute:I.getAttributeNode(p),from:I})}catch{un(e.removed,{attribute:null,from:I})}if(I.removeAttribute(p),p==="is"&&!d[p])if(ye||le)try{kt(I)}catch{}else try{I.setAttribute(p,"")}catch{}},oa=function(p){let I=null,$=null;if(ke)p="<remove></remove>"+p;else{const me=Df(p,/^[\r\n\t ]+/);$=me&&me[0]}vn==="application/xhtml+xml"&&Mt===rt&&(p='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+p+"</body></html>");const ee=T?T.createHTML(p):p;if(Mt===rt)try{I=new v().parseFromString(ee,vn)}catch{}if(!I||!I.documentElement){I=Q.createDocument(Mt,"template",null);try{I.documentElement.innerHTML=co?z:ee}catch{}}const fe=I.body||I.documentElement;return p&&$&&fe.insertBefore(n.createTextNode($),fe.childNodes[0]||null),Mt===rt?ge.call(I,D?"html":"body")[0]:D?I.documentElement:fe},ia=function(p){return re.call(p.ownerDocument||p,p,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT,null)},th=function(p){return p instanceof m&&(typeof p.nodeName!="string"||typeof p.textContent!="string"||typeof p.removeChild!="function"||!(p.attributes instanceof f)||typeof p.removeAttribute!="function"||typeof p.setAttribute!="function"||typeof p.namespaceURI!="string"||typeof p.insertBefore!="function"||typeof p.hasChildNodes!="function")},sa=function(p){return typeof a=="function"&&p instanceof a},ot=function(p,I,$){H[p]&&Un(H[p],ee=>{ee.call(e,I,$,Ut)})},aa=function(p){let I=null;if(ot("beforeSanitizeElements",p,null),th(p))return kt(p),!0;const $=se(p.nodeName);if(ot("uponSanitizeElement",p,{tagName:$,allowedTags:ne}),p.hasChildNodes()&&!sa(p.firstElementChild)&&Ie(/<[/\w]/g,p.innerHTML)&&Ie(/<[/\w]/g,p.textContent))return kt(p),!0;if(!ne[$]||P[$]){if(!P[$]&&ca($)&&(S.tagNameCheck instanceof RegExp&&Ie(S.tagNameCheck,$)||S.tagNameCheck instanceof Function&&S.tagNameCheck($)))return!1;if(ao&&!Dt[$]){const ee=C(p)||p.parentNode,fe=N(p)||p.childNodes;if(fe&&ee){const me=fe.length;for(let Ce=me-1;Ce>=0;--Ce)ee.insertBefore(O(fe[Ce],!0),w(p))}}return kt(p),!0}return p instanceof c&&!eh(p)||($==="noscript"||$==="noembed"||$==="noframes")&&Ie(/<\/no(script|embed|frames)/i,p.innerHTML)?(kt(p),!0):(L&&p.nodeType===3&&(I=p.textContent,Un([Le,_e,Ke],ee=>{I=dn(I,ee," ")}),p.textContent!==I&&(un(e.removed,{element:p.cloneNode()}),p.textContent=I)),ot("afterSanitizeElements",p,null),!1)},la=function(p,I,$){if(qs&&(I==="id"||I==="name")&&($ in n||$ in Zp))return!1;if(!(E&&!k[I]&&Ie(We,I))){if(!(x&&Ie(ft,I))){if(!d[I]||k[I]){if(!(ca(p)&&(S.tagNameCheck instanceof RegExp&&Ie(S.tagNameCheck,p)||S.tagNameCheck instanceof Function&&S.tagNameCheck(p))&&(S.attributeNameCheck instanceof RegExp&&Ie(S.attributeNameCheck,I)||S.attributeNameCheck instanceof Function&&S.attributeNameCheck(I))||I==="is"&&S.allowCustomizedBuiltInElements&&(S.tagNameCheck instanceof RegExp&&Ie(S.tagNameCheck,$)||S.tagNameCheck instanceof Function&&S.tagNameCheck($))))return!1}else if(!lo[I]){if(!Ie(Je,dn($,qe,""))){if(!((I==="src"||I==="xlink:href"||I==="href")&&p!=="script"&&Mf($,"data:")===0&&Js[p])){if(!(A&&!Ie(nt,dn($,qe,"")))){if($)return!1}}}}}}return!0},ca=function(p){return p!=="annotation-xml"&&p.indexOf("-")>0},ua=function(p){ot("beforeSanitizeAttributes",p,null);const{attributes:I}=p;if(!I)return;const $={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:d};let ee=I.length;for(;ee--;){const fe=I[ee],{name:me,namespaceURI:Ce,value:Ct}=fe,wn=se(me);let Ee=me==="value"?Ct:Uf(Ct);if($.attrName=wn,$.attrValue=Ee,$.keepAttr=!0,$.forceKeepAttr=void 0,ot("uponSanitizeAttribute",p,$),Ee=$.attrValue,$.forceKeepAttr||(mo(me,p),!$.keepAttr))continue;if(!R&&Ie(/\/>/i,Ee)){mo(me,p);continue}L&&Un([Le,_e,Ke],fa=>{Ee=dn(Ee,fa," ")});const da=se(p.nodeName);if(la(da,wn,Ee)){if(Gs&&(wn==="id"||wn==="name")&&(mo(me,p),Ee=Gp+Ee),T&&typeof _=="object"&&typeof _.getAttributeType=="function"&&!Ce)switch(_.getAttributeType(da,wn)){case"TrustedHTML":{Ee=T.createHTML(Ee);break}case"TrustedScriptURL":{Ee=T.createScriptURL(Ee);break}}try{Ce?p.setAttributeNS(Ce,me,Ee):p.setAttribute(me,Ee),Ki(e.removed)}catch{}}}ot("afterSanitizeAttributes",p,null)},nh=function B(p){let I=null;const $=ia(p);for(ot("beforeSanitizeShadowDOM",p,null);I=$.nextNode();)ot("uponSanitizeShadowNode",I,null),!aa(I)&&(I.content instanceof i&&B(I.content),ua(I));ot("afterSanitizeShadowDOM",p,null)};return e.sanitize=function(B){let p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},I=null,$=null,ee=null,fe=null;if(co=!B,co&&(B="<!-->"),typeof B!="string"&&!sa(B))if(typeof B.toString=="function"){if(B=B.toString(),typeof B!="string")throw fn("dirty is not a string, aborting")}else throw fn("toString is not a function");if(!e.isSupported)return B;if(W||fo(p),e.removed=[],typeof B=="string"&&(bn=!1),bn){if(B.nodeName){const Ct=se(B.nodeName);if(!ne[Ct]||P[Ct])throw fn("root node is forbidden and cannot be sanitized in-place")}}else if(B instanceof a)I=oa("<!---->"),$=I.ownerDocument.importNode(B,!0),$.nodeType===1&&$.nodeName==="BODY"||$.nodeName==="HTML"?I=$:I.appendChild($);else{if(!ye&&!L&&!D&&B.indexOf("<")===-1)return T&&Xe?T.createHTML(B):B;if(I=oa(B),!I)return ye?null:Xe?z:""}I&&ke&&kt(I.firstChild);const me=ia(bn?B:I);for(;ee=me.nextNode();)aa(ee)||(ee.content instanceof i&&nh(ee.content),ua(ee));if(bn)return B;if(ye){if(le)for(fe=Z.call(I.ownerDocument);I.firstChild;)fe.appendChild(I.firstChild);else fe=I;return(d.shadowroot||d.shadowrootmode)&&(fe=ie.call(r,fe,!0)),fe}let Ce=D?I.outerHTML:I.innerHTML;return D&&ne["!doctype"]&&I.ownerDocument&&I.ownerDocument.doctype&&I.ownerDocument.doctype.name&&Ie(Xi,I.ownerDocument.doctype.name)&&(Ce="<!DOCTYPE "+I.ownerDocument.doctype.name+`>
405
- `+Ce),L&&Un([Le,_e,Ke],Ct=>{Ce=dn(Ce,Ct," ")}),T&&Xe?T.createHTML(Ce):Ce},e.setConfig=function(){let B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};fo(B),W=!0},e.clearConfig=function(){Ut=null,W=!1},e.isValidAttribute=function(B,p,I){Ut||fo({});const $=se(B),ee=se(p);return la($,ee,I)},e.addHook=function(B,p){typeof p=="function"&&(H[B]=H[B]||[],un(H[B],p))},e.removeHook=function(B){if(H[B])return Ki(H[B])},e.removeHooks=function(B){H[B]&&(H[B]=[])},e.removeAllHooks=function(){H={}},e}var es=Qi();class ts{get IsVisible(){return Rt.isVisible()}}class Qf extends ts{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(i=>{Rt.fire({allowEscapeKey:!1,allowOutsideClick:!1,icon:n,title:o,html:`<div style="max-height: 50vh; overflow: auto">${es.sanitize(r)}</div>`}).then(()=>i(!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 em extends ts{async CreateConfirmAsync(e){return new Promise(n=>{Rt.fire({showCancelButton:!0,allowEscapeKey:!1,allowOutsideClick:!1,icon:"question",title:e.title,html:es.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 tm=()=>new Qf,nm=()=>new em;function rm(t){return t instanceof Uint8Array||t!=null&&typeof t=="object"&&t.constructor.name==="Uint8Array"}function ns(t,...e){if(!rm(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 rs(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 om(t,e){ns(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 Vr=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 im(t){if(typeof t!="string")throw new Error(`utf8ToBytes expected string, got ${typeof t}`);return new Uint8Array(new TextEncoder().encode(t))}function os(t){return typeof t=="string"&&(t=im(t)),ns(t),t}class sm{clone(){return this._cloneInto()}}function am(t){const e=r=>t().update(os(r)).digest(),n=t();return e.outputLen=n.outputLen,e.blockLen=n.blockLen,e.create=()=>t(),e}function lm(t,e,n,r){if(typeof t.setBigUint64=="function")return t.setBigUint64(e,n,r);const o=BigInt(32),i=BigInt(4294967295),s=Number(n>>o&i),a=Number(n&i),c=r?4:0,u=r?0:4;t.setUint32(e+c,s,r),t.setUint32(e+u,a,r)}const cm=(t,e,n)=>t&e^~t&n,um=(t,e,n)=>t&e^t&n^e&n;class dm extends sm{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=Vr(this.buffer)}update(e){rs(this);const{view:n,buffer:r,blockLen:o}=this;e=os(e);const i=e.length;for(let s=0;s<i;){const a=Math.min(o-this.pos,i-s);if(a===o){const c=Vr(e);for(;o<=i-s;s+=o)this.process(c,s);continue}r.set(e.subarray(s,s+a),this.pos),this.pos+=a,s+=a,this.pos===o&&(this.process(n,0),this.pos=0)}return this.length+=e.length,this.roundClean(),this}digestInto(e){rs(this),om(e,this),this.finished=!0;const{buffer:n,view:r,blockLen:o,isLE:i}=this;let{pos:s}=this;n[s++]=128,this.buffer.subarray(s).fill(0),this.padOffset>o-s&&(this.process(r,0),s=0);for(let m=s;m<o;m++)n[m]=0;lm(r,o-8,BigInt(this.length*8),i),this.process(r,0);const a=Vr(e),c=this.outputLen;if(c%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const u=c/4,f=this.get();if(u>f.length)throw new Error("_sha2: outputLen bigger than state");for(let m=0;m<u;m++)a.setUint32(4*m,f[m],i)}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:i,destroyed:s,pos:a}=this;return e.length=o,e.pos=a,e.finished=i,e.destroyed=s,o%n&&e.buffer.set(r),e}}const fm=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]),ct=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),ut=new Uint32Array(64);class mm extends dm{constructor(){super(64,32,8,!1),this.A=ct[0]|0,this.B=ct[1]|0,this.C=ct[2]|0,this.D=ct[3]|0,this.E=ct[4]|0,this.F=ct[5]|0,this.G=ct[6]|0,this.H=ct[7]|0}get(){const{A:e,B:n,C:r,D:o,E:i,F:s,G:a,H:c}=this;return[e,n,r,o,i,s,a,c]}set(e,n,r,o,i,s,a,c){this.A=e|0,this.B=n|0,this.C=r|0,this.D=o|0,this.E=i|0,this.F=s|0,this.G=a|0,this.H=c|0}process(e,n){for(let m=0;m<16;m++,n+=4)ut[m]=e.getUint32(n,!1);for(let m=16;m<64;m++){const v=ut[m-15],_=ut[m-2],b=Ye(v,7)^Ye(v,18)^v>>>3,O=Ye(_,17)^Ye(_,19)^_>>>10;ut[m]=O+ut[m-7]+b+ut[m-16]|0}let{A:r,B:o,C:i,D:s,E:a,F:c,G:u,H:f}=this;for(let m=0;m<64;m++){const v=Ye(a,6)^Ye(a,11)^Ye(a,25),_=f+v+cm(a,c,u)+fm[m]+ut[m]|0,O=(Ye(r,2)^Ye(r,13)^Ye(r,22))+um(r,o,i)|0;f=u,u=c,c=a,a=s+_|0,s=i,i=o,o=r,r=_+O|0}r=r+this.A|0,o=o+this.B|0,i=i+this.C|0,s=s+this.D|0,a=a+this.E|0,c=c+this.F|0,u=u+this.G|0,f=f+this.H|0,this.set(r,o,i,s,a,c,u,f)}roundClean(){ut.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}const pm=am(()=>new mm);class mn extends Error{}mn.prototype.name="InvalidTokenError";function hm(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 gm(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 hm(e)}catch{return atob(e)}}function Fr(t,e){if(typeof t!="string")throw new mn("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 mn(`Invalid token specified: missing part #${n+1}`);let o;try{o=gm(r)}catch(i){throw new mn(`Invalid token specified: invalid base64 for part #${n+1} (${i.message})`)}try{return JSON.parse(o)}catch(i){throw new mn(`Invalid token specified: invalid json for part #${n+1} (${i.message})`)}}if(typeof Promise>"u")throw Error("Keycloak requires an environment that supports Promises. Make sure that you include the appropriate polyfill.");function is(t){if(!(this instanceof is))throw new Error("The 'Keycloak' constructor must be invoked with 'new'.");var e=this,n,r=[],o,i={enable:!0,callbackList:[],interval:5};e.didInitialize=!1;for(var s=document.getElementsByTagName("script"),a=0;a<s.length;a++)(s[a].src.indexOf("keycloak.js")!==-1||s[a].src.indexOf("keycloak.min.js")!==-1)&&s[a].src.indexOf("version=")!==-1&&(e.iframeVersion=s[a].src.substring(s[a].src.indexOf("version=")+8).split("&")[0]);var c=!0,u=Be(console.info),f=Be(console.warn);e.init=function(d){if(e.didInitialize)throw new Error("A 'Keycloak' instance can only be initialized once.");e.didInitialize=!0,e.authenticated=!1,o=ne();var h=["default","cordova","cordova-native"];if(d&&h.indexOf(d.adapter)>-1?n=nt(d.adapter):d&&typeof d.adapter=="object"?n=d.adapter:window.Cordova||window.cordova?n=nt("cordova"):n=nt(),d){if(typeof d.useNonce<"u"&&(c=d.useNonce),typeof d.checkLoginIframe<"u"&&(i.enable=d.checkLoginIframe),d.checkLoginIframeInterval&&(i.interval=d.checkLoginIframeInterval),d.onLoad==="login-required"&&(e.loginRequired=!0),d.responseMode)if(d.responseMode==="query"||d.responseMode==="fragment")e.responseMode=d.responseMode;else throw"Invalid value for responseMode";if(d.flow){switch(d.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=d.flow}if(d.timeSkew!=null&&(e.timeSkew=d.timeSkew),d.redirectUri&&(e.redirectUri=d.redirectUri),d.silentCheckSsoRedirectUri&&(e.silentCheckSsoRedirectUri=d.silentCheckSsoRedirectUri),typeof d.silentCheckSsoFallback=="boolean"?e.silentCheckSsoFallback=d.silentCheckSsoFallback:e.silentCheckSsoFallback=!0,typeof d.pkceMethod<"u"){if(d.pkceMethod!=="S256"&&d.pkceMethod!==!1)throw new TypeError(`Invalid value for pkceMethod', expected 'S256' or false but got ${d.pkceMethod}.`);e.pkceMethod=d.pkceMethod}else e.pkceMethod="S256";typeof d.enableLogging=="boolean"?e.enableLogging=d.enableLogging:e.enableLogging=!1,d.logoutMethod==="POST"?e.logoutMethod="POST":e.logoutMethod="GET",typeof d.scope=="string"&&(e.scope=d.scope),typeof d.acrValues=="string"&&(e.acrValues=d.acrValues),typeof d.messageReceiveTimeout=="number"&&d.messageReceiveTimeout>0?e.messageReceiveTimeout=d.messageReceiveTimeout:e.messageReceiveTimeout=1e4}e.responseMode||(e.responseMode="fragment"),e.responseType||(e.responseType="code",e.flow="standard");var S=H(),P=H();P.promise.then(function(){e.onReady&&e.onReady(e.authenticated),S.setSuccess(e.authenticated)}).catch(function(R){S.setError(R)});var k=T();function x(){var R=function(W){W||(D.prompt="none"),d&&d.locale&&(D.locale=d.locale),e.login(D).then(function(){P.setSuccess()}).catch(function(ke){P.setError(ke)})},L=function(){var W=document.createElement("iframe"),ke=e.createLoginUrl({prompt:"none",redirectUri:e.silentCheckSsoRedirectUri});W.setAttribute("src",ke),W.setAttribute("sandbox","allow-storage-access-by-user-activation allow-scripts allow-same-origin"),W.setAttribute("title","keycloak-silent-check-sso"),W.style.display="none",document.body.appendChild(W);var ye=function(le){if(!(le.origin!==window.location.origin||W.contentWindow!==le.source)){var Xe=Z(le.data);C(Xe,P),document.body.removeChild(W),window.removeEventListener("message",ye)}};window.addEventListener("message",ye)},D={};switch(d.onLoad){case"check-sso":i.enable?_e().then(function(){We().then(function(W){W?P.setSuccess():e.silentCheckSsoRedirectUri?L():R(!1)}).catch(function(W){P.setError(W)})}):e.silentCheckSsoRedirectUri?L():R(!1);break;case"login-required":R(!0);break;default:throw"Invalid value for onLoad"}}function E(){var R=Z(window.location.href);if(R&&window.history.replaceState(window.history.state,null,R.newUrl),R&&R.valid)return _e().then(function(){C(R,P)}).catch(function(L){P.setError(L)});d?d.token&&d.refreshToken?(Q(d.token,d.refreshToken,d.idToken),i.enable?_e().then(function(){We().then(function(L){L?(e.onAuthSuccess&&e.onAuthSuccess(),P.setSuccess(),Ke()):P.setSuccess()}).catch(function(L){P.setError(L)})}):e.updateToken(-1).then(function(){e.onAuthSuccess&&e.onAuthSuccess(),P.setSuccess()}).catch(function(L){e.onAuthError&&e.onAuthError(),d.onLoad?x():P.setError(L)})):d.onLoad?x():P.setSuccess():P.setSuccess()}function A(){var R=H(),L=function(){(document.readyState==="interactive"||document.readyState==="complete")&&(document.removeEventListener("readystatechange",L),R.setSuccess())};return document.addEventListener("readystatechange",L),L(),R.promise}return k.then(function(){A().then(ft).then(E).catch(function(R){S.setError(R)})}),k.catch(function(R){S.setError(R)}),S.promise},e.login=function(d){return n.login(d)};function m(d){var h=null,S=window.crypto||window.msCrypto;if(S&&S.getRandomValues&&window.Uint8Array)return h=new Uint8Array(d),S.getRandomValues(h),h;h=new Array(d);for(var P=0;P<h.length;P++)h[P]=Math.floor(256*Math.random());return h}function v(d){return _(d,"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789")}function _(d,h){for(var S=m(d),P=new Array(d),k=0;k<d;k++)P[k]=h.charCodeAt(S[k]%h.length);return String.fromCharCode.apply(null,P)}function b(d,h){if(d!=="S256")throw new TypeError(`Invalid value for 'pkceMethod', expected 'S256' but got '${d}'.`);const S=pm(h);return ym(S).replace(/\+/g,"-").replace(/\//g,"_").replace(/\=/g,"")}function O(d){var h={id_token:{acr:d}};return JSON.stringify(h)}e.createLoginUrl=function(d){var h=re(),S=re(),P=n.redirectUri(d),k={state:h,nonce:S,redirectUri:encodeURIComponent(P),loginOptions:d};d&&d.prompt&&(k.prompt=d.prompt);var x;d&&d.action=="register"?x=e.endpoints.register():x=e.endpoints.authorize();var E=d&&d.scope||e.scope;E?E.indexOf("openid")===-1&&(E="openid "+E):E="openid";var A=x+"?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&&(A=A+"&nonce="+encodeURIComponent(S)),d&&d.prompt&&(A+="&prompt="+encodeURIComponent(d.prompt)),d&&d.maxAge&&(A+="&max_age="+encodeURIComponent(d.maxAge)),d&&d.loginHint&&(A+="&login_hint="+encodeURIComponent(d.loginHint)),d&&d.idpHint&&(A+="&kc_idp_hint="+encodeURIComponent(d.idpHint)),d&&d.action&&d.action!="register"&&(A+="&kc_action="+encodeURIComponent(d.action)),d&&d.locale&&(A+="&ui_locales="+encodeURIComponent(d.locale)),d&&d.acr){var R=O(d.acr);A+="&claims="+encodeURIComponent(R)}if((d&&d.acrValues||e.acrValues)&&(A+="&acr_values="+encodeURIComponent(d.acrValues||e.acrValues)),e.pkceMethod){var L=v(96);k.pkceCodeVerifier=L;var D=b(e.pkceMethod,L);A+="&code_challenge="+D,A+="&code_challenge_method="+e.pkceMethod}return o.add(k),A},e.logout=function(d){return n.logout(d)},e.createLogoutUrl=function(d){if(((d==null?void 0:d.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(d,!1));return e.idToken&&(S+="&id_token_hint="+encodeURIComponent(e.idToken)),S},e.register=function(d){return n.register(d)},e.createRegisterUrl=function(d){return d||(d={}),d.action="register",e.createLoginUrl(d)},e.createAccountUrl=function(d){var h=w(),S=void 0;return typeof h<"u"&&(S=h+"/account?referrer="+encodeURIComponent(e.clientId)+"&referrer_uri="+encodeURIComponent(n.redirectUri(d))),S},e.accountManagement=function(){return n.accountManagement()},e.hasRealmRole=function(d){var h=e.realmAccess;return!!h&&h.roles.indexOf(d)>=0},e.hasResourceRole=function(d,h){if(!e.resourceAccess)return!1;var S=e.resourceAccess[h||e.clientId];return!!S&&S.roles.indexOf(d)>=0},e.loadUserProfile=function(){var d=w()+"/account",h=new XMLHttpRequest;h.open("GET",d,!0),h.setRequestHeader("Accept","application/json"),h.setRequestHeader("Authorization","bearer "+e.token);var S=H();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 d=e.endpoints.userinfo(),h=new XMLHttpRequest;h.open("GET",d,!0),h.setRequestHeader("Accept","application/json"),h.setRequestHeader("Authorization","bearer "+e.token);var S=H();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(d){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(d){if(isNaN(d))throw"Invalid minValidity";h-=d}return h<0},e.updateToken=function(d){var h=H();if(!e.refreshToken)return h.setError(),h.promise;d=d||5;var S=function(){var k=!1;if(d==-1?(k=!0,u("[KEYCLOAK] Refreshing token: forced refresh")):(!e.tokenParsed||e.isTokenExpired(d))&&(k=!0,u("[KEYCLOAK] Refreshing token: token expired")),!k)h.setSuccess(!1);else{var x="grant_type=refresh_token&refresh_token="+e.refreshToken,E=e.endpoints.token();if(r.push(h),r.length==1){var A=new XMLHttpRequest;A.open("POST",E,!0),A.setRequestHeader("Content-type","application/x-www-form-urlencoded"),A.withCredentials=!0,x+="&client_id="+encodeURIComponent(e.clientId);var R=new Date().getTime();A.onreadystatechange=function(){if(A.readyState==4)if(A.status==200){u("[KEYCLOAK] Token refreshed"),R=(R+new Date().getTime())/2;var L=JSON.parse(A.responseText);Q(L.access_token,L.refresh_token,L.id_token,R),e.onAuthRefreshSuccess&&e.onAuthRefreshSuccess();for(var D=r.pop();D!=null;D=r.pop())D.setSuccess(!0)}else{f("[KEYCLOAK] Failed to refresh token"),A.status==400&&e.clearToken(),e.onAuthRefreshError&&e.onAuthRefreshError();for(var D=r.pop();D!=null;D=r.pop())D.setError(!0)}},A.send(x)}}};if(i.enable){var P=We();P.then(function(){S()}).catch(function(k){h.setError(k)})}else S();return h.promise},e.clearToken=function(){e.token&&(Q(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 N(){return window.location.origin?window.location.origin:window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:"")}function C(d,h){var S=d.code,P=d.error,k=d.prompt,x=new Date().getTime();if(d.kc_action_status&&e.onActionUpdate&&e.onActionUpdate(d.kc_action_status,d.kc_action),P){if(k!="none")if(d.error_description&&d.error_description==="authentication_expired")e.login(d.loginOptions);else{var E={error:P,error_description:d.error_description};e.onAuthError&&e.onAuthError(E),h&&h.setError(E)}else h&&h.setSuccess();return}else e.flow!="standard"&&(d.access_token||d.id_token)&&D(d.access_token,null,d.id_token,!0);if(e.flow!="implicit"&&S){var A="code="+S+"&grant_type=authorization_code",R=e.endpoints.token(),L=new XMLHttpRequest;L.open("POST",R,!0),L.setRequestHeader("Content-type","application/x-www-form-urlencoded"),A+="&client_id="+encodeURIComponent(e.clientId),A+="&redirect_uri="+d.redirectUri,d.pkceCodeVerifier&&(A+="&code_verifier="+d.pkceCodeVerifier),L.withCredentials=!0,L.onreadystatechange=function(){if(L.readyState==4)if(L.status==200){var W=JSON.parse(L.responseText);D(W.access_token,W.refresh_token,W.id_token,e.flow==="standard"),Ke()}else e.onAuthError&&e.onAuthError(),h&&h.setError()},L.send(A)}function D(W,ke,ye,le){x=(x+new Date().getTime())/2,Q(W,ke,ye,x),c&&e.idTokenParsed&&e.idTokenParsed.nonce!=d.storedNonce?(u("[KEYCLOAK] Invalid nonce, clearing token"),e.clearToken(),h&&h.setError()):le&&(e.onAuthSuccess&&e.onAuthSuccess(),h&&h.setSuccess())}}function T(d){var h=H(),S;t?typeof t=="string"&&(S=t):S="keycloak.json";function P(L){L?e.endpoints={authorize:function(){return L.authorization_endpoint},token:function(){return L.token_endpoint},logout:function(){if(!L.end_session_endpoint)throw"Not supported by the OIDC server";return L.end_session_endpoint},checkSessionIframe:function(){if(!L.check_session_iframe)throw"Not supported by the OIDC server";return L.check_session_iframe},register:function(){throw'Redirection to "Register user" page not supported in standard OIDC mode'},userinfo:function(){if(!L.userinfo_endpoint)throw"Not supported by the OIDC server";return L.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 D=w()+"/protocol/openid-connect/login-status-iframe.html";return e.iframeVersion&&(D=D+"?version="+e.iframeVersion),D},thirdPartyCookiesIframe:function(){var D=w()+"/protocol/openid-connect/3p-cookies/step1.html";return e.iframeVersion&&(D=D+"?version="+e.iframeVersion),D},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||z(k)){var L=JSON.parse(k.responseText);e.authServerUrl=L["auth-server-url"],e.realm=L.realm,e.clientId=L.resource,P(null),h.setSuccess()}else h.setError()},k.send()}else{if(!t.clientId)throw"clientId missing";e.clientId=t.clientId;var x=t.oidcProvider;if(x)if(typeof x=="string"){var R;x.charAt(x.length-1)=="/"?R=x+".well-known/openid-configuration":R=x+"/.well-known/openid-configuration";var k=new XMLHttpRequest;k.open("GET",R,!0),k.setRequestHeader("Accept","application/json"),k.onreadystatechange=function(){if(k.readyState==4)if(k.status==200||z(k)){var D=JSON.parse(k.responseText);P(D),h.setSuccess()}else h.setError()},k.send()}else P(x),h.setSuccess();else{if(!t.url){for(var E=document.getElementsByTagName("script"),A=0;A<E.length;A++)if(E[A].src.match(/.*keycloak\.js/)){t.url=E[A].src.substr(0,E[A].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 z(d){return d.status==0&&d.responseText&&d.responseURL.startsWith("file:")}function Q(d,h,S,P){if(e.tokenTimeoutHandle&&(clearTimeout(e.tokenTimeoutHandle),e.tokenTimeoutHandle=null),h?(e.refreshToken=h,e.refreshTokenParsed=Fr(h)):(delete e.refreshToken,delete e.refreshTokenParsed),S?(e.idToken=S,e.idTokenParsed=Fr(S)):(delete e.idToken,delete e.idTokenParsed),d){if(e.token=d,e.tokenParsed=Fr(d),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 re(){var d="0123456789abcdef",h=_(36,d).split("");h[14]="4",h[19]=d.substr(h[19]&3|8,1),h[8]=h[13]=h[18]=h[23]="-";var S=h.join("");return S}function Z(d){var h=ge(d);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 ge(d){var h;switch(e.flow){case"standard":h=["code","state","session_state","kc_action_status","kc_action","iss"];break;case"implicit":h=["access_token","token_type","id_token","state","session_state","expires_in","kc_action_status","kc_action","iss"];break;case"hybrid":h=["access_token","token_type","id_token","code","state","session_state","expires_in","kc_action_status","kc_action","iss"];break}h.push("error"),h.push("error_description"),h.push("error_uri");var S=d.indexOf("?"),P=d.indexOf("#"),k,x;if(e.responseMode==="query"&&S!==-1?(k=d.substring(0,S),x=ie(d.substring(S+1,P!==-1?P:d.length),h),x.paramsString!==""&&(k+="?"+x.paramsString),P!==-1&&(k+=d.substring(P))):e.responseMode==="fragment"&&P!==-1&&(k=d.substring(0,P),x=ie(d.substring(P+1),h),x.paramsString!==""&&(k+="#"+x.paramsString)),x&&x.oauthParams){if(e.flow==="standard"||e.flow==="hybrid"){if((x.oauthParams.code||x.oauthParams.error)&&x.oauthParams.state)return x.oauthParams.newUrl=k,x.oauthParams}else if(e.flow==="implicit"&&(x.oauthParams.access_token||x.oauthParams.error)&&x.oauthParams.state)return x.oauthParams.newUrl=k,x.oauthParams}}function ie(d,h){for(var S=d.split("&"),P={paramsString:"",oauthParams:{}},k=0;k<S.length;k++){var x=S[k].indexOf("="),E=S[k].slice(0,x);h.indexOf(E)!==-1?P.oauthParams[E]=S[k].slice(x+1):(P.paramsString!==""&&(P.paramsString+="&"),P.paramsString+=S[k])}return P}function H(){var d={setSuccess:function(h){d.resolve(h)},setError:function(h){d.reject(h)}};return d.promise=new Promise(function(h,S){d.resolve=h,d.reject=S}),d}function Le(d,h,S){var P=null,k=new Promise(function(x,E){P=setTimeout(function(){E({error:S})},h)});return Promise.race([d,k]).finally(function(){clearTimeout(P)})}function _e(){var d=H();if(!i.enable||i.iframe)return d.setSuccess(),d.promise;var h=document.createElement("iframe");i.iframe=h,h.onload=function(){var k=e.endpoints.authorize();k.charAt(0)==="/"?i.iframeOrigin=N():i.iframeOrigin=k.substring(0,k.indexOf("/",8)),d.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!==i.iframeOrigin||i.iframe.contentWindow!==k.source)&&(k.data=="unchanged"||k.data=="changed"||k.data=="error")){k.data!="unchanged"&&e.clearToken();for(var x=i.callbackList.splice(0,i.callbackList.length),E=x.length-1;E>=0;--E){var A=x[E];k.data=="error"?A.setError():A.setSuccess(k.data=="unchanged")}}};return window.addEventListener("message",P,!1),d.promise}function Ke(){i.enable&&e.token&&setTimeout(function(){We().then(function(d){d&&Ke()})},i.interval*1e3)}function We(){var d=H();if(i.iframe&&i.iframeOrigin){var h=e.clientId+" "+(e.sessionId?e.sessionId:"");i.callbackList.push(d);var S=i.iframeOrigin;i.callbackList.length==1&&i.iframe.contentWindow.postMessage(h,S)}else d.setSuccess();return d.promise}function ft(){var d=H();if(i.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"&&(f(`[KEYCLOAK] Your browser is blocking access to 3rd-party cookies, this means:
404
+ 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 $u(){const t=M.domCache.get(this),e=M.innerParams.get(this);if(!e){qr(this);return}t.popup&&D.swalCloseEventFinishedCallback&&(D.swalCloseEventFinishedCallback(),delete D.swalCloseEventFinishedCallback),D.deferDisposalTimer&&(clearTimeout(D.deferDisposalTimer),delete D.deferDisposalTimer),typeof e.didDestroy=="function"&&e.didDestroy(),Bu(this)}const Bu=t=>{qr(t),delete t.params,delete D.keydownHandler,delete D.keydownTarget,delete D.currentInstance},qr=t=>{t.isAwaitingPromise()?(co(M,t),M.awaitingPromise.set(t,!0)):(co(Yt,t),co(M,t))},co=(t,e)=>{for(const n in t)t[n].delete(e)},Yr=Object.freeze(Object.defineProperty({__proto__:null,_destroy:$u,close:Sn,closeModal:Sn,closePopup:Sn,closeToast:Sn,disableButtons:Iu,disableInput:Eu,disableLoading:Vr,enableButtons:Cu,enableInput:Tu,getInput:su,getProgressSteps:xu,handleAwaitingPromise:Xt,hideLoading:Vr,isAwaitingPromise:bu,rejectPromise:wu,resetValidationMessage:Au,showValidationMessage:Pu,update:Lu},Symbol.toStringTag,{value:"Module"})),Nu=t=>{const e=M.innerParams.get(t);t.disableButtons(),e.input?Xr(t,"confirm"):fo(t,!0)},Du=t=>{const e=M.innerParams.get(t);t.disableButtons(),e.returnInputValueOnDeny?Xr(t,"deny"):uo(t,!1)},Mu=(t,e)=>{t.disableButtons(),e(vt.cancel)},Xr=(t,e)=>{const n=M.innerParams.get(t);if(!n.input)return lt(`The "input" parameter is needed to be set when using returnInputValueOn${Yn(e)}`);const o=Jc(t,n);n.inputValidator?Ru(t,o,e):t.getInput().checkValidity()?e==="deny"?uo(t,o):fo(t,o):(t.enableButtons(),t.showValidationMessage(n.validationMessage))},Ru=(t,e,n)=>{const o=M.innerParams.get(t);t.disableInput(),Promise.resolve().then(()=>Ht(o.inputValidator(e,o.validationMessage))).then(i=>{t.enableButtons(),t.enableInput(),i?t.showValidationMessage(i):n==="deny"?uo(t,e):fo(t,e)})},uo=(t,e)=>{const n=M.innerParams.get(t||void 0);n.showLoaderOnDeny&&wt(tt()),n.preDeny?(M.awaitingPromise.set(t||void 0,!0),Promise.resolve().then(()=>Ht(n.preDeny(e,n.validationMessage))).then(r=>{r===!1?(t.hideLoading(),Xt(t)):t.closePopup({isDenied:!0,value:typeof r>"u"?e:r})}).catch(r=>Jr(t||void 0,r))):t.closePopup({isDenied:!0,value:e})},Zr=(t,e)=>{t.closePopup({isConfirmed:!0,value:e})},Jr=(t,e)=>{t.rejectPromise(e)},fo=(t,e)=>{const n=M.innerParams.get(t||void 0);n.showLoaderOnConfirm&&wt(),n.preConfirm?(t.resetValidationMessage(),M.awaitingPromise.set(t||void 0,!0),Promise.resolve().then(()=>Ht(n.preConfirm(e,n.validationMessage))).then(r=>{Se(vn())||r===!1?(t.hideLoading(),Xt(t)):Zr(t,typeof r>"u"?e:r)}).catch(r=>Jr(t||void 0,r))):Zr(t,e)},Uu=(t,e,n)=>{M.innerParams.get(t).toast?Vu(t,e,n):(ju(e),Fu(e),Ku(t,e,n))},Vu=(t,e,n)=>{e.popup.onclick=()=>{const o=M.innerParams.get(t);o&&(Hu(o)||o.timer||o.input)||n(vt.close)}},Hu=t=>t.showConfirmButton||t.showDenyButton||t.showCancelButton||t.showCloseButton;let Cn=!1;const ju=t=>{t.popup.onmousedown=()=>{t.container.onmouseup=function(e){t.container.onmouseup=void 0,e.target===t.container&&(Cn=!0)}}},Fu=t=>{t.container.onmousedown=()=>{t.popup.onmouseup=function(e){t.popup.onmouseup=void 0,(e.target===t.popup||t.popup.contains(e.target))&&(Cn=!0)}}},Ku=(t,e,n)=>{e.container.onclick=o=>{const r=M.innerParams.get(t);if(Cn){Cn=!1;return}o.target===e.container&&yn(r.allowOutsideClick)&&n(vt.backdrop)}},zu=t=>typeof t=="object"&&t.jquery,Qr=t=>t instanceof Element||zu(t),Wu=t=>{const e={};return typeof t[0]=="object"&&!Qr(t[0])?Object.assign(e,t[0]):["title","html","icon"].forEach((n,o)=>{const r=t[o];typeof r=="string"||Qr(r)?e[n]=r:r!==void 0&&lt(`Unexpected type of ${n}! Expected "string" or "Element", got ${typeof r}`)}),e};function Gu(...t){const e=this;return new e(...t)}function qu(t){class e extends this{_main(o,r){return super._main(o,Object.assign({},t,r))}}return e}const Yu=()=>D.timeout&&D.timeout.getTimerLeft(),ei=()=>{if(D.timeout)return Dl(),D.timeout.stop()},ti=()=>{if(D.timeout){const t=D.timeout.start();return oo(t),t}},Xu=()=>{const t=D.timeout;return t&&(t.running?ei():ti())},Zu=t=>{if(D.timeout){const e=D.timeout.increase(t);return oo(e,!0),e}},Ju=()=>D.timeout&&D.timeout.isRunning();let ni=!1;const mo={};function Qu(t="data-swal-template"){mo[t]=this,ni||(document.body.addEventListener("click",ed),ni=!0)}const ed=t=>{for(let e=t.target;e&&e!==document;e=e.parentNode)for(const n in mo){const o=e.getAttribute(n);if(o){mo[n].fire({template:o});return}}},td=Object.freeze(Object.defineProperty({__proto__:null,argsToParams:Wu,bindClickHandler:Qu,clickCancel:cu,clickConfirm:Hr,clickDeny:lu,enableLoading:wt,fire:Gu,getActions:zt,getCancelButton:ct,getCloseButton:Qn,getConfirmButton:Be,getContainer:re,getDenyButton:tt,getFocusableElements:eo,getFooter:kr,getHtmlContainer:bn,getIcon:Kt,getImage:wr,getInputLabel:Ll,getLoader:yt,getPopup:q,getTimerLeft:Yu,getTimerProgressBar:wn,getTitle:vr,getValidationMessage:vn,increaseTimer:Zu,isDeprecatedParameter:Jn,isLoading:$l,isTimerRunning:Ju,isUpdatableParameter:yr,isValidParameter:gr,isVisible:au,mixin:qu,resumeTimer:ti,showLoading:wt,stopTimer:ei,toggleTimer:Xu},Symbol.toStringTag,{value:"Module"}));let po;class _t{constructor(...e){if(typeof window>"u")return;po=this;const n=Object.freeze(this.constructor.argsToParams(e));Object.defineProperties(this,{params:{value:n,writable:!1,enumerable:!0,configurable:!0}});const o=this._main(this.params);M.promise.set(this,o)}_main(e,n={}){Al(Object.assign({},n,e)),D.currentInstance&&(D.currentInstance._destroy(),to()&&Br()),D.currentInstance=this;const o=od(e,n);Nc(o),Object.freeze(o),D.timeout&&(D.timeout.stop(),delete D.timeout),clearTimeout(D.restoreFocusTimeout);const r=rd(this);return $r(this,o),M.innerParams.set(this,o),nd(this,r,o)}then(e){return M.promise.get(this).then(e)}finally(e){return M.promise.get(this).finally(e)}}const nd=(t,e,n)=>new Promise((o,r)=>{const i=c=>{t.closePopup({isDismissed:!0,dismiss:c})};Yt.swalPromiseResolve.set(t,o),Yt.swalPromiseReject.set(t,r),e.confirmButton.onclick=()=>Nu(t),e.denyButton.onclick=()=>Du(t),e.cancelButton.onclick=()=>Mu(t,i),e.closeButton.onclick=()=>i(vt.close),Uu(t,e,i),uu(t,D,n,i),Zc(t,n),Wc(n),id(D,n,i),sd(e,n),setTimeout(()=>{e.container.scrollTop=0})}),od=(t,e)=>{const n=Ic(t),o=Object.assign({},gt,e,n,t);return o.showClass=Object.assign({},gt.showClass,o.showClass),o.hideClass=Object.assign({},gt.hideClass,o.hideClass),o},rd=t=>{const e={popup:q(),container:re(),actions:zt(),confirmButton:Be(),denyButton:tt(),cancelButton:ct(),loader:yt(),closeButton:Qn(),validationMessage:vn(),progressSteps:_r()};return M.domCache.set(t,e),e},id=(t,e,n)=>{const o=wn();se(o),e.timer&&(t.timeout=new Dc(()=>{n("timer"),delete t.timeout},e.timer),e.timerProgressBar&&(ne(o),Pe(o,e,"timerProgressBar"),setTimeout(()=>{t.timeout&&t.timeout.running&&oo(e.timer)})))},sd=(t,e)=>{if(!e.toast){if(!yn(e.allowEnterKey))return ld();ad(t,e)||lo(e,-1,1)}},ad=(t,e)=>e.focusDeny&&Se(t.denyButton)?(t.denyButton.focus(),!0):e.focusCancel&&Se(t.cancelButton)?(t.cancelButton.focus(),!0):e.focusConfirm&&Se(t.confirmButton)?(t.confirmButton.focus(),!0):!1,ld=()=>{document.activeElement instanceof HTMLElement&&typeof document.activeElement.blur=="function"&&document.activeElement.blur()};Object.assign(_t.prototype,Yr),Object.assign(_t,td),Object.keys(Yr).forEach(t=>{_t[t]=function(...e){if(po)return po[t](...e)}}),_t.DismissReason=vt,_t.version="11.4.8";const kt=_t;kt.default=kt;/*! @license DOMPurify 3.1.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.1.6/LICENSE */const{entries:oi,setPrototypeOf:ri,isFrozen:cd,getPrototypeOf:ud,getOwnPropertyDescriptor:dd}=Object;let{freeze:de,seal:Ae,create:ii}=Object,{apply:ho,construct:go}=typeof Reflect<"u"&&Reflect;de||(de=function(e){return e}),Ae||(Ae=function(e){return e}),ho||(ho=function(e,n,o){return e.apply(n,o)}),go||(go=function(e,n){return new e(...n)});const In=Ce(Array.prototype.forEach),si=Ce(Array.prototype.pop),Zt=Ce(Array.prototype.push),Tn=Ce(String.prototype.toLowerCase),yo=Ce(String.prototype.toString),ai=Ce(String.prototype.match),Jt=Ce(String.prototype.replace),fd=Ce(String.prototype.indexOf),md=Ce(String.prototype.trim),Ne=Ce(Object.prototype.hasOwnProperty),fe=Ce(RegExp.prototype.test),Qt=pd(TypeError);function Ce(t){return function(e){for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];return ho(t,e,o)}}function pd(t){return function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return go(t,n)}}function j(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Tn;ri&&ri(t,null);let o=e.length;for(;o--;){let r=e[o];if(typeof r=="string"){const i=n(r);i!==r&&(cd(e)||(e[o]=i),r=i)}t[r]=!0}return t}function hd(t){for(let e=0;e<t.length;e++)Ne(t,e)||(t[e]=null);return t}function ft(t){const e=ii(null);for(const[n,o]of oi(t))Ne(t,n)&&(Array.isArray(o)?e[n]=hd(o):o&&typeof o=="object"&&o.constructor===Object?e[n]=ft(o):e[n]=o);return e}function en(t,e){for(;t!==null;){const o=dd(t,e);if(o){if(o.get)return Ce(o.get);if(typeof o.value=="function")return Ce(o.value)}t=ud(t)}function n(){return null}return n}const li=de(["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"]),bo=de(["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"]),vo=de(["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"]),gd=de(["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"]),wo=de(["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"]),yd=de(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),ci=de(["#text"]),ui=de(["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","popover","popovertarget","popovertargetaction","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","wrap","xmlns","slot"]),_o=de(["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"]),di=de(["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=de(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),bd=Ae(/\{\{[\w\W]*|[\w\W]*\}\}/gm),vd=Ae(/<%[\w\W]*|[\w\W]*%>/gm),wd=Ae(/\${[\w\W]*}/gm),_d=Ae(/^data-[\-\w.\u00B7-\uFFFF]/),kd=Ae(/^aria-[\-\w]+$/),fi=Ae(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Sd=Ae(/^(?:\w+script|data):/i),Cd=Ae(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),mi=Ae(/^html$/i),Id=Ae(/^[a-z][.\w]*(-[.\w]+)+$/i);var pi=Object.freeze({__proto__:null,MUSTACHE_EXPR:bd,ERB_EXPR:vd,TMPLIT_EXPR:wd,DATA_ATTR:_d,ARIA_ATTR:kd,IS_ALLOWED_URI:fi,IS_SCRIPT_OR_DATA:Sd,ATTR_WHITESPACE:Cd,DOCTYPE_NAME:mi,CUSTOM_ELEMENT:Id});const tn={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},Td=function(){return typeof window>"u"?null:window},Ed=function(e,n){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let o=null;const r="data-tt-policy-suffix";n&&n.hasAttribute(r)&&(o=n.getAttribute(r));const i="dompurify"+(o?"#"+o:"");try{return e.createPolicy(i,{createHTML(c){return c},createScriptURL(c){return c}})}catch{return console.warn("TrustedTypes policy "+i+" could not be created."),null}};function hi(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Td();const e=O=>hi(O);if(e.version="3.1.6",e.removed=[],!t||!t.document||t.document.nodeType!==tn.document)return e.isSupported=!1,e;let{document:n}=t;const o=n,r=o.currentScript,{DocumentFragment:i,HTMLTemplateElement:c,Node:a,Element:l,NodeFilter:d,NamedNodeMap:m=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:h,DOMParser:v,trustedTypes:C}=t,T=l.prototype,$=en(T,"cloneNode"),x=en(T,"remove"),R=en(T,"nextSibling"),I=en(T,"childNodes"),B=en(T,"parentNode");if(typeof c=="function"){const O=n.createElement("template");O.content&&O.content.ownerDocument&&(n=O.content.ownerDocument)}let F,J="";const{implementation:ye,createNodeIterator:ee,createDocumentFragment:De,getElementsByTagName:Ie}=n,{importNode:Y}=o;let Q={};e.isSupported=typeof oi=="function"&&typeof B=="function"&&ye&&ye.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:be,ERB_EXPR:Me,TMPLIT_EXPR:Te,DATA_ATTR:it,ARIA_ATTR:Ye,IS_SCRIPT_OR_DATA:Ve,ATTR_WHITESPACE:He,CUSTOM_ELEMENT:mt}=pi;let{IS_ALLOWED_URI:xe}=pi,u=null;const p=j({},[...li,...bo,...vo,...wo,...ci]);let b=null;const S=j({},[...ui,..._o,...di,...En]);let y=Object.seal(ii(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}})),E=null,w=null,_=!0,A=!0,P=!1,N=!0,H=!1,ve=!0,ae=!1,le=!1,Xe=!1,St=!1,An=!1,xn=!1,Ci=!0,Ii=!1;const nf="user-content-";let Co=!0,on=!1,Ct={},It=null;const Ti=j({},["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 Ei=null;const Pi=j({},["audio","video","img","source","image","track"]);let Io=null;const Ai=j({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ln="http://www.w3.org/1998/Math/MathML",On="http://www.w3.org/2000/svg",Ze="http://www.w3.org/1999/xhtml";let Tt=Ze,To=!1,Eo=null;const of=j({},[Ln,On,Ze],yo);let rn=null;const rf=["application/xhtml+xml","text/html"],sf="text/html";let te=null,Et=null;const af=n.createElement("form"),xi=function(f){return f instanceof RegExp||f instanceof Function},Po=function(){let f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Et&&Et===f)){if((!f||typeof f!="object")&&(f={}),f=ft(f),rn=rf.indexOf(f.PARSER_MEDIA_TYPE)===-1?sf:f.PARSER_MEDIA_TYPE,te=rn==="application/xhtml+xml"?yo:Tn,u=Ne(f,"ALLOWED_TAGS")?j({},f.ALLOWED_TAGS,te):p,b=Ne(f,"ALLOWED_ATTR")?j({},f.ALLOWED_ATTR,te):S,Eo=Ne(f,"ALLOWED_NAMESPACES")?j({},f.ALLOWED_NAMESPACES,yo):of,Io=Ne(f,"ADD_URI_SAFE_ATTR")?j(ft(Ai),f.ADD_URI_SAFE_ATTR,te):Ai,Ei=Ne(f,"ADD_DATA_URI_TAGS")?j(ft(Pi),f.ADD_DATA_URI_TAGS,te):Pi,It=Ne(f,"FORBID_CONTENTS")?j({},f.FORBID_CONTENTS,te):Ti,E=Ne(f,"FORBID_TAGS")?j({},f.FORBID_TAGS,te):{},w=Ne(f,"FORBID_ATTR")?j({},f.FORBID_ATTR,te):{},Ct=Ne(f,"USE_PROFILES")?f.USE_PROFILES:!1,_=f.ALLOW_ARIA_ATTR!==!1,A=f.ALLOW_DATA_ATTR!==!1,P=f.ALLOW_UNKNOWN_PROTOCOLS||!1,N=f.ALLOW_SELF_CLOSE_IN_ATTR!==!1,H=f.SAFE_FOR_TEMPLATES||!1,ve=f.SAFE_FOR_XML!==!1,ae=f.WHOLE_DOCUMENT||!1,St=f.RETURN_DOM||!1,An=f.RETURN_DOM_FRAGMENT||!1,xn=f.RETURN_TRUSTED_TYPE||!1,Xe=f.FORCE_BODY||!1,Ci=f.SANITIZE_DOM!==!1,Ii=f.SANITIZE_NAMED_PROPS||!1,Co=f.KEEP_CONTENT!==!1,on=f.IN_PLACE||!1,xe=f.ALLOWED_URI_REGEXP||fi,Tt=f.NAMESPACE||Ze,y=f.CUSTOM_ELEMENT_HANDLING||{},f.CUSTOM_ELEMENT_HANDLING&&xi(f.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(y.tagNameCheck=f.CUSTOM_ELEMENT_HANDLING.tagNameCheck),f.CUSTOM_ELEMENT_HANDLING&&xi(f.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(y.attributeNameCheck=f.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),f.CUSTOM_ELEMENT_HANDLING&&typeof f.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(y.allowCustomizedBuiltInElements=f.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),H&&(A=!1),An&&(St=!0),Ct&&(u=j({},ci),b=[],Ct.html===!0&&(j(u,li),j(b,ui)),Ct.svg===!0&&(j(u,bo),j(b,_o),j(b,En)),Ct.svgFilters===!0&&(j(u,vo),j(b,_o),j(b,En)),Ct.mathMl===!0&&(j(u,wo),j(b,di),j(b,En))),f.ADD_TAGS&&(u===p&&(u=ft(u)),j(u,f.ADD_TAGS,te)),f.ADD_ATTR&&(b===S&&(b=ft(b)),j(b,f.ADD_ATTR,te)),f.ADD_URI_SAFE_ATTR&&j(Io,f.ADD_URI_SAFE_ATTR,te),f.FORBID_CONTENTS&&(It===Ti&&(It=ft(It)),j(It,f.FORBID_CONTENTS,te)),Co&&(u["#text"]=!0),ae&&j(u,["html","head","body"]),u.table&&(j(u,["tbody"]),delete E.tbody),f.TRUSTED_TYPES_POLICY){if(typeof f.TRUSTED_TYPES_POLICY.createHTML!="function")throw Qt('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof f.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Qt('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');F=f.TRUSTED_TYPES_POLICY,J=F.createHTML("")}else F===void 0&&(F=Ed(C,r)),F!==null&&typeof J=="string"&&(J=F.createHTML(""));de&&de(f),Et=f}},Li=j({},["mi","mo","mn","ms","mtext"]),Oi=j({},["foreignobject","annotation-xml"]),lf=j({},["title","style","font","a","script"]),$i=j({},[...bo,...vo,...gd]),Bi=j({},[...wo,...yd]),cf=function(f){let k=B(f);(!k||!k.tagName)&&(k={namespaceURI:Tt,tagName:"template"});const L=Tn(f.tagName),X=Tn(k.tagName);return Eo[f.namespaceURI]?f.namespaceURI===On?k.namespaceURI===Ze?L==="svg":k.namespaceURI===Ln?L==="svg"&&(X==="annotation-xml"||Li[X]):!!$i[L]:f.namespaceURI===Ln?k.namespaceURI===Ze?L==="math":k.namespaceURI===On?L==="math"&&Oi[X]:!!Bi[L]:f.namespaceURI===Ze?k.namespaceURI===On&&!Oi[X]||k.namespaceURI===Ln&&!Li[X]?!1:!Bi[L]&&(lf[L]||!$i[L]):!!(rn==="application/xhtml+xml"&&Eo[f.namespaceURI]):!1},je=function(f){Zt(e.removed,{element:f});try{B(f).removeChild(f)}catch{x(f)}},$n=function(f,k){try{Zt(e.removed,{attribute:k.getAttributeNode(f),from:k})}catch{Zt(e.removed,{attribute:null,from:k})}if(k.removeAttribute(f),f==="is"&&!b[f])if(St||An)try{je(k)}catch{}else try{k.setAttribute(f,"")}catch{}},Ni=function(f){let k=null,L=null;if(Xe)f="<remove></remove>"+f;else{const oe=ai(f,/^[\r\n\t ]+/);L=oe&&oe[0]}rn==="application/xhtml+xml"&&Tt===Ze&&(f='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+f+"</body></html>");const X=F?F.createHTML(f):f;if(Tt===Ze)try{k=new v().parseFromString(X,rn)}catch{}if(!k||!k.documentElement){k=ye.createDocument(Tt,"template",null);try{k.documentElement.innerHTML=To?J:X}catch{}}const ce=k.body||k.documentElement;return f&&L&&ce.insertBefore(n.createTextNode(L),ce.childNodes[0]||null),Tt===Ze?Ie.call(k,ae?"html":"body")[0]:ae?k.documentElement:ce},Di=function(f){return ee.call(f.ownerDocument||f,f,d.SHOW_ELEMENT|d.SHOW_COMMENT|d.SHOW_TEXT|d.SHOW_PROCESSING_INSTRUCTION|d.SHOW_CDATA_SECTION,null)},Mi=function(f){return f instanceof h&&(typeof f.nodeName!="string"||typeof f.textContent!="string"||typeof f.removeChild!="function"||!(f.attributes instanceof m)||typeof f.removeAttribute!="function"||typeof f.setAttribute!="function"||typeof f.namespaceURI!="string"||typeof f.insertBefore!="function"||typeof f.hasChildNodes!="function")},Ri=function(f){return typeof a=="function"&&f instanceof a},Je=function(f,k,L){Q[f]&&In(Q[f],X=>{X.call(e,k,L,Et)})},Ui=function(f){let k=null;if(Je("beforeSanitizeElements",f,null),Mi(f))return je(f),!0;const L=te(f.nodeName);if(Je("uponSanitizeElement",f,{tagName:L,allowedTags:u}),f.hasChildNodes()&&!Ri(f.firstElementChild)&&fe(/<[/\w]/g,f.innerHTML)&&fe(/<[/\w]/g,f.textContent)||f.nodeType===tn.progressingInstruction||ve&&f.nodeType===tn.comment&&fe(/<[/\w]/g,f.data))return je(f),!0;if(!u[L]||E[L]){if(!E[L]&&Hi(L)&&(y.tagNameCheck instanceof RegExp&&fe(y.tagNameCheck,L)||y.tagNameCheck instanceof Function&&y.tagNameCheck(L)))return!1;if(Co&&!It[L]){const X=B(f)||f.parentNode,ce=I(f)||f.childNodes;if(ce&&X){const oe=ce.length;for(let we=oe-1;we>=0;--we){const Fe=$(ce[we],!0);Fe.__removalCount=(f.__removalCount||0)+1,X.insertBefore(Fe,R(f))}}}return je(f),!0}return f instanceof l&&!cf(f)||(L==="noscript"||L==="noembed"||L==="noframes")&&fe(/<\/no(script|embed|frames)/i,f.innerHTML)?(je(f),!0):(H&&f.nodeType===tn.text&&(k=f.textContent,In([be,Me,Te],X=>{k=Jt(k,X," ")}),f.textContent!==k&&(Zt(e.removed,{element:f.cloneNode()}),f.textContent=k)),Je("afterSanitizeElements",f,null),!1)},Vi=function(f,k,L){if(Ci&&(k==="id"||k==="name")&&(L in n||L in af))return!1;if(!(A&&!w[k]&&fe(it,k))){if(!(_&&fe(Ye,k))){if(!b[k]||w[k]){if(!(Hi(f)&&(y.tagNameCheck instanceof RegExp&&fe(y.tagNameCheck,f)||y.tagNameCheck instanceof Function&&y.tagNameCheck(f))&&(y.attributeNameCheck instanceof RegExp&&fe(y.attributeNameCheck,k)||y.attributeNameCheck instanceof Function&&y.attributeNameCheck(k))||k==="is"&&y.allowCustomizedBuiltInElements&&(y.tagNameCheck instanceof RegExp&&fe(y.tagNameCheck,L)||y.tagNameCheck instanceof Function&&y.tagNameCheck(L))))return!1}else if(!Io[k]){if(!fe(xe,Jt(L,He,""))){if(!((k==="src"||k==="xlink:href"||k==="href")&&f!=="script"&&fd(L,"data:")===0&&Ei[f])){if(!(P&&!fe(Ve,Jt(L,He,"")))){if(L)return!1}}}}}}return!0},Hi=function(f){return f!=="annotation-xml"&&ai(f,mt)},ji=function(f){Je("beforeSanitizeAttributes",f,null);const{attributes:k}=f;if(!k)return;const L={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:b};let X=k.length;for(;X--;){const ce=k[X],{name:oe,namespaceURI:we,value:Fe}=ce,sn=te(oe);let me=oe==="value"?Fe:md(Fe);if(L.attrName=sn,L.attrValue=me,L.keepAttr=!0,L.forceKeepAttr=void 0,Je("uponSanitizeAttribute",f,L),me=L.attrValue,ve&&fe(/((--!?|])>)|<\/(style|title)/i,me)){$n(oe,f);continue}if(L.forceKeepAttr||($n(oe,f),!L.keepAttr))continue;if(!N&&fe(/\/>/i,me)){$n(oe,f);continue}H&&In([be,Me,Te],Ki=>{me=Jt(me,Ki," ")});const Fi=te(f.nodeName);if(Vi(Fi,sn,me)){if(Ii&&(sn==="id"||sn==="name")&&($n(oe,f),me=nf+me),F&&typeof C=="object"&&typeof C.getAttributeType=="function"&&!we)switch(C.getAttributeType(Fi,sn)){case"TrustedHTML":{me=F.createHTML(me);break}case"TrustedScriptURL":{me=F.createScriptURL(me);break}}try{we?f.setAttributeNS(we,oe,me):f.setAttribute(oe,me),Mi(f)?je(f):si(e.removed)}catch{}}}Je("afterSanitizeAttributes",f,null)},uf=function O(f){let k=null;const L=Di(f);for(Je("beforeSanitizeShadowDOM",f,null);k=L.nextNode();)Je("uponSanitizeShadowNode",k,null),!Ui(k)&&(k.content instanceof i&&O(k.content),ji(k));Je("afterSanitizeShadowDOM",f,null)};return e.sanitize=function(O){let f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},k=null,L=null,X=null,ce=null;if(To=!O,To&&(O="<!-->"),typeof O!="string"&&!Ri(O))if(typeof O.toString=="function"){if(O=O.toString(),typeof O!="string")throw Qt("dirty is not a string, aborting")}else throw Qt("toString is not a function");if(!e.isSupported)return O;if(le||Po(f),e.removed=[],typeof O=="string"&&(on=!1),on){if(O.nodeName){const Fe=te(O.nodeName);if(!u[Fe]||E[Fe])throw Qt("root node is forbidden and cannot be sanitized in-place")}}else if(O instanceof a)k=Ni("<!---->"),L=k.ownerDocument.importNode(O,!0),L.nodeType===tn.element&&L.nodeName==="BODY"||L.nodeName==="HTML"?k=L:k.appendChild(L);else{if(!St&&!H&&!ae&&O.indexOf("<")===-1)return F&&xn?F.createHTML(O):O;if(k=Ni(O),!k)return St?null:xn?J:""}k&&Xe&&je(k.firstChild);const oe=Di(on?O:k);for(;X=oe.nextNode();)Ui(X)||(X.content instanceof i&&uf(X.content),ji(X));if(on)return O;if(St){if(An)for(ce=De.call(k.ownerDocument);k.firstChild;)ce.appendChild(k.firstChild);else ce=k;return(b.shadowroot||b.shadowrootmode)&&(ce=Y.call(o,ce,!0)),ce}let we=ae?k.outerHTML:k.innerHTML;return ae&&u["!doctype"]&&k.ownerDocument&&k.ownerDocument.doctype&&k.ownerDocument.doctype.name&&fe(mi,k.ownerDocument.doctype.name)&&(we="<!DOCTYPE "+k.ownerDocument.doctype.name+`>
405
+ `+we),H&&In([be,Me,Te],Fe=>{we=Jt(we,Fe," ")}),F&&xn?F.createHTML(we):we},e.setConfig=function(){let O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Po(O),le=!0},e.clearConfig=function(){Et=null,le=!1},e.isValidAttribute=function(O,f,k){Et||Po({});const L=te(O),X=te(f);return Vi(L,X,k)},e.addHook=function(O,f){typeof f=="function"&&(Q[O]=Q[O]||[],Zt(Q[O],f))},e.removeHook=function(O){if(Q[O])return si(Q[O])},e.removeHooks=function(O){Q[O]&&(Q[O]=[])},e.removeAllHooks=function(){Q={}},e}var gi=hi();class yi{get IsVisible(){return kt.isVisible()}}class Pd extends yi{constructor(){super()}async CreateAlertAsync(e){let n="info",o,r;return typeof e=="string"||Array.isArray(e)?o=Array.isArray(e)?e.join("<br />"):e:(n=e.icon??"info",r=e.title??"",o=Array.isArray(e.text)?e.text.join("<br />"):e.text),new Promise(i=>{kt.fire({allowEscapeKey:!1,allowOutsideClick:!1,icon:n,title:r,html:`<div style="max-height: 50vh; overflow: auto">${gi.sanitize(o)}</div>`}).then(()=>i(!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 Ad extends yi{async CreateConfirmAsync(e){return new Promise(n=>{kt.fire({showCancelButton:!0,allowEscapeKey:!1,allowOutsideClick:!1,icon:"question",title:e.title,html:gi.sanitize(e.text),confirmButtonText:e.confirmLabel??"confirmar",cancelButtonText:e.rejectLabel??"cancelar"}).then(o=>{n(o.isConfirmed===!0)})})}async ConfirmAsync(e){return this.CreateConfirmAsync({text:e})}}const xd=()=>new Pd,Ld=()=>new Ad;function Od(t){return t instanceof Uint8Array||t!=null&&typeof t=="object"&&t.constructor.name==="Uint8Array"}function bi(t,...e){if(!Od(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 vi(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 $d(t,e){bi(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 ko=t=>new DataView(t.buffer,t.byteOffset,t.byteLength),Ue=(t,e)=>t<<32-e|t>>>e;new Uint8Array(new Uint32Array([287454020]).buffer)[0];function Bd(t){if(typeof t!="string")throw new Error(`utf8ToBytes expected string, got ${typeof t}`);return new Uint8Array(new TextEncoder().encode(t))}function wi(t){return typeof t=="string"&&(t=Bd(t)),bi(t),t}class Nd{clone(){return this._cloneInto()}}function Dd(t){const e=o=>t().update(wi(o)).digest(),n=t();return e.outputLen=n.outputLen,e.blockLen=n.blockLen,e.create=()=>t(),e}function Md(t,e,n,o){if(typeof t.setBigUint64=="function")return t.setBigUint64(e,n,o);const r=BigInt(32),i=BigInt(4294967295),c=Number(n>>r&i),a=Number(n&i),l=o?4:0,d=o?0:4;t.setUint32(e+l,c,o),t.setUint32(e+d,a,o)}const Rd=(t,e,n)=>t&e^~t&n,Ud=(t,e,n)=>t&e^t&n^e&n;class Vd extends Nd{constructor(e,n,o,r){super(),this.blockLen=e,this.outputLen=n,this.padOffset=o,this.isLE=r,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(e),this.view=ko(this.buffer)}update(e){vi(this);const{view:n,buffer:o,blockLen:r}=this;e=wi(e);const i=e.length;for(let c=0;c<i;){const a=Math.min(r-this.pos,i-c);if(a===r){const l=ko(e);for(;r<=i-c;c+=r)this.process(l,c);continue}o.set(e.subarray(c,c+a),this.pos),this.pos+=a,c+=a,this.pos===r&&(this.process(n,0),this.pos=0)}return this.length+=e.length,this.roundClean(),this}digestInto(e){vi(this),$d(e,this),this.finished=!0;const{buffer:n,view:o,blockLen:r,isLE:i}=this;let{pos:c}=this;n[c++]=128,this.buffer.subarray(c).fill(0),this.padOffset>r-c&&(this.process(o,0),c=0);for(let h=c;h<r;h++)n[h]=0;Md(o,r-8,BigInt(this.length*8),i),this.process(o,0);const a=ko(e),l=this.outputLen;if(l%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const d=l/4,m=this.get();if(d>m.length)throw new Error("_sha2: outputLen bigger than state");for(let h=0;h<d;h++)a.setUint32(4*h,m[h],i)}digest(){const{buffer:e,outputLen:n}=this;this.digestInto(e);const o=e.slice(0,n);return this.destroy(),o}_cloneInto(e){e||(e=new this.constructor),e.set(...this.get());const{blockLen:n,buffer:o,length:r,finished:i,destroyed:c,pos:a}=this;return e.length=r,e.pos=a,e.finished=i,e.destroyed=c,r%n&&e.buffer.set(o),e}}const Hd=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]),rt=new Uint32Array(64);class jd extends Vd{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:o,D:r,E:i,F:c,G:a,H:l}=this;return[e,n,o,r,i,c,a,l]}set(e,n,o,r,i,c,a,l){this.A=e|0,this.B=n|0,this.C=o|0,this.D=r|0,this.E=i|0,this.F=c|0,this.G=a|0,this.H=l|0}process(e,n){for(let h=0;h<16;h++,n+=4)rt[h]=e.getUint32(n,!1);for(let h=16;h<64;h++){const v=rt[h-15],C=rt[h-2],T=Ue(v,7)^Ue(v,18)^v>>>3,$=Ue(C,17)^Ue(C,19)^C>>>10;rt[h]=$+rt[h-7]+T+rt[h-16]|0}let{A:o,B:r,C:i,D:c,E:a,F:l,G:d,H:m}=this;for(let h=0;h<64;h++){const v=Ue(a,6)^Ue(a,11)^Ue(a,25),C=m+v+Rd(a,l,d)+Hd[h]+rt[h]|0,$=(Ue(o,2)^Ue(o,13)^Ue(o,22))+Ud(o,r,i)|0;m=d,d=l,l=a,a=c+C|0,c=i,i=r,r=o,o=C+$|0}o=o+this.A|0,r=r+this.B|0,i=i+this.C|0,c=c+this.D|0,a=a+this.E|0,l=l+this.F|0,d=d+this.G|0,m=m+this.H|0,this.set(o,r,i,c,a,l,d,m)}roundClean(){rt.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}const Fd=Dd(()=>new jd);class nn extends Error{}nn.prototype.name="InvalidTokenError";function Kd(t){return decodeURIComponent(atob(t).replace(/(.)/g,(e,n)=>{let o=n.charCodeAt(0).toString(16).toUpperCase();return o.length<2&&(o="0"+o),"%"+o}))}function zd(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 Kd(e)}catch{return atob(e)}}function So(t,e){if(typeof t!="string")throw new nn("Invalid token specified: must be a string");e||(e={});const n=e.header===!0?0:1,o=t.split(".")[n];if(typeof o!="string")throw new nn(`Invalid token specified: missing part #${n+1}`);let r;try{r=zd(o)}catch(i){throw new nn(`Invalid token specified: invalid base64 for part #${n+1} (${i.message})`)}try{return JSON.parse(r)}catch(i){throw new nn(`Invalid token specified: invalid json for part #${n+1} (${i.message})`)}}if(typeof Promise>"u")throw Error("Keycloak requires an environment that supports Promises. Make sure that you include the appropriate polyfill.");function _i(t){if(!(this instanceof _i))throw new Error("The 'Keycloak' constructor must be invoked with 'new'.");var e=this,n,o=[],r,i={enable:!0,callbackList:[],interval:5};e.didInitialize=!1;for(var c=document.getElementsByTagName("script"),a=0;a<c.length;a++)(c[a].src.indexOf("keycloak.js")!==-1||c[a].src.indexOf("keycloak.min.js")!==-1)&&c[a].src.indexOf("version=")!==-1&&(e.iframeVersion=c[a].src.substring(c[a].src.indexOf("version=")+8).split("&")[0]);var l=!0,d=xe(console.info),m=xe(console.warn);e.init=function(u){if(e.didInitialize)throw new Error("A 'Keycloak' instance can only be initialized once.");e.didInitialize=!0,e.authenticated=!1,r=mt();var p=["default","cordova","cordova-native"];if(u&&p.indexOf(u.adapter)>-1?n=Ye(u.adapter):u&&typeof u.adapter=="object"?n=u.adapter:window.Cordova||window.cordova?n=Ye("cordova"):n=Ye(),u){if(typeof u.useNonce<"u"&&(l=u.useNonce),typeof u.checkLoginIframe<"u"&&(i.enable=u.checkLoginIframe),u.checkLoginIframeInterval&&(i.interval=u.checkLoginIframeInterval),u.onLoad==="login-required"&&(e.loginRequired=!0),u.responseMode)if(u.responseMode==="query"||u.responseMode==="fragment")e.responseMode=u.responseMode;else throw"Invalid value for responseMode";if(u.flow){switch(u.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=u.flow}if(u.timeSkew!=null&&(e.timeSkew=u.timeSkew),u.redirectUri&&(e.redirectUri=u.redirectUri),u.silentCheckSsoRedirectUri&&(e.silentCheckSsoRedirectUri=u.silentCheckSsoRedirectUri),typeof u.silentCheckSsoFallback=="boolean"?e.silentCheckSsoFallback=u.silentCheckSsoFallback:e.silentCheckSsoFallback=!0,typeof u.pkceMethod<"u"){if(u.pkceMethod!=="S256"&&u.pkceMethod!==!1)throw new TypeError(`Invalid value for pkceMethod', expected 'S256' or false but got ${u.pkceMethod}.`);e.pkceMethod=u.pkceMethod}else e.pkceMethod="S256";typeof u.enableLogging=="boolean"?e.enableLogging=u.enableLogging:e.enableLogging=!1,u.logoutMethod==="POST"?e.logoutMethod="POST":e.logoutMethod="GET",typeof u.scope=="string"&&(e.scope=u.scope),typeof u.acrValues=="string"&&(e.acrValues=u.acrValues),typeof u.messageReceiveTimeout=="number"&&u.messageReceiveTimeout>0?e.messageReceiveTimeout=u.messageReceiveTimeout:e.messageReceiveTimeout=1e4}e.responseMode||(e.responseMode="fragment"),e.responseType||(e.responseType="code",e.flow="standard");var b=Y(),S=Y();S.promise.then(function(){e.onReady&&e.onReady(e.authenticated),b.setSuccess(e.authenticated)}).catch(function(A){b.setError(A)});var y=B();function E(){var A=function(H){H||(N.prompt="none"),u&&u.locale&&(N.locale=u.locale),e.login(N).then(function(){S.setSuccess()}).catch(function(ve){S.setError(ve)})},P=function(){var H=document.createElement("iframe"),ve=e.createLoginUrl({prompt:"none",redirectUri:e.silentCheckSsoRedirectUri});H.setAttribute("src",ve),H.setAttribute("sandbox","allow-storage-access-by-user-activation allow-scripts allow-same-origin"),H.setAttribute("title","keycloak-silent-check-sso"),H.style.display="none",document.body.appendChild(H);var ae=function(le){if(!(le.origin!==window.location.origin||H.contentWindow!==le.source)){var Xe=ee(le.data);I(Xe,S),document.body.removeChild(H),window.removeEventListener("message",ae)}};window.addEventListener("message",ae)},N={};switch(u.onLoad){case"check-sso":i.enable?be().then(function(){Te().then(function(H){H?S.setSuccess():e.silentCheckSsoRedirectUri?P():A(!1)}).catch(function(H){S.setError(H)})}):e.silentCheckSsoRedirectUri?P():A(!1);break;case"login-required":A(!0);break;default:throw"Invalid value for onLoad"}}function w(){var A=ee(window.location.href);if(A&&window.history.replaceState(window.history.state,null,A.newUrl),A&&A.valid)return be().then(function(){I(A,S)}).catch(function(P){S.setError(P)});u?u.token&&u.refreshToken?(J(u.token,u.refreshToken,u.idToken),i.enable?be().then(function(){Te().then(function(P){P?(e.onAuthSuccess&&e.onAuthSuccess(),S.setSuccess(),Me()):S.setSuccess()}).catch(function(P){S.setError(P)})}):e.updateToken(-1).then(function(){e.onAuthSuccess&&e.onAuthSuccess(),S.setSuccess()}).catch(function(P){e.onAuthError&&e.onAuthError(),u.onLoad?E():S.setError(P)})):u.onLoad?E():S.setSuccess():S.setSuccess()}function _(){var A=Y(),P=function(){(document.readyState==="interactive"||document.readyState==="complete")&&(document.removeEventListener("readystatechange",P),A.setSuccess())};return document.addEventListener("readystatechange",P),P(),A.promise}return y.then(function(){_().then(it).then(w).catch(function(A){b.setError(A)})}),y.catch(function(A){b.setError(A)}),b.promise},e.login=function(u){return n.login(u)};function h(u){var p=null,b=window.crypto||window.msCrypto;if(b&&b.getRandomValues&&window.Uint8Array)return p=new Uint8Array(u),b.getRandomValues(p),p;p=new Array(u);for(var S=0;S<p.length;S++)p[S]=Math.floor(256*Math.random());return p}function v(u){return C(u,"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789")}function C(u,p){for(var b=h(u),S=new Array(u),y=0;y<u;y++)S[y]=p.charCodeAt(b[y]%p.length);return String.fromCharCode.apply(null,S)}function T(u,p){if(u!=="S256")throw new TypeError(`Invalid value for 'pkceMethod', expected 'S256' but got '${u}'.`);const b=Fd(p);return Wd(b).replace(/\+/g,"-").replace(/\//g,"_").replace(/\=/g,"")}function $(u){var p={id_token:{acr:u}};return JSON.stringify(p)}e.createLoginUrl=function(u){var p=ye(),b=ye(),S=n.redirectUri(u),y={state:p,nonce:b,redirectUri:encodeURIComponent(S),loginOptions:u};u&&u.prompt&&(y.prompt=u.prompt);var E;u&&u.action=="register"?E=e.endpoints.register():E=e.endpoints.authorize();var w=u&&u.scope||e.scope;w?w.indexOf("openid")===-1&&(w="openid "+w):w="openid";var _=E+"?client_id="+encodeURIComponent(e.clientId)+"&redirect_uri="+encodeURIComponent(S)+"&state="+encodeURIComponent(p)+"&response_mode="+encodeURIComponent(e.responseMode)+"&response_type="+encodeURIComponent(e.responseType)+"&scope="+encodeURIComponent(w);if(l&&(_=_+"&nonce="+encodeURIComponent(b)),u&&u.prompt&&(_+="&prompt="+encodeURIComponent(u.prompt)),u&&u.maxAge&&(_+="&max_age="+encodeURIComponent(u.maxAge)),u&&u.loginHint&&(_+="&login_hint="+encodeURIComponent(u.loginHint)),u&&u.idpHint&&(_+="&kc_idp_hint="+encodeURIComponent(u.idpHint)),u&&u.action&&u.action!="register"&&(_+="&kc_action="+encodeURIComponent(u.action)),u&&u.locale&&(_+="&ui_locales="+encodeURIComponent(u.locale)),u&&u.acr){var A=$(u.acr);_+="&claims="+encodeURIComponent(A)}if((u&&u.acrValues||e.acrValues)&&(_+="&acr_values="+encodeURIComponent(u.acrValues||e.acrValues)),e.pkceMethod){var P=v(96);y.pkceCodeVerifier=P;var N=T(e.pkceMethod,P);_+="&code_challenge="+N,_+="&code_challenge_method="+e.pkceMethod}return r.add(y),_},e.logout=function(u){return n.logout(u)},e.createLogoutUrl=function(u){if(((u==null?void 0:u.logoutMethod)??e.logoutMethod)==="POST")return e.endpoints.logout();var b=e.endpoints.logout()+"?client_id="+encodeURIComponent(e.clientId)+"&post_logout_redirect_uri="+encodeURIComponent(n.redirectUri(u,!1));return e.idToken&&(b+="&id_token_hint="+encodeURIComponent(e.idToken)),b},e.register=function(u){return n.register(u)},e.createRegisterUrl=function(u){return u||(u={}),u.action="register",e.createLoginUrl(u)},e.createAccountUrl=function(u){var p=x(),b=void 0;return typeof p<"u"&&(b=p+"/account?referrer="+encodeURIComponent(e.clientId)+"&referrer_uri="+encodeURIComponent(n.redirectUri(u))),b},e.accountManagement=function(){return n.accountManagement()},e.hasRealmRole=function(u){var p=e.realmAccess;return!!p&&p.roles.indexOf(u)>=0},e.hasResourceRole=function(u,p){if(!e.resourceAccess)return!1;var b=e.resourceAccess[p||e.clientId];return!!b&&b.roles.indexOf(u)>=0},e.loadUserProfile=function(){var u=x()+"/account",p=new XMLHttpRequest;p.open("GET",u,!0),p.setRequestHeader("Accept","application/json"),p.setRequestHeader("Authorization","bearer "+e.token);var b=Y();return p.onreadystatechange=function(){p.readyState==4&&(p.status==200?(e.profile=JSON.parse(p.responseText),b.setSuccess(e.profile)):b.setError())},p.send(),b.promise},e.loadUserInfo=function(){var u=e.endpoints.userinfo(),p=new XMLHttpRequest;p.open("GET",u,!0),p.setRequestHeader("Accept","application/json"),p.setRequestHeader("Authorization","bearer "+e.token);var b=Y();return p.onreadystatechange=function(){p.readyState==4&&(p.status==200?(e.userInfo=JSON.parse(p.responseText),b.setSuccess(e.userInfo)):b.setError())},p.send(),b.promise},e.isTokenExpired=function(u){if(!e.tokenParsed||!e.refreshToken&&e.flow!="implicit")throw"Not authenticated";if(e.timeSkew==null)return d("[KEYCLOAK] Unable to determine if token is expired as timeskew is not set"),!0;var p=e.tokenParsed.exp-Math.ceil(new Date().getTime()/1e3)+e.timeSkew;if(u){if(isNaN(u))throw"Invalid minValidity";p-=u}return p<0},e.updateToken=function(u){var p=Y();if(!e.refreshToken)return p.setError(),p.promise;u=u||5;var b=function(){var y=!1;if(u==-1?(y=!0,d("[KEYCLOAK] Refreshing token: forced refresh")):(!e.tokenParsed||e.isTokenExpired(u))&&(y=!0,d("[KEYCLOAK] Refreshing token: token expired")),!y)p.setSuccess(!1);else{var E="grant_type=refresh_token&refresh_token="+e.refreshToken,w=e.endpoints.token();if(o.push(p),o.length==1){var _=new XMLHttpRequest;_.open("POST",w,!0),_.setRequestHeader("Content-type","application/x-www-form-urlencoded"),_.withCredentials=!0,E+="&client_id="+encodeURIComponent(e.clientId);var A=new Date().getTime();_.onreadystatechange=function(){if(_.readyState==4)if(_.status==200){d("[KEYCLOAK] Token refreshed"),A=(A+new Date().getTime())/2;var P=JSON.parse(_.responseText);J(P.access_token,P.refresh_token,P.id_token,A),e.onAuthRefreshSuccess&&e.onAuthRefreshSuccess();for(var N=o.pop();N!=null;N=o.pop())N.setSuccess(!0)}else{m("[KEYCLOAK] Failed to refresh token"),_.status==400&&e.clearToken(),e.onAuthRefreshError&&e.onAuthRefreshError();for(var N=o.pop();N!=null;N=o.pop())N.setError(!0)}},_.send(E)}}};if(i.enable){var S=Te();S.then(function(){b()}).catch(function(y){p.setError(y)})}else b();return p.promise},e.clearToken=function(){e.token&&(J(null,null,null),e.onAuthLogout&&e.onAuthLogout(),e.loginRequired&&e.login())};function x(){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 R(){return window.location.origin?window.location.origin:window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:"")}function I(u,p){var b=u.code,S=u.error,y=u.prompt,E=new Date().getTime();if(u.kc_action_status&&e.onActionUpdate&&e.onActionUpdate(u.kc_action_status,u.kc_action),S){if(y!="none")if(u.error_description&&u.error_description==="authentication_expired")e.login(u.loginOptions);else{var w={error:S,error_description:u.error_description};e.onAuthError&&e.onAuthError(w),p&&p.setError(w)}else p&&p.setSuccess();return}else e.flow!="standard"&&(u.access_token||u.id_token)&&N(u.access_token,null,u.id_token,!0);if(e.flow!="implicit"&&b){var _="code="+b+"&grant_type=authorization_code",A=e.endpoints.token(),P=new XMLHttpRequest;P.open("POST",A,!0),P.setRequestHeader("Content-type","application/x-www-form-urlencoded"),_+="&client_id="+encodeURIComponent(e.clientId),_+="&redirect_uri="+u.redirectUri,u.pkceCodeVerifier&&(_+="&code_verifier="+u.pkceCodeVerifier),P.withCredentials=!0,P.onreadystatechange=function(){if(P.readyState==4)if(P.status==200){var H=JSON.parse(P.responseText);N(H.access_token,H.refresh_token,H.id_token,e.flow==="standard"),Me()}else e.onAuthError&&e.onAuthError(),p&&p.setError()},P.send(_)}function N(H,ve,ae,le){E=(E+new Date().getTime())/2,J(H,ve,ae,E),l&&e.idTokenParsed&&e.idTokenParsed.nonce!=u.storedNonce?(d("[KEYCLOAK] Invalid nonce, clearing token"),e.clearToken(),p&&p.setError()):le&&(e.onAuthSuccess&&e.onAuthSuccess(),p&&p.setSuccess())}}function B(u){var p=Y(),b;t?typeof t=="string"&&(b=t):b="keycloak.json";function S(P){P?e.endpoints={authorize:function(){return P.authorization_endpoint},token:function(){return P.token_endpoint},logout:function(){if(!P.end_session_endpoint)throw"Not supported by the OIDC server";return P.end_session_endpoint},checkSessionIframe:function(){if(!P.check_session_iframe)throw"Not supported by the OIDC server";return P.check_session_iframe},register:function(){throw'Redirection to "Register user" page not supported in standard OIDC mode'},userinfo:function(){if(!P.userinfo_endpoint)throw"Not supported by the OIDC server";return P.userinfo_endpoint}}:e.endpoints={authorize:function(){return x()+"/protocol/openid-connect/auth"},token:function(){return x()+"/protocol/openid-connect/token"},logout:function(){return x()+"/protocol/openid-connect/logout"},checkSessionIframe:function(){var N=x()+"/protocol/openid-connect/login-status-iframe.html";return e.iframeVersion&&(N=N+"?version="+e.iframeVersion),N},thirdPartyCookiesIframe:function(){var N=x()+"/protocol/openid-connect/3p-cookies/step1.html";return e.iframeVersion&&(N=N+"?version="+e.iframeVersion),N},register:function(){return x()+"/protocol/openid-connect/registrations"},userinfo:function(){return x()+"/protocol/openid-connect/userinfo"}}}if(b){var y=new XMLHttpRequest;y.open("GET",b,!0),y.setRequestHeader("Accept","application/json"),y.onreadystatechange=function(){if(y.readyState==4)if(y.status==200||F(y)){var P=JSON.parse(y.responseText);e.authServerUrl=P["auth-server-url"],e.realm=P.realm,e.clientId=P.resource,S(null),p.setSuccess()}else p.setError()},y.send()}else{if(!t.clientId)throw"clientId missing";e.clientId=t.clientId;var E=t.oidcProvider;if(E)if(typeof E=="string"){var A;E.charAt(E.length-1)=="/"?A=E+".well-known/openid-configuration":A=E+"/.well-known/openid-configuration";var y=new XMLHttpRequest;y.open("GET",A,!0),y.setRequestHeader("Accept","application/json"),y.onreadystatechange=function(){if(y.readyState==4)if(y.status==200||F(y)){var N=JSON.parse(y.responseText);S(N),p.setSuccess()}else p.setError()},y.send()}else S(E),p.setSuccess();else{if(!t.url){for(var w=document.getElementsByTagName("script"),_=0;_<w.length;_++)if(w[_].src.match(/.*keycloak\.js/)){t.url=w[_].src.substr(0,w[_].src.indexOf("/js/keycloak.js"));break}}if(!t.realm)throw"realm missing";e.authServerUrl=t.url,e.realm=t.realm,S(null),p.setSuccess()}}return p.promise}function F(u){return u.status==0&&u.responseText&&u.responseURL.startsWith("file:")}function J(u,p,b,S){if(e.tokenTimeoutHandle&&(clearTimeout(e.tokenTimeoutHandle),e.tokenTimeoutHandle=null),p?(e.refreshToken=p,e.refreshTokenParsed=So(p)):(delete e.refreshToken,delete e.refreshTokenParsed),b?(e.idToken=b,e.idTokenParsed=So(b)):(delete e.idToken,delete e.idTokenParsed),u){if(e.token=u,e.tokenParsed=So(u),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,S&&(e.timeSkew=Math.floor(S/1e3)-e.tokenParsed.iat),e.timeSkew!=null&&(d("[KEYCLOAK] Estimated time difference between browser and server is "+e.timeSkew+" seconds"),e.onTokenExpired)){var y=(e.tokenParsed.exp-new Date().getTime()/1e3+e.timeSkew)*1e3;d("[KEYCLOAK] Token expires in "+Math.round(y/1e3)+" s"),y<=0?e.onTokenExpired():e.tokenTimeoutHandle=setTimeout(e.onTokenExpired,y)}}else delete e.token,delete e.tokenParsed,delete e.subject,delete e.realmAccess,delete e.resourceAccess,e.authenticated=!1}function ye(){var u="0123456789abcdef",p=C(36,u).split("");p[14]="4",p[19]=u.substr(p[19]&3|8,1),p[8]=p[13]=p[18]=p[23]="-";var b=p.join("");return b}function ee(u){var p=De(u);if(p){var b=r.get(p.state);return b&&(p.valid=!0,p.redirectUri=b.redirectUri,p.storedNonce=b.nonce,p.prompt=b.prompt,p.pkceCodeVerifier=b.pkceCodeVerifier,p.loginOptions=b.loginOptions),p}}function De(u){var p;switch(e.flow){case"standard":p=["code","state","session_state","kc_action_status","kc_action","iss"];break;case"implicit":p=["access_token","token_type","id_token","state","session_state","expires_in","kc_action_status","kc_action","iss"];break;case"hybrid":p=["access_token","token_type","id_token","code","state","session_state","expires_in","kc_action_status","kc_action","iss"];break}p.push("error"),p.push("error_description"),p.push("error_uri");var b=u.indexOf("?"),S=u.indexOf("#"),y,E;if(e.responseMode==="query"&&b!==-1?(y=u.substring(0,b),E=Ie(u.substring(b+1,S!==-1?S:u.length),p),E.paramsString!==""&&(y+="?"+E.paramsString),S!==-1&&(y+=u.substring(S))):e.responseMode==="fragment"&&S!==-1&&(y=u.substring(0,S),E=Ie(u.substring(S+1),p),E.paramsString!==""&&(y+="#"+E.paramsString)),E&&E.oauthParams){if(e.flow==="standard"||e.flow==="hybrid"){if((E.oauthParams.code||E.oauthParams.error)&&E.oauthParams.state)return E.oauthParams.newUrl=y,E.oauthParams}else if(e.flow==="implicit"&&(E.oauthParams.access_token||E.oauthParams.error)&&E.oauthParams.state)return E.oauthParams.newUrl=y,E.oauthParams}}function Ie(u,p){for(var b=u.split("&"),S={paramsString:"",oauthParams:{}},y=0;y<b.length;y++){var E=b[y].indexOf("="),w=b[y].slice(0,E);p.indexOf(w)!==-1?S.oauthParams[w]=b[y].slice(E+1):(S.paramsString!==""&&(S.paramsString+="&"),S.paramsString+=b[y])}return S}function Y(){var u={setSuccess:function(p){u.resolve(p)},setError:function(p){u.reject(p)}};return u.promise=new Promise(function(p,b){u.resolve=p,u.reject=b}),u}function Q(u,p,b){var S=null,y=new Promise(function(E,w){S=setTimeout(function(){w({error:b})},p)});return Promise.race([u,y]).finally(function(){clearTimeout(S)})}function be(){var u=Y();if(!i.enable||i.iframe)return u.setSuccess(),u.promise;var p=document.createElement("iframe");i.iframe=p,p.onload=function(){var y=e.endpoints.authorize();y.charAt(0)==="/"?i.iframeOrigin=R():i.iframeOrigin=y.substring(0,y.indexOf("/",8)),u.setSuccess()};var b=e.endpoints.checkSessionIframe();p.setAttribute("src",b),p.setAttribute("sandbox","allow-storage-access-by-user-activation allow-scripts allow-same-origin"),p.setAttribute("title","keycloak-session-iframe"),p.style.display="none",document.body.appendChild(p);var S=function(y){if(!(y.origin!==i.iframeOrigin||i.iframe.contentWindow!==y.source)&&(y.data=="unchanged"||y.data=="changed"||y.data=="error")){y.data!="unchanged"&&e.clearToken();for(var E=i.callbackList.splice(0,i.callbackList.length),w=E.length-1;w>=0;--w){var _=E[w];y.data=="error"?_.setError():_.setSuccess(y.data=="unchanged")}}};return window.addEventListener("message",S,!1),u.promise}function Me(){i.enable&&e.token&&setTimeout(function(){Te().then(function(u){u&&Me()})},i.interval*1e3)}function Te(){var u=Y();if(i.iframe&&i.iframeOrigin){var p=e.clientId+" "+(e.sessionId?e.sessionId:"");i.callbackList.push(u);var b=i.iframeOrigin;i.callbackList.length==1&&i.iframe.contentWindow.postMessage(p,b)}else u.setSuccess();return u.promise}function it(){var u=Y();if(i.enable||e.silentCheckSsoRedirectUri){var p=document.createElement("iframe");p.setAttribute("src",e.endpoints.thirdPartyCookiesIframe()),p.setAttribute("sandbox","allow-storage-access-by-user-activation allow-scripts allow-same-origin"),p.setAttribute("title","keycloak-3p-check-iframe"),p.style.display="none",document.body.appendChild(p);var b=function(S){p.contentWindow===S.source&&(S.data!=="supported"&&S.data!=="unsupported"||(S.data==="unsupported"&&(m(`[KEYCLOAK] Your browser is blocking access to 3rd-party cookies, this means:
406
406
 
407
407
  - It is not possible to retrieve tokens without redirecting to the Keycloak server (a.k.a. no support for silent authentication).
408
408
  - It is not possible to automatically detect changes to the session status (such as the user logging out in another tab).
409
409
 
410
- For more information see: https://www.keycloak.org/docs/latest/securing_apps/#_modern_browsers`),i.enable=!1,e.silentCheckSsoFallback&&(e.silentCheckSsoRedirectUri=!1)),document.body.removeChild(h),window.removeEventListener("message",S),d.setSuccess()))};window.addEventListener("message",S,!1)}else d.setSuccess();return Le(d.promise,e.messageReceiveTimeout,"Timeout when waiting for 3rd party check iframe message.")}function nt(d){if(!d||d=="default")return{login:function(E){return window.location.assign(e.createLoginUrl(E)),H().promise},logout:async function(E){if(((E==null?void 0:E.logoutMethod)??e.logoutMethod)==="GET"){window.location.replace(e.createLogoutUrl(E));return}const R=e.createLogoutUrl(E),L=await fetch(R,{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(L.redirected){window.location.href=L.url;return}if(L.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)),H().promise},accountManagement:function(){var E=e.createAccountUrl();if(typeof E<"u")window.location.href=E;else throw"Not supported by the OIDC server";return H().promise},redirectUri:function(E,A){return E&&E.redirectUri?E.redirectUri:e.redirectUri?e.redirectUri:location.href}};if(d=="cordova"){i.enable=!1;var h=function(E,A,R){return window.cordova&&window.cordova.InAppBrowser?window.cordova.InAppBrowser.open(E,A,R):window.open(E,A,R)},S=function(E){return E&&E.cordovaOptions?Object.keys(E.cordovaOptions).reduce(function(A,R){return A[R]=E.cordovaOptions[R],A},{}):{}},P=function(E){return Object.keys(E).reduce(function(A,R){return A.push(R+"="+E[R]),A},[]).join(",")},k=function(E){var A=S(E);return A.location="no",E&&E.prompt=="none"&&(A.hidden="yes"),P(A)},x=function(){return e.redirectUri||"http://localhost"};return{login:function(E){var A=H(),R=k(E),L=e.createLoginUrl(E),D=h(L,"_blank",R),W=!1,ke=!1,ye=function(){ke=!0,D.close()};return D.addEventListener("loadstart",function(le){if(le.url.indexOf(x())==0){var Xe=Z(le.url);C(Xe,A),ye(),W=!0}}),D.addEventListener("loaderror",function(le){if(!W)if(le.url.indexOf(x())==0){var Xe=Z(le.url);C(Xe,A),ye(),W=!0}else A.setError(),ye()}),D.addEventListener("exit",function(le){ke||A.setError({reason:"closed_by_user"})}),A.promise},logout:function(E){var A=H(),R=e.createLogoutUrl(E),L=h(R,"_blank","location=no,hidden=yes,clearcache=yes"),D;return L.addEventListener("loadstart",function(W){W.url.indexOf(x())==0&&L.close()}),L.addEventListener("loaderror",function(W){W.url.indexOf(x())==0||(D=!0),L.close()}),L.addEventListener("exit",function(W){D?A.setError():(e.clearToken(),A.setSuccess())}),A.promise},register:function(E){var A=H(),R=e.createRegisterUrl(),L=k(E),D=h(R,"_blank",L);return D.addEventListener("loadstart",function(W){if(W.url.indexOf(x())==0){D.close();var ke=Z(W.url);C(ke,A)}}),A.promise},accountManagement:function(){var E=e.createAccountUrl();if(typeof E<"u"){var A=h(E,"_blank","location=no");A.addEventListener("loadstart",function(R){R.url.indexOf(x())==0&&A.close()})}else throw"Not supported by the OIDC server"},redirectUri:function(E){return x()}}}if(d=="cordova-native")return i.enable=!1,{login:function(E){var A=H(),R=e.createLoginUrl(E);return universalLinks.subscribe("keycloak",function(L){universalLinks.unsubscribe("keycloak"),window.cordova.plugins.browsertab.close();var D=Z(L.url);C(D,A)}),window.cordova.plugins.browsertab.openUrl(R),A.promise},logout:function(E){var A=H(),R=e.createLogoutUrl(E);return universalLinks.subscribe("keycloak",function(L){universalLinks.unsubscribe("keycloak"),window.cordova.plugins.browsertab.close(),e.clearToken(),A.setSuccess()}),window.cordova.plugins.browsertab.openUrl(R),A.promise},register:function(E){var A=H(),R=e.createRegisterUrl(E);return universalLinks.subscribe("keycloak",function(L){universalLinks.unsubscribe("keycloak"),window.cordova.plugins.browsertab.close();var D=Z(L.url);C(D,A)}),window.cordova.plugins.browsertab.openUrl(R),A.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: "+d}var qe=function(){if(!(this instanceof qe))return new qe;localStorage.setItem("kc-test","test"),localStorage.removeItem("kc-test");var d=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 x=localStorage.getItem(k);if(x)try{var E=JSON.parse(x).expires;(!E||E<S)&&localStorage.removeItem(k)}catch{localStorage.removeItem(k)}}}}d.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}},d.add=function(S){h();var P="kc-callback-"+S.state;S.expires=new Date().getTime()+60*60*1e3,localStorage.setItem(P,JSON.stringify(S))}},Je=function(){if(!(this instanceof Je))return new Je;var d=this;d.get=function(k){if(k){var x=S("kc-callback-"+k);if(P("kc-callback-"+k,"",h(-100)),x)return JSON.parse(x)}},d.add=function(k){P("kc-callback-"+k.state,JSON.stringify(k),h(60))},d.removeItem=function(k){P(k,"",h(-100))};var h=function(k){var x=new Date;return x.setTime(x.getTime()+k*60*1e3),x},S=function(k){for(var x=k+"=",E=document.cookie.split(";"),A=0;A<E.length;A++){for(var R=E[A];R.charAt(0)==" ";)R=R.substring(1);if(R.indexOf(x)==0)return R.substring(x.length,R.length)}return""},P=function(k,x,E){var A=k+"="+x+"; expires="+E.toUTCString()+"; ";document.cookie=A}};function ne(){try{return new qe}catch{}return new Je}function Be(d){return function(){e.enableLogging&&d.apply(console,Array.prototype.slice.call(arguments))}}}function ym(t){const e=String.fromCodePoint(...t);return btoa(e)}class bm{constructor(e){Ne(this,"oidc");Ne(this,"isAuthenticated",!1);this.oidc=new is(e)}async InitAsync(e={}){return await this.oidc.init(e).then(async n=>(this.isAuthenticated=n,n)).catch(n=>(console.info("Ocorreu um erro na inicialização. Verifique o console para mais detalhes."),console.error(n),!1))}}let ss;function vm(t){ss=new bm(t)}const as=()=>ss;class zr{constructor(e=null){Ne(this,"errors",[]);Ne(this,"_value",null);Ne(this,"_httpStatusCode");this._value=e,this._httpStatusCode=200}get value(){return this._value}set value(e){this._value=e}get hasSuccess(){return!this.hasError}get hasError(){return this.errors.length>0}get httpStatusCode(){return this._httpStatusCode}set httpStatusCode(e){this._httpStatusCode=e}WithError(e){this.errors.push(e),this._httpStatusCode===200&&(this._httpStatusCode=400)}WithErrors(e){e.forEach(n=>this.WithError(n))}}function ls(t,e){return function(){return t.apply(e,arguments)}}const{toString:wm}=Object.prototype,{getPrototypeOf:Kr}=Object,Fn=(t=>e=>{const n=wm.call(e);return t[n]||(t[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Fe=t=>(t=t.toLowerCase(),e=>Fn(e)===t),zn=t=>e=>typeof e===t,{isArray:$t}=Array,pn=zn("undefined");function Sm(t){return t!==null&&!pn(t)&&t.constructor!==null&&!pn(t.constructor)&&xe(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const cs=Fe("ArrayBuffer");function _m(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&cs(t.buffer),e}const km=zn("string"),xe=zn("function"),us=zn("number"),Kn=t=>t!==null&&typeof t=="object",Cm=t=>t===!0||t===!1,Wn=t=>{if(Fn(t)!=="object")return!1;const e=Kr(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},Em=Fe("Date"),Tm=Fe("File"),Am=Fe("Blob"),Pm=Fe("FileList"),Im=t=>Kn(t)&&xe(t.pipe),Om=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||xe(t.append)&&((e=Fn(t))==="formdata"||e==="object"&&xe(t.toString)&&t.toString()==="[object FormData]"))},xm=Fe("URLSearchParams"),[Lm,Rm,$m,Bm]=["ReadableStream","Request","Response","Headers"].map(Fe),Nm=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function hn(t,e,{allOwnKeys:n=!1}={}){if(t===null||typeof t>"u")return;let r,o;if(typeof t!="object"&&(t=[t]),$t(t))for(r=0,o=t.length;r<o;r++)e.call(null,t[r],r,t);else{const i=n?Object.getOwnPropertyNames(t):Object.keys(t),s=i.length;let a;for(r=0;r<s;r++)a=i[r],e.call(null,t[a],a,t)}}function ds(t,e){e=e.toLowerCase();const n=Object.keys(t);let r=n.length,o;for(;r-- >0;)if(o=n[r],e===o.toLowerCase())return o;return null}const wt=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,fs=t=>!pn(t)&&t!==wt;function Wr(){const{caseless:t}=fs(this)&&this||{},e={},n=(r,o)=>{const i=t&&ds(e,o)||o;Wn(e[i])&&Wn(r)?e[i]=Wr(e[i],r):Wn(r)?e[i]=Wr({},r):$t(r)?e[i]=r.slice():e[i]=r};for(let r=0,o=arguments.length;r<o;r++)arguments[r]&&hn(arguments[r],n);return e}const Dm=(t,e,n,{allOwnKeys:r}={})=>(hn(e,(o,i)=>{n&&xe(o)?t[i]=ls(o,n):t[i]=o},{allOwnKeys:r}),t),Mm=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),Um=(t,e,n,r)=>{t.prototype=Object.create(e.prototype,r),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),n&&Object.assign(t.prototype,n)},Hm=(t,e,n,r)=>{let o,i,s;const a={};if(e=e||{},t==null)return e;do{for(o=Object.getOwnPropertyNames(t),i=o.length;i-- >0;)s=o[i],(!r||r(s,t,e))&&!a[s]&&(e[s]=t[s],a[s]=!0);t=n!==!1&&Kr(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},jm=(t,e,n)=>{t=String(t),(n===void 0||n>t.length)&&(n=t.length),n-=e.length;const r=t.indexOf(e,n);return r!==-1&&r===n},Vm=t=>{if(!t)return null;if($t(t))return t;let e=t.length;if(!us(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},Fm=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&Kr(Uint8Array)),zm=(t,e)=>{const r=(t&&t[Symbol.iterator]).call(t);let o;for(;(o=r.next())&&!o.done;){const i=o.value;e.call(t,i[0],i[1])}},Km=(t,e)=>{let n;const r=[];for(;(n=t.exec(e))!==null;)r.push(n);return r},Wm=Fe("HTMLFormElement"),qm=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),ms=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),Gm=Fe("RegExp"),ps=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),r={};hn(n,(o,i)=>{let s;(s=e(o,i,t))!==!1&&(r[i]=s||o)}),Object.defineProperties(t,r)},Ym=t=>{ps(t,(e,n)=>{if(xe(t)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=t[n];if(xe(r)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Jm=(t,e)=>{const n={},r=o=>{o.forEach(i=>{n[i]=!0})};return $t(t)?r(t):r(String(t).split(e)),n},Xm=()=>{},Zm=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e,qr="abcdefghijklmnopqrstuvwxyz",hs="0123456789",gs={DIGIT:hs,ALPHA:qr,ALPHA_DIGIT:qr+qr.toUpperCase()+hs},Qm=(t=16,e=gs.ALPHA_DIGIT)=>{let n="";const{length:r}=e;for(;t--;)n+=e[Math.random()*r|0];return n};function ep(t){return!!(t&&xe(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}const tp=t=>{const e=new Array(10),n=(r,o)=>{if(Kn(r)){if(e.indexOf(r)>=0)return;if(!("toJSON"in r)){e[o]=r;const i=$t(r)?[]:{};return hn(r,(s,a)=>{const c=n(s,o+1);!pn(c)&&(i[a]=c)}),e[o]=void 0,i}}return r};return n(t,0)},np=Fe("AsyncFunction"),rp=t=>t&&(Kn(t)||xe(t))&&xe(t.then)&&xe(t.catch),ys=((t,e)=>t?setImmediate:e?((n,r)=>(wt.addEventListener("message",({source:o,data:i})=>{o===wt&&i===n&&r.length&&r.shift()()},!1),o=>{r.push(o),wt.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",xe(wt.postMessage)),op=typeof queueMicrotask<"u"?queueMicrotask.bind(wt):typeof process<"u"&&process.nextTick||ys,g={isArray:$t,isArrayBuffer:cs,isBuffer:Sm,isFormData:Om,isArrayBufferView:_m,isString:km,isNumber:us,isBoolean:Cm,isObject:Kn,isPlainObject:Wn,isReadableStream:Lm,isRequest:Rm,isResponse:$m,isHeaders:Bm,isUndefined:pn,isDate:Em,isFile:Tm,isBlob:Am,isRegExp:Gm,isFunction:xe,isStream:Im,isURLSearchParams:xm,isTypedArray:Fm,isFileList:Pm,forEach:hn,merge:Wr,extend:Dm,trim:Nm,stripBOM:Mm,inherits:Um,toFlatObject:Hm,kindOf:Fn,kindOfTest:Fe,endsWith:jm,toArray:Vm,forEachEntry:zm,matchAll:Km,isHTMLForm:Wm,hasOwnProperty:ms,hasOwnProp:ms,reduceDescriptors:ps,freezeMethods:Ym,toObjectSet:Jm,toCamelCase:qm,noop:Xm,toFiniteNumber:Zm,findKey:ds,global:wt,isContextDefined:fs,ALPHABET:gs,generateString:Qm,isSpecCompliantForm:ep,toJSONObject:tp,isAsyncFn:np,isThenable:rp,setImmediate:ys,asap:op};function M(t,e,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",e&&(this.code=e),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}g.inherits(M,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:g.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const bs=M.prototype,vs={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{vs[t]={value:t}}),Object.defineProperties(M,vs),Object.defineProperty(bs,"isAxiosError",{value:!0}),M.from=(t,e,n,r,o,i)=>{const s=Object.create(bs);return g.toFlatObject(t,s,function(c){return c!==Error.prototype},a=>a!=="isAxiosError"),M.call(s,t.message,e,n,r,o),s.cause=t,s.name=t.name,i&&Object.assign(s,i),s};const ip=null;function Gr(t){return g.isPlainObject(t)||g.isArray(t)}function ws(t){return g.endsWith(t,"[]")?t.slice(0,-2):t}function Ss(t,e,n){return t?t.concat(e).map(function(o,i){return o=ws(o),!n&&i?"["+o+"]":o}).join(n?".":""):e}function sp(t){return g.isArray(t)&&!t.some(Gr)}const ap=g.toFlatObject(g,{},null,function(e){return/^is[A-Z]/.test(e)});function qn(t,e,n){if(!g.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,n=g.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(O,w){return!g.isUndefined(w[O])});const r=n.metaTokens,o=n.visitor||f,i=n.dots,s=n.indexes,c=(n.Blob||typeof Blob<"u"&&Blob)&&g.isSpecCompliantForm(e);if(!g.isFunction(o))throw new TypeError("visitor must be a function");function u(b){if(b===null)return"";if(g.isDate(b))return b.toISOString();if(!c&&g.isBlob(b))throw new M("Blob is not supported. Use a Buffer instead.");return g.isArrayBuffer(b)||g.isTypedArray(b)?c&&typeof Blob=="function"?new Blob([b]):Buffer.from(b):b}function f(b,O,w){let N=b;if(b&&!w&&typeof b=="object"){if(g.endsWith(O,"{}"))O=r?O:O.slice(0,-2),b=JSON.stringify(b);else if(g.isArray(b)&&sp(b)||(g.isFileList(b)||g.endsWith(O,"[]"))&&(N=g.toArray(b)))return O=ws(O),N.forEach(function(T,z){!(g.isUndefined(T)||T===null)&&e.append(s===!0?Ss([O],z,i):s===null?O:O+"[]",u(T))}),!1}return Gr(b)?!0:(e.append(Ss(w,O,i),u(b)),!1)}const m=[],v=Object.assign(ap,{defaultVisitor:f,convertValue:u,isVisitable:Gr});function _(b,O){if(!g.isUndefined(b)){if(m.indexOf(b)!==-1)throw Error("Circular reference detected in "+O.join("."));m.push(b),g.forEach(b,function(N,C){(!(g.isUndefined(N)||N===null)&&o.call(e,N,g.isString(C)?C.trim():C,O,v))===!0&&_(N,O?O.concat(C):[C])}),m.pop()}}if(!g.isObject(t))throw new TypeError("data must be an object");return _(t),e}function _s(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(r){return e[r]})}function Yr(t,e){this._pairs=[],t&&qn(t,this,e)}const ks=Yr.prototype;ks.append=function(e,n){this._pairs.push([e,n])},ks.toString=function(e){const n=e?function(r){return e.call(this,r,_s)}:_s;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function lp(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Cs(t,e,n){if(!e)return t;const r=n&&n.encode||lp,o=n&&n.serialize;let i;if(o?i=o(e,n):i=g.isURLSearchParams(e)?e.toString():new Yr(e,n).toString(r),i){const s=t.indexOf("#");s!==-1&&(t=t.slice(0,s)),t+=(t.indexOf("?")===-1?"?":"&")+i}return t}class Es{constructor(){this.handlers=[]}use(e,n,r){return this.handlers.push({fulfilled:e,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){g.forEach(this.handlers,function(r){r!==null&&e(r)})}}const Ts={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},cp={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:Yr,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},Jr=typeof window<"u"&&typeof document<"u",up=(t=>Jr&&["ReactNative","NativeScript","NS"].indexOf(t)<0)(typeof navigator<"u"&&navigator.product),dp=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",fp=Jr&&window.location.href||"http://localhost",ze={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Jr,hasStandardBrowserEnv:up,hasStandardBrowserWebWorkerEnv:dp,origin:fp},Symbol.toStringTag,{value:"Module"})),...cp};function mp(t,e){return qn(t,new ze.classes.URLSearchParams,Object.assign({visitor:function(n,r,o,i){return ze.isNode&&g.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},e))}function pp(t){return g.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function hp(t){const e={},n=Object.keys(t);let r;const o=n.length;let i;for(r=0;r<o;r++)i=n[r],e[i]=t[i];return e}function As(t){function e(n,r,o,i){let s=n[i++];if(s==="__proto__")return!0;const a=Number.isFinite(+s),c=i>=n.length;return s=!s&&g.isArray(o)?o.length:s,c?(g.hasOwnProp(o,s)?o[s]=[o[s],r]:o[s]=r,!a):((!o[s]||!g.isObject(o[s]))&&(o[s]=[]),e(n,r,o[s],i)&&g.isArray(o[s])&&(o[s]=hp(o[s])),!a)}if(g.isFormData(t)&&g.isFunction(t.entries)){const n={};return g.forEachEntry(t,(r,o)=>{e(pp(r),o,n,0)}),n}return null}function gp(t,e,n){if(g.isString(t))try{return(e||JSON.parse)(t),g.trim(t)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(t)}const gn={transitional:Ts,adapter:["xhr","http","fetch"],transformRequest:[function(e,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,i=g.isObject(e);if(i&&g.isHTMLForm(e)&&(e=new FormData(e)),g.isFormData(e))return o?JSON.stringify(As(e)):e;if(g.isArrayBuffer(e)||g.isBuffer(e)||g.isStream(e)||g.isFile(e)||g.isBlob(e)||g.isReadableStream(e))return e;if(g.isArrayBufferView(e))return e.buffer;if(g.isURLSearchParams(e))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let a;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return mp(e,this.formSerializer).toString();if((a=g.isFileList(e))||r.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return qn(a?{"files[]":e}:e,c&&new c,this.formSerializer)}}return i||o?(n.setContentType("application/json",!1),gp(e)):e}],transformResponse:[function(e){const n=this.transitional||gn.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(g.isResponse(e)||g.isReadableStream(e))return e;if(e&&g.isString(e)&&(r&&!this.responseType||o)){const s=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(e)}catch(a){if(s)throw a.name==="SyntaxError"?M.from(a,M.ERR_BAD_RESPONSE,this,null,this.response):a}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ze.classes.FormData,Blob:ze.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};g.forEach(["delete","get","head","post","put","patch"],t=>{gn.headers[t]={}});const yp=g.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),bp=t=>{const e={};let n,r,o;return t&&t.split(`
411
- `).forEach(function(s){o=s.indexOf(":"),n=s.substring(0,o).trim().toLowerCase(),r=s.substring(o+1).trim(),!(!n||e[n]&&yp[n])&&(n==="set-cookie"?e[n]?e[n].push(r):e[n]=[r]:e[n]=e[n]?e[n]+", "+r:r)}),e},Ps=Symbol("internals");function yn(t){return t&&String(t).trim().toLowerCase()}function Gn(t){return t===!1||t==null?t:g.isArray(t)?t.map(Gn):String(t)}function vp(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 wp=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function Xr(t,e,n,r,o){if(g.isFunction(r))return r.call(this,e,n);if(o&&(e=n),!!g.isString(e)){if(g.isString(r))return e.indexOf(r)!==-1;if(g.isRegExp(r))return r.test(e)}}function Sp(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,n,r)=>n.toUpperCase()+r)}function _p(t,e){const n=g.toCamelCase(" "+e);["get","set","has"].forEach(r=>{Object.defineProperty(t,r+n,{value:function(o,i,s){return this[r].call(this,e,o,i,s)},configurable:!0})})}class Se{constructor(e){e&&this.set(e)}set(e,n,r){const o=this;function i(a,c,u){const f=yn(c);if(!f)throw new Error("header name must be a non-empty string");const m=g.findKey(o,f);(!m||o[m]===void 0||u===!0||u===void 0&&o[m]!==!1)&&(o[m||c]=Gn(a))}const s=(a,c)=>g.forEach(a,(u,f)=>i(u,f,c));if(g.isPlainObject(e)||e instanceof this.constructor)s(e,n);else if(g.isString(e)&&(e=e.trim())&&!wp(e))s(bp(e),n);else if(g.isHeaders(e))for(const[a,c]of e.entries())i(c,a,r);else e!=null&&i(n,e,r);return this}get(e,n){if(e=yn(e),e){const r=g.findKey(this,e);if(r){const o=this[r];if(!n)return o;if(n===!0)return vp(o);if(g.isFunction(n))return n.call(this,o,r);if(g.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,n){if(e=yn(e),e){const r=g.findKey(this,e);return!!(r&&this[r]!==void 0&&(!n||Xr(this,this[r],r,n)))}return!1}delete(e,n){const r=this;let o=!1;function i(s){if(s=yn(s),s){const a=g.findKey(r,s);a&&(!n||Xr(r,r[a],a,n))&&(delete r[a],o=!0)}}return g.isArray(e)?e.forEach(i):i(e),o}clear(e){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const i=n[r];(!e||Xr(this,this[i],i,e,!0))&&(delete this[i],o=!0)}return o}normalize(e){const n=this,r={};return g.forEach(this,(o,i)=>{const s=g.findKey(r,i);if(s){n[s]=Gn(o),delete n[i];return}const a=e?Sp(i):String(i).trim();a!==i&&delete n[i],n[a]=Gn(o),r[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const n=Object.create(null);return g.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=e&&g.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
- `)}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[Ps]=this[Ps]={accessors:{}}).accessors,o=this.prototype;function i(s){const a=yn(s);r[a]||(_p(o,s),r[a]=!0)}return g.isArray(e)?e.forEach(i):i(e),this}}Se.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),g.reduceDescriptors(Se.prototype,({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(r){this[n]=r}}}),g.freezeMethods(Se);function Zr(t,e){const n=this||gn,r=e||n,o=Se.from(r.headers);let i=r.data;return g.forEach(t,function(a){i=a.call(n,i,o.normalize(),e?e.status:void 0)}),o.normalize(),i}function Is(t){return!!(t&&t.__CANCEL__)}function Bt(t,e,n){M.call(this,t??"canceled",M.ERR_CANCELED,e,n),this.name="CanceledError"}g.inherits(Bt,M,{__CANCEL__:!0});function Os(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 kp(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function Cp(t,e){t=t||10;const n=new Array(t),r=new Array(t);let o=0,i=0,s;return e=e!==void 0?e:1e3,function(c){const u=Date.now(),f=r[i];s||(s=u),n[o]=c,r[o]=u;let m=i,v=0;for(;m!==o;)v+=n[m++],m=m%t;if(o=(o+1)%t,o===i&&(i=(i+1)%t),u-s<e)return;const _=f&&u-f;return _?Math.round(v*1e3/_):void 0}}function Ep(t,e){let n=0,r=1e3/e,o,i;const s=(u,f=Date.now())=>{n=f,o=null,i&&(clearTimeout(i),i=null),t.apply(null,u)};return[(...u)=>{const f=Date.now(),m=f-n;m>=r?s(u,f):(o=u,i||(i=setTimeout(()=>{i=null,s(o)},r-m)))},()=>o&&s(o)]}const Yn=(t,e,n=3)=>{let r=0;const o=Cp(50,250);return Ep(i=>{const s=i.loaded,a=i.lengthComputable?i.total:void 0,c=s-r,u=o(c),f=s<=a;r=s;const m={loaded:s,total:a,progress:a?s/a:void 0,bytes:c,rate:u||void 0,estimated:u&&a&&f?(a-s)/u:void 0,event:i,lengthComputable:a!=null,[e?"download":"upload"]:!0};t(m)},n)},xs=(t,e)=>{const n=t!=null;return[r=>e[0]({lengthComputable:n,total:t,loaded:r}),e[1]]},Ls=t=>(...e)=>g.asap(()=>t(...e)),Tp=ze.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function o(i){let s=i;return e&&(n.setAttribute("href",s),s=n.href),n.setAttribute("href",s),{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(s){const a=g.isString(s)?o(s):s;return a.protocol===r.protocol&&a.host===r.host}}():function(){return function(){return!0}}(),Ap=ze.hasStandardBrowserEnv?{write(t,e,n,r,o,i){const s=[t+"="+encodeURIComponent(e)];g.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),g.isString(r)&&s.push("path="+r),g.isString(o)&&s.push("domain="+o),i===!0&&s.push("secure"),document.cookie=s.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 Pp(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function Ip(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function Rs(t,e){return t&&!Pp(e)?Ip(t,e):e}const $s=t=>t instanceof Se?{...t}:t;function St(t,e){e=e||{};const n={};function r(u,f,m){return g.isPlainObject(u)&&g.isPlainObject(f)?g.merge.call({caseless:m},u,f):g.isPlainObject(f)?g.merge({},f):g.isArray(f)?f.slice():f}function o(u,f,m){if(g.isUndefined(f)){if(!g.isUndefined(u))return r(void 0,u,m)}else return r(u,f,m)}function i(u,f){if(!g.isUndefined(f))return r(void 0,f)}function s(u,f){if(g.isUndefined(f)){if(!g.isUndefined(u))return r(void 0,u)}else return r(void 0,f)}function a(u,f,m){if(m in e)return r(u,f);if(m in t)return r(void 0,u)}const c={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(u,f)=>o($s(u),$s(f),!0)};return g.forEach(Object.keys(Object.assign({},t,e)),function(f){const m=c[f]||o,v=m(t[f],e[f],f);g.isUndefined(v)&&m!==a||(n[f]=v)}),n}const Bs=t=>{const e=St({},t);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:i,headers:s,auth:a}=e;e.headers=s=Se.from(s),e.url=Cs(Rs(e.baseURL,e.url),t.params,t.paramsSerializer),a&&s.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):"")));let c;if(g.isFormData(n)){if(ze.hasStandardBrowserEnv||ze.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if((c=s.getContentType())!==!1){const[u,...f]=c?c.split(";").map(m=>m.trim()).filter(Boolean):[];s.setContentType([u||"multipart/form-data",...f].join("; "))}}if(ze.hasStandardBrowserEnv&&(r&&g.isFunction(r)&&(r=r(e)),r||r!==!1&&Tp(e.url))){const u=o&&i&&Ap.read(i);u&&s.set(o,u)}return e},Op=typeof XMLHttpRequest<"u"&&function(t){return new Promise(function(n,r){const o=Bs(t);let i=o.data;const s=Se.from(o.headers).normalize();let{responseType:a,onUploadProgress:c,onDownloadProgress:u}=o,f,m,v,_,b;function O(){_&&_(),b&&b(),o.cancelToken&&o.cancelToken.unsubscribe(f),o.signal&&o.signal.removeEventListener("abort",f)}let w=new XMLHttpRequest;w.open(o.method.toUpperCase(),o.url,!0),w.timeout=o.timeout;function N(){if(!w)return;const T=Se.from("getAllResponseHeaders"in w&&w.getAllResponseHeaders()),Q={data:!a||a==="text"||a==="json"?w.responseText:w.response,status:w.status,statusText:w.statusText,headers:T,config:t,request:w};Os(function(Z){n(Z),O()},function(Z){r(Z),O()},Q),w=null}"onloadend"in w?w.onloadend=N:w.onreadystatechange=function(){!w||w.readyState!==4||w.status===0&&!(w.responseURL&&w.responseURL.indexOf("file:")===0)||setTimeout(N)},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 z=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const Q=o.transitional||Ts;o.timeoutErrorMessage&&(z=o.timeoutErrorMessage),r(new M(z,Q.clarifyTimeoutError?M.ETIMEDOUT:M.ECONNABORTED,t,w)),w=null},i===void 0&&s.setContentType(null),"setRequestHeader"in w&&g.forEach(s.toJSON(),function(z,Q){w.setRequestHeader(Q,z)}),g.isUndefined(o.withCredentials)||(w.withCredentials=!!o.withCredentials),a&&a!=="json"&&(w.responseType=o.responseType),u&&([v,b]=Yn(u,!0),w.addEventListener("progress",v)),c&&w.upload&&([m,_]=Yn(c),w.upload.addEventListener("progress",m),w.upload.addEventListener("loadend",_)),(o.cancelToken||o.signal)&&(f=T=>{w&&(r(!T||T.type?new Bt(null,t,w):T),w.abort(),w=null)},o.cancelToken&&o.cancelToken.subscribe(f),o.signal&&(o.signal.aborted?f():o.signal.addEventListener("abort",f)));const C=kp(o.url);if(C&&ze.protocols.indexOf(C)===-1){r(new M("Unsupported protocol "+C+":",M.ERR_BAD_REQUEST,t));return}w.send(i||null)})},xp=(t,e)=>{let n=new AbortController,r;const o=function(c){if(!r){r=!0,s();const u=c instanceof Error?c:this.reason;n.abort(u instanceof M?u:new Bt(u instanceof Error?u.message:u))}};let i=e&&setTimeout(()=>{o(new M(`timeout ${e} of ms exceeded`,M.ETIMEDOUT))},e);const s=()=>{t&&(i&&clearTimeout(i),i=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=s,[a,()=>{i&&clearTimeout(i),i=null}]},Lp=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},Rp=async function*(t,e,n){for await(const r of t)yield*Lp(ArrayBuffer.isView(r)?r:await n(String(r)),e)},Ns=(t,e,n,r,o)=>{const i=Rp(t,e,o);let s=0,a,c=u=>{a||(a=!0,r&&r(u))};return new ReadableStream({async pull(u){try{const{done:f,value:m}=await i.next();if(f){c(),u.close();return}let v=m.byteLength;if(n){let _=s+=v;n(_)}u.enqueue(new Uint8Array(m))}catch(f){throw c(f),f}},cancel(u){return c(u),i.return()}},{highWaterMark:2})},Jn=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Ds=Jn&&typeof ReadableStream=="function",Qr=Jn&&(typeof TextEncoder=="function"?(t=>e=>t.encode(e))(new TextEncoder):async t=>new Uint8Array(await new Response(t).arrayBuffer())),Ms=(t,...e)=>{try{return!!t(...e)}catch{return!1}},$p=Ds&&Ms(()=>{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}),Us=64*1024,eo=Ds&&Ms(()=>g.isReadableStream(new Response("").body)),Xn={stream:eo&&(t=>t.body)};Jn&&(t=>{["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!Xn[e]&&(Xn[e]=g.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 Bp=async t=>{if(t==null)return 0;if(g.isBlob(t))return t.size;if(g.isSpecCompliantForm(t))return(await new Request(t).arrayBuffer()).byteLength;if(g.isArrayBufferView(t)||g.isArrayBuffer(t))return t.byteLength;if(g.isURLSearchParams(t)&&(t=t+""),g.isString(t))return(await Qr(t)).byteLength},Np=async(t,e)=>{const n=g.toFiniteNumber(t.getContentLength());return n??Bp(e)},to={http:ip,xhr:Op,fetch:Jn&&(async t=>{let{url:e,method:n,data:r,signal:o,cancelToken:i,timeout:s,onDownloadProgress:a,onUploadProgress:c,responseType:u,headers:f,withCredentials:m="same-origin",fetchOptions:v}=Bs(t);u=u?(u+"").toLowerCase():"text";let[_,b]=o||i||s?xp([o,i],s):[],O,w;const N=()=>{!O&&setTimeout(()=>{_&&_.unsubscribe()}),O=!0};let C;try{if(c&&$p&&n!=="get"&&n!=="head"&&(C=await Np(f,r))!==0){let re=new Request(e,{method:"POST",body:r,duplex:"half"}),Z;if(g.isFormData(r)&&(Z=re.headers.get("content-type"))&&f.setContentType(Z),re.body){const[ge,ie]=xs(C,Yn(Ls(c)));r=Ns(re.body,Us,ge,ie,Qr)}}g.isString(m)||(m=m?"include":"omit"),w=new Request(e,{...v,signal:_,method:n.toUpperCase(),headers:f.normalize().toJSON(),body:r,duplex:"half",credentials:m});let T=await fetch(w);const z=eo&&(u==="stream"||u==="response");if(eo&&(a||z)){const re={};["status","statusText","headers"].forEach(H=>{re[H]=T[H]});const Z=g.toFiniteNumber(T.headers.get("content-length")),[ge,ie]=a&&xs(Z,Yn(Ls(a),!0))||[];T=new Response(Ns(T.body,Us,ge,()=>{ie&&ie(),z&&N()},Qr),re)}u=u||"text";let Q=await Xn[g.findKey(Xn,u)||"text"](T,t);return!z&&N(),b&&b(),await new Promise((re,Z)=>{Os(re,Z,{data:Q,headers:Se.from(T.headers),status:T.status,statusText:T.statusText,config:t,request:w})})}catch(T){throw N(),T&&T.name==="TypeError"&&/fetch/i.test(T.message)?Object.assign(new M("Network Error",M.ERR_NETWORK,t,w),{cause:T.cause||T}):M.from(T,T&&T.code,t,w)}})};g.forEach(to,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const Hs=t=>`- ${t}`,Dp=t=>g.isFunction(t)||t===null||t===!1,js={getAdapter:t=>{t=g.isArray(t)?t:[t];const{length:e}=t;let n,r;const o={};for(let i=0;i<e;i++){n=t[i];let s;if(r=n,!Dp(n)&&(r=to[(s=String(n)).toLowerCase()],r===void 0))throw new M(`Unknown adapter '${s}'`);if(r)break;o[s||"#"+i]=r}if(!r){const i=Object.entries(o).map(([a,c])=>`adapter ${a} `+(c===!1?"is not supported by the environment":"is not available in the build"));let s=e?i.length>1?`since :
413
- `+i.map(Hs).join(`
414
- `):" "+Hs(i[0]):"as no adapter specified";throw new M("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return r},adapters:to};function no(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new Bt(null,t)}function Vs(t){return no(t),t.headers=Se.from(t.headers),t.data=Zr.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),js.getAdapter(t.adapter||gn.adapter)(t).then(function(r){return no(t),r.data=Zr.call(t,t.transformResponse,r),r.headers=Se.from(r.headers),r},function(r){return Is(r)||(no(t),r&&r.response&&(r.response.data=Zr.call(t,t.transformResponse,r.response),r.response.headers=Se.from(r.response.headers))),Promise.reject(r)})}const Fs="1.7.4",ro={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{ro[t]=function(r){return typeof r===t||"a"+(e<1?"n ":" ")+t}});const zs={};ro.transitional=function(e,n,r){function o(i,s){return"[Axios v"+Fs+"] Transitional option '"+i+"'"+s+(r?". "+r:"")}return(i,s,a)=>{if(e===!1)throw new M(o(s," has been removed"+(n?" in "+n:"")),M.ERR_DEPRECATED);return n&&!zs[s]&&(zs[s]=!0,console.warn(o(s," has been deprecated since v"+n+" and will be removed in the near future"))),e?e(i,s,a):!0}};function Mp(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 i=r[o],s=e[i];if(s){const a=t[i],c=a===void 0||s(a,i,t);if(c!==!0)throw new M("option "+i+" must be "+c,M.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new M("Unknown option "+i,M.ERR_BAD_OPTION)}}const oo={assertOptions:Mp,validators:ro},dt=oo.validators;class _t{constructor(e){this.defaults=e,this.interceptors={request:new Es,response:new Es}}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 i=o.stack?o.stack.replace(/^.+\n/,""):"";try{r.stack?i&&!String(r.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(r.stack+=`
415
- `+i):r.stack=i}catch{}}throw r}}_request(e,n){typeof e=="string"?(n=n||{},n.url=e):n=e||{},n=St(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:i}=n;r!==void 0&&oo.assertOptions(r,{silentJSONParsing:dt.transitional(dt.boolean),forcedJSONParsing:dt.transitional(dt.boolean),clarifyTimeoutError:dt.transitional(dt.boolean)},!1),o!=null&&(g.isFunction(o)?n.paramsSerializer={serialize:o}:oo.assertOptions(o,{encode:dt.function,serialize:dt.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let s=i&&g.merge(i.common,i[n.method]);i&&g.forEach(["delete","get","head","post","put","patch","common"],b=>{delete i[b]}),n.headers=Se.concat(s,i);const a=[];let c=!0;this.interceptors.request.forEach(function(O){typeof O.runWhen=="function"&&O.runWhen(n)===!1||(c=c&&O.synchronous,a.unshift(O.fulfilled,O.rejected))});const u=[];this.interceptors.response.forEach(function(O){u.push(O.fulfilled,O.rejected)});let f,m=0,v;if(!c){const b=[Vs.bind(this),void 0];for(b.unshift.apply(b,a),b.push.apply(b,u),v=b.length,f=Promise.resolve(n);m<v;)f=f.then(b[m++],b[m++]);return f}v=a.length;let _=n;for(m=0;m<v;){const b=a[m++],O=a[m++];try{_=b(_)}catch(w){O.call(this,w);break}}try{f=Vs.call(this,_)}catch(b){return Promise.reject(b)}for(m=0,v=u.length;m<v;)f=f.then(u[m++],u[m++]);return f}getUri(e){e=St(this.defaults,e);const n=Rs(e.baseURL,e.url);return Cs(n,e.params,e.paramsSerializer)}}g.forEach(["delete","get","head","options"],function(e){_t.prototype[e]=function(n,r){return this.request(St(r||{},{method:e,url:n,data:(r||{}).data}))}}),g.forEach(["post","put","patch"],function(e){function n(r){return function(i,s,a){return this.request(St(a||{},{method:e,headers:r?{"Content-Type":"multipart/form-data"}:{},url:i,data:s}))}}_t.prototype[e]=n(),_t.prototype[e+"Form"]=n(!0)});class io{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(i){n=i});const r=this;this.promise.then(o=>{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](o);r._listeners=null}),this.promise.then=o=>{let i;const s=new Promise(a=>{r.subscribe(a),i=a}).then(o);return s.cancel=function(){r.unsubscribe(i)},s},e(function(i,s,a){r.reason||(r.reason=new Bt(i,s,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 io(function(o){e=o}),cancel:e}}}function Up(t){return function(n){return t.apply(null,n)}}function Hp(t){return g.isObject(t)&&t.isAxiosError===!0}const so={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(so).forEach(([t,e])=>{so[e]=t});function Ks(t){const e=new _t(t),n=ls(_t.prototype.request,e);return g.extend(n,_t.prototype,e,{allOwnKeys:!0}),g.extend(n,e,null,{allOwnKeys:!0}),n.create=function(o){return Ks(St(t,o))},n}const oe=Ks(gn);oe.Axios=_t,oe.CanceledError=Bt,oe.CancelToken=io,oe.isCancel=Is,oe.VERSION=Fs,oe.toFormData=qn,oe.AxiosError=M,oe.Cancel=oe.CanceledError,oe.all=function(e){return Promise.all(e)},oe.spread=Up,oe.isAxiosError=Hp,oe.mergeConfig=St,oe.AxiosHeaders=Se,oe.formToJSON=t=>As(g.isHTMLForm(t)?new FormData(t):t),oe.getAdapter=js.getAdapter,oe.HttpStatusCode=so,oe.default=oe;function jp(t){const e=window.location.origin,n=new URL(t).origin;return e===n}class Vp{constructor(e){Ne(this,"axios");this.axios=oe.create(e==null?void 0:e.config);const n=window.location.origin+"/api";this.axios.defaults.baseURL||(this.axios.defaults.baseURL=n),e!=null&&e.anonymous||this.axios.interceptors.request.use(async r=>await this.AccessTokenInterceptor(r))}async AccessTokenInterceptor(e){if(!jp(e.baseURL+e.url))return e;const n=as().oidc;await n.updateToken(10);const r=n.token;return r?e.headers.Authorization=`Bearer ${r}`:n.login(),e}async GetAsync(e){return this.axios.get(e).then(n=>this.HandleThen(n)).catch(n=>this.HandleCatch(n))}async PostAsync(e,n){return this.axios.post(e,n).then(r=>this.HandleThen(r)).catch(r=>this.HandleCatch(r))}async PutAsync(e,n){return this.axios.put(e,n).then(r=>this.HandleThen(r)).catch(r=>this.HandleCatch(r))}async DeleteAsync(e){return this.axios.delete(e).then(n=>this.HandleThen(n)).catch(n=>this.HandleCatch(n))}HandleThen(e){const n=new zr,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 zr,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=Array.isArray(e.errors);return n&&r&&o?e:null}catch{return null}}}class Zn{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 i=getComputedStyle(o).zIndex;return+i==+i?+i: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 Zn.Mask(e.padStart(11,"0"),"###.###.###-##")}static MaskCnpj(e){return Zn.Mask(e.padStart(14,"0"),"##.###.###/####-##")}static async DelayAsync(e){return new Promise(n=>setTimeout(n,e))}}function Fp(){document.documentElement.classList.add("app-mounted")}function Ws(){mt.SetInitialTheme()}function zp(){mt.Toggle()}function Kp(){mt.EnableDarkMode()}function Wp(){mt.EnableLightMode()}function qp(){mt.ClearStoredTheme()}Ws(),j.ApiClient=Vp,j.AppResult=zr,j.ClearStoredTheme=qp,j.ConfigAuth=vm,j.EnableDarkMode=Kp,j.EnableLightMode=Wp,j.RemovePreloader=Fp,j.SetInitialTheme=Ws,j.SfButton=Ua,j.SfContent=La,j.SfDrawer=Wa,j.SfIcon=_n,j.SfLayout=Ca,j.SfMessage=Ga,j.SfNavMenu=Fc,j.SfTabNavigation=Na,j.SfTooltip=nr,j.ToggleTheme=zp,j.UseAlertService=tm,j.UseAuth=as,j.UseConfirmService=nm,j.UseNavMenuService=tr,j.Utilities=Zn,Object.defineProperty(j,Symbol.toStringTag,{value:"Module"})});
410
+ For more information see: https://www.keycloak.org/docs/latest/securing_apps/#_modern_browsers`),i.enable=!1,e.silentCheckSsoFallback&&(e.silentCheckSsoRedirectUri=!1)),document.body.removeChild(p),window.removeEventListener("message",b),u.setSuccess()))};window.addEventListener("message",b,!1)}else u.setSuccess();return Q(u.promise,e.messageReceiveTimeout,"Timeout when waiting for 3rd party check iframe message.")}function Ye(u){if(!u||u=="default")return{login:function(w){return window.location.assign(e.createLoginUrl(w)),Y().promise},logout:async function(w){if(((w==null?void 0:w.logoutMethod)??e.logoutMethod)==="GET"){window.location.replace(e.createLogoutUrl(w));return}const A=e.createLogoutUrl(w),P=await fetch(A,{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(w,!1)})});if(P.redirected){window.location.href=P.url;return}if(P.ok){window.location.reload();return}throw new Error("Logout failed, request returned an error code.")},register:function(w){return window.location.assign(e.createRegisterUrl(w)),Y().promise},accountManagement:function(){var w=e.createAccountUrl();if(typeof w<"u")window.location.href=w;else throw"Not supported by the OIDC server";return Y().promise},redirectUri:function(w,_){return w&&w.redirectUri?w.redirectUri:e.redirectUri?e.redirectUri:location.href}};if(u=="cordova"){i.enable=!1;var p=function(w,_,A){return window.cordova&&window.cordova.InAppBrowser?window.cordova.InAppBrowser.open(w,_,A):window.open(w,_,A)},b=function(w){return w&&w.cordovaOptions?Object.keys(w.cordovaOptions).reduce(function(_,A){return _[A]=w.cordovaOptions[A],_},{}):{}},S=function(w){return Object.keys(w).reduce(function(_,A){return _.push(A+"="+w[A]),_},[]).join(",")},y=function(w){var _=b(w);return _.location="no",w&&w.prompt=="none"&&(_.hidden="yes"),S(_)},E=function(){return e.redirectUri||"http://localhost"};return{login:function(w){var _=Y(),A=y(w),P=e.createLoginUrl(w),N=p(P,"_blank",A),H=!1,ve=!1,ae=function(){ve=!0,N.close()};return N.addEventListener("loadstart",function(le){if(le.url.indexOf(E())==0){var Xe=ee(le.url);I(Xe,_),ae(),H=!0}}),N.addEventListener("loaderror",function(le){if(!H)if(le.url.indexOf(E())==0){var Xe=ee(le.url);I(Xe,_),ae(),H=!0}else _.setError(),ae()}),N.addEventListener("exit",function(le){ve||_.setError({reason:"closed_by_user"})}),_.promise},logout:function(w){var _=Y(),A=e.createLogoutUrl(w),P=p(A,"_blank","location=no,hidden=yes,clearcache=yes"),N;return P.addEventListener("loadstart",function(H){H.url.indexOf(E())==0&&P.close()}),P.addEventListener("loaderror",function(H){H.url.indexOf(E())==0||(N=!0),P.close()}),P.addEventListener("exit",function(H){N?_.setError():(e.clearToken(),_.setSuccess())}),_.promise},register:function(w){var _=Y(),A=e.createRegisterUrl(),P=y(w),N=p(A,"_blank",P);return N.addEventListener("loadstart",function(H){if(H.url.indexOf(E())==0){N.close();var ve=ee(H.url);I(ve,_)}}),_.promise},accountManagement:function(){var w=e.createAccountUrl();if(typeof w<"u"){var _=p(w,"_blank","location=no");_.addEventListener("loadstart",function(A){A.url.indexOf(E())==0&&_.close()})}else throw"Not supported by the OIDC server"},redirectUri:function(w){return E()}}}if(u=="cordova-native")return i.enable=!1,{login:function(w){var _=Y(),A=e.createLoginUrl(w);return universalLinks.subscribe("keycloak",function(P){universalLinks.unsubscribe("keycloak"),window.cordova.plugins.browsertab.close();var N=ee(P.url);I(N,_)}),window.cordova.plugins.browsertab.openUrl(A),_.promise},logout:function(w){var _=Y(),A=e.createLogoutUrl(w);return universalLinks.subscribe("keycloak",function(P){universalLinks.unsubscribe("keycloak"),window.cordova.plugins.browsertab.close(),e.clearToken(),_.setSuccess()}),window.cordova.plugins.browsertab.openUrl(A),_.promise},register:function(w){var _=Y(),A=e.createRegisterUrl(w);return universalLinks.subscribe("keycloak",function(P){universalLinks.unsubscribe("keycloak"),window.cordova.plugins.browsertab.close();var N=ee(P.url);I(N,_)}),window.cordova.plugins.browsertab.openUrl(A),_.promise},accountManagement:function(){var w=e.createAccountUrl();if(typeof w<"u")window.cordova.plugins.browsertab.openUrl(w);else throw"Not supported by the OIDC server"},redirectUri:function(w){return w&&w.redirectUri?w.redirectUri:e.redirectUri?e.redirectUri:"http://localhost"}};throw"invalid adapter type: "+u}var Ve=function(){if(!(this instanceof Ve))return new Ve;localStorage.setItem("kc-test","test"),localStorage.removeItem("kc-test");var u=this;function p(){for(var b=new Date().getTime(),S=0;S<localStorage.length;S++){var y=localStorage.key(S);if(y&&y.indexOf("kc-callback-")==0){var E=localStorage.getItem(y);if(E)try{var w=JSON.parse(E).expires;(!w||w<b)&&localStorage.removeItem(y)}catch{localStorage.removeItem(y)}}}}u.get=function(b){if(b){var S="kc-callback-"+b,y=localStorage.getItem(S);return y&&(localStorage.removeItem(S),y=JSON.parse(y)),p(),y}},u.add=function(b){p();var S="kc-callback-"+b.state;b.expires=new Date().getTime()+60*60*1e3,localStorage.setItem(S,JSON.stringify(b))}},He=function(){if(!(this instanceof He))return new He;var u=this;u.get=function(y){if(y){var E=b("kc-callback-"+y);if(S("kc-callback-"+y,"",p(-100)),E)return JSON.parse(E)}},u.add=function(y){S("kc-callback-"+y.state,JSON.stringify(y),p(60))},u.removeItem=function(y){S(y,"",p(-100))};var p=function(y){var E=new Date;return E.setTime(E.getTime()+y*60*1e3),E},b=function(y){for(var E=y+"=",w=document.cookie.split(";"),_=0;_<w.length;_++){for(var A=w[_];A.charAt(0)==" ";)A=A.substring(1);if(A.indexOf(E)==0)return A.substring(E.length,A.length)}return""},S=function(y,E,w){var _=y+"="+E+"; expires="+w.toUTCString()+"; ";document.cookie=_}};function mt(){try{return new Ve}catch{}return new He}function xe(u){return function(){e.enableLogging&&u.apply(console,Array.prototype.slice.call(arguments))}}}function Wd(t){const e=String.fromCodePoint(...t);return btoa(e)}class Gd{constructor(e){Ke(this,"oidc");Ke(this,"isAuthenticated",!1);this.oidc=new _i(e)}async InitAsync(e={}){return await this.oidc.init(e).then(async n=>(this.isAuthenticated=n,n)).catch(n=>(console.info("Ocorreu um erro na inicialização. Verifique o console para mais detalhes."),console.error(n),!1))}}let ki;function qd(t){ki=new Gd(t)}const Yd=()=>ki;class Xd{constructor(e=null){Ke(this,"errors",[]);Ke(this,"_value",null);Ke(this,"_httpStatusCode");this._value=e,this._httpStatusCode=200}get value(){return this._value}set value(e){this._value=e}get hasSuccess(){return!this.hasError}get hasError(){return this.errors.length>0}get httpStatusCode(){return this._httpStatusCode}set httpStatusCode(e){this._httpStatusCode=e}WithError(e){this.errors.push(e),this._httpStatusCode===200&&(this._httpStatusCode=400)}WithErrors(e){e.forEach(n=>this.WithError(n))}}class Pn{static get IsTouch(){return window.matchMedia("(pointer: coarse)").matches}static GetMaxZindex(e=[]){let n="body > *:not(script):not(style)";for(const r of e)n+=`, ${r}`;const o=Math.max(...Array.from(document.querySelectorAll(n)).map(r=>{const i=getComputedStyle(r).zIndex;return+i==+i?+i:0}));return o>=100?o:100}static AjustarFuso(e){const n=e.getTimezoneOffset()/60;e.setHours(e.getHours()-n)}static Mask(e,n){let o=0,r=e.toString();return n.replace(/#/g,()=>r[o++]||"")}static MaskCpf(e){return Pn.Mask(e.padStart(11,"0"),"###.###.###-##")}static MaskCnpj(e){return Pn.Mask(e.padStart(14,"0"),"##.###.###/####-##")}static async DelayAsync(e){return new Promise(n=>setTimeout(n,e))}}function Zd(){document.documentElement.classList.add("app-mounted")}function Si(){st.SetInitialTheme()}function Jd(){st.Toggle()}function Qd(){st.EnableDarkMode()}function ef(){st.EnableLightMode()}function tf(){st.ClearStoredTheme()}Si(),U.AppResult=Xd,U.ClearStoredTheme=tf,U.ConfigAuth=qd,U.EnableDarkMode=Qd,U.EnableLightMode=ef,U.RemovePreloader=Zd,U.SetInitialTheme=Si,U.SfButton=ys,U.SfContent=us,U.SfDrawer=ks,U.SfIcon=ln,U.SfLayout=ns,U.SfMessage=Cs,U.SfNavMenu=vl,U.SfTabNavigation=ps,U.SfTooltip=Nn,U.ToggleTheme=Jd,U.UseAlertService=xd,U.UseAuth=Yd,U.UseConfirmService=Ld,U.UseNavMenuService=Bn,U.Utilities=Pn,Object.defineProperty(U,Symbol.toStringTag,{value:"Module"})});
416
411
  //# sourceMappingURL=sf.prefeiturasp.vuecomponents.umd.cjs.map