@luizleon/sf.prefeiturasp.vuecomponents 5.0.21 → 5.0.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
- (function(D,i){typeof exports=="object"&&typeof module<"u"?i(exports,require("vue"),require("vue-router")):typeof define=="function"&&define.amd?define(["exports","vue","vue-router"],i):(D=typeof globalThis<"u"?globalThis:D||self,i((D.sf=D.sf||{},D.sf.prefeiturasp=D.sf.prefeiturasp||{},D.sf.prefeiturasp.vuecomponents={}),D.Vue,D.VueRouter))})(this,function(D,i,gt){"use strict";var Xf=Object.defineProperty;var Zf=(D,i,gt)=>i in D?Xf(D,i,{enumerable:!0,configurable:!0,writable:!0,value:gt}):D[i]=gt;var te=(D,i,gt)=>Zf(D,typeof i!="symbol"?i+"":i,gt);class Lt{constructor(e){te(this,"retorno");this.retorno=e??""}Concat(e){return e&&e.trim().length&&(this.retorno+=` ${e}`),this}AddClass(e,n=!0){return n?this.Concat(e):this}Build(){return this.retorno.trim()}}function Vn(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 Uo=i.defineComponent({__name:"Tooltip",props:{text:{}},setup(t){const e=t;class n{constructor(){te(this,"target",null);te(this,"wrapper",null);te(this,"inner",null);te(this,"showTimeout",null)}Render(){this.wrapper=document.createElement("div"),this.wrapper.classList.add("sf-tooltip-wrapper"),this.wrapper.style.zIndex=`${Vn()??1}`,this.wrapper.addEventListener("mouseup",function(){this.classList.remove("visible"),Array.from(this.children).forEach(s=>s.remove()),this.remove()}),this.inner=document.createElement("div"),this.inner.classList.add("sf-tooltip-inner"),this.wrapper.appendChild(this.inner)}Show(s){this.showTimeout&&clearTimeout(this.showTimeout),this.target=s.currentTarget,this.showTimeout=setTimeout(()=>{this.Render(),this.inner.textContent=e.text,document.body.appendChild(this.wrapper),this.wrapper.classList.add("visible"),this.Position()},500)}Hide(){this.showTimeout&&clearTimeout(this.showTimeout);try{this.wrapper.classList.remove("visible"),this.inner.remove(),this.wrapper.remove(),this.inner=null,this.wrapper=null,this.target=null}catch{}}Position(){if(!this.target||!this.wrapper)return;const s=this.target.getBoundingClientRect();this.FixWidth();const a=this.wrapper,l=5;a.style.top=`${s.top+s.height-l}px`,a.style.left=`${s.left+s.width-l}px`,this.OutOfBottom()&&(a.style.top=`${s.top-a.clientHeight+l}px`),this.OutOfRight()&&(a.style.left=`${s.left-a.clientWidth+l}px`)}FixWidth(){const s=this.wrapper;if(!s)return;s.style.width="fit-content",s.style.wordBreak="normal",s.style.whiteSpace="nowrap";const a=window.innerWidth/2;s.clientWidth>a&&(s.style.width=`${a}px`,s.style.wordBreak="break-word",s.style.whiteSpace="normal")}OutOfBottom(){const s=this.wrapper;if(!s)return!1;const a=s.getBoundingClientRect(),l=window.innerHeight||document.documentElement.clientHeight;return a.bottom+10>l}OutOfRight(){const s=this.wrapper;if(!s)return!1;const a=s.getBoundingClientRect(),l=window.innerWidth||document.documentElement.clientWidth;return a.right+10>l}}const o=new n;return i.onBeforeUnmount(()=>{o.Hide()}),(r,s)=>(i.openBlock(),i.createElementBlock("div",{class:"sf-tooltip-anchor",onMouseenter:s[0]||(s[0]=(...a)=>i.unref(o).Show&&i.unref(o).Show(...a)),onMousedown:s[1]||(s[1]=(...a)=>i.unref(o).Hide&&i.unref(o).Hide(...a)),onMouseleave:s[2]||(s[2]=(...a)=>i.unref(o).Hide&&i.unref(o).Hide(...a))},[i.renderSlot(r.$slots,"default")],32))}}),et=(t,e)=>{const n=t.__vccOpts||t;for(const[o,r]of e)n[o]=r;return n},us={},ds={class:"sf-loading-circle"};function fs(t,e){return i.openBlock(),i.createElementBlock("div",ds,e[0]||(e[0]=[i.createElementVNode("div",null,[i.createElementVNode("svg",{viewBox:"25 25 50 50"},[i.createElementVNode("circle",{cx:"50",cy:"50",r:"20",fill:"none","stroke-width":"4","stroke-miterlimit":"10"})])],-1)]))}const Vo=et(us,[["render",fs]]),ms=["data-size"],ps=["disabled","data-p-loading","tabindex"],hs=["data-color"],Ue=et(i.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"}},emits:["click"],setup(t,{emit:e}){const n=t,o=i.computed(()=>n.tooltip?Uo:"div"),r=i.computed(()=>new Lt(n.tooltip?"":"display-content").AddClass("loading",n.loading).AddClass("disabled",n.disabled).Build()),s=i.computed(()=>new Lt(`${n.class} sf-icon`).AddClass("select-none").AddClass(`${n.color}-color`,!!n.color&&n.color!=="inherit").Build()),a=c=>{n.disabled||n.loading||l("click",c)},l=e;return(c,d)=>(i.openBlock(),i.createBlock(i.resolveDynamicComponent(o.value),{text:n.tooltip,class:i.normalizeClass(r.value),onClick:a},{default:i.withCtx(()=>[i.createElementVNode("div",{class:i.normalizeClass(["icon-wrapper",{"--button":!!n.button&&!n.disabled&&!n.loading,"--relative":!n.loading}]),"data-size":n.size},[n.visible?(i.openBlock(),i.createElementBlock("div",{key:0,style:i.normalizeStyle(n.style),class:i.normalizeClass(s.value)},[n.loading?(i.openBlock(),i.createBlock(Vo,{key:0})):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createElementVNode("button",i.mergeProps({class:["material-symbols-outlined",{"icon-filled":!!n.filled}],disabled:n.disabled,"data-p-loading":n.loading},n.buttonProps,{tabindex:n.button?void 0:-1}),i.toDisplayString(n.icon),17,ps),n.dot&&!n.disabled&&!n.loading?(i.openBlock(),i.createElementBlock("span",{key:0,"data-color":n.dotColor},null,8,hs)):i.createCommentVNode("",!0)],64))],6)):i.createCommentVNode("",!0)],10,ms)]),_:1},8,["text","class"]))}}),[["__scopeId","data-v-c242d02a"]]),gs={class:"sf-tab-navigation"},ys=["data-active"],bs=["href","onClick"],vs=i.defineComponent({__name:"TabNavigation",props:{tabs:{}},setup(t){const e=t,n=i.ref(null),o=new ResizeObserver(c=>{l()}),r=i.ref(!1),s=i.ref(!1);function a(c=!1){const d=n.value.clientWidth;n.value.scrollLeft+=c?-d:d}function l(){const c=n.value.scrollWidth-n.value.clientWidth;r.value=n.value.scrollLeft>10,s.value=n.value.scrollLeft<c-10}return i.onMounted(()=>{n.value.addEventListener("scroll",l),o.observe(n.value)}),i.onBeforeUnmount(()=>{var c;try{(c=n.value)==null||c.removeEventListener("scroll",l),o.unobserve(n.value),o.disconnect()}catch{}}),(c,d)=>{const f=i.resolveComponent("RouterLink");return i.openBlock(),i.createElementBlock("div",gs,[i.createElementVNode("div",{class:i.normalizeClass(["left-arrow",{active:r.value}]),onClick:d[0]||(d[0]=p=>a(!0))},d[2]||(d[2]=[i.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"},[i.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15.75 19.5L8.25 12l7.5-7.5"})],-1)]),2),i.createElementVNode("ul",{ref_key:"trackerContainer",ref:n},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.tabs,p=>(i.openBlock(),i.createBlock(f,{to:p.route,custom:!0},{default:i.withCtx(({navigate:y,isActive:k})=>[i.createElementVNode("li",{"data-active":k},[i.renderSlot(c.$slots,"item",{item:p,navigate:y,isActive:k},()=>[i.createElementVNode("a",{href:p.route,class:i.normalizeClass({active:k}),onClick:y},i.toDisplayString(p.text),11,bs)])],8,ys)]),_:2},1032,["to"]))),256))],512),i.createElementVNode("div",{class:i.normalizeClass(["right-arrow",{active:s.value}]),onClick:d[1]||(d[1]=p=>a())},d[3]||(d[3]=[i.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"},[i.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M8.25 4.5l7.5 7.5-7.5 7.5"})],-1)]),2)])}}}),Ho=et(i.defineComponent({__name:"LoadingCircle",props:{delay:{},dense:{type:Boolean}},setup(t){const e=t,n=i.ref(!1);return i.onMounted(async()=>{await new Promise(o=>setTimeout(o,e.delay??300)),n.value=!0}),(o,r)=>n.value?(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(["loading-circle",{dense:e.dense}])},r[0]||(r[0]=[i.createElementVNode("div",null,[i.createElementVNode("svg",{viewBox:"25 25 50 50"},[i.createElementVNode("circle",{cx:"50",cy:"50",r:"20",fill:"none","stroke-width":"3","stroke-miterlimit":"10"})])],-1)]),2)):i.createCommentVNode("",!0)}}),[["__scopeId","data-v-29f59fc6"]]),ws=["id","name","disabled","data-color","form","type","data-p-loading"],ks=et(i.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}},emits:["click"],setup(t,{emit:e}){const n=t;function o(){return new Lt(`${n.class??""} sf-button`).AddClass("select-none").AddClass("sf-button-small",n.size==="sm").AddClass("sf-button-medium",n.size==="md").AddClass("sf-button-large",n.size==="lg").AddClass("sf-button-filled",n.variant==="filled").AddClass("sf-button-text",n.variant==="text").AddClass("sf-button-outlined",n.variant==="outlined").AddClass("sf-button-with-icon",!!n.icon).Build()}const r=a=>{n.disabled||n.loading||s("click",a)},s=e;return(a,l)=>n.visible?(i.openBlock(),i.createElementBlock("button",{key:0,id:n.id,name:n.name,class:i.normalizeClass(o()),style:i.normalizeStyle(n.style),disabled:n.disabled,"data-color":n.color,form:n.form,type:n.type,"data-p-loading":n.loading,onClick:r},[n.loading?(i.openBlock(),i.createBlock(Ho,{key:0,dense:!0,delay:0,class:i.normalizeClass("icon-loading")})):i.createCommentVNode("",!0),n.icon?(i.openBlock(),i.createBlock(Ue,{key:1,icon:n.icon,size:n.size,"button-props":{tabindex:-1},filled:n.iconFilled,class:i.normalizeClass({transparent:n.loading})},null,8,["icon","size","filled","class"])):i.createCommentVNode("",!0),i.createElementVNode("span",{class:i.normalizeClass({"button-label":!0,"pl-2":!!n.icon,transparent:!n.disabled&&n.loading})},[i.renderSlot(a.$slots,"default",{},void 0,!0)],2)],14,ws)):i.createCommentVNode("",!0)}}),[["__scopeId","data-v-79a81e53"]]),_s={class:"sf-drawer-title"},Ss={class:"sf-drawer-action"},jo=i.defineComponent({__name:"Drawer",props:{visible:{type:Boolean,default:!1},position:{default:"left"},style:{type:[Boolean,null,String,Object,Array]},dismissableMask:{type:Boolean,default:!0},title:{},unstyledHeader:{type:Boolean},unstyledContent:{type:Boolean},unstyledFooter:{type:Boolean}},emits:["update:visible","open","before-close"],setup(t,{emit:e}){const n=t,o=e,r=i.useSlots(),s=i.ref(n.visible),a=i.ref(!1),l=i.ref(0),c="sf-drawer-"+Math.random().toString(36).slice(2,11)+"-"+Date.now();function d(){s.value=!1}function f(w){if(!n.dismissableMask)return;const S=w.target;S&&S.id===c&&(s.value=!1)}function p(w){(w.key==="Escape"||w.code==="Escape")&&d()}function y(){o("open"),window.document.addEventListener("keydown",p,!0)}function k(w){l.value=Vn()+1,w.style.zIndex=`${l.value}`}function C(w){var S;o("before-close"),(S=w==null?void 0:w.parentElement)==null||S.classList.add("sf-mask-overlay-leave")}function A(){window.document.removeEventListener("keydown",p,!0),a.value=!1}function L(){return new Lt("sf-mask sf-mask-overlay").AddClass("right",n.position==="right").AddClass("bottom",n.position==="bottom").AddClass("center",n.position==="center").AddClass("full",n.position==="full").AddClass("sf-mask-overlay-enter",n.visible===!0).Build()}return i.watch(()=>n.visible,w=>{s.value=w}),i.watch(()=>s.value,w=>{o("update:visible",w),w&&(a.value=!0)}),(w,S)=>(i.openBlock(),i.createBlock(i.Teleport,{to:"body"},[a.value?(i.openBlock(),i.createElementBlock("div",{key:0,id:c,class:i.normalizeClass(L()),style:i.normalizeStyle({zIndex:l.value-1}),onClick:i.withModifiers(f,["stop"])},[i.createVNode(i.Transition,{name:"sf-drawer",appear:"",onBeforeEnter:k,onEnter:y,onBeforeLeave:C,onAfterLeave:A},{default:i.withCtx(()=>[s.value?(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(["sf-drawer"]),style:i.normalizeStyle(n.style),role:"dialog"},[i.renderSlot(w.$slots,"header",i.normalizeProps(i.guardReactiveProps({Close:d})),()=>[i.createElementVNode("div",{class:i.normalizeClass(["sf-drawer-header",{unstyled:n.unstyledHeader}])},[i.renderSlot(w.$slots,"title",{},()=>[i.createElementVNode("div",_s,i.toDisplayString(n.title),1)]),S[0]||(S[0]=i.createElementVNode("div",{class:"sf-drawer-spacer"},null,-1)),i.createElementVNode("div",Ss,[i.renderSlot(w.$slots,"action",i.normalizeProps(i.guardReactiveProps({Close:d})),()=>[i.createVNode(Ue,{button:!0,icon:"close",onClick:d})])])],2)]),i.createElementVNode("div",{class:i.normalizeClass(["sf-drawer-content",{unstyled:n.unstyledContent}])},[i.renderSlot(w.$slots,"default")],2),i.unref(r).footer?(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(["sf-drawer-footer",{unstyled:n.unstyledFooter}])},[i.renderSlot(w.$slots,"footer",i.normalizeProps(i.guardReactiveProps({Close:d})))],2)):i.createCommentVNode("",!0)],4)):i.createCommentVNode("",!0)]),_:3})],6)):i.createCommentVNode("",!0)]))}}),Cs=["data-icon"],Es=i.defineComponent({__name:"Message",props:{color:{default:"info"},class:{},style:{type:[Boolean,null,String,Object,Array]},icon:{}},setup(t){const e=t,n=i.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=i.computed(()=>new Lt("sf-message").AddClass("sf-message-error",e.color==="error").AddClass("sf-message-info",e.color==="info").AddClass("sf-message-warning",e.color==="warn").AddClass("sf-message-success",e.color==="success").AddClass("sf-message-help",e.color==="help").AddClass("sf-message-primary",e.color==="primary").AddClass("sf-message-secondary",e.color==="secondary").AddClass(e.class).Build());return(r,s)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(o.value),"data-icon":n.value},[i.renderSlot(r.$slots,"default")],10,Cs))}});function Is(t,e){return t?t.classList?t.classList.contains(e):new RegExp("(^| )"+e+"( |$)","gi").test(t.className):!1}function Ts(t,e){if(t&&e){const n=o=>{Is(t,o)||(t.classList?t.classList.add(o):t.className+=" "+o)};[e].flat().filter(Boolean).forEach(o=>o.split(" ").forEach(n))}}function Hn(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 As(t,e){return t instanceof HTMLElement?t.offsetWidth:0}function dn(t){return typeof HTMLElement=="object"?t instanceof HTMLElement:t&&typeof t=="object"&&t!==null&&t.nodeType===1&&typeof t.nodeName=="string"}function fn(t,e={}){if(dn(t)){const n=(o,r)=>{var s,a;const l=(s=t==null?void 0:t.$attrs)!=null&&s[o]?[(a=t==null?void 0:t.$attrs)==null?void 0:a[o]]:[];return[r].flat().reduce((c,d)=>{if(d!=null){const f=typeof d;if(f==="string"||f==="number")c.push(d);else if(f==="object"){const p=Array.isArray(d)?n(o,d):Object.entries(d).map(([y,k])=>o==="style"&&(k||k===0)?`${y.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}:${k}`:k?y:void 0);c=p.length?c.concat(p.filter(y=>!!y)):c}}return c},l)};Object.entries(e).forEach(([o,r])=>{if(r!=null){const s=o.match(/^on(.+)/);s?t.addEventListener(s[1].toLowerCase(),r):o==="p-bind"?fn(t,r):(r=o==="class"?[...new Set(n("class",r))].join(" ").trim():o==="style"?n("style",r).join(";").trim():r,(t.$attrs=t.$attrs||{})&&(t.$attrs[o]=r),t.setAttribute(o,r))}})}}function Ps(t,e={},...n){{const o=document.createElement(t);return fn(o,e),o.append(...n),o}}function Be(t,e){return dn(t)?t.matches(e)?t:t.querySelector(e):null}function xt(t,e){t&&document.activeElement!==t&&t.focus(e)}function Ot(t,e){if(dn(t)){const n=t.getAttribute(e);return isNaN(n)?n==="true"||n==="false"?n==="true":n:+n}}function Fo(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 Ls(t){if(t){let e=t.parentNode;return e&&e instanceof ShadowRoot&&e.host&&(e=e.host),e}return null}function xs(t){if(t){let e=t.getBoundingClientRect();return{top:e.top+(window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0),left:e.left+(window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0)}}return{top:"auto",left:"auto"}}function Os(t,e){return t?t.offsetHeight:0}function $s(t){return!!(t!==null&&typeof t<"u"&&t.nodeName&&Ls(t))}function zo(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 Bs(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Ns(t,e="",n){dn(t)&&n!==null&&n!==void 0&&t.setAttribute(e,n)}function Ko(){const t=new Map;return{on(e,n){let o=t.get(e);return o?o.push(n):o=[n],t.set(e,o),this},off(e,n){let o=t.get(e);return o&&o.splice(o.indexOf(n)>>>0,1),this},emit(e,n){let o=t.get(e);o&&o.slice().map(r=>{r(n)})},clear(){t.clear()}}}function at(t){return t==null||t===""||Array.isArray(t)&&t.length===0||!(t instanceof Date)&&typeof t=="object"&&Object.keys(t).length===0}function jn(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,s,a;if(n&&o){if(s=t.length,s!=e.length)return!1;for(r=s;r--!==0;)if(!jn(t[r],e[r]))return!1;return!0}if(n!=o)return!1;var l=t instanceof Date,c=e instanceof Date;if(l!=c)return!1;if(l&&c)return t.getTime()==e.getTime();var d=t instanceof RegExp,f=e instanceof RegExp;if(d!=f)return!1;if(d&&f)return t.toString()==e.toString();var p=Object.keys(t);if(s=p.length,s!==Object.keys(e).length)return!1;for(r=s;r--!==0;)if(!Object.prototype.hasOwnProperty.call(e,p[r]))return!1;for(r=s;r--!==0;)if(a=p[r],!jn(t[a],e[a]))return!1;return!0}return t!==t&&e!==e}function Fn(t){return!!(t&&t.constructor&&t.call&&t.apply)}function Z(t){return!at(t)}function yt(t,e,n){return jn(t,e)}function Wo(t,e){let n;if(Z(t))try{n=t.findLast(e)}catch{n=[...t].reverse().find(e)}return n}function tt(t,e=!0){return t instanceof Object&&t.constructor===Object&&(e||Object.keys(t).length!==0)}function Ie(t,...e){return Fn(t)?t(...e):t}function ke(t,e=!0){return typeof t=="string"&&(e||t!=="")}function Ne(t){return ke(t)?t.replace(/(-|_)/g,"").toLowerCase():t}function zn(t,e="",n={}){const o=Ne(e).split("."),r=o.shift();return r?tt(t)?zn(Ie(t[Object.keys(t).find(s=>Ne(s)===r)||""],n),o.join("."),n):void 0:Ie(t,n)}function Kn(t,e=!0){return Array.isArray(t)&&(e||t.length!==0)}function Go(t){return Z(t)&&!isNaN(t)}function Ms(t=""){return Z(t)&&t.length===1&&!!t.match(/\S| /)}function Ge(t,e){if(e){const n=e.test(t);return e.lastIndex=0,n}return!1}function $t(t){return t&&t.replace(/\/\*(?:(?!\*\/)[\s\S])*\*\/|[\r\n\t]+/g,"").replace(/ {2,}/g," ").replace(/ ([{:}]) /g,"$1").replace(/([;,]) /g,"$1").replace(/ !/g,"!").replace(/: /g,":")}function Ds(t){return ke(t,!1)?t[0].toUpperCase()+t.slice(1):t}function qo(t){return ke(t)?t.replace(/(_)/g,"-").replace(/[A-Z]/g,(e,n)=>n===0?e:"-"+e.toLowerCase()).toLowerCase():t}function Yo(t){return ke(t)?t.replace(/[A-Z]/g,(e,n)=>n===0?e:"."+e.toLowerCase()).toLowerCase():t}var mn={};function Rs(t="pui_id_"){return mn.hasOwnProperty(t)||(mn[t]=0),mn[t]++,`${t}${mn[t]}`}function pn(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"pv_id_";return Rs(t)}var Us=Object.defineProperty,Vs=Object.defineProperties,Hs=Object.getOwnPropertyDescriptors,hn=Object.getOwnPropertySymbols,Xo=Object.prototype.hasOwnProperty,Zo=Object.prototype.propertyIsEnumerable,Jo=(t,e,n)=>e in t?Us(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Bt=(t,e)=>{for(var n in e||(e={}))Xo.call(e,n)&&Jo(t,n,e[n]);if(hn)for(var n of hn(e))Zo.call(e,n)&&Jo(t,n,e[n]);return t},Wn=(t,e)=>Vs(t,Hs(e)),Nt=(t,e)=>{var n={};for(var o in t)Xo.call(t,o)&&e.indexOf(o)<0&&(n[o]=t[o]);if(t!=null&&hn)for(var o of hn(t))e.indexOf(o)<0&&Zo.call(t,o)&&(n[o]=t[o]);return n},js=Ko(),qe=js;function Qo(t,e){Kn(t)?t.push(...e||[]):tt(t)&&Object.assign(t,e)}function Fs(t){return tt(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(s=>Go(s)?`${s}px`:s).join(" ")}function zs(t){return t.replaceAll(/ /g,"").replace(/[^\w]/g,"-")}function Gn(t="",e=""){return zs(`${ke(t,!1)&&ke(e,!1)?`${t}-`:t}${e}`)}function tr(t="",e=""){return`--${Gn(t,e)}`}function nr(t,e="",n="",o=[],r){if(ke(t)){const s=/{([^}]*)}/g,a=t.trim();if(Ge(a,s)){const l=a.replaceAll(s,f=>{const y=f.replace(/{|}/g,"").split(".").filter(k=>!o.some(C=>Ge(k,C)));return`var(${tr(n,qo(y.join("-")))}${Z(r)?`, ${r}`:""})`}),c=/(\d+\s+[\+\-\*\/]\s+\d+)/g,d=/var\([^)]+\)/g;return Ge(l.replace(d,"0"),c)?`calc(${l})`:l}return er(a,e)}else if(Go(t))return er(t,e)}function Ks(t,e,n){ke(e,!1)&&t.push(`${e}:${n};`)}function Mt(t,e){return t?`${t}{${e}}`:""}var qn=(...t)=>Ws(Q.getTheme(),...t),Ws=(t={},e,n,o="variable")=>{if(e){const{variable:r,options:s}=Q.defaults||{},{prefix:a,transform:l}=(t==null?void 0:t.options)||s||{},d=Ge(e,/{([^}]*)}/g)?e:`{${e}}`;return o==="value"||l==="strict"?Q.getTokenValue(e):nr(d,void 0,a,[r.excludedKeyRegex],n)}return""};function Gs(t,e={}){const n=Q.defaults.variable,{prefix:o=n.prefix,selector:r=n.selector,excludedKeyRegex:s=n.excludedKeyRegex}=e,a=(d,f="")=>Object.entries(d).reduce((p,[y,k])=>{const C=Ge(y,s)?Gn(f):Gn(f,qo(y)),A=Fs(k);if(tt(A)){const{variables:L,tokens:w}=a(A,C);Qo(p.tokens,w),Qo(p.variables,L)}else p.tokens.push((o?C.replace(`${o}-`,""):C).replaceAll("-",".")),Ks(p.variables,tr(C),nr(A,C,o,[s]));return p},{variables:[],tokens:[]}),{variables:l,tokens:c}=a(t,o);return{value:l,tokens:c,declarations:l.join(""),css:Mt(r,l.join(""))}}var Me={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 Gs(t,{prefix:e==null?void 0:e.prefix})},getCommon({name:t="",theme:e={},params:n,set:o,defaults:r}){var s,a,l,c;const{preset:d,options:f}=e;let p,y,k,C;if(Z(d)){const{primitive:A,semantic:L}=d,w=L||{},{colorScheme:S}=w,M=Nt(w,["colorScheme"]),U=S||{},{dark:G}=U,ue=Nt(U,["dark"]),ne=Z(A)?this._toVariables({primitive:A},f):{},Pe=Z(M)?this._toVariables({semantic:M},f):{},oe=Z(ue)?this._toVariables({light:ue},f):{},Y=Z(G)?this._toVariables({dark:G},f):{},[N,X]=[(s=ne.declarations)!=null?s:"",ne.tokens],[de,fe]=[(a=Pe.declarations)!=null?a:"",Pe.tokens||[]],[je,Xe]=[(l=oe.declarations)!=null?l:"",oe.tokens||[]],[Fe,ze]=[(c=Y.declarations)!=null?c:"",Y.tokens||[]];p=this.transformCSS(t,N,"light","variable",f,o,r),y=X;const ht=this.transformCSS(t,`${de}${je}color-scheme:light`,"light","variable",f,o,r),$e=this.transformCSS(t,`${Fe}color-scheme:dark`,"dark","variable",f,o,r);k=`${ht}${$e}`,C=[...new Set([...fe,...Xe,...ze])]}return{primitive:{css:p,tokens:y},semantic:{css:k,tokens:C}}},getPreset({name:t="",preset:e={},options:n,params:o,set:r,defaults:s,selector:a}){var l,c,d;const f=t.replace("-directive",""),p=e,{colorScheme:y}=p,k=Nt(p,["colorScheme"]),C=y||{},{dark:A}=C,L=Nt(C,["dark"]),w=Z(k)?this._toVariables({[f]:k},n):{},S=Z(L)?this._toVariables({[f]:L},n):{},M=Z(A)?this._toVariables({[f]:A},n):{},[U,G]=[(l=w.declarations)!=null?l:"",w.tokens||[]],[ue,ne]=[(c=S.declarations)!=null?c:"",S.tokens||[]],[Pe,oe]=[(d=M.declarations)!=null?d:"",M.tokens||[]],Y=[...new Set([...G,...ne,...oe])],N=this.transformCSS(f,`${U}${ue}`,"light","variable",n,r,s,a),X=this.transformCSS(f,Pe,"dark","variable",n,r,s,a);return{css:`${N}${X}`,tokens:Y}},getPresetC({name:t="",theme:e={},params:n,set:o,defaults:r}){var s;const{preset:a,options:l}=e,c=(s=a==null?void 0:a.components)==null?void 0:s[t];return this.getPreset({name:t,preset:c,options:l,params:n,set:o,defaults:r})},getPresetD({name:t="",theme:e={},params:n,set:o,defaults:r}){var s;const a=t.replace("-directive",""),{preset:l,options:c}=e,d=(s=l==null?void 0:l.directives)==null?void 0:s[a];return this.getPreset({name:a,preset:d,options:c,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 ${Ie(r.order||"primeui",n)}`:""},getCommonStyleSheet({name:t="",theme:e={},params:n,props:o={},set:r,defaults:s}){const a=this.getCommon({name:t,theme:e,params:n,set:r,defaults:s}),l=Object.entries(o).reduce((c,[d,f])=>c.push(`${d}="${f}"`)&&c,[]).join(" ");return Object.entries(a||{}).reduce((c,[d,f])=>{if(f!=null&&f.css){const p=$t(f==null?void 0:f.css),y=`${d}-variables`;c.push(`<style type="text/css" data-primevue-style-id="${y}" ${l}>${p}</style>`)}return c},[]).join("")},getStyleSheet({name:t="",theme:e={},params:n,props:o={},set:r,defaults:s}){var a;const l={name:t,theme:e,params:n,set:r,defaults:s},c=(a=t.includes("-directive")?this.getPresetD(l):this.getPresetC(l))==null?void 0:a.css,d=Object.entries(o).reduce((f,[p,y])=>f.push(`${p}="${y}"`)&&f,[]).join(" ");return c?`<style type="text/css" data-primevue-style-id="${t}-variables" ${d}>${$t(c)}</style>`:""},createTokens(t={},e,n="",o="",r={}){return Object.entries(t).forEach(([s,a])=>{const l=Ge(s,e.variable.excludedKeyRegex)?n:n?`${n}.${Yo(s)}`:Yo(s),c=o?`${o}.${s}`:s;tt(a)?this.createTokens(a,e,l,c,r):(r[l]||(r[l]={paths:[],computed(d,f={}){if(d){const p=this.paths.find(y=>y.scheme===d)||this.paths.find(y=>y.scheme==="none");return p==null?void 0:p.computed(d,f.binding)}return this.paths.map(p=>p.computed(p.scheme,f[p.scheme]))}}),r[l].paths.push({path:c,value:a,scheme:c.includes("colorScheme.light")?"light":c.includes("colorScheme.dark")?"dark":"none",computed(d,f={}){const p=/{([^}]*)}/g;let y=a;if(f.name=this.path,f.binding||(f.binding={}),Ge(a,p)){const C=a.trim().replaceAll(p,w=>{var S,M;const U=w.replace(/{|}/g,"");return(M=(S=r[U])==null?void 0:S.computed(d,f))==null?void 0:M.value}),A=/(\d+\w*\s+[\+\-\*\/]\s+\d+\w*)/g,L=/var\([^)]+\)/g;y=Ge(C.replace(L,"0"),A)?`calc(${C})`:C}return at(f.binding)&&delete f.binding,{colorScheme:d,path:this.path,paths:f,value:y.includes("undefined")?void 0:y}}}))}),r},getTokenValue(t,e,n){var o;const s=(c=>c.split(".").filter(f=>!Ge(f.toLowerCase(),n.variable.excludedKeyRegex)).join("."))(e),a=e.includes("colorScheme.light")?"light":e.includes("colorScheme.dark")?"dark":void 0,l=[(o=t[s])==null?void 0:o.computed(a)].flat().filter(c=>c);return l.length===1?l[0].value:l.reduce((c={},d)=>{const f=d,{colorScheme:p}=f,y=Nt(f,["colorScheme"]);return c[p]=y,c},void 0)},transformCSS(t,e,n,o,r={},s,a,l){if(Z(e)){const{cssLayer:c}=r;if(o!=="style"){const d=this.getColorSchemeOption(r,a),f=l?Mt(l,e):e;e=n==="dark"?d.reduce((p,{selector:y})=>(Z(y)&&(p+=y.includes("[CSS]")?y.replace("[CSS]",f):Mt(y,f)),p),""):Mt(l??":root",e)}if(c){const d={name:"primeui"};tt(c)&&(d.name=Ie(c.name,{name:t,type:o})),Z(d.name)&&(e=Mt(`@layer ${d.name}`,e),s==null||s.layerNames(d.name))}return e}return""}},Q={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=Wn(Bt({},e),{options:Bt(Bt({},this.defaults.options),e.options)}),this._tokens=Me.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=Wn(Bt({},this.theme),{preset:t}),this._tokens=Me.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=Wn(Bt({},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 Me.getTokenValue(this.tokens,t,this.defaults)},getCommon(t="",e){return Me.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 Me.getPresetC(n)},getDirective(t="",e){const n={name:t,theme:this.theme,params:e,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}};return Me.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 Me.getPreset(r)},getLayerOrderCSS(t=""){return Me.getLayerOrder(t,this.options,{names:this.getLayerNames()},this.defaults)},transformCSS(t="",e,n="style",o){return Me.transformCSS(t,e,o,n,this.options,{layerNames:this.setLayerNames.bind(this)},this.defaults)},getCommonStyleSheet(t="",e,n={}){return Me.getCommonStyleSheet({name:t,theme:this.theme,params:e,props:n,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}})},getStyleSheet(t,e,n={}){return Me.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"))}},nt={_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 Dt(t){"@babel/helpers - typeof";return Dt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Dt(t)}function or(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 rr(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?or(Object(n),!0).forEach(function(o){qs(t,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):or(Object(n)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(n,o))})}return t}function qs(t,e,n){return(e=Ys(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Ys(t){var e=Xs(t,"string");return Dt(e)=="symbol"?e:e+""}function Xs(t,e){if(Dt(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var o=n.call(t,e);if(Dt(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Zs(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;i.getCurrentInstance()?i.onMounted(t):e?t():i.nextTick(t)}var Js=0;function Qs(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=i.ref(!1),o=i.ref(t),r=i.ref(null),s=Bs()?window.document:void 0,a=e.document,l=a===void 0?s:a,c=e.immediate,d=c===void 0?!0:c,f=e.manual,p=f===void 0?!1:f,y=e.name,k=y===void 0?"style_".concat(++Js):y,C=e.id,A=C===void 0?void 0:C,L=e.media,w=L===void 0?void 0:L,S=e.nonce,M=S===void 0?void 0:S,U=e.first,G=U===void 0?!1:U,ue=e.onMounted,ne=ue===void 0?void 0:ue,Pe=e.onUpdated,oe=Pe===void 0?void 0:Pe,Y=e.onLoad,N=Y===void 0?void 0:Y,X=e.props,de=X===void 0?{}:X,fe=function(){},je=function(ze){var ht=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(l){var $e=rr(rr({},de),ht),u=$e.name||k,h=$e.id||A,v=$e.nonce||M;r.value=l.querySelector('style[data-primevue-style-id="'.concat(u,'"]'))||l.getElementById(h)||l.createElement("style"),r.value.isConnected||(o.value=ze||t,fn(r.value,{type:"text/css",id:h,media:w,nonce:v}),G?l.head.prepend(r.value):l.head.appendChild(r.value),Ns(r.value,"data-primevue-style-id",u),fn(r.value,$e),r.value.onload=function(T){return N==null?void 0:N(T,{name:u})},ne==null||ne(u)),!n.value&&(fe=i.watch(o,function(T){r.value.textContent=T,oe==null||oe(u)},{immediate:!0}),n.value=!0)}},Xe=function(){!l||!n.value||(fe(),$s(r.value)&&l.head.removeChild(r.value),n.value=!1)};return d&&!p&&Zs(je),{id:A,name:k,el:r,css:o,unload:Xe,load:je,isLoaded:i.readonly(n)}}function Rt(t){"@babel/helpers - typeof";return Rt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Rt(t)}function ir(t,e){return oa(t)||na(t,e)||ta(t,e)||ea()}function ea(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
2
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ta(t,e){if(t){if(typeof t=="string")return sr(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?sr(t,e):void 0}}function sr(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,o=Array(e);n<e;n++)o[n]=t[n];return o}function na(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var o,r,s,a,l=[],c=!0,d=!1;try{if(s=(n=n.call(t)).next,e!==0)for(;!(c=(o=s.call(n)).done)&&(l.push(o.value),l.length!==e);c=!0);}catch(f){d=!0,r=f}finally{try{if(!c&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(d)throw r}}return l}}function oa(t){if(Array.isArray(t))return t}function ar(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,o)}return n}function Yn(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?ar(Object(n),!0).forEach(function(o){ra(t,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ar(Object(n)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(n,o))})}return t}function ra(t,e,n){return(e=ia(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ia(t){var e=sa(t,"string");return Rt(e)=="symbol"?e:e+""}function sa(t,e){if(Rt(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var o=n.call(t,e);if(Rt(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var aa=function(e){var n=e.dt;return`
1
+ (function(D,i){typeof exports=="object"&&typeof module<"u"?i(exports,require("vue"),require("vue-router")):typeof define=="function"&&define.amd?define(["exports","vue","vue-router"],i):(D=typeof globalThis<"u"?globalThis:D||self,i((D.sf=D.sf||{},D.sf.prefeiturasp=D.sf.prefeiturasp||{},D.sf.prefeiturasp.vuecomponents={}),D.Vue,D.VueRouter))})(this,function(D,i,gt){"use strict";var Xf=Object.defineProperty;var Zf=(D,i,gt)=>i in D?Xf(D,i,{enumerable:!0,configurable:!0,writable:!0,value:gt}):D[i]=gt;var te=(D,i,gt)=>Zf(D,typeof i!="symbol"?i+"":i,gt);class Lt{constructor(e){te(this,"retorno");this.retorno=e??""}Concat(e){return e&&e.trim().length&&(this.retorno+=` ${e}`),this}AddClass(e,n=!0){return n?this.Concat(e):this}Build(){return this.retorno.trim()}}function Vn(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 Uo=i.defineComponent({__name:"Tooltip",props:{text:{}},setup(t){const e=t;class n{constructor(){te(this,"target",null);te(this,"wrapper",null);te(this,"inner",null);te(this,"showTimeout",null)}Render(){this.wrapper=document.createElement("div"),this.wrapper.classList.add("sf-tooltip-wrapper"),this.wrapper.style.zIndex=`${Vn()??1}`,this.wrapper.addEventListener("mouseup",function(){this.classList.remove("visible"),Array.from(this.children).forEach(s=>s.remove()),this.remove()}),this.inner=document.createElement("div"),this.inner.classList.add("sf-tooltip-inner"),this.wrapper.appendChild(this.inner)}Show(s){this.showTimeout&&clearTimeout(this.showTimeout),this.target=s.currentTarget,this.showTimeout=setTimeout(()=>{this.Render(),this.inner.textContent=e.text,document.body.appendChild(this.wrapper),this.wrapper.classList.add("visible"),this.Position()},500)}Hide(){this.showTimeout&&clearTimeout(this.showTimeout);try{this.wrapper.classList.remove("visible"),this.inner.remove(),this.wrapper.remove(),this.inner=null,this.wrapper=null,this.target=null}catch{}}Position(){if(!this.target||!this.wrapper)return;const s=this.target.getBoundingClientRect();this.FixWidth();const l=this.wrapper,a=5;l.style.top=`${s.top+s.height-a}px`,l.style.left=`${s.left+s.width-a}px`,this.OutOfBottom()&&(l.style.top=`${s.top-l.clientHeight+a}px`),this.OutOfRight()&&(l.style.left=`${s.left-l.clientWidth+a}px`)}FixWidth(){const s=this.wrapper;if(!s)return;s.style.width="fit-content",s.style.wordBreak="normal",s.style.whiteSpace="nowrap";const l=window.innerWidth/2;s.clientWidth>l&&(s.style.width=`${l}px`,s.style.wordBreak="break-word",s.style.whiteSpace="normal")}OutOfBottom(){const s=this.wrapper;if(!s)return!1;const l=s.getBoundingClientRect(),a=window.innerHeight||document.documentElement.clientHeight;return l.bottom+10>a}OutOfRight(){const s=this.wrapper;if(!s)return!1;const l=s.getBoundingClientRect(),a=window.innerWidth||document.documentElement.clientWidth;return l.right+10>a}}const o=new n;return i.onBeforeUnmount(()=>{o.Hide()}),(r,s)=>(i.openBlock(),i.createElementBlock("div",{class:"sf-tooltip-anchor",onMouseenter:s[0]||(s[0]=(...l)=>i.unref(o).Show&&i.unref(o).Show(...l)),onMousedown:s[1]||(s[1]=(...l)=>i.unref(o).Hide&&i.unref(o).Hide(...l)),onMouseleave:s[2]||(s[2]=(...l)=>i.unref(o).Hide&&i.unref(o).Hide(...l))},[i.renderSlot(r.$slots,"default")],32))}}),et=(t,e)=>{const n=t.__vccOpts||t;for(const[o,r]of e)n[o]=r;return n},cs={},us={class:"sf-loading-circle"};function ds(t,e){return i.openBlock(),i.createElementBlock("div",us,e[0]||(e[0]=[i.createElementVNode("div",null,[i.createElementVNode("svg",{viewBox:"25 25 50 50"},[i.createElementVNode("circle",{cx:"50",cy:"50",r:"20",fill:"none","stroke-width":"4","stroke-miterlimit":"10"})])],-1)]))}const Vo=et(cs,[["render",ds]]),fs=["data-size"],ms=["disabled","data-p-loading","tabindex"],ps=["data-color"],Ue=et(i.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"}},emits:["click"],setup(t,{emit:e}){const n=t,o=i.computed(()=>n.tooltip?Uo:"div"),r=i.computed(()=>new Lt(n.tooltip?"":"display-content").AddClass("loading",n.loading).AddClass("disabled",n.disabled).Build()),s=i.computed(()=>new Lt(`${n.class} sf-icon`).AddClass("select-none").AddClass(`${n.color}-color`,!!n.color&&n.color!=="inherit").Build()),l=c=>{n.disabled||n.loading||a("click",c)},a=e;return(c,d)=>(i.openBlock(),i.createBlock(i.resolveDynamicComponent(o.value),{text:n.tooltip,class:i.normalizeClass(r.value),onClick:l},{default:i.withCtx(()=>[i.createElementVNode("div",{class:i.normalizeClass(["icon-wrapper",{"--button":!!n.button&&!n.disabled&&!n.loading,"--relative":!n.loading}]),"data-size":n.size},[n.visible?(i.openBlock(),i.createElementBlock("div",{key:0,style:i.normalizeStyle(n.style),class:i.normalizeClass(s.value)},[n.loading?(i.openBlock(),i.createBlock(Vo,{key:0})):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createElementVNode("button",i.mergeProps({class:["material-symbols-outlined",{"icon-filled":!!n.filled}],disabled:n.disabled,"data-p-loading":n.loading},n.buttonProps,{tabindex:n.button?void 0:-1}),i.toDisplayString(n.icon),17,ms),n.dot&&!n.disabled&&!n.loading?(i.openBlock(),i.createElementBlock("span",{key:0,"data-color":n.dotColor},null,8,ps)):i.createCommentVNode("",!0)],64))],6)):i.createCommentVNode("",!0)],10,fs)]),_:1},8,["text","class"]))}}),[["__scopeId","data-v-c242d02a"]]),hs={class:"sf-tab-navigation"},gs=["data-active"],ys=["href","onClick"],bs=i.defineComponent({__name:"TabNavigation",props:{tabs:{}},setup(t){const e=t,n=i.ref(null),o=new ResizeObserver(c=>{a()}),r=i.ref(!1),s=i.ref(!1);function l(c=!1){const d=n.value.clientWidth;n.value.scrollLeft+=c?-d:d}function a(){const c=n.value.scrollWidth-n.value.clientWidth;r.value=n.value.scrollLeft>10,s.value=n.value.scrollLeft<c-10}return i.onMounted(()=>{n.value.addEventListener("scroll",a),o.observe(n.value)}),i.onBeforeUnmount(()=>{var c;try{(c=n.value)==null||c.removeEventListener("scroll",a),o.unobserve(n.value),o.disconnect()}catch{}}),(c,d)=>{const f=i.resolveComponent("RouterLink");return i.openBlock(),i.createElementBlock("div",hs,[i.createElementVNode("div",{class:i.normalizeClass(["left-arrow",{active:r.value}]),onClick:d[0]||(d[0]=p=>l(!0))},d[2]||(d[2]=[i.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"},[i.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15.75 19.5L8.25 12l7.5-7.5"})],-1)]),2),i.createElementVNode("ul",{ref_key:"trackerContainer",ref:n},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.tabs,p=>(i.openBlock(),i.createBlock(f,{to:p.route,custom:!0},{default:i.withCtx(({navigate:y,isActive:k})=>[i.createElementVNode("li",{"data-active":k},[i.renderSlot(c.$slots,"item",{item:p,navigate:y,isActive:k},()=>[i.createElementVNode("a",{href:p.route,class:i.normalizeClass({active:k}),onClick:y},i.toDisplayString(p.text),11,ys)])],8,gs)]),_:2},1032,["to"]))),256))],512),i.createElementVNode("div",{class:i.normalizeClass(["right-arrow",{active:s.value}]),onClick:d[1]||(d[1]=p=>l())},d[3]||(d[3]=[i.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"},[i.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M8.25 4.5l7.5 7.5-7.5 7.5"})],-1)]),2)])}}}),Ho=et(i.defineComponent({__name:"LoadingCircle",props:{delay:{},dense:{type:Boolean}},setup(t){const e=t,n=i.ref(!1);return i.onMounted(async()=>{await new Promise(o=>setTimeout(o,e.delay??300)),n.value=!0}),(o,r)=>n.value?(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(["loading-circle",{dense:e.dense}])},r[0]||(r[0]=[i.createElementVNode("div",null,[i.createElementVNode("svg",{viewBox:"25 25 50 50"},[i.createElementVNode("circle",{cx:"50",cy:"50",r:"20",fill:"none","stroke-width":"3","stroke-miterlimit":"10"})])],-1)]),2)):i.createCommentVNode("",!0)}}),[["__scopeId","data-v-29f59fc6"]]),vs=["id","name","disabled","data-color","form","type","data-p-loading"],ws=et(i.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}},emits:["click"],setup(t,{emit:e}){const n=t;function o(){return new Lt(`${n.class??""} sf-button`).AddClass("select-none").AddClass("sf-button-small",n.size==="sm").AddClass("sf-button-medium",n.size==="md").AddClass("sf-button-large",n.size==="lg").AddClass("sf-button-filled",n.variant==="filled").AddClass("sf-button-text",n.variant==="text").AddClass("sf-button-outlined",n.variant==="outlined").AddClass("sf-button-with-icon",!!n.icon).Build()}const r=l=>{n.disabled||n.loading||s("click",l)},s=e;return(l,a)=>n.visible?(i.openBlock(),i.createElementBlock("button",{key:0,id:n.id,name:n.name,class:i.normalizeClass(o()),style:i.normalizeStyle(n.style),disabled:n.disabled,"data-color":n.color,form:n.form,type:n.type,"data-p-loading":n.loading,onClick:r},[n.loading?(i.openBlock(),i.createBlock(Ho,{key:0,dense:!0,delay:0,class:i.normalizeClass("icon-loading")})):i.createCommentVNode("",!0),n.icon?(i.openBlock(),i.createBlock(Ue,{key:1,icon:n.icon,size:n.size,"button-props":{tabindex:-1},filled:n.iconFilled,class:i.normalizeClass({transparent:n.loading})},null,8,["icon","size","filled","class"])):i.createCommentVNode("",!0),i.createElementVNode("span",{class:i.normalizeClass({"button-label":!0,"pl-2":!!n.icon,transparent:!n.disabled&&n.loading})},[i.renderSlot(l.$slots,"default",{},void 0,!0)],2)],14,vs)):i.createCommentVNode("",!0)}}),[["__scopeId","data-v-79a81e53"]]),ks={class:"sf-drawer-title"},_s={class:"sf-drawer-action"},jo=i.defineComponent({__name:"Drawer",props:{visible:{type:Boolean,default:!1},position:{default:"left"},style:{type:[Boolean,null,String,Object,Array]},dismissableMask:{type:Boolean,default:!0},title:{},unstyledHeader:{type:Boolean},unstyledContent:{type:Boolean},unstyledFooter:{type:Boolean}},emits:["update:visible","open","before-close"],setup(t,{emit:e}){const n=t,o=e,r=i.useSlots(),s=i.ref(n.visible),l=i.ref(!1),a=i.ref(0),c="sf-drawer-"+Math.random().toString(36).slice(2,11)+"-"+Date.now();function d(){s.value=!1}function f(w){if(!n.dismissableMask)return;const S=w.target;S&&S.id===c&&(s.value=!1)}function p(w){(w.key==="Escape"||w.code==="Escape")&&d()}function y(){o("open"),window.document.addEventListener("keydown",p,!0)}function k(w){a.value=Vn()+1,w.style.zIndex=`${a.value}`}function C(w){var S;o("before-close"),(S=w==null?void 0:w.parentElement)==null||S.classList.add("sf-mask-overlay-leave")}function A(){window.document.removeEventListener("keydown",p,!0),l.value=!1}function L(){return new Lt("sf-mask sf-mask-overlay").AddClass("right",n.position==="right").AddClass("bottom",n.position==="bottom").AddClass("center",n.position==="center").AddClass("full",n.position==="full").AddClass("sf-mask-overlay-enter",n.visible===!0).Build()}return i.watch(()=>n.visible,w=>{s.value=w}),i.watch(()=>s.value,w=>{o("update:visible",w),w&&(l.value=!0)}),(w,S)=>(i.openBlock(),i.createBlock(i.Teleport,{to:"body"},[l.value?(i.openBlock(),i.createElementBlock("div",{key:0,id:c,class:i.normalizeClass(L()),style:i.normalizeStyle({zIndex:a.value-1}),onClick:i.withModifiers(f,["stop"])},[i.createVNode(i.Transition,{name:"sf-drawer",appear:"",onBeforeEnter:k,onEnter:y,onBeforeLeave:C,onAfterLeave:A},{default:i.withCtx(()=>[s.value?(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(["sf-drawer"]),style:i.normalizeStyle(n.style),role:"dialog"},[i.renderSlot(w.$slots,"header",i.normalizeProps(i.guardReactiveProps({Close:d})),()=>[i.createElementVNode("div",{class:i.normalizeClass(["sf-drawer-header",{unstyled:n.unstyledHeader}])},[i.renderSlot(w.$slots,"title",{},()=>[i.createElementVNode("div",ks,i.toDisplayString(n.title),1)]),S[0]||(S[0]=i.createElementVNode("div",{class:"sf-drawer-spacer"},null,-1)),i.createElementVNode("div",_s,[i.renderSlot(w.$slots,"action",i.normalizeProps(i.guardReactiveProps({Close:d})),()=>[i.createVNode(Ue,{button:!0,icon:"close",onClick:d})])])],2)]),i.createElementVNode("div",{class:i.normalizeClass(["sf-drawer-content",{unstyled:n.unstyledContent}])},[i.renderSlot(w.$slots,"default")],2),i.unref(r).footer?(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(["sf-drawer-footer",{unstyled:n.unstyledFooter}])},[i.renderSlot(w.$slots,"footer",i.normalizeProps(i.guardReactiveProps({Close:d})))],2)):i.createCommentVNode("",!0)],4)):i.createCommentVNode("",!0)]),_:3})],6)):i.createCommentVNode("",!0)]))}}),Ss=["data-icon"],Cs=i.defineComponent({__name:"Message",props:{color:{default:"info"},class:{},style:{type:[Boolean,null,String,Object,Array]},icon:{}},setup(t){const e=t,n=i.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=i.computed(()=>new Lt("sf-message").AddClass("sf-message-error",e.color==="error").AddClass("sf-message-info",e.color==="info").AddClass("sf-message-warning",e.color==="warn").AddClass("sf-message-success",e.color==="success").AddClass("sf-message-help",e.color==="help").AddClass("sf-message-primary",e.color==="primary").AddClass("sf-message-secondary",e.color==="secondary").AddClass(e.class).Build());return(r,s)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(o.value),"data-icon":n.value},[i.renderSlot(r.$slots,"default")],10,Ss))}});function Es(t,e){return t?t.classList?t.classList.contains(e):new RegExp("(^| )"+e+"( |$)","gi").test(t.className):!1}function Is(t,e){if(t&&e){const n=o=>{Es(t,o)||(t.classList?t.classList.add(o):t.className+=" "+o)};[e].flat().filter(Boolean).forEach(o=>o.split(" ").forEach(n))}}function Hn(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 Ts(t,e){return t instanceof HTMLElement?t.offsetWidth:0}function dn(t){return typeof HTMLElement=="object"?t instanceof HTMLElement:t&&typeof t=="object"&&t!==null&&t.nodeType===1&&typeof t.nodeName=="string"}function fn(t,e={}){if(dn(t)){const n=(o,r)=>{var s,l;const a=(s=t==null?void 0:t.$attrs)!=null&&s[o]?[(l=t==null?void 0:t.$attrs)==null?void 0:l[o]]:[];return[r].flat().reduce((c,d)=>{if(d!=null){const f=typeof d;if(f==="string"||f==="number")c.push(d);else if(f==="object"){const p=Array.isArray(d)?n(o,d):Object.entries(d).map(([y,k])=>o==="style"&&(k||k===0)?`${y.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}:${k}`:k?y:void 0);c=p.length?c.concat(p.filter(y=>!!y)):c}}return c},a)};Object.entries(e).forEach(([o,r])=>{if(r!=null){const s=o.match(/^on(.+)/);s?t.addEventListener(s[1].toLowerCase(),r):o==="p-bind"?fn(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 As(t,e={},...n){{const o=document.createElement(t);return fn(o,e),o.append(...n),o}}function Be(t,e){return dn(t)?t.matches(e)?t:t.querySelector(e):null}function xt(t,e){t&&document.activeElement!==t&&t.focus(e)}function Ot(t,e){if(dn(t)){const n=t.getAttribute(e);return isNaN(n)?n==="true"||n==="false"?n==="true":n:+n}}function Fo(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 Ps(t){if(t){let e=t.parentNode;return e&&e instanceof ShadowRoot&&e.host&&(e=e.host),e}return null}function Ls(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 xs(t,e){return t?t.offsetHeight:0}function Os(t){return!!(t!==null&&typeof t<"u"&&t.nodeName&&Ps(t))}function zo(t){if(t){let e=t.offsetWidth,n=getComputedStyle(t);return e-=parseFloat(n.paddingLeft)+parseFloat(n.paddingRight)+parseFloat(n.borderLeftWidth)+parseFloat(n.borderRightWidth),e}return 0}function $s(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Bs(t,e="",n){dn(t)&&n!==null&&n!==void 0&&t.setAttribute(e,n)}function Ko(){const t=new Map;return{on(e,n){let o=t.get(e);return o?o.push(n):o=[n],t.set(e,o),this},off(e,n){let o=t.get(e);return o&&o.splice(o.indexOf(n)>>>0,1),this},emit(e,n){let o=t.get(e);o&&o.slice().map(r=>{r(n)})},clear(){t.clear()}}}function at(t){return t==null||t===""||Array.isArray(t)&&t.length===0||!(t instanceof Date)&&typeof t=="object"&&Object.keys(t).length===0}function jn(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,s,l;if(n&&o){if(s=t.length,s!=e.length)return!1;for(r=s;r--!==0;)if(!jn(t[r],e[r]))return!1;return!0}if(n!=o)return!1;var a=t instanceof Date,c=e instanceof Date;if(a!=c)return!1;if(a&&c)return t.getTime()==e.getTime();var d=t instanceof RegExp,f=e instanceof RegExp;if(d!=f)return!1;if(d&&f)return t.toString()==e.toString();var p=Object.keys(t);if(s=p.length,s!==Object.keys(e).length)return!1;for(r=s;r--!==0;)if(!Object.prototype.hasOwnProperty.call(e,p[r]))return!1;for(r=s;r--!==0;)if(l=p[r],!jn(t[l],e[l]))return!1;return!0}return t!==t&&e!==e}function Fn(t){return!!(t&&t.constructor&&t.call&&t.apply)}function Z(t){return!at(t)}function yt(t,e,n){return jn(t,e)}function Wo(t,e){let n;if(Z(t))try{n=t.findLast(e)}catch{n=[...t].reverse().find(e)}return n}function tt(t,e=!0){return t instanceof Object&&t.constructor===Object&&(e||Object.keys(t).length!==0)}function Ie(t,...e){return Fn(t)?t(...e):t}function ke(t,e=!0){return typeof t=="string"&&(e||t!=="")}function Ne(t){return ke(t)?t.replace(/(-|_)/g,"").toLowerCase():t}function zn(t,e="",n={}){const o=Ne(e).split("."),r=o.shift();return r?tt(t)?zn(Ie(t[Object.keys(t).find(s=>Ne(s)===r)||""],n),o.join("."),n):void 0:Ie(t,n)}function Kn(t,e=!0){return Array.isArray(t)&&(e||t.length!==0)}function Go(t){return Z(t)&&!isNaN(t)}function Ns(t=""){return Z(t)&&t.length===1&&!!t.match(/\S| /)}function Ge(t,e){if(e){const n=e.test(t);return e.lastIndex=0,n}return!1}function $t(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 Ms(t){return ke(t,!1)?t[0].toUpperCase()+t.slice(1):t}function qo(t){return ke(t)?t.replace(/(_)/g,"-").replace(/[A-Z]/g,(e,n)=>n===0?e:"-"+e.toLowerCase()).toLowerCase():t}function Yo(t){return ke(t)?t.replace(/[A-Z]/g,(e,n)=>n===0?e:"."+e.toLowerCase()).toLowerCase():t}var mn={};function Ds(t="pui_id_"){return mn.hasOwnProperty(t)||(mn[t]=0),mn[t]++,`${t}${mn[t]}`}function pn(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"pv_id_";return Ds(t)}var Rs=Object.defineProperty,Us=Object.defineProperties,Vs=Object.getOwnPropertyDescriptors,hn=Object.getOwnPropertySymbols,Xo=Object.prototype.hasOwnProperty,Zo=Object.prototype.propertyIsEnumerable,Jo=(t,e,n)=>e in t?Rs(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Bt=(t,e)=>{for(var n in e||(e={}))Xo.call(e,n)&&Jo(t,n,e[n]);if(hn)for(var n of hn(e))Zo.call(e,n)&&Jo(t,n,e[n]);return t},Wn=(t,e)=>Us(t,Vs(e)),Nt=(t,e)=>{var n={};for(var o in t)Xo.call(t,o)&&e.indexOf(o)<0&&(n[o]=t[o]);if(t!=null&&hn)for(var o of hn(t))e.indexOf(o)<0&&Zo.call(t,o)&&(n[o]=t[o]);return n},Hs=Ko(),qe=Hs;function Qo(t,e){Kn(t)?t.push(...e||[]):tt(t)&&Object.assign(t,e)}function js(t){return tt(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(s=>Go(s)?`${s}px`:s).join(" ")}function Fs(t){return t.replaceAll(/ /g,"").replace(/[^\w]/g,"-")}function Gn(t="",e=""){return Fs(`${ke(t,!1)&&ke(e,!1)?`${t}-`:t}${e}`)}function tr(t="",e=""){return`--${Gn(t,e)}`}function nr(t,e="",n="",o=[],r){if(ke(t)){const s=/{([^}]*)}/g,l=t.trim();if(Ge(l,s)){const a=l.replaceAll(s,f=>{const y=f.replace(/{|}/g,"").split(".").filter(k=>!o.some(C=>Ge(k,C)));return`var(${tr(n,qo(y.join("-")))}${Z(r)?`, ${r}`:""})`}),c=/(\d+\s+[\+\-\*\/]\s+\d+)/g,d=/var\([^)]+\)/g;return Ge(a.replace(d,"0"),c)?`calc(${a})`:a}return er(l,e)}else if(Go(t))return er(t,e)}function zs(t,e,n){ke(e,!1)&&t.push(`${e}:${n};`)}function Mt(t,e){return t?`${t}{${e}}`:""}var qn=(...t)=>Ks(Q.getTheme(),...t),Ks=(t={},e,n,o="variable")=>{if(e){const{variable:r,options:s}=Q.defaults||{},{prefix:l,transform:a}=(t==null?void 0:t.options)||s||{},d=Ge(e,/{([^}]*)}/g)?e:`{${e}}`;return o==="value"||a==="strict"?Q.getTokenValue(e):nr(d,void 0,l,[r.excludedKeyRegex],n)}return""};function Ws(t,e={}){const n=Q.defaults.variable,{prefix:o=n.prefix,selector:r=n.selector,excludedKeyRegex:s=n.excludedKeyRegex}=e,l=(d,f="")=>Object.entries(d).reduce((p,[y,k])=>{const C=Ge(y,s)?Gn(f):Gn(f,qo(y)),A=js(k);if(tt(A)){const{variables:L,tokens:w}=l(A,C);Qo(p.tokens,w),Qo(p.variables,L)}else p.tokens.push((o?C.replace(`${o}-`,""):C).replaceAll("-",".")),zs(p.variables,tr(C),nr(A,C,o,[s]));return p},{variables:[],tokens:[]}),{variables:a,tokens:c}=l(t,o);return{value:a,tokens:c,declarations:a.join(""),css:Mt(r,a.join(""))}}var Me={regex:{rules:{class:{pattern:/^\.([a-zA-Z][\w-]*)$/,resolve(t){return{type:"class",selector:t,matched:this.pattern.test(t.trim())}}},attr:{pattern:/^\[(.*)\]$/,resolve(t){return{type:"attr",selector:`:root${t}`,matched:this.pattern.test(t.trim())}}},media:{pattern:/^@media (.*)$/,resolve(t){return{type:"media",selector:`${t}{:root{[CSS]}}`,matched:this.pattern.test(t.trim())}}},system:{pattern:/^system$/,resolve(t){return{type:"system",selector:"@media (prefers-color-scheme: dark){:root{[CSS]}}",matched:this.pattern.test(t.trim())}}},custom:{resolve(t){return{type:"custom",selector:t,matched:!0}}}},resolve(t){const e=Object.keys(this.rules).filter(n=>n!=="custom").map(n=>this.rules[n]);return[t].flat().map(n=>{var o;return(o=e.map(r=>r.resolve(n)).find(r=>r.matched))!=null?o:this.rules.custom.resolve(n)})}},_toVariables(t,e){return Ws(t,{prefix:e==null?void 0:e.prefix})},getCommon({name:t="",theme:e={},params:n,set:o,defaults:r}){var s,l,a,c;const{preset:d,options:f}=e;let p,y,k,C;if(Z(d)){const{primitive:A,semantic:L}=d,w=L||{},{colorScheme:S}=w,M=Nt(w,["colorScheme"]),U=S||{},{dark:G}=U,ue=Nt(U,["dark"]),ne=Z(A)?this._toVariables({primitive:A},f):{},Pe=Z(M)?this._toVariables({semantic:M},f):{},oe=Z(ue)?this._toVariables({light:ue},f):{},Y=Z(G)?this._toVariables({dark:G},f):{},[N,X]=[(s=ne.declarations)!=null?s:"",ne.tokens],[de,fe]=[(l=Pe.declarations)!=null?l:"",Pe.tokens||[]],[je,Xe]=[(a=oe.declarations)!=null?a:"",oe.tokens||[]],[Fe,ze]=[(c=Y.declarations)!=null?c:"",Y.tokens||[]];p=this.transformCSS(t,N,"light","variable",f,o,r),y=X;const ht=this.transformCSS(t,`${de}${je}color-scheme:light`,"light","variable",f,o,r),$e=this.transformCSS(t,`${Fe}color-scheme:dark`,"dark","variable",f,o,r);k=`${ht}${$e}`,C=[...new Set([...fe,...Xe,...ze])]}return{primitive:{css:p,tokens:y},semantic:{css:k,tokens:C}}},getPreset({name:t="",preset:e={},options:n,params:o,set:r,defaults:s,selector:l}){var a,c,d;const f=t.replace("-directive",""),p=e,{colorScheme:y}=p,k=Nt(p,["colorScheme"]),C=y||{},{dark:A}=C,L=Nt(C,["dark"]),w=Z(k)?this._toVariables({[f]:k},n):{},S=Z(L)?this._toVariables({[f]:L},n):{},M=Z(A)?this._toVariables({[f]:A},n):{},[U,G]=[(a=w.declarations)!=null?a:"",w.tokens||[]],[ue,ne]=[(c=S.declarations)!=null?c:"",S.tokens||[]],[Pe,oe]=[(d=M.declarations)!=null?d:"",M.tokens||[]],Y=[...new Set([...G,...ne,...oe])],N=this.transformCSS(f,`${U}${ue}`,"light","variable",n,r,s,l),X=this.transformCSS(f,Pe,"dark","variable",n,r,s,l);return{css:`${N}${X}`,tokens:Y}},getPresetC({name:t="",theme:e={},params:n,set:o,defaults:r}){var s;const{preset:l,options:a}=e,c=(s=l==null?void 0:l.components)==null?void 0:s[t];return this.getPreset({name:t,preset:c,options:a,params:n,set:o,defaults:r})},getPresetD({name:t="",theme:e={},params:n,set:o,defaults:r}){var s;const l=t.replace("-directive",""),{preset:a,options:c}=e,d=(s=a==null?void 0:a.directives)==null?void 0:s[l];return this.getPreset({name:l,preset:d,options:c,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 ${Ie(r.order||"primeui",n)}`:""},getCommonStyleSheet({name:t="",theme:e={},params:n,props:o={},set:r,defaults:s}){const l=this.getCommon({name:t,theme:e,params:n,set:r,defaults:s}),a=Object.entries(o).reduce((c,[d,f])=>c.push(`${d}="${f}"`)&&c,[]).join(" ");return Object.entries(l||{}).reduce((c,[d,f])=>{if(f!=null&&f.css){const p=$t(f==null?void 0:f.css),y=`${d}-variables`;c.push(`<style type="text/css" data-primevue-style-id="${y}" ${a}>${p}</style>`)}return c},[]).join("")},getStyleSheet({name:t="",theme:e={},params:n,props:o={},set:r,defaults:s}){var l;const a={name:t,theme:e,params:n,set:r,defaults:s},c=(l=t.includes("-directive")?this.getPresetD(a):this.getPresetC(a))==null?void 0:l.css,d=Object.entries(o).reduce((f,[p,y])=>f.push(`${p}="${y}"`)&&f,[]).join(" ");return c?`<style type="text/css" data-primevue-style-id="${t}-variables" ${d}>${$t(c)}</style>`:""},createTokens(t={},e,n="",o="",r={}){return Object.entries(t).forEach(([s,l])=>{const a=Ge(s,e.variable.excludedKeyRegex)?n:n?`${n}.${Yo(s)}`:Yo(s),c=o?`${o}.${s}`:s;tt(l)?this.createTokens(l,e,a,c,r):(r[a]||(r[a]={paths:[],computed(d,f={}){if(d){const p=this.paths.find(y=>y.scheme===d)||this.paths.find(y=>y.scheme==="none");return p==null?void 0:p.computed(d,f.binding)}return this.paths.map(p=>p.computed(p.scheme,f[p.scheme]))}}),r[a].paths.push({path:c,value:l,scheme:c.includes("colorScheme.light")?"light":c.includes("colorScheme.dark")?"dark":"none",computed(d,f={}){const p=/{([^}]*)}/g;let y=l;if(f.name=this.path,f.binding||(f.binding={}),Ge(l,p)){const C=l.trim().replaceAll(p,w=>{var S,M;const U=w.replace(/{|}/g,"");return(M=(S=r[U])==null?void 0:S.computed(d,f))==null?void 0:M.value}),A=/(\d+\w*\s+[\+\-\*\/]\s+\d+\w*)/g,L=/var\([^)]+\)/g;y=Ge(C.replace(L,"0"),A)?`calc(${C})`:C}return at(f.binding)&&delete f.binding,{colorScheme:d,path:this.path,paths:f,value:y.includes("undefined")?void 0:y}}}))}),r},getTokenValue(t,e,n){var o;const s=(c=>c.split(".").filter(f=>!Ge(f.toLowerCase(),n.variable.excludedKeyRegex)).join("."))(e),l=e.includes("colorScheme.light")?"light":e.includes("colorScheme.dark")?"dark":void 0,a=[(o=t[s])==null?void 0:o.computed(l)].flat().filter(c=>c);return a.length===1?a[0].value:a.reduce((c={},d)=>{const f=d,{colorScheme:p}=f,y=Nt(f,["colorScheme"]);return c[p]=y,c},void 0)},transformCSS(t,e,n,o,r={},s,l,a){if(Z(e)){const{cssLayer:c}=r;if(o!=="style"){const d=this.getColorSchemeOption(r,l),f=a?Mt(a,e):e;e=n==="dark"?d.reduce((p,{selector:y})=>(Z(y)&&(p+=y.includes("[CSS]")?y.replace("[CSS]",f):Mt(y,f)),p),""):Mt(a??":root",e)}if(c){const d={name:"primeui"};tt(c)&&(d.name=Ie(c.name,{name:t,type:o})),Z(d.name)&&(e=Mt(`@layer ${d.name}`,e),s==null||s.layerNames(d.name))}return e}return""}},Q={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=Wn(Bt({},e),{options:Bt(Bt({},this.defaults.options),e.options)}),this._tokens=Me.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=Wn(Bt({},this.theme),{preset:t}),this._tokens=Me.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=Wn(Bt({},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 Me.getTokenValue(this.tokens,t,this.defaults)},getCommon(t="",e){return Me.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 Me.getPresetC(n)},getDirective(t="",e){const n={name:t,theme:this.theme,params:e,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}};return Me.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 Me.getPreset(r)},getLayerOrderCSS(t=""){return Me.getLayerOrder(t,this.options,{names:this.getLayerNames()},this.defaults)},transformCSS(t="",e,n="style",o){return Me.transformCSS(t,e,o,n,this.options,{layerNames:this.setLayerNames.bind(this)},this.defaults)},getCommonStyleSheet(t="",e,n={}){return Me.getCommonStyleSheet({name:t,theme:this.theme,params:e,props:n,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}})},getStyleSheet(t,e,n={}){return Me.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"))}},nt={_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 Dt(t){"@babel/helpers - typeof";return Dt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Dt(t)}function or(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 rr(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?or(Object(n),!0).forEach(function(o){Gs(t,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):or(Object(n)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(n,o))})}return t}function Gs(t,e,n){return(e=qs(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function qs(t){var e=Ys(t,"string");return Dt(e)=="symbol"?e:e+""}function Ys(t,e){if(Dt(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var o=n.call(t,e);if(Dt(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Xs(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;i.getCurrentInstance()?i.onMounted(t):e?t():i.nextTick(t)}var Zs=0;function Js(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=i.ref(!1),o=i.ref(t),r=i.ref(null),s=$s()?window.document:void 0,l=e.document,a=l===void 0?s:l,c=e.immediate,d=c===void 0?!0:c,f=e.manual,p=f===void 0?!1:f,y=e.name,k=y===void 0?"style_".concat(++Zs):y,C=e.id,A=C===void 0?void 0:C,L=e.media,w=L===void 0?void 0:L,S=e.nonce,M=S===void 0?void 0:S,U=e.first,G=U===void 0?!1:U,ue=e.onMounted,ne=ue===void 0?void 0:ue,Pe=e.onUpdated,oe=Pe===void 0?void 0:Pe,Y=e.onLoad,N=Y===void 0?void 0:Y,X=e.props,de=X===void 0?{}:X,fe=function(){},je=function(ze){var ht=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(a){var $e=rr(rr({},de),ht),u=$e.name||k,h=$e.id||A,v=$e.nonce||M;r.value=a.querySelector('style[data-primevue-style-id="'.concat(u,'"]'))||a.getElementById(h)||a.createElement("style"),r.value.isConnected||(o.value=ze||t,fn(r.value,{type:"text/css",id:h,media:w,nonce:v}),G?a.head.prepend(r.value):a.head.appendChild(r.value),Bs(r.value,"data-primevue-style-id",u),fn(r.value,$e),r.value.onload=function(T){return N==null?void 0:N(T,{name:u})},ne==null||ne(u)),!n.value&&(fe=i.watch(o,function(T){r.value.textContent=T,oe==null||oe(u)},{immediate:!0}),n.value=!0)}},Xe=function(){!a||!n.value||(fe(),Os(r.value)&&a.head.removeChild(r.value),n.value=!1)};return d&&!p&&Xs(je),{id:A,name:k,el:r,css:o,unload:Xe,load:je,isLoaded:i.readonly(n)}}function Rt(t){"@babel/helpers - typeof";return Rt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Rt(t)}function ir(t,e){return na(t)||ta(t,e)||ea(t,e)||Qs()}function Qs(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
2
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ea(t,e){if(t){if(typeof t=="string")return sr(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?sr(t,e):void 0}}function sr(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,o=Array(e);n<e;n++)o[n]=t[n];return o}function ta(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var o,r,s,l,a=[],c=!0,d=!1;try{if(s=(n=n.call(t)).next,e!==0)for(;!(c=(o=s.call(n)).done)&&(a.push(o.value),a.length!==e);c=!0);}catch(f){d=!0,r=f}finally{try{if(!c&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(d)throw r}}return a}}function na(t){if(Array.isArray(t))return t}function ar(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,o)}return n}function Yn(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?ar(Object(n),!0).forEach(function(o){oa(t,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ar(Object(n)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(n,o))})}return t}function 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 Rt(e)=="symbol"?e:e+""}function ia(t,e){if(Rt(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var o=n.call(t,e);if(Rt(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var sa=function(e){var n=e.dt;return`
3
3
  * {
4
4
  box-sizing: border-box;
5
5
  }
@@ -118,7 +118,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
118
118
  background: transparent;
119
119
  }
120
120
  }
121
- `)},la=function(e){var n=e.dt;return`
121
+ `)},aa=function(e){var n=e.dt;return`
122
122
  .p-hidden-accessible {
123
123
  border: 0;
124
124
  clip: rect(0 0 0 0);
@@ -139,8 +139,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
139
139
  overflow: hidden;
140
140
  padding-right: `.concat(n("scrollbar.width"),`;
141
141
  }
142
- `)},ca={},ua={},ge={name:"base",css:la,theme:aa,classes:ca,inlineStyles:ua,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(s){return s},r=o(Ie(e,{dt:qn}));return r?Qs($t(r),Yn({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 Q.transformCSS(n.name||e.name,o)})},getCommonTheme:function(e){return Q.getCommon(this.name,e)},getComponentTheme:function(e){return Q.getComponent(this.name,e)},getDirectiveTheme:function(e){return Q.getDirective(this.name,e)},getPresetTheme:function(e,n,o){return Q.getCustomPreset(this.name,e,n,o)},getLayerOrderThemeCSS:function(){return Q.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=Ie(this.css,{dt:qn}),r=$t("".concat(o).concat(e)),s=Object.entries(n).reduce(function(a,l){var c=ir(l,2),d=c[0],f=c[1];return a.push("".concat(d,'="').concat(f,'"'))&&a},[]).join(" ");return'<style type="text/css" data-primevue-style-id="'.concat(this.name,'" ').concat(s,">").concat(r,"</style>")}return""},getCommonThemeStyleSheet:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Q.getCommonStyleSheet(this.name,e,n)},getThemeStyleSheet:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=[Q.getStyleSheet(this.name,e,n)];if(this.theme){var r=this.name==="base"?"global-style":"".concat(this.name,"-style"),s=Ie(this.theme,{dt:qn}),a=$t(Q.transformCSS(r,s)),l=Object.entries(n).reduce(function(c,d){var f=ir(d,2),p=f[0],y=f[1];return c.push("".concat(p,'="').concat(y,'"'))&&c},[]).join(" ");o.push('<style type="text/css" data-primevue-style-id="'.concat(r,'" ').concat(l,">").concat(a,"</style>"))}return o.join("")},extend:function(e){return Yn(Yn({},this),{},{css:void 0,theme:void 0},e)}},lr=ge.extend({name:"common"});function Ut(t){"@babel/helpers - typeof";return Ut=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ut(t)}function da(t){return fr(t)||fa(t)||ur(t)||cr()}function fa(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function gn(t,e){return fr(t)||ma(t,e)||ur(t,e)||cr()}function cr(){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 ur(t,e){if(t){if(typeof t=="string")return dr(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)?dr(t,e):void 0}}function dr(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 ma(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var o,r,s,a,l=[],c=!0,d=!1;try{if(s=(n=n.call(t)).next,e===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=s.call(n)).done)&&(l.push(o.value),l.length!==e);c=!0);}catch(f){d=!0,r=f}finally{try{if(!c&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(d)throw r}}return l}}function fr(t){if(Array.isArray(t))return t}function mr(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,o)}return n}function K(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?mr(Object(n),!0).forEach(function(o){yn(t,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):mr(Object(n)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(n,o))})}return t}function yn(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 Ut(e)=="symbol"?e:e+""}function ha(t,e){if(Ut(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var o=n.call(t,e);if(Ut(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var bn={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,s,a,l,c,d,f,p,y=(e=this.pt)===null||e===void 0?void 0:e._usept,k=y?(n=this.pt)===null||n===void 0||(n=n.originalValue)===null||n===void 0?void 0:n[this.$.type.name]:void 0,C=y?(o=this.pt)===null||o===void 0||(o=o.value)===null||o===void 0?void 0:o[this.$.type.name]:this.pt;(r=C||k)===null||r===void 0||(r=r.hooks)===null||r===void 0||(s=r.onBeforeCreate)===null||s===void 0||s.call(r);var A=(a=this.$primevueConfig)===null||a===void 0||(a=a.pt)===null||a===void 0?void 0:a._usept,L=A?(l=this.$primevue)===null||l===void 0||(l=l.config)===null||l===void 0||(l=l.pt)===null||l===void 0?void 0:l.originalValue:void 0,w=A?(c=this.$primevue)===null||c===void 0||(c=c.config)===null||c===void 0||(c=c.pt)===null||c===void 0?void 0:c.value:(d=this.$primevue)===null||d===void 0||(d=d.config)===null||d===void 0?void 0:d.pt;(f=w||L)===null||f===void 0||(f=f[this.$.type.name])===null||f===void 0||(f=f.hooks)===null||f===void 0||(p=f.onBeforeCreate)===null||p===void 0||p.call(f)},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=K({name:this.$.type.name},this.$params)),this._hook("onMounted")},beforeUpdate:function(){this._hook("onBeforeUpdate")},updated:function(){this._hook("onUpdated")},beforeUnmount:function(){this._hook("onBeforeUnmount")},unmounted:function(){this._unloadScopedThemeStyles(),this._hook("onUnmounted")},methods:{_hook:function(e){if(!this.$options.hostName){var n=this._usePT(this._getPT(this.pt,this.$.type.name),this._getOptionValue,"hooks.".concat(e)),o=this._useDefaultPT(this._getOptionValue,"hooks.".concat(e));n==null||n(),o==null||o()}},_mergeProps:function(e){for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];return Fn(e)?e.apply(void 0,o):i.mergeProps.apply(void 0,o)},_loadStyles:function(){var e=this,n=function(){nt.isStyleNameLoaded("base")||(ge.loadCSS(e.$styleOptions),e._loadGlobalStyles(),nt.setLoadedStyleName("base")),e._loadThemeStyles()};n(),this._themeChangeListener(n)},_loadCoreStyles:function(){var e,n;!nt.isStyleNameLoaded((e=this.$style)===null||e===void 0?void 0:e.name)&&(n=this.$style)!==null&&n!==void 0&&n.name&&(lr.loadCSS(this.$styleOptions),this.$options.style&&this.$style.loadCSS(this.$styleOptions),nt.setLoadedStyleName(this.$style.name))},_loadGlobalStyles:function(){var e=this._useGlobalPT(this._getOptionValue,"global.css",this.$params);Z(e)&&ge.load(e,K({name:"global"},this.$styleOptions))},_loadThemeStyles:function(){var e,n;if(!this.isUnstyled){if(!Q.isStyleNameLoaded("common")){var o,r,s=((o=this.$style)===null||o===void 0||(r=o.getCommonTheme)===null||r===void 0?void 0:r.call(o))||{},a=s.primitive,l=s.semantic;ge.load(a==null?void 0:a.css,K({name:"primitive-variables"},this.$styleOptions)),ge.load(l==null?void 0:l.css,K({name:"semantic-variables"},this.$styleOptions)),ge.loadTheme(K({name:"global-style"},this.$styleOptions)),Q.setLoadedStyleName("common")}if(!Q.isStyleNameLoaded((e=this.$style)===null||e===void 0?void 0:e.name)&&(n=this.$style)!==null&&n!==void 0&&n.name){var c,d,f,p,y=((c=this.$style)===null||c===void 0||(d=c.getComponentTheme)===null||d===void 0?void 0:d.call(c))||{},k=y.css;(f=this.$style)===null||f===void 0||f.load(k,K({name:"".concat(this.$style.name,"-variables")},this.$styleOptions)),(p=this.$style)===null||p===void 0||p.loadTheme(K({name:"".concat(this.$style.name,"-style")},this.$styleOptions)),Q.setLoadedStyleName(this.$style.name)}if(!Q.isStyleNameLoaded("layer-order")){var C,A,L=(C=this.$style)===null||C===void 0||(A=C.getLayerOrderThemeCSS)===null||A===void 0?void 0:A.call(C);ge.load(L,K({name:"layer-order",first:!0},this.$styleOptions)),Q.setLoadedStyleName("layer-order")}}},_loadScopedThemeStyles:function(e){var n,o,r,s=((n=this.$style)===null||n===void 0||(o=n.getPresetTheme)===null||o===void 0?void 0:o.call(n,e,"[".concat(this.$attrSelector,"]")))||{},a=s.css,l=(r=this.$style)===null||r===void 0?void 0:r.load(a,K({name:"".concat(this.$attrSelector,"-").concat(this.$style.name)},this.$styleOptions));this.scopedStyleEl=l.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(){};nt.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 zn(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]:{},s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,a=/./g.test(o)&&!!r[o.split(".")[0]],l=this._getPropValue("ptOptions")||((e=this.$primevueConfig)===null||e===void 0?void 0:e.ptOptions)||{},c=l.mergeSections,d=c===void 0?!0:c,f=l.mergeProps,p=f===void 0?!1:f,y=s?a?this._useGlobalPT(this._getPTClassValue,o,r):this._useDefaultPT(this._getPTClassValue,o,r):void 0,k=a?void 0:this._getPTSelf(n,this._getPTClassValue,o,K(K({},r),{},{global:y||{}})),C=this._getPTDatasets(o);return d||!d&&k?p?this._mergeProps(p,y,k,C):K(K(K({},y),k),C):K(K({},k),C)},_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 i.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-",s=o==="root"&&Z((e=this.pt)===null||e===void 0?void 0:e["data-pc-section"]);return o!=="transition"&&K(K({},o==="root"&&K(yn({},"".concat(r,"name"),Ne(s?(n=this.pt)===null||n===void 0?void 0:n["data-pc-section"]:this.$.type.name)),s&&yn({},"".concat(r,"extend"),Ne(this.$.type.name)))),{},yn({},"".concat(r,"section"),Ne(o)))},_getPTClassValue:function(){var e=this._getOptionValue.apply(this,arguments);return ke(e)||Kn(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,s=function(l){var c,d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,f=r?r(l):l,p=Ne(o),y=Ne(n.$name);return(c=d?p!==y?f==null?void 0:f[p]:void 0:f==null?void 0:f[p])!==null&&c!==void 0?c:f};return e!=null&&e.hasOwnProperty("_usept")?{_usept:e._usept,originalValue:s(e.originalValue),value:s(e.value)}:s(e,!0)},_usePT:function(e,n,o,r){var s=function(A){return n(A,o,r)};if(e!=null&&e.hasOwnProperty("_usept")){var a,l=e._usept||((a=this.$primevueConfig)===null||a===void 0?void 0:a.ptOptions)||{},c=l.mergeSections,d=c===void 0?!0:c,f=l.mergeProps,p=f===void 0?!1:f,y=s(e.originalValue),k=s(e.value);return y===void 0&&k===void 0?void 0:ke(k)?k:ke(y)?y:d||!d&&k?p?this._mergeProps(p,y,k):K(K({},y),k):k}return s(e)},_useGlobalPT:function(e,n,o){return this._usePT(this.globalPT,e,n,o)},_useDefaultPT:function(e,n,o){return this._usePT(this.defaultPT,e,n,o)},ptm:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this._getPTValue(this.pt,e,K(K({},this.$params),n))},ptmi:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return i.mergeProps(this.$_attrsWithoutPT,this.ptm(e,n))},ptmo:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this._getPTValue(e,n,K({instance:this},o),!1)},cx:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.isUnstyled?void 0:this._getOptionValue(this.$style.classes,e,K(K({},this.$params),n))},sx:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(n){var r=this._getOptionValue(this.$style.inlineStyles,e,K(K({},this.$params),o)),s=this._getOptionValue(lr.inlineStyles,e,K(K({},this.$params),o));return[s,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 Ie(o,{instance:n})})},defaultPT:function(){var e,n=this;return this._getPT((e=this.$primevueConfig)===null||e===void 0?void 0:e.pt,void 0,function(o){return n._getOptionValue(o,n.$name,K({},n.$params))||Ie(o,K({},n.$params))})},isUnstyled:function(){var e;return this.unstyled!==void 0?this.unstyled:(e=this.$primevueConfig)===null||e===void 0?void 0:e.unstyled},$theme:function(){var e;return(e=this.$primevueConfig)===null||e===void 0?void 0:e.theme},$style:function(){return K(K({classes:void 0,inlineStyles:void 0,load:function(){},loadCSS:function(){},loadTheme:function(){}},(this._getHostInstance(this)||{}).$style),this.$options.style)},$styleOptions:function(){var e;return{nonce:(e=this.$primevueConfig)===null||e===void 0||(e=e.csp)===null||e===void 0?void 0:e.nonce}},$primevueConfig:function(){var e;return(e=this.$primevue)===null||e===void 0?void 0:e.config},$name:function(){return this.$options.hostName||this.$.type.name},$params:function(){var e=this._getHostInstance(this)||this.$parent;return{instance:this,props:this.$props,state:this.$data,attrs:this.$attrs,parent:{instance:e,props:e==null?void 0:e.$props,state:e==null?void 0:e.$data,attrs:e==null?void 0:e.$attrs}}},$_attrsPT:function(){return Object.entries(this.$attrs||{}).filter(function(e){var n=gn(e,1),o=n[0];return o==null?void 0:o.startsWith("pt:")}).reduce(function(e,n){var o=gn(n,2),r=o[0],s=o[1],a=r.split(":"),l=da(a),c=l.slice(1);return c==null||c.reduce(function(d,f,p,y){return!d[f]&&(d[f]=p===y.length-1?s:{}),d[f]},e),e},{})},$_attrsWithoutPT:function(){return Object.entries(this.$attrs||{}).filter(function(e){var n=gn(e,1),o=n[0];return!(o!=null&&o.startsWith("pt:"))}).reduce(function(e,n){var o=gn(n,2),r=o[0],s=o[1];return e[r]=s,e},{})},$attrSelector:function(){return pn("pc")}}},ga=`
142
+ `)},la={},ca={},ge={name:"base",css:aa,theme:sa,classes:la,inlineStyles:ca,load:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(s){return s},r=o(Ie(e,{dt:qn}));return r?Js($t(r),Yn({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 Q.transformCSS(n.name||e.name,o)})},getCommonTheme:function(e){return Q.getCommon(this.name,e)},getComponentTheme:function(e){return Q.getComponent(this.name,e)},getDirectiveTheme:function(e){return Q.getDirective(this.name,e)},getPresetTheme:function(e,n,o){return Q.getCustomPreset(this.name,e,n,o)},getLayerOrderThemeCSS:function(){return Q.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=Ie(this.css,{dt:qn}),r=$t("".concat(o).concat(e)),s=Object.entries(n).reduce(function(l,a){var c=ir(a,2),d=c[0],f=c[1];return l.push("".concat(d,'="').concat(f,'"'))&&l},[]).join(" ");return'<style type="text/css" data-primevue-style-id="'.concat(this.name,'" ').concat(s,">").concat(r,"</style>")}return""},getCommonThemeStyleSheet:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Q.getCommonStyleSheet(this.name,e,n)},getThemeStyleSheet:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=[Q.getStyleSheet(this.name,e,n)];if(this.theme){var r=this.name==="base"?"global-style":"".concat(this.name,"-style"),s=Ie(this.theme,{dt:qn}),l=$t(Q.transformCSS(r,s)),a=Object.entries(n).reduce(function(c,d){var f=ir(d,2),p=f[0],y=f[1];return c.push("".concat(p,'="').concat(y,'"'))&&c},[]).join(" ");o.push('<style type="text/css" data-primevue-style-id="'.concat(r,'" ').concat(a,">").concat(l,"</style>"))}return o.join("")},extend:function(e){return Yn(Yn({},this),{},{css:void 0,theme:void 0},e)}},lr=ge.extend({name:"common"});function Ut(t){"@babel/helpers - typeof";return Ut=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ut(t)}function ua(t){return fr(t)||da(t)||ur(t)||cr()}function da(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function gn(t,e){return fr(t)||fa(t,e)||ur(t,e)||cr()}function cr(){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 ur(t,e){if(t){if(typeof t=="string")return dr(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)?dr(t,e):void 0}}function dr(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,o=Array(e);n<e;n++)o[n]=t[n];return o}function fa(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var o,r,s,l,a=[],c=!0,d=!1;try{if(s=(n=n.call(t)).next,e===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=s.call(n)).done)&&(a.push(o.value),a.length!==e);c=!0);}catch(f){d=!0,r=f}finally{try{if(!c&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(d)throw r}}return a}}function fr(t){if(Array.isArray(t))return t}function mr(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,o)}return n}function K(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?mr(Object(n),!0).forEach(function(o){yn(t,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):mr(Object(n)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(n,o))})}return t}function yn(t,e,n){return(e=ma(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ma(t){var e=pa(t,"string");return Ut(e)=="symbol"?e:e+""}function pa(t,e){if(Ut(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var o=n.call(t,e);if(Ut(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var bn={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,s,l,a,c,d,f,p,y=(e=this.pt)===null||e===void 0?void 0:e._usept,k=y?(n=this.pt)===null||n===void 0||(n=n.originalValue)===null||n===void 0?void 0:n[this.$.type.name]:void 0,C=y?(o=this.pt)===null||o===void 0||(o=o.value)===null||o===void 0?void 0:o[this.$.type.name]:this.pt;(r=C||k)===null||r===void 0||(r=r.hooks)===null||r===void 0||(s=r.onBeforeCreate)===null||s===void 0||s.call(r);var A=(l=this.$primevueConfig)===null||l===void 0||(l=l.pt)===null||l===void 0?void 0:l._usept,L=A?(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,w=A?(c=this.$primevue)===null||c===void 0||(c=c.config)===null||c===void 0||(c=c.pt)===null||c===void 0?void 0:c.value:(d=this.$primevue)===null||d===void 0||(d=d.config)===null||d===void 0?void 0:d.pt;(f=w||L)===null||f===void 0||(f=f[this.$.type.name])===null||f===void 0||(f=f.hooks)===null||f===void 0||(p=f.onBeforeCreate)===null||p===void 0||p.call(f)},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=K({name:this.$.type.name},this.$params)),this._hook("onMounted")},beforeUpdate:function(){this._hook("onBeforeUpdate")},updated:function(){this._hook("onUpdated")},beforeUnmount:function(){this._hook("onBeforeUnmount")},unmounted:function(){this._unloadScopedThemeStyles(),this._hook("onUnmounted")},methods:{_hook:function(e){if(!this.$options.hostName){var n=this._usePT(this._getPT(this.pt,this.$.type.name),this._getOptionValue,"hooks.".concat(e)),o=this._useDefaultPT(this._getOptionValue,"hooks.".concat(e));n==null||n(),o==null||o()}},_mergeProps:function(e){for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];return Fn(e)?e.apply(void 0,o):i.mergeProps.apply(void 0,o)},_loadStyles:function(){var e=this,n=function(){nt.isStyleNameLoaded("base")||(ge.loadCSS(e.$styleOptions),e._loadGlobalStyles(),nt.setLoadedStyleName("base")),e._loadThemeStyles()};n(),this._themeChangeListener(n)},_loadCoreStyles:function(){var e,n;!nt.isStyleNameLoaded((e=this.$style)===null||e===void 0?void 0:e.name)&&(n=this.$style)!==null&&n!==void 0&&n.name&&(lr.loadCSS(this.$styleOptions),this.$options.style&&this.$style.loadCSS(this.$styleOptions),nt.setLoadedStyleName(this.$style.name))},_loadGlobalStyles:function(){var e=this._useGlobalPT(this._getOptionValue,"global.css",this.$params);Z(e)&&ge.load(e,K({name:"global"},this.$styleOptions))},_loadThemeStyles:function(){var e,n;if(!this.isUnstyled){if(!Q.isStyleNameLoaded("common")){var o,r,s=((o=this.$style)===null||o===void 0||(r=o.getCommonTheme)===null||r===void 0?void 0:r.call(o))||{},l=s.primitive,a=s.semantic;ge.load(l==null?void 0:l.css,K({name:"primitive-variables"},this.$styleOptions)),ge.load(a==null?void 0:a.css,K({name:"semantic-variables"},this.$styleOptions)),ge.loadTheme(K({name:"global-style"},this.$styleOptions)),Q.setLoadedStyleName("common")}if(!Q.isStyleNameLoaded((e=this.$style)===null||e===void 0?void 0:e.name)&&(n=this.$style)!==null&&n!==void 0&&n.name){var c,d,f,p,y=((c=this.$style)===null||c===void 0||(d=c.getComponentTheme)===null||d===void 0?void 0:d.call(c))||{},k=y.css;(f=this.$style)===null||f===void 0||f.load(k,K({name:"".concat(this.$style.name,"-variables")},this.$styleOptions)),(p=this.$style)===null||p===void 0||p.loadTheme(K({name:"".concat(this.$style.name,"-style")},this.$styleOptions)),Q.setLoadedStyleName(this.$style.name)}if(!Q.isStyleNameLoaded("layer-order")){var C,A,L=(C=this.$style)===null||C===void 0||(A=C.getLayerOrderThemeCSS)===null||A===void 0?void 0:A.call(C);ge.load(L,K({name:"layer-order",first:!0},this.$styleOptions)),Q.setLoadedStyleName("layer-order")}}},_loadScopedThemeStyles:function(e){var n,o,r,s=((n=this.$style)===null||n===void 0||(o=n.getPresetTheme)===null||o===void 0?void 0:o.call(n,e,"[".concat(this.$attrSelector,"]")))||{},l=s.css,a=(r=this.$style)===null||r===void 0?void 0:r.load(l,K({name:"".concat(this.$attrSelector,"-").concat(this.$style.name)},this.$styleOptions));this.scopedStyleEl=a.el},_unloadScopedThemeStyles:function(){var e;(e=this.scopedStyleEl)===null||e===void 0||(e=e.value)===null||e===void 0||e.remove()},_themeChangeListener:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(){};nt.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 zn(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]:{},s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,l=/./g.test(o)&&!!r[o.split(".")[0]],a=this._getPropValue("ptOptions")||((e=this.$primevueConfig)===null||e===void 0?void 0:e.ptOptions)||{},c=a.mergeSections,d=c===void 0?!0:c,f=a.mergeProps,p=f===void 0?!1:f,y=s?l?this._useGlobalPT(this._getPTClassValue,o,r):this._useDefaultPT(this._getPTClassValue,o,r):void 0,k=l?void 0:this._getPTSelf(n,this._getPTClassValue,o,K(K({},r),{},{global:y||{}})),C=this._getPTDatasets(o);return d||!d&&k?p?this._mergeProps(p,y,k,C):K(K(K({},y),k),C):K(K({},k),C)},_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 i.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-",s=o==="root"&&Z((e=this.pt)===null||e===void 0?void 0:e["data-pc-section"]);return o!=="transition"&&K(K({},o==="root"&&K(yn({},"".concat(r,"name"),Ne(s?(n=this.pt)===null||n===void 0?void 0:n["data-pc-section"]:this.$.type.name)),s&&yn({},"".concat(r,"extend"),Ne(this.$.type.name)))),{},yn({},"".concat(r,"section"),Ne(o)))},_getPTClassValue:function(){var e=this._getOptionValue.apply(this,arguments);return ke(e)||Kn(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,s=function(a){var c,d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,f=r?r(a):a,p=Ne(o),y=Ne(n.$name);return(c=d?p!==y?f==null?void 0:f[p]:void 0:f==null?void 0:f[p])!==null&&c!==void 0?c:f};return e!=null&&e.hasOwnProperty("_usept")?{_usept:e._usept,originalValue:s(e.originalValue),value:s(e.value)}:s(e,!0)},_usePT:function(e,n,o,r){var s=function(A){return n(A,o,r)};if(e!=null&&e.hasOwnProperty("_usept")){var l,a=e._usept||((l=this.$primevueConfig)===null||l===void 0?void 0:l.ptOptions)||{},c=a.mergeSections,d=c===void 0?!0:c,f=a.mergeProps,p=f===void 0?!1:f,y=s(e.originalValue),k=s(e.value);return y===void 0&&k===void 0?void 0:ke(k)?k:ke(y)?y:d||!d&&k?p?this._mergeProps(p,y,k):K(K({},y),k):k}return s(e)},_useGlobalPT:function(e,n,o){return this._usePT(this.globalPT,e,n,o)},_useDefaultPT:function(e,n,o){return this._usePT(this.defaultPT,e,n,o)},ptm:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this._getPTValue(this.pt,e,K(K({},this.$params),n))},ptmi:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return i.mergeProps(this.$_attrsWithoutPT,this.ptm(e,n))},ptmo:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this._getPTValue(e,n,K({instance:this},o),!1)},cx:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.isUnstyled?void 0:this._getOptionValue(this.$style.classes,e,K(K({},this.$params),n))},sx:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(n){var r=this._getOptionValue(this.$style.inlineStyles,e,K(K({},this.$params),o)),s=this._getOptionValue(lr.inlineStyles,e,K(K({},this.$params),o));return[s,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 Ie(o,{instance:n})})},defaultPT:function(){var e,n=this;return this._getPT((e=this.$primevueConfig)===null||e===void 0?void 0:e.pt,void 0,function(o){return n._getOptionValue(o,n.$name,K({},n.$params))||Ie(o,K({},n.$params))})},isUnstyled:function(){var e;return this.unstyled!==void 0?this.unstyled:(e=this.$primevueConfig)===null||e===void 0?void 0:e.unstyled},$theme:function(){var e;return(e=this.$primevueConfig)===null||e===void 0?void 0:e.theme},$style:function(){return K(K({classes:void 0,inlineStyles:void 0,load:function(){},loadCSS:function(){},loadTheme:function(){}},(this._getHostInstance(this)||{}).$style),this.$options.style)},$styleOptions:function(){var e;return{nonce:(e=this.$primevueConfig)===null||e===void 0||(e=e.csp)===null||e===void 0?void 0:e.nonce}},$primevueConfig:function(){var e;return(e=this.$primevue)===null||e===void 0?void 0:e.config},$name:function(){return this.$options.hostName||this.$.type.name},$params:function(){var e=this._getHostInstance(this)||this.$parent;return{instance:this,props:this.$props,state:this.$data,attrs:this.$attrs,parent:{instance:e,props:e==null?void 0:e.$props,state:e==null?void 0:e.$data,attrs:e==null?void 0:e.$attrs}}},$_attrsPT:function(){return Object.entries(this.$attrs||{}).filter(function(e){var n=gn(e,1),o=n[0];return o==null?void 0:o.startsWith("pt:")}).reduce(function(e,n){var o=gn(n,2),r=o[0],s=o[1],l=r.split(":"),a=ua(l),c=a.slice(1);return c==null||c.reduce(function(d,f,p,y){return!d[f]&&(d[f]=p===y.length-1?s:{}),d[f]},e),e},{})},$_attrsWithoutPT:function(){return Object.entries(this.$attrs||{}).filter(function(e){var n=gn(e,1),o=n[0];return!(o!=null&&o.startsWith("pt:"))}).reduce(function(e,n){var o=gn(n,2),r=o[0],s=o[1];return e[r]=s,e},{})},$attrSelector:function(){return pn("pc")}}},ha=`
144
144
  .p-icon {
145
145
  display: inline-block;
146
146
  vertical-align: baseline;
@@ -172,7 +172,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
172
172
  transform: rotate(359deg);
173
173
  }
174
174
  }
175
- `,ya=ge.extend({name:"baseicon",css:ga});function Vt(t){"@babel/helpers - typeof";return Vt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Vt(t)}function 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 hr(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){ba(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 ba(t,e,n){return(e=va(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function va(t){var e=wa(t,"string");return Vt(e)=="symbol"?e:e+""}function wa(t,e){if(Vt(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var o=n.call(t,e);if(Vt(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var gr={name:"BaseIcon",extends:bn,props:{label:{type:String,default:void 0},spin:{type:Boolean,default:!1}},style:ya,provide:function(){return{$pcIcon:this,$parentInstance:this}},methods:{pti:function(){var e=at(this.label);return hr(hr({},!this.isUnstyled&&{class:["p-icon",{"p-icon-spin":this.spin}]}),{},{role:e?void 0:"img","aria-label":e?void 0:this.label,"aria-hidden":e})}}},Xn={name:"ChevronDownIcon",extends:gr},ka=i.createElementVNode("path",{d:"M7.01744 10.398C6.91269 10.3985 6.8089 10.378 6.71215 10.3379C6.61541 10.2977 6.52766 10.2386 6.45405 10.1641L1.13907 4.84913C1.03306 4.69404 0.985221 4.5065 1.00399 4.31958C1.02276 4.13266 1.10693 3.95838 1.24166 3.82747C1.37639 3.69655 1.55301 3.61742 1.74039 3.60402C1.92777 3.59062 2.11386 3.64382 2.26584 3.75424L7.01744 8.47394L11.769 3.75424C11.9189 3.65709 12.097 3.61306 12.2748 3.62921C12.4527 3.64535 12.6199 3.72073 12.7498 3.84328C12.8797 3.96582 12.9647 4.12842 12.9912 4.30502C13.0177 4.48162 12.9841 4.662 12.8958 4.81724L7.58083 10.1322C7.50996 10.2125 7.42344 10.2775 7.32656 10.3232C7.22968 10.3689 7.12449 10.3944 7.01744 10.398Z",fill:"currentColor"},null,-1),_a=[ka];function Sa(t,e,n,o,r,s){return i.openBlock(),i.createElementBlock("svg",i.mergeProps({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.pti()),_a,16)}Xn.render=Sa;var Zn={name:"ChevronRightIcon",extends:gr},Ca=i.createElementVNode("path",{d:"M4.38708 13C4.28408 13.0005 4.18203 12.9804 4.08691 12.9409C3.99178 12.9014 3.9055 12.8433 3.83313 12.7701C3.68634 12.6231 3.60388 12.4238 3.60388 12.2161C3.60388 12.0084 3.68634 11.8091 3.83313 11.6622L8.50507 6.99022L3.83313 2.31827C3.69467 2.16968 3.61928 1.97313 3.62287 1.77005C3.62645 1.56698 3.70872 1.37322 3.85234 1.22959C3.99596 1.08597 4.18972 1.00371 4.3928 1.00012C4.59588 0.996539 4.79242 1.07192 4.94102 1.21039L10.1669 6.43628C10.3137 6.58325 10.3962 6.78249 10.3962 6.99022C10.3962 7.19795 10.3137 7.39718 10.1669 7.54416L4.94102 12.7701C4.86865 12.8433 4.78237 12.9014 4.68724 12.9409C4.59212 12.9804 4.49007 13.0005 4.38708 13Z",fill:"currentColor"},null,-1),Ea=[Ca];function Ia(t,e,n,o,r,s){return i.openBlock(),i.createElementBlock("svg",i.mergeProps({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.pti()),Ea,16)}Zn.render=Ia;var Ta=function(e){var n=e.dt;return`
175
+ `,ga=ge.extend({name:"baseicon",css:ha});function Vt(t){"@babel/helpers - typeof";return Vt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Vt(t)}function 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 hr(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){ya(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 ya(t,e,n){return(e=ba(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ba(t){var e=va(t,"string");return Vt(e)=="symbol"?e:e+""}function va(t,e){if(Vt(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var o=n.call(t,e);if(Vt(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var gr={name:"BaseIcon",extends:bn,props:{label:{type:String,default:void 0},spin:{type:Boolean,default:!1}},style:ga,provide:function(){return{$pcIcon:this,$parentInstance:this}},methods:{pti:function(){var e=at(this.label);return hr(hr({},!this.isUnstyled&&{class:["p-icon",{"p-icon-spin":this.spin}]}),{},{role:e?void 0:"img","aria-label":e?void 0:this.label,"aria-hidden":e})}}},Xn={name:"ChevronDownIcon",extends:gr},wa=i.createElementVNode("path",{d:"M7.01744 10.398C6.91269 10.3985 6.8089 10.378 6.71215 10.3379C6.61541 10.2977 6.52766 10.2386 6.45405 10.1641L1.13907 4.84913C1.03306 4.69404 0.985221 4.5065 1.00399 4.31958C1.02276 4.13266 1.10693 3.95838 1.24166 3.82747C1.37639 3.69655 1.55301 3.61742 1.74039 3.60402C1.92777 3.59062 2.11386 3.64382 2.26584 3.75424L7.01744 8.47394L11.769 3.75424C11.9189 3.65709 12.097 3.61306 12.2748 3.62921C12.4527 3.64535 12.6199 3.72073 12.7498 3.84328C12.8797 3.96582 12.9647 4.12842 12.9912 4.30502C13.0177 4.48162 12.9841 4.662 12.8958 4.81724L7.58083 10.1322C7.50996 10.2125 7.42344 10.2775 7.32656 10.3232C7.22968 10.3689 7.12449 10.3944 7.01744 10.398Z",fill:"currentColor"},null,-1),ka=[wa];function _a(t,e,n,o,r,s){return i.openBlock(),i.createElementBlock("svg",i.mergeProps({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.pti()),ka,16)}Xn.render=_a;var Zn={name:"ChevronRightIcon",extends:gr},Sa=i.createElementVNode("path",{d:"M4.38708 13C4.28408 13.0005 4.18203 12.9804 4.08691 12.9409C3.99178 12.9014 3.9055 12.8433 3.83313 12.7701C3.68634 12.6231 3.60388 12.4238 3.60388 12.2161C3.60388 12.0084 3.68634 11.8091 3.83313 11.6622L8.50507 6.99022L3.83313 2.31827C3.69467 2.16968 3.61928 1.97313 3.62287 1.77005C3.62645 1.56698 3.70872 1.37322 3.85234 1.22959C3.99596 1.08597 4.18972 1.00371 4.3928 1.00012C4.59588 0.996539 4.79242 1.07192 4.94102 1.21039L10.1669 6.43628C10.3137 6.58325 10.3962 6.78249 10.3962 6.99022C10.3962 7.19795 10.3137 7.39718 10.1669 7.54416L4.94102 12.7701C4.86865 12.8433 4.78237 12.9014 4.68724 12.9409C4.59212 12.9804 4.49007 13.0005 4.38708 13Z",fill:"currentColor"},null,-1),Ca=[Sa];function Ea(t,e,n,o,r,s){return i.openBlock(),i.createElementBlock("svg",i.mergeProps({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.pti()),Ca,16)}Zn.render=Ea;var Ia=function(e){var n=e.dt;return`
176
176
  .p-panelmenu {
177
177
  display: flex;
178
178
  flex-direction: column;
@@ -315,8 +315,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
315
315
  .p-panelmenu-item:not(.p-disabled) > .p-panelmenu-item-content:hover .p-panelmenu-submenu-icon {
316
316
  color: `).concat(n("panelmenu.submenu.icon.focus.color"),`;
317
317
  }
318
- `)},Aa={root:"p-panelmenu p-component",panel:"p-panelmenu-panel",header:function(e){var n=e.instance,o=e.item;return["p-panelmenu-header",{"p-panelmenu-header-active":n.isItemActive(o)&&!!o.items,"p-disabled":n.isItemDisabled(o)}]},headerContent:"p-panelmenu-header-content",headerLink:"p-panelmenu-header-link",headerIcon:"p-panelmenu-header-icon",headerLabel:"p-panelmenu-header-label",contentContainer:"p-panelmenu-content-container",content:"p-panelmenu-content",rootList:"p-panelmenu-root-list",item:function(e){var n=e.instance,o=e.processedItem;return["p-panelmenu-item",{"p-focus":n.isItemFocused(o),"p-disabled":n.isItemDisabled(o)}]},itemContent:"p-panelmenu-item-content",itemLink:"p-panelmenu-item-link",itemIcon:"p-panelmenu-item-icon",itemLabel:"p-panelmenu-item-label",submenuIcon:"p-panelmenu-submenu-icon",submenu:"p-panelmenu-submenu",separator:"p-menuitem-separator"},Pa=ge.extend({name:"panelmenu",theme:Ta,classes:Aa}),yr=Ko();function Ht(t){"@babel/helpers - typeof";return Ht=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},Ht(t)}function br(t,e){return $a(t)||Oa(t,e)||xa(t,e)||La()}function La(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
319
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function xa(t,e){if(t){if(typeof t=="string")return vr(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)?vr(t,e):void 0}}function vr(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 Oa(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var o,r,s,a,l=[],c=!0,d=!1;try{if(s=(n=n.call(t)).next,e!==0)for(;!(c=(o=s.call(n)).done)&&(l.push(o.value),l.length!==e);c=!0);}catch(f){d=!0,r=f}finally{try{if(!c&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(d)throw r}}return l}}function $a(t){if(Array.isArray(t))return t}function wr(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 q(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?wr(Object(n),!0).forEach(function(o){Jn(t,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):wr(Object(n)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(n,o))})}return t}function Jn(t,e,n){return(e=Ba(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Ba(t){var e=Na(t,"string");return Ht(e)=="symbol"?e:e+""}function Na(t,e){if(Ht(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var o=n.call(t,e);if(Ht(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var j={_getMeta:function(){return[tt(arguments.length<=0?void 0:arguments[0])||arguments.length<=0?void 0:arguments[0],Ie(tt(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,s;return(o=(e==null||(r=e.instance)===null||r===void 0?void 0:r.$primevue)||(n==null||(s=n.ctx)===null||s===void 0||(s=s.appContext)===null||s===void 0||(s=s.config)===null||s===void 0||(s=s.globalProperties)===null||s===void 0?void 0:s.$primevue))===null||o===void 0?void 0:o.config},_getOptionValue:zn,_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]:{},s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"",a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},l=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,c=function(){var S=j._getOptionValue.apply(j,arguments);return ke(S)||Kn(S)?{class:S}:S},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)||{},f=d.mergeSections,p=f===void 0?!0:f,y=d.mergeProps,k=y===void 0?!1:y,C=l?j._useDefaultPT(o,o.defaultPT(),c,s,a):void 0,A=j._usePT(o,j._getPT(r,o.$name),c,s,q(q({},a),{},{global:C||{}})),L=j._getPTDatasets(o,s);return p||!p&&A?k?j._mergeProps(o,k,C,A,L):q(q(q({},C),A),L):q(q({},A),L)},_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 q(q({},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(a){var l,c=o?o(a):a,d=Ne(n);return(l=c==null?void 0:c[d])!==null&&l!==void 0?l:c};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,s=arguments.length>4?arguments[4]:void 0,a=function(L){return o(L,r,s)};if(n!=null&&n.hasOwnProperty("_usept")){var l,c=n._usept||((l=e.$primevueConfig)===null||l===void 0?void 0:l.ptOptions)||{},d=c.mergeSections,f=d===void 0?!0:d,p=c.mergeProps,y=p===void 0?!1:p,k=a(n.originalValue),C=a(n.value);return k===void 0&&C===void 0?void 0:ke(C)?C:ke(k)?k:f||!f&&C?y?j._mergeProps(e,y,k,C):q(q({},k),C):C}return a(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,s=arguments.length>4?arguments[4]:void 0;return j._usePT(e,n,o,r,s)},_loadStyles:function(e,n,o){var r,s=j._getConfig(n,o),a={nonce:s==null||(r=s.csp)===null||r===void 0?void 0:r.nonce};j._loadCoreStyles(e.$instance,a),j._loadThemeStyles(e.$instance,a),j._loadScopedThemeStyles(e.$instance,a),j._themeChangeListener(function(){return j._loadThemeStyles(e.$instance,a)})},_loadCoreStyles:function(){var e,n,o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;if(!nt.isStyleNameLoaded((e=o.$style)===null||e===void 0?void 0:e.name)&&(n=o.$style)!==null&&n!==void 0&&n.name){var s;ge.loadCSS(r),o.isUnstyled()&&((s=o.$style)===null||s===void 0||s.loadCSS(r)),nt.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(!Q.isStyleNameLoaded("common")){var s,a,l=((s=o.$style)===null||s===void 0||(a=s.getCommonTheme)===null||a===void 0?void 0:a.call(s))||{},c=l.primitive,d=l.semantic;ge.load(c==null?void 0:c.css,q({name:"primitive-variables"},r)),ge.load(d==null?void 0:d.css,q({name:"semantic-variables"},r)),ge.loadTheme(q({name:"global-style"},r)),Q.setLoadedStyleName("common")}if(!Q.isStyleNameLoaded((e=o.$style)===null||e===void 0?void 0:e.name)&&(n=o.$style)!==null&&n!==void 0&&n.name){var f,p,y,k,C=((f=o.$style)===null||f===void 0||(p=f.getDirectiveTheme)===null||p===void 0?void 0:p.call(f))||{},A=C.css;(y=o.$style)===null||y===void 0||y.load(A,q({name:"".concat(o.$style.name,"-variables")},r)),(k=o.$style)===null||k===void 0||k.loadTheme(q({name:"".concat(o.$style.name,"-style")},r)),Q.setLoadedStyleName(o.$style.name)}if(!Q.isStyleNameLoaded("layer-order")){var L,w,S=(L=o.$style)===null||L===void 0||(w=L.getLayerOrderThemeCSS)===null||w===void 0?void 0:w.call(L);ge.load(S,q({name:"layer-order",first:!0},r)),Q.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,s,a,l=((r=e.$style)===null||r===void 0||(s=r.getPresetTheme)===null||s===void 0?void 0:s.call(r,o,"[".concat(e.$attrSelector,"]")))||{},c=l.css,d=(a=e.$style)===null||a===void 0?void 0:a.load(c,q({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(){};nt.clearLoadedStyleNames(),qe.on("theme:change",e)},_hook:function(e,n,o,r,s,a){var l,c,d="on".concat(Ds(n)),f=j._getConfig(r,s),p=o==null?void 0:o.$instance,y=j._usePT(p,j._getPT(r==null||(l=r.value)===null||l===void 0?void 0:l.pt,e),j._getOptionValue,"hooks.".concat(d)),k=j._useDefaultPT(p,f==null||(c=f.pt)===null||c===void 0||(c=c.directives)===null||c===void 0?void 0:c[e],j._getOptionValue,"hooks.".concat(d)),C={el:o,binding:r,vnode:s,prevVnode:a};y==null||y(p,C),k==null||k(p,C)},_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 Fn(e)?e.apply(void 0,o):i.mergeProps.apply(void 0,o)},_extend:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=function(a,l,c,d,f){var p,y,k;l._$instances=l._$instances||{};var C=j._getConfig(c,d),A=l._$instances[e]||{},L=at(A)?q(q({},n),n==null?void 0:n.methods):{};l._$instances[e]=q(q({},A),{},{$name:e,$host:l,$binding:c,$modifiers:c==null?void 0:c.modifiers,$value:c==null?void 0:c.value,$el:A.$el||l||void 0,$style:q({classes:void 0,inlineStyles:void 0,load:function(){},loadCSS:function(){},loadTheme:function(){}},n==null?void 0:n.style),$primevueConfig:C,$attrSelector:l.$attrSelector,defaultPT:function(){return j._getPT(C==null?void 0:C.pt,void 0,function(S){var M;return S==null||(M=S.directives)===null||M===void 0?void 0:M[e]})},isUnstyled:function(){var S,M;return((S=l.$instance)===null||S===void 0||(S=S.$binding)===null||S===void 0||(S=S.value)===null||S===void 0?void 0:S.unstyled)!==void 0?(M=l.$instance)===null||M===void 0||(M=M.$binding)===null||M===void 0||(M=M.value)===null||M===void 0?void 0:M.unstyled:C==null?void 0:C.unstyled},theme:function(){var S;return(S=l.$instance)===null||S===void 0||(S=S.$primevueConfig)===null||S===void 0?void 0:S.theme},preset:function(){var S;return(S=l.$instance)===null||S===void 0||(S=S.$binding)===null||S===void 0||(S=S.value)===null||S===void 0?void 0:S.dt},ptm:function(){var S,M=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",U=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return j._getPTValue(l.$instance,(S=l.$instance)===null||S===void 0||(S=S.$binding)===null||S===void 0||(S=S.value)===null||S===void 0?void 0:S.pt,M,q({},U))},ptmo:function(){var S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",U=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return j._getPTValue(l.$instance,S,M,U,!1)},cx:function(){var S,M,U=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",G=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return(S=l.$instance)!==null&&S!==void 0&&S.isUnstyled()?void 0:j._getOptionValue((M=l.$instance)===null||M===void 0||(M=M.$style)===null||M===void 0?void 0:M.classes,U,q({},G))},sx:function(){var S,M=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",U=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,G=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return U?j._getOptionValue((S=l.$instance)===null||S===void 0||(S=S.$style)===null||S===void 0?void 0:S.inlineStyles,M,q({},G)):void 0}},L),l.$instance=l._$instances[e],(p=(y=l.$instance)[a])===null||p===void 0||p.call(y,l,c,d,f),l["$".concat(e)]=l.$instance,j._hook(e,a,l,c,d,f),l.$pd||(l.$pd={}),l.$pd[e]=q(q({},(k=l.$pd)===null||k===void 0?void 0:k[e]),{},{name:e,instance:l.$instance})},r=function(a){var l,c,d,f,p,y=(l=a.$instance)===null||l===void 0?void 0:l.watch;y==null||(c=y.config)===null||c===void 0||c.call(a.$instance,(d=a.$instance)===null||d===void 0?void 0:d.$primevueConfig),yr.on("config:change",function(k){var C,A=k.newValue,L=k.oldValue;return y==null||(C=y.config)===null||C===void 0?void 0:C.call(a.$instance,A,L)}),y==null||(f=y["config.ripple"])===null||f===void 0||f.call(a.$instance,(p=a.$instance)===null||p===void 0||(p=p.$primevueConfig)===null||p===void 0?void 0:p.ripple),yr.on("config:ripple:change",function(k){var C,A=k.newValue,L=k.oldValue;return y==null||(C=y["config.ripple"])===null||C===void 0?void 0:C.call(a.$instance,A,L)})};return{created:function(a,l,c,d){o("created",a,l,c,d)},beforeMount:function(a,l,c,d){a.$attrSelector=pn("pd"),j._loadStyles(a,l,c),o("beforeMount",a,l,c,d),r(a)},mounted:function(a,l,c,d){j._loadStyles(a,l,c),o("mounted",a,l,c,d)},beforeUpdate:function(a,l,c,d){o("beforeUpdate",a,l,c,d)},updated:function(a,l,c,d){j._loadStyles(a,l,c),o("updated",a,l,c,d)},beforeUnmount:function(a,l,c,d){o("beforeUnmount",a,l,c,d)},unmounted:function(a,l,c,d){var f;(f=a.$instance)===null||f===void 0||(f=f.scopedStyleEl)===null||f===void 0||(f=f.value)===null||f===void 0||f.remove(),o("unmounted",a,l,c,d)}}},extend:function(){var e=j._getMeta.apply(j,arguments),n=br(e,2),o=n[0],r=n[1];return q({extend:function(){var a=j._getMeta.apply(j,arguments),l=br(a,2),c=l[0],d=l[1];return j.extend(c,q(q(q({},r),r==null?void 0:r.methods),d))}},j._extend(o,r))}},Ma=function(e){var n=e.dt;return`
318
+ `)},Ta={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"},Aa=ge.extend({name:"panelmenu",theme:Ia,classes:Ta}),yr=Ko();function Ht(t){"@babel/helpers - typeof";return Ht=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},Ht(t)}function br(t,e){return Oa(t)||xa(t,e)||La(t,e)||Pa()}function Pa(){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 La(t,e){if(t){if(typeof t=="string")return vr(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)?vr(t,e):void 0}}function vr(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 xa(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var o,r,s,l,a=[],c=!0,d=!1;try{if(s=(n=n.call(t)).next,e!==0)for(;!(c=(o=s.call(n)).done)&&(a.push(o.value),a.length!==e);c=!0);}catch(f){d=!0,r=f}finally{try{if(!c&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(d)throw r}}return a}}function Oa(t){if(Array.isArray(t))return t}function wr(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 q(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?wr(Object(n),!0).forEach(function(o){Jn(t,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):wr(Object(n)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(n,o))})}return t}function Jn(t,e,n){return(e=$a(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function $a(t){var e=Ba(t,"string");return Ht(e)=="symbol"?e:e+""}function Ba(t,e){if(Ht(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var o=n.call(t,e);if(Ht(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var j={_getMeta:function(){return[tt(arguments.length<=0?void 0:arguments[0])||arguments.length<=0?void 0:arguments[0],Ie(tt(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,s;return(o=(e==null||(r=e.instance)===null||r===void 0?void 0:r.$primevue)||(n==null||(s=n.ctx)===null||s===void 0||(s=s.appContext)===null||s===void 0||(s=s.config)===null||s===void 0||(s=s.globalProperties)===null||s===void 0?void 0:s.$primevue))===null||o===void 0?void 0:o.config},_getOptionValue:zn,_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]:{},s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"",l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,c=function(){var S=j._getOptionValue.apply(j,arguments);return ke(S)||Kn(S)?{class:S}:S},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)||{},f=d.mergeSections,p=f===void 0?!0:f,y=d.mergeProps,k=y===void 0?!1:y,C=a?j._useDefaultPT(o,o.defaultPT(),c,s,l):void 0,A=j._usePT(o,j._getPT(r,o.$name),c,s,q(q({},l),{},{global:C||{}})),L=j._getPTDatasets(o,s);return p||!p&&A?k?j._mergeProps(o,k,C,A,L):q(q(q({},C),A),L):q(q({},A),L)},_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 q(q({},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(l){var a,c=o?o(l):l,d=Ne(n);return(a=c==null?void 0:c[d])!==null&&a!==void 0?a:c};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,s=arguments.length>4?arguments[4]:void 0,l=function(L){return o(L,r,s)};if(n!=null&&n.hasOwnProperty("_usept")){var a,c=n._usept||((a=e.$primevueConfig)===null||a===void 0?void 0:a.ptOptions)||{},d=c.mergeSections,f=d===void 0?!0:d,p=c.mergeProps,y=p===void 0?!1:p,k=l(n.originalValue),C=l(n.value);return k===void 0&&C===void 0?void 0:ke(C)?C:ke(k)?k:f||!f&&C?y?j._mergeProps(e,y,k,C):q(q({},k),C):C}return l(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,s=arguments.length>4?arguments[4]:void 0;return j._usePT(e,n,o,r,s)},_loadStyles:function(e,n,o){var r,s=j._getConfig(n,o),l={nonce:s==null||(r=s.csp)===null||r===void 0?void 0:r.nonce};j._loadCoreStyles(e.$instance,l),j._loadThemeStyles(e.$instance,l),j._loadScopedThemeStyles(e.$instance,l),j._themeChangeListener(function(){return j._loadThemeStyles(e.$instance,l)})},_loadCoreStyles:function(){var e,n,o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;if(!nt.isStyleNameLoaded((e=o.$style)===null||e===void 0?void 0:e.name)&&(n=o.$style)!==null&&n!==void 0&&n.name){var s;ge.loadCSS(r),o.isUnstyled()&&((s=o.$style)===null||s===void 0||s.loadCSS(r)),nt.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(!Q.isStyleNameLoaded("common")){var s,l,a=((s=o.$style)===null||s===void 0||(l=s.getCommonTheme)===null||l===void 0?void 0:l.call(s))||{},c=a.primitive,d=a.semantic;ge.load(c==null?void 0:c.css,q({name:"primitive-variables"},r)),ge.load(d==null?void 0:d.css,q({name:"semantic-variables"},r)),ge.loadTheme(q({name:"global-style"},r)),Q.setLoadedStyleName("common")}if(!Q.isStyleNameLoaded((e=o.$style)===null||e===void 0?void 0:e.name)&&(n=o.$style)!==null&&n!==void 0&&n.name){var f,p,y,k,C=((f=o.$style)===null||f===void 0||(p=f.getDirectiveTheme)===null||p===void 0?void 0:p.call(f))||{},A=C.css;(y=o.$style)===null||y===void 0||y.load(A,q({name:"".concat(o.$style.name,"-variables")},r)),(k=o.$style)===null||k===void 0||k.loadTheme(q({name:"".concat(o.$style.name,"-style")},r)),Q.setLoadedStyleName(o.$style.name)}if(!Q.isStyleNameLoaded("layer-order")){var L,w,S=(L=o.$style)===null||L===void 0||(w=L.getLayerOrderThemeCSS)===null||w===void 0?void 0:w.call(L);ge.load(S,q({name:"layer-order",first:!0},r)),Q.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,s,l,a=((r=e.$style)===null||r===void 0||(s=r.getPresetTheme)===null||s===void 0?void 0:s.call(r,o,"[".concat(e.$attrSelector,"]")))||{},c=a.css,d=(l=e.$style)===null||l===void 0?void 0:l.load(c,q({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(){};nt.clearLoadedStyleNames(),qe.on("theme:change",e)},_hook:function(e,n,o,r,s,l){var a,c,d="on".concat(Ms(n)),f=j._getConfig(r,s),p=o==null?void 0:o.$instance,y=j._usePT(p,j._getPT(r==null||(a=r.value)===null||a===void 0?void 0:a.pt,e),j._getOptionValue,"hooks.".concat(d)),k=j._useDefaultPT(p,f==null||(c=f.pt)===null||c===void 0||(c=c.directives)===null||c===void 0?void 0:c[e],j._getOptionValue,"hooks.".concat(d)),C={el:o,binding:r,vnode:s,prevVnode:l};y==null||y(p,C),k==null||k(p,C)},_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 Fn(e)?e.apply(void 0,o):i.mergeProps.apply(void 0,o)},_extend:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=function(l,a,c,d,f){var p,y,k;a._$instances=a._$instances||{};var C=j._getConfig(c,d),A=a._$instances[e]||{},L=at(A)?q(q({},n),n==null?void 0:n.methods):{};a._$instances[e]=q(q({},A),{},{$name:e,$host:a,$binding:c,$modifiers:c==null?void 0:c.modifiers,$value:c==null?void 0:c.value,$el:A.$el||a||void 0,$style:q({classes:void 0,inlineStyles:void 0,load:function(){},loadCSS:function(){},loadTheme:function(){}},n==null?void 0:n.style),$primevueConfig:C,$attrSelector:a.$attrSelector,defaultPT:function(){return j._getPT(C==null?void 0:C.pt,void 0,function(S){var M;return S==null||(M=S.directives)===null||M===void 0?void 0:M[e]})},isUnstyled:function(){var S,M;return((S=a.$instance)===null||S===void 0||(S=S.$binding)===null||S===void 0||(S=S.value)===null||S===void 0?void 0:S.unstyled)!==void 0?(M=a.$instance)===null||M===void 0||(M=M.$binding)===null||M===void 0||(M=M.value)===null||M===void 0?void 0:M.unstyled:C==null?void 0:C.unstyled},theme:function(){var S;return(S=a.$instance)===null||S===void 0||(S=S.$primevueConfig)===null||S===void 0?void 0:S.theme},preset:function(){var S;return(S=a.$instance)===null||S===void 0||(S=S.$binding)===null||S===void 0||(S=S.value)===null||S===void 0?void 0:S.dt},ptm:function(){var S,M=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",U=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return j._getPTValue(a.$instance,(S=a.$instance)===null||S===void 0||(S=S.$binding)===null||S===void 0||(S=S.value)===null||S===void 0?void 0:S.pt,M,q({},U))},ptmo:function(){var S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",U=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return j._getPTValue(a.$instance,S,M,U,!1)},cx:function(){var S,M,U=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",G=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return(S=a.$instance)!==null&&S!==void 0&&S.isUnstyled()?void 0:j._getOptionValue((M=a.$instance)===null||M===void 0||(M=M.$style)===null||M===void 0?void 0:M.classes,U,q({},G))},sx:function(){var S,M=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",U=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,G=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return U?j._getOptionValue((S=a.$instance)===null||S===void 0||(S=S.$style)===null||S===void 0?void 0:S.inlineStyles,M,q({},G)):void 0}},L),a.$instance=a._$instances[e],(p=(y=a.$instance)[l])===null||p===void 0||p.call(y,a,c,d,f),a["$".concat(e)]=a.$instance,j._hook(e,l,a,c,d,f),a.$pd||(a.$pd={}),a.$pd[e]=q(q({},(k=a.$pd)===null||k===void 0?void 0:k[e]),{},{name:e,instance:a.$instance})},r=function(l){var a,c,d,f,p,y=(a=l.$instance)===null||a===void 0?void 0:a.watch;y==null||(c=y.config)===null||c===void 0||c.call(l.$instance,(d=l.$instance)===null||d===void 0?void 0:d.$primevueConfig),yr.on("config:change",function(k){var C,A=k.newValue,L=k.oldValue;return y==null||(C=y.config)===null||C===void 0?void 0:C.call(l.$instance,A,L)}),y==null||(f=y["config.ripple"])===null||f===void 0||f.call(l.$instance,(p=l.$instance)===null||p===void 0||(p=p.$primevueConfig)===null||p===void 0?void 0:p.ripple),yr.on("config:ripple:change",function(k){var C,A=k.newValue,L=k.oldValue;return y==null||(C=y["config.ripple"])===null||C===void 0?void 0:C.call(l.$instance,A,L)})};return{created:function(l,a,c,d){o("created",l,a,c,d)},beforeMount:function(l,a,c,d){l.$attrSelector=pn("pd"),j._loadStyles(l,a,c),o("beforeMount",l,a,c,d),r(l)},mounted:function(l,a,c,d){j._loadStyles(l,a,c),o("mounted",l,a,c,d)},beforeUpdate:function(l,a,c,d){o("beforeUpdate",l,a,c,d)},updated:function(l,a,c,d){j._loadStyles(l,a,c),o("updated",l,a,c,d)},beforeUnmount:function(l,a,c,d){o("beforeUnmount",l,a,c,d)},unmounted:function(l,a,c,d){var f;(f=l.$instance)===null||f===void 0||(f=f.scopedStyleEl)===null||f===void 0||(f=f.value)===null||f===void 0||f.remove(),o("unmounted",l,a,c,d)}}},extend:function(){var e=j._getMeta.apply(j,arguments),n=br(e,2),o=n[0],r=n[1];return q({extend:function(){var l=j._getMeta.apply(j,arguments),a=br(l,2),c=a[0],d=a[1];return j.extend(c,q(q(q({},r),r==null?void 0:r.methods),d))}},j._extend(o,r))}},Na=function(e){var n=e.dt;return`
320
320
  .p-ink {
321
321
  display: block;
322
322
  position: absolute;
@@ -336,9 +336,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
336
336
  transform: scale(2.5);
337
337
  }
338
338
  }
339
- `)},Da={root:"p-ink"},Ra=ge.extend({name:"ripple-directive",theme:Ma,classes:Da}),Ua=j.extend({style:Ra});function jt(t){"@babel/helpers - typeof";return jt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},jt(t)}function Va(t){return za(t)||Fa(t)||ja(t)||Ha()}function Ha(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
340
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ja(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 Fa(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function za(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 kr(t,e,n){return(e=Ka(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Ka(t){var e=Wa(t,"string");return jt(e)=="symbol"?e:e+""}function Wa(t,e){if(jt(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var o=n.call(t,e);if(jt(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Ga=Ua.extend("ripple",{watch:{"config.ripple":function(e){e?(this.createRipple(this.$host),this.bindEvents(this.$host),this.$host.setAttribute("data-pd-ripple",!0),this.$host.style.overflow="hidden",this.$host.style.position="relative"):(this.remove(this.$host),this.$host.removeAttribute("data-pd-ripple"))}},unmounted:function(e){this.remove(e)},timeout:void 0,methods:{bindEvents:function(e){e.addEventListener("mousedown",this.onMouseDown.bind(this))},unbindEvents:function(e){e.removeEventListener("mousedown",this.onMouseDown.bind(this))},createRipple:function(e){var n=Ps("span",kr(kr({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()&&Hn(r,"p-ink-active"),r.setAttribute("data-p-ink-active","false"),!Fo(r)&&!zo(r)){var s=Math.max(As(o),Os(o));r.style.height=s+"px",r.style.width=s+"px"}var a=xs(o),l=e.pageX-a.left+document.body.scrollTop-zo(r)/2,c=e.pageY-a.top+document.body.scrollLeft-Fo(r)/2;r.style.top=c+"px",r.style.left=l+"px",!this.isUnstyled()&&Ts(r,"p-ink-active"),r.setAttribute("data-p-ink-active","true"),this.timeout=setTimeout(function(){r&&(!n.isUnstyled()&&Hn(r,"p-ink-active"),r.setAttribute("data-p-ink-active","false"))},401)}},onAnimationEnd:function(e){this.timeout&&clearTimeout(this.timeout),!this.isUnstyled()&&Hn(e.currentTarget,"p-ink-active"),e.currentTarget.setAttribute("data-p-ink-active","false")},getInk:function(e){return e&&e.children?Va(e.children).find(function(n){return Ot(n,"data-pc-name")==="ripple"}):void 0}}}),qa={name:"BasePanelMenu",extends:bn,props:{model:{type:Array,default:null},expandedKeys:{type:Object,default:null},multiple:{type:Boolean,default:!1},tabindex:{type:Number,default:0}},style:Pa,provide:function(){return{$pcPanelMenu:this,$parentInstance:this}}},_r={name:"PanelMenuSub",hostName:"PanelMenu",extends:bn,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?Ie(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 Z(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:i.mergeProps({class:this.cx("itemLink"),tabindex:-1,"aria-hidden":!0},this.getPTOptions("itemLink",e,n)),icon:i.mergeProps({class:[this.cx("itemIcon"),this.getItemProp(e,"icon")]},this.getPTOptions("itemIcon",e,n)),label:i.mergeProps({class:this.cx("itemLabel")},this.getPTOptions("itemLabel",e,n)),submenuicon:i.mergeProps({class:this.cx("submenuIcon")},this.getPTOptions("submenuicon",e,n))}}},components:{ChevronRightIcon:Zn,ChevronDownIcon:Xn},directives:{ripple:Ga}},Ya=["tabindex"],Xa=["id","aria-label","aria-expanded","aria-level","aria-setsize","aria-posinset","data-p-focused","data-p-disabled"],Za=["onClick","onMousemove"],Ja=["href","target"];function Qa(t,e,n,o,r,s){var a=i.resolveComponent("PanelMenuSub",!0),l=i.resolveDirective("ripple");return i.openBlock(),i.createElementBlock("ul",{class:i.normalizeClass(t.cx("submenu")),tabindex:n.tabindex},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(n.items,function(c,d){return i.openBlock(),i.createElementBlock(i.Fragment,{key:s.getItemKey(c)},[s.isItemVisible(c)&&!s.getItemProp(c,"separator")?(i.openBlock(),i.createElementBlock("li",i.mergeProps({key:0,id:s.getItemId(c),class:[t.cx("item",{processedItem:c}),s.getItemProp(c,"class")],style:s.getItemProp(c,"style"),role:"treeitem","aria-label":s.getItemLabel(c),"aria-expanded":s.isItemGroup(c)?s.isItemActive(c):void 0,"aria-level":n.level+1,"aria-setsize":s.getAriaSetSize(),"aria-posinset":s.getAriaPosInset(d),ref_for:!0},s.getPTOptions("item",c,d),{"data-p-focused":s.isItemFocused(c),"data-p-disabled":s.isItemDisabled(c)}),[i.createElementVNode("div",i.mergeProps({class:t.cx("itemContent"),onClick:function(p){return s.onItemClick(p,c)},onMousemove:function(p){return s.onItemMouseMove(p,c)},ref_for:!0},s.getPTOptions("itemContent",c,d)),[n.templates.item?(i.openBlock(),i.createBlock(i.resolveDynamicComponent(n.templates.item),{key:1,item:c.item,root:!1,active:s.isItemActive(c),hasSubmenu:s.isItemGroup(c),label:s.getItemLabel(c),props:s.getMenuItemProps(c,d)},null,8,["item","active","hasSubmenu","label","props"])):i.withDirectives((i.openBlock(),i.createElementBlock("a",i.mergeProps({key:0,href:s.getItemProp(c,"url"),class:t.cx("itemLink"),target:s.getItemProp(c,"target"),tabindex:"-1",ref_for:!0},s.getPTOptions("itemLink",c,d)),[s.isItemGroup(c)?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[n.templates.submenuicon?(i.openBlock(),i.createBlock(i.resolveDynamicComponent(n.templates.submenuicon),i.mergeProps({key:0,class:t.cx("submenuIcon"),active:s.isItemActive(c),ref_for:!0},s.getPTOptions("submenuIcon",c,d)),null,16,["class","active"])):(i.openBlock(),i.createBlock(i.resolveDynamicComponent(s.isItemActive(c)?"ChevronDownIcon":"ChevronRightIcon"),i.mergeProps({key:1,class:t.cx("submenuIcon"),ref_for:!0},s.getPTOptions("submenuIcon",c,d)),null,16,["class"]))],64)):i.createCommentVNode("",!0),n.templates.itemicon?(i.openBlock(),i.createBlock(i.resolveDynamicComponent(n.templates.itemicon),{key:1,item:c.item,class:i.normalizeClass(t.cx("itemIcon"))},null,8,["item","class"])):s.getItemProp(c,"icon")?(i.openBlock(),i.createElementBlock("span",i.mergeProps({key:2,class:[t.cx("itemIcon"),s.getItemProp(c,"icon")],ref_for:!0},s.getPTOptions("itemIcon",c,d)),null,16)):i.createCommentVNode("",!0),i.createElementVNode("span",i.mergeProps({class:t.cx("itemLabel"),ref_for:!0},s.getPTOptions("itemLabel",c,d)),i.toDisplayString(s.getItemLabel(c)),17)],16,Ja)),[[l]])],16,Za),i.createVNode(i.Transition,i.mergeProps({name:"p-toggleable-content",ref_for:!0},t.ptm("transition")),{default:i.withCtx(function(){return[i.withDirectives(i.createElementVNode("div",i.mergeProps({class:t.cx("contentContainer"),ref_for:!0},t.ptm("contentContainer")),[s.isItemVisible(c)&&s.isItemGroup(c)?(i.openBlock(),i.createBlock(a,i.mergeProps({key:0,id:s.getItemId(c)+"_list",role:"group",panelId:n.panelId,focusedItemId:n.focusedItemId,items:c.items,level:n.level+1,templates:n.templates,activeItemPath:n.activeItemPath,onItemToggle:s.onItemToggle,onItemMousemove:e[0]||(e[0]=function(f){return t.$emit("item-mousemove",f)}),pt:t.pt,unstyled:t.unstyled,ref_for:!0},t.ptm("submenu")),null,16,["id","panelId","focusedItemId","items","level","templates","activeItemPath","onItemToggle","pt","unstyled"])):i.createCommentVNode("",!0)],16),[[i.vShow,s.isItemActive(c)]])]}),_:2},1040)],16,Xa)):i.createCommentVNode("",!0),s.isItemVisible(c)&&s.getItemProp(c,"separator")?(i.openBlock(),i.createElementBlock("li",i.mergeProps({key:1,style:s.getItemProp(c,"style"),class:[t.cx("separator"),s.getItemProp(c,"class")],role:"separator",ref_for:!0},t.ptm("separator")),null,16)):i.createCommentVNode("",!0)],64)}),128))],10,Ya)}_r.render=Qa;function el(t,e){return rl(t)||ol(t,e)||nl(t,e)||tl()}function tl(){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 nl(t,e){if(t){if(typeof t=="string")return Sr(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Sr(t,e):void 0}}function Sr(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,o=Array(e);n<e;n++)o[n]=t[n];return o}function ol(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var o,r,s,a,l=[],c=!0,d=!1;try{if(s=(n=n.call(t)).next,e!==0)for(;!(c=(o=s.call(n)).done)&&(l.push(o.value),l.length!==e);c=!0);}catch(f){d=!0,r=f}finally{try{if(!c&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(d)throw r}}return l}}function rl(t){if(Array.isArray(t))return t}var Cr={name:"PanelMenuList",hostName:"PanelMenu",extends:bn,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?Ie(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 Z(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&&Ms(e.key)&&this.searchItems(e,e.key);break}},onArrowDownKey:function(e){var n=Z(this.focusedItem)?this.findNextItem(this.focusedItem):this.findFirstItem();this.changeFocusedItem({originalEvent:e,processedItem:n,focusOnNext:!0}),e.preventDefault()},onArrowUpKey:function(e){var n=Z(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(Z(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=Z(this.focusedItem.parent)?this.focusedItem.parent:this.focusedItem,e.preventDefault()}},onArrowRightKey:function(e){var n=this;if(Z(this.focusedItem)){var o=this.isItemGroup(this.focusedItem);if(o){var r=this.activeItemPath.some(function(s){return s.key===n.focusedItem.key});r?this.onArrowDownKey(e):(this.activeItemPath=this.activeItemPath.filter(function(s){return s.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(Z(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,xt(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 Wo(this.visibleItems,function(n){return e.isValidItem(n)})},findNextItem:function(e){var n=this,o=this.visibleItems.findIndex(function(s){return s.key===e.key}),r=o<this.visibleItems.length-1?this.visibleItems.slice(o+1).find(function(s){return n.isValidItem(s)}):void 0;return r||e},findPrevItem:function(e){var n=this,o=this.visibleItems.findIndex(function(s){return s.key===e.key}),r=o>0?Wo(this.visibleItems.slice(0,o),function(s){return n.isValidItem(s)}):void 0;return r||e},searchItems:function(e,n){var o=this;this.searchValue=(this.searchValue||"")+n;var r=null,s=!1;if(Z(this.focusedItem)){var a=this.visibleItems.findIndex(function(l){return l.key===o.focusedItem.key});r=this.visibleItems.slice(a).find(function(l){return o.isItemMatched(l)}),r=at(r)?this.visibleItems.slice(0,a).find(function(l){return o.isItemMatched(l)}):r}else r=this.visibleItems.find(function(l){return o.isItemMatched(l)});return Z(r)&&(s=!0),at(r)&&at(this.focusedItem)&&(r=this.findFirstItem()),Z(r)&&this.changeFocusedItem({originalEvent:e,processedItem:r,allowHeaderFocus:!1}),this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout(function(){o.searchValue="",o.searchTimeout=null},500),s},changeFocusedItem:function(e){var n=e.originalEvent,o=e.processedItem,r=e.focusOnNext,s=e.selfCheck,a=e.allowHeaderFocus,l=a===void 0?!0:a;Z(this.focusedItem)&&this.focusedItem.key!==o.key?(this.focusedItem=o,this.scrollInView()):l&&this.$emit("header-focus",{originalEvent:n,focusOnNext:r,selfCheck:s})},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 s=el(r,2),a=s[0],l=s[1];if(l){var c=n.findProcessedItemByItemKey(a);c&&o.push(c)}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 s=n[r];if(this.getItemProp(s,"key")===e)return s;var a=this.findProcessedItemByItemKey(e,s.items,o+1);if(a)return a}},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]:{},s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"",a=[];return e&&e.forEach(function(l,c){var d=(s!==""?s+"_":"")+c,f={item:l,index:c,level:o,key:d,parent:r,parentKey:s};f.items=n.createProcessedItems(l.items,o+1,f,d),a.push(f)}),a},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 Z(this.focusedItem)?"".concat(this.panelId,"_").concat(this.focusedItem.key):null}},components:{PanelMenuSub:_r}};function il(t,e,n,o,r,s){var a=i.resolveComponent("PanelMenuSub");return i.openBlock(),i.createBlock(a,i.mergeProps({id:n.panelId+"_list",class:t.cx("rootList"),role:"tree",tabindex:-1,"aria-activedescendant":r.focused?s.focusedItemId:void 0,panelId:n.panelId,focusedItemId:r.focused?s.focusedItemId:void 0,items:s.processedItems,templates:n.templates,activeItemPath:r.activeItemPath,onFocus:s.onFocus,onBlur:s.onBlur,onKeydown:s.onKeyDown,onItemToggle:s.onItemToggle,onItemMousemove:s.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"])}Cr.render=il;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 Er(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,o)}return n}function sl(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Er(Object(n),!0).forEach(function(o){al(t,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Er(Object(n)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(n,o))})}return t}function al(t,e,n){return(e=ll(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ll(t){var e=cl(t,"string");return Ft(e)=="symbol"?e:e+""}function cl(t,e){if(Ft(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var o=n.call(t,e);if(Ft(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Ir={name:"PanelMenu",extends:qa,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||pn()}},mounted:function(){this.id=this.id||pn()},methods:{getItemProp:function(e,n){return e?Ie(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),xt(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=Ot(e.currentTarget,"data-p-active")===!0?Be(e.currentTarget.nextElementSibling,'[data-pc-section="rootlist"]'):null;n?xt(n):this.updateFocusedHeader({originalEvent:e,focusOnNext:!0}),e.preventDefault()},onHeaderArrowUpKey:function(e){var n=this.findPrevHeader(e.currentTarget.parentElement)||this.findLastHeader(),o=Ot(n,"data-p-active")===!0?Be(n.nextElementSibling,'[data-pc-section="rootlist"]'):null;o?xt(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?Ot(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?Ot(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,s=n.currentTarget.closest('[data-pc-section="panel"]'),a=r?Be(s,'[data-pc-section="header"]'):o?this.findNextHeader(s):this.findPrevHeader(s);a?this.changeFocusedHeader(n,a):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),s=r?"panel-close":"panel-open";this.activeItem=o?n:this.activeItem&&yt(n,this.activeItem)?null:n,this.multiple&&(this.activeItems.some(function(a){return yt(n,a)})?this.activeItems=this.activeItems.filter(function(a){return!yt(n,a)}):this.activeItems.push(n)),this.changeExpandedKeys({item:n,expanded:!r}),this.$emit(s,{originalEvent:e,item:n})}},changeExpandedKeys:function(e){var n=e.item,o=e.expanded,r=o===void 0?!1:o;if(this.expandedKeys){var s=sl({},this.expandedKeys);r?s[n.key]=!0:delete s[n.key],this.$emit("update:expandedKeys",s)}},changeFocusedHeader:function(e,n){n&&xt(n)},getMenuItemProps:function(e,n){return{icon:i.mergeProps({class:[this.cx("headerIcon"),this.getItemProp(e,"icon")]},this.getPTOptions("headerIcon",e,n)),label:i.mergeProps({class:this.cx("headerLabel")},this.getPTOptions("headerLabel",e,n))}}},components:{PanelMenuList:Cr,ChevronRightIcon:Zn,ChevronDownIcon:Xn}},ul=["id"],dl=["id","tabindex","aria-label","aria-expanded","aria-controls","aria-disabled","onClick","onKeydown","data-p-active","data-p-disabled"],fl=["href"],ml=["id","aria-labelledby"];function pl(t,e,n,o,r,s){var a=i.resolveComponent("PanelMenuList");return i.openBlock(),i.createElementBlock("div",i.mergeProps({id:r.id,class:t.cx("root")},t.ptmi("root")),[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.model,function(l,c){return i.openBlock(),i.createElementBlock(i.Fragment,{key:s.getPanelKey(c)},[s.isItemVisible(l)?(i.openBlock(),i.createElementBlock("div",i.mergeProps({key:0,style:s.getItemProp(l,"style"),class:[t.cx("panel"),s.getItemProp(l,"class")],ref_for:!0},t.ptm("panel")),[i.createElementVNode("div",i.mergeProps({id:s.getHeaderId(c),class:[t.cx("header",{item:l}),s.getItemProp(l,"headerClass")],tabindex:s.isItemDisabled(l)?-1:t.tabindex,role:"button","aria-label":s.getItemLabel(l),"aria-expanded":s.isItemActive(l),"aria-controls":s.getContentId(c),"aria-disabled":s.isItemDisabled(l),onClick:function(f){return s.onHeaderClick(f,l)},onKeydown:function(f){return s.onHeaderKeyDown(f,l)},ref_for:!0},s.getPTOptions("header",l,c),{"data-p-active":s.isItemActive(l),"data-p-disabled":s.isItemDisabled(l)}),[i.createElementVNode("div",i.mergeProps({class:t.cx("headerContent"),ref_for:!0},s.getPTOptions("headerContent",l,c)),[t.$slots.item?(i.openBlock(),i.createBlock(i.resolveDynamicComponent(t.$slots.item),{key:1,item:l,root:!0,active:s.isItemActive(l),hasSubmenu:s.getItemProp(l,"items"),label:s.getItemLabel(l),props:s.getMenuItemProps(l,c)},null,8,["item","active","hasSubmenu","label","props"])):(i.openBlock(),i.createElementBlock("a",i.mergeProps({key:0,href:s.getItemProp(l,"url"),class:t.cx("headerLink"),tabindex:-1,ref_for:!0},s.getPTOptions("headerLink",l,c)),[s.getItemProp(l,"items")?i.renderSlot(t.$slots,"submenuicon",{key:0,active:s.isItemActive(l)},function(){return[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(s.isItemActive(l)?"ChevronDownIcon":"ChevronRightIcon"),i.mergeProps({class:t.cx("submenuIcon"),ref_for:!0},s.getPTOptions("submenuIcon",l,c)),null,16,["class"]))]}):i.createCommentVNode("",!0),t.$slots.headericon?(i.openBlock(),i.createBlock(i.resolveDynamicComponent(t.$slots.headericon),{key:1,item:l,class:i.normalizeClass([t.cx("headerIcon"),s.getItemProp(l,"icon")])},null,8,["item","class"])):s.getItemProp(l,"icon")?(i.openBlock(),i.createElementBlock("span",i.mergeProps({key:2,class:[t.cx("headerIcon"),s.getItemProp(l,"icon")],ref_for:!0},s.getPTOptions("headerIcon",l,c)),null,16)):i.createCommentVNode("",!0),i.createElementVNode("span",i.mergeProps({class:t.cx("headerLabel"),ref_for:!0},s.getPTOptions("headerLabel",l,c)),i.toDisplayString(s.getItemLabel(l)),17)],16,fl))],16)],16,dl),i.createVNode(i.Transition,i.mergeProps({name:"p-toggleable-content",ref_for:!0},t.ptm("transition")),{default:i.withCtx(function(){return[i.withDirectives(i.createElementVNode("div",i.mergeProps({id:s.getContentId(c),class:t.cx("contentContainer"),role:"region","aria-labelledby":s.getHeaderId(c),ref_for:!0},t.ptm("contentContainer")),[s.getItemProp(l,"items")?(i.openBlock(),i.createElementBlock("div",i.mergeProps({key:0,class:t.cx("content"),ref_for:!0},t.ptm("content")),[i.createVNode(a,{panelId:s.getPanelId(c),items:s.getItemProp(l,"items"),templates:t.$slots,expandedKeys:t.expandedKeys,onItemToggle:s.changeExpandedKeys,onHeaderFocus:s.updateFocusedHeader,pt:t.pt,unstyled:t.unstyled},null,8,["panelId","items","templates","expandedKeys","onItemToggle","onHeaderFocus","pt","unstyled"])],16)):i.createCommentVNode("",!0)],16,ml),[[i.vShow,s.isItemActive(l)]])]}),_:2},1040)],16)):i.createCommentVNode("",!0)],64)}),128))],16,ul)}Ir.render=pl;const hl={class:"panel-menu-wrapper select-none"},gl=["data-active","onClick"],yl={key:0,class:"material-symbols-outlined item-menu-icon-left"},bl=["textContent"],vl=["onClick"],wl={key:0,class:"material-symbols-outlined item-menu-icon-left"},kl=["textContent"],_l={key:2,class:i.normalizeClass(["item-menu"])},Sl={key:0,class:"material-symbols-outlined item-menu-icon-left"},Cl=["textContent"],El=et(i.defineComponent({__name:"NavMenu",props:{items:{}},setup(t){const e=t,n=(s,a)=>{s.disabled||a()},o=(s,a)=>{a.disabled||typeof a.command=="function"&&a.command(s)},r=s=>typeof s.label=="function"?s.label():s.label??"Item";return(s,a)=>{const l=i.resolveComponent("router-link");return i.openBlock(),i.createElementBlock("div",hl,[i.createVNode(i.unref(Ir),{model:e.items,unstyled:!0},{item:i.withCtx(({item:c,active:d})=>[c.to?(i.openBlock(),i.createBlock(l,{key:0,to:c.to,custom:""},{default:i.withCtx(({navigate:f,isActive:p})=>[i.createElementVNode("a",{class:i.normalizeClass(["item-menu",{disabled:c.disabled}]),"data-active":p,onClick:i.withModifiers(y=>n(c,f),["prevent"])},[c.icon?(i.openBlock(),i.createElementBlock("span",yl,i.toDisplayString(c.icon),1)):i.createCommentVNode("",!0),i.createElementVNode("span",{textContent:i.toDisplayString(r(c))},null,8,bl)],10,gl)]),_:2},1032,["to"])):typeof c.command=="function"?(i.openBlock(),i.createElementBlock("span",{key:1,class:i.normalizeClass(["item-menu",{disabled:c.disabled}]),onClick:i.withModifiers(f=>o(f,c),["stop"])},[c.icon?(i.openBlock(),i.createElementBlock("span",wl,i.toDisplayString(c.icon),1)):i.createCommentVNode("",!0),i.createElementVNode("span",{textContent:i.toDisplayString(r(c))},null,8,kl)],10,vl)):(i.openBlock(),i.createElementBlock("a",_l,[c.icon?(i.openBlock(),i.createElementBlock("span",Sl,i.toDisplayString(c.icon),1)):i.createCommentVNode("",!0),i.createElementVNode("span",{textContent:i.toDisplayString(r(c))},null,8,Cl),a[0]||(a[0]=i.createElementVNode("div",{class:"sep"},null,-1)),i.createElementVNode("span",{class:i.normalizeClass(["material-symbols-outlined arrow",{"--expand":d}])}," chevron_right ",2)]))]),_:1},8,["model"])])}}}),[["__scopeId","data-v-cf31441a"]]),Il=i.defineComponent({__name:"HelpButton",props:{title:{},tooltip:{},size:{},color:{},filled:{type:Boolean},icon:{}},setup(t){const e=t;i.useSlots();const n=i.ref(!1);function o(){n.value=!0}return(r,s)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[i.renderSlot(r.$slots,"anchor",i.normalizeProps(i.guardReactiveProps({Show:o})),()=>[i.createVNode(Ue,{button:!0,icon:e.icon??"help",size:e.size??"sm",filled:e.filled,color:e.color??"info",tooltip:e.tooltip??"Ajuda",style:{minWidth:"fit-content"},onClick:o},null,8,["icon","size","filled","color","tooltip"])]),i.createVNode(jo,{visible:n.value,"onUpdate:visible":s[0]||(s[0]=a=>n.value=a),position:"center"},{title:i.withCtx(()=>[i.createElementVNode("b",null,i.toDisplayString(e.title??"Ajuda"),1)]),default:i.withCtx(()=>[i.renderSlot(r.$slots,"default")]),_:3},8,["visible"])],64))}}),Tl=et(i.defineComponent({__name:"Content",props:{fluid:{type:Boolean}},setup(t){const e=t;return i.useSlots(),(n,o)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["sf-content-wrapper",{"--fluid":e.fluid}])},[i.renderSlot(n.$slots,"default",{},void 0,!0)],2))}}),[["__scopeId","data-v-32e5acfa"]]),Tr=Symbol();class Al{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 zt=new Al,Ar="SweetAlert2:",Pl=t=>{const e=[];for(let n=0;n<t.length;n++)e.indexOf(t[n])===-1&&e.push(t[n]);return e},eo=t=>t.charAt(0).toUpperCase()+t.slice(1),Te=t=>Array.prototype.slice.call(t),_e=t=>{console.warn(`${Ar} ${typeof t=="object"?t.join(" "):t}`)},lt=t=>{console.error(`${Ar} ${t}`)},Pr=[],Ll=t=>{Pr.includes(t)||(Pr.push(t),_e(t))},xl=(t,e)=>{Ll(`"${t}" is deprecated and will be removed in the next major release. Please use "${e}" instead.`)},vn=t=>typeof t=="function"?t():t,to=t=>t&&typeof t.toPromise=="function",Kt=t=>to(t)?t.toPromise():Promise.resolve(t),no=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},Ol=["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"],$l={},Bl=["allowOutsideClick","allowEnterKey","backdrop","focusConfirm","focusDeny","focusCancel","returnFocus","heightAuto","keydownListenerCapture"],Lr=t=>Object.prototype.hasOwnProperty.call(bt,t),xr=t=>Ol.indexOf(t)!==-1,oo=t=>$l[t],Nl=t=>{Lr(t)||_e(`Unknown parameter "${t}"`)},Ml=t=>{Bl.includes(t)&&_e(`The parameter "${t}" is incompatible with toasts`)},Dl=t=>{oo(t)&&xl(t,oo(t))},Rl=t=>{!t.backdrop&&t.allowOutsideClick&&_e('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`');for(const e in t)Nl(e),t.toast&&Ml(e),Dl(e)},Ul="swal2-",Or=t=>{const e={};for(const n in t)e[t[n]]=Ul+t[n];return e},g=Or(["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"]),Wt=Or(["success","warning","info","question","error"]),ae=()=>document.body.querySelector(`.${g.container}`),Gt=t=>{const e=ae();return e?e.querySelector(t):null},Le=t=>Gt(`.${t}`),J=()=>Le(g.popup),qt=()=>Le(g.icon),$r=()=>Le(g.title),wn=()=>Le(g["html-container"]),Br=()=>Le(g.image),Nr=()=>Le(g["progress-steps"]),kn=()=>Le(g["validation-message"]),De=()=>Gt(`.${g.actions} .${g.confirm}`),ot=()=>Gt(`.${g.actions} .${g.deny}`),Vl=()=>Le(g["input-label"]),vt=()=>Gt(`.${g.loader}`),ct=()=>Gt(`.${g.actions} .${g.cancel}`),Yt=()=>Le(g.actions),Mr=()=>Le(g.footer),_n=()=>Le(g["timer-progress-bar"]),ro=()=>Le(g.close),Hl=`
339
+ `)},Ma={root:"p-ink"},Da=ge.extend({name:"ripple-directive",theme:Na,classes:Ma}),Ra=j.extend({style:Da});function jt(t){"@babel/helpers - typeof";return jt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},jt(t)}function Ua(t){return Fa(t)||ja(t)||Ha(t)||Va()}function Va(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
340
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ha(t,e){if(t){if(typeof t=="string")return Qn(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Qn(t,e):void 0}}function ja(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function Fa(t){if(Array.isArray(t))return Qn(t)}function Qn(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,o=Array(e);n<e;n++)o[n]=t[n];return o}function kr(t,e,n){return(e=za(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function za(t){var e=Ka(t,"string");return jt(e)=="symbol"?e:e+""}function Ka(t,e){if(jt(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var o=n.call(t,e);if(jt(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Wa=Ra.extend("ripple",{watch:{"config.ripple":function(e){e?(this.createRipple(this.$host),this.bindEvents(this.$host),this.$host.setAttribute("data-pd-ripple",!0),this.$host.style.overflow="hidden",this.$host.style.position="relative"):(this.remove(this.$host),this.$host.removeAttribute("data-pd-ripple"))}},unmounted:function(e){this.remove(e)},timeout:void 0,methods:{bindEvents:function(e){e.addEventListener("mousedown",this.onMouseDown.bind(this))},unbindEvents:function(e){e.removeEventListener("mousedown",this.onMouseDown.bind(this))},createRipple:function(e){var n=As("span",kr(kr({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()&&Hn(r,"p-ink-active"),r.setAttribute("data-p-ink-active","false"),!Fo(r)&&!zo(r)){var s=Math.max(Ts(o),xs(o));r.style.height=s+"px",r.style.width=s+"px"}var l=Ls(o),a=e.pageX-l.left+document.body.scrollTop-zo(r)/2,c=e.pageY-l.top+document.body.scrollLeft-Fo(r)/2;r.style.top=c+"px",r.style.left=a+"px",!this.isUnstyled()&&Is(r,"p-ink-active"),r.setAttribute("data-p-ink-active","true"),this.timeout=setTimeout(function(){r&&(!n.isUnstyled()&&Hn(r,"p-ink-active"),r.setAttribute("data-p-ink-active","false"))},401)}},onAnimationEnd:function(e){this.timeout&&clearTimeout(this.timeout),!this.isUnstyled()&&Hn(e.currentTarget,"p-ink-active"),e.currentTarget.setAttribute("data-p-ink-active","false")},getInk:function(e){return e&&e.children?Ua(e.children).find(function(n){return Ot(n,"data-pc-name")==="ripple"}):void 0}}}),Ga={name:"BasePanelMenu",extends:bn,props:{model:{type:Array,default:null},expandedKeys:{type:Object,default:null},multiple:{type:Boolean,default:!1},tabindex:{type:Number,default:0}},style:Aa,provide:function(){return{$pcPanelMenu:this,$parentInstance:this}}},_r={name:"PanelMenuSub",hostName:"PanelMenu",extends:bn,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?Ie(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 Z(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:i.mergeProps({class:this.cx("itemLink"),tabindex:-1,"aria-hidden":!0},this.getPTOptions("itemLink",e,n)),icon:i.mergeProps({class:[this.cx("itemIcon"),this.getItemProp(e,"icon")]},this.getPTOptions("itemIcon",e,n)),label:i.mergeProps({class:this.cx("itemLabel")},this.getPTOptions("itemLabel",e,n)),submenuicon:i.mergeProps({class:this.cx("submenuIcon")},this.getPTOptions("submenuicon",e,n))}}},components:{ChevronRightIcon:Zn,ChevronDownIcon:Xn},directives:{ripple:Wa}},qa=["tabindex"],Ya=["id","aria-label","aria-expanded","aria-level","aria-setsize","aria-posinset","data-p-focused","data-p-disabled"],Xa=["onClick","onMousemove"],Za=["href","target"];function Ja(t,e,n,o,r,s){var l=i.resolveComponent("PanelMenuSub",!0),a=i.resolveDirective("ripple");return i.openBlock(),i.createElementBlock("ul",{class:i.normalizeClass(t.cx("submenu")),tabindex:n.tabindex},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(n.items,function(c,d){return i.openBlock(),i.createElementBlock(i.Fragment,{key:s.getItemKey(c)},[s.isItemVisible(c)&&!s.getItemProp(c,"separator")?(i.openBlock(),i.createElementBlock("li",i.mergeProps({key:0,id:s.getItemId(c),class:[t.cx("item",{processedItem:c}),s.getItemProp(c,"class")],style:s.getItemProp(c,"style"),role:"treeitem","aria-label":s.getItemLabel(c),"aria-expanded":s.isItemGroup(c)?s.isItemActive(c):void 0,"aria-level":n.level+1,"aria-setsize":s.getAriaSetSize(),"aria-posinset":s.getAriaPosInset(d),ref_for:!0},s.getPTOptions("item",c,d),{"data-p-focused":s.isItemFocused(c),"data-p-disabled":s.isItemDisabled(c)}),[i.createElementVNode("div",i.mergeProps({class:t.cx("itemContent"),onClick:function(p){return s.onItemClick(p,c)},onMousemove:function(p){return s.onItemMouseMove(p,c)},ref_for:!0},s.getPTOptions("itemContent",c,d)),[n.templates.item?(i.openBlock(),i.createBlock(i.resolveDynamicComponent(n.templates.item),{key:1,item:c.item,root:!1,active:s.isItemActive(c),hasSubmenu:s.isItemGroup(c),label:s.getItemLabel(c),props:s.getMenuItemProps(c,d)},null,8,["item","active","hasSubmenu","label","props"])):i.withDirectives((i.openBlock(),i.createElementBlock("a",i.mergeProps({key:0,href:s.getItemProp(c,"url"),class:t.cx("itemLink"),target:s.getItemProp(c,"target"),tabindex:"-1",ref_for:!0},s.getPTOptions("itemLink",c,d)),[s.isItemGroup(c)?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[n.templates.submenuicon?(i.openBlock(),i.createBlock(i.resolveDynamicComponent(n.templates.submenuicon),i.mergeProps({key:0,class:t.cx("submenuIcon"),active:s.isItemActive(c),ref_for:!0},s.getPTOptions("submenuIcon",c,d)),null,16,["class","active"])):(i.openBlock(),i.createBlock(i.resolveDynamicComponent(s.isItemActive(c)?"ChevronDownIcon":"ChevronRightIcon"),i.mergeProps({key:1,class:t.cx("submenuIcon"),ref_for:!0},s.getPTOptions("submenuIcon",c,d)),null,16,["class"]))],64)):i.createCommentVNode("",!0),n.templates.itemicon?(i.openBlock(),i.createBlock(i.resolveDynamicComponent(n.templates.itemicon),{key:1,item:c.item,class:i.normalizeClass(t.cx("itemIcon"))},null,8,["item","class"])):s.getItemProp(c,"icon")?(i.openBlock(),i.createElementBlock("span",i.mergeProps({key:2,class:[t.cx("itemIcon"),s.getItemProp(c,"icon")],ref_for:!0},s.getPTOptions("itemIcon",c,d)),null,16)):i.createCommentVNode("",!0),i.createElementVNode("span",i.mergeProps({class:t.cx("itemLabel"),ref_for:!0},s.getPTOptions("itemLabel",c,d)),i.toDisplayString(s.getItemLabel(c)),17)],16,Za)),[[a]])],16,Xa),i.createVNode(i.Transition,i.mergeProps({name:"p-toggleable-content",ref_for:!0},t.ptm("transition")),{default:i.withCtx(function(){return[i.withDirectives(i.createElementVNode("div",i.mergeProps({class:t.cx("contentContainer"),ref_for:!0},t.ptm("contentContainer")),[s.isItemVisible(c)&&s.isItemGroup(c)?(i.openBlock(),i.createBlock(l,i.mergeProps({key:0,id:s.getItemId(c)+"_list",role:"group",panelId:n.panelId,focusedItemId:n.focusedItemId,items:c.items,level:n.level+1,templates:n.templates,activeItemPath:n.activeItemPath,onItemToggle:s.onItemToggle,onItemMousemove:e[0]||(e[0]=function(f){return t.$emit("item-mousemove",f)}),pt:t.pt,unstyled:t.unstyled,ref_for:!0},t.ptm("submenu")),null,16,["id","panelId","focusedItemId","items","level","templates","activeItemPath","onItemToggle","pt","unstyled"])):i.createCommentVNode("",!0)],16),[[i.vShow,s.isItemActive(c)]])]}),_:2},1040)],16,Ya)):i.createCommentVNode("",!0),s.isItemVisible(c)&&s.getItemProp(c,"separator")?(i.openBlock(),i.createElementBlock("li",i.mergeProps({key:1,style:s.getItemProp(c,"style"),class:[t.cx("separator"),s.getItemProp(c,"class")],role:"separator",ref_for:!0},t.ptm("separator")),null,16)):i.createCommentVNode("",!0)],64)}),128))],10,qa)}_r.render=Ja;function Qa(t,e){return ol(t)||nl(t,e)||tl(t,e)||el()}function el(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
341
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function tl(t,e){if(t){if(typeof t=="string")return Sr(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Sr(t,e):void 0}}function Sr(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,o=Array(e);n<e;n++)o[n]=t[n];return o}function nl(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var o,r,s,l,a=[],c=!0,d=!1;try{if(s=(n=n.call(t)).next,e!==0)for(;!(c=(o=s.call(n)).done)&&(a.push(o.value),a.length!==e);c=!0);}catch(f){d=!0,r=f}finally{try{if(!c&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(d)throw r}}return a}}function ol(t){if(Array.isArray(t))return t}var Cr={name:"PanelMenuList",hostName:"PanelMenu",extends:bn,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?Ie(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 Z(e.items)},onFocus:function(e){this.focused=!0,this.focusedItem=this.focusedItem||(this.isElementInPanel(e,e.relatedTarget)?this.findFirstItem():this.findLastItem())},onBlur:function(){this.focused=!1,this.focusedItem=null,this.searchValue=""},onKeyDown:function(e){var n=e.metaKey||e.ctrlKey;switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e);break;case"ArrowLeft":this.onArrowLeftKey(e);break;case"ArrowRight":this.onArrowRightKey(e);break;case"Home":this.onHomeKey(e);break;case"End":this.onEndKey(e);break;case"Space":this.onSpaceKey(e);break;case"Enter":case"NumpadEnter":this.onEnterKey(e);break;case"Escape":case"Tab":case"PageDown":case"PageUp":case"Backspace":case"ShiftLeft":case"ShiftRight":break;default:!n&&Ns(e.key)&&this.searchItems(e,e.key);break}},onArrowDownKey:function(e){var n=Z(this.focusedItem)?this.findNextItem(this.focusedItem):this.findFirstItem();this.changeFocusedItem({originalEvent:e,processedItem:n,focusOnNext:!0}),e.preventDefault()},onArrowUpKey:function(e){var n=Z(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(Z(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=Z(this.focusedItem.parent)?this.focusedItem.parent:this.focusedItem,e.preventDefault()}},onArrowRightKey:function(e){var n=this;if(Z(this.focusedItem)){var o=this.isItemGroup(this.focusedItem);if(o){var r=this.activeItemPath.some(function(s){return s.key===n.focusedItem.key});r?this.onArrowDownKey(e):(this.activeItemPath=this.activeItemPath.filter(function(s){return s.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(Z(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,xt(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 Wo(this.visibleItems,function(n){return e.isValidItem(n)})},findNextItem:function(e){var n=this,o=this.visibleItems.findIndex(function(s){return s.key===e.key}),r=o<this.visibleItems.length-1?this.visibleItems.slice(o+1).find(function(s){return n.isValidItem(s)}):void 0;return r||e},findPrevItem:function(e){var n=this,o=this.visibleItems.findIndex(function(s){return s.key===e.key}),r=o>0?Wo(this.visibleItems.slice(0,o),function(s){return n.isValidItem(s)}):void 0;return r||e},searchItems:function(e,n){var o=this;this.searchValue=(this.searchValue||"")+n;var r=null,s=!1;if(Z(this.focusedItem)){var l=this.visibleItems.findIndex(function(a){return a.key===o.focusedItem.key});r=this.visibleItems.slice(l).find(function(a){return o.isItemMatched(a)}),r=at(r)?this.visibleItems.slice(0,l).find(function(a){return o.isItemMatched(a)}):r}else r=this.visibleItems.find(function(a){return o.isItemMatched(a)});return Z(r)&&(s=!0),at(r)&&at(this.focusedItem)&&(r=this.findFirstItem()),Z(r)&&this.changeFocusedItem({originalEvent:e,processedItem:r,allowHeaderFocus:!1}),this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout(function(){o.searchValue="",o.searchTimeout=null},500),s},changeFocusedItem:function(e){var n=e.originalEvent,o=e.processedItem,r=e.focusOnNext,s=e.selfCheck,l=e.allowHeaderFocus,a=l===void 0?!0:l;Z(this.focusedItem)&&this.focusedItem.key!==o.key?(this.focusedItem=o,this.scrollInView()):a&&this.$emit("header-focus",{originalEvent:n,focusOnNext:r,selfCheck:s})},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 s=Qa(r,2),l=s[0],a=s[1];if(a){var c=n.findProcessedItemByItemKey(l);c&&o.push(c)}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 s=n[r];if(this.getItemProp(s,"key")===e)return s;var l=this.findProcessedItemByItemKey(e,s.items,o+1);if(l)return l}},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]:{},s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"",l=[];return e&&e.forEach(function(a,c){var d=(s!==""?s+"_":"")+c,f={item:a,index:c,level:o,key:d,parent:r,parentKey:s};f.items=n.createProcessedItems(a.items,o+1,f,d),l.push(f)}),l},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 Z(this.focusedItem)?"".concat(this.panelId,"_").concat(this.focusedItem.key):null}},components:{PanelMenuSub:_r}};function rl(t,e,n,o,r,s){var l=i.resolveComponent("PanelMenuSub");return i.openBlock(),i.createBlock(l,i.mergeProps({id:n.panelId+"_list",class:t.cx("rootList"),role:"tree",tabindex:-1,"aria-activedescendant":r.focused?s.focusedItemId:void 0,panelId:n.panelId,focusedItemId:r.focused?s.focusedItemId:void 0,items:s.processedItems,templates:n.templates,activeItemPath:r.activeItemPath,onFocus:s.onFocus,onBlur:s.onBlur,onKeydown:s.onKeyDown,onItemToggle:s.onItemToggle,onItemMousemove:s.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"])}Cr.render=rl;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 Er(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,o)}return n}function il(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Er(Object(n),!0).forEach(function(o){sl(t,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Er(Object(n)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(n,o))})}return t}function sl(t,e,n){return(e=al(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function al(t){var e=ll(t,"string");return Ft(e)=="symbol"?e:e+""}function ll(t,e){if(Ft(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var o=n.call(t,e);if(Ft(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Ir={name:"PanelMenu",extends:Ga,inheritAttrs:!1,emits:["update:expandedKeys","panel-open","panel-close"],data:function(){return{id:this.$attrs.id,activeItem:null,activeItems:[]}},watch:{"$attrs.id":function(e){this.id=e||pn()}},mounted:function(){this.id=this.id||pn()},methods:{getItemProp:function(e,n){return e?Ie(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),xt(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=Ot(e.currentTarget,"data-p-active")===!0?Be(e.currentTarget.nextElementSibling,'[data-pc-section="rootlist"]'):null;n?xt(n):this.updateFocusedHeader({originalEvent:e,focusOnNext:!0}),e.preventDefault()},onHeaderArrowUpKey:function(e){var n=this.findPrevHeader(e.currentTarget.parentElement)||this.findLastHeader(),o=Ot(n,"data-p-active")===!0?Be(n.nextElementSibling,'[data-pc-section="rootlist"]'):null;o?xt(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?Ot(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?Ot(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,s=n.currentTarget.closest('[data-pc-section="panel"]'),l=r?Be(s,'[data-pc-section="header"]'):o?this.findNextHeader(s):this.findPrevHeader(s);l?this.changeFocusedHeader(n,l):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),s=r?"panel-close":"panel-open";this.activeItem=o?n:this.activeItem&&yt(n,this.activeItem)?null:n,this.multiple&&(this.activeItems.some(function(l){return yt(n,l)})?this.activeItems=this.activeItems.filter(function(l){return!yt(n,l)}):this.activeItems.push(n)),this.changeExpandedKeys({item:n,expanded:!r}),this.$emit(s,{originalEvent:e,item:n})}},changeExpandedKeys:function(e){var n=e.item,o=e.expanded,r=o===void 0?!1:o;if(this.expandedKeys){var s=il({},this.expandedKeys);r?s[n.key]=!0:delete s[n.key],this.$emit("update:expandedKeys",s)}},changeFocusedHeader:function(e,n){n&&xt(n)},getMenuItemProps:function(e,n){return{icon:i.mergeProps({class:[this.cx("headerIcon"),this.getItemProp(e,"icon")]},this.getPTOptions("headerIcon",e,n)),label:i.mergeProps({class:this.cx("headerLabel")},this.getPTOptions("headerLabel",e,n))}}},components:{PanelMenuList:Cr,ChevronRightIcon:Zn,ChevronDownIcon:Xn}},cl=["id"],ul=["id","tabindex","aria-label","aria-expanded","aria-controls","aria-disabled","onClick","onKeydown","data-p-active","data-p-disabled"],dl=["href"],fl=["id","aria-labelledby"];function ml(t,e,n,o,r,s){var l=i.resolveComponent("PanelMenuList");return i.openBlock(),i.createElementBlock("div",i.mergeProps({id:r.id,class:t.cx("root")},t.ptmi("root")),[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.model,function(a,c){return i.openBlock(),i.createElementBlock(i.Fragment,{key:s.getPanelKey(c)},[s.isItemVisible(a)?(i.openBlock(),i.createElementBlock("div",i.mergeProps({key:0,style:s.getItemProp(a,"style"),class:[t.cx("panel"),s.getItemProp(a,"class")],ref_for:!0},t.ptm("panel")),[i.createElementVNode("div",i.mergeProps({id:s.getHeaderId(c),class:[t.cx("header",{item:a}),s.getItemProp(a,"headerClass")],tabindex:s.isItemDisabled(a)?-1:t.tabindex,role:"button","aria-label":s.getItemLabel(a),"aria-expanded":s.isItemActive(a),"aria-controls":s.getContentId(c),"aria-disabled":s.isItemDisabled(a),onClick:function(f){return s.onHeaderClick(f,a)},onKeydown:function(f){return s.onHeaderKeyDown(f,a)},ref_for:!0},s.getPTOptions("header",a,c),{"data-p-active":s.isItemActive(a),"data-p-disabled":s.isItemDisabled(a)}),[i.createElementVNode("div",i.mergeProps({class:t.cx("headerContent"),ref_for:!0},s.getPTOptions("headerContent",a,c)),[t.$slots.item?(i.openBlock(),i.createBlock(i.resolveDynamicComponent(t.$slots.item),{key:1,item:a,root:!0,active:s.isItemActive(a),hasSubmenu:s.getItemProp(a,"items"),label:s.getItemLabel(a),props:s.getMenuItemProps(a,c)},null,8,["item","active","hasSubmenu","label","props"])):(i.openBlock(),i.createElementBlock("a",i.mergeProps({key:0,href:s.getItemProp(a,"url"),class:t.cx("headerLink"),tabindex:-1,ref_for:!0},s.getPTOptions("headerLink",a,c)),[s.getItemProp(a,"items")?i.renderSlot(t.$slots,"submenuicon",{key:0,active:s.isItemActive(a)},function(){return[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(s.isItemActive(a)?"ChevronDownIcon":"ChevronRightIcon"),i.mergeProps({class:t.cx("submenuIcon"),ref_for:!0},s.getPTOptions("submenuIcon",a,c)),null,16,["class"]))]}):i.createCommentVNode("",!0),t.$slots.headericon?(i.openBlock(),i.createBlock(i.resolveDynamicComponent(t.$slots.headericon),{key:1,item:a,class:i.normalizeClass([t.cx("headerIcon"),s.getItemProp(a,"icon")])},null,8,["item","class"])):s.getItemProp(a,"icon")?(i.openBlock(),i.createElementBlock("span",i.mergeProps({key:2,class:[t.cx("headerIcon"),s.getItemProp(a,"icon")],ref_for:!0},s.getPTOptions("headerIcon",a,c)),null,16)):i.createCommentVNode("",!0),i.createElementVNode("span",i.mergeProps({class:t.cx("headerLabel"),ref_for:!0},s.getPTOptions("headerLabel",a,c)),i.toDisplayString(s.getItemLabel(a)),17)],16,dl))],16)],16,ul),i.createVNode(i.Transition,i.mergeProps({name:"p-toggleable-content",ref_for:!0},t.ptm("transition")),{default:i.withCtx(function(){return[i.withDirectives(i.createElementVNode("div",i.mergeProps({id:s.getContentId(c),class:t.cx("contentContainer"),role:"region","aria-labelledby":s.getHeaderId(c),ref_for:!0},t.ptm("contentContainer")),[s.getItemProp(a,"items")?(i.openBlock(),i.createElementBlock("div",i.mergeProps({key:0,class:t.cx("content"),ref_for:!0},t.ptm("content")),[i.createVNode(l,{panelId:s.getPanelId(c),items:s.getItemProp(a,"items"),templates:t.$slots,expandedKeys:t.expandedKeys,onItemToggle:s.changeExpandedKeys,onHeaderFocus:s.updateFocusedHeader,pt:t.pt,unstyled:t.unstyled},null,8,["panelId","items","templates","expandedKeys","onItemToggle","onHeaderFocus","pt","unstyled"])],16)):i.createCommentVNode("",!0)],16,fl),[[i.vShow,s.isItemActive(a)]])]}),_:2},1040)],16)):i.createCommentVNode("",!0)],64)}),128))],16,cl)}Ir.render=ml;const pl={class:"panel-menu-wrapper select-none"},hl=["data-active","onClick"],gl={key:0,class:"material-symbols-outlined item-menu-icon-left"},yl=["textContent"],bl=["onClick"],vl={key:0,class:"material-symbols-outlined item-menu-icon-left"},wl=["textContent"],kl={key:2,class:i.normalizeClass(["item-menu"])},_l={key:0,class:"material-symbols-outlined item-menu-icon-left"},Sl=["textContent"],Cl=et(i.defineComponent({__name:"NavMenu",props:{items:{}},setup(t){const e=t,n=(s,l)=>{s.disabled||l()},o=(s,l)=>{l.disabled||typeof l.command=="function"&&l.command(s)},r=s=>typeof s.label=="function"?s.label():s.label??"Item";return(s,l)=>{const a=i.resolveComponent("router-link");return i.openBlock(),i.createElementBlock("div",pl,[i.createVNode(i.unref(Ir),{model:e.items,unstyled:!0},{item:i.withCtx(({item:c,active:d})=>[c.to?(i.openBlock(),i.createBlock(a,{key:0,to:c.to,custom:""},{default:i.withCtx(({navigate:f,isActive:p})=>[i.createElementVNode("a",{class:i.normalizeClass(["item-menu",{disabled:c.disabled}]),"data-active":p,onClick:i.withModifiers(y=>n(c,f),["prevent"])},[c.icon?(i.openBlock(),i.createElementBlock("span",gl,i.toDisplayString(c.icon),1)):i.createCommentVNode("",!0),i.createElementVNode("span",{textContent:i.toDisplayString(r(c))},null,8,yl)],10,hl)]),_:2},1032,["to"])):typeof c.command=="function"?(i.openBlock(),i.createElementBlock("span",{key:1,class:i.normalizeClass(["item-menu",{disabled:c.disabled}]),onClick:i.withModifiers(f=>o(f,c),["stop"])},[c.icon?(i.openBlock(),i.createElementBlock("span",vl,i.toDisplayString(c.icon),1)):i.createCommentVNode("",!0),i.createElementVNode("span",{textContent:i.toDisplayString(r(c))},null,8,wl)],10,bl)):(i.openBlock(),i.createElementBlock("a",kl,[c.icon?(i.openBlock(),i.createElementBlock("span",_l,i.toDisplayString(c.icon),1)):i.createCommentVNode("",!0),i.createElementVNode("span",{textContent:i.toDisplayString(r(c))},null,8,Sl),l[0]||(l[0]=i.createElementVNode("div",{class:"sep"},null,-1)),i.createElementVNode("span",{class:i.normalizeClass(["material-symbols-outlined arrow",{"--expand":d}])}," chevron_right ",2)]))]),_:1},8,["model"])])}}}),[["__scopeId","data-v-cf31441a"]]),El=i.defineComponent({__name:"HelpButton",props:{title:{},tooltip:{},size:{},color:{},filled:{type:Boolean},icon:{}},setup(t){const e=t;i.useSlots();const n=i.ref(!1);function o(){n.value=!0}return(r,s)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[i.renderSlot(r.$slots,"anchor",i.normalizeProps(i.guardReactiveProps({Show:o})),()=>[i.createVNode(Ue,{button:!0,icon:e.icon??"help",size:e.size??"sm",filled:e.filled,color:e.color??"info",tooltip:e.tooltip??"Ajuda",style:{minWidth:"fit-content"},onClick:o},null,8,["icon","size","filled","color","tooltip"])]),i.createVNode(jo,{visible:n.value,"onUpdate:visible":s[0]||(s[0]=l=>n.value=l),position:"center"},{title:i.withCtx(()=>[i.createElementVNode("b",null,i.toDisplayString(e.title??"Ajuda"),1)]),default:i.withCtx(()=>[i.renderSlot(r.$slots,"default")]),_:3},8,["visible"])],64))}}),Il=et(i.defineComponent({__name:"Content",props:{fluid:{type:Boolean}},setup(t){const e=t;return i.useSlots(),(n,o)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["sf-content-wrapper",{"--fluid":e.fluid}])},[i.renderSlot(n.$slots,"default",{},void 0,!0)],2))}}),[["__scopeId","data-v-32e5acfa"]]),Tr=Symbol();class Tl{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 zt=new Tl,Ar="SweetAlert2:",Al=t=>{const e=[];for(let n=0;n<t.length;n++)e.indexOf(t[n])===-1&&e.push(t[n]);return e},eo=t=>t.charAt(0).toUpperCase()+t.slice(1),Te=t=>Array.prototype.slice.call(t),_e=t=>{console.warn(`${Ar} ${typeof t=="object"?t.join(" "):t}`)},lt=t=>{console.error(`${Ar} ${t}`)},Pr=[],Pl=t=>{Pr.includes(t)||(Pr.push(t),_e(t))},Ll=(t,e)=>{Pl(`"${t}" is deprecated and will be removed in the next major release. Please use "${e}" instead.`)},vn=t=>typeof t=="function"?t():t,to=t=>t&&typeof t.toPromise=="function",Kt=t=>to(t)?t.toPromise():Promise.resolve(t),no=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},xl=["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"],Ol={},$l=["allowOutsideClick","allowEnterKey","backdrop","focusConfirm","focusDeny","focusCancel","returnFocus","heightAuto","keydownListenerCapture"],Lr=t=>Object.prototype.hasOwnProperty.call(bt,t),xr=t=>xl.indexOf(t)!==-1,oo=t=>Ol[t],Bl=t=>{Lr(t)||_e(`Unknown parameter "${t}"`)},Nl=t=>{$l.includes(t)&&_e(`The parameter "${t}" is incompatible with toasts`)},Ml=t=>{oo(t)&&Ll(t,oo(t))},Dl=t=>{!t.backdrop&&t.allowOutsideClick&&_e('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`');for(const e in t)Bl(e),t.toast&&Nl(e),Ml(e)},Rl="swal2-",Or=t=>{const e={};for(const n in t)e[t[n]]=Rl+t[n];return e},g=Or(["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"]),Wt=Or(["success","warning","info","question","error"]),ae=()=>document.body.querySelector(`.${g.container}`),Gt=t=>{const e=ae();return e?e.querySelector(t):null},Le=t=>Gt(`.${t}`),J=()=>Le(g.popup),qt=()=>Le(g.icon),$r=()=>Le(g.title),wn=()=>Le(g["html-container"]),Br=()=>Le(g.image),Nr=()=>Le(g["progress-steps"]),kn=()=>Le(g["validation-message"]),De=()=>Gt(`.${g.actions} .${g.confirm}`),ot=()=>Gt(`.${g.actions} .${g.deny}`),Ul=()=>Le(g["input-label"]),vt=()=>Gt(`.${g.loader}`),ct=()=>Gt(`.${g.actions} .${g.cancel}`),Yt=()=>Le(g.actions),Mr=()=>Le(g.footer),_n=()=>Le(g["timer-progress-bar"]),ro=()=>Le(g.close),Vl=`
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
- `,io=()=>{const t=Te(J().querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])')).sort((n,o)=>{const r=parseInt(n.getAttribute("tabindex")),s=parseInt(o.getAttribute("tabindex"));return r>s?1:r<s?-1:0}),e=Te(J().querySelectorAll(Hl)).filter(n=>n.getAttribute("tabindex")!=="-1");return Pl(t.concat(e)).filter(n=>Ae(n))},so=()=>Ye(document.body,g.shown)&&!Ye(document.body,g["toast-shown"])&&!Ye(document.body,g["no-backdrop"]),Sn=()=>J()&&Ye(J(),g.toast),jl=()=>J().hasAttribute("data-loading"),wt={previousBodyPadding:null},le=(t,e)=>{if(t.textContent="",e){const o=new DOMParser().parseFromString(e,"text/html");Te(o.querySelector("head").childNodes).forEach(r=>{t.appendChild(r)}),Te(o.querySelector("body").childNodes).forEach(r=>{t.appendChild(r)})}},Ye=(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},Fl=(t,e)=>{Te(t.classList).forEach(n=>{!Object.values(g).includes(n)&&!Object.values(Wt).includes(n)&&!Object.values(e.showClass).includes(n)&&t.classList.remove(n)})},xe=(t,e,n)=>{if(Fl(t,e),e.customClass&&e.customClass[n]){if(typeof e.customClass[n]!="string"&&!e.customClass[n].forEach)return _e(`Invalid type of customClass.${n}! Expected string or iterable object, got "${typeof e.customClass[n]}"`);W(t,e.customClass[n])}},ao=(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}`)}},Dr=t=>{if(t.focus(),t.type!=="file"){const e=t.value;t.value="",t.value=e}},Rr=(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)}))},W=(t,e)=>{Rr(t,e,!0)},Ve=(t,e)=>{Rr(t,e,!1)},rt=(t,e)=>{const n=Te(t.childNodes);for(let o=0;o<n.length;o++)if(Ye(n[o],e))return n[o]},Xt=(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)},ie=(t,e="flex")=>{t.style.display=e},ce=t=>{t.style.display="none"},Ur=(t,e,n,o)=>{const r=t.querySelector(e);r&&(r.style[n]=o)},Cn=(t,e,n)=>{e?ie(t,n):ce(t)},Ae=t=>!!(t&&(t.offsetWidth||t.offsetHeight||t.getClientRects().length)),zl=()=>!Ae(De())&&!Ae(ot())&&!Ae(ct()),Vr=t=>t.scrollHeight>t.clientHeight,Hr=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},lo=(t,e=!1)=>{const n=_n();Ae(n)&&(e&&(n.style.transition="none",n.style.width="100%"),setTimeout(()=>{n.style.transition=`width ${t/1e3}s linear`,n.style.width="0%"},10))},Kl=()=>{const t=_n(),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}%`},jr=()=>typeof window>"u"||typeof document>"u",Wl=100,V={},Gl=()=>{V.previousActiveElement&&V.previousActiveElement.focus?(V.previousActiveElement.focus(),V.previousActiveElement=null):document.body&&document.body.focus()},ql=t=>new Promise(e=>{if(!t)return e();const n=window.scrollX,o=window.scrollY;V.restoreFocusTimeout=setTimeout(()=>{Gl(),e()},Wl),window.scrollTo(n,o)}),Yl=`
356
+ `,io=()=>{const t=Te(J().querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])')).sort((n,o)=>{const r=parseInt(n.getAttribute("tabindex")),s=parseInt(o.getAttribute("tabindex"));return r>s?1:r<s?-1:0}),e=Te(J().querySelectorAll(Vl)).filter(n=>n.getAttribute("tabindex")!=="-1");return Al(t.concat(e)).filter(n=>Ae(n))},so=()=>Ye(document.body,g.shown)&&!Ye(document.body,g["toast-shown"])&&!Ye(document.body,g["no-backdrop"]),Sn=()=>J()&&Ye(J(),g.toast),Hl=()=>J().hasAttribute("data-loading"),wt={previousBodyPadding:null},le=(t,e)=>{if(t.textContent="",e){const o=new DOMParser().parseFromString(e,"text/html");Te(o.querySelector("head").childNodes).forEach(r=>{t.appendChild(r)}),Te(o.querySelector("body").childNodes).forEach(r=>{t.appendChild(r)})}},Ye=(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},jl=(t,e)=>{Te(t.classList).forEach(n=>{!Object.values(g).includes(n)&&!Object.values(Wt).includes(n)&&!Object.values(e.showClass).includes(n)&&t.classList.remove(n)})},xe=(t,e,n)=>{if(jl(t,e),e.customClass&&e.customClass[n]){if(typeof e.customClass[n]!="string"&&!e.customClass[n].forEach)return _e(`Invalid type of customClass.${n}! Expected string or iterable object, got "${typeof e.customClass[n]}"`);W(t,e.customClass[n])}},ao=(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}`)}},Dr=t=>{if(t.focus(),t.type!=="file"){const e=t.value;t.value="",t.value=e}},Rr=(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)}))},W=(t,e)=>{Rr(t,e,!0)},Ve=(t,e)=>{Rr(t,e,!1)},rt=(t,e)=>{const n=Te(t.childNodes);for(let o=0;o<n.length;o++)if(Ye(n[o],e))return n[o]},Xt=(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)},ie=(t,e="flex")=>{t.style.display=e},ce=t=>{t.style.display="none"},Ur=(t,e,n,o)=>{const r=t.querySelector(e);r&&(r.style[n]=o)},Cn=(t,e,n)=>{e?ie(t,n):ce(t)},Ae=t=>!!(t&&(t.offsetWidth||t.offsetHeight||t.getClientRects().length)),Fl=()=>!Ae(De())&&!Ae(ot())&&!Ae(ct()),Vr=t=>t.scrollHeight>t.clientHeight,Hr=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},lo=(t,e=!1)=>{const n=_n();Ae(n)&&(e&&(n.style.transition="none",n.style.width="100%"),setTimeout(()=>{n.style.transition=`width ${t/1e3}s linear`,n.style.width="0%"},10))},zl=()=>{const t=_n(),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}%`},jr=()=>typeof window>"u"||typeof document>"u",Kl=100,V={},Wl=()=>{V.previousActiveElement&&V.previousActiveElement.focus?(V.previousActiveElement.focus(),V.previousActiveElement=null):document.body&&document.body.focus()},Gl=t=>new Promise(e=>{if(!t)return e();const n=window.scrollX,o=window.scrollY;V.restoreFocusTimeout=setTimeout(()=>{Wl(),e()},Kl),window.scrollTo(n,o)}),ql=`
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,31 +386,31 @@ 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,""),Xl=()=>{const t=ae();return t?(t.remove(),Ve([document.documentElement,document.body],[g["no-backdrop"],g["toast-shown"],g["has-column"]]),!0):!1},ut=()=>{V.currentInstance.resetValidationMessage()},Zl=()=>{const t=J(),e=rt(t,g.input),n=rt(t,g.file),o=t.querySelector(`.${g.range} input`),r=t.querySelector(`.${g.range} output`),s=rt(t,g.select),a=t.querySelector(`.${g.checkbox} input`),l=rt(t,g.textarea);e.oninput=ut,n.onchange=ut,s.onchange=ut,a.onchange=ut,l.oninput=ut,o.oninput=()=>{ut(),r.value=o.value},o.onchange=()=>{ut(),o.nextSibling.value=o.value}},Jl=t=>typeof t=="string"?document.querySelector(t):t,Ql=t=>{const e=J();e.setAttribute("role",t.toast?"alert":"dialog"),e.setAttribute("aria-live",t.toast?"polite":"assertive"),t.toast||e.setAttribute("aria-modal","true")},ec=t=>{window.getComputedStyle(t).direction==="rtl"&&W(ae(),g.rtl)},tc=t=>{const e=Xl();if(jr()){lt("SweetAlert2 requires document to initialize");return}const n=document.createElement("div");n.className=g.container,e&&W(n,g["no-transition"]),le(n,Yl);const o=Jl(t.target);o.appendChild(n),Ql(t),ec(o),Zl()},co=(t,e)=>{t instanceof HTMLElement?e.appendChild(t):typeof t=="object"?nc(t,e):t&&le(e,t)},nc=(t,e)=>{t.jquery?oc(e,t):le(e,t.toString())},oc=(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))},Zt=(()=>{if(jr())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})(),rc=()=>{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},ic=(t,e)=>{const n=Yt(),o=vt();!e.showConfirmButton&&!e.showDenyButton&&!e.showCancelButton?ce(n):ie(n),xe(n,e,"actions"),sc(n,o,e),le(o,e.loaderHtml),xe(o,e,"loader")};function sc(t,e,n){const o=De(),r=ot(),s=ct();uo(o,"confirm",n),uo(r,"deny",n),uo(s,"cancel",n),ac(o,r,s,n),n.reverseButtons&&(n.toast?(t.insertBefore(s,o),t.insertBefore(r,o)):(t.insertBefore(s,e),t.insertBefore(r,e),t.insertBefore(o,e)))}function ac(t,e,n,o){if(!o.buttonsStyling)return Ve([t,e,n],g.styled);W([t,e,n],g.styled),o.confirmButtonColor&&(t.style.backgroundColor=o.confirmButtonColor,W(t,g["default-outline"])),o.denyButtonColor&&(e.style.backgroundColor=o.denyButtonColor,W(e,g["default-outline"])),o.cancelButtonColor&&(n.style.backgroundColor=o.cancelButtonColor,W(n,g["default-outline"]))}function uo(t,e,n){Cn(t,n[`show${eo(e)}Button`],"inline-block"),le(t,n[`${e}ButtonText`]),t.setAttribute("aria-label",n[`${e}ButtonAriaLabel`]),t.className=g[e],xe(t,n,`${e}Button`),W(t,n[`${e}ButtonClass`])}function lc(t,e){typeof e=="string"?t.style.background=e:e||W([document.documentElement,document.body],g["no-backdrop"])}function cc(t,e){e in g?W(t,g[e]):(_e('The "position" parameter is not valid, defaulting to "center"'),W(t,g.center))}function uc(t,e){if(e&&typeof e=="string"){const n=`grow-${e}`;n in g&&W(t,g[n])}}const dc=(t,e)=>{const n=ae();n&&(lc(n,e.backdrop),cc(n,e.position),uc(n,e.grow),xe(n,e,"container"))},H={awaitingPromise:new WeakMap,promise:new WeakMap,innerParams:new WeakMap,domCache:new WeakMap},fc=["input","file","range","select","radio","checkbox","textarea"],mc=(t,e)=>{const n=J(),o=H.innerParams.get(t),r=!o||e.input!==o.input;fc.forEach(s=>{const a=g[s],l=rt(n,a);gc(s,e.inputAttributes),l.className=a,r&&ce(l)}),e.input&&(r&&pc(e),yc(e))},pc=t=>{if(!Se[t.input])return lt(`Unexpected type of input! Expected "text", "email", "password", "number", "tel", "select", "radio", "checkbox", "textarea", "file" or "url", got "${t.input}"`);const e=Fr(t.input),n=Se[t.input](e,t);ie(n),setTimeout(()=>{Dr(n)})},hc=t=>{for(let e=0;e<t.attributes.length;e++){const n=t.attributes[e].name;["type","value","style"].includes(n)||t.removeAttribute(n)}},gc=(t,e)=>{const n=ao(J(),t);if(n){hc(n);for(const o in e)n.setAttribute(o,e[o])}},yc=t=>{const e=Fr(t.input);t.customClass&&W(e,t.customClass.input)},fo=(t,e)=>{(!t.placeholder||e.inputPlaceholder)&&(t.placeholder=e.inputPlaceholder)},Jt=(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,W(o,n.customClass.inputLabel),o.innerText=n.inputLabel,e.insertAdjacentElement("beforebegin",o)}},Fr=t=>{const e=g[t]?g[t]:g.input;return rt(J(),e)},Se={};Se.text=Se.email=Se.password=Se.number=Se.tel=Se.url=(t,e)=>(typeof e.inputValue=="string"||typeof e.inputValue=="number"?t.value=e.inputValue:no(e.inputValue)||_e(`Unexpected type of inputValue! Expected "string", "number" or "Promise", got "${typeof e.inputValue}"`),Jt(t,t,e),fo(t,e),t.type=e.input,t),Se.file=(t,e)=>(Jt(t,t,e),fo(t,e),t),Se.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,Jt(n,t,e),t},Se.select=(t,e)=>{if(t.textContent="",e.inputPlaceholder){const n=document.createElement("option");le(n,e.inputPlaceholder),n.value="",n.disabled=!0,n.selected=!0,t.appendChild(n)}return Jt(t,t,e),t},Se.radio=t=>(t.textContent="",t),Se.checkbox=(t,e)=>{const n=ao(J(),"checkbox");n.value="1",n.id=g.checkbox,n.checked=!!e.inputValue;const o=t.querySelector("span");return le(o,e.inputPlaceholder),t},Se.textarea=(t,e)=>{t.value=e.inputValue,fo(t,e),Jt(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(J()).width),r=()=>{const s=t.offsetWidth+n(t);s>o?J().style.width=`${s}px`:J().style.width=null};new MutationObserver(r).observe(t,{attributes:!0,attributeFilter:["style"]})}}),t};const bc=(t,e)=>{const n=wn();xe(n,e,"htmlContainer"),e.html?(co(e.html,n),ie(n,"block")):e.text?(n.textContent=e.text,ie(n,"block")):ce(n),mc(t,e)},vc=(t,e)=>{const n=Mr();Cn(n,e.footer),e.footer&&co(e.footer,n),xe(n,e,"footer")},wc=(t,e)=>{const n=ro();le(n,e.closeButtonHtml),xe(n,e,"closeButton"),Cn(n,e.showCloseButton),n.setAttribute("aria-label",e.closeButtonAriaLabel)},kc=(t,e)=>{const n=H.innerParams.get(t),o=qt();if(n&&e.icon===n.icon){Kr(o,e),zr(o,e);return}if(!e.icon&&!e.iconHtml)return ce(o);if(e.icon&&Object.keys(Wt).indexOf(e.icon)===-1)return lt(`Unknown icon! Expected "success", "error", "warning", "info" or "question", got "${e.icon}"`),ce(o);ie(o),Kr(o,e),zr(o,e),W(o,e.showClass.icon)},zr=(t,e)=>{for(const n in Wt)e.icon!==n&&Ve(t,Wt[n]);W(t,Wt[e.icon]),Ec(t,e),_c(),xe(t,e,"icon")},_c=()=>{const t=J(),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},Sc=`
389
+ `.replace(/(^|\n)\s*/g,""),Yl=()=>{const t=ae();return t?(t.remove(),Ve([document.documentElement,document.body],[g["no-backdrop"],g["toast-shown"],g["has-column"]]),!0):!1},ut=()=>{V.currentInstance.resetValidationMessage()},Xl=()=>{const t=J(),e=rt(t,g.input),n=rt(t,g.file),o=t.querySelector(`.${g.range} input`),r=t.querySelector(`.${g.range} output`),s=rt(t,g.select),l=t.querySelector(`.${g.checkbox} input`),a=rt(t,g.textarea);e.oninput=ut,n.onchange=ut,s.onchange=ut,l.onchange=ut,a.oninput=ut,o.oninput=()=>{ut(),r.value=o.value},o.onchange=()=>{ut(),o.nextSibling.value=o.value}},Zl=t=>typeof t=="string"?document.querySelector(t):t,Jl=t=>{const e=J();e.setAttribute("role",t.toast?"alert":"dialog"),e.setAttribute("aria-live",t.toast?"polite":"assertive"),t.toast||e.setAttribute("aria-modal","true")},Ql=t=>{window.getComputedStyle(t).direction==="rtl"&&W(ae(),g.rtl)},ec=t=>{const e=Yl();if(jr()){lt("SweetAlert2 requires document to initialize");return}const n=document.createElement("div");n.className=g.container,e&&W(n,g["no-transition"]),le(n,ql);const o=Zl(t.target);o.appendChild(n),Jl(t),Ql(o),Xl()},co=(t,e)=>{t instanceof HTMLElement?e.appendChild(t):typeof t=="object"?tc(t,e):t&&le(e,t)},tc=(t,e)=>{t.jquery?nc(e,t):le(e,t.toString())},nc=(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))},Zt=(()=>{if(jr())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})(),oc=()=>{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},rc=(t,e)=>{const n=Yt(),o=vt();!e.showConfirmButton&&!e.showDenyButton&&!e.showCancelButton?ce(n):ie(n),xe(n,e,"actions"),ic(n,o,e),le(o,e.loaderHtml),xe(o,e,"loader")};function ic(t,e,n){const o=De(),r=ot(),s=ct();uo(o,"confirm",n),uo(r,"deny",n),uo(s,"cancel",n),sc(o,r,s,n),n.reverseButtons&&(n.toast?(t.insertBefore(s,o),t.insertBefore(r,o)):(t.insertBefore(s,e),t.insertBefore(r,e),t.insertBefore(o,e)))}function sc(t,e,n,o){if(!o.buttonsStyling)return Ve([t,e,n],g.styled);W([t,e,n],g.styled),o.confirmButtonColor&&(t.style.backgroundColor=o.confirmButtonColor,W(t,g["default-outline"])),o.denyButtonColor&&(e.style.backgroundColor=o.denyButtonColor,W(e,g["default-outline"])),o.cancelButtonColor&&(n.style.backgroundColor=o.cancelButtonColor,W(n,g["default-outline"]))}function uo(t,e,n){Cn(t,n[`show${eo(e)}Button`],"inline-block"),le(t,n[`${e}ButtonText`]),t.setAttribute("aria-label",n[`${e}ButtonAriaLabel`]),t.className=g[e],xe(t,n,`${e}Button`),W(t,n[`${e}ButtonClass`])}function ac(t,e){typeof e=="string"?t.style.background=e:e||W([document.documentElement,document.body],g["no-backdrop"])}function lc(t,e){e in g?W(t,g[e]):(_e('The "position" parameter is not valid, defaulting to "center"'),W(t,g.center))}function cc(t,e){if(e&&typeof e=="string"){const n=`grow-${e}`;n in g&&W(t,g[n])}}const uc=(t,e)=>{const n=ae();n&&(ac(n,e.backdrop),lc(n,e.position),cc(n,e.grow),xe(n,e,"container"))},H={awaitingPromise:new WeakMap,promise:new WeakMap,innerParams:new WeakMap,domCache:new WeakMap},dc=["input","file","range","select","radio","checkbox","textarea"],fc=(t,e)=>{const n=J(),o=H.innerParams.get(t),r=!o||e.input!==o.input;dc.forEach(s=>{const l=g[s],a=rt(n,l);hc(s,e.inputAttributes),a.className=l,r&&ce(a)}),e.input&&(r&&mc(e),gc(e))},mc=t=>{if(!Se[t.input])return lt(`Unexpected type of input! Expected "text", "email", "password", "number", "tel", "select", "radio", "checkbox", "textarea", "file" or "url", got "${t.input}"`);const e=Fr(t.input),n=Se[t.input](e,t);ie(n),setTimeout(()=>{Dr(n)})},pc=t=>{for(let e=0;e<t.attributes.length;e++){const n=t.attributes[e].name;["type","value","style"].includes(n)||t.removeAttribute(n)}},hc=(t,e)=>{const n=ao(J(),t);if(n){pc(n);for(const o in e)n.setAttribute(o,e[o])}},gc=t=>{const e=Fr(t.input);t.customClass&&W(e,t.customClass.input)},fo=(t,e)=>{(!t.placeholder||e.inputPlaceholder)&&(t.placeholder=e.inputPlaceholder)},Jt=(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,W(o,n.customClass.inputLabel),o.innerText=n.inputLabel,e.insertAdjacentElement("beforebegin",o)}},Fr=t=>{const e=g[t]?g[t]:g.input;return rt(J(),e)},Se={};Se.text=Se.email=Se.password=Se.number=Se.tel=Se.url=(t,e)=>(typeof e.inputValue=="string"||typeof e.inputValue=="number"?t.value=e.inputValue:no(e.inputValue)||_e(`Unexpected type of inputValue! Expected "string", "number" or "Promise", got "${typeof e.inputValue}"`),Jt(t,t,e),fo(t,e),t.type=e.input,t),Se.file=(t,e)=>(Jt(t,t,e),fo(t,e),t),Se.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,Jt(n,t,e),t},Se.select=(t,e)=>{if(t.textContent="",e.inputPlaceholder){const n=document.createElement("option");le(n,e.inputPlaceholder),n.value="",n.disabled=!0,n.selected=!0,t.appendChild(n)}return Jt(t,t,e),t},Se.radio=t=>(t.textContent="",t),Se.checkbox=(t,e)=>{const n=ao(J(),"checkbox");n.value="1",n.id=g.checkbox,n.checked=!!e.inputValue;const o=t.querySelector("span");return le(o,e.inputPlaceholder),t},Se.textarea=(t,e)=>{t.value=e.inputValue,fo(t,e),Jt(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(J()).width),r=()=>{const s=t.offsetWidth+n(t);s>o?J().style.width=`${s}px`:J().style.width=null};new MutationObserver(r).observe(t,{attributes:!0,attributeFilter:["style"]})}}),t};const yc=(t,e)=>{const n=wn();xe(n,e,"htmlContainer"),e.html?(co(e.html,n),ie(n,"block")):e.text?(n.textContent=e.text,ie(n,"block")):ce(n),fc(t,e)},bc=(t,e)=>{const n=Mr();Cn(n,e.footer),e.footer&&co(e.footer,n),xe(n,e,"footer")},vc=(t,e)=>{const n=ro();le(n,e.closeButtonHtml),xe(n,e,"closeButton"),Cn(n,e.showCloseButton),n.setAttribute("aria-label",e.closeButtonAriaLabel)},wc=(t,e)=>{const n=H.innerParams.get(t),o=qt();if(n&&e.icon===n.icon){Kr(o,e),zr(o,e);return}if(!e.icon&&!e.iconHtml)return ce(o);if(e.icon&&Object.keys(Wt).indexOf(e.icon)===-1)return lt(`Unknown icon! Expected "success", "error", "warning", "info" or "question", got "${e.icon}"`),ce(o);ie(o),Kr(o,e),zr(o,e),W(o,e.showClass.icon)},zr=(t,e)=>{for(const n in Wt)e.icon!==n&&Ve(t,Wt[n]);W(t,Wt[e.icon]),Cc(t,e),kc(),xe(t,e,"icon")},kc=()=>{const t=J(),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},_c=`
390
390
  <div class="swal2-success-circular-line-left"></div>
391
391
  <span class="swal2-success-line-tip"></span> <span class="swal2-success-line-long"></span>
392
392
  <div class="swal2-success-ring"></div> <div class="swal2-success-fix"></div>
393
393
  <div class="swal2-success-circular-line-right"></div>
394
- `,Cc=`
394
+ `,Sc=`
395
395
  <span class="swal2-x-mark">
396
396
  <span class="swal2-x-mark-line-left"></span>
397
397
  <span class="swal2-x-mark-line-right"></span>
398
398
  </span>
399
- `,Kr=(t,e)=>{t.textContent="",e.iconHtml?le(t,Wr(e.iconHtml)):e.icon==="success"?le(t,Sc):e.icon==="error"?le(t,Cc):le(t,Wr({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"])Ur(t,n,"backgroundColor",e.iconColor);Ur(t,".swal2-success-ring","borderColor",e.iconColor)}},Wr=t=>`<div class="${g["icon-content"]}">${t}</div>`,Ic=(t,e)=>{const n=Br();if(!e.imageUrl)return ce(n);ie(n,""),n.setAttribute("src",e.imageUrl),n.setAttribute("alt",e.imageAlt),Xt(n,"width",e.imageWidth),Xt(n,"height",e.imageHeight),n.className=g.image,xe(n,e,"image")},Tc=t=>{const e=document.createElement("li");return W(e,g["progress-step"]),le(e,t),e},Ac=t=>{const e=document.createElement("li");return W(e,g["progress-step-line"]),t.progressStepsDistance&&(e.style.width=t.progressStepsDistance),e},Pc=(t,e)=>{const n=Nr();if(!e.progressSteps||e.progressSteps.length===0)return ce(n);ie(n),n.textContent="",e.currentProgressStep>=e.progressSteps.length&&_e("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),e.progressSteps.forEach((o,r)=>{const s=Tc(o);if(n.appendChild(s),r===e.currentProgressStep&&W(s,g["active-progress-step"]),r!==e.progressSteps.length-1){const a=Ac(e);n.appendChild(a)}})},Lc=(t,e)=>{const n=$r();Cn(n,e.title||e.titleText,"block"),e.title&&co(e.title,n),e.titleText&&(n.innerText=e.titleText),xe(n,e,"title")},xc=(t,e)=>{const n=ae(),o=J();e.toast?(Xt(n,"width",e.width),o.style.width="100%",o.insertBefore(vt(),qt())):Xt(o,"width",e.width),Xt(o,"padding",e.padding),e.color&&(o.style.color=e.color),e.background&&(o.style.background=e.background),ce(kn()),Oc(o,e)},Oc=(t,e)=>{t.className=`${g.popup} ${Ae(t)?e.showClass.popup:""}`,e.toast?(W([document.documentElement,document.body],g["toast-shown"]),W(t,g.toast)):W(t,g.modal),xe(t,e,"popup"),typeof e.customClass=="string"&&W(t,e.customClass),e.icon&&W(t,g[`icon-${e.icon}`])},Gr=(t,e)=>{xc(t,e),dc(t,e),Pc(t,e),kc(t,e),Ic(t,e),Lc(t,e),wc(t,e),bc(t,e),ic(t,e),vc(t,e),typeof e.didRender=="function"&&e.didRender(J())},kt=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),$c=()=>{Te(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"))})},qr=()=>{Te(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")})},Yr=["swal-title","swal-html","swal-footer"],Bc=t=>{const e=typeof t.template=="string"?document.querySelector(t.template):t.template;if(!e)return{};const n=e.content;return Hc(n),Object.assign(Nc(n),Mc(n),Dc(n),Rc(n),Uc(n),Vc(n,Yr))},Nc=t=>{const e={};return Te(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},Mc=t=>{const e={};return Te(t.querySelectorAll("swal-button")).forEach(n=>{dt(n,["type","color","aria-label"]);const o=n.getAttribute("type");e[`${o}ButtonText`]=n.innerHTML,e[`show${eo(o)}Button`]=!0,n.hasAttribute("color")&&(e[`${o}ButtonColor`]=n.getAttribute("color")),n.hasAttribute("aria-label")&&(e[`${o}ButtonAriaLabel`]=n.getAttribute("aria-label"))}),e},Dc=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},Rc=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},Uc=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={},Te(o).forEach(r=>{dt(r,["value"]);const s=r.getAttribute("value"),a=r.innerHTML;e.inputOptions[s]=a})),e},Vc=(t,e)=>{const n={};for(const o in e){const r=e[o],s=t.querySelector(r);s&&(dt(s,[]),n[r.replace(/^swal-/,"")]=s.innerHTML.trim())}return n},Hc=t=>{const e=Yr.concat(["swal-param","swal-button","swal-image","swal-icon","swal-input","swal-input-option"]);Te(t.children).forEach(n=>{const o=n.tagName.toLowerCase();e.indexOf(o)===-1&&_e(`Unrecognized element <${o}>`)})},dt=(t,e)=>{Te(t.attributes).forEach(n=>{e.indexOf(n.name)===-1&&_e([`Unrecognized attribute "${n.name}" on <${t.tagName.toLowerCase()}>.`,`${e.length?`Allowed attributes are: ${e.join(", ")}`:"To set the value, use HTML within the element."}`])})},Xr={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 jc(t){t.inputValidator||Object.keys(Xr).forEach(e=>{t.input===e&&(t.inputValidator=Xr[e])})}function Fc(t){(!t.target||typeof t.target=="string"&&!document.querySelector(t.target)||typeof t.target!="string"&&!t.target.appendChild)&&(_e('Target parameter is not valid, defaulting to "body"'),t.target="body")}function zc(t){jc(t),t.showLoaderOnConfirm&&!t.preConfirm&&_e(`showLoaderOnConfirm is set to true, but preConfirm is not defined.
399
+ `,Kr=(t,e)=>{t.textContent="",e.iconHtml?le(t,Wr(e.iconHtml)):e.icon==="success"?le(t,_c):e.icon==="error"?le(t,Sc):le(t,Wr({question:"?",warning:"!",info:"i"}[e.icon]))},Cc=(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"])Ur(t,n,"backgroundColor",e.iconColor);Ur(t,".swal2-success-ring","borderColor",e.iconColor)}},Wr=t=>`<div class="${g["icon-content"]}">${t}</div>`,Ec=(t,e)=>{const n=Br();if(!e.imageUrl)return ce(n);ie(n,""),n.setAttribute("src",e.imageUrl),n.setAttribute("alt",e.imageAlt),Xt(n,"width",e.imageWidth),Xt(n,"height",e.imageHeight),n.className=g.image,xe(n,e,"image")},Ic=t=>{const e=document.createElement("li");return W(e,g["progress-step"]),le(e,t),e},Tc=t=>{const e=document.createElement("li");return W(e,g["progress-step-line"]),t.progressStepsDistance&&(e.style.width=t.progressStepsDistance),e},Ac=(t,e)=>{const n=Nr();if(!e.progressSteps||e.progressSteps.length===0)return ce(n);ie(n),n.textContent="",e.currentProgressStep>=e.progressSteps.length&&_e("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),e.progressSteps.forEach((o,r)=>{const s=Ic(o);if(n.appendChild(s),r===e.currentProgressStep&&W(s,g["active-progress-step"]),r!==e.progressSteps.length-1){const l=Tc(e);n.appendChild(l)}})},Pc=(t,e)=>{const n=$r();Cn(n,e.title||e.titleText,"block"),e.title&&co(e.title,n),e.titleText&&(n.innerText=e.titleText),xe(n,e,"title")},Lc=(t,e)=>{const n=ae(),o=J();e.toast?(Xt(n,"width",e.width),o.style.width="100%",o.insertBefore(vt(),qt())):Xt(o,"width",e.width),Xt(o,"padding",e.padding),e.color&&(o.style.color=e.color),e.background&&(o.style.background=e.background),ce(kn()),xc(o,e)},xc=(t,e)=>{t.className=`${g.popup} ${Ae(t)?e.showClass.popup:""}`,e.toast?(W([document.documentElement,document.body],g["toast-shown"]),W(t,g.toast)):W(t,g.modal),xe(t,e,"popup"),typeof e.customClass=="string"&&W(t,e.customClass),e.icon&&W(t,g[`icon-${e.icon}`])},Gr=(t,e)=>{Lc(t,e),uc(t,e),Ac(t,e),wc(t,e),Ec(t,e),Pc(t,e),vc(t,e),yc(t,e),rc(t,e),bc(t,e),typeof e.didRender=="function"&&e.didRender(J())},kt=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),Oc=()=>{Te(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"))})},qr=()=>{Te(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")})},Yr=["swal-title","swal-html","swal-footer"],$c=t=>{const e=typeof t.template=="string"?document.querySelector(t.template):t.template;if(!e)return{};const n=e.content;return Vc(n),Object.assign(Bc(n),Nc(n),Mc(n),Dc(n),Rc(n),Uc(n,Yr))},Bc=t=>{const e={};return Te(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},Nc=t=>{const e={};return Te(t.querySelectorAll("swal-button")).forEach(n=>{dt(n,["type","color","aria-label"]);const o=n.getAttribute("type");e[`${o}ButtonText`]=n.innerHTML,e[`show${eo(o)}Button`]=!0,n.hasAttribute("color")&&(e[`${o}ButtonColor`]=n.getAttribute("color")),n.hasAttribute("aria-label")&&(e[`${o}ButtonAriaLabel`]=n.getAttribute("aria-label"))}),e},Mc=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},Dc=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},Rc=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={},Te(o).forEach(r=>{dt(r,["value"]);const s=r.getAttribute("value"),l=r.innerHTML;e.inputOptions[s]=l})),e},Uc=(t,e)=>{const n={};for(const o in e){const r=e[o],s=t.querySelector(r);s&&(dt(s,[]),n[r.replace(/^swal-/,"")]=s.innerHTML.trim())}return n},Vc=t=>{const e=Yr.concat(["swal-param","swal-button","swal-image","swal-icon","swal-input","swal-input-option"]);Te(t.children).forEach(n=>{const o=n.tagName.toLowerCase();e.indexOf(o)===-1&&_e(`Unrecognized element <${o}>`)})},dt=(t,e)=>{Te(t.attributes).forEach(n=>{e.indexOf(n.name)===-1&&_e([`Unrecognized attribute "${n.name}" on <${t.tagName.toLowerCase()}>.`,`${e.length?`Allowed attributes are: ${e.join(", ")}`:"To set the value, use HTML within the element."}`])})},Xr={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 Hc(t){t.inputValidator||Object.keys(Xr).forEach(e=>{t.input===e&&(t.inputValidator=Xr[e])})}function jc(t){(!t.target||typeof t.target=="string"&&!document.querySelector(t.target)||typeof t.target!="string"&&!t.target.appendChild)&&(_e('Target parameter is not valid, defaulting to "body"'),t.target="body")}function Fc(t){Hc(t),t.showLoaderOnConfirm&&!t.preConfirm&&_e(`showLoaderOnConfirm is set to true, but preConfirm is not defined.
400
400
  showLoaderOnConfirm should be used together with preConfirm, see usage example:
401
- https://sweetalert2.github.io/#ajax-request`),Fc(t),typeof t.title=="string"&&(t.title=t.title.split(`
402
- `).join("<br />")),tc(t)}class Kc{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 Wc=()=>{wt.previousBodyPadding===null&&document.body.scrollHeight>window.innerHeight&&(wt.previousBodyPadding=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight=`${wt.previousBodyPadding+rc()}px`)},Gc=()=>{wt.previousBodyPadding!==null&&(document.body.style.paddingRight=`${wt.previousBodyPadding}px`,wt.previousBodyPadding=null)},qc=()=>{if((/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1)&&!Ye(document.body,g.iosfix)){const e=document.body.scrollTop;document.body.style.top=`${e*-1}px`,W(document.body,g.iosfix),Xc(),Yc()}},Yc=()=>{const t=navigator.userAgent,e=!!t.match(/iPad/i)||!!t.match(/iPhone/i),n=!!t.match(/WebKit/i);e&&n&&!t.match(/CriOS/i)&&J().scrollHeight>window.innerHeight-44&&(ae().style.paddingBottom="44px")},Xc=()=>{const t=ae();let e;t.ontouchstart=n=>{e=Zc(n)},t.ontouchmove=n=>{e&&(n.preventDefault(),n.stopPropagation())}},Zc=t=>{const e=t.target,n=ae();return Jc(t)||Qc(t)?!1:e===n||!Vr(n)&&e.tagName!=="INPUT"&&e.tagName!=="TEXTAREA"&&!(Vr(wn())&&wn().contains(e))},Jc=t=>t.touches&&t.touches.length&&t.touches[0].touchType==="stylus",Qc=t=>t.touches&&t.touches.length>1,eu=()=>{if(Ye(document.body,g.iosfix)){const t=parseInt(document.body.style.top,10);Ve(document.body,g.iosfix),document.body.style.top="",document.body.scrollTop=t*-1}},Zr=10,tu=t=>{const e=ae(),n=J();typeof t.willOpen=="function"&&t.willOpen(n);const r=window.getComputedStyle(document.body).overflowY;ru(e,n,t),setTimeout(()=>{nu(e,n)},Zr),so()&&(ou(e,t.scrollbarPadding,r),$c()),!Sn()&&!V.previousActiveElement&&(V.previousActiveElement=document.activeElement),typeof t.didOpen=="function"&&setTimeout(()=>t.didOpen(n)),Ve(e,g["no-transition"])},Jr=t=>{const e=J();if(t.target!==e)return;const n=ae();e.removeEventListener(Zt,Jr),n.style.overflowY="auto"},nu=(t,e)=>{Zt&&Hr(e)?(t.style.overflowY="hidden",e.addEventListener(Zt,Jr)):t.style.overflowY="auto"},ou=(t,e,n)=>{qc(),e&&n!=="hidden"&&Wc(),setTimeout(()=>{t.scrollTop=0})},ru=(t,e,n)=>{W(t,n.showClass.backdrop),e.style.setProperty("opacity","0","important"),ie(e,"grid"),setTimeout(()=>{W(e,n.showClass.popup),e.style.removeProperty("opacity")},Zr),W([document.documentElement,document.body],g.shown),n.heightAuto&&n.backdrop&&!n.toast&&W([document.documentElement,document.body],g["height-auto"])},_t=t=>{let e=J();e||new ft,e=J();const n=vt();Sn()?ce(qt()):iu(e,t),ie(n),e.setAttribute("data-loading",!0),e.setAttribute("aria-busy",!0),e.focus()},iu=(t,e)=>{const n=Yt(),o=vt();!e&&Ae(De())&&(e=De()),ie(n),e&&(ce(e),o.setAttribute("data-button-to-replace",e.className)),o.parentNode.insertBefore(o,e),W([t,n],g.loading)},su=(t,e)=>{e.input==="select"||e.input==="radio"?du(t,e):["text","email","number","tel","textarea"].includes(e.input)&&(to(e.inputValue)||no(e.inputValue))&&(_t(De()),fu(t,e))},au=(t,e)=>{const n=t.getInput();if(!n)return null;switch(e.input){case"checkbox":return lu(n);case"radio":return cu(n);case"file":return uu(n);default:return e.inputAutoTrim?n.value.trim():n.value}},lu=t=>t.checked?1:0,cu=t=>t.checked?t.value:null,uu=t=>t.files.length?t.getAttribute("multiple")!==null?t.files:t.files[0]:null,du=(t,e)=>{const n=J(),o=r=>mu[e.input](n,mo(r),e);to(e.inputOptions)||no(e.inputOptions)?(_t(De()),Kt(e.inputOptions).then(r=>{t.hideLoading(),o(r)})):typeof e.inputOptions=="object"?o(e.inputOptions):lt(`Unexpected type of inputOptions! Expected object, Map or Promise, got ${typeof e.inputOptions}`)},fu=(t,e)=>{const n=t.getInput();ce(n),Kt(e.inputValue).then(o=>{n.value=e.input==="number"?parseFloat(o)||0:`${o}`,ie(n),n.focus(),t.hideLoading()}).catch(o=>{lt(`Error in inputValue promise: ${o}`),n.value="",ie(n),n.focus(),t.hideLoading()})},mu={select:(t,e,n)=>{const o=rt(t,g.select),r=(s,a,l)=>{const c=document.createElement("option");c.value=l,le(c,a),c.selected=Qr(l,n.inputValue),s.appendChild(c)};e.forEach(s=>{const a=s[0],l=s[1];if(Array.isArray(l)){const c=document.createElement("optgroup");c.label=a,c.disabled=!1,o.appendChild(c),l.forEach(d=>r(c,d[1],d[0]))}else r(o,l,a)}),o.focus()},radio:(t,e,n)=>{const o=rt(t,g.radio);e.forEach(s=>{const a=s[0],l=s[1],c=document.createElement("input"),d=document.createElement("label");c.type="radio",c.name=g.radio,c.value=a,Qr(a,n.inputValue)&&(c.checked=!0);const f=document.createElement("span");le(f,l),f.className=g.label,d.appendChild(c),d.appendChild(f),o.appendChild(d)});const r=o.querySelectorAll("input");r.length&&r[0].focus()}},mo=t=>{const e=[];return typeof Map<"u"&&t instanceof Map?t.forEach((n,o)=>{let r=n;typeof r=="object"&&(r=mo(r)),e.push([o,r])}):Object.keys(t).forEach(n=>{let o=t[n];typeof o=="object"&&(o=mo(o)),e.push([n,o])}),e},Qr=(t,e)=>e&&e.toString()===t.toString();function ei(){const t=H.innerParams.get(this);if(!t)return;const e=H.domCache.get(this);ce(e.loader),Sn()?t.icon&&ie(qt()):pu(e),Ve([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 pu=t=>{const e=t.popup.getElementsByClassName(t.loader.getAttribute("data-button-to-replace"));e.length?ie(e[0],"inline-block"):zl()&&ce(t.actions)};function hu(t){const e=H.innerParams.get(t||this),n=H.domCache.get(t||this);return n?ao(n.popup,e.input):null}const Qt={swalPromiseResolve:new WeakMap,swalPromiseReject:new WeakMap},gu=()=>Ae(J()),ti=()=>De()&&De().click(),yu=()=>ot()&&ot().click(),bu=()=>ct()&&ct().click(),ni=t=>{t.keydownTarget&&t.keydownHandlerAdded&&(t.keydownTarget.removeEventListener("keydown",t.keydownHandler,{capture:t.keydownListenerCapture}),t.keydownHandlerAdded=!1)},vu=(t,e,n,o)=>{ni(e),n.toast||(e.keydownHandler=r=>ku(t,r,o),e.keydownTarget=n.keydownListenerCapture?window:J(),e.keydownListenerCapture=n.keydownListenerCapture,e.keydownTarget.addEventListener("keydown",e.keydownHandler,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!0)},po=(t,e,n)=>{const o=io();if(o.length)return e=e+n,e===o.length?e=0:e===-1&&(e=o.length-1),o[e].focus();J().focus()},oi=["ArrowRight","ArrowDown"],wu=["ArrowLeft","ArrowUp"],ku=(t,e,n)=>{const o=H.innerParams.get(t);o&&(e.isComposing||e.keyCode===229||(o.stopKeydownPropagation&&e.stopPropagation(),e.key==="Enter"?_u(t,e,o):e.key==="Tab"?Su(e,o):[...oi,...wu].includes(e.key)?Cu(e.key):e.key==="Escape"&&Eu(e,o,n)))},_u=(t,e,n)=>{if(vn(n.allowEnterKey)&&e.target&&t.getInput()&&e.target.outerHTML===t.getInput().outerHTML){if(["textarea","file"].includes(n.input))return;ti(),e.preventDefault()}},Su=(t,e)=>{const n=t.target,o=io();let r=-1;for(let s=0;s<o.length;s++)if(n===o[s]){r=s;break}t.shiftKey?po(e,r,-1):po(e,r,1),t.stopPropagation(),t.preventDefault()},Cu=t=>{const e=De(),n=ot(),o=ct();if(![e,n,o].includes(document.activeElement))return;const r=oi.includes(t)?"nextElementSibling":"previousElementSibling";let s=document.activeElement;for(let a=0;a<Yt().children.length;a++){if(s=s[r],!s)return;if(Ae(s)&&s instanceof HTMLButtonElement)break}s instanceof HTMLButtonElement&&s.focus()},Eu=(t,e,n)=>{vn(e.allowEscapeKey)&&(t.preventDefault(),n(kt.esc))};function ri(t,e,n,o){Sn()?ii(t,o):(ql(n).then(()=>ii(t,o)),ni(V)),/^((?!chrome|android).)*safari/i.test(navigator.userAgent)?(e.setAttribute("style","display:none !important"),e.removeAttribute("class"),e.innerHTML=""):e.remove(),so()&&(Gc(),eu(),qr()),Iu()}function Iu(){Ve([document.documentElement,document.body],[g.shown,g["height-auto"],g["no-backdrop"],g["toast-shown"]])}function En(t){t=Lu(t);const e=Qt.swalPromiseResolve.get(this),n=Au(this);this.isAwaitingPromise()?t.isDismissed||(en(this),e(t)):n&&e(t)}function Tu(){return!!H.awaitingPromise.get(this)}const Au=t=>{const e=J();if(!e)return!1;const n=H.innerParams.get(t);if(!n||Ye(e,n.hideClass.popup))return!1;Ve(e,n.showClass.popup),W(e,n.hideClass.popup);const o=ae();return Ve(o,n.showClass.backdrop),W(o,n.hideClass.backdrop),xu(t,e,n),!0};function Pu(t){const e=Qt.swalPromiseReject.get(this);en(this),e&&e(t)}const en=t=>{t.isAwaitingPromise()&&(H.awaitingPromise.delete(t),H.innerParams.get(t)||t._destroy())},Lu=t=>typeof t>"u"?{isConfirmed:!1,isDenied:!1,isDismissed:!0}:Object.assign({isConfirmed:!1,isDenied:!1,isDismissed:!1},t),xu=(t,e,n)=>{const o=ae(),r=Zt&&Hr(e);typeof n.willClose=="function"&&n.willClose(e),r?Ou(t,e,o,n.returnFocus,n.didClose):ri(t,o,n.returnFocus,n.didClose)},Ou=(t,e,n,o,r)=>{V.swalCloseEventFinishedCallback=ri.bind(null,t,n,o,r),e.addEventListener(Zt,function(s){s.target===e&&(V.swalCloseEventFinishedCallback(),delete V.swalCloseEventFinishedCallback)})},ii=(t,e)=>{setTimeout(()=>{typeof e=="function"&&e.bind(t.params)(),t._destroy()})};function si(t,e,n){const o=H.domCache.get(t);e.forEach(r=>{o[r].disabled=n})}function ai(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 $u(){si(this,["confirmButton","denyButton","cancelButton"],!1)}function Bu(){si(this,["confirmButton","denyButton","cancelButton"],!0)}function Nu(){return ai(this.getInput(),!1)}function Mu(){return ai(this.getInput(),!0)}function Du(t){const e=H.domCache.get(this),n=H.innerParams.get(this);le(e.validationMessage,t),e.validationMessage.className=g["validation-message"],n.customClass&&n.customClass.validationMessage&&W(e.validationMessage,n.customClass.validationMessage),ie(e.validationMessage);const o=this.getInput();o&&(o.setAttribute("aria-invalid",!0),o.setAttribute("aria-describedby",g["validation-message"]),Dr(o),W(o,g.inputerror))}function Ru(){const t=H.domCache.get(this);t.validationMessage&&ce(t.validationMessage);const e=this.getInput();e&&(e.removeAttribute("aria-invalid"),e.removeAttribute("aria-describedby"),Ve(e,g.inputerror))}function Uu(){return H.domCache.get(this).progressSteps}function Vu(t){const e=J(),n=H.innerParams.get(this);if(!e||Ye(e,n.hideClass.popup))return _e("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=Hu(t),r=Object.assign({},n,o);Gr(this,r),H.innerParams.set(this,r),Object.defineProperties(this,{params:{value:Object.assign({},this.params,t),writable:!1,enumerable:!0}})}const Hu=t=>{const e={};return Object.keys(t).forEach(n=>{xr(n)?e[n]=t[n]:_e(`Invalid parameter to update: "${n}". Updatable params are listed here: https://github.com/sweetalert2/sweetalert2/blob/master/src/utils/params.js
401
+ https://sweetalert2.github.io/#ajax-request`),jc(t),typeof t.title=="string"&&(t.title=t.title.split(`
402
+ `).join("<br />")),ec(t)}class zc{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 Kc=()=>{wt.previousBodyPadding===null&&document.body.scrollHeight>window.innerHeight&&(wt.previousBodyPadding=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight=`${wt.previousBodyPadding+oc()}px`)},Wc=()=>{wt.previousBodyPadding!==null&&(document.body.style.paddingRight=`${wt.previousBodyPadding}px`,wt.previousBodyPadding=null)},Gc=()=>{if((/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1)&&!Ye(document.body,g.iosfix)){const e=document.body.scrollTop;document.body.style.top=`${e*-1}px`,W(document.body,g.iosfix),Yc(),qc()}},qc=()=>{const t=navigator.userAgent,e=!!t.match(/iPad/i)||!!t.match(/iPhone/i),n=!!t.match(/WebKit/i);e&&n&&!t.match(/CriOS/i)&&J().scrollHeight>window.innerHeight-44&&(ae().style.paddingBottom="44px")},Yc=()=>{const t=ae();let e;t.ontouchstart=n=>{e=Xc(n)},t.ontouchmove=n=>{e&&(n.preventDefault(),n.stopPropagation())}},Xc=t=>{const e=t.target,n=ae();return Zc(t)||Jc(t)?!1:e===n||!Vr(n)&&e.tagName!=="INPUT"&&e.tagName!=="TEXTAREA"&&!(Vr(wn())&&wn().contains(e))},Zc=t=>t.touches&&t.touches.length&&t.touches[0].touchType==="stylus",Jc=t=>t.touches&&t.touches.length>1,Qc=()=>{if(Ye(document.body,g.iosfix)){const t=parseInt(document.body.style.top,10);Ve(document.body,g.iosfix),document.body.style.top="",document.body.scrollTop=t*-1}},Zr=10,eu=t=>{const e=ae(),n=J();typeof t.willOpen=="function"&&t.willOpen(n);const r=window.getComputedStyle(document.body).overflowY;ou(e,n,t),setTimeout(()=>{tu(e,n)},Zr),so()&&(nu(e,t.scrollbarPadding,r),Oc()),!Sn()&&!V.previousActiveElement&&(V.previousActiveElement=document.activeElement),typeof t.didOpen=="function"&&setTimeout(()=>t.didOpen(n)),Ve(e,g["no-transition"])},Jr=t=>{const e=J();if(t.target!==e)return;const n=ae();e.removeEventListener(Zt,Jr),n.style.overflowY="auto"},tu=(t,e)=>{Zt&&Hr(e)?(t.style.overflowY="hidden",e.addEventListener(Zt,Jr)):t.style.overflowY="auto"},nu=(t,e,n)=>{Gc(),e&&n!=="hidden"&&Kc(),setTimeout(()=>{t.scrollTop=0})},ou=(t,e,n)=>{W(t,n.showClass.backdrop),e.style.setProperty("opacity","0","important"),ie(e,"grid"),setTimeout(()=>{W(e,n.showClass.popup),e.style.removeProperty("opacity")},Zr),W([document.documentElement,document.body],g.shown),n.heightAuto&&n.backdrop&&!n.toast&&W([document.documentElement,document.body],g["height-auto"])},_t=t=>{let e=J();e||new ft,e=J();const n=vt();Sn()?ce(qt()):ru(e,t),ie(n),e.setAttribute("data-loading",!0),e.setAttribute("aria-busy",!0),e.focus()},ru=(t,e)=>{const n=Yt(),o=vt();!e&&Ae(De())&&(e=De()),ie(n),e&&(ce(e),o.setAttribute("data-button-to-replace",e.className)),o.parentNode.insertBefore(o,e),W([t,n],g.loading)},iu=(t,e)=>{e.input==="select"||e.input==="radio"?uu(t,e):["text","email","number","tel","textarea"].includes(e.input)&&(to(e.inputValue)||no(e.inputValue))&&(_t(De()),du(t,e))},su=(t,e)=>{const n=t.getInput();if(!n)return null;switch(e.input){case"checkbox":return au(n);case"radio":return lu(n);case"file":return cu(n);default:return e.inputAutoTrim?n.value.trim():n.value}},au=t=>t.checked?1:0,lu=t=>t.checked?t.value:null,cu=t=>t.files.length?t.getAttribute("multiple")!==null?t.files:t.files[0]:null,uu=(t,e)=>{const n=J(),o=r=>fu[e.input](n,mo(r),e);to(e.inputOptions)||no(e.inputOptions)?(_t(De()),Kt(e.inputOptions).then(r=>{t.hideLoading(),o(r)})):typeof e.inputOptions=="object"?o(e.inputOptions):lt(`Unexpected type of inputOptions! Expected object, Map or Promise, got ${typeof e.inputOptions}`)},du=(t,e)=>{const n=t.getInput();ce(n),Kt(e.inputValue).then(o=>{n.value=e.input==="number"?parseFloat(o)||0:`${o}`,ie(n),n.focus(),t.hideLoading()}).catch(o=>{lt(`Error in inputValue promise: ${o}`),n.value="",ie(n),n.focus(),t.hideLoading()})},fu={select:(t,e,n)=>{const o=rt(t,g.select),r=(s,l,a)=>{const c=document.createElement("option");c.value=a,le(c,l),c.selected=Qr(a,n.inputValue),s.appendChild(c)};e.forEach(s=>{const l=s[0],a=s[1];if(Array.isArray(a)){const c=document.createElement("optgroup");c.label=l,c.disabled=!1,o.appendChild(c),a.forEach(d=>r(c,d[1],d[0]))}else r(o,a,l)}),o.focus()},radio:(t,e,n)=>{const o=rt(t,g.radio);e.forEach(s=>{const l=s[0],a=s[1],c=document.createElement("input"),d=document.createElement("label");c.type="radio",c.name=g.radio,c.value=l,Qr(l,n.inputValue)&&(c.checked=!0);const f=document.createElement("span");le(f,a),f.className=g.label,d.appendChild(c),d.appendChild(f),o.appendChild(d)});const r=o.querySelectorAll("input");r.length&&r[0].focus()}},mo=t=>{const e=[];return typeof Map<"u"&&t instanceof Map?t.forEach((n,o)=>{let r=n;typeof r=="object"&&(r=mo(r)),e.push([o,r])}):Object.keys(t).forEach(n=>{let o=t[n];typeof o=="object"&&(o=mo(o)),e.push([n,o])}),e},Qr=(t,e)=>e&&e.toString()===t.toString();function ei(){const t=H.innerParams.get(this);if(!t)return;const e=H.domCache.get(this);ce(e.loader),Sn()?t.icon&&ie(qt()):mu(e),Ve([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 mu=t=>{const e=t.popup.getElementsByClassName(t.loader.getAttribute("data-button-to-replace"));e.length?ie(e[0],"inline-block"):Fl()&&ce(t.actions)};function pu(t){const e=H.innerParams.get(t||this),n=H.domCache.get(t||this);return n?ao(n.popup,e.input):null}const Qt={swalPromiseResolve:new WeakMap,swalPromiseReject:new WeakMap},hu=()=>Ae(J()),ti=()=>De()&&De().click(),gu=()=>ot()&&ot().click(),yu=()=>ct()&&ct().click(),ni=t=>{t.keydownTarget&&t.keydownHandlerAdded&&(t.keydownTarget.removeEventListener("keydown",t.keydownHandler,{capture:t.keydownListenerCapture}),t.keydownHandlerAdded=!1)},bu=(t,e,n,o)=>{ni(e),n.toast||(e.keydownHandler=r=>wu(t,r,o),e.keydownTarget=n.keydownListenerCapture?window:J(),e.keydownListenerCapture=n.keydownListenerCapture,e.keydownTarget.addEventListener("keydown",e.keydownHandler,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!0)},po=(t,e,n)=>{const o=io();if(o.length)return e=e+n,e===o.length?e=0:e===-1&&(e=o.length-1),o[e].focus();J().focus()},oi=["ArrowRight","ArrowDown"],vu=["ArrowLeft","ArrowUp"],wu=(t,e,n)=>{const o=H.innerParams.get(t);o&&(e.isComposing||e.keyCode===229||(o.stopKeydownPropagation&&e.stopPropagation(),e.key==="Enter"?ku(t,e,o):e.key==="Tab"?_u(e,o):[...oi,...vu].includes(e.key)?Su(e.key):e.key==="Escape"&&Cu(e,o,n)))},ku=(t,e,n)=>{if(vn(n.allowEnterKey)&&e.target&&t.getInput()&&e.target.outerHTML===t.getInput().outerHTML){if(["textarea","file"].includes(n.input))return;ti(),e.preventDefault()}},_u=(t,e)=>{const n=t.target,o=io();let r=-1;for(let s=0;s<o.length;s++)if(n===o[s]){r=s;break}t.shiftKey?po(e,r,-1):po(e,r,1),t.stopPropagation(),t.preventDefault()},Su=t=>{const e=De(),n=ot(),o=ct();if(![e,n,o].includes(document.activeElement))return;const r=oi.includes(t)?"nextElementSibling":"previousElementSibling";let s=document.activeElement;for(let l=0;l<Yt().children.length;l++){if(s=s[r],!s)return;if(Ae(s)&&s instanceof HTMLButtonElement)break}s instanceof HTMLButtonElement&&s.focus()},Cu=(t,e,n)=>{vn(e.allowEscapeKey)&&(t.preventDefault(),n(kt.esc))};function ri(t,e,n,o){Sn()?ii(t,o):(Gl(n).then(()=>ii(t,o)),ni(V)),/^((?!chrome|android).)*safari/i.test(navigator.userAgent)?(e.setAttribute("style","display:none !important"),e.removeAttribute("class"),e.innerHTML=""):e.remove(),so()&&(Wc(),Qc(),qr()),Eu()}function Eu(){Ve([document.documentElement,document.body],[g.shown,g["height-auto"],g["no-backdrop"],g["toast-shown"]])}function En(t){t=Pu(t);const e=Qt.swalPromiseResolve.get(this),n=Tu(this);this.isAwaitingPromise()?t.isDismissed||(en(this),e(t)):n&&e(t)}function Iu(){return!!H.awaitingPromise.get(this)}const Tu=t=>{const e=J();if(!e)return!1;const n=H.innerParams.get(t);if(!n||Ye(e,n.hideClass.popup))return!1;Ve(e,n.showClass.popup),W(e,n.hideClass.popup);const o=ae();return Ve(o,n.showClass.backdrop),W(o,n.hideClass.backdrop),Lu(t,e,n),!0};function Au(t){const e=Qt.swalPromiseReject.get(this);en(this),e&&e(t)}const en=t=>{t.isAwaitingPromise()&&(H.awaitingPromise.delete(t),H.innerParams.get(t)||t._destroy())},Pu=t=>typeof t>"u"?{isConfirmed:!1,isDenied:!1,isDismissed:!0}:Object.assign({isConfirmed:!1,isDenied:!1,isDismissed:!1},t),Lu=(t,e,n)=>{const o=ae(),r=Zt&&Hr(e);typeof n.willClose=="function"&&n.willClose(e),r?xu(t,e,o,n.returnFocus,n.didClose):ri(t,o,n.returnFocus,n.didClose)},xu=(t,e,n,o,r)=>{V.swalCloseEventFinishedCallback=ri.bind(null,t,n,o,r),e.addEventListener(Zt,function(s){s.target===e&&(V.swalCloseEventFinishedCallback(),delete V.swalCloseEventFinishedCallback)})},ii=(t,e)=>{setTimeout(()=>{typeof e=="function"&&e.bind(t.params)(),t._destroy()})};function si(t,e,n){const o=H.domCache.get(t);e.forEach(r=>{o[r].disabled=n})}function ai(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 Ou(){si(this,["confirmButton","denyButton","cancelButton"],!1)}function $u(){si(this,["confirmButton","denyButton","cancelButton"],!0)}function Bu(){return ai(this.getInput(),!1)}function Nu(){return ai(this.getInput(),!0)}function Mu(t){const e=H.domCache.get(this),n=H.innerParams.get(this);le(e.validationMessage,t),e.validationMessage.className=g["validation-message"],n.customClass&&n.customClass.validationMessage&&W(e.validationMessage,n.customClass.validationMessage),ie(e.validationMessage);const o=this.getInput();o&&(o.setAttribute("aria-invalid",!0),o.setAttribute("aria-describedby",g["validation-message"]),Dr(o),W(o,g.inputerror))}function Du(){const t=H.domCache.get(this);t.validationMessage&&ce(t.validationMessage);const e=this.getInput();e&&(e.removeAttribute("aria-invalid"),e.removeAttribute("aria-describedby"),Ve(e,g.inputerror))}function Ru(){return H.domCache.get(this).progressSteps}function Uu(t){const e=J(),n=H.innerParams.get(this);if(!e||Ye(e,n.hideClass.popup))return _e("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=Vu(t),r=Object.assign({},n,o);Gr(this,r),H.innerParams.set(this,r),Object.defineProperties(this,{params:{value:Object.assign({},this.params,t),writable:!1,enumerable:!0}})}const Vu=t=>{const e={};return Object.keys(t).forEach(n=>{xr(n)?e[n]=t[n]:_e(`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 ju(){const t=H.domCache.get(this),e=H.innerParams.get(this);if(!e){li(this);return}t.popup&&V.swalCloseEventFinishedCallback&&(V.swalCloseEventFinishedCallback(),delete V.swalCloseEventFinishedCallback),V.deferDisposalTimer&&(clearTimeout(V.deferDisposalTimer),delete V.deferDisposalTimer),typeof e.didDestroy=="function"&&e.didDestroy(),Fu(this)}const Fu=t=>{li(t),delete t.params,delete V.keydownHandler,delete V.keydownTarget,delete V.currentInstance},li=t=>{t.isAwaitingPromise()?(ho(H,t),H.awaitingPromise.set(t,!0)):(ho(Qt,t),ho(H,t))},ho=(t,e)=>{for(const n in t)t[n].delete(e)},ci=Object.freeze(Object.defineProperty({__proto__:null,_destroy:ju,close:En,closeModal:En,closePopup:En,closeToast:En,disableButtons:Bu,disableInput:Mu,disableLoading:ei,enableButtons:$u,enableInput:Nu,getInput:hu,getProgressSteps:Uu,handleAwaitingPromise:en,hideLoading:ei,isAwaitingPromise:Tu,rejectPromise:Pu,resetValidationMessage:Ru,showValidationMessage:Du,update:Vu},Symbol.toStringTag,{value:"Module"})),zu=t=>{const e=H.innerParams.get(t);t.disableButtons(),e.input?ui(t,"confirm"):yo(t,!0)},Ku=t=>{const e=H.innerParams.get(t);t.disableButtons(),e.returnInputValueOnDeny?ui(t,"deny"):go(t,!1)},Wu=(t,e)=>{t.disableButtons(),e(kt.cancel)},ui=(t,e)=>{const n=H.innerParams.get(t);if(!n.input)return lt(`The "input" parameter is needed to be set when using returnInputValueOn${eo(e)}`);const o=au(t,n);n.inputValidator?Gu(t,o,e):t.getInput().checkValidity()?e==="deny"?go(t,o):yo(t,o):(t.enableButtons(),t.showValidationMessage(n.validationMessage))},Gu=(t,e,n)=>{const o=H.innerParams.get(t);t.disableInput(),Promise.resolve().then(()=>Kt(o.inputValidator(e,o.validationMessage))).then(s=>{t.enableButtons(),t.enableInput(),s?t.showValidationMessage(s):n==="deny"?go(t,e):yo(t,e)})},go=(t,e)=>{const n=H.innerParams.get(t||void 0);n.showLoaderOnDeny&&_t(ot()),n.preDeny?(H.awaitingPromise.set(t||void 0,!0),Promise.resolve().then(()=>Kt(n.preDeny(e,n.validationMessage))).then(r=>{r===!1?(t.hideLoading(),en(t)):t.closePopup({isDenied:!0,value:typeof r>"u"?e:r})}).catch(r=>fi(t||void 0,r))):t.closePopup({isDenied:!0,value:e})},di=(t,e)=>{t.closePopup({isConfirmed:!0,value:e})},fi=(t,e)=>{t.rejectPromise(e)},yo=(t,e)=>{const n=H.innerParams.get(t||void 0);n.showLoaderOnConfirm&&_t(),n.preConfirm?(t.resetValidationMessage(),H.awaitingPromise.set(t||void 0,!0),Promise.resolve().then(()=>Kt(n.preConfirm(e,n.validationMessage))).then(r=>{Ae(kn())||r===!1?(t.hideLoading(),en(t)):di(t,typeof r>"u"?e:r)}).catch(r=>fi(t||void 0,r))):di(t,e)},qu=(t,e,n)=>{H.innerParams.get(t).toast?Yu(t,e,n):(Zu(e),Ju(e),Qu(t,e,n))},Yu=(t,e,n)=>{e.popup.onclick=()=>{const o=H.innerParams.get(t);o&&(Xu(o)||o.timer||o.input)||n(kt.close)}},Xu=t=>t.showConfirmButton||t.showDenyButton||t.showCancelButton||t.showCloseButton;let In=!1;const Zu=t=>{t.popup.onmousedown=()=>{t.container.onmouseup=function(e){t.container.onmouseup=void 0,e.target===t.container&&(In=!0)}}},Ju=t=>{t.container.onmousedown=()=>{t.popup.onmouseup=function(e){t.popup.onmouseup=void 0,(e.target===t.popup||t.popup.contains(e.target))&&(In=!0)}}},Qu=(t,e,n)=>{e.container.onclick=o=>{const r=H.innerParams.get(t);if(In){In=!1;return}o.target===e.container&&vn(r.allowOutsideClick)&&n(kt.backdrop)}},ed=t=>typeof t=="object"&&t.jquery,mi=t=>t instanceof Element||ed(t),td=t=>{const e={};return typeof t[0]=="object"&&!mi(t[0])?Object.assign(e,t[0]):["title","html","icon"].forEach((n,o)=>{const r=t[o];typeof r=="string"||mi(r)?e[n]=r:r!==void 0&&lt(`Unexpected type of ${n}! Expected "string" or "Element", got ${typeof r}`)}),e};function nd(...t){const e=this;return new e(...t)}function od(t){class e extends this{_main(o,r){return super._main(o,Object.assign({},t,r))}}return e}const rd=()=>V.timeout&&V.timeout.getTimerLeft(),pi=()=>{if(V.timeout)return Kl(),V.timeout.stop()},hi=()=>{if(V.timeout){const t=V.timeout.start();return lo(t),t}},id=()=>{const t=V.timeout;return t&&(t.running?pi():hi())},sd=t=>{if(V.timeout){const e=V.timeout.increase(t);return lo(e,!0),e}},ad=()=>V.timeout&&V.timeout.isRunning();let gi=!1;const bo={};function ld(t="data-swal-template"){bo[t]=this,gi||(document.body.addEventListener("click",cd),gi=!0)}const cd=t=>{for(let e=t.target;e&&e!==document;e=e.parentNode)for(const n in bo){const o=e.getAttribute(n);if(o){bo[n].fire({template:o});return}}},ud=Object.freeze(Object.defineProperty({__proto__:null,argsToParams:td,bindClickHandler:ld,clickCancel:bu,clickConfirm:ti,clickDeny:yu,enableLoading:_t,fire:nd,getActions:Yt,getCancelButton:ct,getCloseButton:ro,getConfirmButton:De,getContainer:ae,getDenyButton:ot,getFocusableElements:io,getFooter:Mr,getHtmlContainer:wn,getIcon:qt,getImage:Br,getInputLabel:Vl,getLoader:vt,getPopup:J,getTimerLeft:rd,getTimerProgressBar:_n,getTitle:$r,getValidationMessage:kn,increaseTimer:sd,isDeprecatedParameter:oo,isLoading:jl,isTimerRunning:ad,isUpdatableParameter:xr,isValidParameter:Lr,isVisible:gu,mixin:od,resumeTimer:hi,showLoading:_t,stopTimer:pi,toggleTimer:id},Symbol.toStringTag,{value:"Module"}));let vo;class St{constructor(...e){if(typeof window>"u")return;vo=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);H.promise.set(this,o)}_main(e,n={}){Rl(Object.assign({},n,e)),V.currentInstance&&(V.currentInstance._destroy(),so()&&qr()),V.currentInstance=this;const o=fd(e,n);zc(o),Object.freeze(o),V.timeout&&(V.timeout.stop(),delete V.timeout),clearTimeout(V.restoreFocusTimeout);const r=md(this);return Gr(this,o),H.innerParams.set(this,o),dd(this,r,o)}then(e){return H.promise.get(this).then(e)}finally(e){return H.promise.get(this).finally(e)}}const dd=(t,e,n)=>new Promise((o,r)=>{const s=a=>{t.closePopup({isDismissed:!0,dismiss:a})};Qt.swalPromiseResolve.set(t,o),Qt.swalPromiseReject.set(t,r),e.confirmButton.onclick=()=>zu(t),e.denyButton.onclick=()=>Ku(t),e.cancelButton.onclick=()=>Wu(t,s),e.closeButton.onclick=()=>s(kt.close),qu(t,e,s),vu(t,V,n,s),su(t,n),tu(n),pd(V,n,s),hd(e,n),setTimeout(()=>{e.container.scrollTop=0})}),fd=(t,e)=>{const n=Bc(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},md=t=>{const e={popup:J(),container:ae(),actions:Yt(),confirmButton:De(),denyButton:ot(),cancelButton:ct(),loader:vt(),closeButton:ro(),validationMessage:kn(),progressSteps:Nr()};return H.domCache.set(t,e),e},pd=(t,e,n)=>{const o=_n();ce(o),e.timer&&(t.timeout=new Kc(()=>{n("timer"),delete t.timeout},e.timer),e.timerProgressBar&&(ie(o),xe(o,e,"timerProgressBar"),setTimeout(()=>{t.timeout&&t.timeout.running&&lo(e.timer)})))},hd=(t,e)=>{if(!e.toast){if(!vn(e.allowEnterKey))return yd();gd(t,e)||po(e,-1,1)}},gd=(t,e)=>e.focusDeny&&Ae(t.denyButton)?(t.denyButton.focus(),!0):e.focusCancel&&Ae(t.cancelButton)?(t.cancelButton.focus(),!0):e.focusConfirm&&Ae(t.confirmButton)?(t.confirmButton.focus(),!0):!1,yd=()=>{document.activeElement instanceof HTMLElement&&typeof document.activeElement.blur=="function"&&document.activeElement.blur()};Object.assign(St.prototype,ci),Object.assign(St,ud),Object.keys(ci).forEach(t=>{St[t]=function(...e){if(vo)return vo[t](...e)}}),St.DismissReason=kt,St.version="11.4.8";const ft=St;ft.default=ft;/*! @license DOMPurify 3.2.4 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.4/LICENSE */const{entries:yi,setPrototypeOf:bi,isFrozen:bd,getPrototypeOf:vd,getOwnPropertyDescriptor:wd}=Object;let{freeze:ye,seal:Oe,create:vi}=Object,{apply:wo,construct:ko}=typeof Reflect<"u"&&Reflect;ye||(ye=function(e){return e}),Oe||(Oe=function(e){return e}),wo||(wo=function(e,n,o){return e.apply(n,o)}),ko||(ko=function(e,n){return new e(...n)});const Tn=ve(Array.prototype.forEach),kd=ve(Array.prototype.lastIndexOf),wi=ve(Array.prototype.pop),tn=ve(Array.prototype.push),_d=ve(Array.prototype.splice),An=ve(String.prototype.toLowerCase),_o=ve(String.prototype.toString),ki=ve(String.prototype.match),nn=ve(String.prototype.replace),Sd=ve(String.prototype.indexOf),Cd=ve(String.prototype.trim),Re=ve(Object.prototype.hasOwnProperty),be=ve(RegExp.prototype.test),on=Ed(TypeError);function ve(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 wo(t,e,o)}}function Ed(t){return function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return ko(t,n)}}function z(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:An;bi&&bi(t,null);let o=e.length;for(;o--;){let r=e[o];if(typeof r=="string"){const s=n(r);s!==r&&(bd(e)||(e[o]=s),r=s)}t[r]=!0}return t}function Id(t){for(let e=0;e<t.length;e++)Re(t,e)||(t[e]=null);return t}function mt(t){const e=vi(null);for(const[n,o]of yi(t))Re(t,n)&&(Array.isArray(o)?e[n]=Id(o):o&&typeof o=="object"&&o.constructor===Object?e[n]=mt(o):e[n]=o);return e}function rn(t,e){for(;t!==null;){const o=wd(t,e);if(o){if(o.get)return ve(o.get);if(typeof o.value=="function")return ve(o.value)}t=vd(t)}function n(){return null}return n}const _i=ye(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),So=ye(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Co=ye(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Td=ye(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Eo=ye(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),Ad=ye(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Si=ye(["#text"]),Ci=ye(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","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"]),Io=ye(["accent-height","accumulate","additive","alignment-baseline","amplitude","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","exponent","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","intercept","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","slope","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","tablevalues","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"]),Ei=ye(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Pn=ye(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Pd=Oe(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Ld=Oe(/<%[\w\W]*|[\w\W]*%>/gm),xd=Oe(/\$\{[\w\W]*/gm),Od=Oe(/^data-[\-\w.\u00B7-\uFFFF]+$/),$d=Oe(/^aria-[\-\w]+$/),Ii=Oe(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Bd=Oe(/^(?:\w+script|data):/i),Nd=Oe(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Ti=Oe(/^html$/i),Md=Oe(/^[a-z][.\w]*(-[.\w]+)+$/i);var Ai=Object.freeze({__proto__:null,ARIA_ATTR:$d,ATTR_WHITESPACE:Nd,CUSTOM_ELEMENT:Md,DATA_ATTR:Od,DOCTYPE_NAME:Ti,ERB_EXPR:Ld,IS_ALLOWED_URI:Ii,IS_SCRIPT_OR_DATA:Bd,MUSTACHE_EXPR:Pd,TMPLIT_EXPR:xd});const sn={element:1,text:3,progressingInstruction:7,comment:8,document:9},Dd=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 s="dompurify"+(o?"#"+o:"");try{return e.createPolicy(s,{createHTML(a){return a},createScriptURL(a){return a}})}catch{return console.warn("TrustedTypes policy "+s+" could not be created."),null}},Pi=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function Li(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Dd();const e=B=>Li(B);if(e.version="3.2.4",e.removed=[],!t||!t.document||t.document.nodeType!==sn.document||!t.Element)return e.isSupported=!1,e;let{document:n}=t;const o=n,r=o.currentScript,{DocumentFragment:s,HTMLTemplateElement:a,Node:l,Element:c,NodeFilter:d,NamedNodeMap:f=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:p,DOMParser:y,trustedTypes:k}=t,C=c.prototype,A=rn(C,"cloneNode"),L=rn(C,"remove"),w=rn(C,"nextSibling"),S=rn(C,"childNodes"),M=rn(C,"parentNode");if(typeof a=="function"){const B=n.createElement("template");B.content&&B.content.ownerDocument&&(n=B.content.ownerDocument)}let U,G="";const{implementation:ue,createNodeIterator:ne,createDocumentFragment:Pe,getElementsByTagName:oe}=n,{importNode:Y}=o;let N=Pi();e.isSupported=typeof yi=="function"&&typeof M=="function"&&ue&&ue.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:X,ERB_EXPR:de,TMPLIT_EXPR:fe,DATA_ATTR:je,ARIA_ATTR:Xe,IS_SCRIPT_OR_DATA:Fe,ATTR_WHITESPACE:ze,CUSTOM_ELEMENT:ht}=Ai;let{IS_ALLOWED_URI:$e}=Ai,u=null;const h=z({},[..._i,...So,...Co,...Eo,...Si]);let v=null;const T=z({},[...Ci,...Io,...Ei,...Pn]);let b=Object.seal(vi(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),P=null,_=null,E=!0,O=!0,x=!1,R=!0,F=!1,Ce=!0,me=!1,pe=!1,Ze=!1,Et=!1,$n=!1,Bn=!1,Wi=!0,Gi=!1;const jf="user-content-";let $o=!0,ln=!1,It={},Tt=null;const qi=z({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Yi=null;const Xi=z({},["audio","video","img","source","image","track"]);let Bo=null;const Zi=z({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Nn="http://www.w3.org/1998/Math/MathML",Mn="http://www.w3.org/2000/svg",Je="http://www.w3.org/1999/xhtml";let At=Je,No=!1,Mo=null;const Ff=z({},[Nn,Mn,Je],_o);let Dn=z({},["mi","mo","mn","ms","mtext"]),Rn=z({},["annotation-xml"]);const zf=z({},["title","style","font","a","script"]);let cn=null;const Kf=["application/xhtml+xml","text/html"],Wf="text/html";let re=null,Pt=null;const Gf=n.createElement("form"),Ji=function(m){return m instanceof RegExp||m instanceof Function},Do=function(){let m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Pt&&Pt===m)){if((!m||typeof m!="object")&&(m={}),m=mt(m),cn=Kf.indexOf(m.PARSER_MEDIA_TYPE)===-1?Wf:m.PARSER_MEDIA_TYPE,re=cn==="application/xhtml+xml"?_o:An,u=Re(m,"ALLOWED_TAGS")?z({},m.ALLOWED_TAGS,re):h,v=Re(m,"ALLOWED_ATTR")?z({},m.ALLOWED_ATTR,re):T,Mo=Re(m,"ALLOWED_NAMESPACES")?z({},m.ALLOWED_NAMESPACES,_o):Ff,Bo=Re(m,"ADD_URI_SAFE_ATTR")?z(mt(Zi),m.ADD_URI_SAFE_ATTR,re):Zi,Yi=Re(m,"ADD_DATA_URI_TAGS")?z(mt(Xi),m.ADD_DATA_URI_TAGS,re):Xi,Tt=Re(m,"FORBID_CONTENTS")?z({},m.FORBID_CONTENTS,re):qi,P=Re(m,"FORBID_TAGS")?z({},m.FORBID_TAGS,re):{},_=Re(m,"FORBID_ATTR")?z({},m.FORBID_ATTR,re):{},It=Re(m,"USE_PROFILES")?m.USE_PROFILES:!1,E=m.ALLOW_ARIA_ATTR!==!1,O=m.ALLOW_DATA_ATTR!==!1,x=m.ALLOW_UNKNOWN_PROTOCOLS||!1,R=m.ALLOW_SELF_CLOSE_IN_ATTR!==!1,F=m.SAFE_FOR_TEMPLATES||!1,Ce=m.SAFE_FOR_XML!==!1,me=m.WHOLE_DOCUMENT||!1,Et=m.RETURN_DOM||!1,$n=m.RETURN_DOM_FRAGMENT||!1,Bn=m.RETURN_TRUSTED_TYPE||!1,Ze=m.FORCE_BODY||!1,Wi=m.SANITIZE_DOM!==!1,Gi=m.SANITIZE_NAMED_PROPS||!1,$o=m.KEEP_CONTENT!==!1,ln=m.IN_PLACE||!1,$e=m.ALLOWED_URI_REGEXP||Ii,At=m.NAMESPACE||Je,Dn=m.MATHML_TEXT_INTEGRATION_POINTS||Dn,Rn=m.HTML_INTEGRATION_POINTS||Rn,b=m.CUSTOM_ELEMENT_HANDLING||{},m.CUSTOM_ELEMENT_HANDLING&&Ji(m.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(b.tagNameCheck=m.CUSTOM_ELEMENT_HANDLING.tagNameCheck),m.CUSTOM_ELEMENT_HANDLING&&Ji(m.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(b.attributeNameCheck=m.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),m.CUSTOM_ELEMENT_HANDLING&&typeof m.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(b.allowCustomizedBuiltInElements=m.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),F&&(O=!1),$n&&(Et=!0),It&&(u=z({},Si),v=[],It.html===!0&&(z(u,_i),z(v,Ci)),It.svg===!0&&(z(u,So),z(v,Io),z(v,Pn)),It.svgFilters===!0&&(z(u,Co),z(v,Io),z(v,Pn)),It.mathMl===!0&&(z(u,Eo),z(v,Ei),z(v,Pn))),m.ADD_TAGS&&(u===h&&(u=mt(u)),z(u,m.ADD_TAGS,re)),m.ADD_ATTR&&(v===T&&(v=mt(v)),z(v,m.ADD_ATTR,re)),m.ADD_URI_SAFE_ATTR&&z(Bo,m.ADD_URI_SAFE_ATTR,re),m.FORBID_CONTENTS&&(Tt===qi&&(Tt=mt(Tt)),z(Tt,m.FORBID_CONTENTS,re)),$o&&(u["#text"]=!0),me&&z(u,["html","head","body"]),u.table&&(z(u,["tbody"]),delete P.tbody),m.TRUSTED_TYPES_POLICY){if(typeof m.TRUSTED_TYPES_POLICY.createHTML!="function")throw on('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof m.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw on('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');U=m.TRUSTED_TYPES_POLICY,G=U.createHTML("")}else U===void 0&&(U=Rd(k,r)),U!==null&&typeof G=="string"&&(G=U.createHTML(""));ye&&ye(m),Pt=m}},Qi=z({},[...So,...Co,...Td]),es=z({},[...Eo,...Ad]),qf=function(m){let I=M(m);(!I||!I.tagName)&&(I={namespaceURI:At,tagName:"template"});const $=An(m.tagName),ee=An(I.tagName);return Mo[m.namespaceURI]?m.namespaceURI===Mn?I.namespaceURI===Je?$==="svg":I.namespaceURI===Nn?$==="svg"&&(ee==="annotation-xml"||Dn[ee]):!!Qi[$]:m.namespaceURI===Nn?I.namespaceURI===Je?$==="math":I.namespaceURI===Mn?$==="math"&&Rn[ee]:!!es[$]:m.namespaceURI===Je?I.namespaceURI===Mn&&!Rn[ee]||I.namespaceURI===Nn&&!Dn[ee]?!1:!es[$]&&(zf[$]||!Qi[$]):!!(cn==="application/xhtml+xml"&&Mo[m.namespaceURI]):!1},Ke=function(m){tn(e.removed,{element:m});try{M(m).removeChild(m)}catch{L(m)}},Un=function(m,I){try{tn(e.removed,{attribute:I.getAttributeNode(m),from:I})}catch{tn(e.removed,{attribute:null,from:I})}if(I.removeAttribute(m),m==="is")if(Et||$n)try{Ke(I)}catch{}else try{I.setAttribute(m,"")}catch{}},ts=function(m){let I=null,$=null;if(Ze)m="<remove></remove>"+m;else{const se=ki(m,/^[\r\n\t ]+/);$=se&&se[0]}cn==="application/xhtml+xml"&&At===Je&&(m='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+m+"</body></html>");const ee=U?U.createHTML(m):m;if(At===Je)try{I=new y().parseFromString(ee,cn)}catch{}if(!I||!I.documentElement){I=ue.createDocument(At,"template",null);try{I.documentElement.innerHTML=No?G:ee}catch{}}const he=I.body||I.documentElement;return m&&$&&he.insertBefore(n.createTextNode($),he.childNodes[0]||null),At===Je?oe.call(I,me?"html":"body")[0]:me?I.documentElement:he},ns=function(m){return ne.call(m.ownerDocument||m,m,d.SHOW_ELEMENT|d.SHOW_COMMENT|d.SHOW_TEXT|d.SHOW_PROCESSING_INSTRUCTION|d.SHOW_CDATA_SECTION,null)},Ro=function(m){return m instanceof p&&(typeof m.nodeName!="string"||typeof m.textContent!="string"||typeof m.removeChild!="function"||!(m.attributes instanceof f)||typeof m.removeAttribute!="function"||typeof m.setAttribute!="function"||typeof m.namespaceURI!="string"||typeof m.insertBefore!="function"||typeof m.hasChildNodes!="function")},os=function(m){return typeof l=="function"&&m instanceof l};function Qe(B,m,I){Tn(B,$=>{$.call(e,m,I,Pt)})}const rs=function(m){let I=null;if(Qe(N.beforeSanitizeElements,m,null),Ro(m))return Ke(m),!0;const $=re(m.nodeName);if(Qe(N.uponSanitizeElement,m,{tagName:$,allowedTags:u}),m.hasChildNodes()&&!os(m.firstElementChild)&&be(/<[/\w]/g,m.innerHTML)&&be(/<[/\w]/g,m.textContent)||m.nodeType===sn.progressingInstruction||Ce&&m.nodeType===sn.comment&&be(/<[/\w]/g,m.data))return Ke(m),!0;if(!u[$]||P[$]){if(!P[$]&&ss($)&&(b.tagNameCheck instanceof RegExp&&be(b.tagNameCheck,$)||b.tagNameCheck instanceof Function&&b.tagNameCheck($)))return!1;if($o&&!Tt[$]){const ee=M(m)||m.parentNode,he=S(m)||m.childNodes;if(he&&ee){const se=he.length;for(let Ee=se-1;Ee>=0;--Ee){const We=A(he[Ee],!0);We.__removalCount=(m.__removalCount||0)+1,ee.insertBefore(We,w(m))}}}return Ke(m),!0}return m instanceof c&&!qf(m)||($==="noscript"||$==="noembed"||$==="noframes")&&be(/<\/no(script|embed|frames)/i,m.innerHTML)?(Ke(m),!0):(F&&m.nodeType===sn.text&&(I=m.textContent,Tn([X,de,fe],ee=>{I=nn(I,ee," ")}),m.textContent!==I&&(tn(e.removed,{element:m.cloneNode()}),m.textContent=I)),Qe(N.afterSanitizeElements,m,null),!1)},is=function(m,I,$){if(Wi&&(I==="id"||I==="name")&&($ in n||$ in Gf))return!1;if(!(O&&!_[I]&&be(je,I))){if(!(E&&be(Xe,I))){if(!v[I]||_[I]){if(!(ss(m)&&(b.tagNameCheck instanceof RegExp&&be(b.tagNameCheck,m)||b.tagNameCheck instanceof Function&&b.tagNameCheck(m))&&(b.attributeNameCheck instanceof RegExp&&be(b.attributeNameCheck,I)||b.attributeNameCheck instanceof Function&&b.attributeNameCheck(I))||I==="is"&&b.allowCustomizedBuiltInElements&&(b.tagNameCheck instanceof RegExp&&be(b.tagNameCheck,$)||b.tagNameCheck instanceof Function&&b.tagNameCheck($))))return!1}else if(!Bo[I]){if(!be($e,nn($,ze,""))){if(!((I==="src"||I==="xlink:href"||I==="href")&&m!=="script"&&Sd($,"data:")===0&&Yi[m])){if(!(x&&!be(Fe,nn($,ze,"")))){if($)return!1}}}}}}return!0},ss=function(m){return m!=="annotation-xml"&&ki(m,ht)},as=function(m){Qe(N.beforeSanitizeAttributes,m,null);const{attributes:I}=m;if(!I||Ro(m))return;const $={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:v,forceKeepAttr:void 0};let ee=I.length;for(;ee--;){const he=I[ee],{name:se,namespaceURI:Ee,value:We}=he,un=re(se);let we=se==="value"?We:Cd(We);if($.attrName=un,$.attrValue=we,$.keepAttr=!0,$.forceKeepAttr=void 0,Qe(N.uponSanitizeAttribute,m,$),we=$.attrValue,Gi&&(un==="id"||un==="name")&&(Un(se,m),we=jf+we),Ce&&be(/((--!?|])>)|<\/(style|title)/i,we)){Un(se,m);continue}if($.forceKeepAttr||(Un(se,m),!$.keepAttr))continue;if(!R&&be(/\/>/i,we)){Un(se,m);continue}F&&Tn([X,de,fe],cs=>{we=nn(we,cs," ")});const ls=re(m.nodeName);if(is(ls,un,we)){if(U&&typeof k=="object"&&typeof k.getAttributeType=="function"&&!Ee)switch(k.getAttributeType(ls,un)){case"TrustedHTML":{we=U.createHTML(we);break}case"TrustedScriptURL":{we=U.createScriptURL(we);break}}try{Ee?m.setAttributeNS(Ee,se,we):m.setAttribute(se,we),Ro(m)?Ke(m):wi(e.removed)}catch{}}}Qe(N.afterSanitizeAttributes,m,null)},Yf=function B(m){let I=null;const $=ns(m);for(Qe(N.beforeSanitizeShadowDOM,m,null);I=$.nextNode();)Qe(N.uponSanitizeShadowNode,I,null),rs(I),as(I),I.content instanceof s&&B(I.content);Qe(N.afterSanitizeShadowDOM,m,null)};return e.sanitize=function(B){let m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},I=null,$=null,ee=null,he=null;if(No=!B,No&&(B="<!-->"),typeof B!="string"&&!os(B))if(typeof B.toString=="function"){if(B=B.toString(),typeof B!="string")throw on("dirty is not a string, aborting")}else throw on("toString is not a function");if(!e.isSupported)return B;if(pe||Do(m),e.removed=[],typeof B=="string"&&(ln=!1),ln){if(B.nodeName){const We=re(B.nodeName);if(!u[We]||P[We])throw on("root node is forbidden and cannot be sanitized in-place")}}else if(B instanceof l)I=ts("<!---->"),$=I.ownerDocument.importNode(B,!0),$.nodeType===sn.element&&$.nodeName==="BODY"||$.nodeName==="HTML"?I=$:I.appendChild($);else{if(!Et&&!F&&!me&&B.indexOf("<")===-1)return U&&Bn?U.createHTML(B):B;if(I=ts(B),!I)return Et?null:Bn?G:""}I&&Ze&&Ke(I.firstChild);const se=ns(ln?B:I);for(;ee=se.nextNode();)rs(ee),as(ee),ee.content instanceof s&&Yf(ee.content);if(ln)return B;if(Et){if($n)for(he=Pe.call(I.ownerDocument);I.firstChild;)he.appendChild(I.firstChild);else he=I;return(v.shadowroot||v.shadowrootmode)&&(he=Y.call(o,he,!0)),he}let Ee=me?I.outerHTML:I.innerHTML;return me&&u["!doctype"]&&I.ownerDocument&&I.ownerDocument.doctype&&I.ownerDocument.doctype.name&&be(Ti,I.ownerDocument.doctype.name)&&(Ee="<!DOCTYPE "+I.ownerDocument.doctype.name+`>
405
- `+Ee),F&&Tn([X,de,fe],We=>{Ee=nn(Ee,We," ")}),U&&Bn?U.createHTML(Ee):Ee},e.setConfig=function(){let B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Do(B),pe=!0},e.clearConfig=function(){Pt=null,pe=!1},e.isValidAttribute=function(B,m,I){Pt||Do({});const $=re(B),ee=re(m);return is($,ee,I)},e.addHook=function(B,m){typeof m=="function"&&tn(N[B],m)},e.removeHook=function(B,m){if(m!==void 0){const I=kd(N[B],m);return I===-1?void 0:_d(N[B],I,1)[0]}return wi(N[B])},e.removeHooks=function(B){N[B]=[]},e.removeAllHooks=function(){N=Pi()},e}var xi=Li();class Oi{get IsVisible(){return ft.isVisible()}async CreateConfirmAsync(e){return new Promise(n=>{ft.fire({showCancelButton:!0,allowEscapeKey:!1,allowOutsideClick:!1,icon:"question",title:e.title,html:xi.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 $i=()=>new Oi,Ud=()=>new Oi;function Vd(t){return t instanceof Uint8Array||t!=null&&typeof t=="object"&&t.constructor.name==="Uint8Array"}function Bi(t,...e){if(!Vd(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 Ni(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 Hd(t,e){Bi(t);const n=e.outputLen;if(t.length<n)throw new Error(`digestInto() expects output buffer of length at least ${n}`)}/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */const To=t=>new DataView(t.buffer,t.byteOffset,t.byteLength),He=(t,e)=>t<<32-e|t>>>e;new Uint8Array(new Uint32Array([287454020]).buffer)[0];function jd(t){if(typeof t!="string")throw new Error(`utf8ToBytes expected string, got ${typeof t}`);return new Uint8Array(new TextEncoder().encode(t))}function Mi(t){return typeof t=="string"&&(t=jd(t)),Bi(t),t}class Fd{clone(){return this._cloneInto()}}function zd(t){const e=o=>t().update(Mi(o)).digest(),n=t();return e.outputLen=n.outputLen,e.blockLen=n.blockLen,e.create=()=>t(),e}function Kd(t,e,n,o){if(typeof t.setBigUint64=="function")return t.setBigUint64(e,n,o);const r=BigInt(32),s=BigInt(4294967295),a=Number(n>>r&s),l=Number(n&s),c=o?4:0,d=o?0:4;t.setUint32(e+c,a,o),t.setUint32(e+d,l,o)}const Wd=(t,e,n)=>t&e^~t&n,Gd=(t,e,n)=>t&e^t&n^e&n;class qd extends Fd{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=To(this.buffer)}update(e){Ni(this);const{view:n,buffer:o,blockLen:r}=this;e=Mi(e);const s=e.length;for(let a=0;a<s;){const l=Math.min(r-this.pos,s-a);if(l===r){const c=To(e);for(;r<=s-a;a+=r)this.process(c,a);continue}o.set(e.subarray(a,a+l),this.pos),this.pos+=l,a+=l,this.pos===r&&(this.process(n,0),this.pos=0)}return this.length+=e.length,this.roundClean(),this}digestInto(e){Ni(this),Hd(e,this),this.finished=!0;const{buffer:n,view:o,blockLen:r,isLE:s}=this;let{pos:a}=this;n[a++]=128,this.buffer.subarray(a).fill(0),this.padOffset>r-a&&(this.process(o,0),a=0);for(let p=a;p<r;p++)n[p]=0;Kd(o,r-8,BigInt(this.length*8),s),this.process(o,0);const l=To(e),c=this.outputLen;if(c%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const d=c/4,f=this.get();if(d>f.length)throw new Error("_sha2: outputLen bigger than state");for(let p=0;p<d;p++)l.setUint32(4*p,f[p],s)}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:s,destroyed:a,pos:l}=this;return e.length=r,e.pos=l,e.finished=s,e.destroyed=a,r%n&&e.buffer.set(o),e}}const Yd=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]),it=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),st=new Uint32Array(64);class Xd extends qd{constructor(){super(64,32,8,!1),this.A=it[0]|0,this.B=it[1]|0,this.C=it[2]|0,this.D=it[3]|0,this.E=it[4]|0,this.F=it[5]|0,this.G=it[6]|0,this.H=it[7]|0}get(){const{A:e,B:n,C:o,D:r,E:s,F:a,G:l,H:c}=this;return[e,n,o,r,s,a,l,c]}set(e,n,o,r,s,a,l,c){this.A=e|0,this.B=n|0,this.C=o|0,this.D=r|0,this.E=s|0,this.F=a|0,this.G=l|0,this.H=c|0}process(e,n){for(let p=0;p<16;p++,n+=4)st[p]=e.getUint32(n,!1);for(let p=16;p<64;p++){const y=st[p-15],k=st[p-2],C=He(y,7)^He(y,18)^y>>>3,A=He(k,17)^He(k,19)^k>>>10;st[p]=A+st[p-7]+C+st[p-16]|0}let{A:o,B:r,C:s,D:a,E:l,F:c,G:d,H:f}=this;for(let p=0;p<64;p++){const y=He(l,6)^He(l,11)^He(l,25),k=f+y+Wd(l,c,d)+Yd[p]+st[p]|0,A=(He(o,2)^He(o,13)^He(o,22))+Gd(o,r,s)|0;f=d,d=c,c=l,l=a+k|0,a=s,s=r,r=o,o=k+A|0}o=o+this.A|0,r=r+this.B|0,s=s+this.C|0,a=a+this.D|0,l=l+this.E|0,c=c+this.F|0,d=d+this.G|0,f=f+this.H|0,this.set(o,r,s,a,l,c,d,f)}roundClean(){st.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}const Zd=zd(()=>new Xd);class an extends Error{}an.prototype.name="InvalidTokenError";function Jd(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 Qd(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 Jd(e)}catch{return atob(e)}}function Ao(t,e){if(typeof t!="string")throw new an("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 an(`Invalid token specified: missing part #${n+1}`);let r;try{r=Qd(o)}catch(s){throw new an(`Invalid token specified: invalid base64 for part #${n+1} (${s.message})`)}try{return JSON.parse(r)}catch(s){throw new an(`Invalid token specified: invalid json for part #${n+1} (${s.message})`)}}if(typeof Promise>"u")throw Error("Keycloak requires an environment that supports Promises. Make sure that you include the appropriate polyfill.");function Di(t){if(!(this instanceof Di))throw new Error("The 'Keycloak' constructor must be invoked with 'new'.");var e=this,n,o=[],r,s={enable:!0,callbackList:[],interval:5};e.didInitialize=!1;for(var a=document.getElementsByTagName("script"),l=0;l<a.length;l++)(a[l].src.indexOf("keycloak.js")!==-1||a[l].src.indexOf("keycloak.min.js")!==-1)&&a[l].src.indexOf("version=")!==-1&&(e.iframeVersion=a[l].src.substring(a[l].src.indexOf("version=")+8).split("&")[0]);var c=!0,d=$e(console.info),f=$e(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=ht();var h=["default","cordova","cordova-native"];if(u&&h.indexOf(u.adapter)>-1?n=Xe(u.adapter):u&&typeof u.adapter=="object"?n=u.adapter:window.Cordova||window.cordova?n=Xe("cordova"):n=Xe(),u){if(typeof u.useNonce<"u"&&(c=u.useNonce),typeof u.checkLoginIframe<"u"&&(s.enable=u.checkLoginIframe),u.checkLoginIframeInterval&&(s.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 v=Y(),T=Y();T.promise.then(function(){e.onReady&&e.onReady(e.authenticated),v.setSuccess(e.authenticated)}).catch(function(O){v.setError(O)});var b=M();function P(){var O=function(F){F||(R.prompt="none"),u&&u.locale&&(R.locale=u.locale),e.login(R).then(function(){T.setSuccess()}).catch(function(Ce){T.setError(Ce)})},x=function(){var F=document.createElement("iframe"),Ce=e.createLoginUrl({prompt:"none",redirectUri:e.silentCheckSsoRedirectUri});F.setAttribute("src",Ce),F.setAttribute("sandbox","allow-storage-access-by-user-activation allow-scripts allow-same-origin"),F.setAttribute("title","keycloak-silent-check-sso"),F.style.display="none",document.body.appendChild(F);var me=function(pe){if(!(pe.origin!==window.location.origin||F.contentWindow!==pe.source)){var Ze=ne(pe.data);S(Ze,T),document.body.removeChild(F),window.removeEventListener("message",me)}};window.addEventListener("message",me)},R={};switch(u.onLoad){case"check-sso":s.enable?X().then(function(){fe().then(function(F){F?T.setSuccess():e.silentCheckSsoRedirectUri?x():O(!1)}).catch(function(F){T.setError(F)})}):e.silentCheckSsoRedirectUri?x():O(!1);break;case"login-required":O(!0);break;default:throw"Invalid value for onLoad"}}function _(){var O=ne(window.location.href);if(O&&window.history.replaceState(window.history.state,null,O.newUrl),O&&O.valid)return X().then(function(){S(O,T)}).catch(function(x){T.setError(x)});u?u.token&&u.refreshToken?(G(u.token,u.refreshToken,u.idToken),s.enable?X().then(function(){fe().then(function(x){x?(e.onAuthSuccess&&e.onAuthSuccess(),T.setSuccess(),de()):T.setSuccess()}).catch(function(x){T.setError(x)})}):e.updateToken(-1).then(function(){e.onAuthSuccess&&e.onAuthSuccess(),T.setSuccess()}).catch(function(x){e.onAuthError&&e.onAuthError(),u.onLoad?P():T.setError(x)})):u.onLoad?P():T.setSuccess():T.setSuccess()}function E(){var O=Y(),x=function(){(document.readyState==="interactive"||document.readyState==="complete")&&(document.removeEventListener("readystatechange",x),O.setSuccess())};return document.addEventListener("readystatechange",x),x(),O.promise}return b.then(function(){E().then(je).then(_).catch(function(O){v.setError(O)})}),b.catch(function(O){v.setError(O)}),v.promise},e.login=function(u){return n.login(u)};function p(u){var h=null,v=window.crypto||window.msCrypto;if(v&&v.getRandomValues&&window.Uint8Array)return h=new Uint8Array(u),v.getRandomValues(h),h;h=new Array(u);for(var T=0;T<h.length;T++)h[T]=Math.floor(256*Math.random());return h}function y(u){return k(u,"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789")}function k(u,h){for(var v=p(u),T=new Array(u),b=0;b<u;b++)T[b]=h.charCodeAt(v[b]%h.length);return String.fromCharCode.apply(null,T)}function C(u,h){if(u!=="S256")throw new TypeError(`Invalid value for 'pkceMethod', expected 'S256' but got '${u}'.`);const v=Zd(h);return ef(v).replace(/\+/g,"-").replace(/\//g,"_").replace(/\=/g,"")}function A(u){var h={id_token:{acr:u}};return JSON.stringify(h)}e.createLoginUrl=function(u){var h=ue(),v=ue(),T=n.redirectUri(u),b={state:h,nonce:v,redirectUri:encodeURIComponent(T),loginOptions:u};u&&u.prompt&&(b.prompt=u.prompt);var P;u&&u.action=="register"?P=e.endpoints.register():P=e.endpoints.authorize();var _=u&&u.scope||e.scope;_?_.indexOf("openid")===-1&&(_="openid "+_):_="openid";var E=P+"?client_id="+encodeURIComponent(e.clientId)+"&redirect_uri="+encodeURIComponent(T)+"&state="+encodeURIComponent(h)+"&response_mode="+encodeURIComponent(e.responseMode)+"&response_type="+encodeURIComponent(e.responseType)+"&scope="+encodeURIComponent(_);if(c&&(E=E+"&nonce="+encodeURIComponent(v)),u&&u.prompt&&(E+="&prompt="+encodeURIComponent(u.prompt)),u&&u.maxAge&&(E+="&max_age="+encodeURIComponent(u.maxAge)),u&&u.loginHint&&(E+="&login_hint="+encodeURIComponent(u.loginHint)),u&&u.idpHint&&(E+="&kc_idp_hint="+encodeURIComponent(u.idpHint)),u&&u.action&&u.action!="register"&&(E+="&kc_action="+encodeURIComponent(u.action)),u&&u.locale&&(E+="&ui_locales="+encodeURIComponent(u.locale)),u&&u.acr){var O=A(u.acr);E+="&claims="+encodeURIComponent(O)}if((u&&u.acrValues||e.acrValues)&&(E+="&acr_values="+encodeURIComponent(u.acrValues||e.acrValues)),e.pkceMethod){var x=y(96);b.pkceCodeVerifier=x;var R=C(e.pkceMethod,x);E+="&code_challenge="+R,E+="&code_challenge_method="+e.pkceMethod}return r.add(b),E},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 v=e.endpoints.logout()+"?client_id="+encodeURIComponent(e.clientId)+"&post_logout_redirect_uri="+encodeURIComponent(n.redirectUri(u,!1));return e.idToken&&(v+="&id_token_hint="+encodeURIComponent(e.idToken)),v},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 h=L(),v=void 0;return typeof h<"u"&&(v=h+"/account?referrer="+encodeURIComponent(e.clientId)+"&referrer_uri="+encodeURIComponent(n.redirectUri(u))),v},e.accountManagement=function(){return n.accountManagement()},e.hasRealmRole=function(u){var h=e.realmAccess;return!!h&&h.roles.indexOf(u)>=0},e.hasResourceRole=function(u,h){if(!e.resourceAccess)return!1;var v=e.resourceAccess[h||e.clientId];return!!v&&v.roles.indexOf(u)>=0},e.loadUserProfile=function(){var u=L()+"/account",h=new XMLHttpRequest;h.open("GET",u,!0),h.setRequestHeader("Accept","application/json"),h.setRequestHeader("Authorization","bearer "+e.token);var v=Y();return h.onreadystatechange=function(){h.readyState==4&&(h.status==200?(e.profile=JSON.parse(h.responseText),v.setSuccess(e.profile)):v.setError())},h.send(),v.promise},e.loadUserInfo=function(){var u=e.endpoints.userinfo(),h=new XMLHttpRequest;h.open("GET",u,!0),h.setRequestHeader("Accept","application/json"),h.setRequestHeader("Authorization","bearer "+e.token);var v=Y();return h.onreadystatechange=function(){h.readyState==4&&(h.status==200?(e.userInfo=JSON.parse(h.responseText),v.setSuccess(e.userInfo)):v.setError())},h.send(),v.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 h=e.tokenParsed.exp-Math.ceil(new Date().getTime()/1e3)+e.timeSkew;if(u){if(isNaN(u))throw"Invalid minValidity";h-=u}return h<0},e.updateToken=function(u){var h=Y();if(!e.refreshToken)return h.setError(),h.promise;u=u||5;var v=function(){var b=!1;if(u==-1?(b=!0,d("[KEYCLOAK] Refreshing token: forced refresh")):(!e.tokenParsed||e.isTokenExpired(u))&&(b=!0,d("[KEYCLOAK] Refreshing token: token expired")),!b)h.setSuccess(!1);else{var P="grant_type=refresh_token&refresh_token="+e.refreshToken,_=e.endpoints.token();if(o.push(h),o.length==1){var E=new XMLHttpRequest;E.open("POST",_,!0),E.setRequestHeader("Content-type","application/x-www-form-urlencoded"),E.withCredentials=!0,P+="&client_id="+encodeURIComponent(e.clientId);var O=new Date().getTime();E.onreadystatechange=function(){if(E.readyState==4)if(E.status==200){d("[KEYCLOAK] Token refreshed"),O=(O+new Date().getTime())/2;var x=JSON.parse(E.responseText);G(x.access_token,x.refresh_token,x.id_token,O),e.onAuthRefreshSuccess&&e.onAuthRefreshSuccess();for(var R=o.pop();R!=null;R=o.pop())R.setSuccess(!0)}else{f("[KEYCLOAK] Failed to refresh token"),E.status==400&&e.clearToken(),e.onAuthRefreshError&&e.onAuthRefreshError();for(var R=o.pop();R!=null;R=o.pop())R.setError(!0)}},E.send(P)}}};if(s.enable){var T=fe();T.then(function(){v()}).catch(function(b){h.setError(b)})}else v();return h.promise},e.clearToken=function(){e.token&&(G(null,null,null),e.onAuthLogout&&e.onAuthLogout(),e.loginRequired&&e.login())};function L(){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 w(){return window.location.origin?window.location.origin:window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:"")}function S(u,h){var v=u.code,T=u.error,b=u.prompt,P=new Date().getTime();if(u.kc_action_status&&e.onActionUpdate&&e.onActionUpdate(u.kc_action_status,u.kc_action),T){if(b!="none")if(u.error_description&&u.error_description==="authentication_expired")e.login(u.loginOptions);else{var _={error:T,error_description:u.error_description};e.onAuthError&&e.onAuthError(_),h&&h.setError(_)}else h&&h.setSuccess();return}else e.flow!="standard"&&(u.access_token||u.id_token)&&R(u.access_token,null,u.id_token,!0);if(e.flow!="implicit"&&v){var E="code="+v+"&grant_type=authorization_code",O=e.endpoints.token(),x=new XMLHttpRequest;x.open("POST",O,!0),x.setRequestHeader("Content-type","application/x-www-form-urlencoded"),E+="&client_id="+encodeURIComponent(e.clientId),E+="&redirect_uri="+u.redirectUri,u.pkceCodeVerifier&&(E+="&code_verifier="+u.pkceCodeVerifier),x.withCredentials=!0,x.onreadystatechange=function(){if(x.readyState==4)if(x.status==200){var F=JSON.parse(x.responseText);R(F.access_token,F.refresh_token,F.id_token,e.flow==="standard"),de()}else e.onAuthError&&e.onAuthError(),h&&h.setError()},x.send(E)}function R(F,Ce,me,pe){P=(P+new Date().getTime())/2,G(F,Ce,me,P),c&&e.idTokenParsed&&e.idTokenParsed.nonce!=u.storedNonce?(d("[KEYCLOAK] Invalid nonce, clearing token"),e.clearToken(),h&&h.setError()):pe&&(e.onAuthSuccess&&e.onAuthSuccess(),h&&h.setSuccess())}}function M(u){var h=Y(),v;t?typeof t=="string"&&(v=t):v="keycloak.json";function T(x){x?e.endpoints={authorize:function(){return x.authorization_endpoint},token:function(){return x.token_endpoint},logout:function(){if(!x.end_session_endpoint)throw"Not supported by the OIDC server";return x.end_session_endpoint},checkSessionIframe:function(){if(!x.check_session_iframe)throw"Not supported by the OIDC server";return x.check_session_iframe},register:function(){throw'Redirection to "Register user" page not supported in standard OIDC mode'},userinfo:function(){if(!x.userinfo_endpoint)throw"Not supported by the OIDC server";return x.userinfo_endpoint}}:e.endpoints={authorize:function(){return L()+"/protocol/openid-connect/auth"},token:function(){return L()+"/protocol/openid-connect/token"},logout:function(){return L()+"/protocol/openid-connect/logout"},checkSessionIframe:function(){var R=L()+"/protocol/openid-connect/login-status-iframe.html";return e.iframeVersion&&(R=R+"?version="+e.iframeVersion),R},thirdPartyCookiesIframe:function(){var R=L()+"/protocol/openid-connect/3p-cookies/step1.html";return e.iframeVersion&&(R=R+"?version="+e.iframeVersion),R},register:function(){return L()+"/protocol/openid-connect/registrations"},userinfo:function(){return L()+"/protocol/openid-connect/userinfo"}}}if(v){var b=new XMLHttpRequest;b.open("GET",v,!0),b.setRequestHeader("Accept","application/json"),b.onreadystatechange=function(){if(b.readyState==4)if(b.status==200||U(b)){var x=JSON.parse(b.responseText);e.authServerUrl=x["auth-server-url"],e.realm=x.realm,e.clientId=x.resource,T(null),h.setSuccess()}else h.setError()},b.send()}else{if(!t.clientId)throw"clientId missing";e.clientId=t.clientId;var P=t.oidcProvider;if(P)if(typeof P=="string"){var O;P.charAt(P.length-1)=="/"?O=P+".well-known/openid-configuration":O=P+"/.well-known/openid-configuration";var b=new XMLHttpRequest;b.open("GET",O,!0),b.setRequestHeader("Accept","application/json"),b.onreadystatechange=function(){if(b.readyState==4)if(b.status==200||U(b)){var R=JSON.parse(b.responseText);T(R),h.setSuccess()}else h.setError()},b.send()}else T(P),h.setSuccess();else{if(!t.url){for(var _=document.getElementsByTagName("script"),E=0;E<_.length;E++)if(_[E].src.match(/.*keycloak\.js/)){t.url=_[E].src.substr(0,_[E].src.indexOf("/js/keycloak.js"));break}}if(!t.realm)throw"realm missing";e.authServerUrl=t.url,e.realm=t.realm,T(null),h.setSuccess()}}return h.promise}function U(u){return u.status==0&&u.responseText&&u.responseURL.startsWith("file:")}function G(u,h,v,T){if(e.tokenTimeoutHandle&&(clearTimeout(e.tokenTimeoutHandle),e.tokenTimeoutHandle=null),h?(e.refreshToken=h,e.refreshTokenParsed=Ao(h)):(delete e.refreshToken,delete e.refreshTokenParsed),v?(e.idToken=v,e.idTokenParsed=Ao(v)):(delete e.idToken,delete e.idTokenParsed),u){if(e.token=u,e.tokenParsed=Ao(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,T&&(e.timeSkew=Math.floor(T/1e3)-e.tokenParsed.iat),e.timeSkew!=null&&(d("[KEYCLOAK] Estimated time difference between browser and server is "+e.timeSkew+" seconds"),e.onTokenExpired)){var b=(e.tokenParsed.exp-new Date().getTime()/1e3+e.timeSkew)*1e3;d("[KEYCLOAK] Token expires in "+Math.round(b/1e3)+" s"),b<=0?e.onTokenExpired():e.tokenTimeoutHandle=setTimeout(e.onTokenExpired,b)}}else delete e.token,delete e.tokenParsed,delete e.subject,delete e.realmAccess,delete e.resourceAccess,e.authenticated=!1}function ue(){var u="0123456789abcdef",h=k(36,u).split("");h[14]="4",h[19]=u.substr(h[19]&3|8,1),h[8]=h[13]=h[18]=h[23]="-";var v=h.join("");return v}function ne(u){var h=Pe(u);if(h){var v=r.get(h.state);return v&&(h.valid=!0,h.redirectUri=v.redirectUri,h.storedNonce=v.nonce,h.prompt=v.prompt,h.pkceCodeVerifier=v.pkceCodeVerifier,h.loginOptions=v.loginOptions),h}}function Pe(u){var h;switch(e.flow){case"standard":h=["code","state","session_state","kc_action_status","kc_action","iss"];break;case"implicit":h=["access_token","token_type","id_token","state","session_state","expires_in","kc_action_status","kc_action","iss"];break;case"hybrid":h=["access_token","token_type","id_token","code","state","session_state","expires_in","kc_action_status","kc_action","iss"];break}h.push("error"),h.push("error_description"),h.push("error_uri");var v=u.indexOf("?"),T=u.indexOf("#"),b,P;if(e.responseMode==="query"&&v!==-1?(b=u.substring(0,v),P=oe(u.substring(v+1,T!==-1?T:u.length),h),P.paramsString!==""&&(b+="?"+P.paramsString),T!==-1&&(b+=u.substring(T))):e.responseMode==="fragment"&&T!==-1&&(b=u.substring(0,T),P=oe(u.substring(T+1),h),P.paramsString!==""&&(b+="#"+P.paramsString)),P&&P.oauthParams){if(e.flow==="standard"||e.flow==="hybrid"){if((P.oauthParams.code||P.oauthParams.error)&&P.oauthParams.state)return P.oauthParams.newUrl=b,P.oauthParams}else if(e.flow==="implicit"&&(P.oauthParams.access_token||P.oauthParams.error)&&P.oauthParams.state)return P.oauthParams.newUrl=b,P.oauthParams}}function oe(u,h){for(var v=u.split("&"),T={paramsString:"",oauthParams:{}},b=0;b<v.length;b++){var P=v[b].indexOf("="),_=v[b].slice(0,P);h.indexOf(_)!==-1?T.oauthParams[_]=v[b].slice(P+1):(T.paramsString!==""&&(T.paramsString+="&"),T.paramsString+=v[b])}return T}function Y(){var u={setSuccess:function(h){u.resolve(h)},setError:function(h){u.reject(h)}};return u.promise=new Promise(function(h,v){u.resolve=h,u.reject=v}),u}function N(u,h,v){var T=null,b=new Promise(function(P,_){T=setTimeout(function(){_({error:v})},h)});return Promise.race([u,b]).finally(function(){clearTimeout(T)})}function X(){var u=Y();if(!s.enable||s.iframe)return u.setSuccess(),u.promise;var h=document.createElement("iframe");s.iframe=h,h.onload=function(){var b=e.endpoints.authorize();b.charAt(0)==="/"?s.iframeOrigin=w():s.iframeOrigin=b.substring(0,b.indexOf("/",8)),u.setSuccess()};var v=e.endpoints.checkSessionIframe();h.setAttribute("src",v),h.setAttribute("sandbox","allow-storage-access-by-user-activation allow-scripts allow-same-origin"),h.setAttribute("title","keycloak-session-iframe"),h.style.display="none",document.body.appendChild(h);var T=function(b){if(!(b.origin!==s.iframeOrigin||s.iframe.contentWindow!==b.source)&&(b.data=="unchanged"||b.data=="changed"||b.data=="error")){b.data!="unchanged"&&e.clearToken();for(var P=s.callbackList.splice(0,s.callbackList.length),_=P.length-1;_>=0;--_){var E=P[_];b.data=="error"?E.setError():E.setSuccess(b.data=="unchanged")}}};return window.addEventListener("message",T,!1),u.promise}function de(){s.enable&&e.token&&setTimeout(function(){fe().then(function(u){u&&de()})},s.interval*1e3)}function fe(){var u=Y();if(s.iframe&&s.iframeOrigin){var h=e.clientId+" "+(e.sessionId?e.sessionId:"");s.callbackList.push(u);var v=s.iframeOrigin;s.callbackList.length==1&&s.iframe.contentWindow.postMessage(h,v)}else u.setSuccess();return u.promise}function je(){var u=Y();if(s.enable||e.silentCheckSsoRedirectUri){var h=document.createElement("iframe");h.setAttribute("src",e.endpoints.thirdPartyCookiesIframe()),h.setAttribute("sandbox","allow-storage-access-by-user-activation allow-scripts allow-same-origin"),h.setAttribute("title","keycloak-3p-check-iframe"),h.style.display="none",document.body.appendChild(h);var v=function(T){h.contentWindow===T.source&&(T.data!=="supported"&&T.data!=="unsupported"||(T.data==="unsupported"&&(f(`[KEYCLOAK] Your browser is blocking access to 3rd-party cookies, this means:
404
+ If you think this parameter should be updatable, request it here: https://github.com/sweetalert2/sweetalert2/issues/new?template=02_feature_request.md`)}),e};function Hu(){const t=H.domCache.get(this),e=H.innerParams.get(this);if(!e){li(this);return}t.popup&&V.swalCloseEventFinishedCallback&&(V.swalCloseEventFinishedCallback(),delete V.swalCloseEventFinishedCallback),V.deferDisposalTimer&&(clearTimeout(V.deferDisposalTimer),delete V.deferDisposalTimer),typeof e.didDestroy=="function"&&e.didDestroy(),ju(this)}const ju=t=>{li(t),delete t.params,delete V.keydownHandler,delete V.keydownTarget,delete V.currentInstance},li=t=>{t.isAwaitingPromise()?(ho(H,t),H.awaitingPromise.set(t,!0)):(ho(Qt,t),ho(H,t))},ho=(t,e)=>{for(const n in t)t[n].delete(e)},ci=Object.freeze(Object.defineProperty({__proto__:null,_destroy:Hu,close:En,closeModal:En,closePopup:En,closeToast:En,disableButtons:$u,disableInput:Nu,disableLoading:ei,enableButtons:Ou,enableInput:Bu,getInput:pu,getProgressSteps:Ru,handleAwaitingPromise:en,hideLoading:ei,isAwaitingPromise:Iu,rejectPromise:Au,resetValidationMessage:Du,showValidationMessage:Mu,update:Uu},Symbol.toStringTag,{value:"Module"})),Fu=t=>{const e=H.innerParams.get(t);t.disableButtons(),e.input?ui(t,"confirm"):yo(t,!0)},zu=t=>{const e=H.innerParams.get(t);t.disableButtons(),e.returnInputValueOnDeny?ui(t,"deny"):go(t,!1)},Ku=(t,e)=>{t.disableButtons(),e(kt.cancel)},ui=(t,e)=>{const n=H.innerParams.get(t);if(!n.input)return lt(`The "input" parameter is needed to be set when using returnInputValueOn${eo(e)}`);const o=su(t,n);n.inputValidator?Wu(t,o,e):t.getInput().checkValidity()?e==="deny"?go(t,o):yo(t,o):(t.enableButtons(),t.showValidationMessage(n.validationMessage))},Wu=(t,e,n)=>{const o=H.innerParams.get(t);t.disableInput(),Promise.resolve().then(()=>Kt(o.inputValidator(e,o.validationMessage))).then(s=>{t.enableButtons(),t.enableInput(),s?t.showValidationMessage(s):n==="deny"?go(t,e):yo(t,e)})},go=(t,e)=>{const n=H.innerParams.get(t||void 0);n.showLoaderOnDeny&&_t(ot()),n.preDeny?(H.awaitingPromise.set(t||void 0,!0),Promise.resolve().then(()=>Kt(n.preDeny(e,n.validationMessage))).then(r=>{r===!1?(t.hideLoading(),en(t)):t.closePopup({isDenied:!0,value:typeof r>"u"?e:r})}).catch(r=>fi(t||void 0,r))):t.closePopup({isDenied:!0,value:e})},di=(t,e)=>{t.closePopup({isConfirmed:!0,value:e})},fi=(t,e)=>{t.rejectPromise(e)},yo=(t,e)=>{const n=H.innerParams.get(t||void 0);n.showLoaderOnConfirm&&_t(),n.preConfirm?(t.resetValidationMessage(),H.awaitingPromise.set(t||void 0,!0),Promise.resolve().then(()=>Kt(n.preConfirm(e,n.validationMessage))).then(r=>{Ae(kn())||r===!1?(t.hideLoading(),en(t)):di(t,typeof r>"u"?e:r)}).catch(r=>fi(t||void 0,r))):di(t,e)},Gu=(t,e,n)=>{H.innerParams.get(t).toast?qu(t,e,n):(Xu(e),Zu(e),Ju(t,e,n))},qu=(t,e,n)=>{e.popup.onclick=()=>{const o=H.innerParams.get(t);o&&(Yu(o)||o.timer||o.input)||n(kt.close)}},Yu=t=>t.showConfirmButton||t.showDenyButton||t.showCancelButton||t.showCloseButton;let In=!1;const Xu=t=>{t.popup.onmousedown=()=>{t.container.onmouseup=function(e){t.container.onmouseup=void 0,e.target===t.container&&(In=!0)}}},Zu=t=>{t.container.onmousedown=()=>{t.popup.onmouseup=function(e){t.popup.onmouseup=void 0,(e.target===t.popup||t.popup.contains(e.target))&&(In=!0)}}},Ju=(t,e,n)=>{e.container.onclick=o=>{const r=H.innerParams.get(t);if(In){In=!1;return}o.target===e.container&&vn(r.allowOutsideClick)&&n(kt.backdrop)}},Qu=t=>typeof t=="object"&&t.jquery,mi=t=>t instanceof Element||Qu(t),ed=t=>{const e={};return typeof t[0]=="object"&&!mi(t[0])?Object.assign(e,t[0]):["title","html","icon"].forEach((n,o)=>{const r=t[o];typeof r=="string"||mi(r)?e[n]=r:r!==void 0&&lt(`Unexpected type of ${n}! Expected "string" or "Element", got ${typeof r}`)}),e};function td(...t){const e=this;return new e(...t)}function nd(t){class e extends this{_main(o,r){return super._main(o,Object.assign({},t,r))}}return e}const od=()=>V.timeout&&V.timeout.getTimerLeft(),pi=()=>{if(V.timeout)return zl(),V.timeout.stop()},hi=()=>{if(V.timeout){const t=V.timeout.start();return lo(t),t}},rd=()=>{const t=V.timeout;return t&&(t.running?pi():hi())},id=t=>{if(V.timeout){const e=V.timeout.increase(t);return lo(e,!0),e}},sd=()=>V.timeout&&V.timeout.isRunning();let gi=!1;const bo={};function ad(t="data-swal-template"){bo[t]=this,gi||(document.body.addEventListener("click",ld),gi=!0)}const ld=t=>{for(let e=t.target;e&&e!==document;e=e.parentNode)for(const n in bo){const o=e.getAttribute(n);if(o){bo[n].fire({template:o});return}}},cd=Object.freeze(Object.defineProperty({__proto__:null,argsToParams:ed,bindClickHandler:ad,clickCancel:yu,clickConfirm:ti,clickDeny:gu,enableLoading:_t,fire:td,getActions:Yt,getCancelButton:ct,getCloseButton:ro,getConfirmButton:De,getContainer:ae,getDenyButton:ot,getFocusableElements:io,getFooter:Mr,getHtmlContainer:wn,getIcon:qt,getImage:Br,getInputLabel:Ul,getLoader:vt,getPopup:J,getTimerLeft:od,getTimerProgressBar:_n,getTitle:$r,getValidationMessage:kn,increaseTimer:id,isDeprecatedParameter:oo,isLoading:Hl,isTimerRunning:sd,isUpdatableParameter:xr,isValidParameter:Lr,isVisible:hu,mixin:nd,resumeTimer:hi,showLoading:_t,stopTimer:pi,toggleTimer:rd},Symbol.toStringTag,{value:"Module"}));let vo;class St{constructor(...e){if(typeof window>"u")return;vo=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);H.promise.set(this,o)}_main(e,n={}){Dl(Object.assign({},n,e)),V.currentInstance&&(V.currentInstance._destroy(),so()&&qr()),V.currentInstance=this;const o=dd(e,n);Fc(o),Object.freeze(o),V.timeout&&(V.timeout.stop(),delete V.timeout),clearTimeout(V.restoreFocusTimeout);const r=fd(this);return Gr(this,o),H.innerParams.set(this,o),ud(this,r,o)}then(e){return H.promise.get(this).then(e)}finally(e){return H.promise.get(this).finally(e)}}const ud=(t,e,n)=>new Promise((o,r)=>{const s=l=>{t.closePopup({isDismissed:!0,dismiss:l})};Qt.swalPromiseResolve.set(t,o),Qt.swalPromiseReject.set(t,r),e.confirmButton.onclick=()=>Fu(t),e.denyButton.onclick=()=>zu(t),e.cancelButton.onclick=()=>Ku(t,s),e.closeButton.onclick=()=>s(kt.close),Gu(t,e,s),bu(t,V,n,s),iu(t,n),eu(n),md(V,n,s),pd(e,n),setTimeout(()=>{e.container.scrollTop=0})}),dd=(t,e)=>{const n=$c(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},fd=t=>{const e={popup:J(),container:ae(),actions:Yt(),confirmButton:De(),denyButton:ot(),cancelButton:ct(),loader:vt(),closeButton:ro(),validationMessage:kn(),progressSteps:Nr()};return H.domCache.set(t,e),e},md=(t,e,n)=>{const o=_n();ce(o),e.timer&&(t.timeout=new zc(()=>{n("timer"),delete t.timeout},e.timer),e.timerProgressBar&&(ie(o),xe(o,e,"timerProgressBar"),setTimeout(()=>{t.timeout&&t.timeout.running&&lo(e.timer)})))},pd=(t,e)=>{if(!e.toast){if(!vn(e.allowEnterKey))return gd();hd(t,e)||po(e,-1,1)}},hd=(t,e)=>e.focusDeny&&Ae(t.denyButton)?(t.denyButton.focus(),!0):e.focusCancel&&Ae(t.cancelButton)?(t.cancelButton.focus(),!0):e.focusConfirm&&Ae(t.confirmButton)?(t.confirmButton.focus(),!0):!1,gd=()=>{document.activeElement instanceof HTMLElement&&typeof document.activeElement.blur=="function"&&document.activeElement.blur()};Object.assign(St.prototype,ci),Object.assign(St,cd),Object.keys(ci).forEach(t=>{St[t]=function(...e){if(vo)return vo[t](...e)}}),St.DismissReason=kt,St.version="11.4.8";const ft=St;ft.default=ft;/*! @license DOMPurify 3.2.4 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.4/LICENSE */const{entries:yi,setPrototypeOf:bi,isFrozen:yd,getPrototypeOf:bd,getOwnPropertyDescriptor:vd}=Object;let{freeze:ye,seal:Oe,create:vi}=Object,{apply:wo,construct:ko}=typeof Reflect<"u"&&Reflect;ye||(ye=function(e){return e}),Oe||(Oe=function(e){return e}),wo||(wo=function(e,n,o){return e.apply(n,o)}),ko||(ko=function(e,n){return new e(...n)});const Tn=ve(Array.prototype.forEach),wd=ve(Array.prototype.lastIndexOf),wi=ve(Array.prototype.pop),tn=ve(Array.prototype.push),kd=ve(Array.prototype.splice),An=ve(String.prototype.toLowerCase),_o=ve(String.prototype.toString),ki=ve(String.prototype.match),nn=ve(String.prototype.replace),_d=ve(String.prototype.indexOf),Sd=ve(String.prototype.trim),Re=ve(Object.prototype.hasOwnProperty),be=ve(RegExp.prototype.test),on=Cd(TypeError);function ve(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 wo(t,e,o)}}function Cd(t){return function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return ko(t,n)}}function z(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:An;bi&&bi(t,null);let o=e.length;for(;o--;){let r=e[o];if(typeof r=="string"){const s=n(r);s!==r&&(yd(e)||(e[o]=s),r=s)}t[r]=!0}return t}function Ed(t){for(let e=0;e<t.length;e++)Re(t,e)||(t[e]=null);return t}function mt(t){const e=vi(null);for(const[n,o]of yi(t))Re(t,n)&&(Array.isArray(o)?e[n]=Ed(o):o&&typeof o=="object"&&o.constructor===Object?e[n]=mt(o):e[n]=o);return e}function rn(t,e){for(;t!==null;){const o=vd(t,e);if(o){if(o.get)return ve(o.get);if(typeof o.value=="function")return ve(o.value)}t=bd(t)}function n(){return null}return n}const _i=ye(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),So=ye(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Co=ye(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Id=ye(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Eo=ye(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),Td=ye(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Si=ye(["#text"]),Ci=ye(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","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"]),Io=ye(["accent-height","accumulate","additive","alignment-baseline","amplitude","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","exponent","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","intercept","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","slope","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","tablevalues","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"]),Ei=ye(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Pn=ye(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Ad=Oe(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Pd=Oe(/<%[\w\W]*|[\w\W]*%>/gm),Ld=Oe(/\$\{[\w\W]*/gm),xd=Oe(/^data-[\-\w.\u00B7-\uFFFF]+$/),Od=Oe(/^aria-[\-\w]+$/),Ii=Oe(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),$d=Oe(/^(?:\w+script|data):/i),Bd=Oe(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Ti=Oe(/^html$/i),Nd=Oe(/^[a-z][.\w]*(-[.\w]+)+$/i);var Ai=Object.freeze({__proto__:null,ARIA_ATTR:Od,ATTR_WHITESPACE:Bd,CUSTOM_ELEMENT:Nd,DATA_ATTR:xd,DOCTYPE_NAME:Ti,ERB_EXPR:Pd,IS_ALLOWED_URI:Ii,IS_SCRIPT_OR_DATA:$d,MUSTACHE_EXPR:Ad,TMPLIT_EXPR:Ld});const sn={element:1,text:3,progressingInstruction:7,comment:8,document:9},Md=function(){return typeof window>"u"?null:window},Dd=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 s="dompurify"+(o?"#"+o:"");try{return e.createPolicy(s,{createHTML(l){return l},createScriptURL(l){return l}})}catch{return console.warn("TrustedTypes policy "+s+" could not be created."),null}},Pi=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function Li(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Md();const e=B=>Li(B);if(e.version="3.2.4",e.removed=[],!t||!t.document||t.document.nodeType!==sn.document||!t.Element)return e.isSupported=!1,e;let{document:n}=t;const o=n,r=o.currentScript,{DocumentFragment:s,HTMLTemplateElement:l,Node:a,Element:c,NodeFilter:d,NamedNodeMap:f=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:p,DOMParser:y,trustedTypes:k}=t,C=c.prototype,A=rn(C,"cloneNode"),L=rn(C,"remove"),w=rn(C,"nextSibling"),S=rn(C,"childNodes"),M=rn(C,"parentNode");if(typeof l=="function"){const B=n.createElement("template");B.content&&B.content.ownerDocument&&(n=B.content.ownerDocument)}let U,G="";const{implementation:ue,createNodeIterator:ne,createDocumentFragment:Pe,getElementsByTagName:oe}=n,{importNode:Y}=o;let N=Pi();e.isSupported=typeof yi=="function"&&typeof M=="function"&&ue&&ue.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:X,ERB_EXPR:de,TMPLIT_EXPR:fe,DATA_ATTR:je,ARIA_ATTR:Xe,IS_SCRIPT_OR_DATA:Fe,ATTR_WHITESPACE:ze,CUSTOM_ELEMENT:ht}=Ai;let{IS_ALLOWED_URI:$e}=Ai,u=null;const h=z({},[..._i,...So,...Co,...Eo,...Si]);let v=null;const T=z({},[...Ci,...Io,...Ei,...Pn]);let b=Object.seal(vi(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),P=null,_=null,E=!0,O=!0,x=!1,R=!0,F=!1,Ce=!0,me=!1,pe=!1,Ze=!1,Et=!1,$n=!1,Bn=!1,Ki=!0,Wi=!1;const jf="user-content-";let $o=!0,ln=!1,It={},Tt=null;const Gi=z({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let qi=null;const Yi=z({},["audio","video","img","source","image","track"]);let Bo=null;const Xi=z({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Nn="http://www.w3.org/1998/Math/MathML",Mn="http://www.w3.org/2000/svg",Je="http://www.w3.org/1999/xhtml";let At=Je,No=!1,Mo=null;const Ff=z({},[Nn,Mn,Je],_o);let Dn=z({},["mi","mo","mn","ms","mtext"]),Rn=z({},["annotation-xml"]);const zf=z({},["title","style","font","a","script"]);let cn=null;const Kf=["application/xhtml+xml","text/html"],Wf="text/html";let re=null,Pt=null;const Gf=n.createElement("form"),Zi=function(m){return m instanceof RegExp||m instanceof Function},Do=function(){let m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Pt&&Pt===m)){if((!m||typeof m!="object")&&(m={}),m=mt(m),cn=Kf.indexOf(m.PARSER_MEDIA_TYPE)===-1?Wf:m.PARSER_MEDIA_TYPE,re=cn==="application/xhtml+xml"?_o:An,u=Re(m,"ALLOWED_TAGS")?z({},m.ALLOWED_TAGS,re):h,v=Re(m,"ALLOWED_ATTR")?z({},m.ALLOWED_ATTR,re):T,Mo=Re(m,"ALLOWED_NAMESPACES")?z({},m.ALLOWED_NAMESPACES,_o):Ff,Bo=Re(m,"ADD_URI_SAFE_ATTR")?z(mt(Xi),m.ADD_URI_SAFE_ATTR,re):Xi,qi=Re(m,"ADD_DATA_URI_TAGS")?z(mt(Yi),m.ADD_DATA_URI_TAGS,re):Yi,Tt=Re(m,"FORBID_CONTENTS")?z({},m.FORBID_CONTENTS,re):Gi,P=Re(m,"FORBID_TAGS")?z({},m.FORBID_TAGS,re):{},_=Re(m,"FORBID_ATTR")?z({},m.FORBID_ATTR,re):{},It=Re(m,"USE_PROFILES")?m.USE_PROFILES:!1,E=m.ALLOW_ARIA_ATTR!==!1,O=m.ALLOW_DATA_ATTR!==!1,x=m.ALLOW_UNKNOWN_PROTOCOLS||!1,R=m.ALLOW_SELF_CLOSE_IN_ATTR!==!1,F=m.SAFE_FOR_TEMPLATES||!1,Ce=m.SAFE_FOR_XML!==!1,me=m.WHOLE_DOCUMENT||!1,Et=m.RETURN_DOM||!1,$n=m.RETURN_DOM_FRAGMENT||!1,Bn=m.RETURN_TRUSTED_TYPE||!1,Ze=m.FORCE_BODY||!1,Ki=m.SANITIZE_DOM!==!1,Wi=m.SANITIZE_NAMED_PROPS||!1,$o=m.KEEP_CONTENT!==!1,ln=m.IN_PLACE||!1,$e=m.ALLOWED_URI_REGEXP||Ii,At=m.NAMESPACE||Je,Dn=m.MATHML_TEXT_INTEGRATION_POINTS||Dn,Rn=m.HTML_INTEGRATION_POINTS||Rn,b=m.CUSTOM_ELEMENT_HANDLING||{},m.CUSTOM_ELEMENT_HANDLING&&Zi(m.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(b.tagNameCheck=m.CUSTOM_ELEMENT_HANDLING.tagNameCheck),m.CUSTOM_ELEMENT_HANDLING&&Zi(m.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(b.attributeNameCheck=m.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),m.CUSTOM_ELEMENT_HANDLING&&typeof m.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(b.allowCustomizedBuiltInElements=m.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),F&&(O=!1),$n&&(Et=!0),It&&(u=z({},Si),v=[],It.html===!0&&(z(u,_i),z(v,Ci)),It.svg===!0&&(z(u,So),z(v,Io),z(v,Pn)),It.svgFilters===!0&&(z(u,Co),z(v,Io),z(v,Pn)),It.mathMl===!0&&(z(u,Eo),z(v,Ei),z(v,Pn))),m.ADD_TAGS&&(u===h&&(u=mt(u)),z(u,m.ADD_TAGS,re)),m.ADD_ATTR&&(v===T&&(v=mt(v)),z(v,m.ADD_ATTR,re)),m.ADD_URI_SAFE_ATTR&&z(Bo,m.ADD_URI_SAFE_ATTR,re),m.FORBID_CONTENTS&&(Tt===Gi&&(Tt=mt(Tt)),z(Tt,m.FORBID_CONTENTS,re)),$o&&(u["#text"]=!0),me&&z(u,["html","head","body"]),u.table&&(z(u,["tbody"]),delete P.tbody),m.TRUSTED_TYPES_POLICY){if(typeof m.TRUSTED_TYPES_POLICY.createHTML!="function")throw on('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof m.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw on('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');U=m.TRUSTED_TYPES_POLICY,G=U.createHTML("")}else U===void 0&&(U=Dd(k,r)),U!==null&&typeof G=="string"&&(G=U.createHTML(""));ye&&ye(m),Pt=m}},Ji=z({},[...So,...Co,...Id]),Qi=z({},[...Eo,...Td]),qf=function(m){let I=M(m);(!I||!I.tagName)&&(I={namespaceURI:At,tagName:"template"});const $=An(m.tagName),ee=An(I.tagName);return Mo[m.namespaceURI]?m.namespaceURI===Mn?I.namespaceURI===Je?$==="svg":I.namespaceURI===Nn?$==="svg"&&(ee==="annotation-xml"||Dn[ee]):!!Ji[$]:m.namespaceURI===Nn?I.namespaceURI===Je?$==="math":I.namespaceURI===Mn?$==="math"&&Rn[ee]:!!Qi[$]:m.namespaceURI===Je?I.namespaceURI===Mn&&!Rn[ee]||I.namespaceURI===Nn&&!Dn[ee]?!1:!Qi[$]&&(zf[$]||!Ji[$]):!!(cn==="application/xhtml+xml"&&Mo[m.namespaceURI]):!1},Ke=function(m){tn(e.removed,{element:m});try{M(m).removeChild(m)}catch{L(m)}},Un=function(m,I){try{tn(e.removed,{attribute:I.getAttributeNode(m),from:I})}catch{tn(e.removed,{attribute:null,from:I})}if(I.removeAttribute(m),m==="is")if(Et||$n)try{Ke(I)}catch{}else try{I.setAttribute(m,"")}catch{}},es=function(m){let I=null,$=null;if(Ze)m="<remove></remove>"+m;else{const se=ki(m,/^[\r\n\t ]+/);$=se&&se[0]}cn==="application/xhtml+xml"&&At===Je&&(m='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+m+"</body></html>");const ee=U?U.createHTML(m):m;if(At===Je)try{I=new y().parseFromString(ee,cn)}catch{}if(!I||!I.documentElement){I=ue.createDocument(At,"template",null);try{I.documentElement.innerHTML=No?G:ee}catch{}}const he=I.body||I.documentElement;return m&&$&&he.insertBefore(n.createTextNode($),he.childNodes[0]||null),At===Je?oe.call(I,me?"html":"body")[0]:me?I.documentElement:he},ts=function(m){return ne.call(m.ownerDocument||m,m,d.SHOW_ELEMENT|d.SHOW_COMMENT|d.SHOW_TEXT|d.SHOW_PROCESSING_INSTRUCTION|d.SHOW_CDATA_SECTION,null)},Ro=function(m){return m instanceof p&&(typeof m.nodeName!="string"||typeof m.textContent!="string"||typeof m.removeChild!="function"||!(m.attributes instanceof f)||typeof m.removeAttribute!="function"||typeof m.setAttribute!="function"||typeof m.namespaceURI!="string"||typeof m.insertBefore!="function"||typeof m.hasChildNodes!="function")},ns=function(m){return typeof a=="function"&&m instanceof a};function Qe(B,m,I){Tn(B,$=>{$.call(e,m,I,Pt)})}const os=function(m){let I=null;if(Qe(N.beforeSanitizeElements,m,null),Ro(m))return Ke(m),!0;const $=re(m.nodeName);if(Qe(N.uponSanitizeElement,m,{tagName:$,allowedTags:u}),m.hasChildNodes()&&!ns(m.firstElementChild)&&be(/<[/\w]/g,m.innerHTML)&&be(/<[/\w]/g,m.textContent)||m.nodeType===sn.progressingInstruction||Ce&&m.nodeType===sn.comment&&be(/<[/\w]/g,m.data))return Ke(m),!0;if(!u[$]||P[$]){if(!P[$]&&is($)&&(b.tagNameCheck instanceof RegExp&&be(b.tagNameCheck,$)||b.tagNameCheck instanceof Function&&b.tagNameCheck($)))return!1;if($o&&!Tt[$]){const ee=M(m)||m.parentNode,he=S(m)||m.childNodes;if(he&&ee){const se=he.length;for(let Ee=se-1;Ee>=0;--Ee){const We=A(he[Ee],!0);We.__removalCount=(m.__removalCount||0)+1,ee.insertBefore(We,w(m))}}}return Ke(m),!0}return m instanceof c&&!qf(m)||($==="noscript"||$==="noembed"||$==="noframes")&&be(/<\/no(script|embed|frames)/i,m.innerHTML)?(Ke(m),!0):(F&&m.nodeType===sn.text&&(I=m.textContent,Tn([X,de,fe],ee=>{I=nn(I,ee," ")}),m.textContent!==I&&(tn(e.removed,{element:m.cloneNode()}),m.textContent=I)),Qe(N.afterSanitizeElements,m,null),!1)},rs=function(m,I,$){if(Ki&&(I==="id"||I==="name")&&($ in n||$ in Gf))return!1;if(!(O&&!_[I]&&be(je,I))){if(!(E&&be(Xe,I))){if(!v[I]||_[I]){if(!(is(m)&&(b.tagNameCheck instanceof RegExp&&be(b.tagNameCheck,m)||b.tagNameCheck instanceof Function&&b.tagNameCheck(m))&&(b.attributeNameCheck instanceof RegExp&&be(b.attributeNameCheck,I)||b.attributeNameCheck instanceof Function&&b.attributeNameCheck(I))||I==="is"&&b.allowCustomizedBuiltInElements&&(b.tagNameCheck instanceof RegExp&&be(b.tagNameCheck,$)||b.tagNameCheck instanceof Function&&b.tagNameCheck($))))return!1}else if(!Bo[I]){if(!be($e,nn($,ze,""))){if(!((I==="src"||I==="xlink:href"||I==="href")&&m!=="script"&&_d($,"data:")===0&&qi[m])){if(!(x&&!be(Fe,nn($,ze,"")))){if($)return!1}}}}}}return!0},is=function(m){return m!=="annotation-xml"&&ki(m,ht)},ss=function(m){Qe(N.beforeSanitizeAttributes,m,null);const{attributes:I}=m;if(!I||Ro(m))return;const $={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:v,forceKeepAttr:void 0};let ee=I.length;for(;ee--;){const he=I[ee],{name:se,namespaceURI:Ee,value:We}=he,un=re(se);let we=se==="value"?We:Sd(We);if($.attrName=un,$.attrValue=we,$.keepAttr=!0,$.forceKeepAttr=void 0,Qe(N.uponSanitizeAttribute,m,$),we=$.attrValue,Wi&&(un==="id"||un==="name")&&(Un(se,m),we=jf+we),Ce&&be(/((--!?|])>)|<\/(style|title)/i,we)){Un(se,m);continue}if($.forceKeepAttr||(Un(se,m),!$.keepAttr))continue;if(!R&&be(/\/>/i,we)){Un(se,m);continue}F&&Tn([X,de,fe],ls=>{we=nn(we,ls," ")});const as=re(m.nodeName);if(rs(as,un,we)){if(U&&typeof k=="object"&&typeof k.getAttributeType=="function"&&!Ee)switch(k.getAttributeType(as,un)){case"TrustedHTML":{we=U.createHTML(we);break}case"TrustedScriptURL":{we=U.createScriptURL(we);break}}try{Ee?m.setAttributeNS(Ee,se,we):m.setAttribute(se,we),Ro(m)?Ke(m):wi(e.removed)}catch{}}}Qe(N.afterSanitizeAttributes,m,null)},Yf=function B(m){let I=null;const $=ts(m);for(Qe(N.beforeSanitizeShadowDOM,m,null);I=$.nextNode();)Qe(N.uponSanitizeShadowNode,I,null),os(I),ss(I),I.content instanceof s&&B(I.content);Qe(N.afterSanitizeShadowDOM,m,null)};return e.sanitize=function(B){let m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},I=null,$=null,ee=null,he=null;if(No=!B,No&&(B="<!-->"),typeof B!="string"&&!ns(B))if(typeof B.toString=="function"){if(B=B.toString(),typeof B!="string")throw on("dirty is not a string, aborting")}else throw on("toString is not a function");if(!e.isSupported)return B;if(pe||Do(m),e.removed=[],typeof B=="string"&&(ln=!1),ln){if(B.nodeName){const We=re(B.nodeName);if(!u[We]||P[We])throw on("root node is forbidden and cannot be sanitized in-place")}}else if(B instanceof a)I=es("<!---->"),$=I.ownerDocument.importNode(B,!0),$.nodeType===sn.element&&$.nodeName==="BODY"||$.nodeName==="HTML"?I=$:I.appendChild($);else{if(!Et&&!F&&!me&&B.indexOf("<")===-1)return U&&Bn?U.createHTML(B):B;if(I=es(B),!I)return Et?null:Bn?G:""}I&&Ze&&Ke(I.firstChild);const se=ts(ln?B:I);for(;ee=se.nextNode();)os(ee),ss(ee),ee.content instanceof s&&Yf(ee.content);if(ln)return B;if(Et){if($n)for(he=Pe.call(I.ownerDocument);I.firstChild;)he.appendChild(I.firstChild);else he=I;return(v.shadowroot||v.shadowrootmode)&&(he=Y.call(o,he,!0)),he}let Ee=me?I.outerHTML:I.innerHTML;return me&&u["!doctype"]&&I.ownerDocument&&I.ownerDocument.doctype&&I.ownerDocument.doctype.name&&be(Ti,I.ownerDocument.doctype.name)&&(Ee="<!DOCTYPE "+I.ownerDocument.doctype.name+`>
405
+ `+Ee),F&&Tn([X,de,fe],We=>{Ee=nn(Ee,We," ")}),U&&Bn?U.createHTML(Ee):Ee},e.setConfig=function(){let B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Do(B),pe=!0},e.clearConfig=function(){Pt=null,pe=!1},e.isValidAttribute=function(B,m,I){Pt||Do({});const $=re(B),ee=re(m);return rs($,ee,I)},e.addHook=function(B,m){typeof m=="function"&&tn(N[B],m)},e.removeHook=function(B,m){if(m!==void 0){const I=wd(N[B],m);return I===-1?void 0:kd(N[B],I,1)[0]}return wi(N[B])},e.removeHooks=function(B){N[B]=[]},e.removeAllHooks=function(){N=Pi()},e}var xi=Li();class Oi{get IsVisible(){return ft.isVisible()}async CreateConfirmAsync(e){return new Promise(n=>{ft.fire({showCancelButton:!0,allowEscapeKey:!1,allowOutsideClick:!1,icon:"question",title:e.title,html:xi.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 $i=()=>new Oi,Rd=()=>new Oi;function Ud(t){return t instanceof Uint8Array||t!=null&&typeof t=="object"&&t.constructor.name==="Uint8Array"}function Bi(t,...e){if(!Ud(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 Ni(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 Vd(t,e){Bi(t);const n=e.outputLen;if(t.length<n)throw new Error(`digestInto() expects output buffer of length at least ${n}`)}/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */const To=t=>new DataView(t.buffer,t.byteOffset,t.byteLength),He=(t,e)=>t<<32-e|t>>>e;new Uint8Array(new Uint32Array([287454020]).buffer)[0];function Hd(t){if(typeof t!="string")throw new Error(`utf8ToBytes expected string, got ${typeof t}`);return new Uint8Array(new TextEncoder().encode(t))}function Mi(t){return typeof t=="string"&&(t=Hd(t)),Bi(t),t}class jd{clone(){return this._cloneInto()}}function Fd(t){const e=o=>t().update(Mi(o)).digest(),n=t();return e.outputLen=n.outputLen,e.blockLen=n.blockLen,e.create=()=>t(),e}function zd(t,e,n,o){if(typeof t.setBigUint64=="function")return t.setBigUint64(e,n,o);const r=BigInt(32),s=BigInt(4294967295),l=Number(n>>r&s),a=Number(n&s),c=o?4:0,d=o?0:4;t.setUint32(e+c,l,o),t.setUint32(e+d,a,o)}const Kd=(t,e,n)=>t&e^~t&n,Wd=(t,e,n)=>t&e^t&n^e&n;class Gd extends jd{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=To(this.buffer)}update(e){Ni(this);const{view:n,buffer:o,blockLen:r}=this;e=Mi(e);const s=e.length;for(let l=0;l<s;){const a=Math.min(r-this.pos,s-l);if(a===r){const c=To(e);for(;r<=s-l;l+=r)this.process(c,l);continue}o.set(e.subarray(l,l+a),this.pos),this.pos+=a,l+=a,this.pos===r&&(this.process(n,0),this.pos=0)}return this.length+=e.length,this.roundClean(),this}digestInto(e){Ni(this),Vd(e,this),this.finished=!0;const{buffer:n,view:o,blockLen:r,isLE:s}=this;let{pos:l}=this;n[l++]=128,this.buffer.subarray(l).fill(0),this.padOffset>r-l&&(this.process(o,0),l=0);for(let p=l;p<r;p++)n[p]=0;zd(o,r-8,BigInt(this.length*8),s),this.process(o,0);const a=To(e),c=this.outputLen;if(c%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const d=c/4,f=this.get();if(d>f.length)throw new Error("_sha2: outputLen bigger than state");for(let p=0;p<d;p++)a.setUint32(4*p,f[p],s)}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:s,destroyed:l,pos:a}=this;return e.length=r,e.pos=a,e.finished=s,e.destroyed=l,r%n&&e.buffer.set(o),e}}const qd=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]),it=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),st=new Uint32Array(64);class Yd extends Gd{constructor(){super(64,32,8,!1),this.A=it[0]|0,this.B=it[1]|0,this.C=it[2]|0,this.D=it[3]|0,this.E=it[4]|0,this.F=it[5]|0,this.G=it[6]|0,this.H=it[7]|0}get(){const{A:e,B:n,C:o,D:r,E:s,F:l,G:a,H:c}=this;return[e,n,o,r,s,l,a,c]}set(e,n,o,r,s,l,a,c){this.A=e|0,this.B=n|0,this.C=o|0,this.D=r|0,this.E=s|0,this.F=l|0,this.G=a|0,this.H=c|0}process(e,n){for(let p=0;p<16;p++,n+=4)st[p]=e.getUint32(n,!1);for(let p=16;p<64;p++){const y=st[p-15],k=st[p-2],C=He(y,7)^He(y,18)^y>>>3,A=He(k,17)^He(k,19)^k>>>10;st[p]=A+st[p-7]+C+st[p-16]|0}let{A:o,B:r,C:s,D:l,E:a,F:c,G:d,H:f}=this;for(let p=0;p<64;p++){const y=He(a,6)^He(a,11)^He(a,25),k=f+y+Kd(a,c,d)+qd[p]+st[p]|0,A=(He(o,2)^He(o,13)^He(o,22))+Wd(o,r,s)|0;f=d,d=c,c=a,a=l+k|0,l=s,s=r,r=o,o=k+A|0}o=o+this.A|0,r=r+this.B|0,s=s+this.C|0,l=l+this.D|0,a=a+this.E|0,c=c+this.F|0,d=d+this.G|0,f=f+this.H|0,this.set(o,r,s,l,a,c,d,f)}roundClean(){st.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}const Xd=Fd(()=>new Yd);class an extends Error{}an.prototype.name="InvalidTokenError";function Zd(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 Jd(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 Zd(e)}catch{return atob(e)}}function Ao(t,e){if(typeof t!="string")throw new an("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 an(`Invalid token specified: missing part #${n+1}`);let r;try{r=Jd(o)}catch(s){throw new an(`Invalid token specified: invalid base64 for part #${n+1} (${s.message})`)}try{return JSON.parse(r)}catch(s){throw new an(`Invalid token specified: invalid json for part #${n+1} (${s.message})`)}}if(typeof Promise>"u")throw Error("Keycloak requires an environment that supports Promises. Make sure that you include the appropriate polyfill.");function Di(t){if(!(this instanceof Di))throw new Error("The 'Keycloak' constructor must be invoked with 'new'.");var e=this,n,o=[],r,s={enable:!0,callbackList:[],interval:5};e.didInitialize=!1;for(var l=document.getElementsByTagName("script"),a=0;a<l.length;a++)(l[a].src.indexOf("keycloak.js")!==-1||l[a].src.indexOf("keycloak.min.js")!==-1)&&l[a].src.indexOf("version=")!==-1&&(e.iframeVersion=l[a].src.substring(l[a].src.indexOf("version=")+8).split("&")[0]);var c=!0,d=$e(console.info),f=$e(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=ht();var h=["default","cordova","cordova-native"];if(u&&h.indexOf(u.adapter)>-1?n=Xe(u.adapter):u&&typeof u.adapter=="object"?n=u.adapter:window.Cordova||window.cordova?n=Xe("cordova"):n=Xe(),u){if(typeof u.useNonce<"u"&&(c=u.useNonce),typeof u.checkLoginIframe<"u"&&(s.enable=u.checkLoginIframe),u.checkLoginIframeInterval&&(s.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 v=Y(),T=Y();T.promise.then(function(){e.onReady&&e.onReady(e.authenticated),v.setSuccess(e.authenticated)}).catch(function(O){v.setError(O)});var b=M();function P(){var O=function(F){F||(R.prompt="none"),u&&u.locale&&(R.locale=u.locale),e.login(R).then(function(){T.setSuccess()}).catch(function(Ce){T.setError(Ce)})},x=function(){var F=document.createElement("iframe"),Ce=e.createLoginUrl({prompt:"none",redirectUri:e.silentCheckSsoRedirectUri});F.setAttribute("src",Ce),F.setAttribute("sandbox","allow-storage-access-by-user-activation allow-scripts allow-same-origin"),F.setAttribute("title","keycloak-silent-check-sso"),F.style.display="none",document.body.appendChild(F);var me=function(pe){if(!(pe.origin!==window.location.origin||F.contentWindow!==pe.source)){var Ze=ne(pe.data);S(Ze,T),document.body.removeChild(F),window.removeEventListener("message",me)}};window.addEventListener("message",me)},R={};switch(u.onLoad){case"check-sso":s.enable?X().then(function(){fe().then(function(F){F?T.setSuccess():e.silentCheckSsoRedirectUri?x():O(!1)}).catch(function(F){T.setError(F)})}):e.silentCheckSsoRedirectUri?x():O(!1);break;case"login-required":O(!0);break;default:throw"Invalid value for onLoad"}}function _(){var O=ne(window.location.href);if(O&&window.history.replaceState(window.history.state,null,O.newUrl),O&&O.valid)return X().then(function(){S(O,T)}).catch(function(x){T.setError(x)});u?u.token&&u.refreshToken?(G(u.token,u.refreshToken,u.idToken),s.enable?X().then(function(){fe().then(function(x){x?(e.onAuthSuccess&&e.onAuthSuccess(),T.setSuccess(),de()):T.setSuccess()}).catch(function(x){T.setError(x)})}):e.updateToken(-1).then(function(){e.onAuthSuccess&&e.onAuthSuccess(),T.setSuccess()}).catch(function(x){e.onAuthError&&e.onAuthError(),u.onLoad?P():T.setError(x)})):u.onLoad?P():T.setSuccess():T.setSuccess()}function E(){var O=Y(),x=function(){(document.readyState==="interactive"||document.readyState==="complete")&&(document.removeEventListener("readystatechange",x),O.setSuccess())};return document.addEventListener("readystatechange",x),x(),O.promise}return b.then(function(){E().then(je).then(_).catch(function(O){v.setError(O)})}),b.catch(function(O){v.setError(O)}),v.promise},e.login=function(u){return n.login(u)};function p(u){var h=null,v=window.crypto||window.msCrypto;if(v&&v.getRandomValues&&window.Uint8Array)return h=new Uint8Array(u),v.getRandomValues(h),h;h=new Array(u);for(var T=0;T<h.length;T++)h[T]=Math.floor(256*Math.random());return h}function y(u){return k(u,"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789")}function k(u,h){for(var v=p(u),T=new Array(u),b=0;b<u;b++)T[b]=h.charCodeAt(v[b]%h.length);return String.fromCharCode.apply(null,T)}function C(u,h){if(u!=="S256")throw new TypeError(`Invalid value for 'pkceMethod', expected 'S256' but got '${u}'.`);const v=Xd(h);return Qd(v).replace(/\+/g,"-").replace(/\//g,"_").replace(/\=/g,"")}function A(u){var h={id_token:{acr:u}};return JSON.stringify(h)}e.createLoginUrl=function(u){var h=ue(),v=ue(),T=n.redirectUri(u),b={state:h,nonce:v,redirectUri:encodeURIComponent(T),loginOptions:u};u&&u.prompt&&(b.prompt=u.prompt);var P;u&&u.action=="register"?P=e.endpoints.register():P=e.endpoints.authorize();var _=u&&u.scope||e.scope;_?_.indexOf("openid")===-1&&(_="openid "+_):_="openid";var E=P+"?client_id="+encodeURIComponent(e.clientId)+"&redirect_uri="+encodeURIComponent(T)+"&state="+encodeURIComponent(h)+"&response_mode="+encodeURIComponent(e.responseMode)+"&response_type="+encodeURIComponent(e.responseType)+"&scope="+encodeURIComponent(_);if(c&&(E=E+"&nonce="+encodeURIComponent(v)),u&&u.prompt&&(E+="&prompt="+encodeURIComponent(u.prompt)),u&&u.maxAge&&(E+="&max_age="+encodeURIComponent(u.maxAge)),u&&u.loginHint&&(E+="&login_hint="+encodeURIComponent(u.loginHint)),u&&u.idpHint&&(E+="&kc_idp_hint="+encodeURIComponent(u.idpHint)),u&&u.action&&u.action!="register"&&(E+="&kc_action="+encodeURIComponent(u.action)),u&&u.locale&&(E+="&ui_locales="+encodeURIComponent(u.locale)),u&&u.acr){var O=A(u.acr);E+="&claims="+encodeURIComponent(O)}if((u&&u.acrValues||e.acrValues)&&(E+="&acr_values="+encodeURIComponent(u.acrValues||e.acrValues)),e.pkceMethod){var x=y(96);b.pkceCodeVerifier=x;var R=C(e.pkceMethod,x);E+="&code_challenge="+R,E+="&code_challenge_method="+e.pkceMethod}return r.add(b),E},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 v=e.endpoints.logout()+"?client_id="+encodeURIComponent(e.clientId)+"&post_logout_redirect_uri="+encodeURIComponent(n.redirectUri(u,!1));return e.idToken&&(v+="&id_token_hint="+encodeURIComponent(e.idToken)),v},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 h=L(),v=void 0;return typeof h<"u"&&(v=h+"/account?referrer="+encodeURIComponent(e.clientId)+"&referrer_uri="+encodeURIComponent(n.redirectUri(u))),v},e.accountManagement=function(){return n.accountManagement()},e.hasRealmRole=function(u){var h=e.realmAccess;return!!h&&h.roles.indexOf(u)>=0},e.hasResourceRole=function(u,h){if(!e.resourceAccess)return!1;var v=e.resourceAccess[h||e.clientId];return!!v&&v.roles.indexOf(u)>=0},e.loadUserProfile=function(){var u=L()+"/account",h=new XMLHttpRequest;h.open("GET",u,!0),h.setRequestHeader("Accept","application/json"),h.setRequestHeader("Authorization","bearer "+e.token);var v=Y();return h.onreadystatechange=function(){h.readyState==4&&(h.status==200?(e.profile=JSON.parse(h.responseText),v.setSuccess(e.profile)):v.setError())},h.send(),v.promise},e.loadUserInfo=function(){var u=e.endpoints.userinfo(),h=new XMLHttpRequest;h.open("GET",u,!0),h.setRequestHeader("Accept","application/json"),h.setRequestHeader("Authorization","bearer "+e.token);var v=Y();return h.onreadystatechange=function(){h.readyState==4&&(h.status==200?(e.userInfo=JSON.parse(h.responseText),v.setSuccess(e.userInfo)):v.setError())},h.send(),v.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 h=e.tokenParsed.exp-Math.ceil(new Date().getTime()/1e3)+e.timeSkew;if(u){if(isNaN(u))throw"Invalid minValidity";h-=u}return h<0},e.updateToken=function(u){var h=Y();if(!e.refreshToken)return h.setError(),h.promise;u=u||5;var v=function(){var b=!1;if(u==-1?(b=!0,d("[KEYCLOAK] Refreshing token: forced refresh")):(!e.tokenParsed||e.isTokenExpired(u))&&(b=!0,d("[KEYCLOAK] Refreshing token: token expired")),!b)h.setSuccess(!1);else{var P="grant_type=refresh_token&refresh_token="+e.refreshToken,_=e.endpoints.token();if(o.push(h),o.length==1){var E=new XMLHttpRequest;E.open("POST",_,!0),E.setRequestHeader("Content-type","application/x-www-form-urlencoded"),E.withCredentials=!0,P+="&client_id="+encodeURIComponent(e.clientId);var O=new Date().getTime();E.onreadystatechange=function(){if(E.readyState==4)if(E.status==200){d("[KEYCLOAK] Token refreshed"),O=(O+new Date().getTime())/2;var x=JSON.parse(E.responseText);G(x.access_token,x.refresh_token,x.id_token,O),e.onAuthRefreshSuccess&&e.onAuthRefreshSuccess();for(var R=o.pop();R!=null;R=o.pop())R.setSuccess(!0)}else{f("[KEYCLOAK] Failed to refresh token"),E.status==400&&e.clearToken(),e.onAuthRefreshError&&e.onAuthRefreshError();for(var R=o.pop();R!=null;R=o.pop())R.setError(!0)}},E.send(P)}}};if(s.enable){var T=fe();T.then(function(){v()}).catch(function(b){h.setError(b)})}else v();return h.promise},e.clearToken=function(){e.token&&(G(null,null,null),e.onAuthLogout&&e.onAuthLogout(),e.loginRequired&&e.login())};function L(){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 w(){return window.location.origin?window.location.origin:window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:"")}function S(u,h){var v=u.code,T=u.error,b=u.prompt,P=new Date().getTime();if(u.kc_action_status&&e.onActionUpdate&&e.onActionUpdate(u.kc_action_status,u.kc_action),T){if(b!="none")if(u.error_description&&u.error_description==="authentication_expired")e.login(u.loginOptions);else{var _={error:T,error_description:u.error_description};e.onAuthError&&e.onAuthError(_),h&&h.setError(_)}else h&&h.setSuccess();return}else e.flow!="standard"&&(u.access_token||u.id_token)&&R(u.access_token,null,u.id_token,!0);if(e.flow!="implicit"&&v){var E="code="+v+"&grant_type=authorization_code",O=e.endpoints.token(),x=new XMLHttpRequest;x.open("POST",O,!0),x.setRequestHeader("Content-type","application/x-www-form-urlencoded"),E+="&client_id="+encodeURIComponent(e.clientId),E+="&redirect_uri="+u.redirectUri,u.pkceCodeVerifier&&(E+="&code_verifier="+u.pkceCodeVerifier),x.withCredentials=!0,x.onreadystatechange=function(){if(x.readyState==4)if(x.status==200){var F=JSON.parse(x.responseText);R(F.access_token,F.refresh_token,F.id_token,e.flow==="standard"),de()}else e.onAuthError&&e.onAuthError(),h&&h.setError()},x.send(E)}function R(F,Ce,me,pe){P=(P+new Date().getTime())/2,G(F,Ce,me,P),c&&e.idTokenParsed&&e.idTokenParsed.nonce!=u.storedNonce?(d("[KEYCLOAK] Invalid nonce, clearing token"),e.clearToken(),h&&h.setError()):pe&&(e.onAuthSuccess&&e.onAuthSuccess(),h&&h.setSuccess())}}function M(u){var h=Y(),v;t?typeof t=="string"&&(v=t):v="keycloak.json";function T(x){x?e.endpoints={authorize:function(){return x.authorization_endpoint},token:function(){return x.token_endpoint},logout:function(){if(!x.end_session_endpoint)throw"Not supported by the OIDC server";return x.end_session_endpoint},checkSessionIframe:function(){if(!x.check_session_iframe)throw"Not supported by the OIDC server";return x.check_session_iframe},register:function(){throw'Redirection to "Register user" page not supported in standard OIDC mode'},userinfo:function(){if(!x.userinfo_endpoint)throw"Not supported by the OIDC server";return x.userinfo_endpoint}}:e.endpoints={authorize:function(){return L()+"/protocol/openid-connect/auth"},token:function(){return L()+"/protocol/openid-connect/token"},logout:function(){return L()+"/protocol/openid-connect/logout"},checkSessionIframe:function(){var R=L()+"/protocol/openid-connect/login-status-iframe.html";return e.iframeVersion&&(R=R+"?version="+e.iframeVersion),R},thirdPartyCookiesIframe:function(){var R=L()+"/protocol/openid-connect/3p-cookies/step1.html";return e.iframeVersion&&(R=R+"?version="+e.iframeVersion),R},register:function(){return L()+"/protocol/openid-connect/registrations"},userinfo:function(){return L()+"/protocol/openid-connect/userinfo"}}}if(v){var b=new XMLHttpRequest;b.open("GET",v,!0),b.setRequestHeader("Accept","application/json"),b.onreadystatechange=function(){if(b.readyState==4)if(b.status==200||U(b)){var x=JSON.parse(b.responseText);e.authServerUrl=x["auth-server-url"],e.realm=x.realm,e.clientId=x.resource,T(null),h.setSuccess()}else h.setError()},b.send()}else{if(!t.clientId)throw"clientId missing";e.clientId=t.clientId;var P=t.oidcProvider;if(P)if(typeof P=="string"){var O;P.charAt(P.length-1)=="/"?O=P+".well-known/openid-configuration":O=P+"/.well-known/openid-configuration";var b=new XMLHttpRequest;b.open("GET",O,!0),b.setRequestHeader("Accept","application/json"),b.onreadystatechange=function(){if(b.readyState==4)if(b.status==200||U(b)){var R=JSON.parse(b.responseText);T(R),h.setSuccess()}else h.setError()},b.send()}else T(P),h.setSuccess();else{if(!t.url){for(var _=document.getElementsByTagName("script"),E=0;E<_.length;E++)if(_[E].src.match(/.*keycloak\.js/)){t.url=_[E].src.substr(0,_[E].src.indexOf("/js/keycloak.js"));break}}if(!t.realm)throw"realm missing";e.authServerUrl=t.url,e.realm=t.realm,T(null),h.setSuccess()}}return h.promise}function U(u){return u.status==0&&u.responseText&&u.responseURL.startsWith("file:")}function G(u,h,v,T){if(e.tokenTimeoutHandle&&(clearTimeout(e.tokenTimeoutHandle),e.tokenTimeoutHandle=null),h?(e.refreshToken=h,e.refreshTokenParsed=Ao(h)):(delete e.refreshToken,delete e.refreshTokenParsed),v?(e.idToken=v,e.idTokenParsed=Ao(v)):(delete e.idToken,delete e.idTokenParsed),u){if(e.token=u,e.tokenParsed=Ao(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,T&&(e.timeSkew=Math.floor(T/1e3)-e.tokenParsed.iat),e.timeSkew!=null&&(d("[KEYCLOAK] Estimated time difference between browser and server is "+e.timeSkew+" seconds"),e.onTokenExpired)){var b=(e.tokenParsed.exp-new Date().getTime()/1e3+e.timeSkew)*1e3;d("[KEYCLOAK] Token expires in "+Math.round(b/1e3)+" s"),b<=0?e.onTokenExpired():e.tokenTimeoutHandle=setTimeout(e.onTokenExpired,b)}}else delete e.token,delete e.tokenParsed,delete e.subject,delete e.realmAccess,delete e.resourceAccess,e.authenticated=!1}function ue(){var u="0123456789abcdef",h=k(36,u).split("");h[14]="4",h[19]=u.substr(h[19]&3|8,1),h[8]=h[13]=h[18]=h[23]="-";var v=h.join("");return v}function ne(u){var h=Pe(u);if(h){var v=r.get(h.state);return v&&(h.valid=!0,h.redirectUri=v.redirectUri,h.storedNonce=v.nonce,h.prompt=v.prompt,h.pkceCodeVerifier=v.pkceCodeVerifier,h.loginOptions=v.loginOptions),h}}function Pe(u){var h;switch(e.flow){case"standard":h=["code","state","session_state","kc_action_status","kc_action","iss"];break;case"implicit":h=["access_token","token_type","id_token","state","session_state","expires_in","kc_action_status","kc_action","iss"];break;case"hybrid":h=["access_token","token_type","id_token","code","state","session_state","expires_in","kc_action_status","kc_action","iss"];break}h.push("error"),h.push("error_description"),h.push("error_uri");var v=u.indexOf("?"),T=u.indexOf("#"),b,P;if(e.responseMode==="query"&&v!==-1?(b=u.substring(0,v),P=oe(u.substring(v+1,T!==-1?T:u.length),h),P.paramsString!==""&&(b+="?"+P.paramsString),T!==-1&&(b+=u.substring(T))):e.responseMode==="fragment"&&T!==-1&&(b=u.substring(0,T),P=oe(u.substring(T+1),h),P.paramsString!==""&&(b+="#"+P.paramsString)),P&&P.oauthParams){if(e.flow==="standard"||e.flow==="hybrid"){if((P.oauthParams.code||P.oauthParams.error)&&P.oauthParams.state)return P.oauthParams.newUrl=b,P.oauthParams}else if(e.flow==="implicit"&&(P.oauthParams.access_token||P.oauthParams.error)&&P.oauthParams.state)return P.oauthParams.newUrl=b,P.oauthParams}}function oe(u,h){for(var v=u.split("&"),T={paramsString:"",oauthParams:{}},b=0;b<v.length;b++){var P=v[b].indexOf("="),_=v[b].slice(0,P);h.indexOf(_)!==-1?T.oauthParams[_]=v[b].slice(P+1):(T.paramsString!==""&&(T.paramsString+="&"),T.paramsString+=v[b])}return T}function Y(){var u={setSuccess:function(h){u.resolve(h)},setError:function(h){u.reject(h)}};return u.promise=new Promise(function(h,v){u.resolve=h,u.reject=v}),u}function N(u,h,v){var T=null,b=new Promise(function(P,_){T=setTimeout(function(){_({error:v})},h)});return Promise.race([u,b]).finally(function(){clearTimeout(T)})}function X(){var u=Y();if(!s.enable||s.iframe)return u.setSuccess(),u.promise;var h=document.createElement("iframe");s.iframe=h,h.onload=function(){var b=e.endpoints.authorize();b.charAt(0)==="/"?s.iframeOrigin=w():s.iframeOrigin=b.substring(0,b.indexOf("/",8)),u.setSuccess()};var v=e.endpoints.checkSessionIframe();h.setAttribute("src",v),h.setAttribute("sandbox","allow-storage-access-by-user-activation allow-scripts allow-same-origin"),h.setAttribute("title","keycloak-session-iframe"),h.style.display="none",document.body.appendChild(h);var T=function(b){if(!(b.origin!==s.iframeOrigin||s.iframe.contentWindow!==b.source)&&(b.data=="unchanged"||b.data=="changed"||b.data=="error")){b.data!="unchanged"&&e.clearToken();for(var P=s.callbackList.splice(0,s.callbackList.length),_=P.length-1;_>=0;--_){var E=P[_];b.data=="error"?E.setError():E.setSuccess(b.data=="unchanged")}}};return window.addEventListener("message",T,!1),u.promise}function de(){s.enable&&e.token&&setTimeout(function(){fe().then(function(u){u&&de()})},s.interval*1e3)}function fe(){var u=Y();if(s.iframe&&s.iframeOrigin){var h=e.clientId+" "+(e.sessionId?e.sessionId:"");s.callbackList.push(u);var v=s.iframeOrigin;s.callbackList.length==1&&s.iframe.contentWindow.postMessage(h,v)}else u.setSuccess();return u.promise}function je(){var u=Y();if(s.enable||e.silentCheckSsoRedirectUri){var h=document.createElement("iframe");h.setAttribute("src",e.endpoints.thirdPartyCookiesIframe()),h.setAttribute("sandbox","allow-storage-access-by-user-activation allow-scripts allow-same-origin"),h.setAttribute("title","keycloak-3p-check-iframe"),h.style.display="none",document.body.appendChild(h);var v=function(T){h.contentWindow===T.source&&(T.data!=="supported"&&T.data!=="unsupported"||(T.data==="unsupported"&&(f(`[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`),s.enable=!1,e.silentCheckSsoFallback&&(e.silentCheckSsoRedirectUri=!1)),document.body.removeChild(h),window.removeEventListener("message",v),u.setSuccess()))};window.addEventListener("message",v,!1)}else u.setSuccess();return N(u.promise,e.messageReceiveTimeout,"Timeout when waiting for 3rd party check iframe message.")}function Xe(u){if(!u||u=="default")return{login:function(_){return window.location.assign(e.createLoginUrl(_)),Y().promise},logout:async function(_){if(((_==null?void 0:_.logoutMethod)??e.logoutMethod)==="GET"){window.location.replace(e.createLogoutUrl(_));return}const O=e.createLogoutUrl(_),x=await fetch(O,{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(_,!1)})});if(x.redirected){window.location.href=x.url;return}if(x.ok){window.location.reload();return}throw new Error("Logout failed, request returned an error code.")},register:function(_){return window.location.assign(e.createRegisterUrl(_)),Y().promise},accountManagement:function(){var _=e.createAccountUrl();if(typeof _<"u")window.location.href=_;else throw"Not supported by the OIDC server";return Y().promise},redirectUri:function(_,E){return _&&_.redirectUri?_.redirectUri:e.redirectUri?e.redirectUri:location.href}};if(u=="cordova"){s.enable=!1;var h=function(_,E,O){return window.cordova&&window.cordova.InAppBrowser?window.cordova.InAppBrowser.open(_,E,O):window.open(_,E,O)},v=function(_){return _&&_.cordovaOptions?Object.keys(_.cordovaOptions).reduce(function(E,O){return E[O]=_.cordovaOptions[O],E},{}):{}},T=function(_){return Object.keys(_).reduce(function(E,O){return E.push(O+"="+_[O]),E},[]).join(",")},b=function(_){var E=v(_);return E.location="no",_&&_.prompt=="none"&&(E.hidden="yes"),T(E)},P=function(){return e.redirectUri||"http://localhost"};return{login:function(_){var E=Y(),O=b(_),x=e.createLoginUrl(_),R=h(x,"_blank",O),F=!1,Ce=!1,me=function(){Ce=!0,R.close()};return R.addEventListener("loadstart",function(pe){if(pe.url.indexOf(P())==0){var Ze=ne(pe.url);S(Ze,E),me(),F=!0}}),R.addEventListener("loaderror",function(pe){if(!F)if(pe.url.indexOf(P())==0){var Ze=ne(pe.url);S(Ze,E),me(),F=!0}else E.setError(),me()}),R.addEventListener("exit",function(pe){Ce||E.setError({reason:"closed_by_user"})}),E.promise},logout:function(_){var E=Y(),O=e.createLogoutUrl(_),x=h(O,"_blank","location=no,hidden=yes,clearcache=yes"),R;return x.addEventListener("loadstart",function(F){F.url.indexOf(P())==0&&x.close()}),x.addEventListener("loaderror",function(F){F.url.indexOf(P())==0||(R=!0),x.close()}),x.addEventListener("exit",function(F){R?E.setError():(e.clearToken(),E.setSuccess())}),E.promise},register:function(_){var E=Y(),O=e.createRegisterUrl(),x=b(_),R=h(O,"_blank",x);return R.addEventListener("loadstart",function(F){if(F.url.indexOf(P())==0){R.close();var Ce=ne(F.url);S(Ce,E)}}),E.promise},accountManagement:function(){var _=e.createAccountUrl();if(typeof _<"u"){var E=h(_,"_blank","location=no");E.addEventListener("loadstart",function(O){O.url.indexOf(P())==0&&E.close()})}else throw"Not supported by the OIDC server"},redirectUri:function(_){return P()}}}if(u=="cordova-native")return s.enable=!1,{login:function(_){var E=Y(),O=e.createLoginUrl(_);return universalLinks.subscribe("keycloak",function(x){universalLinks.unsubscribe("keycloak"),window.cordova.plugins.browsertab.close();var R=ne(x.url);S(R,E)}),window.cordova.plugins.browsertab.openUrl(O),E.promise},logout:function(_){var E=Y(),O=e.createLogoutUrl(_);return universalLinks.subscribe("keycloak",function(x){universalLinks.unsubscribe("keycloak"),window.cordova.plugins.browsertab.close(),e.clearToken(),E.setSuccess()}),window.cordova.plugins.browsertab.openUrl(O),E.promise},register:function(_){var E=Y(),O=e.createRegisterUrl(_);return universalLinks.subscribe("keycloak",function(x){universalLinks.unsubscribe("keycloak"),window.cordova.plugins.browsertab.close();var R=ne(x.url);S(R,E)}),window.cordova.plugins.browsertab.openUrl(O),E.promise},accountManagement:function(){var _=e.createAccountUrl();if(typeof _<"u")window.cordova.plugins.browsertab.openUrl(_);else throw"Not supported by the OIDC server"},redirectUri:function(_){return _&&_.redirectUri?_.redirectUri:e.redirectUri?e.redirectUri:"http://localhost"}};throw"invalid adapter type: "+u}var Fe=function(){if(!(this instanceof Fe))return new Fe;localStorage.setItem("kc-test","test"),localStorage.removeItem("kc-test");var u=this;function h(){for(var v=new Date().getTime(),T=0;T<localStorage.length;T++){var b=localStorage.key(T);if(b&&b.indexOf("kc-callback-")==0){var P=localStorage.getItem(b);if(P)try{var _=JSON.parse(P).expires;(!_||_<v)&&localStorage.removeItem(b)}catch{localStorage.removeItem(b)}}}}u.get=function(v){if(v){var T="kc-callback-"+v,b=localStorage.getItem(T);return b&&(localStorage.removeItem(T),b=JSON.parse(b)),h(),b}},u.add=function(v){h();var T="kc-callback-"+v.state;v.expires=new Date().getTime()+60*60*1e3,localStorage.setItem(T,JSON.stringify(v))}},ze=function(){if(!(this instanceof ze))return new ze;var u=this;u.get=function(b){if(b){var P=v("kc-callback-"+b);if(T("kc-callback-"+b,"",h(-100)),P)return JSON.parse(P)}},u.add=function(b){T("kc-callback-"+b.state,JSON.stringify(b),h(60))},u.removeItem=function(b){T(b,"",h(-100))};var h=function(b){var P=new Date;return P.setTime(P.getTime()+b*60*1e3),P},v=function(b){for(var P=b+"=",_=document.cookie.split(";"),E=0;E<_.length;E++){for(var O=_[E];O.charAt(0)==" ";)O=O.substring(1);if(O.indexOf(P)==0)return O.substring(P.length,O.length)}return""},T=function(b,P,_){var E=b+"="+P+"; expires="+_.toUTCString()+"; ";document.cookie=E}};function ht(){try{return new Fe}catch{}return new ze}function $e(u){return function(){e.enableLogging&&u.apply(console,Array.prototype.slice.call(arguments))}}}function ef(t){const e=String.fromCodePoint(...t);return btoa(e)}class tf{constructor(e){te(this,"oidc");te(this,"isAuthenticated",!1);te(this,"authenticatedWith",null);this.oidc=new Di(e)}async InitAsync(e={}){return await this.oidc.init(e).then(async n=>(this.isAuthenticated=n,this.authenticatedWith=this.AuthenticatedWith(),n)).catch(n=>(console.info("Ocorreu um erro na inicialização. Verifique o console para mais detalhes."),console.error(n),!1))}LoginGovBr(){this.oidc.login({idpHint:"GOV.BR"})}LoginSenhaweb(){var n;const e=(n=this.oidc.authServerUrl)!=null&&n.startsWith("https://keycloak.dev.apps.sf.prefeitura.sp.gov.br")?"senhawebdev":"senhaweb";this.oidc.login({idpHint:e})}AuthenticatedWith(){var n,o;const e=this.oidc.tokenParsed;return e?(n=e.identity_provider)!=null&&n.startsWith("GOV.BR")?"govbr":(o=e.identity_provider)!=null&&o.startsWith("senhaweb")?"senhaweb":"ad":null}}let Ri;function nf(t){Ri=new tf(t)}const Po=()=>Ri;function of(t){return i.getCurrentScope()?(i.onScopeDispose(t),!0):!1}const rf=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;function sf(t){return i.getCurrentInstance()}function af(t){return Array.isArray(t)?t:[t]}function lf(t,e=!0,n){sf()?i.onMounted(t,n):e?t():i.nextTick(t)}const Ui=rf?window:void 0;function Ct(t){var e;const n=i.toValue(t);return(e=n==null?void 0:n.$el)!=null?e:n}function cf(){const t=i.ref(!1),e=i.getCurrentInstance();return e&&i.onMounted(()=>{t.value=!0},e),t}function uf(t){const e=cf();return i.computed(()=>(e.value,!!t()))}function df(t,e,n={}){const{window:o=Ui,...r}=n;let s;const a=uf(()=>o&&"ResizeObserver"in o),l=()=>{s&&(s.disconnect(),s=void 0)},c=i.computed(()=>{const p=i.toValue(t);return Array.isArray(p)?p.map(y=>Ct(y)):[Ct(p)]}),d=i.watch(c,p=>{if(l(),a.value&&o){s=new ResizeObserver(e);for(const y of p)y&&s.observe(y,r)}},{immediate:!0,flush:"post"}),f=()=>{l(),d()};return of(f),{isSupported:a,stop:f}}function ff(t,e={width:0,height:0},n={}){const{window:o=Ui,box:r="content-box"}=n,s=i.computed(()=>{var p,y;return(y=(p=Ct(t))==null?void 0:p.namespaceURI)==null?void 0:y.includes("svg")}),a=i.ref(e.width),l=i.ref(e.height),{stop:c}=df(t,([p])=>{const y=r==="border-box"?p.borderBoxSize:r==="content-box"?p.contentBoxSize:p.devicePixelContentBoxSize;if(o&&s.value){const k=Ct(t);if(k){const C=k.getBoundingClientRect();a.value=C.width,l.value=C.height}}else if(y){const k=af(y);a.value=k.reduce((C,{inlineSize:A})=>C+A,0),l.value=k.reduce((C,{blockSize:A})=>C+A,0)}else a.value=p.contentRect.width,l.value=p.contentRect.height},n);lf(()=>{const p=Ct(t);p&&(a.value="offsetWidth"in p?p.offsetWidth:e.width,l.value="offsetHeight"in p?p.offsetHeight:e.height)});const d=i.watch(()=>Ct(t),p=>{a.value=p?e.width:0,l.value=p?e.height:0});function f(){c(),d()}return{width:a,height:l,stop:f}}function mf(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Ln={exports:{}},pf=Ln.exports,Vi;function hf(){return Vi||(Vi=1,function(t){(function(e,n){t.exports?t.exports=n():e.log=n()})(pf,function(){var e=function(){},n="undefined",o=typeof window!==n&&typeof window.navigator!==n&&/Trident\/|MSIE /.test(window.navigator.userAgent),r=["trace","debug","info","warn","error"],s={},a=null;function l(A,L){var w=A[L];if(typeof w.bind=="function")return w.bind(A);try{return Function.prototype.bind.call(w,A)}catch{return function(){return Function.prototype.apply.apply(w,[A,arguments])}}}function c(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function d(A){return A==="debug"&&(A="log"),typeof console===n?!1:A==="trace"&&o?c:console[A]!==void 0?l(console,A):console.log!==void 0?l(console,"log"):e}function f(){for(var A=this.getLevel(),L=0;L<r.length;L++){var w=r[L];this[w]=L<A?e:this.methodFactory(w,A,this.name)}if(this.log=this.debug,typeof console===n&&A<this.levels.SILENT)return"No console available for logging"}function p(A){return function(){typeof console!==n&&(f.call(this),this[A].apply(this,arguments))}}function y(A,L,w){return d(A)||p.apply(this,arguments)}function k(A,L){var w=this,S,M,U,G="loglevel";typeof A=="string"?G+=":"+A:typeof A=="symbol"&&(G=void 0);function ue(N){var X=(r[N]||"silent").toUpperCase();if(!(typeof window===n||!G)){try{window.localStorage[G]=X;return}catch{}try{window.document.cookie=encodeURIComponent(G)+"="+X+";"}catch{}}}function ne(){var N;if(!(typeof window===n||!G)){try{N=window.localStorage[G]}catch{}if(typeof N===n)try{var X=window.document.cookie,de=encodeURIComponent(G),fe=X.indexOf(de+"=");fe!==-1&&(N=/^([^;]+)/.exec(X.slice(fe+de.length+1))[1])}catch{}return w.levels[N]===void 0&&(N=void 0),N}}function Pe(){if(!(typeof window===n||!G)){try{window.localStorage.removeItem(G)}catch{}try{window.document.cookie=encodeURIComponent(G)+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC"}catch{}}}function oe(N){var X=N;if(typeof X=="string"&&w.levels[X.toUpperCase()]!==void 0&&(X=w.levels[X.toUpperCase()]),typeof X=="number"&&X>=0&&X<=w.levels.SILENT)return X;throw new TypeError("log.setLevel() called with invalid level: "+N)}w.name=A,w.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},w.methodFactory=L||y,w.getLevel=function(){return U??M??S},w.setLevel=function(N,X){return U=oe(N),X!==!1&&ue(U),f.call(w)},w.setDefaultLevel=function(N){M=oe(N),ne()||w.setLevel(N,!1)},w.resetLevel=function(){U=null,Pe(),f.call(w)},w.enableAll=function(N){w.setLevel(w.levels.TRACE,N)},w.disableAll=function(N){w.setLevel(w.levels.SILENT,N)},w.rebuild=function(){if(a!==w&&(S=oe(a.getLevel())),f.call(w),a===w)for(var N in s)s[N].rebuild()},S=oe(a?a.getLevel():"WARN");var Y=ne();Y!=null&&(U=oe(Y)),f.call(w)}a=new k,a.getLogger=function(L){if(typeof L!="symbol"&&typeof L!="string"||L==="")throw new TypeError("You must supply a name when creating a logger.");var w=s[L];return w||(w=s[L]=new k(L,a.methodFactory)),w};var C=typeof window!==n?window.log:void 0;return a.noConflict=function(){return typeof window!==n&&window.log===a&&(window.log=C),a},a.getLoggers=function(){return s},a.default=a,a})}(Ln)),Ln.exports}var gf=hf();const xn=mf(gf),yf={install(t,e){const n=e??{};xn.setDefaultLevel(n.enableLogging?xn.levels.DEBUG:xn.levels.SILENT);const o=240;document.documentElement.style.setProperty("--nav-menu-width",`${o}px`);const r=i.ref(!0),s=i.ref(0),a=i.ref(!1),l=i.ref(!1),c=i.ref(""),d=i.ref(null),{width:f}=ff(d);t.provide(Tr,{navMenuWidth:o,isMenuOpened:r,ToggleMenu:()=>{r.value=!r.value},OpenMenu:()=>{r.value=!0},CloseMenu:()=>{r.value=!1},scrollY:s,pageTitle:c,isDarkMode:a,ToggleTheme:()=>zt.Toggle(),EnableDarkMode:()=>zt.EnableDarkMode(),EnableLightMode:()=>zt.EnableLightMode(),ClearStoredTheme:()=>zt.ClearStoredTheme(),LogoutAsync:async()=>{const y=$i(),{oidc:k}=Po();await y.ConfirmAsync("Deseja realmente sair da sua conta?")&&(l.value=!0,await new Promise(A=>setTimeout(A,1e3)),k.logout({redirectUri:window.location.origin}))},Login:()=>{const{oidc:y}=Po();y.login()},isLoggingOut:l,mainRef:d,mainWidth:f,isMainXs:i.computed(()=>f.value<=384),isMainSm:i.computed(()=>f.value>384),isMainMd:i.computed(()=>f.value>768),isMainLg:i.computed(()=>f.value>992),isMainXl:i.computed(()=>f.value>1280),isMain2Xl:i.computed(()=>f.value>1536),isMain3Xl:i.computed(()=>f.value>1920)}),new MutationObserver(()=>{a.value=document.documentElement.classList.contains("dark")}).observe(document.documentElement,{attributes:!0,attributeFilter:["class"]}),document.addEventListener("scroll",()=>{s.value=document.documentElement.scrollTop}),zt.SetInitialTheme()}},bf=xn;class Lo extends Error{constructor(n=[]){const o=Array.isArray(n)?n:[n];super(o[0]);te(this,"errors",[]);this.errors=o}}class xo{constructor(e=null){te(this,"errors",[]);te(this,"_value",null);te(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){if(Array.isArray(e)){e.forEach(n=>this.WithError(n));return}this.errors.push(e),this.isSuccessfulHttpStatusCode||(this._httpStatusCode=400)}get isSuccessfulHttpStatusCode(){return this._httpStatusCode>=200&&this._httpStatusCode<300}[Symbol.toPrimitive](e){if(e==="throw")throw new Lo(this.errors)}get firstError(){return this.hasSuccess?null:this.errors[0]}}class Hi{get IsVisible(){return ft.isVisible()}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(s=>{ft.fire({allowEscapeKey:!1,allowOutsideClick:!1,icon:n,title:r,html:`<div style="max-height: 50vh; overflow: auto">${xi.sanitize(o)}</div>`}).then(()=>s(!0))})}async AlertAsync(e){return this.CreateAlertAsync({text:e,icon:"info"})}async AlertErrorAsync(e){return this.CreateAlertAsync({text:e,icon:"error"})}async AlertSuccessAsync(e){return this.CreateAlertAsync({text:e,icon:"success"})}}const ji=()=>new Hi,vf=()=>new Hi;window.addEventListener("error",function(t){return Oo(t.error)||console.error(t.error),t.preventDefault(),!1}),window.addEventListener("unhandledrejection",function(t){return Oo(t.reason)||console.error("Unhandled Rejection",t.reason),t.preventDefault(),!1});const wf=t=>{t.config.errorHandler=(e,n,o)=>{Oo(e)||console.error("Vue Global Error Handler: ",{err:e,vm:n,info:o})}},Oo=t=>t instanceof Lo||t instanceof xo?(t instanceof xo&&t.httpStatusCode===401||ji().AlertErrorAsync(t.errors),!0):!1;function kf(){return i.inject(Tr)}const On=()=>kf(),_f={class:"font-percentage"},Fi="--font-size-increment",Sf="tamanho-fonte",Cf=et(i.defineComponent({__name:"FontSize",setup(t){const e=i.ref(!1),n=i.ref(0),o=()=>{n.value=Vn(),e.value=!0},r=()=>{e.value=!1},s=()=>document.documentElement,a=()=>parseInt(getComputedStyle(s()).getPropertyValue(Fi)||"1"),l=y=>{y<.5||y>1.6||(s().style.setProperty(Fi,y.toString()),p.value=y)},c=()=>{l(p.value+.1)},d=()=>{l(p.value-.1)},f=()=>{l(1)},p=i.ref(1);return i.onBeforeMount(()=>{localStorage.removeItem(Sf)}),i.onMounted(()=>{p.value=a()}),(y,k)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createVNode(Ue,{button:!0,size:"sm",icon:"text_increase",tooltip:"Tamanho da fonte",onClick:o}),e.value?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createElementVNode("div",{class:i.normalizeClass(["border","fadein","font-size-wrapper"]),style:i.normalizeStyle({zIndex:n.value+1})},[i.createElementVNode("div",{class:"icon",onClick:d}),i.createElementVNode("span",_f,i.toDisplayString(p.value.toLocaleString("pt-br",{style:"percent",maximumFractionDigits:0})),1),i.createElementVNode("div",{class:"icon add",onClick:c}),i.createElementVNode("span",{class:"redefinir",onClick:f}," Redefinir ")],4),i.createElementVNode("div",{class:"font-size-mask",style:i.normalizeStyle({zIndex:n.value}),onClick:r},null,4)],64)):i.createCommentVNode("",!0)],64))}}),[["__scopeId","data-v-d17f4a5f"]]),Ef=i.defineComponent({__name:"ScrollToTop",setup(t){const{scrollY:e}=On(),n=i.computed(()=>e.value>800);function o(){document.documentElement.scrollTo(0,0)}return(r,s)=>(i.openBlock(),i.createElementBlock("button",{class:i.normalizeClass(["sf-scrollToTop",{"sf-scrollToTop-visible":n.value}]),onClick:o},null,2))}}),If={class:"nav-menu-header"},Tf={class:"nav-menu-inner-close"},Af={class:"main-content"},Pf={class:"page-title"},Lf={class:"action"},xf={id:"content"},Of={key:0,id:"logging-out"},$f={class:"info-fazenda"},Bf={class:"font-bold"},Nf={class:"info-endereco text-muted"},Mf=et(i.defineComponent({__name:"Main",props:{auth:{}},setup(t){const e=t,{navMenuWidth:n,isMenuOpened:o,pageTitle:r,scrollY:s,ToggleMenu:a,isDarkMode:l,ToggleTheme:c,CloseMenu:d,LogoutAsync:f,Login:p,isLoggingOut:y,mainRef:k}=On(),C=i.ref(null),A=()=>{if(!C.value||!o.value)return!1;C.value.offsetWidth!==n&&d()};return i.onMounted(()=>{gt.useRouter().afterEach(()=>{A()})}),(L,w)=>(i.openBlock(),i.createElementBlock("main",{ref_key:"mainRef",ref:k,class:i.normalizeClass({disabled:i.unref(y),"nav-menu-visible":i.unref(o)})},[i.createElementVNode("aside",{id:"nav-menu",ref_key:"navMenuRef",ref:C,class:i.normalizeClass({"nav-menu-hidden":!i.unref(o)})},[i.createElementVNode("div",If,[w[0]||(w[0]=i.createElementVNode("span",null,"Menu",-1)),i.createElementVNode("div",Tf,[i.createVNode(Ue,{button:!0,icon:"close",onClick:i.unref(a)},null,8,["onClick"])])]),i.renderSlot(L.$slots,"nav-menu",{},void 0,!0)],2),i.createElementVNode("div",Af,[i.createElementVNode("div",{id:"top-bar",class:i.normalizeClass({"shadow-bottom":i.unref(s)>72})},[i.createVNode(Ue,{button:!0,icon:i.unref(o)?"menu_open":"menu",tooltip:"Menu",onClick:i.unref(a)},null,8,["icon","onClick"]),i.createElementVNode("div",Pf,i.toDisplayString(i.unref(y)?"Saindo...":i.unref(r)),1),w[1]||(w[1]=i.createElementVNode("span",{class:"sep"},null,-1)),i.createElementVNode("div",Lf,[i.createVNode(Ue,{button:!0,size:"sm",icon:i.unref(l)?"light_mode":"dark_mode",tooltip:i.unref(l)?"Modo claro":"Modo escuro",onClick:i.unref(c)},null,8,["icon","tooltip","onClick"]),i.createVNode(Cf),e.auth?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[e.auth.isAuthenticated?(i.openBlock(),i.createBlock(Ue,{key:0,button:!0,size:"sm",icon:"logout",tooltip:"Sair",onClick:i.unref(f)},null,8,["onClick"])):(i.openBlock(),i.createBlock(Ue,{key:1,button:!0,size:"sm",icon:"login",tooltip:"Entrar",onClick:i.unref(p)},null,8,["onClick"]))],64)):i.createCommentVNode("",!0)])],2),i.createElementVNode("div",xf,[i.unref(y)?(i.openBlock(),i.createElementBlock("div",Of,[i.createVNode(Vo)])):i.renderSlot(L.$slots,"content",{key:1},void 0,!0)])]),i.createElementVNode("footer",null,[w[4]||(w[4]=i.createElementVNode("div",{class:"logo-fazenda"},null,-1)),i.createElementVNode("div",$f,[i.createElementVNode("span",Bf,[i.renderSlot(L.$slots,"footer-nome-fazenda",{},()=>[w[2]||(w[2]=i.createTextVNode(" SECRETARIA MUNICIPAL DA FAZENDA "))],!0)]),i.createElementVNode("span",Nf,[i.renderSlot(L.$slots,"footer-endereco-fazenda",{},()=>[w[3]||(w[3]=i.createTextVNode(" Rua Líbero Badaró, 190 - Centro - São Paulo - SP - CEP 01008-000 "))],!0)])])]),i.createVNode(Ef)],2))}}),[["__scopeId","data-v-35786704"]]),Df=i.defineComponent({__name:"PageTitle",props:{title:{}},setup(t){const{pageTitle:e}=On(),n=t;return i.watchEffect(()=>{document.title=n.title,e.value=n.title}),(o,r)=>null}}),zi={surface:{0:"{surface.0.color}",50:"{surface.100.color}",100:"{surface.100.color}",200:"{surface.200.color}",300:"{surface.300.color}",400:"{surface.400.color}",500:"{surface.1000.color}",600:"{surface.600.color}",700:"{surface.700.color}",800:"{surface.800.color}",900:"{surface.900.color}",950:"{surface.1000.color}"},primary:{color:"{primary.color}",contrastColor:"{bg.color}",hoverColor:"{primary.hover.color}",activeColor:"{primary.color}"},highlight:{background:"{primary.color}",color:"{bg.color}"},formField:{background:"{surface.0.color}",disabledBackground:"{surface.0.color}",filledBackground:"{surface.100.color}",filledFocusBackground:"{surface.100.color}",borderColor:"{surface.1000.color}",hoverBorderColor:"{primary.color}",focusBorderColor:"{primary.color}",invalidBorderColor:"{error.color}",color:"{text.color}",disabledColor:"{disabled.color}",placeholderColor:"{muted.color}",floatLabelColor:"{secondary.color}",floatLabelFocusColor:"{secondary.color}",floatLabelInvalidColor:"{error.color}",iconColor:"{primary.color}"},text:{color:"{text.color}",hoverColor:"{primary.color}",mutedColor:"{muted.color}",hoverMutedColor:"{muted.color}"},mask:{background:"{maskbg.color}",color:"{surface.200.color}"},content:{background:"{bg.color}",color:"{text.color}",border:{color:"{surface.1000.color}",radius:"6px"},hover:{background:"{primary.hover.color}",color:"{primary.color}"}}},Rf={semantic:{disabled:{opacity:"1"},transitionDuration:"0",primary:{50:"{primary.color}",100:"{primary.color}",200:"{primary.color}",300:"{primary.color}",400:"{primary.color}",500:"{primary.color}",600:"{primary.color}",700:"{primary.color}",800:"{primary.color}",900:"{primary.color}",950:"{primary.color}"},colorScheme:{light:{...zi},dark:{...zi}}},components:{blockui:{root:{borderRadius:"0px"}},button:{root:{paddingX:"1rem",paddingY:"0.5rem",primary:{hoverBackground:"{primary.color} !important",hoverBorderColor:"{primary.color} !important"}},text:{secondary:{color:"{secondary.color} !important",hoverBackground:"{surface.200.color} !important"}}},card:{root:{borderRadius:"{border-radius}",background:"{bg-color}",shadow:`0 -1px 5px 0 color-mix(in srgb, currentColor 20%, transparent),
410
+ For more information see: https://www.keycloak.org/docs/latest/securing_apps/#_modern_browsers`),s.enable=!1,e.silentCheckSsoFallback&&(e.silentCheckSsoRedirectUri=!1)),document.body.removeChild(h),window.removeEventListener("message",v),u.setSuccess()))};window.addEventListener("message",v,!1)}else u.setSuccess();return N(u.promise,e.messageReceiveTimeout,"Timeout when waiting for 3rd party check iframe message.")}function Xe(u){if(!u||u=="default")return{login:function(_){return window.location.assign(e.createLoginUrl(_)),Y().promise},logout:async function(_){if(((_==null?void 0:_.logoutMethod)??e.logoutMethod)==="GET"){window.location.replace(e.createLogoutUrl(_));return}const O=e.createLogoutUrl(_),x=await fetch(O,{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(_,!1)})});if(x.redirected){window.location.href=x.url;return}if(x.ok){window.location.reload();return}throw new Error("Logout failed, request returned an error code.")},register:function(_){return window.location.assign(e.createRegisterUrl(_)),Y().promise},accountManagement:function(){var _=e.createAccountUrl();if(typeof _<"u")window.location.href=_;else throw"Not supported by the OIDC server";return Y().promise},redirectUri:function(_,E){return _&&_.redirectUri?_.redirectUri:e.redirectUri?e.redirectUri:location.href}};if(u=="cordova"){s.enable=!1;var h=function(_,E,O){return window.cordova&&window.cordova.InAppBrowser?window.cordova.InAppBrowser.open(_,E,O):window.open(_,E,O)},v=function(_){return _&&_.cordovaOptions?Object.keys(_.cordovaOptions).reduce(function(E,O){return E[O]=_.cordovaOptions[O],E},{}):{}},T=function(_){return Object.keys(_).reduce(function(E,O){return E.push(O+"="+_[O]),E},[]).join(",")},b=function(_){var E=v(_);return E.location="no",_&&_.prompt=="none"&&(E.hidden="yes"),T(E)},P=function(){return e.redirectUri||"http://localhost"};return{login:function(_){var E=Y(),O=b(_),x=e.createLoginUrl(_),R=h(x,"_blank",O),F=!1,Ce=!1,me=function(){Ce=!0,R.close()};return R.addEventListener("loadstart",function(pe){if(pe.url.indexOf(P())==0){var Ze=ne(pe.url);S(Ze,E),me(),F=!0}}),R.addEventListener("loaderror",function(pe){if(!F)if(pe.url.indexOf(P())==0){var Ze=ne(pe.url);S(Ze,E),me(),F=!0}else E.setError(),me()}),R.addEventListener("exit",function(pe){Ce||E.setError({reason:"closed_by_user"})}),E.promise},logout:function(_){var E=Y(),O=e.createLogoutUrl(_),x=h(O,"_blank","location=no,hidden=yes,clearcache=yes"),R;return x.addEventListener("loadstart",function(F){F.url.indexOf(P())==0&&x.close()}),x.addEventListener("loaderror",function(F){F.url.indexOf(P())==0||(R=!0),x.close()}),x.addEventListener("exit",function(F){R?E.setError():(e.clearToken(),E.setSuccess())}),E.promise},register:function(_){var E=Y(),O=e.createRegisterUrl(),x=b(_),R=h(O,"_blank",x);return R.addEventListener("loadstart",function(F){if(F.url.indexOf(P())==0){R.close();var Ce=ne(F.url);S(Ce,E)}}),E.promise},accountManagement:function(){var _=e.createAccountUrl();if(typeof _<"u"){var E=h(_,"_blank","location=no");E.addEventListener("loadstart",function(O){O.url.indexOf(P())==0&&E.close()})}else throw"Not supported by the OIDC server"},redirectUri:function(_){return P()}}}if(u=="cordova-native")return s.enable=!1,{login:function(_){var E=Y(),O=e.createLoginUrl(_);return universalLinks.subscribe("keycloak",function(x){universalLinks.unsubscribe("keycloak"),window.cordova.plugins.browsertab.close();var R=ne(x.url);S(R,E)}),window.cordova.plugins.browsertab.openUrl(O),E.promise},logout:function(_){var E=Y(),O=e.createLogoutUrl(_);return universalLinks.subscribe("keycloak",function(x){universalLinks.unsubscribe("keycloak"),window.cordova.plugins.browsertab.close(),e.clearToken(),E.setSuccess()}),window.cordova.plugins.browsertab.openUrl(O),E.promise},register:function(_){var E=Y(),O=e.createRegisterUrl(_);return universalLinks.subscribe("keycloak",function(x){universalLinks.unsubscribe("keycloak"),window.cordova.plugins.browsertab.close();var R=ne(x.url);S(R,E)}),window.cordova.plugins.browsertab.openUrl(O),E.promise},accountManagement:function(){var _=e.createAccountUrl();if(typeof _<"u")window.cordova.plugins.browsertab.openUrl(_);else throw"Not supported by the OIDC server"},redirectUri:function(_){return _&&_.redirectUri?_.redirectUri:e.redirectUri?e.redirectUri:"http://localhost"}};throw"invalid adapter type: "+u}var Fe=function(){if(!(this instanceof Fe))return new Fe;localStorage.setItem("kc-test","test"),localStorage.removeItem("kc-test");var u=this;function h(){for(var v=new Date().getTime(),T=0;T<localStorage.length;T++){var b=localStorage.key(T);if(b&&b.indexOf("kc-callback-")==0){var P=localStorage.getItem(b);if(P)try{var _=JSON.parse(P).expires;(!_||_<v)&&localStorage.removeItem(b)}catch{localStorage.removeItem(b)}}}}u.get=function(v){if(v){var T="kc-callback-"+v,b=localStorage.getItem(T);return b&&(localStorage.removeItem(T),b=JSON.parse(b)),h(),b}},u.add=function(v){h();var T="kc-callback-"+v.state;v.expires=new Date().getTime()+60*60*1e3,localStorage.setItem(T,JSON.stringify(v))}},ze=function(){if(!(this instanceof ze))return new ze;var u=this;u.get=function(b){if(b){var P=v("kc-callback-"+b);if(T("kc-callback-"+b,"",h(-100)),P)return JSON.parse(P)}},u.add=function(b){T("kc-callback-"+b.state,JSON.stringify(b),h(60))},u.removeItem=function(b){T(b,"",h(-100))};var h=function(b){var P=new Date;return P.setTime(P.getTime()+b*60*1e3),P},v=function(b){for(var P=b+"=",_=document.cookie.split(";"),E=0;E<_.length;E++){for(var O=_[E];O.charAt(0)==" ";)O=O.substring(1);if(O.indexOf(P)==0)return O.substring(P.length,O.length)}return""},T=function(b,P,_){var E=b+"="+P+"; expires="+_.toUTCString()+"; ";document.cookie=E}};function ht(){try{return new Fe}catch{}return new ze}function $e(u){return function(){e.enableLogging&&u.apply(console,Array.prototype.slice.call(arguments))}}}function Qd(t){const e=String.fromCodePoint(...t);return btoa(e)}class ef{constructor(e){te(this,"oidc");te(this,"isAuthenticated",!1);te(this,"authenticatedWith",null);this.oidc=new Di(e)}async InitAsync(e={}){return await this.oidc.init(e).then(async n=>(this.isAuthenticated=n,this.authenticatedWith=this.AuthenticatedWith(),n)).catch(n=>(console.info("Ocorreu um erro na inicialização. Verifique o console para mais detalhes."),console.error(n),!1))}LoginGovBr(){this.oidc.login({idpHint:"GOV.BR"})}LoginSenhaweb(){var n;const e=(n=this.oidc.authServerUrl)!=null&&n.startsWith("https://keycloak.dev.apps.sf.prefeitura.sp.gov.br")?"senhawebdev":"senhaweb";this.oidc.login({idpHint:e})}AuthenticatedWith(){var n,o;const e=this.oidc.tokenParsed;return e?(n=e.identity_provider)!=null&&n.startsWith("GOV.BR")?"govbr":(o=e.identity_provider)!=null&&o.startsWith("senhaweb")?"senhaweb":"ad":null}}let Ri;function tf(t){Ri=new ef(t)}const Po=()=>Ri;function nf(t){return i.getCurrentScope()?(i.onScopeDispose(t),!0):!1}const of=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;function rf(t){return i.getCurrentInstance()}function sf(t){return Array.isArray(t)?t:[t]}function af(t,e=!0,n){rf()?i.onMounted(t,n):e?t():i.nextTick(t)}const Ui=of?window:void 0;function Ct(t){var e;const n=i.toValue(t);return(e=n==null?void 0:n.$el)!=null?e:n}function lf(){const t=i.ref(!1),e=i.getCurrentInstance();return e&&i.onMounted(()=>{t.value=!0},e),t}function cf(t){const e=lf();return i.computed(()=>(e.value,!!t()))}function uf(t,e,n={}){const{window:o=Ui,...r}=n;let s;const l=cf(()=>o&&"ResizeObserver"in o),a=()=>{s&&(s.disconnect(),s=void 0)},c=i.computed(()=>{const p=i.toValue(t);return Array.isArray(p)?p.map(y=>Ct(y)):[Ct(p)]}),d=i.watch(c,p=>{if(a(),l.value&&o){s=new ResizeObserver(e);for(const y of p)y&&s.observe(y,r)}},{immediate:!0,flush:"post"}),f=()=>{a(),d()};return nf(f),{isSupported:l,stop:f}}function df(t,e={width:0,height:0},n={}){const{window:o=Ui,box:r="content-box"}=n,s=i.computed(()=>{var p,y;return(y=(p=Ct(t))==null?void 0:p.namespaceURI)==null?void 0:y.includes("svg")}),l=i.ref(e.width),a=i.ref(e.height),{stop:c}=uf(t,([p])=>{const y=r==="border-box"?p.borderBoxSize:r==="content-box"?p.contentBoxSize:p.devicePixelContentBoxSize;if(o&&s.value){const k=Ct(t);if(k){const C=k.getBoundingClientRect();l.value=C.width,a.value=C.height}}else if(y){const k=sf(y);l.value=k.reduce((C,{inlineSize:A})=>C+A,0),a.value=k.reduce((C,{blockSize:A})=>C+A,0)}else l.value=p.contentRect.width,a.value=p.contentRect.height},n);af(()=>{const p=Ct(t);p&&(l.value="offsetWidth"in p?p.offsetWidth:e.width,a.value="offsetHeight"in p?p.offsetHeight:e.height)});const d=i.watch(()=>Ct(t),p=>{l.value=p?e.width:0,a.value=p?e.height:0});function f(){c(),d()}return{width:l,height:a,stop:f}}function ff(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Ln={exports:{}},mf=Ln.exports,Vi;function pf(){return Vi||(Vi=1,function(t){(function(e,n){t.exports?t.exports=n():e.log=n()})(mf,function(){var e=function(){},n="undefined",o=typeof window!==n&&typeof window.navigator!==n&&/Trident\/|MSIE /.test(window.navigator.userAgent),r=["trace","debug","info","warn","error"],s={},l=null;function a(A,L){var w=A[L];if(typeof w.bind=="function")return w.bind(A);try{return Function.prototype.bind.call(w,A)}catch{return function(){return Function.prototype.apply.apply(w,[A,arguments])}}}function c(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function d(A){return A==="debug"&&(A="log"),typeof console===n?!1:A==="trace"&&o?c:console[A]!==void 0?a(console,A):console.log!==void 0?a(console,"log"):e}function f(){for(var A=this.getLevel(),L=0;L<r.length;L++){var w=r[L];this[w]=L<A?e:this.methodFactory(w,A,this.name)}if(this.log=this.debug,typeof console===n&&A<this.levels.SILENT)return"No console available for logging"}function p(A){return function(){typeof console!==n&&(f.call(this),this[A].apply(this,arguments))}}function y(A,L,w){return d(A)||p.apply(this,arguments)}function k(A,L){var w=this,S,M,U,G="loglevel";typeof A=="string"?G+=":"+A:typeof A=="symbol"&&(G=void 0);function ue(N){var X=(r[N]||"silent").toUpperCase();if(!(typeof window===n||!G)){try{window.localStorage[G]=X;return}catch{}try{window.document.cookie=encodeURIComponent(G)+"="+X+";"}catch{}}}function ne(){var N;if(!(typeof window===n||!G)){try{N=window.localStorage[G]}catch{}if(typeof N===n)try{var X=window.document.cookie,de=encodeURIComponent(G),fe=X.indexOf(de+"=");fe!==-1&&(N=/^([^;]+)/.exec(X.slice(fe+de.length+1))[1])}catch{}return w.levels[N]===void 0&&(N=void 0),N}}function Pe(){if(!(typeof window===n||!G)){try{window.localStorage.removeItem(G)}catch{}try{window.document.cookie=encodeURIComponent(G)+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC"}catch{}}}function oe(N){var X=N;if(typeof X=="string"&&w.levels[X.toUpperCase()]!==void 0&&(X=w.levels[X.toUpperCase()]),typeof X=="number"&&X>=0&&X<=w.levels.SILENT)return X;throw new TypeError("log.setLevel() called with invalid level: "+N)}w.name=A,w.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},w.methodFactory=L||y,w.getLevel=function(){return U??M??S},w.setLevel=function(N,X){return U=oe(N),X!==!1&&ue(U),f.call(w)},w.setDefaultLevel=function(N){M=oe(N),ne()||w.setLevel(N,!1)},w.resetLevel=function(){U=null,Pe(),f.call(w)},w.enableAll=function(N){w.setLevel(w.levels.TRACE,N)},w.disableAll=function(N){w.setLevel(w.levels.SILENT,N)},w.rebuild=function(){if(l!==w&&(S=oe(l.getLevel())),f.call(w),l===w)for(var N in s)s[N].rebuild()},S=oe(l?l.getLevel():"WARN");var Y=ne();Y!=null&&(U=oe(Y)),f.call(w)}l=new k,l.getLogger=function(L){if(typeof L!="symbol"&&typeof L!="string"||L==="")throw new TypeError("You must supply a name when creating a logger.");var w=s[L];return w||(w=s[L]=new k(L,l.methodFactory)),w};var C=typeof window!==n?window.log:void 0;return l.noConflict=function(){return typeof window!==n&&window.log===l&&(window.log=C),l},l.getLoggers=function(){return s},l.default=l,l})}(Ln)),Ln.exports}var hf=pf();const xn=ff(hf),gf={install(t,e){const n=e??{};xn.setDefaultLevel(n.enableLogging?xn.levels.DEBUG:xn.levels.SILENT);const o=240;document.documentElement.style.setProperty("--nav-menu-width",`${o}px`);const r=i.ref(!0),s=i.ref(0),l=i.ref(!1),a=i.ref(!1),c=i.ref(""),d=i.ref(null),{width:f}=df(d);t.provide(Tr,{navMenuWidth:o,isMenuOpened:r,ToggleMenu:()=>{r.value=!r.value},OpenMenu:()=>{r.value=!0},CloseMenu:()=>{r.value=!1},scrollY:s,pageTitle:c,isDarkMode:l,ToggleTheme:()=>zt.Toggle(),EnableDarkMode:()=>zt.EnableDarkMode(),EnableLightMode:()=>zt.EnableLightMode(),ClearStoredTheme:()=>zt.ClearStoredTheme(),LogoutAsync:async()=>{const y=$i(),{oidc:k}=Po();await y.ConfirmAsync("Deseja realmente sair da sua conta?")&&(a.value=!0,await new Promise(A=>setTimeout(A,1e3)),k.logout({redirectUri:window.location.origin}))},Login:()=>{const{oidc:y}=Po();y.login()},isLoggingOut:a,mainRef:d,mainWidth:f,isMainXs:i.computed(()=>f.value<=384),isMainSm:i.computed(()=>f.value>384),isMainMd:i.computed(()=>f.value>768),isMainLg:i.computed(()=>f.value>992),isMainXl:i.computed(()=>f.value>1280),isMain2Xl:i.computed(()=>f.value>1536),isMain3Xl:i.computed(()=>f.value>1920)}),new MutationObserver(()=>{l.value=document.documentElement.classList.contains("dark")}).observe(document.documentElement,{attributes:!0,attributeFilter:["class"]}),document.addEventListener("scroll",()=>{s.value=document.documentElement.scrollTop}),zt.SetInitialTheme()}},yf=xn;class Lo extends Error{constructor(n=[]){const o=Array.isArray(n)?n:[n];super(o[0]);te(this,"errors",[]);this.errors=o}}class xo{constructor(e=null){te(this,"errors",[]);te(this,"_value",null);te(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){if(Array.isArray(e)){e.forEach(n=>this.WithError(n));return}this.errors.push(e),this.isSuccessfulHttpStatusCode||(this._httpStatusCode=400)}get isSuccessfulHttpStatusCode(){return this._httpStatusCode>=200&&this._httpStatusCode<300}[Symbol.toPrimitive](e){if(e==="throw")throw new Lo(this.errors)}get firstError(){return this.hasSuccess?null:this.errors[0]}}class Hi{get IsVisible(){return ft.isVisible()}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(s=>{ft.fire({allowEscapeKey:!1,allowOutsideClick:!1,icon:n,title:r,html:`<div style="max-height: 50vh; overflow: auto">${xi.sanitize(o)}</div>`}).then(()=>s(!0))})}async AlertAsync(e){return this.CreateAlertAsync({text:e,icon:"info"})}async AlertErrorAsync(e){return this.CreateAlertAsync({text:e,icon:"error"})}async AlertSuccessAsync(e){return this.CreateAlertAsync({text:e,icon:"success"})}}const ji=()=>new Hi,bf=()=>new Hi;window.addEventListener("error",function(t){return Oo(t.error)||console.error(t.error),t.preventDefault(),!1}),window.addEventListener("unhandledrejection",function(t){return Oo(t.reason)||console.error("Unhandled Rejection",t.reason),t.preventDefault(),!1});const vf=t=>{t.config.errorHandler=(e,n,o)=>{Oo(e)||console.error("Vue Global Error Handler: ",{err:e,vm:n,info:o})}},Oo=t=>t instanceof Lo||t instanceof xo?(t instanceof xo&&t.httpStatusCode===401||ji().AlertErrorAsync(t.errors),!0):!1;function wf(){return i.inject(Tr)}const On=()=>wf(),kf={class:"font-percentage"},Fi="--font-size-increment",_f="tamanho-fonte",Sf=et(i.defineComponent({__name:"FontSize",setup(t){const e=i.ref(!1),n=i.ref(0),o=()=>{n.value=Vn(),e.value=!0},r=()=>{e.value=!1},s=()=>document.documentElement,l=()=>parseInt(getComputedStyle(s()).getPropertyValue(Fi)||"1"),a=y=>{y<.5||y>1.6||(s().style.setProperty(Fi,y.toString()),p.value=y)},c=()=>{a(p.value+.1)},d=()=>{a(p.value-.1)},f=()=>{a(1)},p=i.ref(1);return i.onBeforeMount(()=>{localStorage.removeItem(_f)}),i.onMounted(()=>{p.value=l()}),(y,k)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createVNode(Ue,{button:!0,size:"sm",icon:"text_increase",tooltip:"Tamanho da fonte",onClick:o}),e.value?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createElementVNode("div",{class:i.normalizeClass(["border","fadein","font-size-wrapper"]),style:i.normalizeStyle({zIndex:n.value+1})},[i.createElementVNode("div",{class:"icon",onClick:d}),i.createElementVNode("span",kf,i.toDisplayString(p.value.toLocaleString("pt-br",{style:"percent",maximumFractionDigits:0})),1),i.createElementVNode("div",{class:"icon add",onClick:c}),i.createElementVNode("span",{class:"redefinir",onClick:f}," Redefinir ")],4),i.createElementVNode("div",{class:"font-size-mask",style:i.normalizeStyle({zIndex:n.value}),onClick:r},null,4)],64)):i.createCommentVNode("",!0)],64))}}),[["__scopeId","data-v-d17f4a5f"]]),Cf=i.defineComponent({__name:"ScrollToTop",setup(t){const{scrollY:e}=On(),n=i.computed(()=>e.value>800);function o(){document.documentElement.scrollTo(0,0)}return(r,s)=>(i.openBlock(),i.createElementBlock("button",{class:i.normalizeClass(["sf-scrollToTop",{"sf-scrollToTop-visible":n.value}]),onClick:o},null,2))}}),Ef={class:"nav-menu-header"},If={class:"nav-menu-inner-close"},Tf={class:"main-content"},Af={class:"page-title"},Pf={class:"action"},Lf={id:"content"},xf={key:0,id:"logging-out"},Of={class:"info-fazenda"},$f={class:"font-bold"},Bf={class:"info-endereco text-muted"},Nf=et(i.defineComponent({__name:"Main",props:{auth:{}},setup(t){const e=t,{navMenuWidth:n,isMenuOpened:o,pageTitle:r,scrollY:s,ToggleMenu:l,isDarkMode:a,ToggleTheme:c,CloseMenu:d,LogoutAsync:f,Login:p,isLoggingOut:y,mainRef:k}=On(),C=i.ref(null),A=()=>{if(!C.value||!o.value)return!1;C.value.offsetWidth!==n&&d()};return i.onMounted(()=>{gt.useRouter().afterEach(()=>{A()})}),(L,w)=>(i.openBlock(),i.createElementBlock("main",{ref_key:"mainRef",ref:k,class:i.normalizeClass({disabled:i.unref(y),"nav-menu-visible":i.unref(o)})},[i.createElementVNode("aside",{id:"nav-menu",ref_key:"navMenuRef",ref:C,class:i.normalizeClass({"nav-menu-hidden":!i.unref(o)})},[i.createElementVNode("div",Ef,[w[0]||(w[0]=i.createElementVNode("span",null,"Menu",-1)),i.createElementVNode("div",If,[i.createVNode(Ue,{button:!0,icon:"close",onClick:i.unref(l)},null,8,["onClick"])])]),i.renderSlot(L.$slots,"nav-menu",{},void 0,!0)],2),i.createElementVNode("div",Tf,[i.createElementVNode("div",{id:"top-bar",class:i.normalizeClass({"shadow-bottom":i.unref(s)>72})},[i.createVNode(Ue,{button:!0,icon:i.unref(o)?"menu_open":"menu",tooltip:"Menu",onClick:i.unref(l)},null,8,["icon","onClick"]),i.createElementVNode("div",Af,i.toDisplayString(i.unref(y)?"Saindo...":i.unref(r)),1),w[1]||(w[1]=i.createElementVNode("span",{class:"sep"},null,-1)),i.createElementVNode("div",Pf,[i.createVNode(Ue,{button:!0,size:"sm",icon:i.unref(a)?"light_mode":"dark_mode",tooltip:i.unref(a)?"Modo claro":"Modo escuro",onClick:i.unref(c)},null,8,["icon","tooltip","onClick"]),i.createVNode(Sf),e.auth?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[e.auth.isAuthenticated?(i.openBlock(),i.createBlock(Ue,{key:0,button:!0,size:"sm",icon:"logout",tooltip:"Sair",onClick:i.unref(f)},null,8,["onClick"])):(i.openBlock(),i.createBlock(Ue,{key:1,button:!0,size:"sm",icon:"login",tooltip:"Entrar",onClick:i.unref(p)},null,8,["onClick"]))],64)):i.createCommentVNode("",!0)])],2),i.createElementVNode("div",Lf,[i.unref(y)?(i.openBlock(),i.createElementBlock("div",xf,[i.createVNode(Vo)])):i.renderSlot(L.$slots,"content",{key:1},void 0,!0)])]),i.createElementVNode("footer",null,[w[4]||(w[4]=i.createElementVNode("div",{class:"logo-fazenda"},null,-1)),i.createElementVNode("div",Of,[i.createElementVNode("span",$f,[i.renderSlot(L.$slots,"footer-nome-fazenda",{},()=>[w[2]||(w[2]=i.createTextVNode(" SECRETARIA MUNICIPAL DA FAZENDA "))],!0)]),i.createElementVNode("span",Bf,[i.renderSlot(L.$slots,"footer-endereco-fazenda",{},()=>[w[3]||(w[3]=i.createTextVNode(" Rua Líbero Badaró, 190 - Centro - São Paulo - SP - CEP 01008-000 "))],!0)])])]),i.createVNode(Cf)],2))}}),[["__scopeId","data-v-35786704"]]),Mf=i.defineComponent({__name:"PageTitle",props:{title:{}},setup(t){const{pageTitle:e}=On(),n=t;return i.watchEffect(()=>{document.title=n.title,e.value=n.title}),(o,r)=>null}}),zi={surface:{0:"{surface.0.color}",50:"{surface.100.color}",100:"{surface.100.color}",200:"{surface.200.color}",300:"{surface.300.color}",400:"{surface.400.color}",500:"{surface.1000.color}",600:"{surface.600.color}",700:"{surface.700.color}",800:"{surface.800.color}",900:"{surface.900.color}",950:"{surface.1000.color}"},primary:{color:"{primary.color}",contrastColor:"{bg.color}",hoverColor:"{primary.hover.color}",activeColor:"{primary.color}"},highlight:{background:"{primary.color}",color:"{bg.color}"},formField:{background:"{surface.0.color}",disabledBackground:"{surface.0.color}",filledBackground:"{surface.100.color}",filledFocusBackground:"{surface.100.color}",borderColor:"{surface.1000.color}",hoverBorderColor:"{primary.color}",focusBorderColor:"{primary.color}",invalidBorderColor:"{error.color}",color:"{text.color}",disabledColor:"{disabled.color}",placeholderColor:"{muted.color}",floatLabelColor:"{secondary.color}",floatLabelFocusColor:"{secondary.color}",floatLabelInvalidColor:"{error.color}",iconColor:"{primary.color}"},text:{color:"{text.color}",hoverColor:"{primary.color}",mutedColor:"{muted.color}",hoverMutedColor:"{muted.color}"},mask:{background:"{maskbg.color}",color:"{surface.200.color}"},content:{background:"{bg.color}",color:"{text.color}",border:{color:"{surface.1000.color}",radius:"6px"},hover:{background:"{primary.hover.color}",color:"{primary.color}"}}},Df={semantic:{disabled:{opacity:"1"},transitionDuration:"0",primary:{50:"{primary.color}",100:"{primary.color}",200:"{primary.color}",300:"{primary.color}",400:"{primary.color}",500:"{primary.color}",600:"{primary.color}",700:"{primary.color}",800:"{primary.color}",900:"{primary.color}",950:"{primary.color}"},colorScheme:{light:{...zi},dark:{...zi}}},components:{blockui:{root:{borderRadius:"0px"}},button:{root:{paddingX:"1rem",paddingY:"0.5rem",primary:{hoverBackground:"{primary.color} !important",hoverBorderColor:"{primary.color} !important"}},text:{secondary:{color:"{secondary.color} !important",hoverBackground:"{surface.200.color} !important"}}},card:{root:{borderRadius:"{border-radius}",background:"{bg-color}",shadow:`0 -1px 5px 0 color-mix(in srgb, currentColor 20%, transparent),
411
411
  0 1px 1px 0 color-mix(in srgb, currentColor 14%, transparent),
412
412
  0 1px 3px 0 color-mix(in srgb, currentColor 12%, transparent)`},colorScheme:{dark:{root:{shadow:`0 -1px 5px 0 color-mix(in srgb, currentColor 20%, transparent),
413
413
  0 1px 10px 0 color-mix(in srgb, currentColor 14%, transparent),
414
- 0 1px 3px 0 color-mix(in srgb, currentColor 12%, transparent)`}}},title:{fontWeight:"700",fontSize:"{text-md}"},body:{padding:"var(--content-gutter)"}},checkbox:{root:{background:"{surface.100.color} !important",borderColor:"{border.color} !important",borderRadius:"{border.radius} !important",checkedBackground:"{primary.color} !important",checkedHoverBackground:"{primary.color} !important",sm:{width:"1rem",height:"1rem"},lg:{width:"1.5rem",height:"1.5rem"}}},datatable:{root:{borderColor:"{border.color} !important"},header:{borderColor:"{border.color} !important",padding:"0 0 var(--content-gutter) 0",sm:{padding:"0 0 var(--content-gutter-sm) 0"}},headerCell:{borderColor:"{border.color} !important",hoverColor:"{primary.color} !important",hoverBackground:"{primary.hover.color} !important"},bodyCell:{borderColor:"{border.color} !important"},footer:{borderColor:"{border.color} !important"},row:{stripedBackground:"{surface.100.color} !important"}},datepicker:{today:{background:"{primary.hover.color} !important",color:"{primary.color} !important"}},dialog:{root:{background:"{bg.color} !important",color:"{text.color} !important",borderColor:"{border.color} !important",borderRadius:"{border.radius} !important",shadow:"none !important"},title:{fontSize:"{font.size} !important",fontWeight:"700 !important"},header:{padding:"0.75rem 0.75rem 0 1rem !important",gap:"{content-gutter-sm} !important"},content:{padding:"{content.gutter} !important"},footer:{padding:"0.75rem 0.75rem 0 1rem !important",gap:"{content-gutter-sm} !important"}},inputtext:{root:{background:"{bg.color}",color:"{text.color}",borderColor:"{border.color} !important",borderRadius:"{border.radius} !important",shadow:"none !important",hoverBorderColor:"{primary.color} !important",placeholderColor:"{muted.color}"}},popover:{root:{background:"{bg.color}",color:"{text.color}",borderColor:"{border.color}",borderRadius:"{border.radius}",shadow:"none",gutter:"8px",arrowOffset:"0.75rem"},content:{padding:"0"}},select:{root:{background:"{bg.color}",color:"{primary.color}",hoverBorderColor:"{primary.color}",placeholderColor:"{muted.color}",disabledColor:"{disabled.color}"},option:{focusBackground:"{primary.hover.color}",focusColor:"{primary.color}",selectedFocusColor:"{bg.color}",selectedFocusBackground:"{primary.color}"},overlay:{background:"{bg.color}",borderColor:"{border.color}"},dropdown:{color:"{primary.color}"}},skeleton:{root:{background:"{surface.700.color} !important",animationBackground:"{surface.100.color} !important"}}}};class pt{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 s=getComputedStyle(r).zIndex;return+s==+s?+s: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 pt.Mask(e.padStart(11,"0"),"###.###.###-##")}static MaskCnpj(e){return pt.Mask(e.padStart(14,"0"),"##.###.###/####-##")}static MaskCcm(e){return pt.Mask(e.padStart(8,"0"),"#.###.###-#")}static async DelayAsync(e){return new Promise(n=>setTimeout(n,e))}}class Ki{constructor(e){te(this,"sub");te(this,"username");te(this,"name");te(this,"email");te(this,"roles");te(this,"groups");te(this,"userinfo");te(this,"department");te(this,"jobTitle");te(this,"idp");this.userinfo=e,this.sub=e.sub,this.username=e.employeeID??e.cpf??"",this.name=e.name??"",this.email=e.email??null,this.roles=e.role??[],this.groups=e.group??[],this.department=this.SetDepartment(),this.jobTitle=this.SetJobTitle(),this.idp=this.SetIdp()}get firstname(){return this.name.split(" ")[0]??this.name}get maskedUsername(){return this.username?this.username.length<=11?pt.MaskCpf(this.username):this.username.length===14?pt.MaskCnpj(this.username):this.username:""}IsInRole(e){return this.roles.includes(e)}IsInGroup(e){return this.groups.includes(e)}SetIdp(){var n;const e=((n=this.userinfo)==null?void 0:n.identity_provider)??null;return(e==null?void 0:e.toLocaleLowerCase())==="gov.br"?"govbr":e!=null&&e.toLocaleLowerCase().startsWith("senhaweb")?"senhaweb":null}SetDepartment(){var e;return((e=this.userinfo)==null?void 0:e.department)??null}SetJobTitle(){var e;return((e=this.userinfo)==null?void 0:e.jobTitle)??null}}function Uf(){const t=i.ref("development");function e(d){t.value=d.toLocaleLowerCase()}const n=i.computed(()=>t.value==="development"),o=i.computed(()=>t.value==="pack"),r=i.computed(()=>t.value==="hml"),s=i.computed(()=>t.value==="production"),a=i.ref(null);function l(){a.value=null}function c(d){a.value=new Ki(d)}return{environment:t,SetEnvironment:e,isDev:n,isPack:o,isHml:r,isProd:s,user:a,$reset:l,SetUser:c}}const Vf=t=>{const e=new Set;function n(o){const{name:r,children:s}=o;if(r){if(e.has(r))throw new Error(["Erro na validação das rotas!",`Nome de rota duplicado: ${r}`].join(`
415
- `));e.add(r)}if(s&&Array.isArray(s))for(const a of s)n(a)}for(const o of t)n(o)};Promise.prototype.TrackStateWith||(Promise.prototype.TrackStateWith=async function(t){t.value=!0;try{return await this}finally{t.value=!1}});function Hf(){document.documentElement.classList.add("app-mounted")}D.AppError=Lo,D.AppResult=xo,D.BaseAppState=Uf,D.ConfigAuth=nf,D.EnsureUniqueRouteNames=Vf,D.RemovePreloader=Hf,D.SfButton=ks,D.SfContent=Tl,D.SfDrawer=jo,D.SfHelpButton=Il,D.SfIcon=Ue,D.SfLoadingCircle=Ho,D.SfMain=Mf,D.SfMessage=Es,D.SfNavMenu=El,D.SfPageTitle=Df,D.SfTabNavigation=vs,D.SfTooltip=Uo,D.UseAlert=ji,D.UseAlertService=vf,D.UseAppInject=On,D.UseAuth=Po,D.UseConfirm=$i,D.UseConfirmService=Ud,D.User=Ki,D.Utilities=pt,D._logger=bf,D.configSF=yf,D.globalErrorHandler=wf,D.themePreset=Rf,Object.defineProperty(D,Symbol.toStringTag,{value:"Module"})});
414
+ 0 1px 3px 0 color-mix(in srgb, currentColor 12%, transparent)`}}},title:{fontWeight:"700",fontSize:"{text-md}"},body:{padding:"var(--content-gutter)"}},checkbox:{root:{background:"{surface.100.color} !important",borderColor:"{border.color} !important",borderRadius:"{border.radius} !important",checkedBackground:"{primary.color} !important",checkedHoverBackground:"{primary.color} !important",sm:{width:"1rem",height:"1rem"},lg:{width:"1.5rem",height:"1.5rem"}}},datatable:{root:{borderColor:"{border.color} !important"},header:{borderColor:"{border.color} !important",padding:"0 0 var(--content-gutter) 0",sm:{padding:"0 0 var(--content-gutter-sm) 0"}},headerCell:{borderColor:"{border.color} !important",hoverColor:"{primary.color} !important",hoverBackground:"{primary.hover.color} !important"},bodyCell:{borderColor:"{border.color} !important"},footer:{borderColor:"{border.color} !important"},row:{stripedBackground:"{surface.100.color} !important"}},datepicker:{today:{background:"{primary.hover.color} !important",color:"{primary.color} !important"}},dialog:{root:{background:"{bg.color} !important",color:"{text.color} !important",borderColor:"{border.color} !important",borderRadius:"{border.radius} !important",shadow:"none !important"},title:{fontSize:"{font.size} !important",fontWeight:"700 !important"},header:{padding:"0.75rem 0.75rem 0 1rem !important",gap:"{content-gutter-sm} !important"},content:{padding:"{content.gutter} !important"},footer:{padding:"0.75rem 0.75rem 0 1rem !important",gap:"{content-gutter-sm} !important"}},inputtext:{root:{background:"{bg.color}",color:"{text.color}",borderColor:"{border.color} !important",borderRadius:"{border.radius} !important",shadow:"none !important",hoverBorderColor:"{primary.color} !important",placeholderColor:"{muted.color}"}},popover:{root:{background:"{bg.color}",color:"{text.color}",borderColor:"{border.color}",borderRadius:"{border.radius}",shadow:"none",gutter:"8px",arrowOffset:"0.75rem"},content:{padding:"0"}},select:{root:{background:"{bg.color}",color:"{primary.color}",hoverBorderColor:"{primary.color}",placeholderColor:"{muted.color}",disabledColor:"{disabled.color}"},option:{focusBackground:"{primary.hover.color}",focusColor:"{primary.color}",selectedFocusColor:"{bg.color}",selectedFocusBackground:"{primary.color}"},overlay:{background:"{bg.color}",borderColor:"{border.color}"},dropdown:{color:"{primary.color}"}},skeleton:{root:{background:"{surface.700.color} !important",animationBackground:"{surface.100.color} !important"}}}};class pt{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 s=getComputedStyle(r).zIndex;return+s==+s?+s: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 pt.Mask(e.padStart(11,"0"),"###.###.###-##")}static MaskCnpj(e){return pt.Mask(e.padStart(14,"0"),"##.###.###/####-##")}static MaskCcm(e){return pt.Mask(e.padStart(8,"0"),"#.###.###-#")}static async DelayAsync(e){return new Promise(n=>setTimeout(n,e))}}class Rf{constructor(e){te(this,"sub");te(this,"username");te(this,"name");te(this,"email");te(this,"roles");te(this,"groups");te(this,"userinfo");te(this,"department");te(this,"jobTitle");te(this,"idp");this.userinfo=e,this.sub=e.sub,this.username=e.employeeID??e.cpf??"",this.name=e.name??"",this.email=e.email??null,this.roles=e.role??[],this.groups=e.group??[],this.department=this.SetDepartment(),this.jobTitle=this.SetJobTitle(),this.idp=this.SetIdp()}get firstname(){return this.name.split(" ")[0]??this.name}get maskedUsername(){return this.username?this.username.length<=11?pt.MaskCpf(this.username):this.username.length===14?pt.MaskCnpj(this.username):this.username:""}IsInRole(e){return this.roles.includes(e)}IsInGroup(e){return this.groups.includes(e)}SetIdp(){var n;const e=((n=this.userinfo)==null?void 0:n.identity_provider)??null;return(e==null?void 0:e.toLocaleLowerCase())==="gov.br"?"govbr":e!=null&&e.toLocaleLowerCase().startsWith("senhaweb")?"senhaweb":null}SetDepartment(){var e;return((e=this.userinfo)==null?void 0:e.department)??null}SetJobTitle(){var e;return((e=this.userinfo)==null?void 0:e.jobTitle)??null}}function Uf(){const t=i.ref("development");function e(c){t.value=c.toLocaleLowerCase()}const n=i.computed(()=>t.value==="development"),o=i.computed(()=>t.value==="pack"),r=i.computed(()=>t.value==="hml"),s=i.computed(()=>t.value==="production"),l=i.ref(null);function a(){l.value=null}return{environment:t,SetEnvironment:e,isDev:n,isPack:o,isHml:r,isProd:s,user:l,$reset:a}}const Vf=t=>{const e=new Set;function n(o){const{name:r,children:s}=o;if(r){if(e.has(r))throw new Error(["Erro na validação das rotas!",`Nome de rota duplicado: ${r}`].join(`
415
+ `));e.add(r)}if(s&&Array.isArray(s))for(const l of s)n(l)}for(const o of t)n(o)};Promise.prototype.TrackStateWith||(Promise.prototype.TrackStateWith=async function(t){t.value=!0;try{return await this}finally{t.value=!1}});function Hf(){document.documentElement.classList.add("app-mounted")}D.AppError=Lo,D.AppResult=xo,D.BaseAppState=Uf,D.ConfigAuth=tf,D.EnsureUniqueRouteNames=Vf,D.RemovePreloader=Hf,D.SfButton=ws,D.SfContent=Il,D.SfDrawer=jo,D.SfHelpButton=El,D.SfIcon=Ue,D.SfLoadingCircle=Ho,D.SfMain=Nf,D.SfMessage=Cs,D.SfNavMenu=Cl,D.SfPageTitle=Mf,D.SfTabNavigation=bs,D.SfTooltip=Uo,D.UseAlert=ji,D.UseAlertService=bf,D.UseAppInject=On,D.UseAuth=Po,D.UseConfirm=$i,D.UseConfirmService=Rd,D.User=Rf,D.Utilities=pt,D._logger=yf,D.configSF=gf,D.globalErrorHandler=vf,D.themePreset=Df,Object.defineProperty(D,Symbol.toStringTag,{value:"Module"})});
416
416
  //# sourceMappingURL=sf.prefeiturasp.vuecomponents.umd.cjs.map