@luizleon/sf.prefeiturasp.vuecomponents 4.1.18 → 4.1.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- "use strict";var Zi=Object.defineProperty;var Ji=(t,e,n)=>e in t?Zi(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var Oe=(t,e,n)=>Ji(t,typeof e!="symbol"?e+"":e,n);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("vue");class Qi{constructor(){Oe(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 es=new Qi,ao=()=>es,Cn=(t,e)=>{const n=t.__vccOpts||t;for(const[o,r]of e)n[o]=r;return n},ts={},ns={xmlns:"http://www.w3.org/2000/svg",height:"48",viewBox:"0 -960 960 960",width:"48",class:"sf-svg-icon"};function os(t,e){return s.openBlock(),s.createElementBlock("svg",ns,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 rs=Cn(ts,[["render",os]]);class is{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 ct=new is,ss=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(ct).Toggle&&s.unref(ct).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 Vr(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 lo=s.defineComponent({__name:"Tooltip",props:{text:{}},setup(t){const e=t;class n{constructor(){Oe(this,"zIndex");Oe(this,"wrapper");Oe(this,"inner");this.zIndex=Vr()+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 l=this.wrapper,d=10;l.style.top=`${a.bottom-d}px`,l.style.left=`${a.right-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(){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 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))}}),as={id:"sf-layout"},ls={class:"title"},cs={class:"sf-layout-nav-content"},us={id:"sf-layout-content"},ds=s.defineComponent({__name:"Layout",emits:["mounted","logout"],setup(t,{emit:e}){const n=ao(),o=e;return s.onMounted(()=>{o("mounted")}),(r,i)=>(s.openBlock(),s.createElementBlock("div",as,[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(rs)],2),s.createElementVNode("div",ls,[s.renderSlot(r.$slots,"title")]),s.renderSlot(r.$slots,"action"),s.createVNode(lo,{text:"Tema"},{default:s.withCtx(()=>[s.createVNode(ss)]),_:1})]),s.createElementVNode("nav",{class:s.normalizeClass({visible:s.unref(n).IsVisible})},[s.createElementVNode("div",cs,[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",us,[s.renderSlot(r.$slots,"content")])],2)]))}}),fs={},ms={class:"sf-loading-circle"};function ps(t,e){return s.openBlock(),s.createElementBlock("div",ms,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 hs=Cn(fs,[["render",ps]]);class Ye{constructor(e){Oe(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 gs=["disabled","tabindex"],vs=["data-color"],ys=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?lo:"div"),o=s.computed(()=>new Ye(e.tooltip?"":"display-content").AddClass("sf-component-loading",e.loading).AddClass("sf-component-disabled",e.disabled).Build()),r=s.computed(()=>new Ye(`${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(hs,{key:0})):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[s.createTextVNode(s.toDisplayString(e.icon),1)],64))],16,gs),e.dot?(s.openBlock(),s.createElementBlock("span",{key:0,"data-color":e.dotColor},null,8,vs)):s.createCommentVNode("",!0)],6)):s.createCommentVNode("",!0)]),_:1},8,["text","class"]))}}),vn=Cn(ys,[["__scopeId","data-v-7ffc3790"]]),bs=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))}}),ws=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 Ye("sf-content").AddClass(e.class,!!e.class).Build()}function o(){return new Ye("sf-content-body").AddClass("sf-content-no-padding",e.disableBodyPadding).Build()}function r(){return new Ye("sf-content-header").AddClass("sf-content-no-padding",e.disableHeaderPadding).Build()}function i(){return new Ye("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(bs)],2),s.createElementVNode("div",{class:s.normalizeClass(i())},[s.renderSlot(c.$slots,"footer")],2)],6))}}),_s={class:"sf-tab-navigation"},ks=["data-active"],Ss=["href","onClick"],Cs=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",_s,[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:b,isActive:C})=>[s.createElementVNode("li",{"data-active":C},[s.renderSlot(l.$slots,"item",{item:h,navigate:b,isActive:C},()=>[s.createElementVNode("a",{href:h.route,class:s.normalizeClass({active:C}),onClick:b},s.toDisplayString(h.text),11,Ss)])],8,ks)]),_: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)])}}}),Is=["id","name","disabled","data-color","form","type"],Ts={class:"sf-button-label"},Es=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 Ye(`${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(vn,{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(vn,{key:1,loading:!0,size:e.size,"button-props":{tabindex:-1}},null,8,["size"])):s.createCommentVNode("",!0),s.createElementVNode("span",Ts,[s.renderSlot(o.$slots,"default")])],14,Is)):s.createCommentVNode("",!0)}}),Ps={class:"sf-drawer-header"},As={class:"sf-drawer-title"},xs={class:"sf-drawer-content"},Ls={key:0,class:"sf-drawer-footer"},Os=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 b(x){a.value=Vr(),x.style.zIndex=`${a.value}`}function C(x){var M;o("before-close"),(M=x==null?void 0:x.parentElement)==null||M.classList.add("sf-mask-overlay-leave")}function T(){window.document.removeEventListener("keydown",m,!0),c.value=!1}function $(){return new Ye("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,M)=>(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:b,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:M[0]||(M[0]=s.withModifiers(I=>x.void,["stop"]))},[s.createElementVNode("div",Ps,[s.createElementVNode("span",As,[s.renderSlot(x.$slots,"title")]),s.createVNode(vn,{button:!0,icon:"close",onClick:s.withModifiers(d,["stop"])})]),s.createElementVNode("div",xs,[s.renderSlot(x.$slots,"default")]),s.unref(r).footer?(s.openBlock(),s.createElementBlock("div",Ls,[s.renderSlot(x.$slots,"footer")])):s.createCommentVNode("",!0)],6)):s.createCommentVNode("",!0)]),_:3})],6)):s.createCommentVNode("",!0)]))}}),$s=["data-icon"],Bs=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 Ye("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,$s))}});function Ns(t,e){return t?t.classList?t.classList.contains(e):new RegExp("(^| )"+e+"( |$)","gi").test(t.className):!1}function Ds(t,e){if(t&&e){const n=o=>{Ns(t,o)||(t.classList?t.classList.add(o):t.className+=" "+o)};[e].flat().filter(Boolean).forEach(o=>o.split(" ").forEach(n))}}function Mn(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 Ms(t,e){return t instanceof HTMLElement?t.offsetWidth:0}function In(t){return typeof HTMLElement=="object"?t instanceof HTMLElement:t&&typeof t=="object"&&t!==null&&t.nodeType===1&&typeof t.nodeName=="string"}function yn(t,e={}){if(In(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(([b,C])=>o==="style"&&(C||C===0)?`${b.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}:${C}`:C?b:void 0);l=h.length?l.concat(h.filter(b=>!!b)):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"?yn(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 Rs(t,e={},...n){{const o=document.createElement(t);return yn(o,e),o.append(...n),o}}function Ne(t,e){return In(t)?t.matches(e)?t:t.querySelector(e):null}function Dt(t,e){t&&document.activeElement!==t&&t.focus(e)}function Mt(t,e){if(In(t)){const n=t.getAttribute(e);return isNaN(n)?n==="true"||n==="false"?n==="true":n:+n}}function qo(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 Us(t){if(t){let e=t.parentNode;return e&&e instanceof ShadowRoot&&e.host&&(e=e.host),e}return null}function Vs(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 Hs(t,e){return t?t.offsetHeight:0}function js(t){return!!(t!==null&&typeof t<"u"&&t.nodeName&&Us(t))}function Yo(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 Fs(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Ks(t,e="",n){In(t)&&n!==null&&n!==void 0&&t.setAttribute(e,n)}function Hr(){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 lt(t){return t==null||t===""||Array.isArray(t)&&t.length===0||!(t instanceof Date)&&typeof t=="object"&&Object.keys(t).length===0}function Xn(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(!Xn(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],!Xn(t[c],e[c]))return!1;return!0}return t!==t&&e!==e}function co(t){return!!(t&&t.constructor&&t.call&&t.apply)}function W(t){return!lt(t)}function yt(t,e,n){return Xn(t,e)}function Xo(t,e){let n;if(W(t))try{n=t.findLast(e)}catch{n=[...t].reverse().find(e)}return n}function ot(t,e=!0){return t instanceof Object&&t.constructor===Object&&(e||Object.keys(t).length!==0)}function ke(t,...e){return co(t)?t(...e):t}function ye(t,e=!0){return typeof t=="string"&&(e||t!=="")}function De(t){return ye(t)?t.replace(/(-|_)/g,"").toLowerCase():t}function uo(t,e="",n={}){const o=De(e).split("."),r=o.shift();return r?ot(t)?uo(ke(t[Object.keys(t).find(i=>De(i)===r)||""],n),o.join("."),n):void 0:ke(t,n)}function fo(t,e=!0){return Array.isArray(t)&&(e||t.length!==0)}function jr(t){return W(t)&&!isNaN(t)}function zs(t=""){return W(t)&&t.length===1&&!!t.match(/\S| /)}function Xe(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 Ws(t){return ye(t,!1)?t[0].toUpperCase()+t.slice(1):t}function Fr(t){return ye(t)?t.replace(/(_)/g,"-").replace(/[A-Z]/g,(e,n)=>n===0?e:"-"+e.toLowerCase()).toLowerCase():t}function Zo(t){return ye(t)?t.replace(/[A-Z]/g,(e,n)=>n===0?e:"."+e.toLowerCase()).toLowerCase():t}var un={};function Gs(t="pui_id_"){return un.hasOwnProperty(t)||(un[t]=0),un[t]++,`${t}${un[t]}`}function bn(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"pv_id_";return Gs(t)}var qs=Object.defineProperty,Ys=Object.defineProperties,Xs=Object.getOwnPropertyDescriptors,wn=Object.getOwnPropertySymbols,Kr=Object.prototype.hasOwnProperty,zr=Object.prototype.propertyIsEnumerable,Jo=(t,e,n)=>e in t?qs(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,At=(t,e)=>{for(var n in e||(e={}))Kr.call(e,n)&&Jo(t,n,e[n]);if(wn)for(var n of wn(e))zr.call(e,n)&&Jo(t,n,e[n]);return t},Rn=(t,e)=>Ys(t,Xs(e)),xt=(t,e)=>{var n={};for(var o in t)Kr.call(t,o)&&e.indexOf(o)<0&&(n[o]=t[o]);if(t!=null&&wn)for(var o of wn(t))e.indexOf(o)<0&&zr.call(t,o)&&(n[o]=t[o]);return n},Zs=Hr(),qe=Zs;function Qo(t,e){fo(t)?t.push(...e||[]):ot(t)&&Object.assign(t,e)}function Js(t){return ot(t)&&t.hasOwnProperty("value")&&t.hasOwnProperty("type")?t.value:t}function er(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=>jr(i)?`${i}px`:i).join(" ")}function Qs(t){return t.replaceAll(/ /g,"").replace(/[^\w]/g,"-")}function Zn(t="",e=""){return Qs(`${ye(t,!1)&&ye(e,!1)?`${t}-`:t}${e}`)}function Wr(t="",e=""){return`--${Zn(t,e)}`}function Gr(t,e="",n="",o=[],r){if(ye(t)){const i=/{([^}]*)}/g,c=t.trim();if(Xe(c,i)){const a=c.replaceAll(i,m=>{const b=m.replace(/{|}/g,"").split(".").filter(C=>!o.some(T=>Xe(C,T)));return`var(${Wr(n,Fr(b.join("-")))}${W(r)?`, ${r}`:""})`}),l=/(\d+\s+[\+\-\*\/]\s+\d+)/g,d=/var\([^)]+\)/g;return Xe(a.replace(d,"0"),l)?`calc(${a})`:a}return er(c,e)}else if(jr(t))return er(t,e)}function ea(t,e,n){ye(e,!1)&&t.push(`${e}:${n};`)}function Rt(t,e){return t?`${t}{${e}}`:""}var Un=(...t)=>ta(X.getTheme(),...t),ta=(t={},e,n,o="variable")=>{if(e){const{variable:r,options:i}=X.defaults||{},{prefix:c,transform:a}=(t==null?void 0:t.options)||i||{},d=Xe(e,/{([^}]*)}/g)?e:`{${e}}`;return o==="value"||a==="strict"?X.getTokenValue(e):Gr(d,void 0,c,[r.excludedKeyRegex],n)}return""};function na(t,e={}){const n=X.defaults.variable,{prefix:o=n.prefix,selector:r=n.selector,excludedKeyRegex:i=n.excludedKeyRegex}=e,c=(d,m="")=>Object.entries(d).reduce((h,[b,C])=>{const T=Xe(b,i)?Zn(m):Zn(m,Fr(b)),$=Js(C);if(ot($)){const{variables:x,tokens:M}=c($,T);Qo(h.tokens,M),Qo(h.variables,x)}else h.tokens.push((o?T.replace(`${o}-`,""):T).replaceAll("-",".")),ea(h.variables,Wr(T),Gr($,T,o,[i]));return h},{variables:[],tokens:[]}),{variables:a,tokens:l}=c(t,o);return{value:a,tokens:l,declarations:a.join(""),css:Rt(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 na(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,b,C,T;if(W(d)){const{primitive:$,semantic:x}=d,M=x||{},{colorScheme:I}=M,B=xt(M,["colorScheme"]),j=I||{},{dark:Z}=j,me=xt(j,["dark"]),Q=W($)?this._toVariables({primitive:$},m):{},xe=W(B)?this._toVariables({semantic:B},m):{},we=W(me)?this._toVariables({light:me},m):{},q=W(Z)?this._toVariables({dark:Z},m):{},[J,pe]=[(i=Q.declarations)!=null?i:"",Q.tokens],[Le,_e]=[(c=xe.declarations)!=null?c:"",xe.tokens||[]],[Je,Ke]=[(a=we.declarations)!=null?a:"",we.tokens||[]],[Re,Ue]=[(l=q.declarations)!=null?l:"",q.tokens||[]];h=this.transformCSS(t,J,"light","variable",m,o,r),b=pe;const it=this.transformCSS(t,`${Le}${Je}color-scheme:light`,"light","variable",m,o,r),Te=this.transformCSS(t,`${Re}color-scheme:dark`,"dark","variable",m,o,r);C=`${it}${Te}`,T=[...new Set([..._e,...Ke,...Ue])]}return{primitive:{css:h,tokens:b},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:b}=h,C=xt(h,["colorScheme"]),T=b||{},{dark:$}=T,x=xt(T,["dark"]),M=W(C)?this._toVariables({[m]:C},n):{},I=W(x)?this._toVariables({[m]:x},n):{},B=W($)?this._toVariables({[m]:$},n):{},[j,Z]=[(a=M.declarations)!=null?a:"",M.tokens||[]],[me,Q]=[(l=I.declarations)!=null?l:"",I.tokens||[]],[xe,we]=[(d=B.declarations)!=null?d:"",B.tokens||[]],q=[...new Set([...Z,...Q,...we])],J=this.transformCSS(m,`${j}${me}`,"light","variable",n,r,i,c),pe=this.transformCSS(m,xe,"dark","variable",n,r,i,c);return{css:`${J}${pe}`,tokens:q}},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 ${ke(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=Vt(m==null?void 0:m.css),b=`${d}-variables`;l.push(`<style type="text/css" data-primevue-style-id="${b}" ${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,b])=>m.push(`${h}="${b}"`)&&m,[]).join(" ");return l?`<style type="text/css" data-primevue-style-id="${t}-variables" ${d}>${Vt(l)}</style>`:""},createTokens(t={},e,n="",o="",r={}){return Object.entries(t).forEach(([i,c])=>{const a=Xe(i,e.variable.excludedKeyRegex)?n:n?`${n}.${Zo(i)}`:Zo(i),l=o?`${o}.${i}`:i;ot(c)?this.createTokens(c,e,a,l,r):(r[a]||(r[a]={paths:[],computed(d,m={}){if(d){const h=this.paths.find(b=>b.scheme===d)||this.paths.find(b=>b.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 b=c;if(m.name=this.path,m.binding||(m.binding={}),Xe(c,h)){const T=c.trim().replaceAll(h,M=>{var I,B;const j=M.replace(/{|}/g,"");return(B=(I=r[j])==null?void 0:I.computed(d,m))==null?void 0:B.value}),$=/(\d+\w*\s+[\+\-\*\/]\s+\d+\w*)/g,x=/var\([^)]+\)/g;b=Xe(T.replace(x,"0"),$)?`calc(${T})`:T}return lt(m.binding)&&delete m.binding,{colorScheme:d,path:this.path,paths:m,value:b.includes("undefined")?void 0:b}}}))}),r},getTokenValue(t,e,n){var o;const i=(l=>l.split(".").filter(m=>!Xe(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,b=xt(m,["colorScheme"]);return l[h]=b,l},void 0)},transformCSS(t,e,n,o,r={},i,c,a){if(W(e)){const{cssLayer:l}=r;if(o!=="style"){const d=this.getColorSchemeOption(r,c),m=a?Rt(a,e):e;e=n==="dark"?d.reduce((h,{selector:b})=>(W(b)&&(h+=b.includes("[CSS]")?b.replace("[CSS]",m):Rt(b,m)),h),""):Rt(a??":root",e)}if(l){const d={name:"primeui",order:"primeui"};ot(l)&&(d.name=ke(l.name,{name:t,type:o})),W(d.name)&&(e=Rt(`@layer ${d.name}`,e),i==null||i.layerNames(d.name))}return e}return""}},X={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=Rn(At({},e),{options:At(At({},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}),qe.emit("theme:change",t)},getPreset(){return this.preset},setPreset(t){this._theme=Rn(At({},this.theme),{preset:t}),this._tokens=$e.createTokens(t,this.defaults),this.clearLoadedStyleNames(),qe.emit("preset:change",t),qe.emit("theme:change",this.theme)},getOptions(){return this.options},setOptions(t){this._theme=Rn(At({},this.theme),{options:t}),this.clearLoadedStyleNames(),qe.emit("options:change",t),qe.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),qe.emit(`theme:${e}:load`,t),!this._loadingStyles.size&&qe.emit("theme:load"))}},tt={_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 Ft(t){"@babel/helpers - typeof";return Ft=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},Ft(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){oa(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 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 Ft(e)=="symbol"?e:e+""}function ia(t,e){if(Ft(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var o=n.call(t,e||"default");if(Ft(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function sa(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;s.getCurrentInstance()?s.onMounted(t):e?t():s.nextTick(t)}var aa=0;function la(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=Fs()?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,b=e.name,C=b===void 0?"style_".concat(++aa):b,T=e.id,$=T===void 0?void 0:T,x=e.media,M=x===void 0?void 0:x,I=e.nonce,B=I===void 0?void 0:I,j=e.first,Z=j===void 0?!1:j,me=e.onMounted,Q=me===void 0?void 0:me,xe=e.onUpdated,we=xe===void 0?void 0:xe,q=e.onLoad,J=q===void 0?void 0:q,pe=e.props,Le=pe===void 0?{}:pe,_e=function(){},Je=function(Ue){var it=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(a){var Te=nr(nr({},Le),it),u=Te.name||C,p=Te.id||$,y=Te.nonce||B;r.value=a.querySelector('style[data-primevue-style-id="'.concat(u,'"]'))||a.getElementById(p)||a.createElement("style"),r.value.isConnected||(o.value=Ue||t,yn(r.value,{type:"text/css",id:p,media:M,nonce:y}),Z?a.head.prepend(r.value):a.head.appendChild(r.value),Ks(r.value,"data-primevue-style-id",u),yn(r.value,Te),r.value.onload=function(S){return J==null?void 0:J(S,{name:u})},Q==null||Q(u)),!n.value&&(_e=s.watch(o,function(S){r.value.textContent=S,we==null||we(u)},{immediate:!0}),n.value=!0)}},Ke=function(){!a||!n.value||(_e(),js(r.value)&&a.head.removeChild(r.value),n.value=!1)};return d&&!h&&sa(Je),{id:$,name:C,el:r,css:o,unload:Ke,load:Je,isLoaded:s.readonly(n)}}function Kt(t){"@babel/helpers - typeof";return Kt=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},Kt(t)}function or(t,e){return fa(t)||da(t,e)||ua(t,e)||ca()}function ca(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
1
+ "use strict";var Zi=Object.defineProperty;var Ji=(t,e,n)=>e in t?Zi(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var He=(t,e,n)=>Ji(t,typeof e!="symbol"?e+"":e,n);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("vue");class Qi{constructor(){He(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 es=new Qi,ao=()=>es,Cn=(t,e)=>{const n=t.__vccOpts||t;for(const[o,r]of e)n[o]=r;return n},ts={},ns={xmlns:"http://www.w3.org/2000/svg",height:"48",viewBox:"0 -960 960 960",width:"48",class:"sf-svg-icon"};function os(t,e){return s.openBlock(),s.createElementBlock("svg",ns,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 rs=Cn(ts,[["render",os]]);class is{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 ct=new is,ss=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(ct).Toggle&&s.unref(ct).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 Vr(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 lo=s.defineComponent({__name:"Tooltip",props:{text:{}},setup(t){const e=t;class n{constructor(){He(this,"wrapper",null);He(this,"inner",null)}Render(){this.wrapper=document.createElement("div"),this.wrapper.classList.add("sf-tooltip-wrapper"),this.wrapper.style.zIndex=`${Vr()??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(){const i=this.wrapper,c=this.inner;!i||!c||(i.classList.remove("visible"),document.body.removeChild(i),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))}}),as={id:"sf-layout"},ls={class:"title"},cs={class:"sf-layout-nav-content"},us={id:"sf-layout-content"},ds=s.defineComponent({__name:"Layout",emits:["mounted","logout"],setup(t,{emit:e}){const n=ao(),o=e;return s.onMounted(()=>{o("mounted")}),(r,i)=>(s.openBlock(),s.createElementBlock("div",as,[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(rs)],2),s.createElementVNode("div",ls,[s.renderSlot(r.$slots,"title")]),s.renderSlot(r.$slots,"action"),s.createVNode(lo,{text:"Tema"},{default:s.withCtx(()=>[s.createVNode(ss)]),_:1})]),s.createElementVNode("nav",{class:s.normalizeClass({visible:s.unref(n).IsVisible})},[s.createElementVNode("div",cs,[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",us,[s.renderSlot(r.$slots,"content")])],2)]))}}),fs={},ms={class:"sf-loading-circle"};function ps(t,e){return s.openBlock(),s.createElementBlock("div",ms,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 hs=Cn(fs,[["render",ps]]);class Ye{constructor(e){He(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 gs=["disabled","tabindex"],vs=["data-color"],ys=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?lo:"div"),o=s.computed(()=>new Ye(e.tooltip?"":"display-content").AddClass("sf-component-loading",e.loading).AddClass("sf-component-disabled",e.disabled).Build()),r=s.computed(()=>new Ye(`${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(hs,{key:0})):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[s.createTextVNode(s.toDisplayString(e.icon),1)],64))],16,gs),e.dot?(s.openBlock(),s.createElementBlock("span",{key:0,"data-color":e.dotColor},null,8,vs)):s.createCommentVNode("",!0)],6)):s.createCommentVNode("",!0)]),_:1},8,["text","class"]))}}),vn=Cn(ys,[["__scopeId","data-v-7ffc3790"]]),bs=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))}}),ws=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 Ye("sf-content").AddClass(e.class,!!e.class).Build()}function o(){return new Ye("sf-content-body").AddClass("sf-content-no-padding",e.disableBodyPadding).Build()}function r(){return new Ye("sf-content-header").AddClass("sf-content-no-padding",e.disableHeaderPadding).Build()}function i(){return new Ye("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(bs)],2),s.createElementVNode("div",{class:s.normalizeClass(i())},[s.renderSlot(c.$slots,"footer")],2)],6))}}),_s={class:"sf-tab-navigation"},ks=["data-active"],Ss=["href","onClick"],Cs=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",_s,[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:b,isActive:C})=>[s.createElementVNode("li",{"data-active":C},[s.renderSlot(l.$slots,"item",{item:h,navigate:b,isActive:C},()=>[s.createElementVNode("a",{href:h.route,class:s.normalizeClass({active:C}),onClick:b},s.toDisplayString(h.text),11,Ss)])],8,ks)]),_: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)])}}}),Is=["id","name","disabled","data-color","form","type"],Ts={class:"sf-button-label"},Es=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 Ye(`${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(vn,{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(vn,{key:1,loading:!0,size:e.size,"button-props":{tabindex:-1}},null,8,["size"])):s.createCommentVNode("",!0),s.createElementVNode("span",Ts,[s.renderSlot(o.$slots,"default")])],14,Is)):s.createCommentVNode("",!0)}}),Ps={class:"sf-drawer-header"},As={class:"sf-drawer-title"},xs={class:"sf-drawer-content"},Ls={key:0,class:"sf-drawer-footer"},Os=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 b(x){a.value=Vr(),x.style.zIndex=`${a.value}`}function C(x){var M;o("before-close"),(M=x==null?void 0:x.parentElement)==null||M.classList.add("sf-mask-overlay-leave")}function T(){window.document.removeEventListener("keydown",m,!0),c.value=!1}function $(){return new Ye("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,M)=>(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:b,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:M[0]||(M[0]=s.withModifiers(I=>x.void,["stop"]))},[s.createElementVNode("div",Ps,[s.createElementVNode("span",As,[s.renderSlot(x.$slots,"title")]),s.createVNode(vn,{button:!0,icon:"close",onClick:s.withModifiers(d,["stop"])})]),s.createElementVNode("div",xs,[s.renderSlot(x.$slots,"default")]),s.unref(r).footer?(s.openBlock(),s.createElementBlock("div",Ls,[s.renderSlot(x.$slots,"footer")])):s.createCommentVNode("",!0)],6)):s.createCommentVNode("",!0)]),_:3})],6)):s.createCommentVNode("",!0)]))}}),$s=["data-icon"],Bs=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 Ye("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,$s))}});function Ns(t,e){return t?t.classList?t.classList.contains(e):new RegExp("(^| )"+e+"( |$)","gi").test(t.className):!1}function Ds(t,e){if(t&&e){const n=o=>{Ns(t,o)||(t.classList?t.classList.add(o):t.className+=" "+o)};[e].flat().filter(Boolean).forEach(o=>o.split(" ").forEach(n))}}function Mn(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 Ms(t,e){return t instanceof HTMLElement?t.offsetWidth:0}function In(t){return typeof HTMLElement=="object"?t instanceof HTMLElement:t&&typeof t=="object"&&t!==null&&t.nodeType===1&&typeof t.nodeName=="string"}function yn(t,e={}){if(In(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(([b,C])=>o==="style"&&(C||C===0)?`${b.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}:${C}`:C?b:void 0);l=h.length?l.concat(h.filter(b=>!!b)):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"?yn(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 Rs(t,e={},...n){{const o=document.createElement(t);return yn(o,e),o.append(...n),o}}function Be(t,e){return In(t)?t.matches(e)?t:t.querySelector(e):null}function Dt(t,e){t&&document.activeElement!==t&&t.focus(e)}function Mt(t,e){if(In(t)){const n=t.getAttribute(e);return isNaN(n)?n==="true"||n==="false"?n==="true":n:+n}}function qo(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 Us(t){if(t){let e=t.parentNode;return e&&e instanceof ShadowRoot&&e.host&&(e=e.host),e}return null}function Vs(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 Hs(t,e){return t?t.offsetHeight:0}function js(t){return!!(t!==null&&typeof t<"u"&&t.nodeName&&Us(t))}function Yo(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 Fs(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Ks(t,e="",n){In(t)&&n!==null&&n!==void 0&&t.setAttribute(e,n)}function Hr(){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 lt(t){return t==null||t===""||Array.isArray(t)&&t.length===0||!(t instanceof Date)&&typeof t=="object"&&Object.keys(t).length===0}function Xn(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(!Xn(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],!Xn(t[c],e[c]))return!1;return!0}return t!==t&&e!==e}function co(t){return!!(t&&t.constructor&&t.call&&t.apply)}function W(t){return!lt(t)}function yt(t,e,n){return Xn(t,e)}function Xo(t,e){let n;if(W(t))try{n=t.findLast(e)}catch{n=[...t].reverse().find(e)}return n}function ot(t,e=!0){return t instanceof Object&&t.constructor===Object&&(e||Object.keys(t).length!==0)}function ke(t,...e){return co(t)?t(...e):t}function ye(t,e=!0){return typeof t=="string"&&(e||t!=="")}function Ne(t){return ye(t)?t.replace(/(-|_)/g,"").toLowerCase():t}function uo(t,e="",n={}){const o=Ne(e).split("."),r=o.shift();return r?ot(t)?uo(ke(t[Object.keys(t).find(i=>Ne(i)===r)||""],n),o.join("."),n):void 0:ke(t,n)}function fo(t,e=!0){return Array.isArray(t)&&(e||t.length!==0)}function jr(t){return W(t)&&!isNaN(t)}function zs(t=""){return W(t)&&t.length===1&&!!t.match(/\S| /)}function Xe(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 Ws(t){return ye(t,!1)?t[0].toUpperCase()+t.slice(1):t}function Fr(t){return ye(t)?t.replace(/(_)/g,"-").replace(/[A-Z]/g,(e,n)=>n===0?e:"-"+e.toLowerCase()).toLowerCase():t}function Zo(t){return ye(t)?t.replace(/[A-Z]/g,(e,n)=>n===0?e:"."+e.toLowerCase()).toLowerCase():t}var un={};function Gs(t="pui_id_"){return un.hasOwnProperty(t)||(un[t]=0),un[t]++,`${t}${un[t]}`}function bn(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"pv_id_";return Gs(t)}var qs=Object.defineProperty,Ys=Object.defineProperties,Xs=Object.getOwnPropertyDescriptors,wn=Object.getOwnPropertySymbols,Kr=Object.prototype.hasOwnProperty,zr=Object.prototype.propertyIsEnumerable,Jo=(t,e,n)=>e in t?qs(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,At=(t,e)=>{for(var n in e||(e={}))Kr.call(e,n)&&Jo(t,n,e[n]);if(wn)for(var n of wn(e))zr.call(e,n)&&Jo(t,n,e[n]);return t},Rn=(t,e)=>Ys(t,Xs(e)),xt=(t,e)=>{var n={};for(var o in t)Kr.call(t,o)&&e.indexOf(o)<0&&(n[o]=t[o]);if(t!=null&&wn)for(var o of wn(t))e.indexOf(o)<0&&zr.call(t,o)&&(n[o]=t[o]);return n},Zs=Hr(),qe=Zs;function Qo(t,e){fo(t)?t.push(...e||[]):ot(t)&&Object.assign(t,e)}function Js(t){return ot(t)&&t.hasOwnProperty("value")&&t.hasOwnProperty("type")?t.value:t}function er(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=>jr(i)?`${i}px`:i).join(" ")}function Qs(t){return t.replaceAll(/ /g,"").replace(/[^\w]/g,"-")}function Zn(t="",e=""){return Qs(`${ye(t,!1)&&ye(e,!1)?`${t}-`:t}${e}`)}function Wr(t="",e=""){return`--${Zn(t,e)}`}function Gr(t,e="",n="",o=[],r){if(ye(t)){const i=/{([^}]*)}/g,c=t.trim();if(Xe(c,i)){const a=c.replaceAll(i,m=>{const b=m.replace(/{|}/g,"").split(".").filter(C=>!o.some(T=>Xe(C,T)));return`var(${Wr(n,Fr(b.join("-")))}${W(r)?`, ${r}`:""})`}),l=/(\d+\s+[\+\-\*\/]\s+\d+)/g,d=/var\([^)]+\)/g;return Xe(a.replace(d,"0"),l)?`calc(${a})`:a}return er(c,e)}else if(jr(t))return er(t,e)}function ea(t,e,n){ye(e,!1)&&t.push(`${e}:${n};`)}function Rt(t,e){return t?`${t}{${e}}`:""}var Un=(...t)=>ta(X.getTheme(),...t),ta=(t={},e,n,o="variable")=>{if(e){const{variable:r,options:i}=X.defaults||{},{prefix:c,transform:a}=(t==null?void 0:t.options)||i||{},d=Xe(e,/{([^}]*)}/g)?e:`{${e}}`;return o==="value"||a==="strict"?X.getTokenValue(e):Gr(d,void 0,c,[r.excludedKeyRegex],n)}return""};function na(t,e={}){const n=X.defaults.variable,{prefix:o=n.prefix,selector:r=n.selector,excludedKeyRegex:i=n.excludedKeyRegex}=e,c=(d,m="")=>Object.entries(d).reduce((h,[b,C])=>{const T=Xe(b,i)?Zn(m):Zn(m,Fr(b)),$=Js(C);if(ot($)){const{variables:x,tokens:M}=c($,T);Qo(h.tokens,M),Qo(h.variables,x)}else h.tokens.push((o?T.replace(`${o}-`,""):T).replaceAll("-",".")),ea(h.variables,Wr(T),Gr($,T,o,[i]));return h},{variables:[],tokens:[]}),{variables:a,tokens:l}=c(t,o);return{value:a,tokens:l,declarations:a.join(""),css:Rt(r,a.join(""))}}var Oe={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 na(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,b,C,T;if(W(d)){const{primitive:$,semantic:x}=d,M=x||{},{colorScheme:I}=M,B=xt(M,["colorScheme"]),j=I||{},{dark:Z}=j,me=xt(j,["dark"]),Q=W($)?this._toVariables({primitive:$},m):{},xe=W(B)?this._toVariables({semantic:B},m):{},we=W(me)?this._toVariables({light:me},m):{},q=W(Z)?this._toVariables({dark:Z},m):{},[J,pe]=[(i=Q.declarations)!=null?i:"",Q.tokens],[Le,_e]=[(c=xe.declarations)!=null?c:"",xe.tokens||[]],[Je,Ke]=[(a=we.declarations)!=null?a:"",we.tokens||[]],[Me,Re]=[(l=q.declarations)!=null?l:"",q.tokens||[]];h=this.transformCSS(t,J,"light","variable",m,o,r),b=pe;const it=this.transformCSS(t,`${Le}${Je}color-scheme:light`,"light","variable",m,o,r),Te=this.transformCSS(t,`${Me}color-scheme:dark`,"dark","variable",m,o,r);C=`${it}${Te}`,T=[...new Set([..._e,...Ke,...Re])]}return{primitive:{css:h,tokens:b},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:b}=h,C=xt(h,["colorScheme"]),T=b||{},{dark:$}=T,x=xt(T,["dark"]),M=W(C)?this._toVariables({[m]:C},n):{},I=W(x)?this._toVariables({[m]:x},n):{},B=W($)?this._toVariables({[m]:$},n):{},[j,Z]=[(a=M.declarations)!=null?a:"",M.tokens||[]],[me,Q]=[(l=I.declarations)!=null?l:"",I.tokens||[]],[xe,we]=[(d=B.declarations)!=null?d:"",B.tokens||[]],q=[...new Set([...Z,...Q,...we])],J=this.transformCSS(m,`${j}${me}`,"light","variable",n,r,i,c),pe=this.transformCSS(m,xe,"dark","variable",n,r,i,c);return{css:`${J}${pe}`,tokens:q}},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 ${ke(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=Vt(m==null?void 0:m.css),b=`${d}-variables`;l.push(`<style type="text/css" data-primevue-style-id="${b}" ${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,b])=>m.push(`${h}="${b}"`)&&m,[]).join(" ");return l?`<style type="text/css" data-primevue-style-id="${t}-variables" ${d}>${Vt(l)}</style>`:""},createTokens(t={},e,n="",o="",r={}){return Object.entries(t).forEach(([i,c])=>{const a=Xe(i,e.variable.excludedKeyRegex)?n:n?`${n}.${Zo(i)}`:Zo(i),l=o?`${o}.${i}`:i;ot(c)?this.createTokens(c,e,a,l,r):(r[a]||(r[a]={paths:[],computed(d,m={}){if(d){const h=this.paths.find(b=>b.scheme===d)||this.paths.find(b=>b.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 b=c;if(m.name=this.path,m.binding||(m.binding={}),Xe(c,h)){const T=c.trim().replaceAll(h,M=>{var I,B;const j=M.replace(/{|}/g,"");return(B=(I=r[j])==null?void 0:I.computed(d,m))==null?void 0:B.value}),$=/(\d+\w*\s+[\+\-\*\/]\s+\d+\w*)/g,x=/var\([^)]+\)/g;b=Xe(T.replace(x,"0"),$)?`calc(${T})`:T}return lt(m.binding)&&delete m.binding,{colorScheme:d,path:this.path,paths:m,value:b.includes("undefined")?void 0:b}}}))}),r},getTokenValue(t,e,n){var o;const i=(l=>l.split(".").filter(m=>!Xe(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,b=xt(m,["colorScheme"]);return l[h]=b,l},void 0)},transformCSS(t,e,n,o,r={},i,c,a){if(W(e)){const{cssLayer:l}=r;if(o!=="style"){const d=this.getColorSchemeOption(r,c),m=a?Rt(a,e):e;e=n==="dark"?d.reduce((h,{selector:b})=>(W(b)&&(h+=b.includes("[CSS]")?b.replace("[CSS]",m):Rt(b,m)),h),""):Rt(a??":root",e)}if(l){const d={name:"primeui",order:"primeui"};ot(l)&&(d.name=ke(l.name,{name:t,type:o})),W(d.name)&&(e=Rt(`@layer ${d.name}`,e),i==null||i.layerNames(d.name))}return e}return""}},X={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=Rn(At({},e),{options:At(At({},this.defaults.options),e.options)}),this._tokens=Oe.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}),qe.emit("theme:change",t)},getPreset(){return this.preset},setPreset(t){this._theme=Rn(At({},this.theme),{preset:t}),this._tokens=Oe.createTokens(t,this.defaults),this.clearLoadedStyleNames(),qe.emit("preset:change",t),qe.emit("theme:change",this.theme)},getOptions(){return this.options},setOptions(t){this._theme=Rn(At({},this.theme),{options:t}),this.clearLoadedStyleNames(),qe.emit("options:change",t),qe.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 Oe.getTokenValue(this.tokens,t,this.defaults)},getCommon(t="",e){return Oe.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 Oe.getPresetC(n)},getDirective(t="",e){const n={name:t,theme:this.theme,params:e,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}};return Oe.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 Oe.getPreset(r)},getLayerOrderCSS(t=""){return Oe.getLayerOrder(t,this.options,{names:this.getLayerNames()},this.defaults)},transformCSS(t="",e,n="style",o){return Oe.transformCSS(t,e,o,n,this.options,{layerNames:this.setLayerNames.bind(this)},this.defaults)},getCommonStyleSheet(t="",e,n={}){return Oe.getCommonStyleSheet({name:t,theme:this.theme,params:e,props:n,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}})},getStyleSheet(t,e,n={}){return Oe.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),qe.emit(`theme:${e}:load`,t),!this._loadingStyles.size&&qe.emit("theme:load"))}},tt={_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 Ft(t){"@babel/helpers - typeof";return Ft=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},Ft(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){oa(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 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 Ft(e)=="symbol"?e:e+""}function ia(t,e){if(Ft(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var o=n.call(t,e||"default");if(Ft(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function sa(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;s.getCurrentInstance()?s.onMounted(t):e?t():s.nextTick(t)}var aa=0;function la(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=Fs()?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,b=e.name,C=b===void 0?"style_".concat(++aa):b,T=e.id,$=T===void 0?void 0:T,x=e.media,M=x===void 0?void 0:x,I=e.nonce,B=I===void 0?void 0:I,j=e.first,Z=j===void 0?!1:j,me=e.onMounted,Q=me===void 0?void 0:me,xe=e.onUpdated,we=xe===void 0?void 0:xe,q=e.onLoad,J=q===void 0?void 0:q,pe=e.props,Le=pe===void 0?{}:pe,_e=function(){},Je=function(Re){var it=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(a){var Te=nr(nr({},Le),it),u=Te.name||C,p=Te.id||$,y=Te.nonce||B;r.value=a.querySelector('style[data-primevue-style-id="'.concat(u,'"]'))||a.getElementById(p)||a.createElement("style"),r.value.isConnected||(o.value=Re||t,yn(r.value,{type:"text/css",id:p,media:M,nonce:y}),Z?a.head.prepend(r.value):a.head.appendChild(r.value),Ks(r.value,"data-primevue-style-id",u),yn(r.value,Te),r.value.onload=function(S){return J==null?void 0:J(S,{name:u})},Q==null||Q(u)),!n.value&&(_e=s.watch(o,function(S){r.value.textContent=S,we==null||we(u)},{immediate:!0}),n.value=!0)}},Ke=function(){!a||!n.value||(_e(),js(r.value)&&a.head.removeChild(r.value),n.value=!1)};return d&&!h&&sa(Je),{id:$,name:C,el:r,css:o,unload:Ke,load:Je,isLoaded:s.readonly(n)}}function Kt(t){"@babel/helpers - typeof";return Kt=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},Kt(t)}function or(t,e){return fa(t)||da(t,e)||ua(t,e)||ca()}function ca(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
2
2
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ua(t,e){if(t){if(typeof t=="string")return rr(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)?rr(t,e):void 0}}function rr(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 da(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 fa(t){if(Array.isArray(t))return t}function ir(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 Vn(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?ir(Object(n),!0).forEach(function(o){ma(t,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ir(Object(n)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(n,o))})}return t}function ma(t,e,n){return(e=pa(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function pa(t){var e=ha(t,"string");return Kt(e)=="symbol"?e:e+""}function ha(t,e){if(Kt(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var o=n.call(t,e||"default");if(Kt(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var ga=function(e){var n=e.dt;return`
3
3
  * {
4
4
  box-sizing: border-box;
@@ -140,7 +140,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
140
140
  padding-right: `.concat(n("scrollbar.width"),`;
141
141
  }
142
142
  `)},ya={},ba={},de={name:"base",css:va,theme:ga,classes:ya,inlineStyles:ba,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(ke(e,{dt:Un}));return r?la(Vt(r),Vn({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 X.transformCSS(n.name||e.name,o)})},getCommonTheme:function(e){return X.getCommon(this.name,e)},getComponentTheme:function(e){return X.getComponent(this.name,e)},getDirectiveTheme:function(e){return X.getDirective(this.name,e)},getPresetTheme:function(e,n,o){return X.getCustomPreset(this.name,e,n,o)},getLayerOrderThemeCSS:function(){return X.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=ke(this.css,{dt:Un}),r=Vt("".concat(o).concat(e)),i=Object.entries(n).reduce(function(c,a){var l=or(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 X.getCommonStyleSheet(this.name,e,n)},getThemeStyleSheet:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=[X.getStyleSheet(this.name,e,n)];if(this.theme){var r=this.name==="base"?"global-style":"".concat(this.name,"-style"),i=ke(this.theme,{dt:Un}),c=Vt(X.transformCSS(r,i)),a=Object.entries(n).reduce(function(l,d){var m=or(d,2),h=m[0],b=m[1];return l.push("".concat(h,'="').concat(b,'"'))&&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 Vn(Vn({},this),{},{css:void 0,theme:void 0},e)}},sr=de.extend({name:"common"});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 wa(t){return Xr(t)||_a(t)||Yr(t)||qr()}function _a(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function dn(t,e){return Xr(t)||ka(t,e)||Yr(t,e)||qr()}function qr(){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 Yr(t,e){if(t){if(typeof t=="string")return ar(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)?ar(t,e):void 0}}function ar(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 ka(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 Xr(t){if(Array.isArray(t))return t}function lr(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 F(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?lr(Object(n),!0).forEach(function(o){hn(t,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):lr(Object(n)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(n,o))})}return t}function hn(t,e,n){return(e=Sa(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Sa(t){var e=Ca(t,"string");return zt(e)=="symbol"?e:e+""}function Ca(t,e){if(zt(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var o=n.call(t,e||"default");if(zt(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Tn={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,b=(e=this.pt)===null||e===void 0?void 0:e._usept,C=b?(n=this.pt)===null||n===void 0||(n=n.originalValue)===null||n===void 0?void 0:n[this.$.type.name]:void 0,T=b?(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,M=$?(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=M||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=Ne(this.$el,'[data-pc-name="'.concat(De(this.$.type.name),'"]')),this.rootEl&&(this.rootEl.setAttribute(this.$attrSelector,""),this.rootEl.$pc=F({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 co(e)?e.apply(void 0,o):s.mergeProps.apply(void 0,o)},_loadStyles:function(){var e=this,n=function(){tt.isStyleNameLoaded("base")||(de.loadCSS(e.$styleOptions),e._loadGlobalStyles(),tt.setLoadedStyleName("base")),e._loadThemeStyles()};n(),this._themeChangeListener(n)},_loadCoreStyles:function(){var e,n;!tt.isStyleNameLoaded((e=this.$style)===null||e===void 0?void 0:e.name)&&(n=this.$style)!==null&&n!==void 0&&n.name&&(sr.loadCSS(this.$styleOptions),this.$options.style&&this.$style.loadCSS(this.$styleOptions),tt.setLoadedStyleName(this.$style.name))},_loadGlobalStyles:function(){var e=this._useGlobalPT(this._getOptionValue,"global.css",this.$params);W(e)&&de.load(e,F({name:"global"},this.$styleOptions))},_loadThemeStyles:function(){var e,n;if(!this.isUnstyled){if(!X.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;de.load(c==null?void 0:c.css,F({name:"primitive-variables"},this.$styleOptions)),de.load(a==null?void 0:a.css,F({name:"semantic-variables"},this.$styleOptions)),de.loadTheme(F({name:"global-style"},this.$styleOptions)),X.setLoadedStyleName("common")}if(!X.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,b=((l=this.$style)===null||l===void 0||(d=l.getComponentTheme)===null||d===void 0?void 0:d.call(l))||{},C=b.css;(m=this.$style)===null||m===void 0||m.load(C,F({name:"".concat(this.$style.name,"-variables")},this.$styleOptions)),(h=this.$style)===null||h===void 0||h.loadTheme(F({name:"".concat(this.$style.name,"-style")},this.$styleOptions)),X.setLoadedStyleName(this.$style.name)}if(!X.isStyleNameLoaded("layer-order")){var T,$,x=(T=this.$style)===null||T===void 0||($=T.getLayerOrderThemeCSS)===null||$===void 0?void 0:$.call(T);de.load(x,F({name:"layer-order",first:!0},this.$styleOptions)),X.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,F({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(){};tt.clearLoadedStyleNames(),qe.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 uo(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,b=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,F(F({},r),{},{global:b||{}})),T=this._getPTDatasets(o);return d||!d&&C?h?this._mergeProps(h,b,C,T):F(F(F({},b),C),T):F(F({},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"&&W((e=this.pt)===null||e===void 0?void 0:e["data-pc-section"]);return o!=="transition"&&F(F({},o==="root"&&F(hn({},"".concat(r,"name"),De(i?(n=this.pt)===null||n===void 0?void 0:n["data-pc-section"]:this.$.type.name)),i&&hn({},"".concat(r,"extend"),De(this.$.type.name)))),{},hn({},"".concat(r,"section"),De(o)))},_getPTClassValue:function(){var e=this._getOptionValue.apply(this,arguments);return ye(e)||fo(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=De(o),b=De(n.$name);return(l=d?h!==b?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,b=i(e.originalValue),C=i(e.value);return b===void 0&&C===void 0?void 0:ye(C)?C:ye(b)?b:d||!d&&C?h?this._mergeProps(h,b,C):F(F({},b),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,F(F({},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,F({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,F(F({},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,F(F({},this.$params),o)),i=this._getOptionValue(sr.inlineStyles,e,F(F({},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 ke(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,F({},n.$params))||ke(o,F({},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 F(F({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=dn(e,1),o=n[0];return o==null?void 0:o.startsWith("pt:")}).reduce(function(e,n){var o=dn(n,2),r=o[0],i=o[1],c=r.split(":"),a=wa(c),l=a.slice(1);return l==null||l.reduce(function(d,m,h,b){return!d[m]&&(d[m]=h===b.length-1?i:{}),d[m]},e),e},{})},$_attrsWithoutPT:function(){return Object.entries(this.$attrs||{}).filter(function(e){var n=dn(e,1),o=n[0];return!(o!=null&&o.startsWith("pt:"))}).reduce(function(e,n){var o=dn(n,2),r=o[0],i=o[1];return e[r]=i,e},{})},$attrSelector:function(){return bn("pc")}}},Ia=`
143
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Yr(t,e){if(t){if(typeof t=="string")return ar(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)?ar(t,e):void 0}}function ar(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 ka(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 Xr(t){if(Array.isArray(t))return t}function lr(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 F(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?lr(Object(n),!0).forEach(function(o){hn(t,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):lr(Object(n)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(n,o))})}return t}function hn(t,e,n){return(e=Sa(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Sa(t){var e=Ca(t,"string");return zt(e)=="symbol"?e:e+""}function Ca(t,e){if(zt(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var o=n.call(t,e||"default");if(zt(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Tn={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,b=(e=this.pt)===null||e===void 0?void 0:e._usept,C=b?(n=this.pt)===null||n===void 0||(n=n.originalValue)===null||n===void 0?void 0:n[this.$.type.name]:void 0,T=b?(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,M=$?(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=M||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=Be(this.$el,'[data-pc-name="'.concat(Ne(this.$.type.name),'"]')),this.rootEl&&(this.rootEl.setAttribute(this.$attrSelector,""),this.rootEl.$pc=F({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 co(e)?e.apply(void 0,o):s.mergeProps.apply(void 0,o)},_loadStyles:function(){var e=this,n=function(){tt.isStyleNameLoaded("base")||(de.loadCSS(e.$styleOptions),e._loadGlobalStyles(),tt.setLoadedStyleName("base")),e._loadThemeStyles()};n(),this._themeChangeListener(n)},_loadCoreStyles:function(){var e,n;!tt.isStyleNameLoaded((e=this.$style)===null||e===void 0?void 0:e.name)&&(n=this.$style)!==null&&n!==void 0&&n.name&&(sr.loadCSS(this.$styleOptions),this.$options.style&&this.$style.loadCSS(this.$styleOptions),tt.setLoadedStyleName(this.$style.name))},_loadGlobalStyles:function(){var e=this._useGlobalPT(this._getOptionValue,"global.css",this.$params);W(e)&&de.load(e,F({name:"global"},this.$styleOptions))},_loadThemeStyles:function(){var e,n;if(!this.isUnstyled){if(!X.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;de.load(c==null?void 0:c.css,F({name:"primitive-variables"},this.$styleOptions)),de.load(a==null?void 0:a.css,F({name:"semantic-variables"},this.$styleOptions)),de.loadTheme(F({name:"global-style"},this.$styleOptions)),X.setLoadedStyleName("common")}if(!X.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,b=((l=this.$style)===null||l===void 0||(d=l.getComponentTheme)===null||d===void 0?void 0:d.call(l))||{},C=b.css;(m=this.$style)===null||m===void 0||m.load(C,F({name:"".concat(this.$style.name,"-variables")},this.$styleOptions)),(h=this.$style)===null||h===void 0||h.loadTheme(F({name:"".concat(this.$style.name,"-style")},this.$styleOptions)),X.setLoadedStyleName(this.$style.name)}if(!X.isStyleNameLoaded("layer-order")){var T,$,x=(T=this.$style)===null||T===void 0||($=T.getLayerOrderThemeCSS)===null||$===void 0?void 0:$.call(T);de.load(x,F({name:"layer-order",first:!0},this.$styleOptions)),X.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,F({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(){};tt.clearLoadedStyleNames(),qe.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 uo(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,b=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,F(F({},r),{},{global:b||{}})),T=this._getPTDatasets(o);return d||!d&&C?h?this._mergeProps(h,b,C,T):F(F(F({},b),C),T):F(F({},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"&&W((e=this.pt)===null||e===void 0?void 0:e["data-pc-section"]);return o!=="transition"&&F(F({},o==="root"&&F(hn({},"".concat(r,"name"),Ne(i?(n=this.pt)===null||n===void 0?void 0:n["data-pc-section"]:this.$.type.name)),i&&hn({},"".concat(r,"extend"),Ne(this.$.type.name)))),{},hn({},"".concat(r,"section"),Ne(o)))},_getPTClassValue:function(){var e=this._getOptionValue.apply(this,arguments);return ye(e)||fo(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=Ne(o),b=Ne(n.$name);return(l=d?h!==b?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,b=i(e.originalValue),C=i(e.value);return b===void 0&&C===void 0?void 0:ye(C)?C:ye(b)?b:d||!d&&C?h?this._mergeProps(h,b,C):F(F({},b),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,F(F({},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,F({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,F(F({},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,F(F({},this.$params),o)),i=this._getOptionValue(sr.inlineStyles,e,F(F({},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 ke(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,F({},n.$params))||ke(o,F({},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 F(F({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=dn(e,1),o=n[0];return o==null?void 0:o.startsWith("pt:")}).reduce(function(e,n){var o=dn(n,2),r=o[0],i=o[1],c=r.split(":"),a=wa(c),l=a.slice(1);return l==null||l.reduce(function(d,m,h,b){return!d[m]&&(d[m]=h===b.length-1?i:{}),d[m]},e),e},{})},$_attrsWithoutPT:function(){return Object.entries(this.$attrs||{}).filter(function(e){var n=dn(e,1),o=n[0];return!(o!=null&&o.startsWith("pt:"))}).reduce(function(e,n){var o=dn(n,2),r=o[0],i=o[1];return e[r]=i,e},{})},$attrSelector:function(){return bn("pc")}}},Ia=`
144
144
  .p-icon {
145
145
  display: inline-block;
146
146
  vertical-align: baseline;
@@ -316,7 +316,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
316
316
  color: `).concat(n("panelmenu.submenu.icon.focus.color"),`;
317
317
  }
318
318
  `)},Ma={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"},Ra=de.extend({name:"panelmenu",theme:Da,classes:Ma}),dr=Hr();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 fr(t,e){return ja(t)||Ha(t,e)||Va(t,e)||Ua()}function Ua(){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 Va(t,e){if(t){if(typeof t=="string")return mr(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)?mr(t,e):void 0}}function mr(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 Ha(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 ja(t){if(Array.isArray(t))return t}function pr(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 z(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?pr(Object(n),!0).forEach(function(o){Jn(t,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):pr(Object(n)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(n,o))})}return t}function Jn(t,e,n){return(e=Fa(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Fa(t){var e=Ka(t,"string");return Gt(e)=="symbol"?e:e+""}function Ka(t,e){if(Gt(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var o=n.call(t,e||"default");if(Gt(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var V={_getMeta:function(){return[ot(arguments.length<=0?void 0:arguments[0])||arguments.length<=0?void 0:arguments[0],ke(ot(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:uo,_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 ye(I)||fo(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,b=d.mergeProps,C=b===void 0?!1:b,T=a?V._useDefaultPT(o,o.defaultPT(),l,i,c):void 0,$=V._usePT(o,V._getPT(r,o.$name),l,i,z(z({},c),{},{global:T||{}})),x=V._getPTDatasets(o,i);return h||!h&&$?C?V._mergeProps(o,C,T,$,x):z(z(z({},T),$),x):z(z({},$),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 z(z({},n==="root"&&Jn({},"".concat(o,"name"),De(e.$name))),{},Jn({},"".concat(o,"section"),De(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=De(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,b=h===void 0?!1:h,C=c(n.originalValue),T=c(n.value);return C===void 0&&T===void 0?void 0:ye(T)?T:ye(C)?C:m||!m&&T?b?V._mergeProps(e,b,C,T):z(z({},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(!tt.isStyleNameLoaded((e=o.$style)===null||e===void 0?void 0:e.name)&&(n=o.$style)!==null&&n!==void 0&&n.name){var i;de.loadCSS(r),o.isUnstyled()&&((i=o.$style)===null||i===void 0||i.loadCSS(r)),tt.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(!X.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;de.load(l==null?void 0:l.css,z({name:"primitive-variables"},r)),de.load(d==null?void 0:d.css,z({name:"semantic-variables"},r)),de.loadTheme(z({name:"global-style"},r)),X.setLoadedStyleName("common")}if(!X.isStyleNameLoaded((e=o.$style)===null||e===void 0?void 0:e.name)&&(n=o.$style)!==null&&n!==void 0&&n.name){var m,h,b,C,T=((m=o.$style)===null||m===void 0||(h=m.getDirectiveTheme)===null||h===void 0?void 0:h.call(m))||{},$=T.css;(b=o.$style)===null||b===void 0||b.load($,z({name:"".concat(o.$style.name,"-variables")},r)),(C=o.$style)===null||C===void 0||C.loadTheme(z({name:"".concat(o.$style.name,"-style")},r)),X.setLoadedStyleName(o.$style.name)}if(!X.isStyleNameLoaded("layer-order")){var x,M,I=(x=o.$style)===null||x===void 0||(M=x.getLayerOrderThemeCSS)===null||M===void 0?void 0:M.call(x);de.load(I,z({name:"layer-order",first:!0},r)),X.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,z({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(){};tt.clearLoadedStyleNames(),qe.on("theme:change",e)},_hook:function(e,n,o,r,i,c){var a,l,d="on".concat(Ws(n)),m=V._getConfig(r,i),h=o==null?void 0:o.$instance,b=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};b==null||b(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 co(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,b,C;a._$instances=a._$instances||{};var T=V._getConfig(l,d),$=a._$instances[e]||{},x=lt($)?z(z({},n),n==null?void 0:n.methods):{};a._$instances[e]=z(z({},$),{},{$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:z({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]:"",j=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,z({},j))},ptmo:function(){var I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",j=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return V._getPTValue(a.$instance,I,B,j,!1)},cx:function(){var I,B,j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",Z=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,j,z({},Z))},sx:function(){var I,B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,Z=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return j?V._getOptionValue((I=a.$instance)===null||I===void 0||(I=I.$style)===null||I===void 0?void 0:I.inlineStyles,B,z({},Z)):void 0}},x),a.$instance=a._$instances[e],(h=(b=a.$instance)[c])===null||h===void 0||h.call(b,a,l,d,m),a["$".concat(e)]=a.$instance,V._hook(e,c,a,l,d,m),a.$pd||(a.$pd={}),a.$pd[e]=z(z({},(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,b=(a=c.$instance)===null||a===void 0?void 0:a.watch;b==null||(l=b.config)===null||l===void 0||l.call(c.$instance,(d=c.$instance)===null||d===void 0?void 0:d.$primevueConfig),dr.on("config:change",function(C){var T,$=C.newValue,x=C.oldValue;return b==null||(T=b.config)===null||T===void 0?void 0:T.call(c.$instance,$,x)}),b==null||(m=b["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),dr.on("config:ripple:change",function(C){var T,$=C.newValue,x=C.oldValue;return b==null||(T=b["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=bn("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=fr(e,2),o=n[0],r=n[1];return z({extend:function(){var c=V._getMeta.apply(V,arguments),a=fr(c,2),l=a[0],d=a[1];return V.extend(l,z(z(z({},r),r==null?void 0:r.methods),d))}},V._extend(o,r))}},za=function(e){var n=e.dt;return`
319
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Va(t,e){if(t){if(typeof t=="string")return mr(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)?mr(t,e):void 0}}function mr(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 Ha(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 ja(t){if(Array.isArray(t))return t}function pr(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 z(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?pr(Object(n),!0).forEach(function(o){Jn(t,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):pr(Object(n)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(n,o))})}return t}function Jn(t,e,n){return(e=Fa(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Fa(t){var e=Ka(t,"string");return Gt(e)=="symbol"?e:e+""}function Ka(t,e){if(Gt(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var o=n.call(t,e||"default");if(Gt(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var V={_getMeta:function(){return[ot(arguments.length<=0?void 0:arguments[0])||arguments.length<=0?void 0:arguments[0],ke(ot(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:uo,_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 ye(I)||fo(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,b=d.mergeProps,C=b===void 0?!1:b,T=a?V._useDefaultPT(o,o.defaultPT(),l,i,c):void 0,$=V._usePT(o,V._getPT(r,o.$name),l,i,z(z({},c),{},{global:T||{}})),x=V._getPTDatasets(o,i);return h||!h&&$?C?V._mergeProps(o,C,T,$,x):z(z(z({},T),$),x):z(z({},$),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 z(z({},n==="root"&&Jn({},"".concat(o,"name"),Ne(e.$name))),{},Jn({},"".concat(o,"section"),Ne(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=Ne(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,b=h===void 0?!1:h,C=c(n.originalValue),T=c(n.value);return C===void 0&&T===void 0?void 0:ye(T)?T:ye(C)?C:m||!m&&T?b?V._mergeProps(e,b,C,T):z(z({},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(!tt.isStyleNameLoaded((e=o.$style)===null||e===void 0?void 0:e.name)&&(n=o.$style)!==null&&n!==void 0&&n.name){var i;de.loadCSS(r),o.isUnstyled()&&((i=o.$style)===null||i===void 0||i.loadCSS(r)),tt.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(!X.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;de.load(l==null?void 0:l.css,z({name:"primitive-variables"},r)),de.load(d==null?void 0:d.css,z({name:"semantic-variables"},r)),de.loadTheme(z({name:"global-style"},r)),X.setLoadedStyleName("common")}if(!X.isStyleNameLoaded((e=o.$style)===null||e===void 0?void 0:e.name)&&(n=o.$style)!==null&&n!==void 0&&n.name){var m,h,b,C,T=((m=o.$style)===null||m===void 0||(h=m.getDirectiveTheme)===null||h===void 0?void 0:h.call(m))||{},$=T.css;(b=o.$style)===null||b===void 0||b.load($,z({name:"".concat(o.$style.name,"-variables")},r)),(C=o.$style)===null||C===void 0||C.loadTheme(z({name:"".concat(o.$style.name,"-style")},r)),X.setLoadedStyleName(o.$style.name)}if(!X.isStyleNameLoaded("layer-order")){var x,M,I=(x=o.$style)===null||x===void 0||(M=x.getLayerOrderThemeCSS)===null||M===void 0?void 0:M.call(x);de.load(I,z({name:"layer-order",first:!0},r)),X.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,z({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(){};tt.clearLoadedStyleNames(),qe.on("theme:change",e)},_hook:function(e,n,o,r,i,c){var a,l,d="on".concat(Ws(n)),m=V._getConfig(r,i),h=o==null?void 0:o.$instance,b=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};b==null||b(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 co(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,b,C;a._$instances=a._$instances||{};var T=V._getConfig(l,d),$=a._$instances[e]||{},x=lt($)?z(z({},n),n==null?void 0:n.methods):{};a._$instances[e]=z(z({},$),{},{$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:z({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]:"",j=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,z({},j))},ptmo:function(){var I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",j=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return V._getPTValue(a.$instance,I,B,j,!1)},cx:function(){var I,B,j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",Z=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,j,z({},Z))},sx:function(){var I,B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,Z=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return j?V._getOptionValue((I=a.$instance)===null||I===void 0||(I=I.$style)===null||I===void 0?void 0:I.inlineStyles,B,z({},Z)):void 0}},x),a.$instance=a._$instances[e],(h=(b=a.$instance)[c])===null||h===void 0||h.call(b,a,l,d,m),a["$".concat(e)]=a.$instance,V._hook(e,c,a,l,d,m),a.$pd||(a.$pd={}),a.$pd[e]=z(z({},(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,b=(a=c.$instance)===null||a===void 0?void 0:a.watch;b==null||(l=b.config)===null||l===void 0||l.call(c.$instance,(d=c.$instance)===null||d===void 0?void 0:d.$primevueConfig),dr.on("config:change",function(C){var T,$=C.newValue,x=C.oldValue;return b==null||(T=b.config)===null||T===void 0?void 0:T.call(c.$instance,$,x)}),b==null||(m=b["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),dr.on("config:ripple:change",function(C){var T,$=C.newValue,x=C.oldValue;return b==null||(T=b["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=bn("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=fr(e,2),o=n[0],r=n[1];return z({extend:function(){var c=V._getMeta.apply(V,arguments),a=fr(c,2),l=a[0],d=a[1];return V.extend(l,z(z(z({},r),r==null?void 0:r.methods),d))}},V._extend(o,r))}},za=function(e){var n=e.dt;return`
320
320
  .p-ink {
321
321
  display: block;
322
322
  position: absolute;
@@ -338,7 +338,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
338
338
  }
339
339
  `)},Wa={root:"p-ink"},Ga=de.extend({name:"ripple-directive",theme:za,classes:Wa}),qa=V.extend({style:Ga});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 Ya(t){return Qa(t)||Ja(t)||Za(t)||Xa()}function Xa(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
340
340
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Za(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 Qa(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 hr(t,e,n){return(e=el(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function el(t){var e=tl(t,"string");return qt(e)=="symbol"?e:e+""}function tl(t,e){if(qt(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var o=n.call(t,e||"default");if(qt(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var nl=qa.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=Rs("span",hr(hr({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()&&Mn(r,"p-ink-active"),r.setAttribute("data-p-ink-active","false"),!qo(r)&&!Yo(r)){var i=Math.max(Ms(o),Hs(o));r.style.height=i+"px",r.style.width=i+"px"}var c=Vs(o),a=e.pageX-c.left+document.body.scrollTop-Yo(r)/2,l=e.pageY-c.top+document.body.scrollLeft-qo(r)/2;r.style.top=l+"px",r.style.left=a+"px",!this.isUnstyled()&&Ds(r,"p-ink-active"),r.setAttribute("data-p-ink-active","true"),this.timeout=setTimeout(function(){r&&(!n.isUnstyled()&&Mn(r,"p-ink-active"),r.setAttribute("data-p-ink-active","false"))},401)}},onAnimationEnd:function(e){this.timeout&&clearTimeout(this.timeout),!this.isUnstyled()&&Mn(e.currentTarget,"p-ink-active"),e.currentTarget.setAttribute("data-p-ink-active","false")},getInk:function(e){return e&&e.children?Ya(e.children).find(function(n){return Mt(n,"data-pc-name")==="ripple"}):void 0}}}),ol={name:"BasePanelMenu",extends:Tn,props:{model:{type:Array,default:null},expandedKeys:{type:Object,default:null},multiple:{type:Boolean,default:!1},tabindex:{type:Number,default:0}},style:Ra,provide:function(){return{$pcPanelMenu:this,$parentInstance:this}}},Jr={name:"PanelMenuSub",hostName:"PanelMenu",extends:Tn,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?ke(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 W(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:po,ChevronDownIcon:mo},directives:{ripple:nl}},rl=["tabindex"],il=["id","aria-label","aria-expanded","aria-level","aria-setsize","aria-posinset","data-p-focused","data-p-disabled"],sl=["onClick","onMousemove"],al=["href","target"];function ll(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,al)),[[a]])],16,sl),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,il)):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,rl)}Jr.render=ll;function cl(t,e){return ml(t)||fl(t,e)||dl(t,e)||ul()}function ul(){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 dl(t,e){if(t){if(typeof t=="string")return gr(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)?gr(t,e):void 0}}function gr(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 fl(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 ml(t){if(Array.isArray(t))return t}var Qr={name:"PanelMenuList",hostName:"PanelMenu",extends:Tn,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?ke(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 W(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&&zs(e.key)&&this.searchItems(e,e.key);break}},onArrowDownKey:function(e){var n=W(this.focusedItem)?this.findNextItem(this.focusedItem):this.findFirstItem();this.changeFocusedItem({originalEvent:e,processedItem:n,focusOnNext:!0}),e.preventDefault()},onArrowUpKey:function(e){var n=W(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(W(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=W(this.focusedItem.parent)?this.focusedItem.parent:this.focusedItem,e.preventDefault()}},onArrowRightKey:function(e){var n=this;if(W(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(W(this.focusedItem)){var n=Ne(this.$el,'li[id="'.concat("".concat(this.focusedItemId),'"]')),o=n&&(Ne(n,'[data-pc-section="itemlink"]')||Ne(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,Dt(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 Xo(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?Xo(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(W(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=lt(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 W(r)&&(i=!0),lt(r)&&lt(this.focusedItem)&&(r=this.findFirstItem()),W(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;W(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=Ne(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=cl(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 W(this.focusedItem)?"".concat(this.panelId,"_").concat(this.focusedItem.key):null}},components:{PanelMenuSub:Jr}};function pl(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"])}Qr.render=pl;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 vr(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 hl(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?vr(Object(n),!0).forEach(function(o){gl(t,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):vr(Object(n)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(n,o))})}return t}function gl(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=yl(t,"string");return Yt(e)=="symbol"?e:e+""}function yl(t,e){if(Yt(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var o=n.call(t,e||"default");if(Yt(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var ei={name:"PanelMenu",extends:ol,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||bn()}},mounted:function(){this.id=this.id||bn()},methods:{getItemProp:function(e,n){return e?ke(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 yt(e,n)}):yt(e,this.activeItem)},isItemVisible:function(e){return this.getItemProp(e,"visible")!==!1},isItemDisabled:function(e){return this.getItemProp(e,"disabled")},isItemFocused:function(e){return yt(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),Dt(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=Mt(e.currentTarget,"data-p-active")===!0?Ne(e.currentTarget.nextElementSibling,'[data-pc-section="rootlist"]'):null;n?Dt(n):this.updateFocusedHeader({originalEvent:e,focusOnNext:!0}),e.preventDefault()},onHeaderArrowUpKey:function(e){var n=this.findPrevHeader(e.currentTarget.parentElement)||this.findLastHeader(),o=Mt(n,"data-p-active")===!0?Ne(n.nextElementSibling,'[data-pc-section="rootlist"]'):null;o?Dt(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=Ne(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=Ne(o,'[data-pc-section="header"]');return r?Mt(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=Ne(o,'[data-pc-section="header"]');return r?Mt(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?Ne(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&&yt(n,this.activeItem)?null:n,this.multiple&&(this.activeItems.some(function(c){return yt(n,c)})?this.activeItems=this.activeItems.filter(function(c){return!yt(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=hl({},this.expandedKeys);r?i[n.key]=!0:delete i[n.key],this.$emit("update:expandedKeys",i)}},changeFocusedHeader:function(e,n){n&&Dt(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:Qr,ChevronRightIcon:po,ChevronDownIcon:mo}},bl=["id"],wl=["id","tabindex","aria-label","aria-expanded","aria-controls","aria-disabled","onClick","onKeydown","data-p-active","data-p-disabled"],_l=["href"],kl=["id","aria-labelledby"];function Sl(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,_l))],16)],16,wl),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,kl),[[s.vShow,i.isItemActive(a)]])]}),_:2},1040)],16)):s.createCommentVNode("",!0)],64)}),128))],16,bl)}ei.render=Sl;const Cl={class:"panel-menu-wrapper"},Il=["data-active","href","onClick"],Tl={class:"material-symbols-outlined item-menu-icon-left"},El={key:1,class:"item-menu sf-ripple"},Pl={key:0,class:"material-symbols-outlined item-menu-icon-left"},Al=s.defineComponent({__name:"NavMenu",props:{items:{}},setup(t){const e=t,n=ao();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",Cl,[s.createVNode(s.unref(ei),{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",Tl,s.toDisplayString(a.icon??"chevron_right"),1),s.createElementVNode("span",null,s.toDisplayString(a.text),1)],8,Il)]),_:2},1032,["to"])):(s.openBlock(),s.createElementBlock("a",El,[a.icon?(s.openBlock(),s.createElementBlock("span",Pl,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"])])}}}),xl=Cn(Al,[["__scopeId","data-v-74bc83ee"]]),ti="SweetAlert2:",Ll=t=>{const e=[];for(let n=0;n<t.length;n++)e.indexOf(t[n])===-1&&e.push(t[n]);return e},ho=t=>t.charAt(0).toUpperCase()+t.slice(1),Ce=t=>Array.prototype.slice.call(t),be=t=>{console.warn(`${ti} ${typeof t=="object"?t.join(" "):t}`)},ft=t=>{console.error(`${ti} ${t}`)},yr=[],Ol=t=>{yr.includes(t)||(yr.push(t),be(t))},$l=(t,e)=>{Ol(`"${t}" is deprecated and will be removed in the next major release. Please use "${e}" instead.`)},En=t=>typeof t=="function"?t():t,go=t=>t&&typeof t.toPromise=="function",Jt=t=>go(t)?t.toPromise():Promise.resolve(t),vo=t=>t&&Promise.resolve(t)===t,bt={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},Bl=["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"],Nl={},Dl=["allowOutsideClick","allowEnterKey","backdrop","focusConfirm","focusDeny","focusCancel","returnFocus","heightAuto","keydownListenerCapture"],ni=t=>Object.prototype.hasOwnProperty.call(bt,t),oi=t=>Bl.indexOf(t)!==-1,eo=t=>Nl[t],Ml=t=>{ni(t)||be(`Unknown parameter "${t}"`)},Rl=t=>{Dl.includes(t)&&be(`The parameter "${t}" is incompatible with toasts`)},Ul=t=>{eo(t)&&$l(t,eo(t))},Vl=t=>{!t.backdrop&&t.allowOutsideClick&&be('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`');for(const e in t)Ml(e),t.toast&&Rl(e),Ul(e)},Hl="swal2-",ri=t=>{const e={};for(const n in t)e[t[n]]=Hl+t[n];return e},g=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"]),Ht=ri(["success","warning","info","question","error"]),ae=()=>document.body.querySelector(`.${g.container}`),Qt=t=>{const e=ae();return e?e.querySelector(t):null},Ae=t=>Qt(`.${t}`),G=()=>Ae(g.popup),en=()=>Ae(g.icon),ii=()=>Ae(g.title),_n=()=>Ae(g["html-container"]),si=()=>Ae(g.image),ai=()=>Ae(g["progress-steps"]),Pn=()=>Ae(g["validation-message"]),Me=()=>Qt(`.${g.actions} .${g.confirm}`),rt=()=>Qt(`.${g.actions} .${g.deny}`),jl=()=>Ae(g["input-label"]),St=()=>Qt(`.${g.loader}`),ut=()=>Qt(`.${g.actions} .${g.cancel}`),tn=()=>Ae(g.actions),li=()=>Ae(g.footer),An=()=>Ae(g["timer-progress-bar"]),yo=()=>Ae(g.close),Fl=`
341
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function dl(t,e){if(t){if(typeof t=="string")return gr(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)?gr(t,e):void 0}}function gr(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 fl(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 ml(t){if(Array.isArray(t))return t}var Qr={name:"PanelMenuList",hostName:"PanelMenu",extends:Tn,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?ke(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 W(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&&zs(e.key)&&this.searchItems(e,e.key);break}},onArrowDownKey:function(e){var n=W(this.focusedItem)?this.findNextItem(this.focusedItem):this.findFirstItem();this.changeFocusedItem({originalEvent:e,processedItem:n,focusOnNext:!0}),e.preventDefault()},onArrowUpKey:function(e){var n=W(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(W(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=W(this.focusedItem.parent)?this.focusedItem.parent:this.focusedItem,e.preventDefault()}},onArrowRightKey:function(e){var n=this;if(W(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(W(this.focusedItem)){var n=Be(this.$el,'li[id="'.concat("".concat(this.focusedItemId),'"]')),o=n&&(Be(n,'[data-pc-section="itemlink"]')||Be(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,Dt(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 Xo(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?Xo(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(W(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=lt(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 W(r)&&(i=!0),lt(r)&&lt(this.focusedItem)&&(r=this.findFirstItem()),W(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;W(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=Be(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=cl(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 W(this.focusedItem)?"".concat(this.panelId,"_").concat(this.focusedItem.key):null}},components:{PanelMenuSub:Jr}};function pl(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"])}Qr.render=pl;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 vr(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 hl(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?vr(Object(n),!0).forEach(function(o){gl(t,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):vr(Object(n)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(n,o))})}return t}function gl(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=yl(t,"string");return Yt(e)=="symbol"?e:e+""}function yl(t,e){if(Yt(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var o=n.call(t,e||"default");if(Yt(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var ei={name:"PanelMenu",extends:ol,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||bn()}},mounted:function(){this.id=this.id||bn()},methods:{getItemProp:function(e,n){return e?ke(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 yt(e,n)}):yt(e,this.activeItem)},isItemVisible:function(e){return this.getItemProp(e,"visible")!==!1},isItemDisabled:function(e){return this.getItemProp(e,"disabled")},isItemFocused:function(e){return yt(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),Dt(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=Mt(e.currentTarget,"data-p-active")===!0?Be(e.currentTarget.nextElementSibling,'[data-pc-section="rootlist"]'):null;n?Dt(n):this.updateFocusedHeader({originalEvent:e,focusOnNext:!0}),e.preventDefault()},onHeaderArrowUpKey:function(e){var n=this.findPrevHeader(e.currentTarget.parentElement)||this.findLastHeader(),o=Mt(n,"data-p-active")===!0?Be(n.nextElementSibling,'[data-pc-section="rootlist"]'):null;o?Dt(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=Be(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=Be(o,'[data-pc-section="header"]');return r?Mt(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=Be(o,'[data-pc-section="header"]');return r?Mt(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?Be(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&&yt(n,this.activeItem)?null:n,this.multiple&&(this.activeItems.some(function(c){return yt(n,c)})?this.activeItems=this.activeItems.filter(function(c){return!yt(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=hl({},this.expandedKeys);r?i[n.key]=!0:delete i[n.key],this.$emit("update:expandedKeys",i)}},changeFocusedHeader:function(e,n){n&&Dt(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:Qr,ChevronRightIcon:po,ChevronDownIcon:mo}},bl=["id"],wl=["id","tabindex","aria-label","aria-expanded","aria-controls","aria-disabled","onClick","onKeydown","data-p-active","data-p-disabled"],_l=["href"],kl=["id","aria-labelledby"];function Sl(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,_l))],16)],16,wl),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,kl),[[s.vShow,i.isItemActive(a)]])]}),_:2},1040)],16)):s.createCommentVNode("",!0)],64)}),128))],16,bl)}ei.render=Sl;const Cl={class:"panel-menu-wrapper"},Il=["data-active","href","onClick"],Tl={class:"material-symbols-outlined item-menu-icon-left"},El={key:1,class:"item-menu sf-ripple"},Pl={key:0,class:"material-symbols-outlined item-menu-icon-left"},Al=s.defineComponent({__name:"NavMenu",props:{items:{}},setup(t){const e=t,n=ao();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",Cl,[s.createVNode(s.unref(ei),{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",Tl,s.toDisplayString(a.icon??"chevron_right"),1),s.createElementVNode("span",null,s.toDisplayString(a.text),1)],8,Il)]),_:2},1032,["to"])):(s.openBlock(),s.createElementBlock("a",El,[a.icon?(s.openBlock(),s.createElementBlock("span",Pl,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"])])}}}),xl=Cn(Al,[["__scopeId","data-v-74bc83ee"]]),ti="SweetAlert2:",Ll=t=>{const e=[];for(let n=0;n<t.length;n++)e.indexOf(t[n])===-1&&e.push(t[n]);return e},ho=t=>t.charAt(0).toUpperCase()+t.slice(1),Ce=t=>Array.prototype.slice.call(t),be=t=>{console.warn(`${ti} ${typeof t=="object"?t.join(" "):t}`)},ft=t=>{console.error(`${ti} ${t}`)},yr=[],Ol=t=>{yr.includes(t)||(yr.push(t),be(t))},$l=(t,e)=>{Ol(`"${t}" is deprecated and will be removed in the next major release. Please use "${e}" instead.`)},En=t=>typeof t=="function"?t():t,go=t=>t&&typeof t.toPromise=="function",Jt=t=>go(t)?t.toPromise():Promise.resolve(t),vo=t=>t&&Promise.resolve(t)===t,bt={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},Bl=["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"],Nl={},Dl=["allowOutsideClick","allowEnterKey","backdrop","focusConfirm","focusDeny","focusCancel","returnFocus","heightAuto","keydownListenerCapture"],ni=t=>Object.prototype.hasOwnProperty.call(bt,t),oi=t=>Bl.indexOf(t)!==-1,eo=t=>Nl[t],Ml=t=>{ni(t)||be(`Unknown parameter "${t}"`)},Rl=t=>{Dl.includes(t)&&be(`The parameter "${t}" is incompatible with toasts`)},Ul=t=>{eo(t)&&$l(t,eo(t))},Vl=t=>{!t.backdrop&&t.allowOutsideClick&&be('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`');for(const e in t)Ml(e),t.toast&&Rl(e),Ul(e)},Hl="swal2-",ri=t=>{const e={};for(const n in t)e[t[n]]=Hl+t[n];return e},g=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"]),Ht=ri(["success","warning","info","question","error"]),ae=()=>document.body.querySelector(`.${g.container}`),Qt=t=>{const e=ae();return e?e.querySelector(t):null},Ae=t=>Qt(`.${t}`),G=()=>Ae(g.popup),en=()=>Ae(g.icon),ii=()=>Ae(g.title),_n=()=>Ae(g["html-container"]),si=()=>Ae(g.image),ai=()=>Ae(g["progress-steps"]),Pn=()=>Ae(g["validation-message"]),De=()=>Qt(`.${g.actions} .${g.confirm}`),rt=()=>Qt(`.${g.actions} .${g.deny}`),jl=()=>Ae(g["input-label"]),St=()=>Qt(`.${g.loader}`),ut=()=>Qt(`.${g.actions} .${g.cancel}`),tn=()=>Ae(g.actions),li=()=>Ae(g.footer),An=()=>Ae(g["timer-progress-bar"]),yo=()=>Ae(g.close),Fl=`
342
342
  a[href],
343
343
  area[href],
344
344
  input:not([disabled]),
@@ -353,7 +353,7 @@ 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
- `,bo=()=>{const t=Ce(G().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=Ce(G().querySelectorAll(Fl)).filter(n=>n.getAttribute("tabindex")!=="-1");return Ll(t.concat(e)).filter(n=>Se(n))},wo=()=>Ze(document.body,g.shown)&&!Ze(document.body,g["toast-shown"])&&!Ze(document.body,g["no-backdrop"]),xn=()=>G()&&Ze(G(),g.toast),Kl=()=>G().hasAttribute("data-loading"),wt={previousBodyPadding:null},se=(t,e)=>{if(t.textContent="",e){const o=new DOMParser().parseFromString(e,"text/html");Ce(o.querySelector("head").childNodes).forEach(r=>{t.appendChild(r)}),Ce(o.querySelector("body").childNodes).forEach(r=>{t.appendChild(r)})}},Ze=(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},zl=(t,e)=>{Ce(t.classList).forEach(n=>{!Object.values(g).includes(n)&&!Object.values(Ht).includes(n)&&!Object.values(e.showClass).includes(n)&&t.classList.remove(n)})},Ee=(t,e,n)=>{if(zl(t,e),e.customClass&&e.customClass[n]){if(typeof e.customClass[n]!="string"&&!e.customClass[n].forEach)return be(`Invalid type of customClass.${n}! Expected string or iterable object, got "${typeof e.customClass[n]}"`);K(t,e.customClass[n])}},_o=(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}`)}},ci=t=>{if(t.focus(),t.type!=="file"){const e=t.value;t.value="",t.value=e}},ui=(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)}))},K=(t,e)=>{ui(t,e,!0)},Fe=(t,e)=>{ui(t,e,!1)},nt=(t,e)=>{const n=Ce(t.childNodes);for(let o=0;o<n.length;o++)if(Ze(n[o],e))return n[o]},jt=(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},le=t=>{t.style.display="none"},br=(t,e,n,o)=>{const r=t.querySelector(e);r&&(r.style[n]=o)},Ln=(t,e,n)=>{e?ne(t,n):le(t)},Se=t=>!!(t&&(t.offsetWidth||t.offsetHeight||t.getClientRects().length)),Wl=()=>!Se(Me())&&!Se(rt())&&!Se(ut()),wr=t=>t.scrollHeight>t.clientHeight,di=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},ko=(t,e=!1)=>{const n=An();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))},Gl=()=>{const t=An(),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}%`},fi=()=>typeof window>"u"||typeof document>"u",ql=100,D={},Yl=()=>{D.previousActiveElement&&D.previousActiveElement.focus?(D.previousActiveElement.focus(),D.previousActiveElement=null):document.body&&document.body.focus()},Xl=t=>new Promise(e=>{if(!t)return e();const n=window.scrollX,o=window.scrollY;D.restoreFocusTimeout=setTimeout(()=>{Yl(),e()},ql),window.scrollTo(n,o)}),Zl=`
356
+ `,bo=()=>{const t=Ce(G().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=Ce(G().querySelectorAll(Fl)).filter(n=>n.getAttribute("tabindex")!=="-1");return Ll(t.concat(e)).filter(n=>Se(n))},wo=()=>Ze(document.body,g.shown)&&!Ze(document.body,g["toast-shown"])&&!Ze(document.body,g["no-backdrop"]),xn=()=>G()&&Ze(G(),g.toast),Kl=()=>G().hasAttribute("data-loading"),wt={previousBodyPadding:null},se=(t,e)=>{if(t.textContent="",e){const o=new DOMParser().parseFromString(e,"text/html");Ce(o.querySelector("head").childNodes).forEach(r=>{t.appendChild(r)}),Ce(o.querySelector("body").childNodes).forEach(r=>{t.appendChild(r)})}},Ze=(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},zl=(t,e)=>{Ce(t.classList).forEach(n=>{!Object.values(g).includes(n)&&!Object.values(Ht).includes(n)&&!Object.values(e.showClass).includes(n)&&t.classList.remove(n)})},Ee=(t,e,n)=>{if(zl(t,e),e.customClass&&e.customClass[n]){if(typeof e.customClass[n]!="string"&&!e.customClass[n].forEach)return be(`Invalid type of customClass.${n}! Expected string or iterable object, got "${typeof e.customClass[n]}"`);K(t,e.customClass[n])}},_o=(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}`)}},ci=t=>{if(t.focus(),t.type!=="file"){const e=t.value;t.value="",t.value=e}},ui=(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)}))},K=(t,e)=>{ui(t,e,!0)},Fe=(t,e)=>{ui(t,e,!1)},nt=(t,e)=>{const n=Ce(t.childNodes);for(let o=0;o<n.length;o++)if(Ze(n[o],e))return n[o]},jt=(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},le=t=>{t.style.display="none"},br=(t,e,n,o)=>{const r=t.querySelector(e);r&&(r.style[n]=o)},Ln=(t,e,n)=>{e?ne(t,n):le(t)},Se=t=>!!(t&&(t.offsetWidth||t.offsetHeight||t.getClientRects().length)),Wl=()=>!Se(De())&&!Se(rt())&&!Se(ut()),wr=t=>t.scrollHeight>t.clientHeight,di=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},ko=(t,e=!1)=>{const n=An();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))},Gl=()=>{const t=An(),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}%`},fi=()=>typeof window>"u"||typeof document>"u",ql=100,D={},Yl=()=>{D.previousActiveElement&&D.previousActiveElement.focus?(D.previousActiveElement.focus(),D.previousActiveElement=null):document.body&&document.body.focus()},Xl=t=>new Promise(e=>{if(!t)return e();const n=window.scrollX,o=window.scrollY;D.restoreFocusTimeout=setTimeout(()=>{Yl(),e()},ql),window.scrollTo(n,o)}),Zl=`
357
357
  <div aria-labelledby="${g.title}" aria-describedby="${g["html-container"]}" class="${g.popup}" tabindex="-1">
358
358
  <button type="button" class="${g.close}"></button>
359
359
  <ul class="${g["progress-steps"]}"></ul>
@@ -386,7 +386,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
386
386
  <div class="${g["timer-progress-bar"]}"></div>
387
387
  </div>
388
388
  </div>
389
- `.replace(/(^|\n)\s*/g,""),Jl=()=>{const t=ae();return t?(t.remove(),Fe([document.documentElement,document.body],[g["no-backdrop"],g["toast-shown"],g["has-column"]]),!0):!1},st=()=>{D.currentInstance.resetValidationMessage()},Ql=()=>{const t=G(),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=st,n.onchange=st,i.onchange=st,c.onchange=st,a.oninput=st,o.oninput=()=>{st(),r.value=o.value},o.onchange=()=>{st(),o.nextSibling.value=o.value}},ec=t=>typeof t=="string"?document.querySelector(t):t,tc=t=>{const e=G();e.setAttribute("role",t.toast?"alert":"dialog"),e.setAttribute("aria-live",t.toast?"polite":"assertive"),t.toast||e.setAttribute("aria-modal","true")},nc=t=>{window.getComputedStyle(t).direction==="rtl"&&K(ae(),g.rtl)},oc=t=>{const e=Jl();if(fi()){ft("SweetAlert2 requires document to initialize");return}const n=document.createElement("div");n.className=g.container,e&&K(n,g["no-transition"]),se(n,Zl);const o=ec(t.target);o.appendChild(n),tc(t),nc(o),Ql()},So=(t,e)=>{t instanceof HTMLElement?e.appendChild(t):typeof t=="object"?rc(t,e):t&&se(e,t)},rc=(t,e)=>{t.jquery?ic(e,t):se(e,t.toString())},ic=(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))},Xt=(()=>{if(fi())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})(),sc=()=>{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},ac=(t,e)=>{const n=tn(),o=St();!e.showConfirmButton&&!e.showDenyButton&&!e.showCancelButton?le(n):ne(n),Ee(n,e,"actions"),lc(n,o,e),se(o,e.loaderHtml),Ee(o,e,"loader")};function lc(t,e,n){const o=Me(),r=rt(),i=ut();Hn(o,"confirm",n),Hn(r,"deny",n),Hn(i,"cancel",n),cc(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 cc(t,e,n,o){if(!o.buttonsStyling)return Fe([t,e,n],g.styled);K([t,e,n],g.styled),o.confirmButtonColor&&(t.style.backgroundColor=o.confirmButtonColor,K(t,g["default-outline"])),o.denyButtonColor&&(e.style.backgroundColor=o.denyButtonColor,K(e,g["default-outline"])),o.cancelButtonColor&&(n.style.backgroundColor=o.cancelButtonColor,K(n,g["default-outline"]))}function Hn(t,e,n){Ln(t,n[`show${ho(e)}Button`],"inline-block"),se(t,n[`${e}ButtonText`]),t.setAttribute("aria-label",n[`${e}ButtonAriaLabel`]),t.className=g[e],Ee(t,n,`${e}Button`),K(t,n[`${e}ButtonClass`])}function uc(t,e){typeof e=="string"?t.style.background=e:e||K([document.documentElement,document.body],g["no-backdrop"])}function dc(t,e){e in g?K(t,g[e]):(be('The "position" parameter is not valid, defaulting to "center"'),K(t,g.center))}function fc(t,e){if(e&&typeof e=="string"){const n=`grow-${e}`;n in g&&K(t,g[n])}}const mc=(t,e)=>{const n=ae();n&&(uc(n,e.backdrop),dc(n,e.position),fc(n,e.grow),Ee(n,e,"container"))},R={awaitingPromise:new WeakMap,promise:new WeakMap,innerParams:new WeakMap,domCache:new WeakMap},pc=["input","file","range","select","radio","checkbox","textarea"],hc=(t,e)=>{const n=G(),o=R.innerParams.get(t),r=!o||e.input!==o.input;pc.forEach(i=>{const c=g[i],a=nt(n,c);yc(i,e.inputAttributes),a.className=c,r&&le(a)}),e.input&&(r&&gc(e),bc(e))},gc=t=>{if(!ve[t.input])return ft(`Unexpected type of input! Expected "text", "email", "password", "number", "tel", "select", "radio", "checkbox", "textarea", "file" or "url", got "${t.input}"`);const e=mi(t.input),n=ve[t.input](e,t);ne(n),setTimeout(()=>{ci(n)})},vc=t=>{for(let e=0;e<t.attributes.length;e++){const n=t.attributes[e].name;["type","value","style"].includes(n)||t.removeAttribute(n)}},yc=(t,e)=>{const n=_o(G(),t);if(n){vc(n);for(const o in e)n.setAttribute(o,e[o])}},bc=t=>{const e=mi(t.input);t.customClass&&K(e,t.customClass.input)},Co=(t,e)=>{(!t.placeholder||e.inputPlaceholder)&&(t.placeholder=e.inputPlaceholder)},nn=(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,K(o,n.customClass.inputLabel),o.innerText=n.inputLabel,e.insertAdjacentElement("beforebegin",o)}},mi=t=>{const e=g[t]?g[t]:g.input;return nt(G(),e)},ve={};ve.text=ve.email=ve.password=ve.number=ve.tel=ve.url=(t,e)=>(typeof e.inputValue=="string"||typeof e.inputValue=="number"?t.value=e.inputValue:vo(e.inputValue)||be(`Unexpected type of inputValue! Expected "string", "number" or "Promise", got "${typeof e.inputValue}"`),nn(t,t,e),Co(t,e),t.type=e.input,t);ve.file=(t,e)=>(nn(t,t,e),Co(t,e),t);ve.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,nn(n,t,e),t};ve.select=(t,e)=>{if(t.textContent="",e.inputPlaceholder){const n=document.createElement("option");se(n,e.inputPlaceholder),n.value="",n.disabled=!0,n.selected=!0,t.appendChild(n)}return nn(t,t,e),t};ve.radio=t=>(t.textContent="",t);ve.checkbox=(t,e)=>{const n=_o(G(),"checkbox");n.value="1",n.id=g.checkbox,n.checked=!!e.inputValue;const o=t.querySelector("span");return se(o,e.inputPlaceholder),t};ve.textarea=(t,e)=>{t.value=e.inputValue,Co(t,e),nn(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(G()).width),r=()=>{const i=t.offsetWidth+n(t);i>o?G().style.width=`${i}px`:G().style.width=null};new MutationObserver(r).observe(t,{attributes:!0,attributeFilter:["style"]})}}),t};const wc=(t,e)=>{const n=_n();Ee(n,e,"htmlContainer"),e.html?(So(e.html,n),ne(n,"block")):e.text?(n.textContent=e.text,ne(n,"block")):le(n),hc(t,e)},_c=(t,e)=>{const n=li();Ln(n,e.footer),e.footer&&So(e.footer,n),Ee(n,e,"footer")},kc=(t,e)=>{const n=yo();se(n,e.closeButtonHtml),Ee(n,e,"closeButton"),Ln(n,e.showCloseButton),n.setAttribute("aria-label",e.closeButtonAriaLabel)},Sc=(t,e)=>{const n=R.innerParams.get(t),o=en();if(n&&e.icon===n.icon){kr(o,e),_r(o,e);return}if(!e.icon&&!e.iconHtml)return le(o);if(e.icon&&Object.keys(Ht).indexOf(e.icon)===-1)return ft(`Unknown icon! Expected "success", "error", "warning", "info" or "question", got "${e.icon}"`),le(o);ne(o),kr(o,e),_r(o,e),K(o,e.showClass.icon)},_r=(t,e)=>{for(const n in Ht)e.icon!==n&&Fe(t,Ht[n]);K(t,Ht[e.icon]),Ec(t,e),Cc(),Ee(t,e,"icon")},Cc=()=>{const t=G(),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},Ic=`
389
+ `.replace(/(^|\n)\s*/g,""),Jl=()=>{const t=ae();return t?(t.remove(),Fe([document.documentElement,document.body],[g["no-backdrop"],g["toast-shown"],g["has-column"]]),!0):!1},st=()=>{D.currentInstance.resetValidationMessage()},Ql=()=>{const t=G(),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=st,n.onchange=st,i.onchange=st,c.onchange=st,a.oninput=st,o.oninput=()=>{st(),r.value=o.value},o.onchange=()=>{st(),o.nextSibling.value=o.value}},ec=t=>typeof t=="string"?document.querySelector(t):t,tc=t=>{const e=G();e.setAttribute("role",t.toast?"alert":"dialog"),e.setAttribute("aria-live",t.toast?"polite":"assertive"),t.toast||e.setAttribute("aria-modal","true")},nc=t=>{window.getComputedStyle(t).direction==="rtl"&&K(ae(),g.rtl)},oc=t=>{const e=Jl();if(fi()){ft("SweetAlert2 requires document to initialize");return}const n=document.createElement("div");n.className=g.container,e&&K(n,g["no-transition"]),se(n,Zl);const o=ec(t.target);o.appendChild(n),tc(t),nc(o),Ql()},So=(t,e)=>{t instanceof HTMLElement?e.appendChild(t):typeof t=="object"?rc(t,e):t&&se(e,t)},rc=(t,e)=>{t.jquery?ic(e,t):se(e,t.toString())},ic=(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))},Xt=(()=>{if(fi())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})(),sc=()=>{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},ac=(t,e)=>{const n=tn(),o=St();!e.showConfirmButton&&!e.showDenyButton&&!e.showCancelButton?le(n):ne(n),Ee(n,e,"actions"),lc(n,o,e),se(o,e.loaderHtml),Ee(o,e,"loader")};function lc(t,e,n){const o=De(),r=rt(),i=ut();Hn(o,"confirm",n),Hn(r,"deny",n),Hn(i,"cancel",n),cc(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 cc(t,e,n,o){if(!o.buttonsStyling)return Fe([t,e,n],g.styled);K([t,e,n],g.styled),o.confirmButtonColor&&(t.style.backgroundColor=o.confirmButtonColor,K(t,g["default-outline"])),o.denyButtonColor&&(e.style.backgroundColor=o.denyButtonColor,K(e,g["default-outline"])),o.cancelButtonColor&&(n.style.backgroundColor=o.cancelButtonColor,K(n,g["default-outline"]))}function Hn(t,e,n){Ln(t,n[`show${ho(e)}Button`],"inline-block"),se(t,n[`${e}ButtonText`]),t.setAttribute("aria-label",n[`${e}ButtonAriaLabel`]),t.className=g[e],Ee(t,n,`${e}Button`),K(t,n[`${e}ButtonClass`])}function uc(t,e){typeof e=="string"?t.style.background=e:e||K([document.documentElement,document.body],g["no-backdrop"])}function dc(t,e){e in g?K(t,g[e]):(be('The "position" parameter is not valid, defaulting to "center"'),K(t,g.center))}function fc(t,e){if(e&&typeof e=="string"){const n=`grow-${e}`;n in g&&K(t,g[n])}}const mc=(t,e)=>{const n=ae();n&&(uc(n,e.backdrop),dc(n,e.position),fc(n,e.grow),Ee(n,e,"container"))},R={awaitingPromise:new WeakMap,promise:new WeakMap,innerParams:new WeakMap,domCache:new WeakMap},pc=["input","file","range","select","radio","checkbox","textarea"],hc=(t,e)=>{const n=G(),o=R.innerParams.get(t),r=!o||e.input!==o.input;pc.forEach(i=>{const c=g[i],a=nt(n,c);yc(i,e.inputAttributes),a.className=c,r&&le(a)}),e.input&&(r&&gc(e),bc(e))},gc=t=>{if(!ve[t.input])return ft(`Unexpected type of input! Expected "text", "email", "password", "number", "tel", "select", "radio", "checkbox", "textarea", "file" or "url", got "${t.input}"`);const e=mi(t.input),n=ve[t.input](e,t);ne(n),setTimeout(()=>{ci(n)})},vc=t=>{for(let e=0;e<t.attributes.length;e++){const n=t.attributes[e].name;["type","value","style"].includes(n)||t.removeAttribute(n)}},yc=(t,e)=>{const n=_o(G(),t);if(n){vc(n);for(const o in e)n.setAttribute(o,e[o])}},bc=t=>{const e=mi(t.input);t.customClass&&K(e,t.customClass.input)},Co=(t,e)=>{(!t.placeholder||e.inputPlaceholder)&&(t.placeholder=e.inputPlaceholder)},nn=(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,K(o,n.customClass.inputLabel),o.innerText=n.inputLabel,e.insertAdjacentElement("beforebegin",o)}},mi=t=>{const e=g[t]?g[t]:g.input;return nt(G(),e)},ve={};ve.text=ve.email=ve.password=ve.number=ve.tel=ve.url=(t,e)=>(typeof e.inputValue=="string"||typeof e.inputValue=="number"?t.value=e.inputValue:vo(e.inputValue)||be(`Unexpected type of inputValue! Expected "string", "number" or "Promise", got "${typeof e.inputValue}"`),nn(t,t,e),Co(t,e),t.type=e.input,t);ve.file=(t,e)=>(nn(t,t,e),Co(t,e),t);ve.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,nn(n,t,e),t};ve.select=(t,e)=>{if(t.textContent="",e.inputPlaceholder){const n=document.createElement("option");se(n,e.inputPlaceholder),n.value="",n.disabled=!0,n.selected=!0,t.appendChild(n)}return nn(t,t,e),t};ve.radio=t=>(t.textContent="",t);ve.checkbox=(t,e)=>{const n=_o(G(),"checkbox");n.value="1",n.id=g.checkbox,n.checked=!!e.inputValue;const o=t.querySelector("span");return se(o,e.inputPlaceholder),t};ve.textarea=(t,e)=>{t.value=e.inputValue,Co(t,e),nn(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(G()).width),r=()=>{const i=t.offsetWidth+n(t);i>o?G().style.width=`${i}px`:G().style.width=null};new MutationObserver(r).observe(t,{attributes:!0,attributeFilter:["style"]})}}),t};const wc=(t,e)=>{const n=_n();Ee(n,e,"htmlContainer"),e.html?(So(e.html,n),ne(n,"block")):e.text?(n.textContent=e.text,ne(n,"block")):le(n),hc(t,e)},_c=(t,e)=>{const n=li();Ln(n,e.footer),e.footer&&So(e.footer,n),Ee(n,e,"footer")},kc=(t,e)=>{const n=yo();se(n,e.closeButtonHtml),Ee(n,e,"closeButton"),Ln(n,e.showCloseButton),n.setAttribute("aria-label",e.closeButtonAriaLabel)},Sc=(t,e)=>{const n=R.innerParams.get(t),o=en();if(n&&e.icon===n.icon){kr(o,e),_r(o,e);return}if(!e.icon&&!e.iconHtml)return le(o);if(e.icon&&Object.keys(Ht).indexOf(e.icon)===-1)return ft(`Unknown icon! Expected "success", "error", "warning", "info" or "question", got "${e.icon}"`),le(o);ne(o),kr(o,e),_r(o,e),K(o,e.showClass.icon)},_r=(t,e)=>{for(const n in Ht)e.icon!==n&&Fe(t,Ht[n]);K(t,Ht[e.icon]),Ec(t,e),Cc(),Ee(t,e,"icon")},Cc=()=>{const t=G(),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},Ic=`
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>
@@ -399,13 +399,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
399
399
  `,kr=(t,e)=>{t.textContent="",e.iconHtml?se(t,Sr(e.iconHtml)):e.icon==="success"?se(t,Ic):e.icon==="error"?se(t,Tc):se(t,Sr({question:"?",warning:"!",info:"i"}[e.icon]))},Ec=(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"])br(t,n,"backgroundColor",e.iconColor);br(t,".swal2-success-ring","borderColor",e.iconColor)}},Sr=t=>`<div class="${g["icon-content"]}">${t}</div>`,Pc=(t,e)=>{const n=si();if(!e.imageUrl)return le(n);ne(n,""),n.setAttribute("src",e.imageUrl),n.setAttribute("alt",e.imageAlt),jt(n,"width",e.imageWidth),jt(n,"height",e.imageHeight),n.className=g.image,Ee(n,e,"image")},Ac=t=>{const e=document.createElement("li");return K(e,g["progress-step"]),se(e,t),e},xc=t=>{const e=document.createElement("li");return K(e,g["progress-step-line"]),t.progressStepsDistance&&(e.style.width=t.progressStepsDistance),e},Lc=(t,e)=>{const n=ai();if(!e.progressSteps||e.progressSteps.length===0)return le(n);ne(n),n.textContent="",e.currentProgressStep>=e.progressSteps.length&&be("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),e.progressSteps.forEach((o,r)=>{const i=Ac(o);if(n.appendChild(i),r===e.currentProgressStep&&K(i,g["active-progress-step"]),r!==e.progressSteps.length-1){const c=xc(e);n.appendChild(c)}})},Oc=(t,e)=>{const n=ii();Ln(n,e.title||e.titleText,"block"),e.title&&So(e.title,n),e.titleText&&(n.innerText=e.titleText),Ee(n,e,"title")},$c=(t,e)=>{const n=ae(),o=G();e.toast?(jt(n,"width",e.width),o.style.width="100%",o.insertBefore(St(),en())):jt(o,"width",e.width),jt(o,"padding",e.padding),e.color&&(o.style.color=e.color),e.background&&(o.style.background=e.background),le(Pn()),Bc(o,e)},Bc=(t,e)=>{t.className=`${g.popup} ${Se(t)?e.showClass.popup:""}`,e.toast?(K([document.documentElement,document.body],g["toast-shown"]),K(t,g.toast)):K(t,g.modal),Ee(t,e,"popup"),typeof e.customClass=="string"&&K(t,e.customClass),e.icon&&K(t,g[`icon-${e.icon}`])},pi=(t,e)=>{$c(t,e),mc(t,e),Lc(t,e),Sc(t,e),Pc(t,e),Oc(t,e),kc(t,e),wc(t,e),ac(t,e),_c(t,e),typeof e.didRender=="function"&&e.didRender(G())},Ct=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),Nc=()=>{Ce(document.body.children).forEach(e=>{e===ae()||e.contains(ae())||(e.hasAttribute("aria-hidden")&&e.setAttribute("data-previous-aria-hidden",e.getAttribute("aria-hidden")),e.setAttribute("aria-hidden","true"))})},hi=()=>{Ce(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")})},gi=["swal-title","swal-html","swal-footer"],Dc=t=>{const e=typeof t.template=="string"?document.querySelector(t.template):t.template;if(!e)return{};const n=e.content;return Fc(n),Object.assign(Mc(n),Rc(n),Uc(n),Vc(n),Hc(n),jc(n,gi))},Mc=t=>{const e={};return Ce(t.querySelectorAll("swal-param")).forEach(n=>{dt(n,["name","value"]);const o=n.getAttribute("name"),r=n.getAttribute("value");typeof bt[o]=="boolean"&&r==="false"&&(e[o]=!1),typeof bt[o]=="object"&&(e[o]=JSON.parse(r))}),e},Rc=t=>{const e={};return Ce(t.querySelectorAll("swal-button")).forEach(n=>{dt(n,["type","color","aria-label"]);const o=n.getAttribute("type");e[`${o}ButtonText`]=n.innerHTML,e[`show${ho(o)}Button`]=!0,n.hasAttribute("color")&&(e[`${o}ButtonColor`]=n.getAttribute("color")),n.hasAttribute("aria-label")&&(e[`${o}ButtonAriaLabel`]=n.getAttribute("aria-label"))}),e},Uc=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},Vc=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},Hc=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={},Ce(o).forEach(r=>{dt(r,["value"]);const i=r.getAttribute("value"),c=r.innerHTML;e.inputOptions[i]=c})),e},jc=(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},Fc=t=>{const e=gi.concat(["swal-param","swal-button","swal-image","swal-icon","swal-input","swal-input-option"]);Ce(t.children).forEach(n=>{const o=n.tagName.toLowerCase();e.indexOf(o)===-1&&be(`Unrecognized element <${o}>`)})},dt=(t,e)=>{Ce(t.attributes).forEach(n=>{e.indexOf(n.name)===-1&&be([`Unrecognized attribute "${n.name}" on <${t.tagName.toLowerCase()}>.`,`${e.length?`Allowed attributes are: ${e.join(", ")}`:"To set the value, use HTML within the element."}`])})},Cr={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 Kc(t){t.inputValidator||Object.keys(Cr).forEach(e=>{t.input===e&&(t.inputValidator=Cr[e])})}function zc(t){(!t.target||typeof t.target=="string"&&!document.querySelector(t.target)||typeof t.target!="string"&&!t.target.appendChild)&&(be('Target parameter is not valid, defaulting to "body"'),t.target="body")}function Wc(t){Kc(t),t.showLoaderOnConfirm&&!t.preConfirm&&be(`showLoaderOnConfirm is set to true, but preConfirm is not defined.
400
400
  showLoaderOnConfirm should be used together with preConfirm, see usage example:
401
401
  https://sweetalert2.github.io/#ajax-request`),zc(t),typeof t.title=="string"&&(t.title=t.title.split(`
402
- `).join("<br />")),oc(t)}class Gc{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 qc=()=>{wt.previousBodyPadding===null&&document.body.scrollHeight>window.innerHeight&&(wt.previousBodyPadding=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight=`${wt.previousBodyPadding+sc()}px`)},Yc=()=>{wt.previousBodyPadding!==null&&(document.body.style.paddingRight=`${wt.previousBodyPadding}px`,wt.previousBodyPadding=null)},Xc=()=>{if((/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1)&&!Ze(document.body,g.iosfix)){const e=document.body.scrollTop;document.body.style.top=`${e*-1}px`,K(document.body,g.iosfix),Jc(),Zc()}},Zc=()=>{const t=navigator.userAgent,e=!!t.match(/iPad/i)||!!t.match(/iPhone/i),n=!!t.match(/WebKit/i);e&&n&&!t.match(/CriOS/i)&&G().scrollHeight>window.innerHeight-44&&(ae().style.paddingBottom="44px")},Jc=()=>{const t=ae();let e;t.ontouchstart=n=>{e=Qc(n)},t.ontouchmove=n=>{e&&(n.preventDefault(),n.stopPropagation())}},Qc=t=>{const e=t.target,n=ae();return eu(t)||tu(t)?!1:e===n||!wr(n)&&e.tagName!=="INPUT"&&e.tagName!=="TEXTAREA"&&!(wr(_n())&&_n().contains(e))},eu=t=>t.touches&&t.touches.length&&t.touches[0].touchType==="stylus",tu=t=>t.touches&&t.touches.length>1,nu=()=>{if(Ze(document.body,g.iosfix)){const t=parseInt(document.body.style.top,10);Fe(document.body,g.iosfix),document.body.style.top="",document.body.scrollTop=t*-1}},vi=10,ou=t=>{const e=ae(),n=G();typeof t.willOpen=="function"&&t.willOpen(n);const r=window.getComputedStyle(document.body).overflowY;su(e,n,t),setTimeout(()=>{ru(e,n)},vi),wo()&&(iu(e,t.scrollbarPadding,r),Nc()),!xn()&&!D.previousActiveElement&&(D.previousActiveElement=document.activeElement),typeof t.didOpen=="function"&&setTimeout(()=>t.didOpen(n)),Fe(e,g["no-transition"])},yi=t=>{const e=G();if(t.target!==e)return;const n=ae();e.removeEventListener(Xt,yi),n.style.overflowY="auto"},ru=(t,e)=>{Xt&&di(e)?(t.style.overflowY="hidden",e.addEventListener(Xt,yi)):t.style.overflowY="auto"},iu=(t,e,n)=>{Xc(),e&&n!=="hidden"&&qc(),setTimeout(()=>{t.scrollTop=0})},su=(t,e,n)=>{K(t,n.showClass.backdrop),e.style.setProperty("opacity","0","important"),ne(e,"grid"),setTimeout(()=>{K(e,n.showClass.popup),e.style.removeProperty("opacity")},vi),K([document.documentElement,document.body],g.shown),n.heightAuto&&n.backdrop&&!n.toast&&K([document.documentElement,document.body],g["height-auto"])},_t=t=>{let e=G();e||new kt,e=G();const n=St();xn()?le(en()):au(e,t),ne(n),e.setAttribute("data-loading",!0),e.setAttribute("aria-busy",!0),e.focus()},au=(t,e)=>{const n=tn(),o=St();!e&&Se(Me())&&(e=Me()),ne(n),e&&(le(e),o.setAttribute("data-button-to-replace",e.className)),o.parentNode.insertBefore(o,e),K([t,n],g.loading)},lu=(t,e)=>{e.input==="select"||e.input==="radio"?mu(t,e):["text","email","number","tel","textarea"].includes(e.input)&&(go(e.inputValue)||vo(e.inputValue))&&(_t(Me()),pu(t,e))},cu=(t,e)=>{const n=t.getInput();if(!n)return null;switch(e.input){case"checkbox":return uu(n);case"radio":return du(n);case"file":return fu(n);default:return e.inputAutoTrim?n.value.trim():n.value}},uu=t=>t.checked?1:0,du=t=>t.checked?t.value:null,fu=t=>t.files.length?t.getAttribute("multiple")!==null?t.files:t.files[0]:null,mu=(t,e)=>{const n=G(),o=r=>hu[e.input](n,to(r),e);go(e.inputOptions)||vo(e.inputOptions)?(_t(Me()),Jt(e.inputOptions).then(r=>{t.hideLoading(),o(r)})):typeof e.inputOptions=="object"?o(e.inputOptions):ft(`Unexpected type of inputOptions! Expected object, Map or Promise, got ${typeof e.inputOptions}`)},pu=(t,e)=>{const n=t.getInput();le(n),Jt(e.inputValue).then(o=>{n.value=e.input==="number"?parseFloat(o)||0:`${o}`,ne(n),n.focus(),t.hideLoading()}).catch(o=>{ft(`Error in inputValue promise: ${o}`),n.value="",ne(n),n.focus(),t.hideLoading()})},hu={select:(t,e,n)=>{const o=nt(t,g.select),r=(i,c,a)=>{const l=document.createElement("option");l.value=a,se(l,c),l.selected=Ir(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,Ir(c,n.inputValue)&&(l.checked=!0);const m=document.createElement("span");se(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()}},to=t=>{const e=[];return typeof Map<"u"&&t instanceof Map?t.forEach((n,o)=>{let r=n;typeof r=="object"&&(r=to(r)),e.push([o,r])}):Object.keys(t).forEach(n=>{let o=t[n];typeof o=="object"&&(o=to(o)),e.push([n,o])}),e},Ir=(t,e)=>e&&e.toString()===t.toString();function Tr(){const t=R.innerParams.get(this);if(!t)return;const e=R.domCache.get(this);le(e.loader),xn()?t.icon&&ne(en()):gu(e),Fe([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 gu=t=>{const e=t.popup.getElementsByClassName(t.loader.getAttribute("data-button-to-replace"));e.length?ne(e[0],"inline-block"):Wl()&&le(t.actions)};function vu(t){const e=R.innerParams.get(t||this),n=R.domCache.get(t||this);return n?_o(n.popup,e.input):null}const Zt={swalPromiseResolve:new WeakMap,swalPromiseReject:new WeakMap},yu=()=>Se(G()),bi=()=>Me()&&Me().click(),bu=()=>rt()&&rt().click(),wu=()=>ut()&&ut().click(),wi=t=>{t.keydownTarget&&t.keydownHandlerAdded&&(t.keydownTarget.removeEventListener("keydown",t.keydownHandler,{capture:t.keydownListenerCapture}),t.keydownHandlerAdded=!1)},_u=(t,e,n,o)=>{wi(e),n.toast||(e.keydownHandler=r=>Su(t,r,o),e.keydownTarget=n.keydownListenerCapture?window:G(),e.keydownListenerCapture=n.keydownListenerCapture,e.keydownTarget.addEventListener("keydown",e.keydownHandler,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!0)},no=(t,e,n)=>{const o=bo();if(o.length)return e=e+n,e===o.length?e=0:e===-1&&(e=o.length-1),o[e].focus();G().focus()},_i=["ArrowRight","ArrowDown"],ku=["ArrowLeft","ArrowUp"],Su=(t,e,n)=>{const o=R.innerParams.get(t);o&&(e.isComposing||e.keyCode===229||(o.stopKeydownPropagation&&e.stopPropagation(),e.key==="Enter"?Cu(t,e,o):e.key==="Tab"?Iu(e,o):[..._i,...ku].includes(e.key)?Tu(e.key):e.key==="Escape"&&Eu(e,o,n)))},Cu=(t,e,n)=>{if(En(n.allowEnterKey)&&e.target&&t.getInput()&&e.target.outerHTML===t.getInput().outerHTML){if(["textarea","file"].includes(n.input))return;bi(),e.preventDefault()}},Iu=(t,e)=>{const n=t.target,o=bo();let r=-1;for(let i=0;i<o.length;i++)if(n===o[i]){r=i;break}t.shiftKey?no(e,r,-1):no(e,r,1),t.stopPropagation(),t.preventDefault()},Tu=t=>{const e=Me(),n=rt(),o=ut();if(![e,n,o].includes(document.activeElement))return;const r=_i.includes(t)?"nextElementSibling":"previousElementSibling";let i=document.activeElement;for(let c=0;c<tn().children.length;c++){if(i=i[r],!i)return;if(Se(i)&&i instanceof HTMLButtonElement)break}i instanceof HTMLButtonElement&&i.focus()},Eu=(t,e,n)=>{En(e.allowEscapeKey)&&(t.preventDefault(),n(Ct.esc))};function ki(t,e,n,o){xn()?Er(t,o):(Xl(n).then(()=>Er(t,o)),wi(D)),/^((?!chrome|android).)*safari/i.test(navigator.userAgent)?(e.setAttribute("style","display:none !important"),e.removeAttribute("class"),e.innerHTML=""):e.remove(),wo()&&(Yc(),nu(),hi()),Pu()}function Pu(){Fe([document.documentElement,document.body],[g.shown,g["height-auto"],g["no-backdrop"],g["toast-shown"]])}function fn(t){t=Ou(t);const e=Zt.swalPromiseResolve.get(this),n=xu(this);this.isAwaitingPromise()?t.isDismissed||(on(this),e(t)):n&&e(t)}function Au(){return!!R.awaitingPromise.get(this)}const xu=t=>{const e=G();if(!e)return!1;const n=R.innerParams.get(t);if(!n||Ze(e,n.hideClass.popup))return!1;Fe(e,n.showClass.popup),K(e,n.hideClass.popup);const o=ae();return Fe(o,n.showClass.backdrop),K(o,n.hideClass.backdrop),$u(t,e,n),!0};function Lu(t){const e=Zt.swalPromiseReject.get(this);on(this),e&&e(t)}const on=t=>{t.isAwaitingPromise()&&(R.awaitingPromise.delete(t),R.innerParams.get(t)||t._destroy())},Ou=t=>typeof t>"u"?{isConfirmed:!1,isDenied:!1,isDismissed:!0}:Object.assign({isConfirmed:!1,isDenied:!1,isDismissed:!1},t),$u=(t,e,n)=>{const o=ae(),r=Xt&&di(e);typeof n.willClose=="function"&&n.willClose(e),r?Bu(t,e,o,n.returnFocus,n.didClose):ki(t,o,n.returnFocus,n.didClose)},Bu=(t,e,n,o,r)=>{D.swalCloseEventFinishedCallback=ki.bind(null,t,n,o,r),e.addEventListener(Xt,function(i){i.target===e&&(D.swalCloseEventFinishedCallback(),delete D.swalCloseEventFinishedCallback)})},Er=(t,e)=>{setTimeout(()=>{typeof e=="function"&&e.bind(t.params)(),t._destroy()})};function Si(t,e,n){const o=R.domCache.get(t);e.forEach(r=>{o[r].disabled=n})}function Ci(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 Nu(){Si(this,["confirmButton","denyButton","cancelButton"],!1)}function Du(){Si(this,["confirmButton","denyButton","cancelButton"],!0)}function Mu(){return Ci(this.getInput(),!1)}function Ru(){return Ci(this.getInput(),!0)}function Uu(t){const e=R.domCache.get(this),n=R.innerParams.get(this);se(e.validationMessage,t),e.validationMessage.className=g["validation-message"],n.customClass&&n.customClass.validationMessage&&K(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"]),ci(o),K(o,g.inputerror))}function Vu(){const t=R.domCache.get(this);t.validationMessage&&le(t.validationMessage);const e=this.getInput();e&&(e.removeAttribute("aria-invalid"),e.removeAttribute("aria-describedby"),Fe(e,g.inputerror))}function Hu(){return R.domCache.get(this).progressSteps}function ju(t){const e=G(),n=R.innerParams.get(this);if(!e||Ze(e,n.hideClass.popup))return be("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=Fu(t),r=Object.assign({},n,o);pi(this,r),R.innerParams.set(this,r),Object.defineProperties(this,{params:{value:Object.assign({},this.params,t),writable:!1,enumerable:!0}})}const Fu=t=>{const e={};return Object.keys(t).forEach(n=>{oi(n)?e[n]=t[n]:be(`Invalid parameter to update: "${n}". Updatable params are listed here: https://github.com/sweetalert2/sweetalert2/blob/master/src/utils/params.js
402
+ `).join("<br />")),oc(t)}class Gc{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 qc=()=>{wt.previousBodyPadding===null&&document.body.scrollHeight>window.innerHeight&&(wt.previousBodyPadding=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight=`${wt.previousBodyPadding+sc()}px`)},Yc=()=>{wt.previousBodyPadding!==null&&(document.body.style.paddingRight=`${wt.previousBodyPadding}px`,wt.previousBodyPadding=null)},Xc=()=>{if((/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1)&&!Ze(document.body,g.iosfix)){const e=document.body.scrollTop;document.body.style.top=`${e*-1}px`,K(document.body,g.iosfix),Jc(),Zc()}},Zc=()=>{const t=navigator.userAgent,e=!!t.match(/iPad/i)||!!t.match(/iPhone/i),n=!!t.match(/WebKit/i);e&&n&&!t.match(/CriOS/i)&&G().scrollHeight>window.innerHeight-44&&(ae().style.paddingBottom="44px")},Jc=()=>{const t=ae();let e;t.ontouchstart=n=>{e=Qc(n)},t.ontouchmove=n=>{e&&(n.preventDefault(),n.stopPropagation())}},Qc=t=>{const e=t.target,n=ae();return eu(t)||tu(t)?!1:e===n||!wr(n)&&e.tagName!=="INPUT"&&e.tagName!=="TEXTAREA"&&!(wr(_n())&&_n().contains(e))},eu=t=>t.touches&&t.touches.length&&t.touches[0].touchType==="stylus",tu=t=>t.touches&&t.touches.length>1,nu=()=>{if(Ze(document.body,g.iosfix)){const t=parseInt(document.body.style.top,10);Fe(document.body,g.iosfix),document.body.style.top="",document.body.scrollTop=t*-1}},vi=10,ou=t=>{const e=ae(),n=G();typeof t.willOpen=="function"&&t.willOpen(n);const r=window.getComputedStyle(document.body).overflowY;su(e,n,t),setTimeout(()=>{ru(e,n)},vi),wo()&&(iu(e,t.scrollbarPadding,r),Nc()),!xn()&&!D.previousActiveElement&&(D.previousActiveElement=document.activeElement),typeof t.didOpen=="function"&&setTimeout(()=>t.didOpen(n)),Fe(e,g["no-transition"])},yi=t=>{const e=G();if(t.target!==e)return;const n=ae();e.removeEventListener(Xt,yi),n.style.overflowY="auto"},ru=(t,e)=>{Xt&&di(e)?(t.style.overflowY="hidden",e.addEventListener(Xt,yi)):t.style.overflowY="auto"},iu=(t,e,n)=>{Xc(),e&&n!=="hidden"&&qc(),setTimeout(()=>{t.scrollTop=0})},su=(t,e,n)=>{K(t,n.showClass.backdrop),e.style.setProperty("opacity","0","important"),ne(e,"grid"),setTimeout(()=>{K(e,n.showClass.popup),e.style.removeProperty("opacity")},vi),K([document.documentElement,document.body],g.shown),n.heightAuto&&n.backdrop&&!n.toast&&K([document.documentElement,document.body],g["height-auto"])},_t=t=>{let e=G();e||new kt,e=G();const n=St();xn()?le(en()):au(e,t),ne(n),e.setAttribute("data-loading",!0),e.setAttribute("aria-busy",!0),e.focus()},au=(t,e)=>{const n=tn(),o=St();!e&&Se(De())&&(e=De()),ne(n),e&&(le(e),o.setAttribute("data-button-to-replace",e.className)),o.parentNode.insertBefore(o,e),K([t,n],g.loading)},lu=(t,e)=>{e.input==="select"||e.input==="radio"?mu(t,e):["text","email","number","tel","textarea"].includes(e.input)&&(go(e.inputValue)||vo(e.inputValue))&&(_t(De()),pu(t,e))},cu=(t,e)=>{const n=t.getInput();if(!n)return null;switch(e.input){case"checkbox":return uu(n);case"radio":return du(n);case"file":return fu(n);default:return e.inputAutoTrim?n.value.trim():n.value}},uu=t=>t.checked?1:0,du=t=>t.checked?t.value:null,fu=t=>t.files.length?t.getAttribute("multiple")!==null?t.files:t.files[0]:null,mu=(t,e)=>{const n=G(),o=r=>hu[e.input](n,to(r),e);go(e.inputOptions)||vo(e.inputOptions)?(_t(De()),Jt(e.inputOptions).then(r=>{t.hideLoading(),o(r)})):typeof e.inputOptions=="object"?o(e.inputOptions):ft(`Unexpected type of inputOptions! Expected object, Map or Promise, got ${typeof e.inputOptions}`)},pu=(t,e)=>{const n=t.getInput();le(n),Jt(e.inputValue).then(o=>{n.value=e.input==="number"?parseFloat(o)||0:`${o}`,ne(n),n.focus(),t.hideLoading()}).catch(o=>{ft(`Error in inputValue promise: ${o}`),n.value="",ne(n),n.focus(),t.hideLoading()})},hu={select:(t,e,n)=>{const o=nt(t,g.select),r=(i,c,a)=>{const l=document.createElement("option");l.value=a,se(l,c),l.selected=Ir(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,Ir(c,n.inputValue)&&(l.checked=!0);const m=document.createElement("span");se(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()}},to=t=>{const e=[];return typeof Map<"u"&&t instanceof Map?t.forEach((n,o)=>{let r=n;typeof r=="object"&&(r=to(r)),e.push([o,r])}):Object.keys(t).forEach(n=>{let o=t[n];typeof o=="object"&&(o=to(o)),e.push([n,o])}),e},Ir=(t,e)=>e&&e.toString()===t.toString();function Tr(){const t=R.innerParams.get(this);if(!t)return;const e=R.domCache.get(this);le(e.loader),xn()?t.icon&&ne(en()):gu(e),Fe([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 gu=t=>{const e=t.popup.getElementsByClassName(t.loader.getAttribute("data-button-to-replace"));e.length?ne(e[0],"inline-block"):Wl()&&le(t.actions)};function vu(t){const e=R.innerParams.get(t||this),n=R.domCache.get(t||this);return n?_o(n.popup,e.input):null}const Zt={swalPromiseResolve:new WeakMap,swalPromiseReject:new WeakMap},yu=()=>Se(G()),bi=()=>De()&&De().click(),bu=()=>rt()&&rt().click(),wu=()=>ut()&&ut().click(),wi=t=>{t.keydownTarget&&t.keydownHandlerAdded&&(t.keydownTarget.removeEventListener("keydown",t.keydownHandler,{capture:t.keydownListenerCapture}),t.keydownHandlerAdded=!1)},_u=(t,e,n,o)=>{wi(e),n.toast||(e.keydownHandler=r=>Su(t,r,o),e.keydownTarget=n.keydownListenerCapture?window:G(),e.keydownListenerCapture=n.keydownListenerCapture,e.keydownTarget.addEventListener("keydown",e.keydownHandler,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!0)},no=(t,e,n)=>{const o=bo();if(o.length)return e=e+n,e===o.length?e=0:e===-1&&(e=o.length-1),o[e].focus();G().focus()},_i=["ArrowRight","ArrowDown"],ku=["ArrowLeft","ArrowUp"],Su=(t,e,n)=>{const o=R.innerParams.get(t);o&&(e.isComposing||e.keyCode===229||(o.stopKeydownPropagation&&e.stopPropagation(),e.key==="Enter"?Cu(t,e,o):e.key==="Tab"?Iu(e,o):[..._i,...ku].includes(e.key)?Tu(e.key):e.key==="Escape"&&Eu(e,o,n)))},Cu=(t,e,n)=>{if(En(n.allowEnterKey)&&e.target&&t.getInput()&&e.target.outerHTML===t.getInput().outerHTML){if(["textarea","file"].includes(n.input))return;bi(),e.preventDefault()}},Iu=(t,e)=>{const n=t.target,o=bo();let r=-1;for(let i=0;i<o.length;i++)if(n===o[i]){r=i;break}t.shiftKey?no(e,r,-1):no(e,r,1),t.stopPropagation(),t.preventDefault()},Tu=t=>{const e=De(),n=rt(),o=ut();if(![e,n,o].includes(document.activeElement))return;const r=_i.includes(t)?"nextElementSibling":"previousElementSibling";let i=document.activeElement;for(let c=0;c<tn().children.length;c++){if(i=i[r],!i)return;if(Se(i)&&i instanceof HTMLButtonElement)break}i instanceof HTMLButtonElement&&i.focus()},Eu=(t,e,n)=>{En(e.allowEscapeKey)&&(t.preventDefault(),n(Ct.esc))};function ki(t,e,n,o){xn()?Er(t,o):(Xl(n).then(()=>Er(t,o)),wi(D)),/^((?!chrome|android).)*safari/i.test(navigator.userAgent)?(e.setAttribute("style","display:none !important"),e.removeAttribute("class"),e.innerHTML=""):e.remove(),wo()&&(Yc(),nu(),hi()),Pu()}function Pu(){Fe([document.documentElement,document.body],[g.shown,g["height-auto"],g["no-backdrop"],g["toast-shown"]])}function fn(t){t=Ou(t);const e=Zt.swalPromiseResolve.get(this),n=xu(this);this.isAwaitingPromise()?t.isDismissed||(on(this),e(t)):n&&e(t)}function Au(){return!!R.awaitingPromise.get(this)}const xu=t=>{const e=G();if(!e)return!1;const n=R.innerParams.get(t);if(!n||Ze(e,n.hideClass.popup))return!1;Fe(e,n.showClass.popup),K(e,n.hideClass.popup);const o=ae();return Fe(o,n.showClass.backdrop),K(o,n.hideClass.backdrop),$u(t,e,n),!0};function Lu(t){const e=Zt.swalPromiseReject.get(this);on(this),e&&e(t)}const on=t=>{t.isAwaitingPromise()&&(R.awaitingPromise.delete(t),R.innerParams.get(t)||t._destroy())},Ou=t=>typeof t>"u"?{isConfirmed:!1,isDenied:!1,isDismissed:!0}:Object.assign({isConfirmed:!1,isDenied:!1,isDismissed:!1},t),$u=(t,e,n)=>{const o=ae(),r=Xt&&di(e);typeof n.willClose=="function"&&n.willClose(e),r?Bu(t,e,o,n.returnFocus,n.didClose):ki(t,o,n.returnFocus,n.didClose)},Bu=(t,e,n,o,r)=>{D.swalCloseEventFinishedCallback=ki.bind(null,t,n,o,r),e.addEventListener(Xt,function(i){i.target===e&&(D.swalCloseEventFinishedCallback(),delete D.swalCloseEventFinishedCallback)})},Er=(t,e)=>{setTimeout(()=>{typeof e=="function"&&e.bind(t.params)(),t._destroy()})};function Si(t,e,n){const o=R.domCache.get(t);e.forEach(r=>{o[r].disabled=n})}function Ci(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 Nu(){Si(this,["confirmButton","denyButton","cancelButton"],!1)}function Du(){Si(this,["confirmButton","denyButton","cancelButton"],!0)}function Mu(){return Ci(this.getInput(),!1)}function Ru(){return Ci(this.getInput(),!0)}function Uu(t){const e=R.domCache.get(this),n=R.innerParams.get(this);se(e.validationMessage,t),e.validationMessage.className=g["validation-message"],n.customClass&&n.customClass.validationMessage&&K(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"]),ci(o),K(o,g.inputerror))}function Vu(){const t=R.domCache.get(this);t.validationMessage&&le(t.validationMessage);const e=this.getInput();e&&(e.removeAttribute("aria-invalid"),e.removeAttribute("aria-describedby"),Fe(e,g.inputerror))}function Hu(){return R.domCache.get(this).progressSteps}function ju(t){const e=G(),n=R.innerParams.get(this);if(!e||Ze(e,n.hideClass.popup))return be("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=Fu(t),r=Object.assign({},n,o);pi(this,r),R.innerParams.set(this,r),Object.defineProperties(this,{params:{value:Object.assign({},this.params,t),writable:!1,enumerable:!0}})}const Fu=t=>{const e={};return Object.keys(t).forEach(n=>{oi(n)?e[n]=t[n]:be(`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 Ku(){const t=R.domCache.get(this),e=R.innerParams.get(this);if(!e){Ii(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(),zu(this)}const zu=t=>{Ii(t),delete t.params,delete D.keydownHandler,delete D.keydownTarget,delete D.currentInstance},Ii=t=>{t.isAwaitingPromise()?(jn(R,t),R.awaitingPromise.set(t,!0)):(jn(Zt,t),jn(R,t))},jn=(t,e)=>{for(const n in t)t[n].delete(e)},Ti=Object.freeze(Object.defineProperty({__proto__:null,_destroy:Ku,close:fn,closeModal:fn,closePopup:fn,closeToast:fn,disableButtons:Du,disableInput:Ru,disableLoading:Tr,enableButtons:Nu,enableInput:Mu,getInput:vu,getProgressSteps:Hu,handleAwaitingPromise:on,hideLoading:Tr,isAwaitingPromise:Au,rejectPromise:Lu,resetValidationMessage:Vu,showValidationMessage:Uu,update:ju},Symbol.toStringTag,{value:"Module"})),Wu=t=>{const e=R.innerParams.get(t);t.disableButtons(),e.input?Ei(t,"confirm"):To(t,!0)},Gu=t=>{const e=R.innerParams.get(t);t.disableButtons(),e.returnInputValueOnDeny?Ei(t,"deny"):Io(t,!1)},qu=(t,e)=>{t.disableButtons(),e(Ct.cancel)},Ei=(t,e)=>{const n=R.innerParams.get(t);if(!n.input)return ft(`The "input" parameter is needed to be set when using returnInputValueOn${ho(e)}`);const o=cu(t,n);n.inputValidator?Yu(t,o,e):t.getInput().checkValidity()?e==="deny"?Io(t,o):To(t,o):(t.enableButtons(),t.showValidationMessage(n.validationMessage))},Yu=(t,e,n)=>{const o=R.innerParams.get(t);t.disableInput(),Promise.resolve().then(()=>Jt(o.inputValidator(e,o.validationMessage))).then(i=>{t.enableButtons(),t.enableInput(),i?t.showValidationMessage(i):n==="deny"?Io(t,e):To(t,e)})},Io=(t,e)=>{const n=R.innerParams.get(t||void 0);n.showLoaderOnDeny&&_t(rt()),n.preDeny?(R.awaitingPromise.set(t||void 0,!0),Promise.resolve().then(()=>Jt(n.preDeny(e,n.validationMessage))).then(r=>{r===!1?(t.hideLoading(),on(t)):t.closePopup({isDenied:!0,value:typeof r>"u"?e:r})}).catch(r=>Pi(t||void 0,r))):t.closePopup({isDenied:!0,value:e})},Pr=(t,e)=>{t.closePopup({isConfirmed:!0,value:e})},Pi=(t,e)=>{t.rejectPromise(e)},To=(t,e)=>{const n=R.innerParams.get(t||void 0);n.showLoaderOnConfirm&&_t(),n.preConfirm?(t.resetValidationMessage(),R.awaitingPromise.set(t||void 0,!0),Promise.resolve().then(()=>Jt(n.preConfirm(e,n.validationMessage))).then(r=>{Se(Pn())||r===!1?(t.hideLoading(),on(t)):Pr(t,typeof r>"u"?e:r)}).catch(r=>Pi(t||void 0,r))):Pr(t,e)},Xu=(t,e,n)=>{R.innerParams.get(t).toast?Zu(t,e,n):(Qu(e),ed(e),td(t,e,n))},Zu=(t,e,n)=>{e.popup.onclick=()=>{const o=R.innerParams.get(t);o&&(Ju(o)||o.timer||o.input)||n(Ct.close)}},Ju=t=>t.showConfirmButton||t.showDenyButton||t.showCancelButton||t.showCloseButton;let kn=!1;const Qu=t=>{t.popup.onmousedown=()=>{t.container.onmouseup=function(e){t.container.onmouseup=void 0,e.target===t.container&&(kn=!0)}}},ed=t=>{t.container.onmousedown=()=>{t.popup.onmouseup=function(e){t.popup.onmouseup=void 0,(e.target===t.popup||t.popup.contains(e.target))&&(kn=!0)}}},td=(t,e,n)=>{e.container.onclick=o=>{const r=R.innerParams.get(t);if(kn){kn=!1;return}o.target===e.container&&En(r.allowOutsideClick)&&n(Ct.backdrop)}},nd=t=>typeof t=="object"&&t.jquery,Ar=t=>t instanceof Element||nd(t),od=t=>{const e={};return typeof t[0]=="object"&&!Ar(t[0])?Object.assign(e,t[0]):["title","html","icon"].forEach((n,o)=>{const r=t[o];typeof r=="string"||Ar(r)?e[n]=r:r!==void 0&&ft(`Unexpected type of ${n}! Expected "string" or "Element", got ${typeof r}`)}),e};function rd(...t){const e=this;return new e(...t)}function id(t){class e extends this{_main(o,r){return super._main(o,Object.assign({},t,r))}}return e}const sd=()=>D.timeout&&D.timeout.getTimerLeft(),Ai=()=>{if(D.timeout)return Gl(),D.timeout.stop()},xi=()=>{if(D.timeout){const t=D.timeout.start();return ko(t),t}},ad=()=>{const t=D.timeout;return t&&(t.running?Ai():xi())},ld=t=>{if(D.timeout){const e=D.timeout.increase(t);return ko(e,!0),e}},cd=()=>D.timeout&&D.timeout.isRunning();let xr=!1;const oo={};function ud(t="data-swal-template"){oo[t]=this,xr||(document.body.addEventListener("click",dd),xr=!0)}const dd=t=>{for(let e=t.target;e&&e!==document;e=e.parentNode)for(const n in oo){const o=e.getAttribute(n);if(o){oo[n].fire({template:o});return}}},fd=Object.freeze(Object.defineProperty({__proto__:null,argsToParams:od,bindClickHandler:ud,clickCancel:wu,clickConfirm:bi,clickDeny:bu,enableLoading:_t,fire:rd,getActions:tn,getCancelButton:ut,getCloseButton:yo,getConfirmButton:Me,getContainer:ae,getDenyButton:rt,getFocusableElements:bo,getFooter:li,getHtmlContainer:_n,getIcon:en,getImage:si,getInputLabel:jl,getLoader:St,getPopup:G,getTimerLeft:sd,getTimerProgressBar:An,getTitle:ii,getValidationMessage:Pn,increaseTimer:ld,isDeprecatedParameter:eo,isLoading:Kl,isTimerRunning:cd,isUpdatableParameter:oi,isValidParameter:ni,isVisible:yu,mixin:id,resumeTimer:xi,showLoading:_t,stopTimer:Ai,toggleTimer:ad},Symbol.toStringTag,{value:"Module"}));let ro;class It{constructor(...e){if(typeof window>"u")return;ro=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);R.promise.set(this,o)}_main(e,n={}){Vl(Object.assign({},n,e)),D.currentInstance&&(D.currentInstance._destroy(),wo()&&hi()),D.currentInstance=this;const o=pd(e,n);Wc(o),Object.freeze(o),D.timeout&&(D.timeout.stop(),delete D.timeout),clearTimeout(D.restoreFocusTimeout);const r=hd(this);return pi(this,o),R.innerParams.set(this,o),md(this,r,o)}then(e){return R.promise.get(this).then(e)}finally(e){return R.promise.get(this).finally(e)}}const md=(t,e,n)=>new Promise((o,r)=>{const i=c=>{t.closePopup({isDismissed:!0,dismiss:c})};Zt.swalPromiseResolve.set(t,o),Zt.swalPromiseReject.set(t,r),e.confirmButton.onclick=()=>Wu(t),e.denyButton.onclick=()=>Gu(t),e.cancelButton.onclick=()=>qu(t,i),e.closeButton.onclick=()=>i(Ct.close),Xu(t,e,i),_u(t,D,n,i),lu(t,n),ou(n),gd(D,n,i),vd(e,n),setTimeout(()=>{e.container.scrollTop=0})}),pd=(t,e)=>{const n=Dc(t),o=Object.assign({},bt,e,n,t);return o.showClass=Object.assign({},bt.showClass,o.showClass),o.hideClass=Object.assign({},bt.hideClass,o.hideClass),o},hd=t=>{const e={popup:G(),container:ae(),actions:tn(),confirmButton:Me(),denyButton:rt(),cancelButton:ut(),loader:St(),closeButton:yo(),validationMessage:Pn(),progressSteps:ai()};return R.domCache.set(t,e),e},gd=(t,e,n)=>{const o=An();le(o),e.timer&&(t.timeout=new Gc(()=>{n("timer"),delete t.timeout},e.timer),e.timerProgressBar&&(ne(o),Ee(o,e,"timerProgressBar"),setTimeout(()=>{t.timeout&&t.timeout.running&&ko(e.timer)})))},vd=(t,e)=>{if(!e.toast){if(!En(e.allowEnterKey))return bd();yd(t,e)||no(e,-1,1)}},yd=(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,bd=()=>{document.activeElement instanceof HTMLElement&&typeof document.activeElement.blur=="function"&&document.activeElement.blur()};Object.assign(It.prototype,Ti);Object.assign(It,fd);Object.keys(Ti).forEach(t=>{It[t]=function(...e){if(ro)return ro[t](...e)}});It.DismissReason=Ct;It.version="11.4.8";const kt=It;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:Li,setPrototypeOf:Lr,isFrozen:wd,getPrototypeOf:_d,getOwnPropertyDescriptor:kd}=Object;let{freeze:fe,seal:Pe,create:Oi}=Object,{apply:io,construct:so}=typeof Reflect<"u"&&Reflect;fe||(fe=function(e){return e});Pe||(Pe=function(e){return e});io||(io=function(e,n,o){return e.apply(n,o)});so||(so=function(e,n){return new e(...n)});const mn=Ie(Array.prototype.forEach),Or=Ie(Array.prototype.pop),Lt=Ie(Array.prototype.push),gn=Ie(String.prototype.toLowerCase),Fn=Ie(String.prototype.toString),$r=Ie(String.prototype.match),Ot=Ie(String.prototype.replace),Sd=Ie(String.prototype.indexOf),Cd=Ie(String.prototype.trim),Be=Ie(Object.prototype.hasOwnProperty),ue=Ie(RegExp.prototype.test),$t=Id(TypeError);function Ie(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 io(t,e,o)}}function Id(t){return function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return so(t,n)}}function H(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:gn;Lr&&Lr(t,null);let o=e.length;for(;o--;){let r=e[o];if(typeof r=="string"){const i=n(r);i!==r&&(wd(e)||(e[o]=i),r=i)}t[r]=!0}return t}function Td(t){for(let e=0;e<t.length;e++)Be(t,e)||(t[e]=null);return t}function at(t){const e=Oi(null);for(const[n,o]of Li(t))Be(t,n)&&(Array.isArray(o)?e[n]=Td(o):o&&typeof o=="object"&&o.constructor===Object?e[n]=at(o):e[n]=o);return e}function Bt(t,e){for(;t!==null;){const o=kd(t,e);if(o){if(o.get)return Ie(o.get);if(typeof o.value=="function")return Ie(o.value)}t=_d(t)}function n(){return null}return n}const Br=fe(["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"]),Kn=fe(["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"]),zn=fe(["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"]),Ed=fe(["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"]),Wn=fe(["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"]),Pd=fe(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Nr=fe(["#text"]),Dr=fe(["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"]),Gn=fe(["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"]),Mr=fe(["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"]),pn=fe(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Ad=Pe(/\{\{[\w\W]*|[\w\W]*\}\}/gm),xd=Pe(/<%[\w\W]*|[\w\W]*%>/gm),Ld=Pe(/\${[\w\W]*}/gm),Od=Pe(/^data-[\-\w.\u00B7-\uFFFF]/),$d=Pe(/^aria-[\-\w]+$/),$i=Pe(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Bd=Pe(/^(?:\w+script|data):/i),Nd=Pe(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Bi=Pe(/^html$/i),Dd=Pe(/^[a-z][.\w]*(-[.\w]+)+$/i);var Rr=Object.freeze({__proto__:null,MUSTACHE_EXPR:Ad,ERB_EXPR:xd,TMPLIT_EXPR:Ld,DATA_ATTR:Od,ARIA_ATTR:$d,IS_ALLOWED_URI:$i,IS_SCRIPT_OR_DATA:Bd,ATTR_WHITESPACE:Nd,DOCTYPE_NAME:Bi,CUSTOM_ELEMENT:Dd});const Nt={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},Md=function(){return typeof window>"u"?null:window},Rd=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 Ni(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Md();const e=O=>Ni(O);if(e.version="3.1.6",e.removed=[],!t||!t.document||t.document.nodeType!==Nt.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:b,trustedTypes:C}=t,T=l.prototype,$=Bt(T,"cloneNode"),x=Bt(T,"remove"),M=Bt(T,"nextSibling"),I=Bt(T,"childNodes"),B=Bt(T,"parentNode");if(typeof c=="function"){const O=n.createElement("template");O.content&&O.content.ownerDocument&&(n=O.content.ownerDocument)}let j,Z="";const{implementation:me,createNodeIterator:Q,createDocumentFragment:xe,getElementsByTagName:we}=n,{importNode:q}=o;let J={};e.isSupported=typeof Li=="function"&&typeof B=="function"&&me&&me.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:pe,ERB_EXPR:Le,TMPLIT_EXPR:_e,DATA_ATTR:Je,ARIA_ATTR:Ke,IS_SCRIPT_OR_DATA:Re,ATTR_WHITESPACE:Ue,CUSTOM_ELEMENT:it}=Rr;let{IS_ALLOWED_URI:Te}=Rr,u=null;const p=H({},[...Br,...Kn,...zn,...Wn,...Nr]);let y=null;const S=H({},[...Dr,...Gn,...Mr,...pn]);let v=Object.seal(Oi(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,U=!1,he=!0,oe=!1,re=!1,ze=!1,mt=!1,rn=!1,sn=!1,Eo=!0,Po=!1;const Fi="user-content-";let On=!0,Tt=!1,pt={},ht=null;const Ao=H({},["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 xo=null;const Lo=H({},["audio","video","img","source","image","track"]);let $n=null;const Oo=H({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),an="http://www.w3.org/1998/Math/MathML",ln="http://www.w3.org/2000/svg",We="http://www.w3.org/1999/xhtml";let gt=We,Bn=!1,Nn=null;const Ki=H({},[an,ln,We],Fn);let Et=null;const zi=["application/xhtml+xml","text/html"],Wi="text/html";let ee=null,vt=null;const Gi=n.createElement("form"),$o=function(f){return f instanceof RegExp||f instanceof Function},Dn=function(){let f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(vt&&vt===f)){if((!f||typeof f!="object")&&(f={}),f=at(f),Et=zi.indexOf(f.PARSER_MEDIA_TYPE)===-1?Wi:f.PARSER_MEDIA_TYPE,ee=Et==="application/xhtml+xml"?Fn:gn,u=Be(f,"ALLOWED_TAGS")?H({},f.ALLOWED_TAGS,ee):p,y=Be(f,"ALLOWED_ATTR")?H({},f.ALLOWED_ATTR,ee):S,Nn=Be(f,"ALLOWED_NAMESPACES")?H({},f.ALLOWED_NAMESPACES,Fn):Ki,$n=Be(f,"ADD_URI_SAFE_ATTR")?H(at(Oo),f.ADD_URI_SAFE_ATTR,ee):Oo,xo=Be(f,"ADD_DATA_URI_TAGS")?H(at(Lo),f.ADD_DATA_URI_TAGS,ee):Lo,ht=Be(f,"FORBID_CONTENTS")?H({},f.FORBID_CONTENTS,ee):Ao,E=Be(f,"FORBID_TAGS")?H({},f.FORBID_TAGS,ee):{},w=Be(f,"FORBID_ATTR")?H({},f.FORBID_ATTR,ee):{},pt=Be(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,U=f.SAFE_FOR_TEMPLATES||!1,he=f.SAFE_FOR_XML!==!1,oe=f.WHOLE_DOCUMENT||!1,mt=f.RETURN_DOM||!1,rn=f.RETURN_DOM_FRAGMENT||!1,sn=f.RETURN_TRUSTED_TYPE||!1,ze=f.FORCE_BODY||!1,Eo=f.SANITIZE_DOM!==!1,Po=f.SANITIZE_NAMED_PROPS||!1,On=f.KEEP_CONTENT!==!1,Tt=f.IN_PLACE||!1,Te=f.ALLOWED_URI_REGEXP||$i,gt=f.NAMESPACE||We,v=f.CUSTOM_ELEMENT_HANDLING||{},f.CUSTOM_ELEMENT_HANDLING&&$o(f.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(v.tagNameCheck=f.CUSTOM_ELEMENT_HANDLING.tagNameCheck),f.CUSTOM_ELEMENT_HANDLING&&$o(f.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(v.attributeNameCheck=f.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),f.CUSTOM_ELEMENT_HANDLING&&typeof f.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(v.allowCustomizedBuiltInElements=f.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),U&&(A=!1),rn&&(mt=!0),pt&&(u=H({},Nr),y=[],pt.html===!0&&(H(u,Br),H(y,Dr)),pt.svg===!0&&(H(u,Kn),H(y,Gn),H(y,pn)),pt.svgFilters===!0&&(H(u,zn),H(y,Gn),H(y,pn)),pt.mathMl===!0&&(H(u,Wn),H(y,Mr),H(y,pn))),f.ADD_TAGS&&(u===p&&(u=at(u)),H(u,f.ADD_TAGS,ee)),f.ADD_ATTR&&(y===S&&(y=at(y)),H(y,f.ADD_ATTR,ee)),f.ADD_URI_SAFE_ATTR&&H($n,f.ADD_URI_SAFE_ATTR,ee),f.FORBID_CONTENTS&&(ht===Ao&&(ht=at(ht)),H(ht,f.FORBID_CONTENTS,ee)),On&&(u["#text"]=!0),oe&&H(u,["html","head","body"]),u.table&&(H(u,["tbody"]),delete E.tbody),f.TRUSTED_TYPES_POLICY){if(typeof f.TRUSTED_TYPES_POLICY.createHTML!="function")throw $t('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof f.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw $t('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');j=f.TRUSTED_TYPES_POLICY,Z=j.createHTML("")}else j===void 0&&(j=Rd(C,r)),j!==null&&typeof Z=="string"&&(Z=j.createHTML(""));fe&&fe(f),vt=f}},Bo=H({},["mi","mo","mn","ms","mtext"]),No=H({},["foreignobject","annotation-xml"]),qi=H({},["title","style","font","a","script"]),Do=H({},[...Kn,...zn,...Ed]),Mo=H({},[...Wn,...Pd]),Yi=function(f){let k=B(f);(!k||!k.tagName)&&(k={namespaceURI:gt,tagName:"template"});const L=gn(f.tagName),Y=gn(k.tagName);return Nn[f.namespaceURI]?f.namespaceURI===ln?k.namespaceURI===We?L==="svg":k.namespaceURI===an?L==="svg"&&(Y==="annotation-xml"||Bo[Y]):!!Do[L]:f.namespaceURI===an?k.namespaceURI===We?L==="math":k.namespaceURI===ln?L==="math"&&No[Y]:!!Mo[L]:f.namespaceURI===We?k.namespaceURI===ln&&!No[Y]||k.namespaceURI===an&&!Bo[Y]?!1:!Mo[L]&&(qi[L]||!Do[L]):!!(Et==="application/xhtml+xml"&&Nn[f.namespaceURI]):!1},Ve=function(f){Lt(e.removed,{element:f});try{B(f).removeChild(f)}catch{x(f)}},cn=function(f,k){try{Lt(e.removed,{attribute:k.getAttributeNode(f),from:k})}catch{Lt(e.removed,{attribute:null,from:k})}if(k.removeAttribute(f),f==="is"&&!y[f])if(mt||rn)try{Ve(k)}catch{}else try{k.setAttribute(f,"")}catch{}},Ro=function(f){let k=null,L=null;if(ze)f="<remove></remove>"+f;else{const te=$r(f,/^[\r\n\t ]+/);L=te&&te[0]}Et==="application/xhtml+xml"&&gt===We&&(f='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+f+"</body></html>");const Y=j?j.createHTML(f):f;if(gt===We)try{k=new b().parseFromString(Y,Et)}catch{}if(!k||!k.documentElement){k=me.createDocument(gt,"template",null);try{k.documentElement.innerHTML=Bn?Z:Y}catch{}}const ie=k.body||k.documentElement;return f&&L&&ie.insertBefore(n.createTextNode(L),ie.childNodes[0]||null),gt===We?we.call(k,oe?"html":"body")[0]:oe?k.documentElement:ie},Uo=function(f){return Q.call(f.ownerDocument||f,f,d.SHOW_ELEMENT|d.SHOW_COMMENT|d.SHOW_TEXT|d.SHOW_PROCESSING_INSTRUCTION|d.SHOW_CDATA_SECTION,null)},Vo=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")},Ho=function(f){return typeof a=="function"&&f instanceof a},Ge=function(f,k,L){J[f]&&mn(J[f],Y=>{Y.call(e,k,L,vt)})},jo=function(f){let k=null;if(Ge("beforeSanitizeElements",f,null),Vo(f))return Ve(f),!0;const L=ee(f.nodeName);if(Ge("uponSanitizeElement",f,{tagName:L,allowedTags:u}),f.hasChildNodes()&&!Ho(f.firstElementChild)&&ue(/<[/\w]/g,f.innerHTML)&&ue(/<[/\w]/g,f.textContent)||f.nodeType===Nt.progressingInstruction||he&&f.nodeType===Nt.comment&&ue(/<[/\w]/g,f.data))return Ve(f),!0;if(!u[L]||E[L]){if(!E[L]&&Ko(L)&&(v.tagNameCheck instanceof RegExp&&ue(v.tagNameCheck,L)||v.tagNameCheck instanceof Function&&v.tagNameCheck(L)))return!1;if(On&&!ht[L]){const Y=B(f)||f.parentNode,ie=I(f)||f.childNodes;if(ie&&Y){const te=ie.length;for(let ge=te-1;ge>=0;--ge){const He=$(ie[ge],!0);He.__removalCount=(f.__removalCount||0)+1,Y.insertBefore(He,M(f))}}}return Ve(f),!0}return f instanceof l&&!Yi(f)||(L==="noscript"||L==="noembed"||L==="noframes")&&ue(/<\/no(script|embed|frames)/i,f.innerHTML)?(Ve(f),!0):(U&&f.nodeType===Nt.text&&(k=f.textContent,mn([pe,Le,_e],Y=>{k=Ot(k,Y," ")}),f.textContent!==k&&(Lt(e.removed,{element:f.cloneNode()}),f.textContent=k)),Ge("afterSanitizeElements",f,null),!1)},Fo=function(f,k,L){if(Eo&&(k==="id"||k==="name")&&(L in n||L in Gi))return!1;if(!(A&&!w[k]&&ue(Je,k))){if(!(_&&ue(Ke,k))){if(!y[k]||w[k]){if(!(Ko(f)&&(v.tagNameCheck instanceof RegExp&&ue(v.tagNameCheck,f)||v.tagNameCheck instanceof Function&&v.tagNameCheck(f))&&(v.attributeNameCheck instanceof RegExp&&ue(v.attributeNameCheck,k)||v.attributeNameCheck instanceof Function&&v.attributeNameCheck(k))||k==="is"&&v.allowCustomizedBuiltInElements&&(v.tagNameCheck instanceof RegExp&&ue(v.tagNameCheck,L)||v.tagNameCheck instanceof Function&&v.tagNameCheck(L))))return!1}else if(!$n[k]){if(!ue(Te,Ot(L,Ue,""))){if(!((k==="src"||k==="xlink:href"||k==="href")&&f!=="script"&&Sd(L,"data:")===0&&xo[f])){if(!(P&&!ue(Re,Ot(L,Ue,"")))){if(L)return!1}}}}}}return!0},Ko=function(f){return f!=="annotation-xml"&&$r(f,it)},zo=function(f){Ge("beforeSanitizeAttributes",f,null);const{attributes:k}=f;if(!k)return;const L={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:y};let Y=k.length;for(;Y--;){const ie=k[Y],{name:te,namespaceURI:ge,value:He}=ie,Pt=ee(te);let ce=te==="value"?He:Cd(He);if(L.attrName=Pt,L.attrValue=ce,L.keepAttr=!0,L.forceKeepAttr=void 0,Ge("uponSanitizeAttribute",f,L),ce=L.attrValue,he&&ue(/((--!?|])>)|<\/(style|title)/i,ce)){cn(te,f);continue}if(L.forceKeepAttr||(cn(te,f),!L.keepAttr))continue;if(!N&&ue(/\/>/i,ce)){cn(te,f);continue}U&&mn([pe,Le,_e],Go=>{ce=Ot(ce,Go," ")});const Wo=ee(f.nodeName);if(Fo(Wo,Pt,ce)){if(Po&&(Pt==="id"||Pt==="name")&&(cn(te,f),ce=Fi+ce),j&&typeof C=="object"&&typeof C.getAttributeType=="function"&&!ge)switch(C.getAttributeType(Wo,Pt)){case"TrustedHTML":{ce=j.createHTML(ce);break}case"TrustedScriptURL":{ce=j.createScriptURL(ce);break}}try{ge?f.setAttributeNS(ge,te,ce):f.setAttribute(te,ce),Vo(f)?Ve(f):Or(e.removed)}catch{}}}Ge("afterSanitizeAttributes",f,null)},Xi=function O(f){let k=null;const L=Uo(f);for(Ge("beforeSanitizeShadowDOM",f,null);k=L.nextNode();)Ge("uponSanitizeShadowNode",k,null),!jo(k)&&(k.content instanceof i&&O(k.content),zo(k));Ge("afterSanitizeShadowDOM",f,null)};return e.sanitize=function(O){let f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},k=null,L=null,Y=null,ie=null;if(Bn=!O,Bn&&(O="<!-->"),typeof O!="string"&&!Ho(O))if(typeof O.toString=="function"){if(O=O.toString(),typeof O!="string")throw $t("dirty is not a string, aborting")}else throw $t("toString is not a function");if(!e.isSupported)return O;if(re||Dn(f),e.removed=[],typeof O=="string"&&(Tt=!1),Tt){if(O.nodeName){const He=ee(O.nodeName);if(!u[He]||E[He])throw $t("root node is forbidden and cannot be sanitized in-place")}}else if(O instanceof a)k=Ro("<!---->"),L=k.ownerDocument.importNode(O,!0),L.nodeType===Nt.element&&L.nodeName==="BODY"||L.nodeName==="HTML"?k=L:k.appendChild(L);else{if(!mt&&!U&&!oe&&O.indexOf("<")===-1)return j&&sn?j.createHTML(O):O;if(k=Ro(O),!k)return mt?null:sn?Z:""}k&&ze&&Ve(k.firstChild);const te=Uo(Tt?O:k);for(;Y=te.nextNode();)jo(Y)||(Y.content instanceof i&&Xi(Y.content),zo(Y));if(Tt)return O;if(mt){if(rn)for(ie=xe.call(k.ownerDocument);k.firstChild;)ie.appendChild(k.firstChild);else ie=k;return(y.shadowroot||y.shadowrootmode)&&(ie=q.call(o,ie,!0)),ie}let ge=oe?k.outerHTML:k.innerHTML;return oe&&u["!doctype"]&&k.ownerDocument&&k.ownerDocument.doctype&&k.ownerDocument.doctype.name&&ue(Bi,k.ownerDocument.doctype.name)&&(ge="<!DOCTYPE "+k.ownerDocument.doctype.name+`>
405
- `+ge),U&&mn([pe,Le,_e],He=>{ge=Ot(ge,He," ")}),j&&sn?j.createHTML(ge):ge},e.setConfig=function(){let O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Dn(O),re=!0},e.clearConfig=function(){vt=null,re=!1},e.isValidAttribute=function(O,f,k){vt||Dn({});const L=ee(O),Y=ee(f);return Fo(L,Y,k)},e.addHook=function(O,f){typeof f=="function"&&(J[O]=J[O]||[],Lt(J[O],f))},e.removeHook=function(O){if(J[O])return Or(J[O])},e.removeHooks=function(O){J[O]&&(J[O]=[])},e.removeAllHooks=function(){J={}},e}var Di=Ni();class Mi{get IsVisible(){return kt.isVisible()}}class Ud extends Mi{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">${Di.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 Vd extends Mi{async CreateConfirmAsync(e){return new Promise(n=>{kt.fire({showCancelButton:!0,allowEscapeKey:!1,allowOutsideClick:!1,icon:"question",title:e.title,html:Di.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 Hd=()=>new Ud,jd=()=>new Vd;function Fd(t){return t instanceof Uint8Array||t!=null&&typeof t=="object"&&t.constructor.name==="Uint8Array"}function Ri(t,...e){if(!Fd(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 Ur(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 Kd(t,e){Ri(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 qn=t=>new DataView(t.buffer,t.byteOffset,t.byteLength),je=(t,e)=>t<<32-e|t>>>e;new Uint8Array(new Uint32Array([287454020]).buffer)[0];function zd(t){if(typeof t!="string")throw new Error(`utf8ToBytes expected string, got ${typeof t}`);return new Uint8Array(new TextEncoder().encode(t))}function Ui(t){return typeof t=="string"&&(t=zd(t)),Ri(t),t}class Wd{clone(){return this._cloneInto()}}function Gd(t){const e=o=>t().update(Ui(o)).digest(),n=t();return e.outputLen=n.outputLen,e.blockLen=n.blockLen,e.create=()=>t(),e}function qd(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 Yd=(t,e,n)=>t&e^~t&n,Xd=(t,e,n)=>t&e^t&n^e&n;class Zd extends Wd{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=qn(this.buffer)}update(e){Ur(this);const{view:n,buffer:o,blockLen:r}=this;e=Ui(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=qn(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){Ur(this),Kd(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;qd(o,r-8,BigInt(this.length*8),i),this.process(o,0);const a=qn(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 Jd=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]),Qe=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),et=new Uint32Array(64);class Qd extends Zd{constructor(){super(64,32,8,!1),this.A=Qe[0]|0,this.B=Qe[1]|0,this.C=Qe[2]|0,this.D=Qe[3]|0,this.E=Qe[4]|0,this.F=Qe[5]|0,this.G=Qe[6]|0,this.H=Qe[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)et[h]=e.getUint32(n,!1);for(let h=16;h<64;h++){const b=et[h-15],C=et[h-2],T=je(b,7)^je(b,18)^b>>>3,$=je(C,17)^je(C,19)^C>>>10;et[h]=$+et[h-7]+T+et[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 b=je(a,6)^je(a,11)^je(a,25),C=m+b+Yd(a,l,d)+Jd[h]+et[h]|0,$=(je(o,2)^je(o,13)^je(o,22))+Xd(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(){et.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}const ef=Gd(()=>new Qd);class Ut extends Error{}Ut.prototype.name="InvalidTokenError";function tf(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 nf(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 tf(e)}catch{return atob(e)}}function Yn(t,e){if(typeof t!="string")throw new Ut("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 Ut(`Invalid token specified: missing part #${n+1}`);let r;try{r=nf(o)}catch(i){throw new Ut(`Invalid token specified: invalid base64 for part #${n+1} (${i.message})`)}try{return JSON.parse(r)}catch(i){throw new Ut(`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 Vi(t){if(!(this instanceof Vi))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=Te(console.info),m=Te(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=it();var p=["default","cordova","cordova-native"];if(u&&p.indexOf(u.adapter)>-1?n=Ke(u.adapter):u&&typeof u.adapter=="object"?n=u.adapter:window.Cordova||window.cordova?n=Ke("cordova"):n=Ke(),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 y=q(),S=q();S.promise.then(function(){e.onReady&&e.onReady(e.authenticated),y.setSuccess(e.authenticated)}).catch(function(A){y.setError(A)});var v=B();function E(){var A=function(U){U||(N.prompt="none"),u&&u.locale&&(N.locale=u.locale),e.login(N).then(function(){S.setSuccess()}).catch(function(he){S.setError(he)})},P=function(){var U=document.createElement("iframe"),he=e.createLoginUrl({prompt:"none",redirectUri:e.silentCheckSsoRedirectUri});U.setAttribute("src",he),U.setAttribute("sandbox","allow-storage-access-by-user-activation allow-scripts allow-same-origin"),U.setAttribute("title","keycloak-silent-check-sso"),U.style.display="none",document.body.appendChild(U);var oe=function(re){if(!(re.origin!==window.location.origin||U.contentWindow!==re.source)){var ze=Q(re.data);I(ze,S),document.body.removeChild(U),window.removeEventListener("message",oe)}};window.addEventListener("message",oe)},N={};switch(u.onLoad){case"check-sso":i.enable?pe().then(function(){_e().then(function(U){U?S.setSuccess():e.silentCheckSsoRedirectUri?P():A(!1)}).catch(function(U){S.setError(U)})}):e.silentCheckSsoRedirectUri?P():A(!1);break;case"login-required":A(!0);break;default:throw"Invalid value for onLoad"}}function w(){var A=Q(window.location.href);if(A&&window.history.replaceState(window.history.state,null,A.newUrl),A&&A.valid)return pe().then(function(){I(A,S)}).catch(function(P){S.setError(P)});u?u.token&&u.refreshToken?(Z(u.token,u.refreshToken,u.idToken),i.enable?pe().then(function(){_e().then(function(P){P?(e.onAuthSuccess&&e.onAuthSuccess(),S.setSuccess(),Le()):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=q(),P=function(){(document.readyState==="interactive"||document.readyState==="complete")&&(document.removeEventListener("readystatechange",P),A.setSuccess())};return document.addEventListener("readystatechange",P),P(),A.promise}return v.then(function(){_().then(Je).then(w).catch(function(A){y.setError(A)})}),v.catch(function(A){y.setError(A)}),y.promise},e.login=function(u){return n.login(u)};function h(u){var p=null,y=window.crypto||window.msCrypto;if(y&&y.getRandomValues&&window.Uint8Array)return p=new Uint8Array(u),y.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 b(u){return C(u,"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789")}function C(u,p){for(var y=h(u),S=new Array(u),v=0;v<u;v++)S[v]=p.charCodeAt(y[v]%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 y=ef(p);return of(y).replace(/\+/g,"-").replace(/\//g,"_").replace(/\=/g,"")}function $(u){var p={id_token:{acr:u}};return JSON.stringify(p)}e.createLoginUrl=function(u){var p=me(),y=me(),S=n.redirectUri(u),v={state:p,nonce:y,redirectUri:encodeURIComponent(S),loginOptions:u};u&&u.prompt&&(v.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(y)),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=b(96);v.pkceCodeVerifier=P;var N=T(e.pkceMethod,P);_+="&code_challenge="+N,_+="&code_challenge_method="+e.pkceMethod}return r.add(v),_},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 y=e.endpoints.logout()+"?client_id="+encodeURIComponent(e.clientId)+"&post_logout_redirect_uri="+encodeURIComponent(n.redirectUri(u,!1));return e.idToken&&(y+="&id_token_hint="+encodeURIComponent(e.idToken)),y},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(),y=void 0;return typeof p<"u"&&(y=p+"/account?referrer="+encodeURIComponent(e.clientId)+"&referrer_uri="+encodeURIComponent(n.redirectUri(u))),y},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 y=e.resourceAccess[p||e.clientId];return!!y&&y.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 y=q();return p.onreadystatechange=function(){p.readyState==4&&(p.status==200?(e.profile=JSON.parse(p.responseText),y.setSuccess(e.profile)):y.setError())},p.send(),y.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 y=q();return p.onreadystatechange=function(){p.readyState==4&&(p.status==200?(e.userInfo=JSON.parse(p.responseText),y.setSuccess(e.userInfo)):y.setError())},p.send(),y.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=q();if(!e.refreshToken)return p.setError(),p.promise;u=u||5;var y=function(){var v=!1;if(u==-1?(v=!0,d("[KEYCLOAK] Refreshing token: forced refresh")):(!e.tokenParsed||e.isTokenExpired(u))&&(v=!0,d("[KEYCLOAK] Refreshing token: token expired")),!v)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);Z(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=_e();S.then(function(){y()}).catch(function(v){p.setError(v)})}else y();return p.promise},e.clearToken=function(){e.token&&(Z(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 M(){return window.location.origin?window.location.origin:window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:"")}function I(u,p){var y=u.code,S=u.error,v=u.prompt,E=new Date().getTime();if(u.kc_action_status&&e.onActionUpdate&&e.onActionUpdate(u.kc_action_status,u.kc_action),S){if(v!="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"&&y){var _="code="+y+"&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 U=JSON.parse(P.responseText);N(U.access_token,U.refresh_token,U.id_token,e.flow==="standard"),Le()}else e.onAuthError&&e.onAuthError(),p&&p.setError()},P.send(_)}function N(U,he,oe,re){E=(E+new Date().getTime())/2,Z(U,he,oe,E),l&&e.idTokenParsed&&e.idTokenParsed.nonce!=u.storedNonce?(d("[KEYCLOAK] Invalid nonce, clearing token"),e.clearToken(),p&&p.setError()):re&&(e.onAuthSuccess&&e.onAuthSuccess(),p&&p.setSuccess())}}function B(u){var p=q(),y;t?typeof t=="string"&&(y=t):y="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(y){var v=new XMLHttpRequest;v.open("GET",y,!0),v.setRequestHeader("Accept","application/json"),v.onreadystatechange=function(){if(v.readyState==4)if(v.status==200||j(v)){var P=JSON.parse(v.responseText);e.authServerUrl=P["auth-server-url"],e.realm=P.realm,e.clientId=P.resource,S(null),p.setSuccess()}else p.setError()},v.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 v=new XMLHttpRequest;v.open("GET",A,!0),v.setRequestHeader("Accept","application/json"),v.onreadystatechange=function(){if(v.readyState==4)if(v.status==200||j(v)){var N=JSON.parse(v.responseText);S(N),p.setSuccess()}else p.setError()},v.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 j(u){return u.status==0&&u.responseText&&u.responseURL.startsWith("file:")}function Z(u,p,y,S){if(e.tokenTimeoutHandle&&(clearTimeout(e.tokenTimeoutHandle),e.tokenTimeoutHandle=null),p?(e.refreshToken=p,e.refreshTokenParsed=Yn(p)):(delete e.refreshToken,delete e.refreshTokenParsed),y?(e.idToken=y,e.idTokenParsed=Yn(y)):(delete e.idToken,delete e.idTokenParsed),u){if(e.token=u,e.tokenParsed=Yn(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 v=(e.tokenParsed.exp-new Date().getTime()/1e3+e.timeSkew)*1e3;d("[KEYCLOAK] Token expires in "+Math.round(v/1e3)+" s"),v<=0?e.onTokenExpired():e.tokenTimeoutHandle=setTimeout(e.onTokenExpired,v)}}else delete e.token,delete e.tokenParsed,delete e.subject,delete e.realmAccess,delete e.resourceAccess,e.authenticated=!1}function me(){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 y=p.join("");return y}function Q(u){var p=xe(u);if(p){var y=r.get(p.state);return y&&(p.valid=!0,p.redirectUri=y.redirectUri,p.storedNonce=y.nonce,p.prompt=y.prompt,p.pkceCodeVerifier=y.pkceCodeVerifier,p.loginOptions=y.loginOptions),p}}function xe(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 y=u.indexOf("?"),S=u.indexOf("#"),v,E;if(e.responseMode==="query"&&y!==-1?(v=u.substring(0,y),E=we(u.substring(y+1,S!==-1?S:u.length),p),E.paramsString!==""&&(v+="?"+E.paramsString),S!==-1&&(v+=u.substring(S))):e.responseMode==="fragment"&&S!==-1&&(v=u.substring(0,S),E=we(u.substring(S+1),p),E.paramsString!==""&&(v+="#"+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=v,E.oauthParams}else if(e.flow==="implicit"&&(E.oauthParams.access_token||E.oauthParams.error)&&E.oauthParams.state)return E.oauthParams.newUrl=v,E.oauthParams}}function we(u,p){for(var y=u.split("&"),S={paramsString:"",oauthParams:{}},v=0;v<y.length;v++){var E=y[v].indexOf("="),w=y[v].slice(0,E);p.indexOf(w)!==-1?S.oauthParams[w]=y[v].slice(E+1):(S.paramsString!==""&&(S.paramsString+="&"),S.paramsString+=y[v])}return S}function q(){var u={setSuccess:function(p){u.resolve(p)},setError:function(p){u.reject(p)}};return u.promise=new Promise(function(p,y){u.resolve=p,u.reject=y}),u}function J(u,p,y){var S=null,v=new Promise(function(E,w){S=setTimeout(function(){w({error:y})},p)});return Promise.race([u,v]).finally(function(){clearTimeout(S)})}function pe(){var u=q();if(!i.enable||i.iframe)return u.setSuccess(),u.promise;var p=document.createElement("iframe");i.iframe=p,p.onload=function(){var v=e.endpoints.authorize();v.charAt(0)==="/"?i.iframeOrigin=M():i.iframeOrigin=v.substring(0,v.indexOf("/",8)),u.setSuccess()};var y=e.endpoints.checkSessionIframe();p.setAttribute("src",y),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(v){if(!(v.origin!==i.iframeOrigin||i.iframe.contentWindow!==v.source)&&(v.data=="unchanged"||v.data=="changed"||v.data=="error")){v.data!="unchanged"&&e.clearToken();for(var E=i.callbackList.splice(0,i.callbackList.length),w=E.length-1;w>=0;--w){var _=E[w];v.data=="error"?_.setError():_.setSuccess(v.data=="unchanged")}}};return window.addEventListener("message",S,!1),u.promise}function Le(){i.enable&&e.token&&setTimeout(function(){_e().then(function(u){u&&Le()})},i.interval*1e3)}function _e(){var u=q();if(i.iframe&&i.iframeOrigin){var p=e.clientId+" "+(e.sessionId?e.sessionId:"");i.callbackList.push(u);var y=i.iframeOrigin;i.callbackList.length==1&&i.iframe.contentWindow.postMessage(p,y)}else u.setSuccess();return u.promise}function Je(){var u=q();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 y=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:
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 Ku(){const t=R.domCache.get(this),e=R.innerParams.get(this);if(!e){Ii(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(),zu(this)}const zu=t=>{Ii(t),delete t.params,delete D.keydownHandler,delete D.keydownTarget,delete D.currentInstance},Ii=t=>{t.isAwaitingPromise()?(jn(R,t),R.awaitingPromise.set(t,!0)):(jn(Zt,t),jn(R,t))},jn=(t,e)=>{for(const n in t)t[n].delete(e)},Ti=Object.freeze(Object.defineProperty({__proto__:null,_destroy:Ku,close:fn,closeModal:fn,closePopup:fn,closeToast:fn,disableButtons:Du,disableInput:Ru,disableLoading:Tr,enableButtons:Nu,enableInput:Mu,getInput:vu,getProgressSteps:Hu,handleAwaitingPromise:on,hideLoading:Tr,isAwaitingPromise:Au,rejectPromise:Lu,resetValidationMessage:Vu,showValidationMessage:Uu,update:ju},Symbol.toStringTag,{value:"Module"})),Wu=t=>{const e=R.innerParams.get(t);t.disableButtons(),e.input?Ei(t,"confirm"):To(t,!0)},Gu=t=>{const e=R.innerParams.get(t);t.disableButtons(),e.returnInputValueOnDeny?Ei(t,"deny"):Io(t,!1)},qu=(t,e)=>{t.disableButtons(),e(Ct.cancel)},Ei=(t,e)=>{const n=R.innerParams.get(t);if(!n.input)return ft(`The "input" parameter is needed to be set when using returnInputValueOn${ho(e)}`);const o=cu(t,n);n.inputValidator?Yu(t,o,e):t.getInput().checkValidity()?e==="deny"?Io(t,o):To(t,o):(t.enableButtons(),t.showValidationMessage(n.validationMessage))},Yu=(t,e,n)=>{const o=R.innerParams.get(t);t.disableInput(),Promise.resolve().then(()=>Jt(o.inputValidator(e,o.validationMessage))).then(i=>{t.enableButtons(),t.enableInput(),i?t.showValidationMessage(i):n==="deny"?Io(t,e):To(t,e)})},Io=(t,e)=>{const n=R.innerParams.get(t||void 0);n.showLoaderOnDeny&&_t(rt()),n.preDeny?(R.awaitingPromise.set(t||void 0,!0),Promise.resolve().then(()=>Jt(n.preDeny(e,n.validationMessage))).then(r=>{r===!1?(t.hideLoading(),on(t)):t.closePopup({isDenied:!0,value:typeof r>"u"?e:r})}).catch(r=>Pi(t||void 0,r))):t.closePopup({isDenied:!0,value:e})},Pr=(t,e)=>{t.closePopup({isConfirmed:!0,value:e})},Pi=(t,e)=>{t.rejectPromise(e)},To=(t,e)=>{const n=R.innerParams.get(t||void 0);n.showLoaderOnConfirm&&_t(),n.preConfirm?(t.resetValidationMessage(),R.awaitingPromise.set(t||void 0,!0),Promise.resolve().then(()=>Jt(n.preConfirm(e,n.validationMessage))).then(r=>{Se(Pn())||r===!1?(t.hideLoading(),on(t)):Pr(t,typeof r>"u"?e:r)}).catch(r=>Pi(t||void 0,r))):Pr(t,e)},Xu=(t,e,n)=>{R.innerParams.get(t).toast?Zu(t,e,n):(Qu(e),ed(e),td(t,e,n))},Zu=(t,e,n)=>{e.popup.onclick=()=>{const o=R.innerParams.get(t);o&&(Ju(o)||o.timer||o.input)||n(Ct.close)}},Ju=t=>t.showConfirmButton||t.showDenyButton||t.showCancelButton||t.showCloseButton;let kn=!1;const Qu=t=>{t.popup.onmousedown=()=>{t.container.onmouseup=function(e){t.container.onmouseup=void 0,e.target===t.container&&(kn=!0)}}},ed=t=>{t.container.onmousedown=()=>{t.popup.onmouseup=function(e){t.popup.onmouseup=void 0,(e.target===t.popup||t.popup.contains(e.target))&&(kn=!0)}}},td=(t,e,n)=>{e.container.onclick=o=>{const r=R.innerParams.get(t);if(kn){kn=!1;return}o.target===e.container&&En(r.allowOutsideClick)&&n(Ct.backdrop)}},nd=t=>typeof t=="object"&&t.jquery,Ar=t=>t instanceof Element||nd(t),od=t=>{const e={};return typeof t[0]=="object"&&!Ar(t[0])?Object.assign(e,t[0]):["title","html","icon"].forEach((n,o)=>{const r=t[o];typeof r=="string"||Ar(r)?e[n]=r:r!==void 0&&ft(`Unexpected type of ${n}! Expected "string" or "Element", got ${typeof r}`)}),e};function rd(...t){const e=this;return new e(...t)}function id(t){class e extends this{_main(o,r){return super._main(o,Object.assign({},t,r))}}return e}const sd=()=>D.timeout&&D.timeout.getTimerLeft(),Ai=()=>{if(D.timeout)return Gl(),D.timeout.stop()},xi=()=>{if(D.timeout){const t=D.timeout.start();return ko(t),t}},ad=()=>{const t=D.timeout;return t&&(t.running?Ai():xi())},ld=t=>{if(D.timeout){const e=D.timeout.increase(t);return ko(e,!0),e}},cd=()=>D.timeout&&D.timeout.isRunning();let xr=!1;const oo={};function ud(t="data-swal-template"){oo[t]=this,xr||(document.body.addEventListener("click",dd),xr=!0)}const dd=t=>{for(let e=t.target;e&&e!==document;e=e.parentNode)for(const n in oo){const o=e.getAttribute(n);if(o){oo[n].fire({template:o});return}}},fd=Object.freeze(Object.defineProperty({__proto__:null,argsToParams:od,bindClickHandler:ud,clickCancel:wu,clickConfirm:bi,clickDeny:bu,enableLoading:_t,fire:rd,getActions:tn,getCancelButton:ut,getCloseButton:yo,getConfirmButton:De,getContainer:ae,getDenyButton:rt,getFocusableElements:bo,getFooter:li,getHtmlContainer:_n,getIcon:en,getImage:si,getInputLabel:jl,getLoader:St,getPopup:G,getTimerLeft:sd,getTimerProgressBar:An,getTitle:ii,getValidationMessage:Pn,increaseTimer:ld,isDeprecatedParameter:eo,isLoading:Kl,isTimerRunning:cd,isUpdatableParameter:oi,isValidParameter:ni,isVisible:yu,mixin:id,resumeTimer:xi,showLoading:_t,stopTimer:Ai,toggleTimer:ad},Symbol.toStringTag,{value:"Module"}));let ro;class It{constructor(...e){if(typeof window>"u")return;ro=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);R.promise.set(this,o)}_main(e,n={}){Vl(Object.assign({},n,e)),D.currentInstance&&(D.currentInstance._destroy(),wo()&&hi()),D.currentInstance=this;const o=pd(e,n);Wc(o),Object.freeze(o),D.timeout&&(D.timeout.stop(),delete D.timeout),clearTimeout(D.restoreFocusTimeout);const r=hd(this);return pi(this,o),R.innerParams.set(this,o),md(this,r,o)}then(e){return R.promise.get(this).then(e)}finally(e){return R.promise.get(this).finally(e)}}const md=(t,e,n)=>new Promise((o,r)=>{const i=c=>{t.closePopup({isDismissed:!0,dismiss:c})};Zt.swalPromiseResolve.set(t,o),Zt.swalPromiseReject.set(t,r),e.confirmButton.onclick=()=>Wu(t),e.denyButton.onclick=()=>Gu(t),e.cancelButton.onclick=()=>qu(t,i),e.closeButton.onclick=()=>i(Ct.close),Xu(t,e,i),_u(t,D,n,i),lu(t,n),ou(n),gd(D,n,i),vd(e,n),setTimeout(()=>{e.container.scrollTop=0})}),pd=(t,e)=>{const n=Dc(t),o=Object.assign({},bt,e,n,t);return o.showClass=Object.assign({},bt.showClass,o.showClass),o.hideClass=Object.assign({},bt.hideClass,o.hideClass),o},hd=t=>{const e={popup:G(),container:ae(),actions:tn(),confirmButton:De(),denyButton:rt(),cancelButton:ut(),loader:St(),closeButton:yo(),validationMessage:Pn(),progressSteps:ai()};return R.domCache.set(t,e),e},gd=(t,e,n)=>{const o=An();le(o),e.timer&&(t.timeout=new Gc(()=>{n("timer"),delete t.timeout},e.timer),e.timerProgressBar&&(ne(o),Ee(o,e,"timerProgressBar"),setTimeout(()=>{t.timeout&&t.timeout.running&&ko(e.timer)})))},vd=(t,e)=>{if(!e.toast){if(!En(e.allowEnterKey))return bd();yd(t,e)||no(e,-1,1)}},yd=(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,bd=()=>{document.activeElement instanceof HTMLElement&&typeof document.activeElement.blur=="function"&&document.activeElement.blur()};Object.assign(It.prototype,Ti);Object.assign(It,fd);Object.keys(Ti).forEach(t=>{It[t]=function(...e){if(ro)return ro[t](...e)}});It.DismissReason=Ct;It.version="11.4.8";const kt=It;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:Li,setPrototypeOf:Lr,isFrozen:wd,getPrototypeOf:_d,getOwnPropertyDescriptor:kd}=Object;let{freeze:fe,seal:Pe,create:Oi}=Object,{apply:io,construct:so}=typeof Reflect<"u"&&Reflect;fe||(fe=function(e){return e});Pe||(Pe=function(e){return e});io||(io=function(e,n,o){return e.apply(n,o)});so||(so=function(e,n){return new e(...n)});const mn=Ie(Array.prototype.forEach),Or=Ie(Array.prototype.pop),Lt=Ie(Array.prototype.push),gn=Ie(String.prototype.toLowerCase),Fn=Ie(String.prototype.toString),$r=Ie(String.prototype.match),Ot=Ie(String.prototype.replace),Sd=Ie(String.prototype.indexOf),Cd=Ie(String.prototype.trim),$e=Ie(Object.prototype.hasOwnProperty),ue=Ie(RegExp.prototype.test),$t=Id(TypeError);function Ie(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 io(t,e,o)}}function Id(t){return function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return so(t,n)}}function H(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:gn;Lr&&Lr(t,null);let o=e.length;for(;o--;){let r=e[o];if(typeof r=="string"){const i=n(r);i!==r&&(wd(e)||(e[o]=i),r=i)}t[r]=!0}return t}function Td(t){for(let e=0;e<t.length;e++)$e(t,e)||(t[e]=null);return t}function at(t){const e=Oi(null);for(const[n,o]of Li(t))$e(t,n)&&(Array.isArray(o)?e[n]=Td(o):o&&typeof o=="object"&&o.constructor===Object?e[n]=at(o):e[n]=o);return e}function Bt(t,e){for(;t!==null;){const o=kd(t,e);if(o){if(o.get)return Ie(o.get);if(typeof o.value=="function")return Ie(o.value)}t=_d(t)}function n(){return null}return n}const Br=fe(["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"]),Kn=fe(["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"]),zn=fe(["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"]),Ed=fe(["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"]),Wn=fe(["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"]),Pd=fe(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Nr=fe(["#text"]),Dr=fe(["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"]),Gn=fe(["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"]),Mr=fe(["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"]),pn=fe(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Ad=Pe(/\{\{[\w\W]*|[\w\W]*\}\}/gm),xd=Pe(/<%[\w\W]*|[\w\W]*%>/gm),Ld=Pe(/\${[\w\W]*}/gm),Od=Pe(/^data-[\-\w.\u00B7-\uFFFF]/),$d=Pe(/^aria-[\-\w]+$/),$i=Pe(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Bd=Pe(/^(?:\w+script|data):/i),Nd=Pe(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Bi=Pe(/^html$/i),Dd=Pe(/^[a-z][.\w]*(-[.\w]+)+$/i);var Rr=Object.freeze({__proto__:null,MUSTACHE_EXPR:Ad,ERB_EXPR:xd,TMPLIT_EXPR:Ld,DATA_ATTR:Od,ARIA_ATTR:$d,IS_ALLOWED_URI:$i,IS_SCRIPT_OR_DATA:Bd,ATTR_WHITESPACE:Nd,DOCTYPE_NAME:Bi,CUSTOM_ELEMENT:Dd});const Nt={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},Md=function(){return typeof window>"u"?null:window},Rd=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 Ni(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Md();const e=O=>Ni(O);if(e.version="3.1.6",e.removed=[],!t||!t.document||t.document.nodeType!==Nt.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:b,trustedTypes:C}=t,T=l.prototype,$=Bt(T,"cloneNode"),x=Bt(T,"remove"),M=Bt(T,"nextSibling"),I=Bt(T,"childNodes"),B=Bt(T,"parentNode");if(typeof c=="function"){const O=n.createElement("template");O.content&&O.content.ownerDocument&&(n=O.content.ownerDocument)}let j,Z="";const{implementation:me,createNodeIterator:Q,createDocumentFragment:xe,getElementsByTagName:we}=n,{importNode:q}=o;let J={};e.isSupported=typeof Li=="function"&&typeof B=="function"&&me&&me.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:pe,ERB_EXPR:Le,TMPLIT_EXPR:_e,DATA_ATTR:Je,ARIA_ATTR:Ke,IS_SCRIPT_OR_DATA:Me,ATTR_WHITESPACE:Re,CUSTOM_ELEMENT:it}=Rr;let{IS_ALLOWED_URI:Te}=Rr,u=null;const p=H({},[...Br,...Kn,...zn,...Wn,...Nr]);let y=null;const S=H({},[...Dr,...Gn,...Mr,...pn]);let v=Object.seal(Oi(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,U=!1,he=!0,oe=!1,re=!1,ze=!1,mt=!1,rn=!1,sn=!1,Eo=!0,Po=!1;const Fi="user-content-";let On=!0,Tt=!1,pt={},ht=null;const Ao=H({},["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 xo=null;const Lo=H({},["audio","video","img","source","image","track"]);let $n=null;const Oo=H({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),an="http://www.w3.org/1998/Math/MathML",ln="http://www.w3.org/2000/svg",We="http://www.w3.org/1999/xhtml";let gt=We,Bn=!1,Nn=null;const Ki=H({},[an,ln,We],Fn);let Et=null;const zi=["application/xhtml+xml","text/html"],Wi="text/html";let ee=null,vt=null;const Gi=n.createElement("form"),$o=function(f){return f instanceof RegExp||f instanceof Function},Dn=function(){let f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(vt&&vt===f)){if((!f||typeof f!="object")&&(f={}),f=at(f),Et=zi.indexOf(f.PARSER_MEDIA_TYPE)===-1?Wi:f.PARSER_MEDIA_TYPE,ee=Et==="application/xhtml+xml"?Fn:gn,u=$e(f,"ALLOWED_TAGS")?H({},f.ALLOWED_TAGS,ee):p,y=$e(f,"ALLOWED_ATTR")?H({},f.ALLOWED_ATTR,ee):S,Nn=$e(f,"ALLOWED_NAMESPACES")?H({},f.ALLOWED_NAMESPACES,Fn):Ki,$n=$e(f,"ADD_URI_SAFE_ATTR")?H(at(Oo),f.ADD_URI_SAFE_ATTR,ee):Oo,xo=$e(f,"ADD_DATA_URI_TAGS")?H(at(Lo),f.ADD_DATA_URI_TAGS,ee):Lo,ht=$e(f,"FORBID_CONTENTS")?H({},f.FORBID_CONTENTS,ee):Ao,E=$e(f,"FORBID_TAGS")?H({},f.FORBID_TAGS,ee):{},w=$e(f,"FORBID_ATTR")?H({},f.FORBID_ATTR,ee):{},pt=$e(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,U=f.SAFE_FOR_TEMPLATES||!1,he=f.SAFE_FOR_XML!==!1,oe=f.WHOLE_DOCUMENT||!1,mt=f.RETURN_DOM||!1,rn=f.RETURN_DOM_FRAGMENT||!1,sn=f.RETURN_TRUSTED_TYPE||!1,ze=f.FORCE_BODY||!1,Eo=f.SANITIZE_DOM!==!1,Po=f.SANITIZE_NAMED_PROPS||!1,On=f.KEEP_CONTENT!==!1,Tt=f.IN_PLACE||!1,Te=f.ALLOWED_URI_REGEXP||$i,gt=f.NAMESPACE||We,v=f.CUSTOM_ELEMENT_HANDLING||{},f.CUSTOM_ELEMENT_HANDLING&&$o(f.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(v.tagNameCheck=f.CUSTOM_ELEMENT_HANDLING.tagNameCheck),f.CUSTOM_ELEMENT_HANDLING&&$o(f.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(v.attributeNameCheck=f.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),f.CUSTOM_ELEMENT_HANDLING&&typeof f.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(v.allowCustomizedBuiltInElements=f.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),U&&(A=!1),rn&&(mt=!0),pt&&(u=H({},Nr),y=[],pt.html===!0&&(H(u,Br),H(y,Dr)),pt.svg===!0&&(H(u,Kn),H(y,Gn),H(y,pn)),pt.svgFilters===!0&&(H(u,zn),H(y,Gn),H(y,pn)),pt.mathMl===!0&&(H(u,Wn),H(y,Mr),H(y,pn))),f.ADD_TAGS&&(u===p&&(u=at(u)),H(u,f.ADD_TAGS,ee)),f.ADD_ATTR&&(y===S&&(y=at(y)),H(y,f.ADD_ATTR,ee)),f.ADD_URI_SAFE_ATTR&&H($n,f.ADD_URI_SAFE_ATTR,ee),f.FORBID_CONTENTS&&(ht===Ao&&(ht=at(ht)),H(ht,f.FORBID_CONTENTS,ee)),On&&(u["#text"]=!0),oe&&H(u,["html","head","body"]),u.table&&(H(u,["tbody"]),delete E.tbody),f.TRUSTED_TYPES_POLICY){if(typeof f.TRUSTED_TYPES_POLICY.createHTML!="function")throw $t('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof f.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw $t('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');j=f.TRUSTED_TYPES_POLICY,Z=j.createHTML("")}else j===void 0&&(j=Rd(C,r)),j!==null&&typeof Z=="string"&&(Z=j.createHTML(""));fe&&fe(f),vt=f}},Bo=H({},["mi","mo","mn","ms","mtext"]),No=H({},["foreignobject","annotation-xml"]),qi=H({},["title","style","font","a","script"]),Do=H({},[...Kn,...zn,...Ed]),Mo=H({},[...Wn,...Pd]),Yi=function(f){let k=B(f);(!k||!k.tagName)&&(k={namespaceURI:gt,tagName:"template"});const L=gn(f.tagName),Y=gn(k.tagName);return Nn[f.namespaceURI]?f.namespaceURI===ln?k.namespaceURI===We?L==="svg":k.namespaceURI===an?L==="svg"&&(Y==="annotation-xml"||Bo[Y]):!!Do[L]:f.namespaceURI===an?k.namespaceURI===We?L==="math":k.namespaceURI===ln?L==="math"&&No[Y]:!!Mo[L]:f.namespaceURI===We?k.namespaceURI===ln&&!No[Y]||k.namespaceURI===an&&!Bo[Y]?!1:!Mo[L]&&(qi[L]||!Do[L]):!!(Et==="application/xhtml+xml"&&Nn[f.namespaceURI]):!1},Ue=function(f){Lt(e.removed,{element:f});try{B(f).removeChild(f)}catch{x(f)}},cn=function(f,k){try{Lt(e.removed,{attribute:k.getAttributeNode(f),from:k})}catch{Lt(e.removed,{attribute:null,from:k})}if(k.removeAttribute(f),f==="is"&&!y[f])if(mt||rn)try{Ue(k)}catch{}else try{k.setAttribute(f,"")}catch{}},Ro=function(f){let k=null,L=null;if(ze)f="<remove></remove>"+f;else{const te=$r(f,/^[\r\n\t ]+/);L=te&&te[0]}Et==="application/xhtml+xml"&&gt===We&&(f='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+f+"</body></html>");const Y=j?j.createHTML(f):f;if(gt===We)try{k=new b().parseFromString(Y,Et)}catch{}if(!k||!k.documentElement){k=me.createDocument(gt,"template",null);try{k.documentElement.innerHTML=Bn?Z:Y}catch{}}const ie=k.body||k.documentElement;return f&&L&&ie.insertBefore(n.createTextNode(L),ie.childNodes[0]||null),gt===We?we.call(k,oe?"html":"body")[0]:oe?k.documentElement:ie},Uo=function(f){return Q.call(f.ownerDocument||f,f,d.SHOW_ELEMENT|d.SHOW_COMMENT|d.SHOW_TEXT|d.SHOW_PROCESSING_INSTRUCTION|d.SHOW_CDATA_SECTION,null)},Vo=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")},Ho=function(f){return typeof a=="function"&&f instanceof a},Ge=function(f,k,L){J[f]&&mn(J[f],Y=>{Y.call(e,k,L,vt)})},jo=function(f){let k=null;if(Ge("beforeSanitizeElements",f,null),Vo(f))return Ue(f),!0;const L=ee(f.nodeName);if(Ge("uponSanitizeElement",f,{tagName:L,allowedTags:u}),f.hasChildNodes()&&!Ho(f.firstElementChild)&&ue(/<[/\w]/g,f.innerHTML)&&ue(/<[/\w]/g,f.textContent)||f.nodeType===Nt.progressingInstruction||he&&f.nodeType===Nt.comment&&ue(/<[/\w]/g,f.data))return Ue(f),!0;if(!u[L]||E[L]){if(!E[L]&&Ko(L)&&(v.tagNameCheck instanceof RegExp&&ue(v.tagNameCheck,L)||v.tagNameCheck instanceof Function&&v.tagNameCheck(L)))return!1;if(On&&!ht[L]){const Y=B(f)||f.parentNode,ie=I(f)||f.childNodes;if(ie&&Y){const te=ie.length;for(let ge=te-1;ge>=0;--ge){const Ve=$(ie[ge],!0);Ve.__removalCount=(f.__removalCount||0)+1,Y.insertBefore(Ve,M(f))}}}return Ue(f),!0}return f instanceof l&&!Yi(f)||(L==="noscript"||L==="noembed"||L==="noframes")&&ue(/<\/no(script|embed|frames)/i,f.innerHTML)?(Ue(f),!0):(U&&f.nodeType===Nt.text&&(k=f.textContent,mn([pe,Le,_e],Y=>{k=Ot(k,Y," ")}),f.textContent!==k&&(Lt(e.removed,{element:f.cloneNode()}),f.textContent=k)),Ge("afterSanitizeElements",f,null),!1)},Fo=function(f,k,L){if(Eo&&(k==="id"||k==="name")&&(L in n||L in Gi))return!1;if(!(A&&!w[k]&&ue(Je,k))){if(!(_&&ue(Ke,k))){if(!y[k]||w[k]){if(!(Ko(f)&&(v.tagNameCheck instanceof RegExp&&ue(v.tagNameCheck,f)||v.tagNameCheck instanceof Function&&v.tagNameCheck(f))&&(v.attributeNameCheck instanceof RegExp&&ue(v.attributeNameCheck,k)||v.attributeNameCheck instanceof Function&&v.attributeNameCheck(k))||k==="is"&&v.allowCustomizedBuiltInElements&&(v.tagNameCheck instanceof RegExp&&ue(v.tagNameCheck,L)||v.tagNameCheck instanceof Function&&v.tagNameCheck(L))))return!1}else if(!$n[k]){if(!ue(Te,Ot(L,Re,""))){if(!((k==="src"||k==="xlink:href"||k==="href")&&f!=="script"&&Sd(L,"data:")===0&&xo[f])){if(!(P&&!ue(Me,Ot(L,Re,"")))){if(L)return!1}}}}}}return!0},Ko=function(f){return f!=="annotation-xml"&&$r(f,it)},zo=function(f){Ge("beforeSanitizeAttributes",f,null);const{attributes:k}=f;if(!k)return;const L={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:y};let Y=k.length;for(;Y--;){const ie=k[Y],{name:te,namespaceURI:ge,value:Ve}=ie,Pt=ee(te);let ce=te==="value"?Ve:Cd(Ve);if(L.attrName=Pt,L.attrValue=ce,L.keepAttr=!0,L.forceKeepAttr=void 0,Ge("uponSanitizeAttribute",f,L),ce=L.attrValue,he&&ue(/((--!?|])>)|<\/(style|title)/i,ce)){cn(te,f);continue}if(L.forceKeepAttr||(cn(te,f),!L.keepAttr))continue;if(!N&&ue(/\/>/i,ce)){cn(te,f);continue}U&&mn([pe,Le,_e],Go=>{ce=Ot(ce,Go," ")});const Wo=ee(f.nodeName);if(Fo(Wo,Pt,ce)){if(Po&&(Pt==="id"||Pt==="name")&&(cn(te,f),ce=Fi+ce),j&&typeof C=="object"&&typeof C.getAttributeType=="function"&&!ge)switch(C.getAttributeType(Wo,Pt)){case"TrustedHTML":{ce=j.createHTML(ce);break}case"TrustedScriptURL":{ce=j.createScriptURL(ce);break}}try{ge?f.setAttributeNS(ge,te,ce):f.setAttribute(te,ce),Vo(f)?Ue(f):Or(e.removed)}catch{}}}Ge("afterSanitizeAttributes",f,null)},Xi=function O(f){let k=null;const L=Uo(f);for(Ge("beforeSanitizeShadowDOM",f,null);k=L.nextNode();)Ge("uponSanitizeShadowNode",k,null),!jo(k)&&(k.content instanceof i&&O(k.content),zo(k));Ge("afterSanitizeShadowDOM",f,null)};return e.sanitize=function(O){let f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},k=null,L=null,Y=null,ie=null;if(Bn=!O,Bn&&(O="<!-->"),typeof O!="string"&&!Ho(O))if(typeof O.toString=="function"){if(O=O.toString(),typeof O!="string")throw $t("dirty is not a string, aborting")}else throw $t("toString is not a function");if(!e.isSupported)return O;if(re||Dn(f),e.removed=[],typeof O=="string"&&(Tt=!1),Tt){if(O.nodeName){const Ve=ee(O.nodeName);if(!u[Ve]||E[Ve])throw $t("root node is forbidden and cannot be sanitized in-place")}}else if(O instanceof a)k=Ro("<!---->"),L=k.ownerDocument.importNode(O,!0),L.nodeType===Nt.element&&L.nodeName==="BODY"||L.nodeName==="HTML"?k=L:k.appendChild(L);else{if(!mt&&!U&&!oe&&O.indexOf("<")===-1)return j&&sn?j.createHTML(O):O;if(k=Ro(O),!k)return mt?null:sn?Z:""}k&&ze&&Ue(k.firstChild);const te=Uo(Tt?O:k);for(;Y=te.nextNode();)jo(Y)||(Y.content instanceof i&&Xi(Y.content),zo(Y));if(Tt)return O;if(mt){if(rn)for(ie=xe.call(k.ownerDocument);k.firstChild;)ie.appendChild(k.firstChild);else ie=k;return(y.shadowroot||y.shadowrootmode)&&(ie=q.call(o,ie,!0)),ie}let ge=oe?k.outerHTML:k.innerHTML;return oe&&u["!doctype"]&&k.ownerDocument&&k.ownerDocument.doctype&&k.ownerDocument.doctype.name&&ue(Bi,k.ownerDocument.doctype.name)&&(ge="<!DOCTYPE "+k.ownerDocument.doctype.name+`>
405
+ `+ge),U&&mn([pe,Le,_e],Ve=>{ge=Ot(ge,Ve," ")}),j&&sn?j.createHTML(ge):ge},e.setConfig=function(){let O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Dn(O),re=!0},e.clearConfig=function(){vt=null,re=!1},e.isValidAttribute=function(O,f,k){vt||Dn({});const L=ee(O),Y=ee(f);return Fo(L,Y,k)},e.addHook=function(O,f){typeof f=="function"&&(J[O]=J[O]||[],Lt(J[O],f))},e.removeHook=function(O){if(J[O])return Or(J[O])},e.removeHooks=function(O){J[O]&&(J[O]=[])},e.removeAllHooks=function(){J={}},e}var Di=Ni();class Mi{get IsVisible(){return kt.isVisible()}}class Ud extends Mi{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">${Di.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 Vd extends Mi{async CreateConfirmAsync(e){return new Promise(n=>{kt.fire({showCancelButton:!0,allowEscapeKey:!1,allowOutsideClick:!1,icon:"question",title:e.title,html:Di.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 Hd=()=>new Ud,jd=()=>new Vd;function Fd(t){return t instanceof Uint8Array||t!=null&&typeof t=="object"&&t.constructor.name==="Uint8Array"}function Ri(t,...e){if(!Fd(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 Ur(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 Kd(t,e){Ri(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 qn=t=>new DataView(t.buffer,t.byteOffset,t.byteLength),je=(t,e)=>t<<32-e|t>>>e;new Uint8Array(new Uint32Array([287454020]).buffer)[0];function zd(t){if(typeof t!="string")throw new Error(`utf8ToBytes expected string, got ${typeof t}`);return new Uint8Array(new TextEncoder().encode(t))}function Ui(t){return typeof t=="string"&&(t=zd(t)),Ri(t),t}class Wd{clone(){return this._cloneInto()}}function Gd(t){const e=o=>t().update(Ui(o)).digest(),n=t();return e.outputLen=n.outputLen,e.blockLen=n.blockLen,e.create=()=>t(),e}function qd(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 Yd=(t,e,n)=>t&e^~t&n,Xd=(t,e,n)=>t&e^t&n^e&n;class Zd extends Wd{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=qn(this.buffer)}update(e){Ur(this);const{view:n,buffer:o,blockLen:r}=this;e=Ui(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=qn(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){Ur(this),Kd(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;qd(o,r-8,BigInt(this.length*8),i),this.process(o,0);const a=qn(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 Jd=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]),Qe=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),et=new Uint32Array(64);class Qd extends Zd{constructor(){super(64,32,8,!1),this.A=Qe[0]|0,this.B=Qe[1]|0,this.C=Qe[2]|0,this.D=Qe[3]|0,this.E=Qe[4]|0,this.F=Qe[5]|0,this.G=Qe[6]|0,this.H=Qe[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)et[h]=e.getUint32(n,!1);for(let h=16;h<64;h++){const b=et[h-15],C=et[h-2],T=je(b,7)^je(b,18)^b>>>3,$=je(C,17)^je(C,19)^C>>>10;et[h]=$+et[h-7]+T+et[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 b=je(a,6)^je(a,11)^je(a,25),C=m+b+Yd(a,l,d)+Jd[h]+et[h]|0,$=(je(o,2)^je(o,13)^je(o,22))+Xd(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(){et.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}const ef=Gd(()=>new Qd);class Ut extends Error{}Ut.prototype.name="InvalidTokenError";function tf(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 nf(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 tf(e)}catch{return atob(e)}}function Yn(t,e){if(typeof t!="string")throw new Ut("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 Ut(`Invalid token specified: missing part #${n+1}`);let r;try{r=nf(o)}catch(i){throw new Ut(`Invalid token specified: invalid base64 for part #${n+1} (${i.message})`)}try{return JSON.parse(r)}catch(i){throw new Ut(`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 Vi(t){if(!(this instanceof Vi))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=Te(console.info),m=Te(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=it();var p=["default","cordova","cordova-native"];if(u&&p.indexOf(u.adapter)>-1?n=Ke(u.adapter):u&&typeof u.adapter=="object"?n=u.adapter:window.Cordova||window.cordova?n=Ke("cordova"):n=Ke(),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 y=q(),S=q();S.promise.then(function(){e.onReady&&e.onReady(e.authenticated),y.setSuccess(e.authenticated)}).catch(function(A){y.setError(A)});var v=B();function E(){var A=function(U){U||(N.prompt="none"),u&&u.locale&&(N.locale=u.locale),e.login(N).then(function(){S.setSuccess()}).catch(function(he){S.setError(he)})},P=function(){var U=document.createElement("iframe"),he=e.createLoginUrl({prompt:"none",redirectUri:e.silentCheckSsoRedirectUri});U.setAttribute("src",he),U.setAttribute("sandbox","allow-storage-access-by-user-activation allow-scripts allow-same-origin"),U.setAttribute("title","keycloak-silent-check-sso"),U.style.display="none",document.body.appendChild(U);var oe=function(re){if(!(re.origin!==window.location.origin||U.contentWindow!==re.source)){var ze=Q(re.data);I(ze,S),document.body.removeChild(U),window.removeEventListener("message",oe)}};window.addEventListener("message",oe)},N={};switch(u.onLoad){case"check-sso":i.enable?pe().then(function(){_e().then(function(U){U?S.setSuccess():e.silentCheckSsoRedirectUri?P():A(!1)}).catch(function(U){S.setError(U)})}):e.silentCheckSsoRedirectUri?P():A(!1);break;case"login-required":A(!0);break;default:throw"Invalid value for onLoad"}}function w(){var A=Q(window.location.href);if(A&&window.history.replaceState(window.history.state,null,A.newUrl),A&&A.valid)return pe().then(function(){I(A,S)}).catch(function(P){S.setError(P)});u?u.token&&u.refreshToken?(Z(u.token,u.refreshToken,u.idToken),i.enable?pe().then(function(){_e().then(function(P){P?(e.onAuthSuccess&&e.onAuthSuccess(),S.setSuccess(),Le()):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=q(),P=function(){(document.readyState==="interactive"||document.readyState==="complete")&&(document.removeEventListener("readystatechange",P),A.setSuccess())};return document.addEventListener("readystatechange",P),P(),A.promise}return v.then(function(){_().then(Je).then(w).catch(function(A){y.setError(A)})}),v.catch(function(A){y.setError(A)}),y.promise},e.login=function(u){return n.login(u)};function h(u){var p=null,y=window.crypto||window.msCrypto;if(y&&y.getRandomValues&&window.Uint8Array)return p=new Uint8Array(u),y.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 b(u){return C(u,"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789")}function C(u,p){for(var y=h(u),S=new Array(u),v=0;v<u;v++)S[v]=p.charCodeAt(y[v]%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 y=ef(p);return of(y).replace(/\+/g,"-").replace(/\//g,"_").replace(/\=/g,"")}function $(u){var p={id_token:{acr:u}};return JSON.stringify(p)}e.createLoginUrl=function(u){var p=me(),y=me(),S=n.redirectUri(u),v={state:p,nonce:y,redirectUri:encodeURIComponent(S),loginOptions:u};u&&u.prompt&&(v.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(y)),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=b(96);v.pkceCodeVerifier=P;var N=T(e.pkceMethod,P);_+="&code_challenge="+N,_+="&code_challenge_method="+e.pkceMethod}return r.add(v),_},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 y=e.endpoints.logout()+"?client_id="+encodeURIComponent(e.clientId)+"&post_logout_redirect_uri="+encodeURIComponent(n.redirectUri(u,!1));return e.idToken&&(y+="&id_token_hint="+encodeURIComponent(e.idToken)),y},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(),y=void 0;return typeof p<"u"&&(y=p+"/account?referrer="+encodeURIComponent(e.clientId)+"&referrer_uri="+encodeURIComponent(n.redirectUri(u))),y},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 y=e.resourceAccess[p||e.clientId];return!!y&&y.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 y=q();return p.onreadystatechange=function(){p.readyState==4&&(p.status==200?(e.profile=JSON.parse(p.responseText),y.setSuccess(e.profile)):y.setError())},p.send(),y.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 y=q();return p.onreadystatechange=function(){p.readyState==4&&(p.status==200?(e.userInfo=JSON.parse(p.responseText),y.setSuccess(e.userInfo)):y.setError())},p.send(),y.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=q();if(!e.refreshToken)return p.setError(),p.promise;u=u||5;var y=function(){var v=!1;if(u==-1?(v=!0,d("[KEYCLOAK] Refreshing token: forced refresh")):(!e.tokenParsed||e.isTokenExpired(u))&&(v=!0,d("[KEYCLOAK] Refreshing token: token expired")),!v)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);Z(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=_e();S.then(function(){y()}).catch(function(v){p.setError(v)})}else y();return p.promise},e.clearToken=function(){e.token&&(Z(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 M(){return window.location.origin?window.location.origin:window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:"")}function I(u,p){var y=u.code,S=u.error,v=u.prompt,E=new Date().getTime();if(u.kc_action_status&&e.onActionUpdate&&e.onActionUpdate(u.kc_action_status,u.kc_action),S){if(v!="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"&&y){var _="code="+y+"&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 U=JSON.parse(P.responseText);N(U.access_token,U.refresh_token,U.id_token,e.flow==="standard"),Le()}else e.onAuthError&&e.onAuthError(),p&&p.setError()},P.send(_)}function N(U,he,oe,re){E=(E+new Date().getTime())/2,Z(U,he,oe,E),l&&e.idTokenParsed&&e.idTokenParsed.nonce!=u.storedNonce?(d("[KEYCLOAK] Invalid nonce, clearing token"),e.clearToken(),p&&p.setError()):re&&(e.onAuthSuccess&&e.onAuthSuccess(),p&&p.setSuccess())}}function B(u){var p=q(),y;t?typeof t=="string"&&(y=t):y="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(y){var v=new XMLHttpRequest;v.open("GET",y,!0),v.setRequestHeader("Accept","application/json"),v.onreadystatechange=function(){if(v.readyState==4)if(v.status==200||j(v)){var P=JSON.parse(v.responseText);e.authServerUrl=P["auth-server-url"],e.realm=P.realm,e.clientId=P.resource,S(null),p.setSuccess()}else p.setError()},v.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 v=new XMLHttpRequest;v.open("GET",A,!0),v.setRequestHeader("Accept","application/json"),v.onreadystatechange=function(){if(v.readyState==4)if(v.status==200||j(v)){var N=JSON.parse(v.responseText);S(N),p.setSuccess()}else p.setError()},v.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 j(u){return u.status==0&&u.responseText&&u.responseURL.startsWith("file:")}function Z(u,p,y,S){if(e.tokenTimeoutHandle&&(clearTimeout(e.tokenTimeoutHandle),e.tokenTimeoutHandle=null),p?(e.refreshToken=p,e.refreshTokenParsed=Yn(p)):(delete e.refreshToken,delete e.refreshTokenParsed),y?(e.idToken=y,e.idTokenParsed=Yn(y)):(delete e.idToken,delete e.idTokenParsed),u){if(e.token=u,e.tokenParsed=Yn(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 v=(e.tokenParsed.exp-new Date().getTime()/1e3+e.timeSkew)*1e3;d("[KEYCLOAK] Token expires in "+Math.round(v/1e3)+" s"),v<=0?e.onTokenExpired():e.tokenTimeoutHandle=setTimeout(e.onTokenExpired,v)}}else delete e.token,delete e.tokenParsed,delete e.subject,delete e.realmAccess,delete e.resourceAccess,e.authenticated=!1}function me(){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 y=p.join("");return y}function Q(u){var p=xe(u);if(p){var y=r.get(p.state);return y&&(p.valid=!0,p.redirectUri=y.redirectUri,p.storedNonce=y.nonce,p.prompt=y.prompt,p.pkceCodeVerifier=y.pkceCodeVerifier,p.loginOptions=y.loginOptions),p}}function xe(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 y=u.indexOf("?"),S=u.indexOf("#"),v,E;if(e.responseMode==="query"&&y!==-1?(v=u.substring(0,y),E=we(u.substring(y+1,S!==-1?S:u.length),p),E.paramsString!==""&&(v+="?"+E.paramsString),S!==-1&&(v+=u.substring(S))):e.responseMode==="fragment"&&S!==-1&&(v=u.substring(0,S),E=we(u.substring(S+1),p),E.paramsString!==""&&(v+="#"+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=v,E.oauthParams}else if(e.flow==="implicit"&&(E.oauthParams.access_token||E.oauthParams.error)&&E.oauthParams.state)return E.oauthParams.newUrl=v,E.oauthParams}}function we(u,p){for(var y=u.split("&"),S={paramsString:"",oauthParams:{}},v=0;v<y.length;v++){var E=y[v].indexOf("="),w=y[v].slice(0,E);p.indexOf(w)!==-1?S.oauthParams[w]=y[v].slice(E+1):(S.paramsString!==""&&(S.paramsString+="&"),S.paramsString+=y[v])}return S}function q(){var u={setSuccess:function(p){u.resolve(p)},setError:function(p){u.reject(p)}};return u.promise=new Promise(function(p,y){u.resolve=p,u.reject=y}),u}function J(u,p,y){var S=null,v=new Promise(function(E,w){S=setTimeout(function(){w({error:y})},p)});return Promise.race([u,v]).finally(function(){clearTimeout(S)})}function pe(){var u=q();if(!i.enable||i.iframe)return u.setSuccess(),u.promise;var p=document.createElement("iframe");i.iframe=p,p.onload=function(){var v=e.endpoints.authorize();v.charAt(0)==="/"?i.iframeOrigin=M():i.iframeOrigin=v.substring(0,v.indexOf("/",8)),u.setSuccess()};var y=e.endpoints.checkSessionIframe();p.setAttribute("src",y),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(v){if(!(v.origin!==i.iframeOrigin||i.iframe.contentWindow!==v.source)&&(v.data=="unchanged"||v.data=="changed"||v.data=="error")){v.data!="unchanged"&&e.clearToken();for(var E=i.callbackList.splice(0,i.callbackList.length),w=E.length-1;w>=0;--w){var _=E[w];v.data=="error"?_.setError():_.setSuccess(v.data=="unchanged")}}};return window.addEventListener("message",S,!1),u.promise}function Le(){i.enable&&e.token&&setTimeout(function(){_e().then(function(u){u&&Le()})},i.interval*1e3)}function _e(){var u=q();if(i.iframe&&i.iframeOrigin){var p=e.clientId+" "+(e.sessionId?e.sessionId:"");i.callbackList.push(u);var y=i.iframeOrigin;i.callbackList.length==1&&i.iframe.contentWindow.postMessage(p,y)}else u.setSuccess();return u.promise}function Je(){var u=q();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 y=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(p),window.removeEventListener("message",y),u.setSuccess()))};window.addEventListener("message",y,!1)}else u.setSuccess();return J(u.promise,e.messageReceiveTimeout,"Timeout when waiting for 3rd party check iframe message.")}function Ke(u){if(!u||u=="default")return{login:function(w){return window.location.assign(e.createLoginUrl(w)),q().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)),q().promise},accountManagement:function(){var w=e.createAccountUrl();if(typeof w<"u")window.location.href=w;else throw"Not supported by the OIDC server";return q().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)},y=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(",")},v=function(w){var _=y(w);return _.location="no",w&&w.prompt=="none"&&(_.hidden="yes"),S(_)},E=function(){return e.redirectUri||"http://localhost"};return{login:function(w){var _=q(),A=v(w),P=e.createLoginUrl(w),N=p(P,"_blank",A),U=!1,he=!1,oe=function(){he=!0,N.close()};return N.addEventListener("loadstart",function(re){if(re.url.indexOf(E())==0){var ze=Q(re.url);I(ze,_),oe(),U=!0}}),N.addEventListener("loaderror",function(re){if(!U)if(re.url.indexOf(E())==0){var ze=Q(re.url);I(ze,_),oe(),U=!0}else _.setError(),oe()}),N.addEventListener("exit",function(re){he||_.setError({reason:"closed_by_user"})}),_.promise},logout:function(w){var _=q(),A=e.createLogoutUrl(w),P=p(A,"_blank","location=no,hidden=yes,clearcache=yes"),N;return P.addEventListener("loadstart",function(U){U.url.indexOf(E())==0&&P.close()}),P.addEventListener("loaderror",function(U){U.url.indexOf(E())==0||(N=!0),P.close()}),P.addEventListener("exit",function(U){N?_.setError():(e.clearToken(),_.setSuccess())}),_.promise},register:function(w){var _=q(),A=e.createRegisterUrl(),P=v(w),N=p(A,"_blank",P);return N.addEventListener("loadstart",function(U){if(U.url.indexOf(E())==0){N.close();var he=Q(U.url);I(he,_)}}),_.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 _=q(),A=e.createLoginUrl(w);return universalLinks.subscribe("keycloak",function(P){universalLinks.unsubscribe("keycloak"),window.cordova.plugins.browsertab.close();var N=Q(P.url);I(N,_)}),window.cordova.plugins.browsertab.openUrl(A),_.promise},logout:function(w){var _=q(),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 _=q(),A=e.createRegisterUrl(w);return universalLinks.subscribe("keycloak",function(P){universalLinks.unsubscribe("keycloak"),window.cordova.plugins.browsertab.close();var N=Q(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 Re=function(){if(!(this instanceof Re))return new Re;localStorage.setItem("kc-test","test"),localStorage.removeItem("kc-test");var u=this;function p(){for(var y=new Date().getTime(),S=0;S<localStorage.length;S++){var v=localStorage.key(S);if(v&&v.indexOf("kc-callback-")==0){var E=localStorage.getItem(v);if(E)try{var w=JSON.parse(E).expires;(!w||w<y)&&localStorage.removeItem(v)}catch{localStorage.removeItem(v)}}}}u.get=function(y){if(y){var S="kc-callback-"+y,v=localStorage.getItem(S);return v&&(localStorage.removeItem(S),v=JSON.parse(v)),p(),v}},u.add=function(y){p();var S="kc-callback-"+y.state;y.expires=new Date().getTime()+60*60*1e3,localStorage.setItem(S,JSON.stringify(y))}},Ue=function(){if(!(this instanceof Ue))return new Ue;var u=this;u.get=function(v){if(v){var E=y("kc-callback-"+v);if(S("kc-callback-"+v,"",p(-100)),E)return JSON.parse(E)}},u.add=function(v){S("kc-callback-"+v.state,JSON.stringify(v),p(60))},u.removeItem=function(v){S(v,"",p(-100))};var p=function(v){var E=new Date;return E.setTime(E.getTime()+v*60*1e3),E},y=function(v){for(var E=v+"=",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(v,E,w){var _=v+"="+E+"; expires="+w.toUTCString()+"; ";document.cookie=_}};function it(){try{return new Re}catch{}return new Ue}function Te(u){return function(){e.enableLogging&&u.apply(console,Array.prototype.slice.call(arguments))}}}function of(t){const e=String.fromCodePoint(...t);return btoa(e)}class rf{constructor(e){Oe(this,"oidc");Oe(this,"isAuthenticated",!1);this.oidc=new Vi(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 Hi;function sf(t){Hi=new rf(t)}const af=()=>Hi;class lf{constructor(e=null){Oe(this,"errors",[]);Oe(this,"_value",null);Oe(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 Sn{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 Sn.Mask(e.padStart(11,"0"),"###.###.###-##")}static MaskCnpj(e){return Sn.Mask(e.padStart(14,"0"),"##.###.###/####-##")}static async DelayAsync(e){return new Promise(n=>setTimeout(n,e))}}function cf(){document.documentElement.classList.add("app-mounted")}function ji(){ct.SetInitialTheme()}function uf(){ct.Toggle()}function df(){ct.EnableDarkMode()}function ff(){ct.EnableLightMode()}function mf(){ct.ClearStoredTheme()}ji();exports.AppResult=lf;exports.ClearStoredTheme=mf;exports.ConfigAuth=sf;exports.EnableDarkMode=df;exports.EnableLightMode=ff;exports.RemovePreloader=cf;exports.SetInitialTheme=ji;exports.SfButton=Es;exports.SfContent=ws;exports.SfDrawer=Os;exports.SfIcon=vn;exports.SfLayout=ds;exports.SfMessage=Bs;exports.SfNavMenu=xl;exports.SfTabNavigation=Cs;exports.SfTooltip=lo;exports.ToggleTheme=uf;exports.UseAlertService=Hd;exports.UseAuth=af;exports.UseConfirmService=jd;exports.UseNavMenuService=ao;exports.Utilities=Sn;
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",y),u.setSuccess()))};window.addEventListener("message",y,!1)}else u.setSuccess();return J(u.promise,e.messageReceiveTimeout,"Timeout when waiting for 3rd party check iframe message.")}function Ke(u){if(!u||u=="default")return{login:function(w){return window.location.assign(e.createLoginUrl(w)),q().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)),q().promise},accountManagement:function(){var w=e.createAccountUrl();if(typeof w<"u")window.location.href=w;else throw"Not supported by the OIDC server";return q().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)},y=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(",")},v=function(w){var _=y(w);return _.location="no",w&&w.prompt=="none"&&(_.hidden="yes"),S(_)},E=function(){return e.redirectUri||"http://localhost"};return{login:function(w){var _=q(),A=v(w),P=e.createLoginUrl(w),N=p(P,"_blank",A),U=!1,he=!1,oe=function(){he=!0,N.close()};return N.addEventListener("loadstart",function(re){if(re.url.indexOf(E())==0){var ze=Q(re.url);I(ze,_),oe(),U=!0}}),N.addEventListener("loaderror",function(re){if(!U)if(re.url.indexOf(E())==0){var ze=Q(re.url);I(ze,_),oe(),U=!0}else _.setError(),oe()}),N.addEventListener("exit",function(re){he||_.setError({reason:"closed_by_user"})}),_.promise},logout:function(w){var _=q(),A=e.createLogoutUrl(w),P=p(A,"_blank","location=no,hidden=yes,clearcache=yes"),N;return P.addEventListener("loadstart",function(U){U.url.indexOf(E())==0&&P.close()}),P.addEventListener("loaderror",function(U){U.url.indexOf(E())==0||(N=!0),P.close()}),P.addEventListener("exit",function(U){N?_.setError():(e.clearToken(),_.setSuccess())}),_.promise},register:function(w){var _=q(),A=e.createRegisterUrl(),P=v(w),N=p(A,"_blank",P);return N.addEventListener("loadstart",function(U){if(U.url.indexOf(E())==0){N.close();var he=Q(U.url);I(he,_)}}),_.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 _=q(),A=e.createLoginUrl(w);return universalLinks.subscribe("keycloak",function(P){universalLinks.unsubscribe("keycloak"),window.cordova.plugins.browsertab.close();var N=Q(P.url);I(N,_)}),window.cordova.plugins.browsertab.openUrl(A),_.promise},logout:function(w){var _=q(),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 _=q(),A=e.createRegisterUrl(w);return universalLinks.subscribe("keycloak",function(P){universalLinks.unsubscribe("keycloak"),window.cordova.plugins.browsertab.close();var N=Q(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 Me=function(){if(!(this instanceof Me))return new Me;localStorage.setItem("kc-test","test"),localStorage.removeItem("kc-test");var u=this;function p(){for(var y=new Date().getTime(),S=0;S<localStorage.length;S++){var v=localStorage.key(S);if(v&&v.indexOf("kc-callback-")==0){var E=localStorage.getItem(v);if(E)try{var w=JSON.parse(E).expires;(!w||w<y)&&localStorage.removeItem(v)}catch{localStorage.removeItem(v)}}}}u.get=function(y){if(y){var S="kc-callback-"+y,v=localStorage.getItem(S);return v&&(localStorage.removeItem(S),v=JSON.parse(v)),p(),v}},u.add=function(y){p();var S="kc-callback-"+y.state;y.expires=new Date().getTime()+60*60*1e3,localStorage.setItem(S,JSON.stringify(y))}},Re=function(){if(!(this instanceof Re))return new Re;var u=this;u.get=function(v){if(v){var E=y("kc-callback-"+v);if(S("kc-callback-"+v,"",p(-100)),E)return JSON.parse(E)}},u.add=function(v){S("kc-callback-"+v.state,JSON.stringify(v),p(60))},u.removeItem=function(v){S(v,"",p(-100))};var p=function(v){var E=new Date;return E.setTime(E.getTime()+v*60*1e3),E},y=function(v){for(var E=v+"=",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(v,E,w){var _=v+"="+E+"; expires="+w.toUTCString()+"; ";document.cookie=_}};function it(){try{return new Me}catch{}return new Re}function Te(u){return function(){e.enableLogging&&u.apply(console,Array.prototype.slice.call(arguments))}}}function of(t){const e=String.fromCodePoint(...t);return btoa(e)}class rf{constructor(e){He(this,"oidc");He(this,"isAuthenticated",!1);this.oidc=new Vi(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 Hi;function sf(t){Hi=new rf(t)}const af=()=>Hi;class lf{constructor(e=null){He(this,"errors",[]);He(this,"_value",null);He(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 Sn{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 Sn.Mask(e.padStart(11,"0"),"###.###.###-##")}static MaskCnpj(e){return Sn.Mask(e.padStart(14,"0"),"##.###.###/####-##")}static async DelayAsync(e){return new Promise(n=>setTimeout(n,e))}}function cf(){document.documentElement.classList.add("app-mounted")}function ji(){ct.SetInitialTheme()}function uf(){ct.Toggle()}function df(){ct.EnableDarkMode()}function ff(){ct.EnableLightMode()}function mf(){ct.ClearStoredTheme()}ji();exports.AppResult=lf;exports.ClearStoredTheme=mf;exports.ConfigAuth=sf;exports.EnableDarkMode=df;exports.EnableLightMode=ff;exports.RemovePreloader=cf;exports.SetInitialTheme=ji;exports.SfButton=Es;exports.SfContent=ws;exports.SfDrawer=Os;exports.SfIcon=vn;exports.SfLayout=ds;exports.SfMessage=Bs;exports.SfNavMenu=xl;exports.SfTabNavigation=Cs;exports.SfTooltip=lo;exports.ToggleTheme=uf;exports.UseAlertService=Hd;exports.UseAuth=af;exports.UseConfirmService=jd;exports.UseNavMenuService=ao;exports.Utilities=Sn;
411
411
  //# sourceMappingURL=sf.prefeiturasp.vuecomponents.cjs.map